"Fossies" - the Fresh Open Source Software Archive

Member "sarg-2.4.0/configure" (16 Jan 2020, 279402 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 2.3.11_vs_2.4.0.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for sarg 2.4.0.
    4 #
    5 #
    6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    7 #
    8 #
    9 # This configure script is free software; the Free Software Foundation
   10 # gives unlimited permission to copy, distribute and modify it.
   11 ## -------------------- ##
   12 ## M4sh Initialization. ##
   13 ## -------------------- ##
   14 
   15 # Be more Bourne compatible
   16 DUALCASE=1; export DUALCASE # for MKS sh
   17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18   emulate sh
   19   NULLCMD=:
   20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21   # is contrary to our usage.  Disable this feature.
   22   alias -g '${1+"$@"}'='"$@"'
   23   setopt NO_GLOB_SUBST
   24 else
   25   case `(set -o) 2>/dev/null` in #(
   26   *posix*) :
   27     set -o posix ;; #(
   28   *) :
   29      ;;
   30 esac
   31 fi
   32 
   33 
   34 as_nl='
   35 '
   36 export as_nl
   37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   41 # Prefer a ksh shell builtin over an external printf program on Solaris,
   42 # but without wasting forks for bash or zsh.
   43 if test -z "$BASH_VERSION$ZSH_VERSION" \
   44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   45   as_echo='print -r --'
   46   as_echo_n='print -rn --'
   47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   48   as_echo='printf %s\n'
   49   as_echo_n='printf %s'
   50 else
   51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   53     as_echo_n='/usr/ucb/echo -n'
   54   else
   55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   56     as_echo_n_body='eval
   57       arg=$1;
   58       case $arg in #(
   59       *"$as_nl"*)
   60     expr "X$arg" : "X\\(.*\\)$as_nl";
   61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   62       esac;
   63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   64     '
   65     export as_echo_n_body
   66     as_echo_n='sh -c $as_echo_n_body as_echo'
   67   fi
   68   export as_echo_body
   69   as_echo='sh -c $as_echo_body as_echo'
   70 fi
   71 
   72 # The user is always right.
   73 if test "${PATH_SEPARATOR+set}" != set; then
   74   PATH_SEPARATOR=:
   75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   77       PATH_SEPARATOR=';'
   78   }
   79 fi
   80 
   81 
   82 # IFS
   83 # We need space, tab and new line, in precisely that order.  Quoting is
   84 # there to prevent editors from complaining about space-tab.
   85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   86 # splitting by setting IFS to empty value.)
   87 IFS=" ""    $as_nl"
   88 
   89 # Find who we are.  Look in the path if we contain no directory separator.
   90 as_myself=
   91 case $0 in #((
   92   *[\\/]* ) as_myself=$0 ;;
   93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   94 for as_dir in $PATH
   95 do
   96   IFS=$as_save_IFS
   97   test -z "$as_dir" && as_dir=.
   98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   99   done
  100 IFS=$as_save_IFS
  101 
  102      ;;
  103 esac
  104 # We did not find ourselves, most probably we were run as `sh COMMAND'
  105 # in which case we are not to be found in the path.
  106 if test "x$as_myself" = x; then
  107   as_myself=$0
  108 fi
  109 if test ! -f "$as_myself"; then
  110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111   exit 1
  112 fi
  113 
  114 # Unset variables that we do not need and which cause bugs (e.g. in
  115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  116 # suppresses any "Segmentation fault" message there.  '((' could
  117 # trigger a bug in pdksh 5.2.14.
  118 for as_var in BASH_ENV ENV MAIL MAILPATH
  119 do eval test x\${$as_var+set} = xset \
  120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121 done
  122 PS1='$ '
  123 PS2='> '
  124 PS4='+ '
  125 
  126 # NLS nuisances.
  127 LC_ALL=C
  128 export LC_ALL
  129 LANGUAGE=C
  130 export LANGUAGE
  131 
  132 # CDPATH.
  133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134 
  135 # Use a proper internal environment variable to ensure we don't fall
  136   # into an infinite loop, continuously re-executing ourselves.
  137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138     _as_can_reexec=no; export _as_can_reexec;
  139     # We cannot yet assume a decent shell, so we have to provide a
  140 # neutralization value for shells without unset; and this also
  141 # works around shells that cannot unset nonexistent variables.
  142 # Preserve -v and -x to the replacement shell.
  143 BASH_ENV=/dev/null
  144 ENV=/dev/null
  145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146 case $- in # ((((
  147   *v*x* | *x*v* ) as_opts=-vx ;;
  148   *v* ) as_opts=-v ;;
  149   *x* ) as_opts=-x ;;
  150   * ) as_opts= ;;
  151 esac
  152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153 # Admittedly, this is quite paranoid, since all the known shells bail
  154 # out after a failed `exec'.
  155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156 as_fn_exit 255
  157   fi
  158   # We don't want this to propagate to other subprocesses.
  159           { _as_can_reexec=; unset _as_can_reexec;}
  160 if test "x$CONFIG_SHELL" = x; then
  161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162   emulate sh
  163   NULLCMD=:
  164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165   # is contrary to our usage.  Disable this feature.
  166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167   setopt NO_GLOB_SUBST
  168 else
  169   case \`(set -o) 2>/dev/null\` in #(
  170   *posix*) :
  171     set -o posix ;; #(
  172   *) :
  173      ;;
  174 esac
  175 fi
  176 "
  177   as_required="as_fn_return () { (exit \$1); }
  178 as_fn_success () { as_fn_return 0; }
  179 as_fn_failure () { as_fn_return 1; }
  180 as_fn_ret_success () { return 0; }
  181 as_fn_ret_failure () { return 1; }
  182 
  183 exitcode=0
  184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189 
  190 else
  191   exitcode=1; echo positional parameters were not saved.
  192 fi
  193 test x\$exitcode = x0 || exit 1
  194 test -x / || exit 1"
  195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199 test \$(( 1 + 1 )) = 2 || exit 1"
  200   if (eval "$as_required") 2>/dev/null; then :
  201   as_have_required=yes
  202 else
  203   as_have_required=no
  204 fi
  205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206 
  207 else
  208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209 as_found=false
  210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211 do
  212   IFS=$as_save_IFS
  213   test -z "$as_dir" && as_dir=.
  214   as_found=:
  215   case $as_dir in #(
  216      /*)
  217        for as_base in sh bash ksh sh5; do
  218          # Try only shells that exist, to save several forks.
  219          as_shell=$as_dir/$as_base
  220          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222   CONFIG_SHELL=$as_shell as_have_required=yes
  223            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224   break 2
  225 fi
  226 fi
  227        done;;
  228        esac
  229   as_found=false
  230 done
  231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233   CONFIG_SHELL=$SHELL as_have_required=yes
  234 fi; }
  235 IFS=$as_save_IFS
  236 
  237 
  238       if test "x$CONFIG_SHELL" != x; then :
  239   export CONFIG_SHELL
  240              # We cannot yet assume a decent shell, so we have to provide a
  241 # neutralization value for shells without unset; and this also
  242 # works around shells that cannot unset nonexistent variables.
  243 # Preserve -v and -x to the replacement shell.
  244 BASH_ENV=/dev/null
  245 ENV=/dev/null
  246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247 case $- in # ((((
  248   *v*x* | *x*v* ) as_opts=-vx ;;
  249   *v* ) as_opts=-v ;;
  250   *x* ) as_opts=-x ;;
  251   * ) as_opts= ;;
  252 esac
  253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254 # Admittedly, this is quite paranoid, since all the known shells bail
  255 # out after a failed `exec'.
  256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257 exit 255
  258 fi
  259 
  260     if test x$as_have_required = xno; then :
  261   $as_echo "$0: This script requires a shell more modern than all"
  262   $as_echo "$0: the shells that I found on your system."
  263   if test x${ZSH_VERSION+set} = xset ; then
  264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266   else
  267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268 $0: including any error possibly output before this
  269 $0: message. Then install a modern shell, or manually run
  270 $0: the script under such a shell if you do have one."
  271   fi
  272   exit 1
  273 fi
  274 fi
  275 fi
  276 SHELL=${CONFIG_SHELL-/bin/sh}
  277 export SHELL
  278 # Unset more variables known to interfere with behavior of common tools.
  279 CLICOLOR_FORCE= GREP_OPTIONS=
  280 unset CLICOLOR_FORCE GREP_OPTIONS
  281 
  282 ## --------------------- ##
  283 ## M4sh Shell Functions. ##
  284 ## --------------------- ##
  285 # as_fn_unset VAR
  286 # ---------------
  287 # Portably unset VAR.
  288 as_fn_unset ()
  289 {
  290   { eval $1=; unset $1;}
  291 }
  292 as_unset=as_fn_unset
  293 
  294 # as_fn_set_status STATUS
  295 # -----------------------
  296 # Set $? to STATUS, without forking.
  297 as_fn_set_status ()
  298 {
  299   return $1
  300 } # as_fn_set_status
  301 
  302 # as_fn_exit STATUS
  303 # -----------------
  304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305 as_fn_exit ()
  306 {
  307   set +e
  308   as_fn_set_status $1
  309   exit $1
  310 } # as_fn_exit
  311 
  312 # as_fn_mkdir_p
  313 # -------------
  314 # Create "$as_dir" as a directory, including parents if necessary.
  315 as_fn_mkdir_p ()
  316 {
  317 
  318   case $as_dir in #(
  319   -*) as_dir=./$as_dir;;
  320   esac
  321   test -d "$as_dir" || eval $as_mkdir_p || {
  322     as_dirs=
  323     while :; do
  324       case $as_dir in #(
  325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326       *) as_qdir=$as_dir;;
  327       esac
  328       as_dirs="'$as_qdir' $as_dirs"
  329       as_dir=`$as_dirname -- "$as_dir" ||
  330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331      X"$as_dir" : 'X\(//\)[^/]' \| \
  332      X"$as_dir" : 'X\(//\)$' \| \
  333      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334 $as_echo X"$as_dir" |
  335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336         s//\1/
  337         q
  338       }
  339       /^X\(\/\/\)[^/].*/{
  340         s//\1/
  341         q
  342       }
  343       /^X\(\/\/\)$/{
  344         s//\1/
  345         q
  346       }
  347       /^X\(\/\).*/{
  348         s//\1/
  349         q
  350       }
  351       s/.*/./; q'`
  352       test -d "$as_dir" && break
  353     done
  354     test -z "$as_dirs" || eval "mkdir $as_dirs"
  355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356 
  357 
  358 } # as_fn_mkdir_p
  359 
  360 # as_fn_executable_p FILE
  361 # -----------------------
  362 # Test if FILE is an executable regular file.
  363 as_fn_executable_p ()
  364 {
  365   test -f "$1" && test -x "$1"
  366 } # as_fn_executable_p
  367 # as_fn_append VAR VALUE
  368 # ----------------------
  369 # Append the text in VALUE to the end of the definition contained in VAR. Take
  370 # advantage of any shell optimizations that allow amortized linear growth over
  371 # repeated appends, instead of the typical quadratic growth present in naive
  372 # implementations.
  373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374   eval 'as_fn_append ()
  375   {
  376     eval $1+=\$2
  377   }'
  378 else
  379   as_fn_append ()
  380   {
  381     eval $1=\$$1\$2
  382   }
  383 fi # as_fn_append
  384 
  385 # as_fn_arith ARG...
  386 # ------------------
  387 # Perform arithmetic evaluation on the ARGs, and store the result in the
  388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389 # must be portable across $(()) and expr.
  390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391   eval 'as_fn_arith ()
  392   {
  393     as_val=$(( $* ))
  394   }'
  395 else
  396   as_fn_arith ()
  397   {
  398     as_val=`expr "$@" || test $? -eq 1`
  399   }
  400 fi # as_fn_arith
  401 
  402 
  403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404 # ----------------------------------------
  405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407 # script with STATUS, using 1 if that was 0.
  408 as_fn_error ()
  409 {
  410   as_status=$1; test $as_status -eq 0 && as_status=1
  411   if test "$4"; then
  412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414   fi
  415   $as_echo "$as_me: error: $2" >&2
  416   as_fn_exit $as_status
  417 } # as_fn_error
  418 
  419 if expr a : '\(a\)' >/dev/null 2>&1 &&
  420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421   as_expr=expr
  422 else
  423   as_expr=false
  424 fi
  425 
  426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427   as_basename=basename
  428 else
  429   as_basename=false
  430 fi
  431 
  432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433   as_dirname=dirname
  434 else
  435   as_dirname=false
  436 fi
  437 
  438 as_me=`$as_basename -- "$0" ||
  439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440      X"$0" : 'X\(//\)$' \| \
  441      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442 $as_echo X/"$0" |
  443     sed '/^.*\/\([^/][^/]*\)\/*$/{
  444         s//\1/
  445         q
  446       }
  447       /^X\/\(\/\/\)$/{
  448         s//\1/
  449         q
  450       }
  451       /^X\/\(\/\).*/{
  452         s//\1/
  453         q
  454       }
  455       s/.*/./; q'`
  456 
  457 # Avoid depending upon Character Ranges.
  458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461 as_cr_digits='0123456789'
  462 as_cr_alnum=$as_cr_Letters$as_cr_digits
  463 
  464 
  465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  470   sed -n '
  471     p
  472     /[$]LINENO/=
  473   ' <$as_myself |
  474     sed '
  475       s/[$]LINENO.*/&-/
  476       t lineno
  477       b
  478       :lineno
  479       N
  480       :loop
  481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482       t loop
  483       s/-\n.*//
  484     ' >$as_me.lineno &&
  485   chmod +x "$as_me.lineno" ||
  486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487 
  488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489   # already done that, so ensure we don't try to do so again and fall
  490   # in an infinite loop.  This has already happened in practice.
  491   _as_can_reexec=no; export _as_can_reexec
  492   # Don't try to exec as it changes $[0], causing all sort of problems
  493   # (the dirname of $[0] is not the place where we might find the
  494   # original and so on.  Autoconf is especially sensitive to this).
  495   . "./$as_me.lineno"
  496   # Exit status is that of the last command.
  497   exit
  498 }
  499 
  500 ECHO_C= ECHO_N= ECHO_T=
  501 case `echo -n x` in #(((((
  502 -n*)
  503   case `echo 'xy\c'` in
  504   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505   xy)  ECHO_C='\c';;
  506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507        ECHO_T=' ';;
  508   esac;;
  509 *)
  510   ECHO_N='-n';;
  511 esac
  512 
  513 rm -f conf$$ conf$$.exe conf$$.file
  514 if test -d conf$$.dir; then
  515   rm -f conf$$.dir/conf$$.file
  516 else
  517   rm -f conf$$.dir
  518   mkdir conf$$.dir 2>/dev/null
  519 fi
  520 if (echo >conf$$.file) 2>/dev/null; then
  521   if ln -s conf$$.file conf$$ 2>/dev/null; then
  522     as_ln_s='ln -s'
  523     # ... but there are two gotchas:
  524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526     # In both cases, we have to default to `cp -pR'.
  527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528       as_ln_s='cp -pR'
  529   elif ln conf$$.file conf$$ 2>/dev/null; then
  530     as_ln_s=ln
  531   else
  532     as_ln_s='cp -pR'
  533   fi
  534 else
  535   as_ln_s='cp -pR'
  536 fi
  537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538 rmdir conf$$.dir 2>/dev/null
  539 
  540 if mkdir -p . 2>/dev/null; then
  541   as_mkdir_p='mkdir -p "$as_dir"'
  542 else
  543   test -d ./-p && rmdir ./-p
  544   as_mkdir_p=false
  545 fi
  546 
  547 as_test_x='test -x'
  548 as_executable_p=as_fn_executable_p
  549 
  550 # Sed expression to map a string onto a valid CPP name.
  551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552 
  553 # Sed expression to map a string onto a valid variable name.
  554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555 
  556 
  557 test -n "$DJDIR" || exec 7<&0 </dev/null
  558 exec 6>&1
  559 
  560 # Name of the host.
  561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562 # so uname gets run too.
  563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564 
  565 #
  566 # Initializations.
  567 #
  568 ac_default_prefix=/usr/local
  569 ac_clean_files=
  570 ac_config_libobj_dir=.
  571 LIBOBJS=
  572 cross_compiling=no
  573 subdirs=
  574 MFLAGS=
  575 MAKEFLAGS=
  576 
  577 # Identity of this package.
  578 PACKAGE_NAME='sarg'
  579 PACKAGE_TARNAME='sarg'
  580 PACKAGE_VERSION='2.4.0'
  581 PACKAGE_STRING='sarg 2.4.0'
  582 PACKAGE_BUGREPORT=''
  583 PACKAGE_URL=''
  584 
  585 ac_unique_file="log.c"
  586 # Factoring default headers for most tests.
  587 ac_includes_default="\
  588 #include <stdio.h>
  589 #ifdef HAVE_SYS_TYPES_H
  590 # include <sys/types.h>
  591 #endif
  592 #ifdef HAVE_SYS_STAT_H
  593 # include <sys/stat.h>
  594 #endif
  595 #ifdef STDC_HEADERS
  596 # include <stdlib.h>
  597 # include <stddef.h>
  598 #else
  599 # ifdef HAVE_STDLIB_H
  600 #  include <stdlib.h>
  601 # endif
  602 #endif
  603 #ifdef HAVE_STRING_H
  604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  605 #  include <memory.h>
  606 # endif
  607 # include <string.h>
  608 #endif
  609 #ifdef HAVE_STRINGS_H
  610 # include <strings.h>
  611 #endif
  612 #ifdef HAVE_INTTYPES_H
  613 # include <inttypes.h>
  614 #endif
  615 #ifdef HAVE_STDINT_H
  616 # include <stdint.h>
  617 #endif
  618 #ifdef HAVE_UNISTD_H
  619 # include <unistd.h>
  620 #endif"
  621 
  622 gt_needs=
  623 ac_subst_vars='LTLIBOBJS
  624 LIBOBJS
  625 VERSION
  626 PACKAGE
  627 XSL_HTML_STYLESHEET
  628 XSL_MAN_STYLESHEET
  629 IMAGEDIR
  630 FONTDIR
  631 SARGPHPDIR
  632 POSUB
  633 LTLIBINTL
  634 LIBINTL
  635 INTLLIBS
  636 INTL_MACOSX_LIBS
  637 XGETTEXT_EXTRA_OPTIONS
  638 MSGMERGE
  639 XGETTEXT_015
  640 XGETTEXT
  641 GMSGFMT_015
  642 MSGFMT_015
  643 GMSGFMT
  644 MSGFMT
  645 GETTEXT_MACRO_VERSION
  646 USE_NLS
  647 mkdir_p
  648 MKDIR_P
  649 INSTALL_DATA
  650 INSTALL_SCRIPT
  651 INSTALL_PROGRAM
  652 SET_MAKE
  653 LTLIBICONV
  654 LIBICONV
  655 EGREP
  656 GREP
  657 CPP
  658 OBJEXT
  659 EXEEXT
  660 ac_ct_CC
  661 CPPFLAGS
  662 LDFLAGS
  663 CFLAGS
  664 CC
  665 host_os
  666 host_vendor
  667 host_cpu
  668 host
  669 build_os
  670 build_vendor
  671 build_cpu
  672 build
  673 target_alias
  674 host_alias
  675 build_alias
  676 LIBS
  677 ECHO_T
  678 ECHO_N
  679 ECHO_C
  680 DEFS
  681 mandir
  682 localedir
  683 libdir
  684 psdir
  685 pdfdir
  686 dvidir
  687 htmldir
  688 infodir
  689 docdir
  690 oldincludedir
  691 includedir
  692 runstatedir
  693 localstatedir
  694 sharedstatedir
  695 sysconfdir
  696 datadir
  697 datarootdir
  698 libexecdir
  699 sbindir
  700 bindir
  701 program_transform_name
  702 prefix
  703 exec_prefix
  704 PACKAGE_URL
  705 PACKAGE_BUGREPORT
  706 PACKAGE_STRING
  707 PACKAGE_VERSION
  708 PACKAGE_TARNAME
  709 PACKAGE_NAME
  710 PATH_SEPARATOR
  711 SHELL'
  712 ac_subst_files=''
  713 ac_user_opts='
  714 enable_option_checking
  715 with_gcc
  716 with_gd
  717 with_ldap
  718 with_iconv
  719 with_gnu_ld
  720 enable_rpath
  721 with_libiconv_prefix
  722 with_pcre
  723 with_glob
  724 with_zlib
  725 with_bzlib
  726 with_liblzma
  727 enable_nls
  728 with_libintl_prefix
  729 enable_largefile
  730 enable_sargphp
  731 enable_fontdir
  732 enable_imagedir
  733 enable_extraprotection
  734 enable_doublecheck
  735 enable_xsl_man
  736 enable_xsl_html
  737 '
  738       ac_precious_vars='build_alias
  739 host_alias
  740 target_alias
  741 CC
  742 CFLAGS
  743 LDFLAGS
  744 LIBS
  745 CPPFLAGS
  746 CPP'
  747 
  748 
  749 # Initialize some variables set by options.
  750 ac_init_help=
  751 ac_init_version=false
  752 ac_unrecognized_opts=
  753 ac_unrecognized_sep=
  754 # The variables have the same names as the options, with
  755 # dashes changed to underlines.
  756 cache_file=/dev/null
  757 exec_prefix=NONE
  758 no_create=
  759 no_recursion=
  760 prefix=NONE
  761 program_prefix=NONE
  762 program_suffix=NONE
  763 program_transform_name=s,x,x,
  764 silent=
  765 site=
  766 srcdir=
  767 verbose=
  768 x_includes=NONE
  769 x_libraries=NONE
  770 
  771 # Installation directory options.
  772 # These are left unexpanded so users can "make install exec_prefix=/foo"
  773 # and all the variables that are supposed to be based on exec_prefix
  774 # by default will actually change.
  775 # Use braces instead of parens because sh, perl, etc. also accept them.
  776 # (The list follows the same order as the GNU Coding Standards.)
  777 bindir='${exec_prefix}/bin'
  778 sbindir='${exec_prefix}/sbin'
  779 libexecdir='${exec_prefix}/libexec'
  780 datarootdir='${prefix}/share'
  781 datadir='${datarootdir}'
  782 sysconfdir='${prefix}/etc'
  783 sharedstatedir='${prefix}/com'
  784 localstatedir='${prefix}/var'
  785 runstatedir='${localstatedir}/run'
  786 includedir='${prefix}/include'
  787 oldincludedir='/usr/include'
  788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  789 infodir='${datarootdir}/info'
  790 htmldir='${docdir}'
  791 dvidir='${docdir}'
  792 pdfdir='${docdir}'
  793 psdir='${docdir}'
  794 libdir='${exec_prefix}/lib'
  795 localedir='${datarootdir}/locale'
  796 mandir='${datarootdir}/man'
  797 
  798 ac_prev=
  799 ac_dashdash=
  800 for ac_option
  801 do
  802   # If the previous option needs an argument, assign it.
  803   if test -n "$ac_prev"; then
  804     eval $ac_prev=\$ac_option
  805     ac_prev=
  806     continue
  807   fi
  808 
  809   case $ac_option in
  810   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  811   *=)   ac_optarg= ;;
  812   *)    ac_optarg=yes ;;
  813   esac
  814 
  815   # Accept the important Cygnus configure options, so we can diagnose typos.
  816 
  817   case $ac_dashdash$ac_option in
  818   --)
  819     ac_dashdash=yes ;;
  820 
  821   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  822     ac_prev=bindir ;;
  823   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  824     bindir=$ac_optarg ;;
  825 
  826   -build | --build | --buil | --bui | --bu)
  827     ac_prev=build_alias ;;
  828   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  829     build_alias=$ac_optarg ;;
  830 
  831   -cache-file | --cache-file | --cache-fil | --cache-fi \
  832   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  833     ac_prev=cache_file ;;
  834   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  835   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  836     cache_file=$ac_optarg ;;
  837 
  838   --config-cache | -C)
  839     cache_file=config.cache ;;
  840 
  841   -datadir | --datadir | --datadi | --datad)
  842     ac_prev=datadir ;;
  843   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  844     datadir=$ac_optarg ;;
  845 
  846   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  847   | --dataroo | --dataro | --datar)
  848     ac_prev=datarootdir ;;
  849   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  850   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  851     datarootdir=$ac_optarg ;;
  852 
  853   -disable-* | --disable-*)
  854     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  855     # Reject names that are not valid shell variable names.
  856     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  857       as_fn_error $? "invalid feature name: $ac_useropt"
  858     ac_useropt_orig=$ac_useropt
  859     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  860     case $ac_user_opts in
  861       *"
  862 "enable_$ac_useropt"
  863 "*) ;;
  864       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  865      ac_unrecognized_sep=', ';;
  866     esac
  867     eval enable_$ac_useropt=no ;;
  868 
  869   -docdir | --docdir | --docdi | --doc | --do)
  870     ac_prev=docdir ;;
  871   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  872     docdir=$ac_optarg ;;
  873 
  874   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875     ac_prev=dvidir ;;
  876   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877     dvidir=$ac_optarg ;;
  878 
  879   -enable-* | --enable-*)
  880     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  881     # Reject names that are not valid shell variable names.
  882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  883       as_fn_error $? "invalid feature name: $ac_useropt"
  884     ac_useropt_orig=$ac_useropt
  885     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  886     case $ac_user_opts in
  887       *"
  888 "enable_$ac_useropt"
  889 "*) ;;
  890       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  891      ac_unrecognized_sep=', ';;
  892     esac
  893     eval enable_$ac_useropt=\$ac_optarg ;;
  894 
  895   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  896   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  897   | --exec | --exe | --ex)
  898     ac_prev=exec_prefix ;;
  899   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  900   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  901   | --exec=* | --exe=* | --ex=*)
  902     exec_prefix=$ac_optarg ;;
  903 
  904   -gas | --gas | --ga | --g)
  905     # Obsolete; use --with-gas.
  906     with_gas=yes ;;
  907 
  908   -help | --help | --hel | --he | -h)
  909     ac_init_help=long ;;
  910   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  911     ac_init_help=recursive ;;
  912   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  913     ac_init_help=short ;;
  914 
  915   -host | --host | --hos | --ho)
  916     ac_prev=host_alias ;;
  917   -host=* | --host=* | --hos=* | --ho=*)
  918     host_alias=$ac_optarg ;;
  919 
  920   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  921     ac_prev=htmldir ;;
  922   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  923   | --ht=*)
  924     htmldir=$ac_optarg ;;
  925 
  926   -includedir | --includedir | --includedi | --included | --include \
  927   | --includ | --inclu | --incl | --inc)
  928     ac_prev=includedir ;;
  929   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  930   | --includ=* | --inclu=* | --incl=* | --inc=*)
  931     includedir=$ac_optarg ;;
  932 
  933   -infodir | --infodir | --infodi | --infod | --info | --inf)
  934     ac_prev=infodir ;;
  935   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  936     infodir=$ac_optarg ;;
  937 
  938   -libdir | --libdir | --libdi | --libd)
  939     ac_prev=libdir ;;
  940   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  941     libdir=$ac_optarg ;;
  942 
  943   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  944   | --libexe | --libex | --libe)
  945     ac_prev=libexecdir ;;
  946   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  947   | --libexe=* | --libex=* | --libe=*)
  948     libexecdir=$ac_optarg ;;
  949 
  950   -localedir | --localedir | --localedi | --localed | --locale)
  951     ac_prev=localedir ;;
  952   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  953     localedir=$ac_optarg ;;
  954 
  955   -localstatedir | --localstatedir | --localstatedi | --localstated \
  956   | --localstate | --localstat | --localsta | --localst | --locals)
  957     ac_prev=localstatedir ;;
  958   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  959   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  960     localstatedir=$ac_optarg ;;
  961 
  962   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963     ac_prev=mandir ;;
  964   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965     mandir=$ac_optarg ;;
  966 
  967   -nfp | --nfp | --nf)
  968     # Obsolete; use --without-fp.
  969     with_fp=no ;;
  970 
  971   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  972   | --no-cr | --no-c | -n)
  973     no_create=yes ;;
  974 
  975   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  976   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  977     no_recursion=yes ;;
  978 
  979   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  980   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  981   | --oldin | --oldi | --old | --ol | --o)
  982     ac_prev=oldincludedir ;;
  983   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  984   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  985   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  986     oldincludedir=$ac_optarg ;;
  987 
  988   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  989     ac_prev=prefix ;;
  990   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  991     prefix=$ac_optarg ;;
  992 
  993   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  994   | --program-pre | --program-pr | --program-p)
  995     ac_prev=program_prefix ;;
  996   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  997   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  998     program_prefix=$ac_optarg ;;
  999 
 1000   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1001   | --program-suf | --program-su | --program-s)
 1002     ac_prev=program_suffix ;;
 1003   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1004   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1005     program_suffix=$ac_optarg ;;
 1006 
 1007   -program-transform-name | --program-transform-name \
 1008   | --program-transform-nam | --program-transform-na \
 1009   | --program-transform-n | --program-transform- \
 1010   | --program-transform | --program-transfor \
 1011   | --program-transfo | --program-transf \
 1012   | --program-trans | --program-tran \
 1013   | --progr-tra | --program-tr | --program-t)
 1014     ac_prev=program_transform_name ;;
 1015   -program-transform-name=* | --program-transform-name=* \
 1016   | --program-transform-nam=* | --program-transform-na=* \
 1017   | --program-transform-n=* | --program-transform-=* \
 1018   | --program-transform=* | --program-transfor=* \
 1019   | --program-transfo=* | --program-transf=* \
 1020   | --program-trans=* | --program-tran=* \
 1021   | --progr-tra=* | --program-tr=* | --program-t=*)
 1022     program_transform_name=$ac_optarg ;;
 1023 
 1024   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1025     ac_prev=pdfdir ;;
 1026   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1027     pdfdir=$ac_optarg ;;
 1028 
 1029   -psdir | --psdir | --psdi | --psd | --ps)
 1030     ac_prev=psdir ;;
 1031   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1032     psdir=$ac_optarg ;;
 1033 
 1034   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1035   | -silent | --silent | --silen | --sile | --sil)
 1036     silent=yes ;;
 1037 
 1038   -runstatedir | --runstatedir | --runstatedi | --runstated \
 1039   | --runstate | --runstat | --runsta | --runst | --runs \
 1040   | --run | --ru | --r)
 1041     ac_prev=runstatedir ;;
 1042   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 1043   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 1044   | --run=* | --ru=* | --r=*)
 1045     runstatedir=$ac_optarg ;;
 1046 
 1047   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1048     ac_prev=sbindir ;;
 1049   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1050   | --sbi=* | --sb=*)
 1051     sbindir=$ac_optarg ;;
 1052 
 1053   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1054   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1055   | --sharedst | --shareds | --shared | --share | --shar \
 1056   | --sha | --sh)
 1057     ac_prev=sharedstatedir ;;
 1058   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1059   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1060   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1061   | --sha=* | --sh=*)
 1062     sharedstatedir=$ac_optarg ;;
 1063 
 1064   -site | --site | --sit)
 1065     ac_prev=site ;;
 1066   -site=* | --site=* | --sit=*)
 1067     site=$ac_optarg ;;
 1068 
 1069   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1070     ac_prev=srcdir ;;
 1071   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1072     srcdir=$ac_optarg ;;
 1073 
 1074   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1075   | --syscon | --sysco | --sysc | --sys | --sy)
 1076     ac_prev=sysconfdir ;;
 1077   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1078   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1079     sysconfdir=$ac_optarg ;;
 1080 
 1081   -target | --target | --targe | --targ | --tar | --ta | --t)
 1082     ac_prev=target_alias ;;
 1083   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1084     target_alias=$ac_optarg ;;
 1085 
 1086   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1087     verbose=yes ;;
 1088 
 1089   -version | --version | --versio | --versi | --vers | -V)
 1090     ac_init_version=: ;;
 1091 
 1092   -with-* | --with-*)
 1093     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1094     # Reject names that are not valid shell variable names.
 1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1096       as_fn_error $? "invalid package name: $ac_useropt"
 1097     ac_useropt_orig=$ac_useropt
 1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1099     case $ac_user_opts in
 1100       *"
 1101 "with_$ac_useropt"
 1102 "*) ;;
 1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1104      ac_unrecognized_sep=', ';;
 1105     esac
 1106     eval with_$ac_useropt=\$ac_optarg ;;
 1107 
 1108   -without-* | --without-*)
 1109     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1110     # Reject names that are not valid shell variable names.
 1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1112       as_fn_error $? "invalid package name: $ac_useropt"
 1113     ac_useropt_orig=$ac_useropt
 1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1115     case $ac_user_opts in
 1116       *"
 1117 "with_$ac_useropt"
 1118 "*) ;;
 1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1120      ac_unrecognized_sep=', ';;
 1121     esac
 1122     eval with_$ac_useropt=no ;;
 1123 
 1124   --x)
 1125     # Obsolete; use --with-x.
 1126     with_x=yes ;;
 1127 
 1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1129   | --x-incl | --x-inc | --x-in | --x-i)
 1130     ac_prev=x_includes ;;
 1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1133     x_includes=$ac_optarg ;;
 1134 
 1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1137     ac_prev=x_libraries ;;
 1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1140     x_libraries=$ac_optarg ;;
 1141 
 1142   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1143 Try \`$0 --help' for more information"
 1144     ;;
 1145 
 1146   *=*)
 1147     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1148     # Reject names that are not valid shell variable names.
 1149     case $ac_envvar in #(
 1150       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1151       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1152     esac
 1153     eval $ac_envvar=\$ac_optarg
 1154     export $ac_envvar ;;
 1155 
 1156   *)
 1157     # FIXME: should be removed in autoconf 3.0.
 1158     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1160       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1161     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1162     ;;
 1163 
 1164   esac
 1165 done
 1166 
 1167 if test -n "$ac_prev"; then
 1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1169   as_fn_error $? "missing argument to $ac_option"
 1170 fi
 1171 
 1172 if test -n "$ac_unrecognized_opts"; then
 1173   case $enable_option_checking in
 1174     no) ;;
 1175     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1176     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1177   esac
 1178 fi
 1179 
 1180 # Check all directory arguments for consistency.
 1181 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1182         datadir sysconfdir sharedstatedir localstatedir includedir \
 1183         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1184         libdir localedir mandir runstatedir
 1185 do
 1186   eval ac_val=\$$ac_var
 1187   # Remove trailing slashes.
 1188   case $ac_val in
 1189     */ )
 1190       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1191       eval $ac_var=\$ac_val;;
 1192   esac
 1193   # Be sure to have absolute directory names.
 1194   case $ac_val in
 1195     [\\/$]* | ?:[\\/]* )  continue;;
 1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1197   esac
 1198   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1199 done
 1200 
 1201 # There might be people who depend on the old broken behavior: `$host'
 1202 # used to hold the argument of --host etc.
 1203 # FIXME: To remove some day.
 1204 build=$build_alias
 1205 host=$host_alias
 1206 target=$target_alias
 1207 
 1208 # FIXME: To remove some day.
 1209 if test "x$host_alias" != x; then
 1210   if test "x$build_alias" = x; then
 1211     cross_compiling=maybe
 1212   elif test "x$build_alias" != "x$host_alias"; then
 1213     cross_compiling=yes
 1214   fi
 1215 fi
 1216 
 1217 ac_tool_prefix=
 1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1219 
 1220 test "$silent" = yes && exec 6>/dev/null
 1221 
 1222 
 1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1224 ac_ls_di=`ls -di .` &&
 1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1226   as_fn_error $? "working directory cannot be determined"
 1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1228   as_fn_error $? "pwd does not report name of working directory"
 1229 
 1230 
 1231 # Find the source files, if location was not specified.
 1232 if test -z "$srcdir"; then
 1233   ac_srcdir_defaulted=yes
 1234   # Try the directory containing this script, then the parent directory.
 1235   ac_confdir=`$as_dirname -- "$as_myself" ||
 1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1237      X"$as_myself" : 'X\(//\)[^/]' \| \
 1238      X"$as_myself" : 'X\(//\)$' \| \
 1239      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1240 $as_echo X"$as_myself" |
 1241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1242         s//\1/
 1243         q
 1244       }
 1245       /^X\(\/\/\)[^/].*/{
 1246         s//\1/
 1247         q
 1248       }
 1249       /^X\(\/\/\)$/{
 1250         s//\1/
 1251         q
 1252       }
 1253       /^X\(\/\).*/{
 1254         s//\1/
 1255         q
 1256       }
 1257       s/.*/./; q'`
 1258   srcdir=$ac_confdir
 1259   if test ! -r "$srcdir/$ac_unique_file"; then
 1260     srcdir=..
 1261   fi
 1262 else
 1263   ac_srcdir_defaulted=no
 1264 fi
 1265 if test ! -r "$srcdir/$ac_unique_file"; then
 1266   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1267   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1268 fi
 1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1270 ac_abs_confdir=`(
 1271     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1272     pwd)`
 1273 # When building in place, set srcdir=.
 1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1275   srcdir=.
 1276 fi
 1277 # Remove unnecessary trailing slashes from srcdir.
 1278 # Double slashes in file names in object file debugging info
 1279 # mess up M-x gdb in Emacs.
 1280 case $srcdir in
 1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1282 esac
 1283 for ac_var in $ac_precious_vars; do
 1284   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1285   eval ac_env_${ac_var}_value=\$${ac_var}
 1286   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1287   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1288 done
 1289 
 1290 #
 1291 # Report the --help message.
 1292 #
 1293 if test "$ac_init_help" = "long"; then
 1294   # Omit some internal or obsolete options to make the list less imposing.
 1295   # This message is too long to be a string in the A/UX 3.1 sh.
 1296   cat <<_ACEOF
 1297 \`configure' configures sarg 2.4.0 to adapt to many kinds of systems.
 1298 
 1299 Usage: $0 [OPTION]... [VAR=VALUE]...
 1300 
 1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1302 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1303 
 1304 Defaults for the options are specified in brackets.
 1305 
 1306 Configuration:
 1307   -h, --help              display this help and exit
 1308       --help=short        display options specific to this package
 1309       --help=recursive    display the short help of all the included packages
 1310   -V, --version           display version information and exit
 1311   -q, --quiet, --silent   do not print \`checking ...' messages
 1312       --cache-file=FILE   cache test results in FILE [disabled]
 1313   -C, --config-cache      alias for \`--cache-file=config.cache'
 1314   -n, --no-create         do not create output files
 1315       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1316 
 1317 Installation directories:
 1318   --prefix=PREFIX         install architecture-independent files in PREFIX
 1319                           [$ac_default_prefix]
 1320   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1321                           [PREFIX]
 1322 
 1323 By default, \`make install' will install all the files in
 1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1326 for instance \`--prefix=\$HOME'.
 1327 
 1328 For better control, use the options below.
 1329 
 1330 Fine tuning of the installation directories:
 1331   --bindir=DIR            user executables [EPREFIX/bin]
 1332   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1333   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1334   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1335   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1336   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1337   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
 1338   --libdir=DIR            object code libraries [EPREFIX/lib]
 1339   --includedir=DIR        C header files [PREFIX/include]
 1340   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1341   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1342   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1343   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1344   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1345   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1346   --docdir=DIR            documentation root [DATAROOTDIR/doc/sarg]
 1347   --htmldir=DIR           html documentation [DOCDIR]
 1348   --dvidir=DIR            dvi documentation [DOCDIR]
 1349   --pdfdir=DIR            pdf documentation [DOCDIR]
 1350   --psdir=DIR             ps documentation [DOCDIR]
 1351 _ACEOF
 1352 
 1353   cat <<\_ACEOF
 1354 
 1355 System types:
 1356   --build=BUILD     configure for building on BUILD [guessed]
 1357   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1358 _ACEOF
 1359 fi
 1360 
 1361 if test -n "$ac_init_help"; then
 1362   case $ac_init_help in
 1363      short | recursive ) echo "Configuration of sarg 2.4.0:";;
 1364    esac
 1365   cat <<\_ACEOF
 1366 
 1367 Optional Features:
 1368   --disable-option-checking  ignore unrecognized --enable/--with options
 1369   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1370   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1371   --disable-rpath         do not hardcode runtime library paths
 1372   --disable-nls           do not use Native Language Support
 1373   --disable-largefile     omit support for large files
 1374   --enable-sargphp=sargphpdir
 1375                           Select sargphpdir as the directory to install
 1376                           sarg-php into
 1377   --enable-fontdir=fontdir
 1378                           Select fontdir as the directory with the fonts to
 1379                           use in the reports
 1380   --enable-imagedir=imagedir
 1381                           Select imagedir as the directory with the images to
 1382                           use in the reports
 1383   --enable-extraprotection
 1384                           Enable compile and runtime extra protections
 1385   --enable-doublecheck    Make sarg double check the data it manipulates and
 1386                           output a warning if an error is found
 1387   --enable-xsl-man=man-xsl-style-sheet
 1388                           Select the directory containing the the XSL
 1389                           stylesheets to convert DocBook into man page
 1390   --enable-xsl-html=html-xsl-style-sheet
 1391                           Select the directory containing the the XSL
 1392                           stylesheets to convert DocBook into html page
 1393 
 1394 Optional Packages:
 1395   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1396   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1397   --without-gcc           use CC to compile
 1398   --with-gd               Compile with support for the graphical gd library
 1399   --with-ldap             Compile with LDAP support
 1400   --with-iconv            Compile with support for iconv
 1401   --with-gnu-ld           assume the C compiler uses GNU ld default=no
 1402   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 1403   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 1404   --with-pcre             Compile with support for the Perl Compatible Regular
 1405                           Expressions library
 1406   --without-glob          Ignore wildcards in file names
 1407   --with-zlib             Compile with support to decompress gz files
 1408   --with-bzlib            Compile with support to decompress bz2 files
 1409   --with-liblzma          Compile with support to decompress xz files
 1410   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 1411   --without-libintl-prefix     don't search for libintl in includedir and libdir
 1412 
 1413 Some influential environment variables:
 1414   CC          C compiler command
 1415   CFLAGS      C compiler flags
 1416   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1417               nonstandard directory <lib dir>
 1418   LIBS        libraries to pass to the linker, e.g. -l<library>
 1419   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1420               you have headers in a nonstandard directory <include dir>
 1421   CPP         C preprocessor
 1422 
 1423 Use these variables to override the choices made by `configure' or to help
 1424 it to find libraries and programs with nonstandard names/locations.
 1425 
 1426 Report bugs to the package provider.
 1427 _ACEOF
 1428 ac_status=$?
 1429 fi
 1430 
 1431 if test "$ac_init_help" = "recursive"; then
 1432   # If there are subdirs, report their specific --help.
 1433   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1434     test -d "$ac_dir" ||
 1435       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1436       continue
 1437     ac_builddir=.
 1438 
 1439 case "$ac_dir" in
 1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1441 *)
 1442   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1443   # A ".." for each directory in $ac_dir_suffix.
 1444   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1445   case $ac_top_builddir_sub in
 1446   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1447   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1448   esac ;;
 1449 esac
 1450 ac_abs_top_builddir=$ac_pwd
 1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1452 # for backward compatibility:
 1453 ac_top_builddir=$ac_top_build_prefix
 1454 
 1455 case $srcdir in
 1456   .)  # We are building in place.
 1457     ac_srcdir=.
 1458     ac_top_srcdir=$ac_top_builddir_sub
 1459     ac_abs_top_srcdir=$ac_pwd ;;
 1460   [\\/]* | ?:[\\/]* )  # Absolute name.
 1461     ac_srcdir=$srcdir$ac_dir_suffix;
 1462     ac_top_srcdir=$srcdir
 1463     ac_abs_top_srcdir=$srcdir ;;
 1464   *) # Relative name.
 1465     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1466     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1467     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1468 esac
 1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1470 
 1471     cd "$ac_dir" || { ac_status=$?; continue; }
 1472     # Check for guested configure.
 1473     if test -f "$ac_srcdir/configure.gnu"; then
 1474       echo &&
 1475       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1476     elif test -f "$ac_srcdir/configure"; then
 1477       echo &&
 1478       $SHELL "$ac_srcdir/configure" --help=recursive
 1479     else
 1480       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1481     fi || ac_status=$?
 1482     cd "$ac_pwd" || { ac_status=$?; break; }
 1483   done
 1484 fi
 1485 
 1486 test -n "$ac_init_help" && exit $ac_status
 1487 if $ac_init_version; then
 1488   cat <<\_ACEOF
 1489 sarg configure 2.4.0
 1490 generated by GNU Autoconf 2.69
 1491 
 1492 Copyright (C) 2012 Free Software Foundation, Inc.
 1493 This configure script is free software; the Free Software Foundation
 1494 gives unlimited permission to copy, distribute and modify it.
 1495 _ACEOF
 1496   exit
 1497 fi
 1498 
 1499 ## ------------------------ ##
 1500 ## Autoconf initialization. ##
 1501 ## ------------------------ ##
 1502 
 1503 # ac_fn_c_try_compile LINENO
 1504 # --------------------------
 1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1506 ac_fn_c_try_compile ()
 1507 {
 1508   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1509   rm -f conftest.$ac_objext
 1510   if { { ac_try="$ac_compile"
 1511 case "(($ac_try" in
 1512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1513   *) ac_try_echo=$ac_try;;
 1514 esac
 1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1516 $as_echo "$ac_try_echo"; } >&5
 1517   (eval "$ac_compile") 2>conftest.err
 1518   ac_status=$?
 1519   if test -s conftest.err; then
 1520     grep -v '^ *+' conftest.err >conftest.er1
 1521     cat conftest.er1 >&5
 1522     mv -f conftest.er1 conftest.err
 1523   fi
 1524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1525   test $ac_status = 0; } && {
 1526      test -z "$ac_c_werror_flag" ||
 1527      test ! -s conftest.err
 1528        } && test -s conftest.$ac_objext; then :
 1529   ac_retval=0
 1530 else
 1531   $as_echo "$as_me: failed program was:" >&5
 1532 sed 's/^/| /' conftest.$ac_ext >&5
 1533 
 1534     ac_retval=1
 1535 fi
 1536   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1537   as_fn_set_status $ac_retval
 1538 
 1539 } # ac_fn_c_try_compile
 1540 
 1541 # ac_fn_c_try_link LINENO
 1542 # -----------------------
 1543 # Try to link conftest.$ac_ext, and return whether this succeeded.
 1544 ac_fn_c_try_link ()
 1545 {
 1546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1547   rm -f conftest.$ac_objext conftest$ac_exeext
 1548   if { { ac_try="$ac_link"
 1549 case "(($ac_try" in
 1550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1551   *) ac_try_echo=$ac_try;;
 1552 esac
 1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1554 $as_echo "$ac_try_echo"; } >&5
 1555   (eval "$ac_link") 2>conftest.err
 1556   ac_status=$?
 1557   if test -s conftest.err; then
 1558     grep -v '^ *+' conftest.err >conftest.er1
 1559     cat conftest.er1 >&5
 1560     mv -f conftest.er1 conftest.err
 1561   fi
 1562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1563   test $ac_status = 0; } && {
 1564      test -z "$ac_c_werror_flag" ||
 1565      test ! -s conftest.err
 1566        } && test -s conftest$ac_exeext && {
 1567      test "$cross_compiling" = yes ||
 1568      test -x conftest$ac_exeext
 1569        }; then :
 1570   ac_retval=0
 1571 else
 1572   $as_echo "$as_me: failed program was:" >&5
 1573 sed 's/^/| /' conftest.$ac_ext >&5
 1574 
 1575     ac_retval=1
 1576 fi
 1577   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1578   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1579   # interfere with the next link command; also delete a directory that is
 1580   # left behind by Apple's compiler.  We do this before executing the actions.
 1581   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1582   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1583   as_fn_set_status $ac_retval
 1584 
 1585 } # ac_fn_c_try_link
 1586 
 1587 # ac_fn_c_try_cpp LINENO
 1588 # ----------------------
 1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1590 ac_fn_c_try_cpp ()
 1591 {
 1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1593   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1594 case "(($ac_try" in
 1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1596   *) ac_try_echo=$ac_try;;
 1597 esac
 1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1599 $as_echo "$ac_try_echo"; } >&5
 1600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1601   ac_status=$?
 1602   if test -s conftest.err; then
 1603     grep -v '^ *+' conftest.err >conftest.er1
 1604     cat conftest.er1 >&5
 1605     mv -f conftest.er1 conftest.err
 1606   fi
 1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1608   test $ac_status = 0; } > conftest.i && {
 1609      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1610      test ! -s conftest.err
 1611        }; then :
 1612   ac_retval=0
 1613 else
 1614   $as_echo "$as_me: failed program was:" >&5
 1615 sed 's/^/| /' conftest.$ac_ext >&5
 1616 
 1617     ac_retval=1
 1618 fi
 1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1620   as_fn_set_status $ac_retval
 1621 
 1622 } # ac_fn_c_try_cpp
 1623 
 1624 # ac_fn_c_try_run LINENO
 1625 # ----------------------
 1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1627 # that executables *can* be run.
 1628 ac_fn_c_try_run ()
 1629 {
 1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1631   if { { ac_try="$ac_link"
 1632 case "(($ac_try" in
 1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1634   *) ac_try_echo=$ac_try;;
 1635 esac
 1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1637 $as_echo "$ac_try_echo"; } >&5
 1638   (eval "$ac_link") 2>&5
 1639   ac_status=$?
 1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1641   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1642   { { case "(($ac_try" in
 1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1644   *) ac_try_echo=$ac_try;;
 1645 esac
 1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1647 $as_echo "$ac_try_echo"; } >&5
 1648   (eval "$ac_try") 2>&5
 1649   ac_status=$?
 1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1651   test $ac_status = 0; }; }; then :
 1652   ac_retval=0
 1653 else
 1654   $as_echo "$as_me: program exited with status $ac_status" >&5
 1655        $as_echo "$as_me: failed program was:" >&5
 1656 sed 's/^/| /' conftest.$ac_ext >&5
 1657 
 1658        ac_retval=$ac_status
 1659 fi
 1660   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1662   as_fn_set_status $ac_retval
 1663 
 1664 } # ac_fn_c_try_run
 1665 
 1666 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1667 # -------------------------------------------------------
 1668 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1669 # the include files in INCLUDES and setting the cache variable VAR
 1670 # accordingly.
 1671 ac_fn_c_check_header_mongrel ()
 1672 {
 1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1674   if eval \${$3+:} false; then :
 1675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1676 $as_echo_n "checking for $2... " >&6; }
 1677 if eval \${$3+:} false; then :
 1678   $as_echo_n "(cached) " >&6
 1679 fi
 1680 eval ac_res=\$$3
 1681            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1682 $as_echo "$ac_res" >&6; }
 1683 else
 1684   # Is the header compilable?
 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1686 $as_echo_n "checking $2 usability... " >&6; }
 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1688 /* end confdefs.h.  */
 1689 $4
 1690 #include <$2>
 1691 _ACEOF
 1692 if ac_fn_c_try_compile "$LINENO"; then :
 1693   ac_header_compiler=yes
 1694 else
 1695   ac_header_compiler=no
 1696 fi
 1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1699 $as_echo "$ac_header_compiler" >&6; }
 1700 
 1701 # Is the header present?
 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1703 $as_echo_n "checking $2 presence... " >&6; }
 1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1705 /* end confdefs.h.  */
 1706 #include <$2>
 1707 _ACEOF
 1708 if ac_fn_c_try_cpp "$LINENO"; then :
 1709   ac_header_preproc=yes
 1710 else
 1711   ac_header_preproc=no
 1712 fi
 1713 rm -f conftest.err conftest.i conftest.$ac_ext
 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1715 $as_echo "$ac_header_preproc" >&6; }
 1716 
 1717 # So?  What about this header?
 1718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1719   yes:no: )
 1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1721 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1724     ;;
 1725   no:yes:* )
 1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1727 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1729 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1731 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1733 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1735 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1736     ;;
 1737 esac
 1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1739 $as_echo_n "checking for $2... " >&6; }
 1740 if eval \${$3+:} false; then :
 1741   $as_echo_n "(cached) " >&6
 1742 else
 1743   eval "$3=\$ac_header_compiler"
 1744 fi
 1745 eval ac_res=\$$3
 1746            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1747 $as_echo "$ac_res" >&6; }
 1748 fi
 1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1750 
 1751 } # ac_fn_c_check_header_mongrel
 1752 
 1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1754 # -------------------------------------------------------
 1755 # Tests whether HEADER exists and can be compiled using the include files in
 1756 # INCLUDES, setting the cache variable VAR accordingly.
 1757 ac_fn_c_check_header_compile ()
 1758 {
 1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1761 $as_echo_n "checking for $2... " >&6; }
 1762 if eval \${$3+:} false; then :
 1763   $as_echo_n "(cached) " >&6
 1764 else
 1765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1766 /* end confdefs.h.  */
 1767 $4
 1768 #include <$2>
 1769 _ACEOF
 1770 if ac_fn_c_try_compile "$LINENO"; then :
 1771   eval "$3=yes"
 1772 else
 1773   eval "$3=no"
 1774 fi
 1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1776 fi
 1777 eval ac_res=\$$3
 1778            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1779 $as_echo "$ac_res" >&6; }
 1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1781 
 1782 } # ac_fn_c_check_header_compile
 1783 
 1784 # ac_fn_c_check_func LINENO FUNC VAR
 1785 # ----------------------------------
 1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1787 ac_fn_c_check_func ()
 1788 {
 1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1791 $as_echo_n "checking for $2... " >&6; }
 1792 if eval \${$3+:} false; then :
 1793   $as_echo_n "(cached) " >&6
 1794 else
 1795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1796 /* end confdefs.h.  */
 1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1799 #define $2 innocuous_$2
 1800 
 1801 /* System header to define __stub macros and hopefully few prototypes,
 1802     which can conflict with char $2 (); below.
 1803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1804     <limits.h> exists even on freestanding compilers.  */
 1805 
 1806 #ifdef __STDC__
 1807 # include <limits.h>
 1808 #else
 1809 # include <assert.h>
 1810 #endif
 1811 
 1812 #undef $2
 1813 
 1814 /* Override any GCC internal prototype to avoid an error.
 1815    Use char because int might match the return type of a GCC
 1816    builtin and then its argument prototype would still apply.  */
 1817 #ifdef __cplusplus
 1818 extern "C"
 1819 #endif
 1820 char $2 ();
 1821 /* The GNU C library defines this for functions which it implements
 1822     to always fail with ENOSYS.  Some functions are actually named
 1823     something starting with __ and the normal name is an alias.  */
 1824 #if defined __stub_$2 || defined __stub___$2
 1825 choke me
 1826 #endif
 1827 
 1828 int
 1829 main ()
 1830 {
 1831 return $2 ();
 1832   ;
 1833   return 0;
 1834 }
 1835 _ACEOF
 1836 if ac_fn_c_try_link "$LINENO"; then :
 1837   eval "$3=yes"
 1838 else
 1839   eval "$3=no"
 1840 fi
 1841 rm -f core conftest.err conftest.$ac_objext \
 1842     conftest$ac_exeext conftest.$ac_ext
 1843 fi
 1844 eval ac_res=\$$3
 1845            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1846 $as_echo "$ac_res" >&6; }
 1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1848 
 1849 } # ac_fn_c_check_func
 1850 
 1851 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 1852 # ----------------------------------------------------
 1853 # Tries to find if the field MEMBER exists in type AGGR, after including
 1854 # INCLUDES, setting cache variable VAR accordingly.
 1855 ac_fn_c_check_member ()
 1856 {
 1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 1859 $as_echo_n "checking for $2.$3... " >&6; }
 1860 if eval \${$4+:} false; then :
 1861   $as_echo_n "(cached) " >&6
 1862 else
 1863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1864 /* end confdefs.h.  */
 1865 $5
 1866 int
 1867 main ()
 1868 {
 1869 static $2 ac_aggr;
 1870 if (ac_aggr.$3)
 1871 return 0;
 1872   ;
 1873   return 0;
 1874 }
 1875 _ACEOF
 1876 if ac_fn_c_try_compile "$LINENO"; then :
 1877   eval "$4=yes"
 1878 else
 1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1880 /* end confdefs.h.  */
 1881 $5
 1882 int
 1883 main ()
 1884 {
 1885 static $2 ac_aggr;
 1886 if (sizeof ac_aggr.$3)
 1887 return 0;
 1888   ;
 1889   return 0;
 1890 }
 1891 _ACEOF
 1892 if ac_fn_c_try_compile "$LINENO"; then :
 1893   eval "$4=yes"
 1894 else
 1895   eval "$4=no"
 1896 fi
 1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1898 fi
 1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1900 fi
 1901 eval ac_res=\$$4
 1902            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1903 $as_echo "$ac_res" >&6; }
 1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1905 
 1906 } # ac_fn_c_check_member
 1907 
 1908 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 1909 # --------------------------------------------
 1910 # Tries to find the compile-time value of EXPR in a program that includes
 1911 # INCLUDES, setting VAR accordingly. Returns whether the value could be
 1912 # computed
 1913 ac_fn_c_compute_int ()
 1914 {
 1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1916   if test "$cross_compiling" = yes; then
 1917     # Depending upon the size, compute the lo and hi bounds.
 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1919 /* end confdefs.h.  */
 1920 $4
 1921 int
 1922 main ()
 1923 {
 1924 static int test_array [1 - 2 * !(($2) >= 0)];
 1925 test_array [0] = 0;
 1926 return test_array [0];
 1927 
 1928   ;
 1929   return 0;
 1930 }
 1931 _ACEOF
 1932 if ac_fn_c_try_compile "$LINENO"; then :
 1933   ac_lo=0 ac_mid=0
 1934   while :; do
 1935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1936 /* end confdefs.h.  */
 1937 $4
 1938 int
 1939 main ()
 1940 {
 1941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 1942 test_array [0] = 0;
 1943 return test_array [0];
 1944 
 1945   ;
 1946   return 0;
 1947 }
 1948 _ACEOF
 1949 if ac_fn_c_try_compile "$LINENO"; then :
 1950   ac_hi=$ac_mid; break
 1951 else
 1952   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 1953             if test $ac_lo -le $ac_mid; then
 1954               ac_lo= ac_hi=
 1955               break
 1956             fi
 1957             as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 1958 fi
 1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1960   done
 1961 else
 1962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1963 /* end confdefs.h.  */
 1964 $4
 1965 int
 1966 main ()
 1967 {
 1968 static int test_array [1 - 2 * !(($2) < 0)];
 1969 test_array [0] = 0;
 1970 return test_array [0];
 1971 
 1972   ;
 1973   return 0;
 1974 }
 1975 _ACEOF
 1976 if ac_fn_c_try_compile "$LINENO"; then :
 1977   ac_hi=-1 ac_mid=-1
 1978   while :; do
 1979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1980 /* end confdefs.h.  */
 1981 $4
 1982 int
 1983 main ()
 1984 {
 1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 1986 test_array [0] = 0;
 1987 return test_array [0];
 1988 
 1989   ;
 1990   return 0;
 1991 }
 1992 _ACEOF
 1993 if ac_fn_c_try_compile "$LINENO"; then :
 1994   ac_lo=$ac_mid; break
 1995 else
 1996   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 1997             if test $ac_mid -le $ac_hi; then
 1998               ac_lo= ac_hi=
 1999               break
 2000             fi
 2001             as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 2002 fi
 2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2004   done
 2005 else
 2006   ac_lo= ac_hi=
 2007 fi
 2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2009 fi
 2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2011 # Binary search between lo and hi bounds.
 2012 while test "x$ac_lo" != "x$ac_hi"; do
 2013   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2015 /* end confdefs.h.  */
 2016 $4
 2017 int
 2018 main ()
 2019 {
 2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2021 test_array [0] = 0;
 2022 return test_array [0];
 2023 
 2024   ;
 2025   return 0;
 2026 }
 2027 _ACEOF
 2028 if ac_fn_c_try_compile "$LINENO"; then :
 2029   ac_hi=$ac_mid
 2030 else
 2031   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 2032 fi
 2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2034 done
 2035 case $ac_lo in #((
 2036 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 2037 '') ac_retval=1 ;;
 2038 esac
 2039   else
 2040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2041 /* end confdefs.h.  */
 2042 $4
 2043 static long int longval () { return $2; }
 2044 static unsigned long int ulongval () { return $2; }
 2045 #include <stdio.h>
 2046 #include <stdlib.h>
 2047 int
 2048 main ()
 2049 {
 2050 
 2051   FILE *f = fopen ("conftest.val", "w");
 2052   if (! f)
 2053     return 1;
 2054   if (($2) < 0)
 2055     {
 2056       long int i = longval ();
 2057       if (i != ($2))
 2058     return 1;
 2059       fprintf (f, "%ld", i);
 2060     }
 2061   else
 2062     {
 2063       unsigned long int i = ulongval ();
 2064       if (i != ($2))
 2065     return 1;
 2066       fprintf (f, "%lu", i);
 2067     }
 2068   /* Do not output a trailing newline, as this causes \r\n confusion
 2069      on some platforms.  */
 2070   return ferror (f) || fclose (f) != 0;
 2071 
 2072   ;
 2073   return 0;
 2074 }
 2075 _ACEOF
 2076 if ac_fn_c_try_run "$LINENO"; then :
 2077   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 2078 else
 2079   ac_retval=1
 2080 fi
 2081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 2082   conftest.$ac_objext conftest.beam conftest.$ac_ext
 2083 rm -f conftest.val
 2084 
 2085   fi
 2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2087   as_fn_set_status $ac_retval
 2088 
 2089 } # ac_fn_c_compute_int
 2090 
 2091 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 2092 # ---------------------------------------------
 2093 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 2094 # accordingly.
 2095 ac_fn_c_check_decl ()
 2096 {
 2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2098   as_decl_name=`echo $2|sed 's/ *(.*//'`
 2099   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 2100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 2101 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 2102 if eval \${$3+:} false; then :
 2103   $as_echo_n "(cached) " >&6
 2104 else
 2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2106 /* end confdefs.h.  */
 2107 $4
 2108 int
 2109 main ()
 2110 {
 2111 #ifndef $as_decl_name
 2112 #ifdef __cplusplus
 2113   (void) $as_decl_use;
 2114 #else
 2115   (void) $as_decl_name;
 2116 #endif
 2117 #endif
 2118 
 2119   ;
 2120   return 0;
 2121 }
 2122 _ACEOF
 2123 if ac_fn_c_try_compile "$LINENO"; then :
 2124   eval "$3=yes"
 2125 else
 2126   eval "$3=no"
 2127 fi
 2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2129 fi
 2130 eval ac_res=\$$3
 2131            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2132 $as_echo "$ac_res" >&6; }
 2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2134 
 2135 } # ac_fn_c_check_decl
 2136 cat >config.log <<_ACEOF
 2137 This file contains any messages produced by compilers while
 2138 running configure, to aid debugging if configure makes a mistake.
 2139 
 2140 It was created by sarg $as_me 2.4.0, which was
 2141 generated by GNU Autoconf 2.69.  Invocation command line was
 2142 
 2143   $ $0 $@
 2144 
 2145 _ACEOF
 2146 exec 5>>config.log
 2147 {
 2148 cat <<_ASUNAME
 2149 ## --------- ##
 2150 ## Platform. ##
 2151 ## --------- ##
 2152 
 2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2158 
 2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2160 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2161 
 2162 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2163 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2165 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2166 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2167 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2168 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2169 
 2170 _ASUNAME
 2171 
 2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2173 for as_dir in $PATH
 2174 do
 2175   IFS=$as_save_IFS
 2176   test -z "$as_dir" && as_dir=.
 2177     $as_echo "PATH: $as_dir"
 2178   done
 2179 IFS=$as_save_IFS
 2180 
 2181 } >&5
 2182 
 2183 cat >&5 <<_ACEOF
 2184 
 2185 
 2186 ## ----------- ##
 2187 ## Core tests. ##
 2188 ## ----------- ##
 2189 
 2190 _ACEOF
 2191 
 2192 
 2193 # Keep a trace of the command line.
 2194 # Strip out --no-create and --no-recursion so they do not pile up.
 2195 # Strip out --silent because we don't want to record it for future runs.
 2196 # Also quote any args containing shell meta-characters.
 2197 # Make two passes to allow for proper duplicate-argument suppression.
 2198 ac_configure_args=
 2199 ac_configure_args0=
 2200 ac_configure_args1=
 2201 ac_must_keep_next=false
 2202 for ac_pass in 1 2
 2203 do
 2204   for ac_arg
 2205   do
 2206     case $ac_arg in
 2207     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2208     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2209     | -silent | --silent | --silen | --sile | --sil)
 2210       continue ;;
 2211     *\'*)
 2212       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2213     esac
 2214     case $ac_pass in
 2215     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2216     2)
 2217       as_fn_append ac_configure_args1 " '$ac_arg'"
 2218       if test $ac_must_keep_next = true; then
 2219     ac_must_keep_next=false # Got value, back to normal.
 2220       else
 2221     case $ac_arg in
 2222       *=* | --config-cache | -C | -disable-* | --disable-* \
 2223       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2224       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2225       | -with-* | --with-* | -without-* | --without-* | --x)
 2226         case "$ac_configure_args0 " in
 2227           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2228         esac
 2229         ;;
 2230       -* ) ac_must_keep_next=true ;;
 2231     esac
 2232       fi
 2233       as_fn_append ac_configure_args " '$ac_arg'"
 2234       ;;
 2235     esac
 2236   done
 2237 done
 2238 { ac_configure_args0=; unset ac_configure_args0;}
 2239 { ac_configure_args1=; unset ac_configure_args1;}
 2240 
 2241 # When interrupted or exit'd, cleanup temporary files, and complete
 2242 # config.log.  We remove comments because anyway the quotes in there
 2243 # would cause problems or look ugly.
 2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
 2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2246 trap 'exit_status=$?
 2247   # Save into config.log some information that might help in debugging.
 2248   {
 2249     echo
 2250 
 2251     $as_echo "## ---------------- ##
 2252 ## Cache variables. ##
 2253 ## ---------------- ##"
 2254     echo
 2255     # The following way of writing the cache mishandles newlines in values,
 2256 (
 2257   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2258     eval ac_val=\$$ac_var
 2259     case $ac_val in #(
 2260     *${as_nl}*)
 2261       case $ac_var in #(
 2262       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2264       esac
 2265       case $ac_var in #(
 2266       _ | IFS | as_nl) ;; #(
 2267       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2268       *) { eval $ac_var=; unset $ac_var;} ;;
 2269       esac ;;
 2270     esac
 2271   done
 2272   (set) 2>&1 |
 2273     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2274     *${as_nl}ac_space=\ *)
 2275       sed -n \
 2276     "s/'\''/'\''\\\\'\'''\''/g;
 2277       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2278       ;; #(
 2279     *)
 2280       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2281       ;;
 2282     esac |
 2283     sort
 2284 )
 2285     echo
 2286 
 2287     $as_echo "## ----------------- ##
 2288 ## Output variables. ##
 2289 ## ----------------- ##"
 2290     echo
 2291     for ac_var in $ac_subst_vars
 2292     do
 2293       eval ac_val=\$$ac_var
 2294       case $ac_val in
 2295       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2296       esac
 2297       $as_echo "$ac_var='\''$ac_val'\''"
 2298     done | sort
 2299     echo
 2300 
 2301     if test -n "$ac_subst_files"; then
 2302       $as_echo "## ------------------- ##
 2303 ## File substitutions. ##
 2304 ## ------------------- ##"
 2305       echo
 2306       for ac_var in $ac_subst_files
 2307       do
 2308     eval ac_val=\$$ac_var
 2309     case $ac_val in
 2310     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2311     esac
 2312     $as_echo "$ac_var='\''$ac_val'\''"
 2313       done | sort
 2314       echo
 2315     fi
 2316 
 2317     if test -s confdefs.h; then
 2318       $as_echo "## ----------- ##
 2319 ## confdefs.h. ##
 2320 ## ----------- ##"
 2321       echo
 2322       cat confdefs.h
 2323       echo
 2324     fi
 2325     test "$ac_signal" != 0 &&
 2326       $as_echo "$as_me: caught signal $ac_signal"
 2327     $as_echo "$as_me: exit $exit_status"
 2328   } >&5
 2329   rm -f core *.core core.conftest.* &&
 2330     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2331     exit $exit_status
 2332 ' 0
 2333 for ac_signal in 1 2 13 15; do
 2334   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2335 done
 2336 ac_signal=0
 2337 
 2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2339 rm -f -r conftest* confdefs.h
 2340 
 2341 $as_echo "/* confdefs.h */" > confdefs.h
 2342 
 2343 # Predefined preprocessor variables.
 2344 
 2345 cat >>confdefs.h <<_ACEOF
 2346 #define PACKAGE_NAME "$PACKAGE_NAME"
 2347 _ACEOF
 2348 
 2349 cat >>confdefs.h <<_ACEOF
 2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2351 _ACEOF
 2352 
 2353 cat >>confdefs.h <<_ACEOF
 2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2355 _ACEOF
 2356 
 2357 cat >>confdefs.h <<_ACEOF
 2358 #define PACKAGE_STRING "$PACKAGE_STRING"
 2359 _ACEOF
 2360 
 2361 cat >>confdefs.h <<_ACEOF
 2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2363 _ACEOF
 2364 
 2365 cat >>confdefs.h <<_ACEOF
 2366 #define PACKAGE_URL "$PACKAGE_URL"
 2367 _ACEOF
 2368 
 2369 
 2370 # Let the site file select an alternate cache file if it wants to.
 2371 # Prefer an explicitly selected file to automatically selected ones.
 2372 ac_site_file1=NONE
 2373 ac_site_file2=NONE
 2374 if test -n "$CONFIG_SITE"; then
 2375   # We do not want a PATH search for config.site.
 2376   case $CONFIG_SITE in #((
 2377     -*)  ac_site_file1=./$CONFIG_SITE;;
 2378     */*) ac_site_file1=$CONFIG_SITE;;
 2379     *)   ac_site_file1=./$CONFIG_SITE;;
 2380   esac
 2381 elif test "x$prefix" != xNONE; then
 2382   ac_site_file1=$prefix/share/config.site
 2383   ac_site_file2=$prefix/etc/config.site
 2384 else
 2385   ac_site_file1=$ac_default_prefix/share/config.site
 2386   ac_site_file2=$ac_default_prefix/etc/config.site
 2387 fi
 2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2389 do
 2390   test "x$ac_site_file" = xNONE && continue
 2391   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2392     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2394     sed 's/^/| /' "$ac_site_file" >&5
 2395     . "$ac_site_file" \
 2396       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2398 as_fn_error $? "failed to load site script $ac_site_file
 2399 See \`config.log' for more details" "$LINENO" 5; }
 2400   fi
 2401 done
 2402 
 2403 if test -r "$cache_file"; then
 2404   # Some versions of bash will fail to source /dev/null (special files
 2405   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2406   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2407     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2409     case $cache_file in
 2410       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2411       *)                      . "./$cache_file";;
 2412     esac
 2413   fi
 2414 else
 2415   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2417   >$cache_file
 2418 fi
 2419 
 2420 gt_needs="$gt_needs "
 2421 # Check that the precious variables saved in the cache have kept the same
 2422 # value.
 2423 ac_cache_corrupted=false
 2424 for ac_var in $ac_precious_vars; do
 2425   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2426   eval ac_new_set=\$ac_env_${ac_var}_set
 2427   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2428   eval ac_new_val=\$ac_env_${ac_var}_value
 2429   case $ac_old_set,$ac_new_set in
 2430     set,)
 2431       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2432 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2433       ac_cache_corrupted=: ;;
 2434     ,set)
 2435       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2436 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2437       ac_cache_corrupted=: ;;
 2438     ,);;
 2439     *)
 2440       if test "x$ac_old_val" != "x$ac_new_val"; then
 2441     # differences in whitespace do not lead to failure.
 2442     ac_old_val_w=`echo x $ac_old_val`
 2443     ac_new_val_w=`echo x $ac_new_val`
 2444     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2445       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2446 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2447       ac_cache_corrupted=:
 2448     else
 2449       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2450 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2451       eval $ac_var=\$ac_old_val
 2452     fi
 2453     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2454 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2455     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2456 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2457       fi;;
 2458   esac
 2459   # Pass precious variables to config.status.
 2460   if test "$ac_new_set" = set; then
 2461     case $ac_new_val in
 2462     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2463     *) ac_arg=$ac_var=$ac_new_val ;;
 2464     esac
 2465     case " $ac_configure_args " in
 2466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2467       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2468     esac
 2469   fi
 2470 done
 2471 if $ac_cache_corrupted; then
 2472   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2474   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2475 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2476   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2477 fi
 2478 ## -------------------- ##
 2479 ## Main body of script. ##
 2480 ## -------------------- ##
 2481 
 2482 ac_ext=c
 2483 ac_cpp='$CPP $CPPFLAGS'
 2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2487 
 2488 
 2489 
 2490 ac_aux_dir=
 2491 for ac_dir in cfgaux "$srcdir"/cfgaux; do
 2492   if test -f "$ac_dir/install-sh"; then
 2493     ac_aux_dir=$ac_dir
 2494     ac_install_sh="$ac_aux_dir/install-sh -c"
 2495     break
 2496   elif test -f "$ac_dir/install.sh"; then
 2497     ac_aux_dir=$ac_dir
 2498     ac_install_sh="$ac_aux_dir/install.sh -c"
 2499     break
 2500   elif test -f "$ac_dir/shtool"; then
 2501     ac_aux_dir=$ac_dir
 2502     ac_install_sh="$ac_aux_dir/shtool install -c"
 2503     break
 2504   fi
 2505 done
 2506 if test -z "$ac_aux_dir"; then
 2507   as_fn_error $? "cannot find install-sh, install.sh, or shtool in cfgaux \"$srcdir\"/cfgaux" "$LINENO" 5
 2508 fi
 2509 
 2510 # These three variables are undocumented and unsupported,
 2511 # and are intended to be withdrawn in a future Autoconf release.
 2512 # They can cause serious problems if a builder's source tree is in a directory
 2513 # whose full name contains unusual characters.
 2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2516 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2517 
 2518 
 2519 
 2520 
 2521 
 2522 # Make sure we can run config.sub.
 2523 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 2524   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 2525 
 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 2527 $as_echo_n "checking build system type... " >&6; }
 2528 if ${ac_cv_build+:} false; then :
 2529   $as_echo_n "(cached) " >&6
 2530 else
 2531   ac_build_alias=$build_alias
 2532 test "x$ac_build_alias" = x &&
 2533   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 2534 test "x$ac_build_alias" = x &&
 2535   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 2536 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 2537   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 2538 
 2539 fi
 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 2541 $as_echo "$ac_cv_build" >&6; }
 2542 case $ac_cv_build in
 2543 *-*-*) ;;
 2544 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 2545 esac
 2546 build=$ac_cv_build
 2547 ac_save_IFS=$IFS; IFS='-'
 2548 set x $ac_cv_build
 2549 shift
 2550 build_cpu=$1
 2551 build_vendor=$2
 2552 shift; shift
 2553 # Remember, the first character of IFS is used to create $*,
 2554 # except with old shells:
 2555 build_os=$*
 2556 IFS=$ac_save_IFS
 2557 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 2558 
 2559 
 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 2561 $as_echo_n "checking host system type... " >&6; }
 2562 if ${ac_cv_host+:} false; then :
 2563   $as_echo_n "(cached) " >&6
 2564 else
 2565   if test "x$host_alias" = x; then
 2566   ac_cv_host=$ac_cv_build
 2567 else
 2568   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 2569     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 2570 fi
 2571 
 2572 fi
 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 2574 $as_echo "$ac_cv_host" >&6; }
 2575 case $ac_cv_host in
 2576 *-*-*) ;;
 2577 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 2578 esac
 2579 host=$ac_cv_host
 2580 ac_save_IFS=$IFS; IFS='-'
 2581 set x $ac_cv_host
 2582 shift
 2583 host_cpu=$1
 2584 host_vendor=$2
 2585 shift; shift
 2586 # Remember, the first character of IFS is used to create $*,
 2587 # except with old shells:
 2588 host_os=$*
 2589 IFS=$ac_save_IFS
 2590 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 2591 
 2592 
 2593 
 2594 
 2595 # Check whether --with-gcc was given.
 2596 if test "${with_gcc+set}" = set; then :
 2597   withval=$with_gcc;
 2598 fi
 2599 
 2600 
 2601 test -n "$CC" && cc_specified=yes
 2602 case ${with_gcc} in
 2603   yes ) CC=gcc ;;
 2604   no  ) CC=cc ;;
 2605   *   ) ac_ext=c
 2606 ac_cpp='$CPP $CPPFLAGS'
 2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2610 if test -n "$ac_tool_prefix"; then
 2611   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2614 $as_echo_n "checking for $ac_word... " >&6; }
 2615 if ${ac_cv_prog_CC+:} false; then :
 2616   $as_echo_n "(cached) " >&6
 2617 else
 2618   if test -n "$CC"; then
 2619   ac_cv_prog_CC="$CC" # Let the user override the test.
 2620 else
 2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2622 for as_dir in $PATH
 2623 do
 2624   IFS=$as_save_IFS
 2625   test -z "$as_dir" && as_dir=.
 2626     for ac_exec_ext in '' $ac_executable_extensions; do
 2627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2628     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2630     break 2
 2631   fi
 2632 done
 2633   done
 2634 IFS=$as_save_IFS
 2635 
 2636 fi
 2637 fi
 2638 CC=$ac_cv_prog_CC
 2639 if test -n "$CC"; then
 2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2641 $as_echo "$CC" >&6; }
 2642 else
 2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2644 $as_echo "no" >&6; }
 2645 fi
 2646 
 2647 
 2648 fi
 2649 if test -z "$ac_cv_prog_CC"; then
 2650   ac_ct_CC=$CC
 2651   # Extract the first word of "gcc", so it can be a program name with args.
 2652 set dummy gcc; ac_word=$2
 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2654 $as_echo_n "checking for $ac_word... " >&6; }
 2655 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2656   $as_echo_n "(cached) " >&6
 2657 else
 2658   if test -n "$ac_ct_CC"; then
 2659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2660 else
 2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2662 for as_dir in $PATH
 2663 do
 2664   IFS=$as_save_IFS
 2665   test -z "$as_dir" && as_dir=.
 2666     for ac_exec_ext in '' $ac_executable_extensions; do
 2667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2668     ac_cv_prog_ac_ct_CC="gcc"
 2669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2670     break 2
 2671   fi
 2672 done
 2673   done
 2674 IFS=$as_save_IFS
 2675 
 2676 fi
 2677 fi
 2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2679 if test -n "$ac_ct_CC"; then
 2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2681 $as_echo "$ac_ct_CC" >&6; }
 2682 else
 2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2684 $as_echo "no" >&6; }
 2685 fi
 2686 
 2687   if test "x$ac_ct_CC" = x; then
 2688     CC=""
 2689   else
 2690     case $cross_compiling:$ac_tool_warned in
 2691 yes:)
 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2694 ac_tool_warned=yes ;;
 2695 esac
 2696     CC=$ac_ct_CC
 2697   fi
 2698 else
 2699   CC="$ac_cv_prog_CC"
 2700 fi
 2701 
 2702 if test -z "$CC"; then
 2703           if test -n "$ac_tool_prefix"; then
 2704     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2705 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2707 $as_echo_n "checking for $ac_word... " >&6; }
 2708 if ${ac_cv_prog_CC+:} false; then :
 2709   $as_echo_n "(cached) " >&6
 2710 else
 2711   if test -n "$CC"; then
 2712   ac_cv_prog_CC="$CC" # Let the user override the test.
 2713 else
 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2715 for as_dir in $PATH
 2716 do
 2717   IFS=$as_save_IFS
 2718   test -z "$as_dir" && as_dir=.
 2719     for ac_exec_ext in '' $ac_executable_extensions; do
 2720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2721     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2723     break 2
 2724   fi
 2725 done
 2726   done
 2727 IFS=$as_save_IFS
 2728 
 2729 fi
 2730 fi
 2731 CC=$ac_cv_prog_CC
 2732 if test -n "$CC"; then
 2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2734 $as_echo "$CC" >&6; }
 2735 else
 2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2737 $as_echo "no" >&6; }
 2738 fi
 2739 
 2740 
 2741   fi
 2742 fi
 2743 if test -z "$CC"; then
 2744   # Extract the first word of "cc", so it can be a program name with args.
 2745 set dummy cc; ac_word=$2
 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2747 $as_echo_n "checking for $ac_word... " >&6; }
 2748 if ${ac_cv_prog_CC+:} false; then :
 2749   $as_echo_n "(cached) " >&6
 2750 else
 2751   if test -n "$CC"; then
 2752   ac_cv_prog_CC="$CC" # Let the user override the test.
 2753 else
 2754   ac_prog_rejected=no
 2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2756 for as_dir in $PATH
 2757 do
 2758   IFS=$as_save_IFS
 2759   test -z "$as_dir" && as_dir=.
 2760     for ac_exec_ext in '' $ac_executable_extensions; do
 2761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2763        ac_prog_rejected=yes
 2764        continue
 2765      fi
 2766     ac_cv_prog_CC="cc"
 2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2768     break 2
 2769   fi
 2770 done
 2771   done
 2772 IFS=$as_save_IFS
 2773 
 2774 if test $ac_prog_rejected = yes; then
 2775   # We found a bogon in the path, so make sure we never use it.
 2776   set dummy $ac_cv_prog_CC
 2777   shift
 2778   if test $# != 0; then
 2779     # We chose a different compiler from the bogus one.
 2780     # However, it has the same basename, so the bogon will be chosen
 2781     # first if we set CC to just the basename; use the full file name.
 2782     shift
 2783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2784   fi
 2785 fi
 2786 fi
 2787 fi
 2788 CC=$ac_cv_prog_CC
 2789 if test -n "$CC"; then
 2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2791 $as_echo "$CC" >&6; }
 2792 else
 2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2794 $as_echo "no" >&6; }
 2795 fi
 2796 
 2797 
 2798 fi
 2799 if test -z "$CC"; then
 2800   if test -n "$ac_tool_prefix"; then
 2801   for ac_prog in cl.exe
 2802   do
 2803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2806 $as_echo_n "checking for $ac_word... " >&6; }
 2807 if ${ac_cv_prog_CC+:} false; then :
 2808   $as_echo_n "(cached) " >&6
 2809 else
 2810   if test -n "$CC"; then
 2811   ac_cv_prog_CC="$CC" # Let the user override the test.
 2812 else
 2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2814 for as_dir in $PATH
 2815 do
 2816   IFS=$as_save_IFS
 2817   test -z "$as_dir" && as_dir=.
 2818     for ac_exec_ext in '' $ac_executable_extensions; do
 2819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2822     break 2
 2823   fi
 2824 done
 2825   done
 2826 IFS=$as_save_IFS
 2827 
 2828 fi
 2829 fi
 2830 CC=$ac_cv_prog_CC
 2831 if test -n "$CC"; then
 2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2833 $as_echo "$CC" >&6; }
 2834 else
 2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2836 $as_echo "no" >&6; }
 2837 fi
 2838 
 2839 
 2840     test -n "$CC" && break
 2841   done
 2842 fi
 2843 if test -z "$CC"; then
 2844   ac_ct_CC=$CC
 2845   for ac_prog in cl.exe
 2846 do
 2847   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2848 set dummy $ac_prog; ac_word=$2
 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2850 $as_echo_n "checking for $ac_word... " >&6; }
 2851 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2852   $as_echo_n "(cached) " >&6
 2853 else
 2854   if test -n "$ac_ct_CC"; then
 2855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2856 else
 2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2858 for as_dir in $PATH
 2859 do
 2860   IFS=$as_save_IFS
 2861   test -z "$as_dir" && as_dir=.
 2862     for ac_exec_ext in '' $ac_executable_extensions; do
 2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2864     ac_cv_prog_ac_ct_CC="$ac_prog"
 2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2866     break 2
 2867   fi
 2868 done
 2869   done
 2870 IFS=$as_save_IFS
 2871 
 2872 fi
 2873 fi
 2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2875 if test -n "$ac_ct_CC"; then
 2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2877 $as_echo "$ac_ct_CC" >&6; }
 2878 else
 2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2880 $as_echo "no" >&6; }
 2881 fi
 2882 
 2883 
 2884   test -n "$ac_ct_CC" && break
 2885 done
 2886 
 2887   if test "x$ac_ct_CC" = x; then
 2888     CC=""
 2889   else
 2890     case $cross_compiling:$ac_tool_warned in
 2891 yes:)
 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2894 ac_tool_warned=yes ;;
 2895 esac
 2896     CC=$ac_ct_CC
 2897   fi
 2898 fi
 2899 
 2900 fi
 2901 
 2902 
 2903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2905 as_fn_error $? "no acceptable C compiler found in \$PATH
 2906 See \`config.log' for more details" "$LINENO" 5; }
 2907 
 2908 # Provide some information about the compiler.
 2909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2910 set X $ac_compile
 2911 ac_compiler=$2
 2912 for ac_option in --version -v -V -qversion; do
 2913   { { ac_try="$ac_compiler $ac_option >&5"
 2914 case "(($ac_try" in
 2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2916   *) ac_try_echo=$ac_try;;
 2917 esac
 2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2919 $as_echo "$ac_try_echo"; } >&5
 2920   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2921   ac_status=$?
 2922   if test -s conftest.err; then
 2923     sed '10a\
 2924 ... rest of stderr output deleted ...
 2925          10q' conftest.err >conftest.er1
 2926     cat conftest.er1 >&5
 2927   fi
 2928   rm -f conftest.er1 conftest.err
 2929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2930   test $ac_status = 0; }
 2931 done
 2932 
 2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2934 /* end confdefs.h.  */
 2935 
 2936 int
 2937 main ()
 2938 {
 2939 
 2940   ;
 2941   return 0;
 2942 }
 2943 _ACEOF
 2944 ac_clean_files_save=$ac_clean_files
 2945 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2946 # Try to create an executable without -o first, disregard a.out.
 2947 # It will help us diagnose broken compilers, and finding out an intuition
 2948 # of exeext.
 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2950 $as_echo_n "checking whether the C compiler works... " >&6; }
 2951 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2952 
 2953 # The possible output files:
 2954 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2955 
 2956 ac_rmfiles=
 2957 for ac_file in $ac_files
 2958 do
 2959   case $ac_file in
 2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2961     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2962   esac
 2963 done
 2964 rm -f $ac_rmfiles
 2965 
 2966 if { { ac_try="$ac_link_default"
 2967 case "(($ac_try" in
 2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2969   *) ac_try_echo=$ac_try;;
 2970 esac
 2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2972 $as_echo "$ac_try_echo"; } >&5
 2973   (eval "$ac_link_default") 2>&5
 2974   ac_status=$?
 2975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2976   test $ac_status = 0; }; then :
 2977   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2978 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2979 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2980 # so that the user can short-circuit this test for compilers unknown to
 2981 # Autoconf.
 2982 for ac_file in $ac_files ''
 2983 do
 2984   test -f "$ac_file" || continue
 2985   case $ac_file in
 2986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2987     ;;
 2988     [ab].out )
 2989     # We found the default executable, but exeext='' is most
 2990     # certainly right.
 2991     break;;
 2992     *.* )
 2993     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2994     then :; else
 2995        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2996     fi
 2997     # We set ac_cv_exeext here because the later test for it is not
 2998     # safe: cross compilers may not add the suffix if given an `-o'
 2999     # argument, so we may need to know it at that point already.
 3000     # Even if this section looks crufty: it has the advantage of
 3001     # actually working.
 3002     break;;
 3003     * )
 3004     break;;
 3005   esac
 3006 done
 3007 test "$ac_cv_exeext" = no && ac_cv_exeext=
 3008 
 3009 else
 3010   ac_file=''
 3011 fi
 3012 if test -z "$ac_file"; then :
 3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3014 $as_echo "no" >&6; }
 3015 $as_echo "$as_me: failed program was:" >&5
 3016 sed 's/^/| /' conftest.$ac_ext >&5
 3017 
 3018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3020 as_fn_error 77 "C compiler cannot create executables
 3021 See \`config.log' for more details" "$LINENO" 5; }
 3022 else
 3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3024 $as_echo "yes" >&6; }
 3025 fi
 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3027 $as_echo_n "checking for C compiler default output file name... " >&6; }
 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3029 $as_echo "$ac_file" >&6; }
 3030 ac_exeext=$ac_cv_exeext
 3031 
 3032 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3033 ac_clean_files=$ac_clean_files_save
 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3035 $as_echo_n "checking for suffix of executables... " >&6; }
 3036 if { { ac_try="$ac_link"
 3037 case "(($ac_try" in
 3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3039   *) ac_try_echo=$ac_try;;
 3040 esac
 3041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3042 $as_echo "$ac_try_echo"; } >&5
 3043   (eval "$ac_link") 2>&5
 3044   ac_status=$?
 3045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3046   test $ac_status = 0; }; then :
 3047   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3048 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3049 # work properly (i.e., refer to `conftest.exe'), while it won't with
 3050 # `rm'.
 3051 for ac_file in conftest.exe conftest conftest.*; do
 3052   test -f "$ac_file" || continue
 3053   case $ac_file in
 3054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3055     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3056       break;;
 3057     * ) break;;
 3058   esac
 3059 done
 3060 else
 3061   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3063 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3064 See \`config.log' for more details" "$LINENO" 5; }
 3065 fi
 3066 rm -f conftest conftest$ac_cv_exeext
 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3068 $as_echo "$ac_cv_exeext" >&6; }
 3069 
 3070 rm -f conftest.$ac_ext
 3071 EXEEXT=$ac_cv_exeext
 3072 ac_exeext=$EXEEXT
 3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3074 /* end confdefs.h.  */
 3075 #include <stdio.h>
 3076 int
 3077 main ()
 3078 {
 3079 FILE *f = fopen ("conftest.out", "w");
 3080  return ferror (f) || fclose (f) != 0;
 3081 
 3082   ;
 3083   return 0;
 3084 }
 3085 _ACEOF
 3086 ac_clean_files="$ac_clean_files conftest.out"
 3087 # Check that the compiler produces executables we can run.  If not, either
 3088 # the compiler is broken, or we cross compile.
 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3090 $as_echo_n "checking whether we are cross compiling... " >&6; }
 3091 if test "$cross_compiling" != yes; then
 3092   { { ac_try="$ac_link"
 3093 case "(($ac_try" in
 3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3095   *) ac_try_echo=$ac_try;;
 3096 esac
 3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3098 $as_echo "$ac_try_echo"; } >&5
 3099   (eval "$ac_link") 2>&5
 3100   ac_status=$?
 3101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3102   test $ac_status = 0; }
 3103   if { ac_try='./conftest$ac_cv_exeext'
 3104   { { case "(($ac_try" in
 3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3106   *) ac_try_echo=$ac_try;;
 3107 esac
 3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3109 $as_echo "$ac_try_echo"; } >&5
 3110   (eval "$ac_try") 2>&5
 3111   ac_status=$?
 3112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3113   test $ac_status = 0; }; }; then
 3114     cross_compiling=no
 3115   else
 3116     if test "$cross_compiling" = maybe; then
 3117     cross_compiling=yes
 3118     else
 3119     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3121 as_fn_error $? "cannot run C compiled programs.
 3122 If you meant to cross compile, use \`--host'.
 3123 See \`config.log' for more details" "$LINENO" 5; }
 3124     fi
 3125   fi
 3126 fi
 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3128 $as_echo "$cross_compiling" >&6; }
 3129 
 3130 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3131 ac_clean_files=$ac_clean_files_save
 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3133 $as_echo_n "checking for suffix of object files... " >&6; }
 3134 if ${ac_cv_objext+:} false; then :
 3135   $as_echo_n "(cached) " >&6
 3136 else
 3137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3138 /* end confdefs.h.  */
 3139 
 3140 int
 3141 main ()
 3142 {
 3143 
 3144   ;
 3145   return 0;
 3146 }
 3147 _ACEOF
 3148 rm -f conftest.o conftest.obj
 3149 if { { ac_try="$ac_compile"
 3150 case "(($ac_try" in
 3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3152   *) ac_try_echo=$ac_try;;
 3153 esac
 3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3155 $as_echo "$ac_try_echo"; } >&5
 3156   (eval "$ac_compile") 2>&5
 3157   ac_status=$?
 3158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3159   test $ac_status = 0; }; then :
 3160   for ac_file in conftest.o conftest.obj conftest.*; do
 3161   test -f "$ac_file" || continue;
 3162   case $ac_file in
 3163     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3164     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3165        break;;
 3166   esac
 3167 done
 3168 else
 3169   $as_echo "$as_me: failed program was:" >&5
 3170 sed 's/^/| /' conftest.$ac_ext >&5
 3171 
 3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3174 as_fn_error $? "cannot compute suffix of object files: cannot compile
 3175 See \`config.log' for more details" "$LINENO" 5; }
 3176 fi
 3177 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3178 fi
 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3180 $as_echo "$ac_cv_objext" >&6; }
 3181 OBJEXT=$ac_cv_objext
 3182 ac_objext=$OBJEXT
 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3184 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3185 if ${ac_cv_c_compiler_gnu+:} false; then :
 3186   $as_echo_n "(cached) " >&6
 3187 else
 3188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3189 /* end confdefs.h.  */
 3190 
 3191 int
 3192 main ()
 3193 {
 3194 #ifndef __GNUC__
 3195        choke me
 3196 #endif
 3197 
 3198   ;
 3199   return 0;
 3200 }
 3201 _ACEOF
 3202 if ac_fn_c_try_compile "$LINENO"; then :
 3203   ac_compiler_gnu=yes
 3204 else
 3205   ac_compiler_gnu=no
 3206 fi
 3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3209 
 3210 fi
 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3212 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3213 if test $ac_compiler_gnu = yes; then
 3214   GCC=yes
 3215 else
 3216   GCC=
 3217 fi
 3218 ac_test_CFLAGS=${CFLAGS+set}
 3219 ac_save_CFLAGS=$CFLAGS
 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3221 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3222 if ${ac_cv_prog_cc_g+:} false; then :
 3223   $as_echo_n "(cached) " >&6
 3224 else
 3225   ac_save_c_werror_flag=$ac_c_werror_flag
 3226    ac_c_werror_flag=yes
 3227    ac_cv_prog_cc_g=no
 3228    CFLAGS="-g"
 3229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3230 /* end confdefs.h.  */
 3231 
 3232 int
 3233 main ()
 3234 {
 3235 
 3236   ;
 3237   return 0;
 3238 }
 3239 _ACEOF
 3240 if ac_fn_c_try_compile "$LINENO"; then :
 3241   ac_cv_prog_cc_g=yes
 3242 else
 3243   CFLAGS=""
 3244       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3245 /* end confdefs.h.  */
 3246 
 3247 int
 3248 main ()
 3249 {
 3250 
 3251   ;
 3252   return 0;
 3253 }
 3254 _ACEOF
 3255 if ac_fn_c_try_compile "$LINENO"; then :
 3256 
 3257 else
 3258   ac_c_werror_flag=$ac_save_c_werror_flag
 3259      CFLAGS="-g"
 3260      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3261 /* end confdefs.h.  */
 3262 
 3263 int
 3264 main ()
 3265 {
 3266 
 3267   ;
 3268   return 0;
 3269 }
 3270 _ACEOF
 3271 if ac_fn_c_try_compile "$LINENO"; then :
 3272   ac_cv_prog_cc_g=yes
 3273 fi
 3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3275 fi
 3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3277 fi
 3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3279    ac_c_werror_flag=$ac_save_c_werror_flag
 3280 fi
 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3282 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3283 if test "$ac_test_CFLAGS" = set; then
 3284   CFLAGS=$ac_save_CFLAGS
 3285 elif test $ac_cv_prog_cc_g = yes; then
 3286   if test "$GCC" = yes; then
 3287     CFLAGS="-g -O2"
 3288   else
 3289     CFLAGS="-g"
 3290   fi
 3291 else
 3292   if test "$GCC" = yes; then
 3293     CFLAGS="-O2"
 3294   else
 3295     CFLAGS=
 3296   fi
 3297 fi
 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3299 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3300 if ${ac_cv_prog_cc_c89+:} false; then :
 3301   $as_echo_n "(cached) " >&6
 3302 else
 3303   ac_cv_prog_cc_c89=no
 3304 ac_save_CC=$CC
 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3306 /* end confdefs.h.  */
 3307 #include <stdarg.h>
 3308 #include <stdio.h>
 3309 struct stat;
 3310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3311 struct buf { int x; };
 3312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3313 static char *e (p, i)
 3314      char **p;
 3315      int i;
 3316 {
 3317   return p[i];
 3318 }
 3319 static char *f (char * (*g) (char **, int), char **p, ...)
 3320 {
 3321   char *s;
 3322   va_list v;
 3323   va_start (v,p);
 3324   s = g (p, va_arg (v,int));
 3325   va_end (v);
 3326   return s;
 3327 }
 3328 
 3329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3330    function prototypes and stuff, but not '\xHH' hex character constants.
 3331    These don't provoke an error unfortunately, instead are silently treated
 3332    as 'x'.  The following induces an error, until -std is added to get
 3333    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3334    array size at least.  It's necessary to write '\x00'==0 to get something
 3335    that's true only with -std.  */
 3336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3337 
 3338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3339    inside strings and character constants.  */
 3340 #define FOO(x) 'x'
 3341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3342 
 3343 int test (int i, double x);
 3344 struct s1 {int (*f) (int a);};
 3345 struct s2 {int (*f) (double a);};
 3346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3347 int argc;
 3348 char **argv;
 3349 int
 3350 main ()
 3351 {
 3352 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3353   ;
 3354   return 0;
 3355 }
 3356 _ACEOF
 3357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3358     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3359 do
 3360   CC="$ac_save_CC $ac_arg"
 3361   if ac_fn_c_try_compile "$LINENO"; then :
 3362   ac_cv_prog_cc_c89=$ac_arg
 3363 fi
 3364 rm -f core conftest.err conftest.$ac_objext
 3365   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3366 done
 3367 rm -f conftest.$ac_ext
 3368 CC=$ac_save_CC
 3369 
 3370 fi
 3371 # AC_CACHE_VAL
 3372 case "x$ac_cv_prog_cc_c89" in
 3373   x)
 3374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3375 $as_echo "none needed" >&6; } ;;
 3376   xno)
 3377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3378 $as_echo "unsupported" >&6; } ;;
 3379   *)
 3380     CC="$CC $ac_cv_prog_cc_c89"
 3381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3383 esac
 3384 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3385 
 3386 fi
 3387 
 3388 ac_ext=c
 3389 ac_cpp='$CPP $CPPFLAGS'
 3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3393 ;;
 3394 esac
 3395 
 3396 
 3397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 3398 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 3399 if ${ac_cv_prog_cc_c99+:} false; then :
 3400   $as_echo_n "(cached) " >&6
 3401 else
 3402   ac_cv_prog_cc_c99=no
 3403 ac_save_CC=$CC
 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3405 /* end confdefs.h.  */
 3406 #include <stdarg.h>
 3407 #include <stdbool.h>
 3408 #include <stdlib.h>
 3409 #include <wchar.h>
 3410 #include <stdio.h>
 3411 
 3412 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
 3413 #define debug(...) fprintf (stderr, __VA_ARGS__)
 3414 #define showlist(...) puts (#__VA_ARGS__)
 3415 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 3416 static void
 3417 test_varargs_macros (void)
 3418 {
 3419   int x = 1234;
 3420   int y = 5678;
 3421   debug ("Flag");
 3422   debug ("X = %d\n", x);
 3423   showlist (The first, second, and third items.);
 3424   report (x>y, "x is %d but y is %d", x, y);
 3425 }
 3426 
 3427 // Check long long types.
 3428 #define BIG64 18446744073709551615ull
 3429 #define BIG32 4294967295ul
 3430 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 3431 #if !BIG_OK
 3432   your preprocessor is broken;
 3433 #endif
 3434 #if BIG_OK
 3435 #else
 3436   your preprocessor is broken;
 3437 #endif
 3438 static long long int bignum = -9223372036854775807LL;
 3439 static unsigned long long int ubignum = BIG64;
 3440 
 3441 struct incomplete_array
 3442 {
 3443   int datasize;
 3444   double data[];
 3445 };
 3446 
 3447 struct named_init {
 3448   int number;
 3449   const wchar_t *name;
 3450   double average;
 3451 };
 3452 
 3453 typedef const char *ccp;
 3454 
 3455 static inline int
 3456 test_restrict (ccp restrict text)
 3457 {
 3458   // See if C++-style comments work.
 3459   // Iterate through items via the restricted pointer.
 3460   // Also check for declarations in for loops.
 3461   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 3462     continue;
 3463   return 0;
 3464 }
 3465 
 3466 // Check varargs and va_copy.
 3467 static void
 3468 test_varargs (const char *format, ...)
 3469 {
 3470   va_list args;
 3471   va_start (args, format);
 3472   va_list args_copy;
 3473   va_copy (args_copy, args);
 3474 
 3475   const char *str;
 3476   int number;
 3477   float fnumber;
 3478 
 3479   while (*format)
 3480     {
 3481       switch (*format++)
 3482     {
 3483     case 's': // string
 3484       str = va_arg (args_copy, const char *);
 3485       break;
 3486     case 'd': // int
 3487       number = va_arg (args_copy, int);
 3488       break;
 3489     case 'f': // float
 3490       fnumber = va_arg (args_copy, double);
 3491       break;
 3492     default:
 3493       break;
 3494     }
 3495     }
 3496   va_end (args_copy);
 3497   va_end (args);
 3498 }
 3499 
 3500 int
 3501 main ()
 3502 {
 3503 
 3504   // Check bool.
 3505   _Bool success = false;
 3506 
 3507   // Check restrict.
 3508   if (test_restrict ("String literal") == 0)
 3509     success = true;
 3510   char *restrict newvar = "Another string";
 3511 
 3512   // Check varargs.
 3513   test_varargs ("s, d' f .", "string", 65, 34.234);
 3514   test_varargs_macros ();
 3515 
 3516   // Check flexible array members.
 3517   struct incomplete_array *ia =
 3518     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 3519   ia->datasize = 10;
 3520   for (int i = 0; i < ia->datasize; ++i)
 3521     ia->data[i] = i * 1.234;
 3522 
 3523   // Check named initializers.
 3524   struct named_init ni = {
 3525     .number = 34,
 3526     .name = L"Test wide string",
 3527     .average = 543.34343,
 3528   };
 3529 
 3530   ni.number = 58;
 3531 
 3532   int dynamic_array[ni.number];
 3533   dynamic_array[ni.number - 1] = 543;
 3534 
 3535   // work around unused variable warnings
 3536   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 3537       || dynamic_array[ni.number - 1] != 543);
 3538 
 3539   ;
 3540   return 0;
 3541 }
 3542 _ACEOF
 3543 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
 3544 do
 3545   CC="$ac_save_CC $ac_arg"
 3546   if ac_fn_c_try_compile "$LINENO"; then :
 3547   ac_cv_prog_cc_c99=$ac_arg
 3548 fi
 3549 rm -f core conftest.err conftest.$ac_objext
 3550   test "x$ac_cv_prog_cc_c99" != "xno" && break
 3551 done
 3552 rm -f conftest.$ac_ext
 3553 CC=$ac_save_CC
 3554 
 3555 fi
 3556 # AC_CACHE_VAL
 3557 case "x$ac_cv_prog_cc_c99" in
 3558   x)
 3559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3560 $as_echo "none needed" >&6; } ;;
 3561   xno)
 3562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3563 $as_echo "unsupported" >&6; } ;;
 3564   *)
 3565     CC="$CC $ac_cv_prog_cc_c99"
 3566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 3567 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 3568 esac
 3569 if test "x$ac_cv_prog_cc_c99" != xno; then :
 3570 
 3571 fi
 3572 
 3573 
 3574 
 3575 # Report more warnings to improve code quality.
 3576 CFLAGS="${CFLAGS} -Wall"
 3577 
 3578 
 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra warnings flag in $CC" >&5
 3580 $as_echo_n "checking for extra warnings flag in $CC... " >&6; }
 3581 saved_CFLAGS="${CFLAGS}"
 3582 CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
 3583 
 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3585 /* end confdefs.h.  */
 3586 
 3587 _ACEOF
 3588 if ac_fn_c_try_compile "$LINENO"; then :
 3589   have_extra_warnings="yes"
 3590 else
 3591   have_extra_warnings="no"
 3592 fi
 3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_extra_warnings" >&5
 3595 $as_echo "$have_extra_warnings" >&6; }
 3596 if test "$have_extra_warnings" = "no"; then :
 3597   CFLAGS="${saved_CFLAGS}"
 3598 fi
 3599 
 3600 # Don't compare signs as it is a mess
 3601 CFLAGS="${CFLAGS} -Wno-sign-compare"
 3602 
 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for implicit-function-declaration error flag in $CC" >&5
 3604 $as_echo_n "checking for implicit-function-declaration error flag in $CC... " >&6; }
 3605 saved_CFLAGS="${CFLAGS}"
 3606 CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3608 /* end confdefs.h.  */
 3609 
 3610 _ACEOF
 3611 if ac_fn_c_try_compile "$LINENO"; then :
 3612   have_implicit_function_declaration="yes"
 3613 else
 3614   have_implicit_function_declaration="no"
 3615 fi
 3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_implicit_function_declaration" >&5
 3618 $as_echo "$have_implicit_function_declaration" >&6; }
 3619 if test "$have_implicit_function_declaration" = "no"; then :
 3620   CFLAGS="${saved_CFLAGS}"
 3621 fi
 3622 
 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format error flag in $CC" >&5
 3624 $as_echo_n "checking for format error flag in $CC... " >&6; }
 3625 saved_CFLAGS="${CFLAGS}"
 3626 CFLAGS="${CFLAGS} -Werror=format"
 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3628 /* end confdefs.h.  */
 3629 
 3630 _ACEOF
 3631 if ac_fn_c_try_compile "$LINENO"; then :
 3632   have_error_format="yes"
 3633 else
 3634   have_error_format="no"
 3635 fi
 3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_error_format" >&5
 3638 $as_echo "$have_error_format" >&6; }
 3639 if test "$have_error_format" = "no"; then :
 3640   CFLAGS="${saved_CFLAGS}"
 3641 fi
 3642 
 3643 case "$host" in
 3644    *-solaris*)
 3645    LDFLAGS="${LDFLAGS} -lsocket -lnsl"
 3646    CFLAGS="-DSOLARIS ${CFLAGS}"
 3647    ;;
 3648 esac
 3649 
 3650 #dnl Checks for programs.
 3651 #AC_PROG_CC
 3652 
 3653 ac_header_dirent=no
 3654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 3655   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 3657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 3658 if eval \${$as_ac_Header+:} false; then :
 3659   $as_echo_n "(cached) " >&6
 3660 else
 3661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3662 /* end confdefs.h.  */
 3663 #include <sys/types.h>
 3664 #include <$ac_hdr>
 3665 
 3666 int
 3667 main ()
 3668 {
 3669 if ((DIR *) 0)
 3670 return 0;
 3671   ;
 3672   return 0;
 3673 }
 3674 _ACEOF
 3675 if ac_fn_c_try_compile "$LINENO"; then :
 3676   eval "$as_ac_Header=yes"
 3677 else
 3678   eval "$as_ac_Header=no"
 3679 fi
 3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3681 fi
 3682 eval ac_res=\$$as_ac_Header
 3683            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 3684 $as_echo "$ac_res" >&6; }
 3685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 3686   cat >>confdefs.h <<_ACEOF
 3687 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 3688 _ACEOF
 3689 
 3690 ac_header_dirent=$ac_hdr; break
 3691 fi
 3692 
 3693 done
 3694 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 3695 if test $ac_header_dirent = dirent.h; then
 3696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 3697 $as_echo_n "checking for library containing opendir... " >&6; }
 3698 if ${ac_cv_search_opendir+:} false; then :
 3699   $as_echo_n "(cached) " >&6
 3700 else
 3701   ac_func_search_save_LIBS=$LIBS
 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3703 /* end confdefs.h.  */
 3704 
 3705 /* Override any GCC internal prototype to avoid an error.
 3706    Use char because int might match the return type of a GCC
 3707    builtin and then its argument prototype would still apply.  */
 3708 #ifdef __cplusplus
 3709 extern "C"
 3710 #endif
 3711 char opendir ();
 3712 int
 3713 main ()
 3714 {
 3715 return opendir ();
 3716   ;
 3717   return 0;
 3718 }
 3719 _ACEOF
 3720 for ac_lib in '' dir; do
 3721   if test -z "$ac_lib"; then
 3722     ac_res="none required"
 3723   else
 3724     ac_res=-l$ac_lib
 3725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 3726   fi
 3727   if ac_fn_c_try_link "$LINENO"; then :
 3728   ac_cv_search_opendir=$ac_res
 3729 fi
 3730 rm -f core conftest.err conftest.$ac_objext \
 3731     conftest$ac_exeext
 3732   if ${ac_cv_search_opendir+:} false; then :
 3733   break
 3734 fi
 3735 done
 3736 if ${ac_cv_search_opendir+:} false; then :
 3737 
 3738 else
 3739   ac_cv_search_opendir=no
 3740 fi
 3741 rm conftest.$ac_ext
 3742 LIBS=$ac_func_search_save_LIBS
 3743 fi
 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 3745 $as_echo "$ac_cv_search_opendir" >&6; }
 3746 ac_res=$ac_cv_search_opendir
 3747 if test "$ac_res" != no; then :
 3748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 3749 
 3750 fi
 3751 
 3752 else
 3753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 3754 $as_echo_n "checking for library containing opendir... " >&6; }
 3755 if ${ac_cv_search_opendir+:} false; then :
 3756   $as_echo_n "(cached) " >&6
 3757 else
 3758   ac_func_search_save_LIBS=$LIBS
 3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3760 /* end confdefs.h.  */
 3761 
 3762 /* Override any GCC internal prototype to avoid an error.
 3763    Use char because int might match the return type of a GCC
 3764    builtin and then its argument prototype would still apply.  */
 3765 #ifdef __cplusplus
 3766 extern "C"
 3767 #endif
 3768 char opendir ();
 3769 int
 3770 main ()
 3771 {
 3772 return opendir ();
 3773   ;
 3774   return 0;
 3775 }
 3776 _ACEOF
 3777 for ac_lib in '' x; do
 3778   if test -z "$ac_lib"; then
 3779     ac_res="none required"
 3780   else
 3781     ac_res=-l$ac_lib
 3782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 3783   fi
 3784   if ac_fn_c_try_link "$LINENO"; then :
 3785   ac_cv_search_opendir=$ac_res
 3786 fi
 3787 rm -f core conftest.err conftest.$ac_objext \
 3788     conftest$ac_exeext
 3789   if ${ac_cv_search_opendir+:} false; then :
 3790   break
 3791 fi
 3792 done
 3793 if ${ac_cv_search_opendir+:} false; then :
 3794 
 3795 else
 3796   ac_cv_search_opendir=no
 3797 fi
 3798 rm conftest.$ac_ext
 3799 LIBS=$ac_func_search_save_LIBS
 3800 fi
 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 3802 $as_echo "$ac_cv_search_opendir" >&6; }
 3803 ac_res=$ac_cv_search_opendir
 3804 if test "$ac_res" != no; then :
 3805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 3806 
 3807 fi
 3808 
 3809 fi
 3810 
 3811 ac_ext=c
 3812 ac_cpp='$CPP $CPPFLAGS'
 3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 3817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 3818 # On Suns, sometimes $CPP names a directory.
 3819 if test -n "$CPP" && test -d "$CPP"; then
 3820   CPP=
 3821 fi
 3822 if test -z "$CPP"; then
 3823   if ${ac_cv_prog_CPP+:} false; then :
 3824   $as_echo_n "(cached) " >&6
 3825 else
 3826       # Double quotes because CPP needs to be expanded
 3827     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 3828     do
 3829       ac_preproc_ok=false
 3830 for ac_c_preproc_warn_flag in '' yes
 3831 do
 3832   # Use a header file that comes with gcc, so configuring glibc
 3833   # with a fresh cross-compiler works.
 3834   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3835   # <limits.h> exists even on freestanding compilers.
 3836   # On the NeXT, cc -E runs the code through the compiler's parser,
 3837   # not just through cpp. "Syntax error" is here to catch this case.
 3838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3839 /* end confdefs.h.  */
 3840 #ifdef __STDC__
 3841 # include <limits.h>
 3842 #else
 3843 # include <assert.h>
 3844 #endif
 3845              Syntax error
 3846 _ACEOF
 3847 if ac_fn_c_try_cpp "$LINENO"; then :
 3848 
 3849 else
 3850   # Broken: fails on valid input.
 3851 continue
 3852 fi
 3853 rm -f conftest.err conftest.i conftest.$ac_ext
 3854 
 3855   # OK, works on sane cases.  Now check whether nonexistent headers
 3856   # can be detected and how.
 3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3858 /* end confdefs.h.  */
 3859 #include <ac_nonexistent.h>
 3860 _ACEOF
 3861 if ac_fn_c_try_cpp "$LINENO"; then :
 3862   # Broken: success on invalid input.
 3863 continue
 3864 else
 3865   # Passes both tests.
 3866 ac_preproc_ok=:
 3867 break
 3868 fi
 3869 rm -f conftest.err conftest.i conftest.$ac_ext
 3870 
 3871 done
 3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3873 rm -f conftest.i conftest.err conftest.$ac_ext
 3874 if $ac_preproc_ok; then :
 3875   break
 3876 fi
 3877 
 3878     done
 3879     ac_cv_prog_CPP=$CPP
 3880 
 3881 fi
 3882   CPP=$ac_cv_prog_CPP
 3883 else
 3884   ac_cv_prog_CPP=$CPP
 3885 fi
 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 3887 $as_echo "$CPP" >&6; }
 3888 ac_preproc_ok=false
 3889 for ac_c_preproc_warn_flag in '' yes
 3890 do
 3891   # Use a header file that comes with gcc, so configuring glibc
 3892   # with a fresh cross-compiler works.
 3893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3894   # <limits.h> exists even on freestanding compilers.
 3895   # On the NeXT, cc -E runs the code through the compiler's parser,
 3896   # not just through cpp. "Syntax error" is here to catch this case.
 3897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3898 /* end confdefs.h.  */
 3899 #ifdef __STDC__
 3900 # include <limits.h>
 3901 #else
 3902 # include <assert.h>
 3903 #endif
 3904              Syntax error
 3905 _ACEOF
 3906 if ac_fn_c_try_cpp "$LINENO"; then :
 3907 
 3908 else
 3909   # Broken: fails on valid input.
 3910 continue
 3911 fi
 3912 rm -f conftest.err conftest.i conftest.$ac_ext
 3913 
 3914   # OK, works on sane cases.  Now check whether nonexistent headers
 3915   # can be detected and how.
 3916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3917 /* end confdefs.h.  */
 3918 #include <ac_nonexistent.h>
 3919 _ACEOF
 3920 if ac_fn_c_try_cpp "$LINENO"; then :
 3921   # Broken: success on invalid input.
 3922 continue
 3923 else
 3924   # Passes both tests.
 3925 ac_preproc_ok=:
 3926 break
 3927 fi
 3928 rm -f conftest.err conftest.i conftest.$ac_ext
 3929 
 3930 done
 3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3932 rm -f conftest.i conftest.err conftest.$ac_ext
 3933 if $ac_preproc_ok; then :
 3934 
 3935 else
 3936   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3938 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 3939 See \`config.log' for more details" "$LINENO" 5; }
 3940 fi
 3941 
 3942 ac_ext=c
 3943 ac_cpp='$CPP $CPPFLAGS'
 3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3947 
 3948 
 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3951 if ${ac_cv_path_GREP+:} false; then :
 3952   $as_echo_n "(cached) " >&6
 3953 else
 3954   if test -z "$GREP"; then
 3955   ac_path_GREP_found=false
 3956   # Loop through the user's path and test for each of PROGNAME-LIST
 3957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3959 do
 3960   IFS=$as_save_IFS
 3961   test -z "$as_dir" && as_dir=.
 3962     for ac_prog in grep ggrep; do
 3963     for ac_exec_ext in '' $ac_executable_extensions; do
 3964       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3965       as_fn_executable_p "$ac_path_GREP" || continue
 3966 # Check for GNU ac_path_GREP and select it if it is found.
 3967   # Check for GNU $ac_path_GREP
 3968 case `"$ac_path_GREP" --version 2>&1` in
 3969 *GNU*)
 3970   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3971 *)
 3972   ac_count=0
 3973   $as_echo_n 0123456789 >"conftest.in"
 3974   while :
 3975   do
 3976     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3977     mv "conftest.tmp" "conftest.in"
 3978     cp "conftest.in" "conftest.nl"
 3979     $as_echo 'GREP' >> "conftest.nl"
 3980     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3982     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3983     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3984       # Best one so far, save it but keep looking for a better one
 3985       ac_cv_path_GREP="$ac_path_GREP"
 3986       ac_path_GREP_max=$ac_count
 3987     fi
 3988     # 10*(2^10) chars as input seems more than enough
 3989     test $ac_count -gt 10 && break
 3990   done
 3991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3992 esac
 3993 
 3994       $ac_path_GREP_found && break 3
 3995     done
 3996   done
 3997   done
 3998 IFS=$as_save_IFS
 3999   if test -z "$ac_cv_path_GREP"; then
 4000     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4001   fi
 4002 else
 4003   ac_cv_path_GREP=$GREP
 4004 fi
 4005 
 4006 fi
 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 4008 $as_echo "$ac_cv_path_GREP" >&6; }
 4009  GREP="$ac_cv_path_GREP"
 4010 
 4011 
 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 4013 $as_echo_n "checking for egrep... " >&6; }
 4014 if ${ac_cv_path_EGREP+:} false; then :
 4015   $as_echo_n "(cached) " >&6
 4016 else
 4017   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 4018    then ac_cv_path_EGREP="$GREP -E"
 4019    else
 4020      if test -z "$EGREP"; then
 4021   ac_path_EGREP_found=false
 4022   # Loop through the user's path and test for each of PROGNAME-LIST
 4023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4025 do
 4026   IFS=$as_save_IFS
 4027   test -z "$as_dir" && as_dir=.
 4028     for ac_prog in egrep; do
 4029     for ac_exec_ext in '' $ac_executable_extensions; do
 4030       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 4031       as_fn_executable_p "$ac_path_EGREP" || continue
 4032 # Check for GNU ac_path_EGREP and select it if it is found.
 4033   # Check for GNU $ac_path_EGREP
 4034 case `"$ac_path_EGREP" --version 2>&1` in
 4035 *GNU*)
 4036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 4037 *)
 4038   ac_count=0
 4039   $as_echo_n 0123456789 >"conftest.in"
 4040   while :
 4041   do
 4042     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4043     mv "conftest.tmp" "conftest.in"
 4044     cp "conftest.in" "conftest.nl"
 4045     $as_echo 'EGREP' >> "conftest.nl"
 4046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4048     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4050       # Best one so far, save it but keep looking for a better one
 4051       ac_cv_path_EGREP="$ac_path_EGREP"
 4052       ac_path_EGREP_max=$ac_count
 4053     fi
 4054     # 10*(2^10) chars as input seems more than enough
 4055     test $ac_count -gt 10 && break
 4056   done
 4057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4058 esac
 4059 
 4060       $ac_path_EGREP_found && break 3
 4061     done
 4062   done
 4063   done
 4064 IFS=$as_save_IFS
 4065   if test -z "$ac_cv_path_EGREP"; then
 4066     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4067   fi
 4068 else
 4069   ac_cv_path_EGREP=$EGREP
 4070 fi
 4071 
 4072    fi
 4073 fi
 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4075 $as_echo "$ac_cv_path_EGREP" >&6; }
 4076  EGREP="$ac_cv_path_EGREP"
 4077 
 4078 
 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 4080 $as_echo_n "checking for ANSI C header files... " >&6; }
 4081 if ${ac_cv_header_stdc+:} false; then :
 4082   $as_echo_n "(cached) " >&6
 4083 else
 4084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4085 /* end confdefs.h.  */
 4086 #include <stdlib.h>
 4087 #include <stdarg.h>
 4088 #include <string.h>
 4089 #include <float.h>
 4090 
 4091 int
 4092 main ()
 4093 {
 4094 
 4095   ;
 4096   return 0;
 4097 }
 4098 _ACEOF
 4099 if ac_fn_c_try_compile "$LINENO"; then :
 4100   ac_cv_header_stdc=yes
 4101 else
 4102   ac_cv_header_stdc=no
 4103 fi
 4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4105 
 4106 if test $ac_cv_header_stdc = yes; then
 4107   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4109 /* end confdefs.h.  */
 4110 #include <string.h>
 4111 
 4112 _ACEOF
 4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4114   $EGREP "memchr" >/dev/null 2>&1; then :
 4115 
 4116 else
 4117   ac_cv_header_stdc=no
 4118 fi
 4119 rm -f conftest*
 4120 
 4121 fi
 4122 
 4123 if test $ac_cv_header_stdc = yes; then
 4124   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4126 /* end confdefs.h.  */
 4127 #include <stdlib.h>
 4128 
 4129 _ACEOF
 4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4131   $EGREP "free" >/dev/null 2>&1; then :
 4132 
 4133 else
 4134   ac_cv_header_stdc=no
 4135 fi
 4136 rm -f conftest*
 4137 
 4138 fi
 4139 
 4140 if test $ac_cv_header_stdc = yes; then
 4141   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4142   if test "$cross_compiling" = yes; then :
 4143   :
 4144 else
 4145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4146 /* end confdefs.h.  */
 4147 #include <ctype.h>
 4148 #include <stdlib.h>
 4149 #if ((' ' & 0x0FF) == 0x020)
 4150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4152 #else
 4153 # define ISLOWER(c) \
 4154            (('a' <= (c) && (c) <= 'i') \
 4155              || ('j' <= (c) && (c) <= 'r') \
 4156              || ('s' <= (c) && (c) <= 'z'))
 4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4158 #endif
 4159 
 4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4161 int
 4162 main ()
 4163 {
 4164   int i;
 4165   for (i = 0; i < 256; i++)
 4166     if (XOR (islower (i), ISLOWER (i))
 4167     || toupper (i) != TOUPPER (i))
 4168       return 2;
 4169   return 0;
 4170 }
 4171 _ACEOF
 4172 if ac_fn_c_try_run "$LINENO"; then :
 4173 
 4174 else
 4175   ac_cv_header_stdc=no
 4176 fi
 4177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4178   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4179 fi
 4180 
 4181 fi
 4182 fi
 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 4184 $as_echo "$ac_cv_header_stdc" >&6; }
 4185 if test $ac_cv_header_stdc = yes; then
 4186 
 4187 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 4188 
 4189 fi
 4190 
 4191 
 4192 
 4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4195           inttypes.h stdint.h unistd.h
 4196 do :
 4197   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4199 "
 4200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4201   cat >>confdefs.h <<_ACEOF
 4202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4203 _ACEOF
 4204 
 4205 fi
 4206 
 4207 done
 4208 
 4209 
 4210 for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
 4211         dirent.h sys/types.h sys/socket.h netdb.h arpa/inet.h netinet/in.h sys/stat.h \
 4212         ctype.h errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
 4213         execinfo.h math.h libintl.h libgen.h stdbool.h getopt.h fcntl.h fnmatch.h \
 4214         winsock.h
 4215 do :
 4216   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4217 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 4218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4219   cat >>confdefs.h <<_ACEOF
 4220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4221 _ACEOF
 4222 
 4223 fi
 4224 
 4225 done
 4226 
 4227 
 4228 if test $ac_cv_header_getopt_h = "no"; then :
 4229   as_fn_error $? "\"getopt.h is required to compile sarg\"" "$LINENO" 5
 4230 fi
 4231 
 4232 # Build with gd
 4233 
 4234 # Check whether --with-gd was given.
 4235 if test "${with_gd+set}" = set; then :
 4236   withval=$with_gd;
 4237 else
 4238   with_gd=check
 4239 fi
 4240 
 4241 if test "x$with_gd" != "xno"; then :
 4242 
 4243     for ac_header in gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h
 4244 do :
 4245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 4247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4248   cat >>confdefs.h <<_ACEOF
 4249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4250 _ACEOF
 4251 
 4252 fi
 4253 
 4254 done
 4255 
 4256     if test "x$ac_cv_header_gd_h" = "xyes"; then :
 4257 
 4258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePng in -lgd" >&5
 4259 $as_echo_n "checking for gdImagePng in -lgd... " >&6; }
 4260 if ${ac_cv_lib_gd_gdImagePng+:} false; then :
 4261   $as_echo_n "(cached) " >&6
 4262 else
 4263   ac_check_lib_save_LIBS=$LIBS
 4264 LIBS="-lgd  $LIBS"
 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4266 /* end confdefs.h.  */
 4267 
 4268 /* Override any GCC internal prototype to avoid an error.
 4269    Use char because int might match the return type of a GCC
 4270    builtin and then its argument prototype would still apply.  */
 4271 #ifdef __cplusplus
 4272 extern "C"
 4273 #endif
 4274 char gdImagePng ();
 4275 int
 4276 main ()
 4277 {
 4278 return gdImagePng ();
 4279   ;
 4280   return 0;
 4281 }
 4282 _ACEOF
 4283 if ac_fn_c_try_link "$LINENO"; then :
 4284   ac_cv_lib_gd_gdImagePng=yes
 4285 else
 4286   ac_cv_lib_gd_gdImagePng=no
 4287 fi
 4288 rm -f core conftest.err conftest.$ac_objext \
 4289     conftest$ac_exeext conftest.$ac_ext
 4290 LIBS=$ac_check_lib_save_LIBS
 4291 fi
 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePng" >&5
 4293 $as_echo "$ac_cv_lib_gd_gdImagePng" >&6; }
 4294 if test "x$ac_cv_lib_gd_gdImagePng" = xyes; then :
 4295   LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes"
 4296 else
 4297   HAVE_GD_LIB=""
 4298 fi
 4299 
 4300         if test "x$HAVE_GD_LIB" != "xyes"; then :
 4301 
 4302             as_fn_error $? "libgd is required to compile sarg with gd" "$LINENO" 5
 4303 
 4304 fi
 4305 
 4306 else
 4307 
 4308         gd_status="not found"
 4309 
 4310 fi
 4311 
 4312 else
 4313 
 4314     gd_status="disabled"
 4315 
 4316 fi
 4317 
 4318 # Build with LDAP
 4319 
 4320 # Check whether --with-ldap was given.
 4321 if test "${with_ldap+set}" = set; then :
 4322   withval=$with_ldap;
 4323 else
 4324   with_ldap=check
 4325 fi
 4326 
 4327 if test "x$with_ldap" != "xno"; then :
 4328 
 4329     for ac_header in ldap_cdefs.h ldap_features.h ldap.h
 4330 do :
 4331   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 4333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4334   cat >>confdefs.h <<_ACEOF
 4335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4336 _ACEOF
 4337 
 4338 else
 4339   break
 4340 fi
 4341 
 4342 done
 4343 
 4344     if test "x$ac_cv_header_ldap_h" = "xyes"; then :
 4345 
 4346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
 4347 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
 4348 if ${ac_cv_lib_ldap_ldap_init+:} false; then :
 4349   $as_echo_n "(cached) " >&6
 4350 else
 4351   ac_check_lib_save_LIBS=$LIBS
 4352 LIBS="-lldap  $LIBS"
 4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4354 /* end confdefs.h.  */
 4355 
 4356 /* Override any GCC internal prototype to avoid an error.
 4357    Use char because int might match the return type of a GCC
 4358    builtin and then its argument prototype would still apply.  */
 4359 #ifdef __cplusplus
 4360 extern "C"
 4361 #endif
 4362 char ldap_init ();
 4363 int
 4364 main ()
 4365 {
 4366 return ldap_init ();
 4367   ;
 4368   return 0;
 4369 }
 4370 _ACEOF
 4371 if ac_fn_c_try_link "$LINENO"; then :
 4372   ac_cv_lib_ldap_ldap_init=yes
 4373 else
 4374   ac_cv_lib_ldap_ldap_init=no
 4375 fi
 4376 rm -f core conftest.err conftest.$ac_objext \
 4377     conftest$ac_exeext conftest.$ac_ext
 4378 LIBS=$ac_check_lib_save_LIBS
 4379 fi
 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
 4381 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
 4382 if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
 4383   LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes"
 4384 else
 4385   HAVE_LDAP=""
 4386 fi
 4387 
 4388 
 4389 else
 4390 
 4391         ldap_status="not found"
 4392 
 4393 fi
 4394 
 4395 else
 4396 
 4397     ldap_status="disabled"
 4398 
 4399 fi
 4400 
 4401 # Build with iconv
 4402 
 4403 # Check whether --with-iconv was given.
 4404 if test "${with_iconv+set}" = set; then :
 4405   withval=$with_iconv;
 4406 else
 4407   with_iconv=check
 4408 fi
 4409 
 4410 
 4411       if test "X$prefix" = "XNONE"; then
 4412     acl_final_prefix="$ac_default_prefix"
 4413   else
 4414     acl_final_prefix="$prefix"
 4415   fi
 4416   if test "X$exec_prefix" = "XNONE"; then
 4417     acl_final_exec_prefix='${prefix}'
 4418   else
 4419     acl_final_exec_prefix="$exec_prefix"
 4420   fi
 4421   acl_save_prefix="$prefix"
 4422   prefix="$acl_final_prefix"
 4423   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 4424   prefix="$acl_save_prefix"
 4425 
 4426 
 4427 # Check whether --with-gnu-ld was given.
 4428 if test "${with_gnu_ld+set}" = set; then :
 4429   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 4430 else
 4431   with_gnu_ld=no
 4432 fi
 4433 
 4434 # Prepare PATH_SEPARATOR.
 4435 # The user is always right.
 4436 if test "${PATH_SEPARATOR+set}" != set; then
 4437   echo "#! /bin/sh" >conf$$.sh
 4438   echo  "exit 0"   >>conf$$.sh
 4439   chmod +x conf$$.sh
 4440   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 4441     PATH_SEPARATOR=';'
 4442   else
 4443     PATH_SEPARATOR=:
 4444   fi
 4445   rm -f conf$$.sh
 4446 fi
 4447 ac_prog=ld
 4448 if test "$GCC" = yes; then
 4449   # Check if gcc -print-prog-name=ld gives a path.
 4450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 4451 $as_echo_n "checking for ld used by GCC... " >&6; }
 4452   case $host in
 4453   *-*-mingw*)
 4454     # gcc leaves a trailing carriage return which upsets mingw
 4455     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 4456   *)
 4457     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 4458   esac
 4459   case $ac_prog in
 4460     # Accept absolute paths.
 4461     [\\/]* | [A-Za-z]:[\\/]*)
 4462       re_direlt='/[^/][^/]*/\.\./'
 4463       # Canonicalize the path of ld
 4464       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 4465       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 4466         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 4467       done
 4468       test -z "$LD" && LD="$ac_prog"
 4469       ;;
 4470   "")
 4471     # If it fails, then pretend we aren't using GCC.
 4472     ac_prog=ld
 4473     ;;
 4474   *)
 4475     # If it is relative, then search for the first ld in PATH.
 4476     with_gnu_ld=unknown
 4477     ;;
 4478   esac
 4479 elif test "$with_gnu_ld" = yes; then
 4480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 4481 $as_echo_n "checking for GNU ld... " >&6; }
 4482 else
 4483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 4484 $as_echo_n "checking for non-GNU ld... " >&6; }
 4485 fi
 4486 if ${acl_cv_path_LD+:} false; then :
 4487   $as_echo_n "(cached) " >&6
 4488 else
 4489   if test -z "$LD"; then
 4490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 4491   for ac_dir in $PATH; do
 4492     test -z "$ac_dir" && ac_dir=.
 4493     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 4494       acl_cv_path_LD="$ac_dir/$ac_prog"
 4495       # Check to see if the program is GNU ld.  I'd rather use --version,
 4496       # but apparently some GNU ld's only accept -v.
 4497       # Break only if it was the GNU/non-GNU ld that we prefer.
 4498       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 4499       *GNU* | *'with BFD'*)
 4500         test "$with_gnu_ld" != no && break ;;
 4501       *)
 4502         test "$with_gnu_ld" != yes && break ;;
 4503       esac
 4504     fi
 4505   done
 4506   IFS="$ac_save_ifs"
 4507 else
 4508   acl_cv_path_LD="$LD" # Let the user override the test with a path.
 4509 fi
 4510 fi
 4511 
 4512 LD="$acl_cv_path_LD"
 4513 if test -n "$LD"; then
 4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 4515 $as_echo "$LD" >&6; }
 4516 else
 4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4518 $as_echo "no" >&6; }
 4519 fi
 4520 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 4522 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 4523 if ${acl_cv_prog_gnu_ld+:} false; then :
 4524   $as_echo_n "(cached) " >&6
 4525 else
 4526   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 4527 case `$LD -v 2>&1 </dev/null` in
 4528 *GNU* | *'with BFD'*)
 4529   acl_cv_prog_gnu_ld=yes ;;
 4530 *)
 4531   acl_cv_prog_gnu_ld=no ;;
 4532 esac
 4533 fi
 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 4535 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
 4536 with_gnu_ld=$acl_cv_prog_gnu_ld
 4537 
 4538 
 4539 
 4540 
 4541                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 4542 $as_echo_n "checking for shared library run path origin... " >&6; }
 4543 if ${acl_cv_rpath+:} false; then :
 4544   $as_echo_n "(cached) " >&6
 4545 else
 4546 
 4547     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 4548     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 4549     . ./conftest.sh
 4550     rm -f ./conftest.sh
 4551     acl_cv_rpath=done
 4552 
 4553 fi
 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 4555 $as_echo "$acl_cv_rpath" >&6; }
 4556   wl="$acl_cv_wl"
 4557   acl_libext="$acl_cv_libext"
 4558   acl_shlibext="$acl_cv_shlibext"
 4559   acl_libname_spec="$acl_cv_libname_spec"
 4560   acl_library_names_spec="$acl_cv_library_names_spec"
 4561   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 4562   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 4563   acl_hardcode_direct="$acl_cv_hardcode_direct"
 4564   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 4565     # Check whether --enable-rpath was given.
 4566 if test "${enable_rpath+set}" = set; then :
 4567   enableval=$enable_rpath; :
 4568 else
 4569   enable_rpath=yes
 4570 fi
 4571 
 4572 
 4573 
 4574 
 4575   acl_libdirstem=lib
 4576   acl_libdirstem2=
 4577   case "$host_os" in
 4578     solaris*)
 4579                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
 4580 $as_echo_n "checking for 64-bit host... " >&6; }
 4581 if ${gl_cv_solaris_64bit+:} false; then :
 4582   $as_echo_n "(cached) " >&6
 4583 else
 4584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4585 /* end confdefs.h.  */
 4586 
 4587 #ifdef _LP64
 4588 sixtyfour bits
 4589 #endif
 4590 
 4591 _ACEOF
 4592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4593   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
 4594   gl_cv_solaris_64bit=yes
 4595 else
 4596   gl_cv_solaris_64bit=no
 4597 fi
 4598 rm -f conftest*
 4599 
 4600 
 4601 fi
 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
 4603 $as_echo "$gl_cv_solaris_64bit" >&6; }
 4604       if test $gl_cv_solaris_64bit = yes; then
 4605         acl_libdirstem=lib/64
 4606         case "$host_cpu" in
 4607           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 4608           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 4609         esac
 4610       fi
 4611       ;;
 4612     *)
 4613       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 4614       if test -n "$searchpath"; then
 4615         acl_save_IFS="${IFS=    }"; IFS=":"
 4616         for searchdir in $searchpath; do
 4617           if test -d "$searchdir"; then
 4618             case "$searchdir" in
 4619               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 4620               */../ | */.. )
 4621                 # Better ignore directories of this form. They are misleading.
 4622                 ;;
 4623               *) searchdir=`cd "$searchdir" && pwd`
 4624                  case "$searchdir" in
 4625                    */lib64 ) acl_libdirstem=lib64 ;;
 4626                  esac ;;
 4627             esac
 4628           fi
 4629         done
 4630         IFS="$acl_save_IFS"
 4631       fi
 4632       ;;
 4633   esac
 4634   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 4635 
 4636 
 4637 
 4638 
 4639 
 4640 
 4641 
 4642 
 4643 
 4644 
 4645 
 4646 
 4647     use_additional=yes
 4648 
 4649   acl_save_prefix="$prefix"
 4650   prefix="$acl_final_prefix"
 4651   acl_save_exec_prefix="$exec_prefix"
 4652   exec_prefix="$acl_final_exec_prefix"
 4653 
 4654     eval additional_includedir=\"$includedir\"
 4655     eval additional_libdir=\"$libdir\"
 4656 
 4657   exec_prefix="$acl_save_exec_prefix"
 4658   prefix="$acl_save_prefix"
 4659 
 4660 
 4661 # Check whether --with-libiconv-prefix was given.
 4662 if test "${with_libiconv_prefix+set}" = set; then :
 4663   withval=$with_libiconv_prefix;
 4664     if test "X$withval" = "Xno"; then
 4665       use_additional=no
 4666     else
 4667       if test "X$withval" = "X"; then
 4668 
 4669   acl_save_prefix="$prefix"
 4670   prefix="$acl_final_prefix"
 4671   acl_save_exec_prefix="$exec_prefix"
 4672   exec_prefix="$acl_final_exec_prefix"
 4673 
 4674           eval additional_includedir=\"$includedir\"
 4675           eval additional_libdir=\"$libdir\"
 4676 
 4677   exec_prefix="$acl_save_exec_prefix"
 4678   prefix="$acl_save_prefix"
 4679 
 4680       else
 4681         additional_includedir="$withval/include"
 4682         additional_libdir="$withval/$acl_libdirstem"
 4683         if test "$acl_libdirstem2" != "$acl_libdirstem" \
 4684            && ! test -d "$withval/$acl_libdirstem"; then
 4685           additional_libdir="$withval/$acl_libdirstem2"
 4686         fi
 4687       fi
 4688     fi
 4689 
 4690 fi
 4691 
 4692       LIBICONV=
 4693   LTLIBICONV=
 4694   INCICONV=
 4695   LIBICONV_PREFIX=
 4696       HAVE_LIBICONV=
 4697   rpathdirs=
 4698   ltrpathdirs=
 4699   names_already_handled=
 4700   names_next_round='iconv '
 4701   while test -n "$names_next_round"; do
 4702     names_this_round="$names_next_round"
 4703     names_next_round=
 4704     for name in $names_this_round; do
 4705       already_handled=
 4706       for n in $names_already_handled; do
 4707         if test "$n" = "$name"; then
 4708           already_handled=yes
 4709           break
 4710         fi
 4711       done
 4712       if test -z "$already_handled"; then
 4713         names_already_handled="$names_already_handled $name"
 4714                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 4715         eval value=\"\$HAVE_LIB$uppername\"
 4716         if test -n "$value"; then
 4717           if test "$value" = yes; then
 4718             eval value=\"\$LIB$uppername\"
 4719             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 4720             eval value=\"\$LTLIB$uppername\"
 4721             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 4722           else
 4723                                     :
 4724           fi
 4725         else
 4726                               found_dir=
 4727           found_la=
 4728           found_so=
 4729           found_a=
 4730           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 4731           if test -n "$acl_shlibext"; then
 4732             shrext=".$acl_shlibext"             # typically: shrext=.so
 4733           else
 4734             shrext=
 4735           fi
 4736           if test $use_additional = yes; then
 4737             dir="$additional_libdir"
 4738                                     if test -n "$acl_shlibext"; then
 4739               if test -f "$dir/$libname$shrext"; then
 4740                 found_dir="$dir"
 4741                 found_so="$dir/$libname$shrext"
 4742               else
 4743                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 4744                   ver=`(cd "$dir" && \
 4745                         for f in "$libname$shrext".*; do echo "$f"; done \
 4746                         | sed -e "s,^$libname$shrext\\\\.,," \
 4747                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 4748                         | sed 1q ) 2>/dev/null`
 4749                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 4750                     found_dir="$dir"
 4751                     found_so="$dir/$libname$shrext.$ver"
 4752                   fi
 4753                 else
 4754                   eval library_names=\"$acl_library_names_spec\"
 4755                   for f in $library_names; do
 4756                     if test -f "$dir/$f"; then
 4757                       found_dir="$dir"
 4758                       found_so="$dir/$f"
 4759                       break
 4760                     fi
 4761                   done
 4762                 fi
 4763               fi
 4764             fi
 4765                         if test "X$found_dir" = "X"; then
 4766               if test -f "$dir/$libname.$acl_libext"; then
 4767                 found_dir="$dir"
 4768                 found_a="$dir/$libname.$acl_libext"
 4769               fi
 4770             fi
 4771             if test "X$found_dir" != "X"; then
 4772               if test -f "$dir/$libname.la"; then
 4773                 found_la="$dir/$libname.la"
 4774               fi
 4775             fi
 4776           fi
 4777           if test "X$found_dir" = "X"; then
 4778             for x in $LDFLAGS $LTLIBICONV; do
 4779 
 4780   acl_save_prefix="$prefix"
 4781   prefix="$acl_final_prefix"
 4782   acl_save_exec_prefix="$exec_prefix"
 4783   exec_prefix="$acl_final_exec_prefix"
 4784   eval x=\"$x\"
 4785   exec_prefix="$acl_save_exec_prefix"
 4786   prefix="$acl_save_prefix"
 4787 
 4788               case "$x" in
 4789                 -L*)
 4790                   dir=`echo "X$x" | sed -e 's/^X-L//'`
 4791                                     if test -n "$acl_shlibext"; then
 4792                     if test -f "$dir/$libname$shrext"; then
 4793                       found_dir="$dir"
 4794                       found_so="$dir/$libname$shrext"
 4795                     else
 4796                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 4797                         ver=`(cd "$dir" && \
 4798                               for f in "$libname$shrext".*; do echo "$f"; done \
 4799                               | sed -e "s,^$libname$shrext\\\\.,," \
 4800                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 4801                               | sed 1q ) 2>/dev/null`
 4802                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 4803                           found_dir="$dir"
 4804                           found_so="$dir/$libname$shrext.$ver"
 4805                         fi
 4806                       else
 4807                         eval library_names=\"$acl_library_names_spec\"
 4808                         for f in $library_names; do
 4809                           if test -f "$dir/$f"; then
 4810                             found_dir="$dir"
 4811                             found_so="$dir/$f"
 4812                             break
 4813                           fi
 4814                         done
 4815                       fi
 4816                     fi
 4817                   fi
 4818                                     if test "X$found_dir" = "X"; then
 4819                     if test -f "$dir/$libname.$acl_libext"; then
 4820                       found_dir="$dir"
 4821                       found_a="$dir/$libname.$acl_libext"
 4822                     fi
 4823                   fi
 4824                   if test "X$found_dir" != "X"; then
 4825                     if test -f "$dir/$libname.la"; then
 4826                       found_la="$dir/$libname.la"
 4827                     fi
 4828                   fi
 4829                   ;;
 4830               esac
 4831               if test "X$found_dir" != "X"; then
 4832                 break
 4833               fi
 4834             done
 4835           fi
 4836           if test "X$found_dir" != "X"; then
 4837                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 4838             if test "X$found_so" != "X"; then
 4839                                                         if test "$enable_rpath" = no \
 4840                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 4841                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 4842                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 4843               else
 4844                                                                                 haveit=
 4845                 for x in $ltrpathdirs; do
 4846                   if test "X$x" = "X$found_dir"; then
 4847                     haveit=yes
 4848                     break
 4849                   fi
 4850                 done
 4851                 if test -z "$haveit"; then
 4852                   ltrpathdirs="$ltrpathdirs $found_dir"
 4853                 fi
 4854                                 if test "$acl_hardcode_direct" = yes; then
 4855                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 4856                 else
 4857                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 4858                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 4859                                                             haveit=
 4860                     for x in $rpathdirs; do
 4861                       if test "X$x" = "X$found_dir"; then
 4862                         haveit=yes
 4863                         break
 4864                       fi
 4865                     done
 4866                     if test -z "$haveit"; then
 4867                       rpathdirs="$rpathdirs $found_dir"
 4868                     fi
 4869                   else
 4870                                                                                 haveit=
 4871                     for x in $LDFLAGS $LIBICONV; do
 4872 
 4873   acl_save_prefix="$prefix"
 4874   prefix="$acl_final_prefix"
 4875   acl_save_exec_prefix="$exec_prefix"
 4876   exec_prefix="$acl_final_exec_prefix"
 4877   eval x=\"$x\"
 4878   exec_prefix="$acl_save_exec_prefix"
 4879   prefix="$acl_save_prefix"
 4880 
 4881                       if test "X$x" = "X-L$found_dir"; then
 4882                         haveit=yes
 4883                         break
 4884                       fi
 4885                     done
 4886                     if test -z "$haveit"; then
 4887                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 4888                     fi
 4889                     if test "$acl_hardcode_minus_L" != no; then
 4890                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 4891                     else
 4892                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 4893                     fi
 4894                   fi
 4895                 fi
 4896               fi
 4897             else
 4898               if test "X$found_a" != "X"; then
 4899                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 4900               else
 4901                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 4902               fi
 4903             fi
 4904                         additional_includedir=
 4905             case "$found_dir" in
 4906               */$acl_libdirstem | */$acl_libdirstem/)
 4907                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 4908                 if test "$name" = 'iconv'; then
 4909                   LIBICONV_PREFIX="$basedir"
 4910                 fi
 4911                 additional_includedir="$basedir/include"
 4912                 ;;
 4913               */$acl_libdirstem2 | */$acl_libdirstem2/)
 4914                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 4915                 if test "$name" = 'iconv'; then
 4916                   LIBICONV_PREFIX="$basedir"
 4917                 fi
 4918                 additional_includedir="$basedir/include"
 4919                 ;;
 4920             esac
 4921             if test "X$additional_includedir" != "X"; then
 4922                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
 4923                 haveit=
 4924                 if test "X$additional_includedir" = "X/usr/local/include"; then
 4925                   if test -n "$GCC"; then
 4926                     case $host_os in
 4927                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 4928                     esac
 4929                   fi
 4930                 fi
 4931                 if test -z "$haveit"; then
 4932                   for x in $CPPFLAGS $INCICONV; do
 4933 
 4934   acl_save_prefix="$prefix"
 4935   prefix="$acl_final_prefix"
 4936   acl_save_exec_prefix="$exec_prefix"
 4937   exec_prefix="$acl_final_exec_prefix"
 4938   eval x=\"$x\"
 4939   exec_prefix="$acl_save_exec_prefix"
 4940   prefix="$acl_save_prefix"
 4941 
 4942                     if test "X$x" = "X-I$additional_includedir"; then
 4943                       haveit=yes
 4944                       break
 4945                     fi
 4946                   done
 4947                   if test -z "$haveit"; then
 4948                     if test -d "$additional_includedir"; then
 4949                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 4950                     fi
 4951                   fi
 4952                 fi
 4953               fi
 4954             fi
 4955                         if test -n "$found_la"; then
 4956                                                         save_libdir="$libdir"
 4957               case "$found_la" in
 4958                 */* | *\\*) . "$found_la" ;;
 4959                 *) . "./$found_la" ;;
 4960               esac
 4961               libdir="$save_libdir"
 4962                             for dep in $dependency_libs; do
 4963                 case "$dep" in
 4964                   -L*)
 4965                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 4966                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 4967                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 4968                       haveit=
 4969                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 4970                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 4971                         if test -n "$GCC"; then
 4972                           case $host_os in
 4973                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 4974                           esac
 4975                         fi
 4976                       fi
 4977                       if test -z "$haveit"; then
 4978                         haveit=
 4979                         for x in $LDFLAGS $LIBICONV; do
 4980 
 4981   acl_save_prefix="$prefix"
 4982   prefix="$acl_final_prefix"
 4983   acl_save_exec_prefix="$exec_prefix"
 4984   exec_prefix="$acl_final_exec_prefix"
 4985   eval x=\"$x\"
 4986   exec_prefix="$acl_save_exec_prefix"
 4987   prefix="$acl_save_prefix"
 4988 
 4989                           if test "X$x" = "X-L$additional_libdir"; then
 4990                             haveit=yes
 4991                             break
 4992                           fi
 4993                         done
 4994                         if test -z "$haveit"; then
 4995                           if test -d "$additional_libdir"; then
 4996                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 4997                           fi
 4998                         fi
 4999                         haveit=
 5000                         for x in $LDFLAGS $LTLIBICONV; do
 5001 
 5002   acl_save_prefix="$prefix"
 5003   prefix="$acl_final_prefix"
 5004   acl_save_exec_prefix="$exec_prefix"
 5005   exec_prefix="$acl_final_exec_prefix"
 5006   eval x=\"$x\"
 5007   exec_prefix="$acl_save_exec_prefix"
 5008   prefix="$acl_save_prefix"
 5009 
 5010                           if test "X$x" = "X-L$additional_libdir"; then
 5011                             haveit=yes
 5012                             break
 5013                           fi
 5014                         done
 5015                         if test -z "$haveit"; then
 5016                           if test -d "$additional_libdir"; then
 5017                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 5018                           fi
 5019                         fi
 5020                       fi
 5021                     fi
 5022                     ;;
 5023                   -R*)
 5024                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
 5025                     if test "$enable_rpath" != no; then
 5026                                                                   haveit=
 5027                       for x in $rpathdirs; do
 5028                         if test "X$x" = "X$dir"; then
 5029                           haveit=yes
 5030                           break
 5031                         fi
 5032                       done
 5033                       if test -z "$haveit"; then
 5034                         rpathdirs="$rpathdirs $dir"
 5035                       fi
 5036                                                                   haveit=
 5037                       for x in $ltrpathdirs; do
 5038                         if test "X$x" = "X$dir"; then
 5039                           haveit=yes
 5040                           break
 5041                         fi
 5042                       done
 5043                       if test -z "$haveit"; then
 5044                         ltrpathdirs="$ltrpathdirs $dir"
 5045                       fi
 5046                     fi
 5047                     ;;
 5048                   -l*)
 5049                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 5050                     ;;
 5051                   *.la)
 5052                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 5053                     ;;
 5054                   *)
 5055                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 5056                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 5057                     ;;
 5058                 esac
 5059               done
 5060             fi
 5061           else
 5062                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 5063             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 5064           fi
 5065         fi
 5066       fi
 5067     done
 5068   done
 5069   if test "X$rpathdirs" != "X"; then
 5070     if test -n "$acl_hardcode_libdir_separator"; then
 5071                         alldirs=
 5072       for found_dir in $rpathdirs; do
 5073         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 5074       done
 5075             acl_save_libdir="$libdir"
 5076       libdir="$alldirs"
 5077       eval flag=\"$acl_hardcode_libdir_flag_spec\"
 5078       libdir="$acl_save_libdir"
 5079       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 5080     else
 5081             for found_dir in $rpathdirs; do
 5082         acl_save_libdir="$libdir"
 5083         libdir="$found_dir"
 5084         eval flag=\"$acl_hardcode_libdir_flag_spec\"
 5085         libdir="$acl_save_libdir"
 5086         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 5087       done
 5088     fi
 5089   fi
 5090   if test "X$ltrpathdirs" != "X"; then
 5091             for found_dir in $ltrpathdirs; do
 5092       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 5093     done
 5094   fi
 5095 
 5096 
 5097 
 5098 
 5099 
 5100 
 5101 
 5102 if test "x$with_iconv" != "xno"; then :
 5103 
 5104 
 5105 
 5106 
 5107 
 5108 
 5109           am_save_CPPFLAGS="$CPPFLAGS"
 5110 
 5111   for element in $INCICONV; do
 5112     haveit=
 5113     for x in $CPPFLAGS; do
 5114 
 5115   acl_save_prefix="$prefix"
 5116   prefix="$acl_final_prefix"
 5117   acl_save_exec_prefix="$exec_prefix"
 5118   exec_prefix="$acl_final_exec_prefix"
 5119   eval x=\"$x\"
 5120   exec_prefix="$acl_save_exec_prefix"
 5121   prefix="$acl_save_prefix"
 5122 
 5123       if test "X$x" = "X$element"; then
 5124         haveit=yes
 5125         break
 5126       fi
 5127     done
 5128     if test -z "$haveit"; then
 5129       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 5130     fi
 5131   done
 5132 
 5133 
 5134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 5135 $as_echo_n "checking for iconv... " >&6; }
 5136 if ${am_cv_func_iconv+:} false; then :
 5137   $as_echo_n "(cached) " >&6
 5138 else
 5139 
 5140     am_cv_func_iconv="no, consider installing GNU libiconv"
 5141     am_cv_lib_iconv=no
 5142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5143 /* end confdefs.h.  */
 5144 #include <stdlib.h>
 5145 #include <iconv.h>
 5146 int
 5147 main ()
 5148 {
 5149 iconv_t cd = iconv_open("","");
 5150        iconv(cd,NULL,NULL,NULL,NULL);
 5151        iconv_close(cd);
 5152   ;
 5153   return 0;
 5154 }
 5155 _ACEOF
 5156 if ac_fn_c_try_link "$LINENO"; then :
 5157   am_cv_func_iconv=yes
 5158 fi
 5159 rm -f core conftest.err conftest.$ac_objext \
 5160     conftest$ac_exeext conftest.$ac_ext
 5161     if test "$am_cv_func_iconv" != yes; then
 5162       am_save_LIBS="$LIBS"
 5163       LIBS="$LIBS $LIBICONV"
 5164       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5165 /* end confdefs.h.  */
 5166 #include <stdlib.h>
 5167 #include <iconv.h>
 5168 int
 5169 main ()
 5170 {
 5171 iconv_t cd = iconv_open("","");
 5172          iconv(cd,NULL,NULL,NULL,NULL);
 5173          iconv_close(cd);
 5174   ;
 5175   return 0;
 5176 }
 5177 _ACEOF
 5178 if ac_fn_c_try_link "$LINENO"; then :
 5179   am_cv_lib_iconv=yes
 5180         am_cv_func_iconv=yes
 5181 fi
 5182 rm -f core conftest.err conftest.$ac_objext \
 5183     conftest$ac_exeext conftest.$ac_ext
 5184       LIBS="$am_save_LIBS"
 5185     fi
 5186 
 5187 fi
 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 5189 $as_echo "$am_cv_func_iconv" >&6; }
 5190   if test "$am_cv_func_iconv" = yes; then
 5191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 5192 $as_echo_n "checking for working iconv... " >&6; }
 5193 if ${am_cv_func_iconv_works+:} false; then :
 5194   $as_echo_n "(cached) " >&6
 5195 else
 5196 
 5197             am_save_LIBS="$LIBS"
 5198       if test $am_cv_lib_iconv = yes; then
 5199         LIBS="$LIBS $LIBICONV"
 5200       fi
 5201       if test "$cross_compiling" = yes; then :
 5202   case "$host_os" in
 5203            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 5204            *)            am_cv_func_iconv_works="guessing yes" ;;
 5205          esac
 5206 else
 5207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5208 /* end confdefs.h.  */
 5209 
 5210 #include <iconv.h>
 5211 #include <string.h>
 5212 int main ()
 5213 {
 5214   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 5215      returns.  */
 5216   {
 5217     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 5218     if (cd_utf8_to_88591 != (iconv_t)(-1))
 5219       {
 5220         static const char input[] = "\342\202\254"; /* EURO SIGN */
 5221         char buf[10];
 5222         const char *inptr = input;
 5223         size_t inbytesleft = strlen (input);
 5224         char *outptr = buf;
 5225         size_t outbytesleft = sizeof (buf);
 5226         size_t res = iconv (cd_utf8_to_88591,
 5227                             (char **) &inptr, &inbytesleft,
 5228                             &outptr, &outbytesleft);
 5229         if (res == 0)
 5230           return 1;
 5231       }
 5232   }
 5233   /* Test against Solaris 10 bug: Failures are not distinguishable from
 5234      successful returns.  */
 5235   {
 5236     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 5237     if (cd_ascii_to_88591 != (iconv_t)(-1))
 5238       {
 5239         static const char input[] = "\263";
 5240         char buf[10];
 5241         const char *inptr = input;
 5242         size_t inbytesleft = strlen (input);
 5243         char *outptr = buf;
 5244         size_t outbytesleft = sizeof (buf);
 5245         size_t res = iconv (cd_ascii_to_88591,
 5246                             (char **) &inptr, &inbytesleft,
 5247                             &outptr, &outbytesleft);
 5248         if (res == 0)
 5249           return 1;
 5250       }
 5251   }
 5252 #if 0 /* This bug could be worked around by the caller.  */
 5253   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 5254   {
 5255     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 5256     if (cd_88591_to_utf8 != (iconv_t)(-1))
 5257       {
 5258         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 5259         char buf[50];
 5260         const char *inptr = input;
 5261         size_t inbytesleft = strlen (input);
 5262         char *outptr = buf;
 5263         size_t outbytesleft = sizeof (buf);
 5264         size_t res = iconv (cd_88591_to_utf8,
 5265                             (char **) &inptr, &inbytesleft,
 5266                             &outptr, &outbytesleft);
 5267         if ((int)res > 0)
 5268           return 1;
 5269       }
 5270   }
 5271 #endif
 5272   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 5273      provided.  */
 5274   if (/* Try standardized names.  */
 5275       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 5276       /* Try IRIX, OSF/1 names.  */
 5277       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 5278       /* Try AIX names.  */
 5279       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 5280       /* Try HP-UX names.  */
 5281       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 5282     return 1;
 5283   return 0;
 5284 }
 5285 _ACEOF
 5286 if ac_fn_c_try_run "$LINENO"; then :
 5287   am_cv_func_iconv_works=yes
 5288 else
 5289   am_cv_func_iconv_works=no
 5290 fi
 5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5292   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5293 fi
 5294 
 5295       LIBS="$am_save_LIBS"
 5296 
 5297 fi
 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 5299 $as_echo "$am_cv_func_iconv_works" >&6; }
 5300     case "$am_cv_func_iconv_works" in
 5301       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 5302       *)   am_func_iconv=yes ;;
 5303     esac
 5304   else
 5305     am_func_iconv=no am_cv_lib_iconv=no
 5306   fi
 5307   if test "$am_func_iconv" = yes; then
 5308 
 5309 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
 5310 
 5311   fi
 5312   if test "$am_cv_lib_iconv" = yes; then
 5313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 5314 $as_echo_n "checking how to link with libiconv... " >&6; }
 5315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 5316 $as_echo "$LIBICONV" >&6; }
 5317   else
 5318             CPPFLAGS="$am_save_CPPFLAGS"
 5319     LIBICONV=
 5320     LTLIBICONV=
 5321   fi
 5322 
 5323 
 5324 
 5325   if test "$am_cv_func_iconv" = yes; then
 5326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
 5327 $as_echo_n "checking for iconv declaration... " >&6; }
 5328     if ${am_cv_proto_iconv+:} false; then :
 5329   $as_echo_n "(cached) " >&6
 5330 else
 5331 
 5332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5333 /* end confdefs.h.  */
 5334 
 5335 #include <stdlib.h>
 5336 #include <iconv.h>
 5337 extern
 5338 #ifdef __cplusplus
 5339 "C"
 5340 #endif
 5341 #if defined(__STDC__) || defined(__cplusplus)
 5342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 5343 #else
 5344 size_t iconv();
 5345 #endif
 5346 
 5347 int
 5348 main ()
 5349 {
 5350 
 5351   ;
 5352   return 0;
 5353 }
 5354 _ACEOF
 5355 if ac_fn_c_try_compile "$LINENO"; then :
 5356   am_cv_proto_iconv_arg1=""
 5357 else
 5358   am_cv_proto_iconv_arg1="const"
 5359 fi
 5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5361       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 5362 fi
 5363 
 5364     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 5365     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
 5366          $am_cv_proto_iconv" >&5
 5367 $as_echo "
 5368          $am_cv_proto_iconv" >&6; }
 5369 
 5370 cat >>confdefs.h <<_ACEOF
 5371 #define ICONV_CONST $am_cv_proto_iconv_arg1
 5372 _ACEOF
 5373 
 5374   fi
 5375 
 5376     if test -n "$LIBICONV"; then :
 5377   LIBS="$LIBS $LIBICONV"
 5378 fi
 5379     for ac_header in iconv.h
 5380 do :
 5381   ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
 5382 if test "x$ac_cv_header_iconv_h" = xyes; then :
 5383   cat >>confdefs.h <<_ACEOF
 5384 #define HAVE_ICONV_H 1
 5385 _ACEOF
 5386 
 5387 fi
 5388 
 5389 done
 5390 
 5391 
 5392 else
 5393 
 5394     { $as_echo "$as_me:${as_lineno-$LINENO}: Not building with iconv as requested on the configuration command line" >&5
 5395 $as_echo "$as_me: Not building with iconv as requested on the configuration command line" >&6;}
 5396 
 5397 fi
 5398 
 5399 # Build with pcre
 5400 
 5401 # Check whether --with-pcre was given.
 5402 if test "${with_pcre+set}" = set; then :
 5403   withval=$with_pcre;
 5404 else
 5405   with_pcre=check
 5406 fi
 5407 
 5408 if test "x$with_pcre" != "xno"; then :
 5409 
 5410     for ac_header in pcre.h
 5411 do :
 5412   ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
 5413 if test "x$ac_cv_header_pcre_h" = xyes; then :
 5414   cat >>confdefs.h <<_ACEOF
 5415 #define HAVE_PCRE_H 1
 5416 _ACEOF
 5417 
 5418 fi
 5419 
 5420 done
 5421 
 5422     if test "x$ac_cv_header_pcre_h" = "xyes"; then :
 5423 
 5424         LIBS="$LIBS $(pcre-config --libs)"
 5425         CFLAGS="$CFLAGS $(pcre-config --cflags)"
 5426 
 5427 else
 5428 
 5429         pcre_status="not found"
 5430 
 5431 fi
 5432 
 5433 else
 5434 
 5435     pcre_status="disabled"
 5436 
 5437 fi
 5438 
 5439 # Build with file globbing
 5440 
 5441 # Check whether --with-glob was given.
 5442 if test "${with_glob+set}" = set; then :
 5443   withval=$with_glob;
 5444 else
 5445   with_glob=yes
 5446 fi
 5447 
 5448 if test "x$with_glob" != "xno"; then :
 5449 
 5450     for ac_header in glob.h
 5451 do :
 5452   ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
 5453 if test "x$ac_cv_header_glob_h" = xyes; then :
 5454   cat >>confdefs.h <<_ACEOF
 5455 #define HAVE_GLOB_H 1
 5456 _ACEOF
 5457 
 5458 else
 5459 
 5460         if test "x$with_glob" != "xcheck"; then :
 5461 
 5462             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
<