"Fossies" - the Fresh Open Source Software Archive

Member "sqlite-autoconf-3320300/tea/configure" (18 Jun 2020, 281277 Bytes) of package /linux/misc/sqlite-autoconf-3320300.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 last Fossies "Diffs" side-by-side code changes report for "configure": autoconf3250300_vs_3260000.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for sqlite 3.32.3.
    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='sqlite'
  579 PACKAGE_TARNAME='sqlite'
  580 PACKAGE_VERSION='3.32.3'
  581 PACKAGE_STRING='sqlite 3.32.3'
  582 PACKAGE_BUGREPORT=''
  583 PACKAGE_URL=''
  584 
  585 # Factoring default headers for most tests.
  586 ac_includes_default="\
  587 #include <stdio.h>
  588 #ifdef HAVE_SYS_TYPES_H
  589 # include <sys/types.h>
  590 #endif
  591 #ifdef HAVE_SYS_STAT_H
  592 # include <sys/stat.h>
  593 #endif
  594 #ifdef STDC_HEADERS
  595 # include <stdlib.h>
  596 # include <stddef.h>
  597 #else
  598 # ifdef HAVE_STDLIB_H
  599 #  include <stdlib.h>
  600 # endif
  601 #endif
  602 #ifdef HAVE_STRING_H
  603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  604 #  include <memory.h>
  605 # endif
  606 # include <string.h>
  607 #endif
  608 #ifdef HAVE_STRINGS_H
  609 # include <strings.h>
  610 #endif
  611 #ifdef HAVE_INTTYPES_H
  612 # include <inttypes.h>
  613 #endif
  614 #ifdef HAVE_STDINT_H
  615 # include <stdint.h>
  616 #endif
  617 #ifdef HAVE_UNISTD_H
  618 # include <unistd.h>
  619 #endif"
  620 
  621 ac_subst_vars='LTLIBOBJS
  622 LIBOBJS
  623 TCLSH_PROG
  624 VC_MANIFEST_EMBED_EXE
  625 VC_MANIFEST_EMBED_DLL
  626 RANLIB_STUB
  627 MAKE_STUB_LIB
  628 MAKE_STATIC_LIB
  629 MAKE_SHARED_LIB
  630 MAKE_LIB
  631 TCL_DBGX
  632 LDFLAGS_DEFAULT
  633 CFLAGS_DEFAULT
  634 LD_LIBRARY_PATH_VAR
  635 SHLIB_CFLAGS
  636 SHLIB_LD_LIBS
  637 SHLIB_LD
  638 STLIB_LD
  639 CFLAGS_WARNING
  640 CFLAGS_OPTIMIZE
  641 CFLAGS_DEBUG
  642 RC
  643 CELIB_DIR
  644 AR
  645 SHARED_BUILD
  646 TCL_THREADS
  647 TCL_INCLUDES
  648 PKG_OBJECTS
  649 PKG_SOURCES
  650 MATH_LIBS
  651 EGREP
  652 GREP
  653 RANLIB
  654 SET_MAKE
  655 INSTALL_SCRIPT
  656 INSTALL_PROGRAM
  657 INSTALL_DATA
  658 INSTALL
  659 CPP
  660 TCL_SHLIB_LD_LIBS
  661 TCL_LD_FLAGS
  662 TCL_EXTRA_CFLAGS
  663 TCL_DEFS
  664 TCL_LIBS
  665 CLEANFILES
  666 OBJEXT
  667 ac_ct_CC
  668 CPPFLAGS
  669 LDFLAGS
  670 CFLAGS
  671 CC
  672 TCL_STUB_LIB_SPEC
  673 TCL_STUB_LIB_FLAG
  674 TCL_STUB_LIB_FILE
  675 TCL_LIB_SPEC
  676 TCL_LIB_FLAG
  677 TCL_LIB_FILE
  678 TCL_SRC_DIR
  679 TCL_BIN_DIR
  680 TCL_PATCH_LEVEL
  681 TCL_VERSION
  682 PKG_CFLAGS
  683 PKG_LIBS
  684 PKG_INCLUDES
  685 PKG_HEADERS
  686 PKG_TCL_SOURCES
  687 PKG_STUB_OBJECTS
  688 PKG_STUB_SOURCES
  689 PKG_STUB_LIB_FILE
  690 PKG_LIB_FILE
  691 EXEEXT
  692 CYGPATH
  693 target_alias
  694 host_alias
  695 build_alias
  696 LIBS
  697 ECHO_T
  698 ECHO_N
  699 ECHO_C
  700 DEFS
  701 mandir
  702 localedir
  703 libdir
  704 psdir
  705 pdfdir
  706 dvidir
  707 htmldir
  708 infodir
  709 docdir
  710 oldincludedir
  711 includedir
  712 runstatedir
  713 localstatedir
  714 sharedstatedir
  715 sysconfdir
  716 datadir
  717 datarootdir
  718 libexecdir
  719 sbindir
  720 bindir
  721 program_transform_name
  722 prefix
  723 exec_prefix
  724 PACKAGE_URL
  725 PACKAGE_BUGREPORT
  726 PACKAGE_STRING
  727 PACKAGE_VERSION
  728 PACKAGE_TARNAME
  729 PACKAGE_NAME
  730 PATH_SEPARATOR
  731 SHELL'
  732 ac_subst_files=''
  733 ac_user_opts='
  734 enable_option_checking
  735 with_tcl
  736 with_system_sqlite
  737 with_tclinclude
  738 enable_threads
  739 enable_shared
  740 enable_64bit
  741 enable_64bit_vis
  742 enable_rpath
  743 enable_wince
  744 with_celib
  745 enable_symbols
  746 '
  747       ac_precious_vars='build_alias
  748 host_alias
  749 target_alias
  750 CC
  751 CFLAGS
  752 LDFLAGS
  753 LIBS
  754 CPPFLAGS
  755 CPP'
  756 
  757 
  758 # Initialize some variables set by options.
  759 ac_init_help=
  760 ac_init_version=false
  761 ac_unrecognized_opts=
  762 ac_unrecognized_sep=
  763 # The variables have the same names as the options, with
  764 # dashes changed to underlines.
  765 cache_file=/dev/null
  766 exec_prefix=NONE
  767 no_create=
  768 no_recursion=
  769 prefix=NONE
  770 program_prefix=NONE
  771 program_suffix=NONE
  772 program_transform_name=s,x,x,
  773 silent=
  774 site=
  775 srcdir=
  776 verbose=
  777 x_includes=NONE
  778 x_libraries=NONE
  779 
  780 # Installation directory options.
  781 # These are left unexpanded so users can "make install exec_prefix=/foo"
  782 # and all the variables that are supposed to be based on exec_prefix
  783 # by default will actually change.
  784 # Use braces instead of parens because sh, perl, etc. also accept them.
  785 # (The list follows the same order as the GNU Coding Standards.)
  786 bindir='${exec_prefix}/bin'
  787 sbindir='${exec_prefix}/sbin'
  788 libexecdir='${exec_prefix}/libexec'
  789 datarootdir='${prefix}/share'
  790 datadir='${datarootdir}'
  791 sysconfdir='${prefix}/etc'
  792 sharedstatedir='${prefix}/com'
  793 localstatedir='${prefix}/var'
  794 runstatedir='${localstatedir}/run'
  795 includedir='${prefix}/include'
  796 oldincludedir='/usr/include'
  797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  798 infodir='${datarootdir}/info'
  799 htmldir='${docdir}'
  800 dvidir='${docdir}'
  801 pdfdir='${docdir}'
  802 psdir='${docdir}'
  803 libdir='${exec_prefix}/lib'
  804 localedir='${datarootdir}/locale'
  805 mandir='${datarootdir}/man'
  806 
  807 ac_prev=
  808 ac_dashdash=
  809 for ac_option
  810 do
  811   # If the previous option needs an argument, assign it.
  812   if test -n "$ac_prev"; then
  813     eval $ac_prev=\$ac_option
  814     ac_prev=
  815     continue
  816   fi
  817 
  818   case $ac_option in
  819   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  820   *=)   ac_optarg= ;;
  821   *)    ac_optarg=yes ;;
  822   esac
  823 
  824   # Accept the important Cygnus configure options, so we can diagnose typos.
  825 
  826   case $ac_dashdash$ac_option in
  827   --)
  828     ac_dashdash=yes ;;
  829 
  830   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  831     ac_prev=bindir ;;
  832   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  833     bindir=$ac_optarg ;;
  834 
  835   -build | --build | --buil | --bui | --bu)
  836     ac_prev=build_alias ;;
  837   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  838     build_alias=$ac_optarg ;;
  839 
  840   -cache-file | --cache-file | --cache-fil | --cache-fi \
  841   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  842     ac_prev=cache_file ;;
  843   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  844   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  845     cache_file=$ac_optarg ;;
  846 
  847   --config-cache | -C)
  848     cache_file=config.cache ;;
  849 
  850   -datadir | --datadir | --datadi | --datad)
  851     ac_prev=datadir ;;
  852   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  853     datadir=$ac_optarg ;;
  854 
  855   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  856   | --dataroo | --dataro | --datar)
  857     ac_prev=datarootdir ;;
  858   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  859   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  860     datarootdir=$ac_optarg ;;
  861 
  862   -disable-* | --disable-*)
  863     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  864     # Reject names that are not valid shell variable names.
  865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866       as_fn_error $? "invalid feature name: $ac_useropt"
  867     ac_useropt_orig=$ac_useropt
  868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869     case $ac_user_opts in
  870       *"
  871 "enable_$ac_useropt"
  872 "*) ;;
  873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  874      ac_unrecognized_sep=', ';;
  875     esac
  876     eval enable_$ac_useropt=no ;;
  877 
  878   -docdir | --docdir | --docdi | --doc | --do)
  879     ac_prev=docdir ;;
  880   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  881     docdir=$ac_optarg ;;
  882 
  883   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  884     ac_prev=dvidir ;;
  885   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  886     dvidir=$ac_optarg ;;
  887 
  888   -enable-* | --enable-*)
  889     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  890     # Reject names that are not valid shell variable names.
  891     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  892       as_fn_error $? "invalid feature name: $ac_useropt"
  893     ac_useropt_orig=$ac_useropt
  894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  895     case $ac_user_opts in
  896       *"
  897 "enable_$ac_useropt"
  898 "*) ;;
  899       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  900      ac_unrecognized_sep=', ';;
  901     esac
  902     eval enable_$ac_useropt=\$ac_optarg ;;
  903 
  904   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  905   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  906   | --exec | --exe | --ex)
  907     ac_prev=exec_prefix ;;
  908   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  909   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  910   | --exec=* | --exe=* | --ex=*)
  911     exec_prefix=$ac_optarg ;;
  912 
  913   -gas | --gas | --ga | --g)
  914     # Obsolete; use --with-gas.
  915     with_gas=yes ;;
  916 
  917   -help | --help | --hel | --he | -h)
  918     ac_init_help=long ;;
  919   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920     ac_init_help=recursive ;;
  921   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922     ac_init_help=short ;;
  923 
  924   -host | --host | --hos | --ho)
  925     ac_prev=host_alias ;;
  926   -host=* | --host=* | --hos=* | --ho=*)
  927     host_alias=$ac_optarg ;;
  928 
  929   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  930     ac_prev=htmldir ;;
  931   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  932   | --ht=*)
  933     htmldir=$ac_optarg ;;
  934 
  935   -includedir | --includedir | --includedi | --included | --include \
  936   | --includ | --inclu | --incl | --inc)
  937     ac_prev=includedir ;;
  938   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  939   | --includ=* | --inclu=* | --incl=* | --inc=*)
  940     includedir=$ac_optarg ;;
  941 
  942   -infodir | --infodir | --infodi | --infod | --info | --inf)
  943     ac_prev=infodir ;;
  944   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  945     infodir=$ac_optarg ;;
  946 
  947   -libdir | --libdir | --libdi | --libd)
  948     ac_prev=libdir ;;
  949   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  950     libdir=$ac_optarg ;;
  951 
  952   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  953   | --libexe | --libex | --libe)
  954     ac_prev=libexecdir ;;
  955   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  956   | --libexe=* | --libex=* | --libe=*)
  957     libexecdir=$ac_optarg ;;
  958 
  959   -localedir | --localedir | --localedi | --localed | --locale)
  960     ac_prev=localedir ;;
  961   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  962     localedir=$ac_optarg ;;
  963 
  964   -localstatedir | --localstatedir | --localstatedi | --localstated \
  965   | --localstate | --localstat | --localsta | --localst | --locals)
  966     ac_prev=localstatedir ;;
  967   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  968   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  969     localstatedir=$ac_optarg ;;
  970 
  971   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  972     ac_prev=mandir ;;
  973   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  974     mandir=$ac_optarg ;;
  975 
  976   -nfp | --nfp | --nf)
  977     # Obsolete; use --without-fp.
  978     with_fp=no ;;
  979 
  980   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  981   | --no-cr | --no-c | -n)
  982     no_create=yes ;;
  983 
  984   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  985   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  986     no_recursion=yes ;;
  987 
  988   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  989   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  990   | --oldin | --oldi | --old | --ol | --o)
  991     ac_prev=oldincludedir ;;
  992   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  993   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  994   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  995     oldincludedir=$ac_optarg ;;
  996 
  997   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  998     ac_prev=prefix ;;
  999   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1000     prefix=$ac_optarg ;;
 1001 
 1002   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1003   | --program-pre | --program-pr | --program-p)
 1004     ac_prev=program_prefix ;;
 1005   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1006   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1007     program_prefix=$ac_optarg ;;
 1008 
 1009   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1010   | --program-suf | --program-su | --program-s)
 1011     ac_prev=program_suffix ;;
 1012   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1013   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1014     program_suffix=$ac_optarg ;;
 1015 
 1016   -program-transform-name | --program-transform-name \
 1017   | --program-transform-nam | --program-transform-na \
 1018   | --program-transform-n | --program-transform- \
 1019   | --program-transform | --program-transfor \
 1020   | --program-transfo | --program-transf \
 1021   | --program-trans | --program-tran \
 1022   | --progr-tra | --program-tr | --program-t)
 1023     ac_prev=program_transform_name ;;
 1024   -program-transform-name=* | --program-transform-name=* \
 1025   | --program-transform-nam=* | --program-transform-na=* \
 1026   | --program-transform-n=* | --program-transform-=* \
 1027   | --program-transform=* | --program-transfor=* \
 1028   | --program-transfo=* | --program-transf=* \
 1029   | --program-trans=* | --program-tran=* \
 1030   | --progr-tra=* | --program-tr=* | --program-t=*)
 1031     program_transform_name=$ac_optarg ;;
 1032 
 1033   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1034     ac_prev=pdfdir ;;
 1035   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1036     pdfdir=$ac_optarg ;;
 1037 
 1038   -psdir | --psdir | --psdi | --psd | --ps)
 1039     ac_prev=psdir ;;
 1040   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1041     psdir=$ac_optarg ;;
 1042 
 1043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1044   | -silent | --silent | --silen | --sile | --sil)
 1045     silent=yes ;;
 1046 
 1047   -runstatedir | --runstatedir | --runstatedi | --runstated \
 1048   | --runstate | --runstat | --runsta | --runst | --runs \
 1049   | --run | --ru | --r)
 1050     ac_prev=runstatedir ;;
 1051   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 1052   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 1053   | --run=* | --ru=* | --r=*)
 1054     runstatedir=$ac_optarg ;;
 1055 
 1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1057     ac_prev=sbindir ;;
 1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1059   | --sbi=* | --sb=*)
 1060     sbindir=$ac_optarg ;;
 1061 
 1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1064   | --sharedst | --shareds | --shared | --share | --shar \
 1065   | --sha | --sh)
 1066     ac_prev=sharedstatedir ;;
 1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1070   | --sha=* | --sh=*)
 1071     sharedstatedir=$ac_optarg ;;
 1072 
 1073   -site | --site | --sit)
 1074     ac_prev=site ;;
 1075   -site=* | --site=* | --sit=*)
 1076     site=$ac_optarg ;;
 1077 
 1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1079     ac_prev=srcdir ;;
 1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1081     srcdir=$ac_optarg ;;
 1082 
 1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1084   | --syscon | --sysco | --sysc | --sys | --sy)
 1085     ac_prev=sysconfdir ;;
 1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1088     sysconfdir=$ac_optarg ;;
 1089 
 1090   -target | --target | --targe | --targ | --tar | --ta | --t)
 1091     ac_prev=target_alias ;;
 1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1093     target_alias=$ac_optarg ;;
 1094 
 1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1096     verbose=yes ;;
 1097 
 1098   -version | --version | --versio | --versi | --vers | -V)
 1099     ac_init_version=: ;;
 1100 
 1101   -with-* | --with-*)
 1102     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1103     # Reject names that are not valid shell variable names.
 1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1105       as_fn_error $? "invalid package name: $ac_useropt"
 1106     ac_useropt_orig=$ac_useropt
 1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1108     case $ac_user_opts in
 1109       *"
 1110 "with_$ac_useropt"
 1111 "*) ;;
 1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1113      ac_unrecognized_sep=', ';;
 1114     esac
 1115     eval with_$ac_useropt=\$ac_optarg ;;
 1116 
 1117   -without-* | --without-*)
 1118     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1119     # Reject names that are not valid shell variable names.
 1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1121       as_fn_error $? "invalid package name: $ac_useropt"
 1122     ac_useropt_orig=$ac_useropt
 1123     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1124     case $ac_user_opts in
 1125       *"
 1126 "with_$ac_useropt"
 1127 "*) ;;
 1128       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1129      ac_unrecognized_sep=', ';;
 1130     esac
 1131     eval with_$ac_useropt=no ;;
 1132 
 1133   --x)
 1134     # Obsolete; use --with-x.
 1135     with_x=yes ;;
 1136 
 1137   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1138   | --x-incl | --x-inc | --x-in | --x-i)
 1139     ac_prev=x_includes ;;
 1140   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1141   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1142     x_includes=$ac_optarg ;;
 1143 
 1144   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1145   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1146     ac_prev=x_libraries ;;
 1147   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1148   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1149     x_libraries=$ac_optarg ;;
 1150 
 1151   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1152 Try \`$0 --help' for more information"
 1153     ;;
 1154 
 1155   *=*)
 1156     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1157     # Reject names that are not valid shell variable names.
 1158     case $ac_envvar in #(
 1159       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1160       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1161     esac
 1162     eval $ac_envvar=\$ac_optarg
 1163     export $ac_envvar ;;
 1164 
 1165   *)
 1166     # FIXME: should be removed in autoconf 3.0.
 1167     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1168     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1169       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1170     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1171     ;;
 1172 
 1173   esac
 1174 done
 1175 
 1176 if test -n "$ac_prev"; then
 1177   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1178   as_fn_error $? "missing argument to $ac_option"
 1179 fi
 1180 
 1181 if test -n "$ac_unrecognized_opts"; then
 1182   case $enable_option_checking in
 1183     no) ;;
 1184     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1185     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1186   esac
 1187 fi
 1188 
 1189 # Check all directory arguments for consistency.
 1190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1191         datadir sysconfdir sharedstatedir localstatedir includedir \
 1192         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1193         libdir localedir mandir runstatedir
 1194 do
 1195   eval ac_val=\$$ac_var
 1196   # Remove trailing slashes.
 1197   case $ac_val in
 1198     */ )
 1199       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1200       eval $ac_var=\$ac_val;;
 1201   esac
 1202   # Be sure to have absolute directory names.
 1203   case $ac_val in
 1204     [\\/$]* | ?:[\\/]* )  continue;;
 1205     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1206   esac
 1207   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1208 done
 1209 
 1210 # There might be people who depend on the old broken behavior: `$host'
 1211 # used to hold the argument of --host etc.
 1212 # FIXME: To remove some day.
 1213 build=$build_alias
 1214 host=$host_alias
 1215 target=$target_alias
 1216 
 1217 # FIXME: To remove some day.
 1218 if test "x$host_alias" != x; then
 1219   if test "x$build_alias" = x; then
 1220     cross_compiling=maybe
 1221   elif test "x$build_alias" != "x$host_alias"; then
 1222     cross_compiling=yes
 1223   fi
 1224 fi
 1225 
 1226 ac_tool_prefix=
 1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1228 
 1229 test "$silent" = yes && exec 6>/dev/null
 1230 
 1231 
 1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1233 ac_ls_di=`ls -di .` &&
 1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1235   as_fn_error $? "working directory cannot be determined"
 1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1237   as_fn_error $? "pwd does not report name of working directory"
 1238 
 1239 
 1240 # Find the source files, if location was not specified.
 1241 if test -z "$srcdir"; then
 1242   ac_srcdir_defaulted=yes
 1243   # Try the directory containing this script, then the parent directory.
 1244   ac_confdir=`$as_dirname -- "$as_myself" ||
 1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1246      X"$as_myself" : 'X\(//\)[^/]' \| \
 1247      X"$as_myself" : 'X\(//\)$' \| \
 1248      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1249 $as_echo X"$as_myself" |
 1250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1251         s//\1/
 1252         q
 1253       }
 1254       /^X\(\/\/\)[^/].*/{
 1255         s//\1/
 1256         q
 1257       }
 1258       /^X\(\/\/\)$/{
 1259         s//\1/
 1260         q
 1261       }
 1262       /^X\(\/\).*/{
 1263         s//\1/
 1264         q
 1265       }
 1266       s/.*/./; q'`
 1267   srcdir=$ac_confdir
 1268   if test ! -r "$srcdir/$ac_unique_file"; then
 1269     srcdir=..
 1270   fi
 1271 else
 1272   ac_srcdir_defaulted=no
 1273 fi
 1274 if test ! -r "$srcdir/$ac_unique_file"; then
 1275   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1276   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1277 fi
 1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1279 ac_abs_confdir=`(
 1280     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1281     pwd)`
 1282 # When building in place, set srcdir=.
 1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1284   srcdir=.
 1285 fi
 1286 # Remove unnecessary trailing slashes from srcdir.
 1287 # Double slashes in file names in object file debugging info
 1288 # mess up M-x gdb in Emacs.
 1289 case $srcdir in
 1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1291 esac
 1292 for ac_var in $ac_precious_vars; do
 1293   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1294   eval ac_env_${ac_var}_value=\$${ac_var}
 1295   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1296   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1297 done
 1298 
 1299 #
 1300 # Report the --help message.
 1301 #
 1302 if test "$ac_init_help" = "long"; then
 1303   # Omit some internal or obsolete options to make the list less imposing.
 1304   # This message is too long to be a string in the A/UX 3.1 sh.
 1305   cat <<_ACEOF
 1306 \`configure' configures sqlite 3.32.3 to adapt to many kinds of systems.
 1307 
 1308 Usage: $0 [OPTION]... [VAR=VALUE]...
 1309 
 1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1311 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1312 
 1313 Defaults for the options are specified in brackets.
 1314 
 1315 Configuration:
 1316   -h, --help              display this help and exit
 1317       --help=short        display options specific to this package
 1318       --help=recursive    display the short help of all the included packages
 1319   -V, --version           display version information and exit
 1320   -q, --quiet, --silent   do not print \`checking ...' messages
 1321       --cache-file=FILE   cache test results in FILE [disabled]
 1322   -C, --config-cache      alias for \`--cache-file=config.cache'
 1323   -n, --no-create         do not create output files
 1324       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1325 
 1326 Installation directories:
 1327   --prefix=PREFIX         install architecture-independent files in PREFIX
 1328                           [$ac_default_prefix]
 1329   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1330                           [PREFIX]
 1331 
 1332 By default, \`make install' will install all the files in
 1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1335 for instance \`--prefix=\$HOME'.
 1336 
 1337 For better control, use the options below.
 1338 
 1339 Fine tuning of the installation directories:
 1340   --bindir=DIR            user executables [EPREFIX/bin]
 1341   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1342   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1343   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1344   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1345   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1346   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
 1347   --libdir=DIR            object code libraries [EPREFIX/lib]
 1348   --includedir=DIR        C header files [PREFIX/include]
 1349   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1350   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1351   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1352   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1353   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1354   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1355   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
 1356   --htmldir=DIR           html documentation [DOCDIR]
 1357   --dvidir=DIR            dvi documentation [DOCDIR]
 1358   --pdfdir=DIR            pdf documentation [DOCDIR]
 1359   --psdir=DIR             ps documentation [DOCDIR]
 1360 _ACEOF
 1361 
 1362   cat <<\_ACEOF
 1363 _ACEOF
 1364 fi
 1365 
 1366 if test -n "$ac_init_help"; then
 1367   case $ac_init_help in
 1368      short | recursive ) echo "Configuration of sqlite 3.32.3:";;
 1369    esac
 1370   cat <<\_ACEOF
 1371 
 1372 Optional Features:
 1373   --disable-option-checking  ignore unrecognized --enable/--with options
 1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1376   --enable-threads        build with threads
 1377   --enable-shared         build and link with shared libraries (default: on)
 1378   --enable-64bit          enable 64bit support (default: off)
 1379   --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
 1380   --disable-rpath         disable rpath support (default: on)
 1381   --enable-wince          enable Win/CE support (where applicable)
 1382   --enable-symbols        build with debugging symbols (default: off)
 1383 
 1384 Optional Packages:
 1385   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1386   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1387   --with-tcl              directory containing tcl configuration
 1388                           (tclConfig.sh)
 1389   --with-system-sqlite    use a system-supplied libsqlite3 instead of the
 1390                           bundled one
 1391   --with-tclinclude       directory containing the public Tcl header files
 1392   --with-celib=DIR        use Windows/CE support library from DIR
 1393 
 1394 Some influential environment variables:
 1395   CC          C compiler command
 1396   CFLAGS      C compiler flags
 1397   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1398               nonstandard directory <lib dir>
 1399   LIBS        libraries to pass to the linker, e.g. -l<library>
 1400   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1401               you have headers in a nonstandard directory <include dir>
 1402   CPP         C preprocessor
 1403 
 1404 Use these variables to override the choices made by `configure' or to help
 1405 it to find libraries and programs with nonstandard names/locations.
 1406 
 1407 Report bugs to the package provider.
 1408 _ACEOF
 1409 ac_status=$?
 1410 fi
 1411 
 1412 if test "$ac_init_help" = "recursive"; then
 1413   # If there are subdirs, report their specific --help.
 1414   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1415     test -d "$ac_dir" ||
 1416       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1417       continue
 1418     ac_builddir=.
 1419 
 1420 case "$ac_dir" in
 1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1422 *)
 1423   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1424   # A ".." for each directory in $ac_dir_suffix.
 1425   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1426   case $ac_top_builddir_sub in
 1427   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1428   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1429   esac ;;
 1430 esac
 1431 ac_abs_top_builddir=$ac_pwd
 1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1433 # for backward compatibility:
 1434 ac_top_builddir=$ac_top_build_prefix
 1435 
 1436 case $srcdir in
 1437   .)  # We are building in place.
 1438     ac_srcdir=.
 1439     ac_top_srcdir=$ac_top_builddir_sub
 1440     ac_abs_top_srcdir=$ac_pwd ;;
 1441   [\\/]* | ?:[\\/]* )  # Absolute name.
 1442     ac_srcdir=$srcdir$ac_dir_suffix;
 1443     ac_top_srcdir=$srcdir
 1444     ac_abs_top_srcdir=$srcdir ;;
 1445   *) # Relative name.
 1446     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1447     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1448     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1449 esac
 1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1451 
 1452     cd "$ac_dir" || { ac_status=$?; continue; }
 1453     # Check for guested configure.
 1454     if test -f "$ac_srcdir/configure.gnu"; then
 1455       echo &&
 1456       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1457     elif test -f "$ac_srcdir/configure"; then
 1458       echo &&
 1459       $SHELL "$ac_srcdir/configure" --help=recursive
 1460     else
 1461       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1462     fi || ac_status=$?
 1463     cd "$ac_pwd" || { ac_status=$?; break; }
 1464   done
 1465 fi
 1466 
 1467 test -n "$ac_init_help" && exit $ac_status
 1468 if $ac_init_version; then
 1469   cat <<\_ACEOF
 1470 sqlite configure 3.32.3
 1471 generated by GNU Autoconf 2.69
 1472 
 1473 Copyright (C) 2012 Free Software Foundation, Inc.
 1474 This configure script is free software; the Free Software Foundation
 1475 gives unlimited permission to copy, distribute and modify it.
 1476 _ACEOF
 1477   exit
 1478 fi
 1479 
 1480 ## ------------------------ ##
 1481 ## Autoconf initialization. ##
 1482 ## ------------------------ ##
 1483 
 1484 # ac_fn_c_try_compile LINENO
 1485 # --------------------------
 1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1487 ac_fn_c_try_compile ()
 1488 {
 1489   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1490   rm -f conftest.$ac_objext
 1491   if { { ac_try="$ac_compile"
 1492 case "(($ac_try" in
 1493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1494   *) ac_try_echo=$ac_try;;
 1495 esac
 1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1497 $as_echo "$ac_try_echo"; } >&5
 1498   (eval "$ac_compile") 2>conftest.err
 1499   ac_status=$?
 1500   if test -s conftest.err; then
 1501     grep -v '^ *+' conftest.err >conftest.er1
 1502     cat conftest.er1 >&5
 1503     mv -f conftest.er1 conftest.err
 1504   fi
 1505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1506   test $ac_status = 0; } && {
 1507      test -z "$ac_c_werror_flag" ||
 1508      test ! -s conftest.err
 1509        } && test -s conftest.$ac_objext; then :
 1510   ac_retval=0
 1511 else
 1512   $as_echo "$as_me: failed program was:" >&5
 1513 sed 's/^/| /' conftest.$ac_ext >&5
 1514 
 1515     ac_retval=1
 1516 fi
 1517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1518   as_fn_set_status $ac_retval
 1519 
 1520 } # ac_fn_c_try_compile
 1521 
 1522 # ac_fn_c_try_cpp LINENO
 1523 # ----------------------
 1524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1525 ac_fn_c_try_cpp ()
 1526 {
 1527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1528   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1529 case "(($ac_try" in
 1530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1531   *) ac_try_echo=$ac_try;;
 1532 esac
 1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1534 $as_echo "$ac_try_echo"; } >&5
 1535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1536   ac_status=$?
 1537   if test -s conftest.err; then
 1538     grep -v '^ *+' conftest.err >conftest.er1
 1539     cat conftest.er1 >&5
 1540     mv -f conftest.er1 conftest.err
 1541   fi
 1542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1543   test $ac_status = 0; } > conftest.i && {
 1544      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1545      test ! -s conftest.err
 1546        }; then :
 1547   ac_retval=0
 1548 else
 1549   $as_echo "$as_me: failed program was:" >&5
 1550 sed 's/^/| /' conftest.$ac_ext >&5
 1551 
 1552     ac_retval=1
 1553 fi
 1554   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1555   as_fn_set_status $ac_retval
 1556 
 1557 } # ac_fn_c_try_cpp
 1558 
 1559 # ac_fn_c_try_run LINENO
 1560 # ----------------------
 1561 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1562 # that executables *can* be run.
 1563 ac_fn_c_try_run ()
 1564 {
 1565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1566   if { { ac_try="$ac_link"
 1567 case "(($ac_try" in
 1568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1569   *) ac_try_echo=$ac_try;;
 1570 esac
 1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1572 $as_echo "$ac_try_echo"; } >&5
 1573   (eval "$ac_link") 2>&5
 1574   ac_status=$?
 1575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1576   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1577   { { case "(($ac_try" in
 1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1579   *) ac_try_echo=$ac_try;;
 1580 esac
 1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1582 $as_echo "$ac_try_echo"; } >&5
 1583   (eval "$ac_try") 2>&5
 1584   ac_status=$?
 1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1586   test $ac_status = 0; }; }; then :
 1587   ac_retval=0
 1588 else
 1589   $as_echo "$as_me: program exited with status $ac_status" >&5
 1590        $as_echo "$as_me: failed program was:" >&5
 1591 sed 's/^/| /' conftest.$ac_ext >&5
 1592 
 1593        ac_retval=$ac_status
 1594 fi
 1595   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1597   as_fn_set_status $ac_retval
 1598 
 1599 } # ac_fn_c_try_run
 1600 
 1601 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1602 # -------------------------------------------------------
 1603 # Tests whether HEADER exists and can be compiled using the include files in
 1604 # INCLUDES, setting the cache variable VAR accordingly.
 1605 ac_fn_c_check_header_compile ()
 1606 {
 1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1609 $as_echo_n "checking for $2... " >&6; }
 1610 if eval \${$3+:} false; then :
 1611   $as_echo_n "(cached) " >&6
 1612 else
 1613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1614 /* end confdefs.h.  */
 1615 $4
 1616 #include <$2>
 1617 _ACEOF
 1618 if ac_fn_c_try_compile "$LINENO"; then :
 1619   eval "$3=yes"
 1620 else
 1621   eval "$3=no"
 1622 fi
 1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1624 fi
 1625 eval ac_res=\$$3
 1626            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1627 $as_echo "$ac_res" >&6; }
 1628   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1629 
 1630 } # ac_fn_c_check_header_compile
 1631 
 1632 # ac_fn_c_try_link LINENO
 1633 # -----------------------
 1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
 1635 ac_fn_c_try_link ()
 1636 {
 1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1638   rm -f conftest.$ac_objext conftest$ac_exeext
 1639   if { { ac_try="$ac_link"
 1640 case "(($ac_try" in
 1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1642   *) ac_try_echo=$ac_try;;
 1643 esac
 1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1645 $as_echo "$ac_try_echo"; } >&5
 1646   (eval "$ac_link") 2>conftest.err
 1647   ac_status=$?
 1648   if test -s conftest.err; then
 1649     grep -v '^ *+' conftest.err >conftest.er1
 1650     cat conftest.er1 >&5
 1651     mv -f conftest.er1 conftest.err
 1652   fi
 1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1654   test $ac_status = 0; } && {
 1655      test -z "$ac_c_werror_flag" ||
 1656      test ! -s conftest.err
 1657        } && test -s conftest$ac_exeext && {
 1658      test "$cross_compiling" = yes ||
 1659      test -x conftest$ac_exeext
 1660        }; then :
 1661   ac_retval=0
 1662 else
 1663   $as_echo "$as_me: failed program was:" >&5
 1664 sed 's/^/| /' conftest.$ac_ext >&5
 1665 
 1666     ac_retval=1
 1667 fi
 1668   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1669   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1670   # interfere with the next link command; also delete a directory that is
 1671   # left behind by Apple's compiler.  We do this before executing the actions.
 1672   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1674   as_fn_set_status $ac_retval
 1675 
 1676 } # ac_fn_c_try_link
 1677 
 1678 # ac_fn_c_check_func LINENO FUNC VAR
 1679 # ----------------------------------
 1680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1681 ac_fn_c_check_func ()
 1682 {
 1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1685 $as_echo_n "checking for $2... " >&6; }
 1686 if eval \${$3+:} false; then :
 1687   $as_echo_n "(cached) " >&6
 1688 else
 1689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1690 /* end confdefs.h.  */
 1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1693 #define $2 innocuous_$2
 1694 
 1695 /* System header to define __stub macros and hopefully few prototypes,
 1696     which can conflict with char $2 (); below.
 1697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1698     <limits.h> exists even on freestanding compilers.  */
 1699 
 1700 #ifdef __STDC__
 1701 # include <limits.h>
 1702 #else
 1703 # include <assert.h>
 1704 #endif
 1705 
 1706 #undef $2
 1707 
 1708 /* Override any GCC internal prototype to avoid an error.
 1709    Use char because int might match the return type of a GCC
 1710    builtin and then its argument prototype would still apply.  */
 1711 #ifdef __cplusplus
 1712 extern "C"
 1713 #endif
 1714 char $2 ();
 1715 /* The GNU C library defines this for functions which it implements
 1716     to always fail with ENOSYS.  Some functions are actually named
 1717     something starting with __ and the normal name is an alias.  */
 1718 #if defined __stub_$2 || defined __stub___$2
 1719 choke me
 1720 #endif
 1721 
 1722 int
 1723 main ()
 1724 {
 1725 return $2 ();
 1726   ;
 1727   return 0;
 1728 }
 1729 _ACEOF
 1730 if ac_fn_c_try_link "$LINENO"; then :
 1731   eval "$3=yes"
 1732 else
 1733   eval "$3=no"
 1734 fi
 1735 rm -f core conftest.err conftest.$ac_objext \
 1736     conftest$ac_exeext conftest.$ac_ext
 1737 fi
 1738 eval ac_res=\$$3
 1739            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1740 $as_echo "$ac_res" >&6; }
 1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1742 
 1743 } # ac_fn_c_check_func
 1744 
 1745 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1746 # -------------------------------------------------------
 1747 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1748 # the include files in INCLUDES and setting the cache variable VAR
 1749 # accordingly.
 1750 ac_fn_c_check_header_mongrel ()
 1751 {
 1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1753   if eval \${$3+:} false; then :
 1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1755 $as_echo_n "checking for $2... " >&6; }
 1756 if eval \${$3+:} false; then :
 1757   $as_echo_n "(cached) " >&6
 1758 fi
 1759 eval ac_res=\$$3
 1760            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1761 $as_echo "$ac_res" >&6; }
 1762 else
 1763   # Is the header compilable?
 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1765 $as_echo_n "checking $2 usability... " >&6; }
 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1767 /* end confdefs.h.  */
 1768 $4
 1769 #include <$2>
 1770 _ACEOF
 1771 if ac_fn_c_try_compile "$LINENO"; then :
 1772   ac_header_compiler=yes
 1773 else
 1774   ac_header_compiler=no
 1775 fi
 1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1778 $as_echo "$ac_header_compiler" >&6; }
 1779 
 1780 # Is the header present?
 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1782 $as_echo_n "checking $2 presence... " >&6; }
 1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1784 /* end confdefs.h.  */
 1785 #include <$2>
 1786 _ACEOF
 1787 if ac_fn_c_try_cpp "$LINENO"; then :
 1788   ac_header_preproc=yes
 1789 else
 1790   ac_header_preproc=no
 1791 fi
 1792 rm -f conftest.err conftest.i conftest.$ac_ext
 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1794 $as_echo "$ac_header_preproc" >&6; }
 1795 
 1796 # So?  What about this header?
 1797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1798   yes:no: )
 1799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1800 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1803     ;;
 1804   no:yes:* )
 1805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1806 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1808 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1810 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1812 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1815     ;;
 1816 esac
 1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1818 $as_echo_n "checking for $2... " >&6; }
 1819 if eval \${$3+:} false; then :
 1820   $as_echo_n "(cached) " >&6
 1821 else
 1822   eval "$3=\$ac_header_compiler"
 1823 fi
 1824 eval ac_res=\$$3
 1825            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1826 $as_echo "$ac_res" >&6; }
 1827 fi
 1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1829 
 1830 } # ac_fn_c_check_header_mongrel
 1831 
 1832 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 1833 # ---------------------------------------------
 1834 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 1835 # accordingly.
 1836 ac_fn_c_check_decl ()
 1837 {
 1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1839   as_decl_name=`echo $2|sed 's/ *(.*//'`
 1840   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 1842 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 1843 if eval \${$3+:} false; then :
 1844   $as_echo_n "(cached) " >&6
 1845 else
 1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1847 /* end confdefs.h.  */
 1848 $4
 1849 int
 1850 main ()
 1851 {
 1852 #ifndef $as_decl_name
 1853 #ifdef __cplusplus
 1854   (void) $as_decl_use;
 1855 #else
 1856   (void) $as_decl_name;
 1857 #endif
 1858 #endif
 1859 
 1860   ;
 1861   return 0;
 1862 }
 1863 _ACEOF
 1864 if ac_fn_c_try_compile "$LINENO"; then :
 1865   eval "$3=yes"
 1866 else
 1867   eval "$3=no"
 1868 fi
 1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1870 fi
 1871 eval ac_res=\$$3
 1872            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1873 $as_echo "$ac_res" >&6; }
 1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1875 
 1876 } # ac_fn_c_check_decl
 1877 cat >config.log <<_ACEOF
 1878 This file contains any messages produced by compilers while
 1879 running configure, to aid debugging if configure makes a mistake.
 1880 
 1881 It was created by sqlite $as_me 3.32.3, which was
 1882 generated by GNU Autoconf 2.69.  Invocation command line was
 1883 
 1884   $ $0 $@
 1885 
 1886 _ACEOF
 1887 exec 5>>config.log
 1888 {
 1889 cat <<_ASUNAME
 1890 ## --------- ##
 1891 ## Platform. ##
 1892 ## --------- ##
 1893 
 1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1899 
 1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1901 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1902 
 1903 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1904 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1906 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1907 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1908 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1909 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1910 
 1911 _ASUNAME
 1912 
 1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1914 for as_dir in $PATH
 1915 do
 1916   IFS=$as_save_IFS
 1917   test -z "$as_dir" && as_dir=.
 1918     $as_echo "PATH: $as_dir"
 1919   done
 1920 IFS=$as_save_IFS
 1921 
 1922 } >&5
 1923 
 1924 cat >&5 <<_ACEOF
 1925 
 1926 
 1927 ## ----------- ##
 1928 ## Core tests. ##
 1929 ## ----------- ##
 1930 
 1931 _ACEOF
 1932 
 1933 
 1934 # Keep a trace of the command line.
 1935 # Strip out --no-create and --no-recursion so they do not pile up.
 1936 # Strip out --silent because we don't want to record it for future runs.
 1937 # Also quote any args containing shell meta-characters.
 1938 # Make two passes to allow for proper duplicate-argument suppression.
 1939 ac_configure_args=
 1940 ac_configure_args0=
 1941 ac_configure_args1=
 1942 ac_must_keep_next=false
 1943 for ac_pass in 1 2
 1944 do
 1945   for ac_arg
 1946   do
 1947     case $ac_arg in
 1948     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1949     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1950     | -silent | --silent | --silen | --sile | --sil)
 1951       continue ;;
 1952     *\'*)
 1953       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1954     esac
 1955     case $ac_pass in
 1956     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1957     2)
 1958       as_fn_append ac_configure_args1 " '$ac_arg'"
 1959       if test $ac_must_keep_next = true; then
 1960     ac_must_keep_next=false # Got value, back to normal.
 1961       else
 1962     case $ac_arg in
 1963       *=* | --config-cache | -C | -disable-* | --disable-* \
 1964       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1965       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1966       | -with-* | --with-* | -without-* | --without-* | --x)
 1967         case "$ac_configure_args0 " in
 1968           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1969         esac
 1970         ;;
 1971       -* ) ac_must_keep_next=true ;;
 1972     esac
 1973       fi
 1974       as_fn_append ac_configure_args " '$ac_arg'"
 1975       ;;
 1976     esac
 1977   done
 1978 done
 1979 { ac_configure_args0=; unset ac_configure_args0;}
 1980 { ac_configure_args1=; unset ac_configure_args1;}
 1981 
 1982 # When interrupted or exit'd, cleanup temporary files, and complete
 1983 # config.log.  We remove comments because anyway the quotes in there
 1984 # would cause problems or look ugly.
 1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
 1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 1987 trap 'exit_status=$?
 1988   # Save into config.log some information that might help in debugging.
 1989   {
 1990     echo
 1991 
 1992     $as_echo "## ---------------- ##
 1993 ## Cache variables. ##
 1994 ## ---------------- ##"
 1995     echo
 1996     # The following way of writing the cache mishandles newlines in values,
 1997 (
 1998   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 1999     eval ac_val=\$$ac_var
 2000     case $ac_val in #(
 2001     *${as_nl}*)
 2002       case $ac_var in #(
 2003       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2005       esac
 2006       case $ac_var in #(
 2007       _ | IFS | as_nl) ;; #(
 2008       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2009       *) { eval $ac_var=; unset $ac_var;} ;;
 2010       esac ;;
 2011     esac
 2012   done
 2013   (set) 2>&1 |
 2014     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2015     *${as_nl}ac_space=\ *)
 2016       sed -n \
 2017     "s/'\''/'\''\\\\'\'''\''/g;
 2018       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2019       ;; #(
 2020     *)
 2021       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2022       ;;
 2023     esac |
 2024     sort
 2025 )
 2026     echo
 2027 
 2028     $as_echo "## ----------------- ##
 2029 ## Output variables. ##
 2030 ## ----------------- ##"
 2031     echo
 2032     for ac_var in $ac_subst_vars
 2033     do
 2034       eval ac_val=\$$ac_var
 2035       case $ac_val in
 2036       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2037       esac
 2038       $as_echo "$ac_var='\''$ac_val'\''"
 2039     done | sort
 2040     echo
 2041 
 2042     if test -n "$ac_subst_files"; then
 2043       $as_echo "## ------------------- ##
 2044 ## File substitutions. ##
 2045 ## ------------------- ##"
 2046       echo
 2047       for ac_var in $ac_subst_files
 2048       do
 2049     eval ac_val=\$$ac_var
 2050     case $ac_val in
 2051     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2052     esac
 2053     $as_echo "$ac_var='\''$ac_val'\''"
 2054       done | sort
 2055       echo
 2056     fi
 2057 
 2058     if test -s confdefs.h; then
 2059       $as_echo "## ----------- ##
 2060 ## confdefs.h. ##
 2061 ## ----------- ##"
 2062       echo
 2063       cat confdefs.h
 2064       echo
 2065     fi
 2066     test "$ac_signal" != 0 &&
 2067       $as_echo "$as_me: caught signal $ac_signal"
 2068     $as_echo "$as_me: exit $exit_status"
 2069   } >&5
 2070   rm -f core *.core core.conftest.* &&
 2071     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2072     exit $exit_status
 2073 ' 0
 2074 for ac_signal in 1 2 13 15; do
 2075   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2076 done
 2077 ac_signal=0
 2078 
 2079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2080 rm -f -r conftest* confdefs.h
 2081 
 2082 $as_echo "/* confdefs.h */" > confdefs.h
 2083 
 2084 # Predefined preprocessor variables.
 2085 
 2086 cat >>confdefs.h <<_ACEOF
 2087 #define PACKAGE_NAME "$PACKAGE_NAME"
 2088 _ACEOF
 2089 
 2090 cat >>confdefs.h <<_ACEOF
 2091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2092 _ACEOF
 2093 
 2094 cat >>confdefs.h <<_ACEOF
 2095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2096 _ACEOF
 2097 
 2098 cat >>confdefs.h <<_ACEOF
 2099 #define PACKAGE_STRING "$PACKAGE_STRING"
 2100 _ACEOF
 2101 
 2102 cat >>confdefs.h <<_ACEOF
 2103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2104 _ACEOF
 2105 
 2106 cat >>confdefs.h <<_ACEOF
 2107 #define PACKAGE_URL "$PACKAGE_URL"
 2108 _ACEOF
 2109 
 2110 
 2111 # Let the site file select an alternate cache file if it wants to.
 2112 # Prefer an explicitly selected file to automatically selected ones.
 2113 ac_site_file1=NONE
 2114 ac_site_file2=NONE
 2115 if test -n "$CONFIG_SITE"; then
 2116   # We do not want a PATH search for config.site.
 2117   case $CONFIG_SITE in #((
 2118     -*)  ac_site_file1=./$CONFIG_SITE;;
 2119     */*) ac_site_file1=$CONFIG_SITE;;
 2120     *)   ac_site_file1=./$CONFIG_SITE;;
 2121   esac
 2122 elif test "x$prefix" != xNONE; then
 2123   ac_site_file1=$prefix/share/config.site
 2124   ac_site_file2=$prefix/etc/config.site
 2125 else
 2126   ac_site_file1=$ac_default_prefix/share/config.site
 2127   ac_site_file2=$ac_default_prefix/etc/config.site
 2128 fi
 2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2130 do
 2131   test "x$ac_site_file" = xNONE && continue
 2132   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2133     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2135     sed 's/^/| /' "$ac_site_file" >&5
 2136     . "$ac_site_file" \
 2137       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2139 as_fn_error $? "failed to load site script $ac_site_file
 2140 See \`config.log' for more details" "$LINENO" 5; }
 2141   fi
 2142 done
 2143 
 2144 if test -r "$cache_file"; then
 2145   # Some versions of bash will fail to source /dev/null (special files
 2146   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2147   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2148     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2149 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2150     case $cache_file in
 2151       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2152       *)                      . "./$cache_file";;
 2153     esac
 2154   fi
 2155 else
 2156   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2157 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2158   >$cache_file
 2159 fi
 2160 
 2161 # Check that the precious variables saved in the cache have kept the same
 2162 # value.
 2163 ac_cache_corrupted=false
 2164 for ac_var in $ac_precious_vars; do
 2165   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2166   eval ac_new_set=\$ac_env_${ac_var}_set
 2167   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2168   eval ac_new_val=\$ac_env_${ac_var}_value
 2169   case $ac_old_set,$ac_new_set in
 2170     set,)
 2171       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2172 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2173       ac_cache_corrupted=: ;;
 2174     ,set)
 2175       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2176 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2177       ac_cache_corrupted=: ;;
 2178     ,);;
 2179     *)
 2180       if test "x$ac_old_val" != "x$ac_new_val"; then
 2181     # differences in whitespace do not lead to failure.
 2182     ac_old_val_w=`echo x $ac_old_val`
 2183     ac_new_val_w=`echo x $ac_new_val`
 2184     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2185       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2186 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2187       ac_cache_corrupted=:
 2188     else
 2189       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2190 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2191       eval $ac_var=\$ac_old_val
 2192     fi
 2193     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2194 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2195     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2196 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2197       fi;;
 2198   esac
 2199   # Pass precious variables to config.status.
 2200   if test "$ac_new_set" = set; then
 2201     case $ac_new_val in
 2202     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2203     *) ac_arg=$ac_var=$ac_new_val ;;
 2204     esac
 2205     case " $ac_configure_args " in
 2206       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2207       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2208     esac
 2209   fi
 2210 done
 2211 if $ac_cache_corrupted; then
 2212   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2214   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2215 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2216   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2217 fi
 2218 ## -------------------- ##
 2219 ## Main body of script. ##
 2220 ## -------------------- ##
 2221 
 2222 ac_ext=c
 2223 ac_cpp='$CPP $CPPFLAGS'
 2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2227 
 2228 
 2229 
 2230 #--------------------------------------------------------------------
 2231 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
 2232 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
 2233 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
 2234 #--------------------------------------------------------------------
 2235 
 2236 
 2237     # TEA extensions pass this us the version of TEA they think they
 2238     # are compatible with.
 2239     TEA_VERSION="3.9"
 2240 
 2241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
 2242 $as_echo_n "checking for correct TEA configuration... " >&6; }
 2243     if test x"${PACKAGE_NAME}" = x ; then
 2244     as_fn_error $? "
 2245 The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5
 2246     fi
 2247     if test x"3.9" = x ; then
 2248     as_fn_error $? "
 2249 TEA version not specified." "$LINENO" 5
 2250     elif test "3.9" != "${TEA_VERSION}" ; then
 2251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
 2252 $as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
 2253     else
 2254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
 2255 $as_echo "ok (TEA ${TEA_VERSION})" >&6; }
 2256     fi
 2257 
 2258     # If the user did not set CFLAGS, set it now to keep macros
 2259     # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
 2260     if test "${CFLAGS+set}" != "set" ; then
 2261     CFLAGS=""
 2262     fi
 2263 
 2264     case "`uname -s`" in
 2265     *win32*|*WIN32*|*MINGW32_*)
 2266         # Extract the first word of "cygpath", so it can be a program name with args.
 2267 set dummy cygpath; ac_word=$2
 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2269 $as_echo_n "checking for $ac_word... " >&6; }
 2270 if ${ac_cv_prog_CYGPATH+:} false; then :
 2271   $as_echo_n "(cached) " >&6
 2272 else
 2273   if test -n "$CYGPATH"; then
 2274   ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
 2275 else
 2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2277 for as_dir in $PATH
 2278 do
 2279   IFS=$as_save_IFS
 2280   test -z "$as_dir" && as_dir=.
 2281     for ac_exec_ext in '' $ac_executable_extensions; do
 2282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2283     ac_cv_prog_CYGPATH="cygpath -w"
 2284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2285     break 2
 2286   fi
 2287 done
 2288   done
 2289 IFS=$as_save_IFS
 2290 
 2291   test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
 2292 fi
 2293 fi
 2294 CYGPATH=$ac_cv_prog_CYGPATH
 2295 if test -n "$CYGPATH"; then
 2296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
 2297 $as_echo "$CYGPATH" >&6; }
 2298 else
 2299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2300 $as_echo "no" >&6; }
 2301 fi
 2302 
 2303 
 2304         EXEEXT=".exe"
 2305         TEA_PLATFORM="windows"
 2306         ;;
 2307     *CYGWIN_*)
 2308         CYGPATH=echo
 2309         EXEEXT=".exe"
 2310         # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
 2311         ;;
 2312     *)
 2313         CYGPATH=echo
 2314         # Maybe we are cross-compiling....
 2315         case ${host_alias} in
 2316         *mingw32*)
 2317         EXEEXT=".exe"
 2318         TEA_PLATFORM="windows"
 2319         ;;
 2320         *)
 2321         EXEEXT=""
 2322         TEA_PLATFORM="unix"
 2323         ;;
 2324         esac
 2325         ;;
 2326     esac
 2327 
 2328     # Check if exec_prefix is set. If not use fall back to prefix.
 2329     # Note when adjusted, so that TEA_PREFIX can correct for this.
 2330     # This is needed for recursive configures, since autoconf propagates
 2331     # $prefix, but not $exec_prefix (doh!).
 2332     if test x$exec_prefix = xNONE ; then
 2333     exec_prefix_default=yes
 2334     exec_prefix=$prefix
 2335     fi
 2336 
 2337     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
 2338 $as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
 2339 
 2340 
 2341 
 2342 
 2343     # This package name must be replaced statically for AC_SUBST to work
 2344 
 2345     # Substitute STUB_LIB_FILE in case package creates a stub library too.
 2346 
 2347 
 2348     # We AC_SUBST these here to ensure they are subst'ed,
 2349     # in case the user doesn't call TEA_ADD_...
 2350 
 2351 
 2352 
 2353 
 2354 
 2355 
 2356 
 2357 
 2358 
 2359 ac_aux_dir=
 2360 for ac_dir in tclconfig "$srcdir"/tclconfig; do
 2361   if test -f "$ac_dir/install-sh"; then
 2362     ac_aux_dir=$ac_dir
 2363     ac_install_sh="$ac_aux_dir/install-sh -c"
 2364     break
 2365   elif test -f "$ac_dir/install.sh"; then
 2366     ac_aux_dir=$ac_dir
 2367     ac_install_sh="$ac_aux_dir/install.sh -c"
 2368     break
 2369   elif test -f "$ac_dir/shtool"; then
 2370     ac_aux_dir=$ac_dir
 2371     ac_install_sh="$ac_aux_dir/shtool install -c"
 2372     break
 2373   fi
 2374 done
 2375 if test -z "$ac_aux_dir"; then
 2376   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
 2377 fi
 2378 
 2379 # These three variables are undocumented and unsupported,
 2380 # and are intended to be withdrawn in a future Autoconf release.
 2381 # They can cause serious problems if a builder's source tree is in a directory
 2382 # whose full name contains unusual characters.
 2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2385 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2386 
 2387 
 2388 
 2389 #--------------------------------------------------------------------
 2390 # Load the tclConfig.sh file
 2391 #--------------------------------------------------------------------
 2392 
 2393 
 2394 
 2395     #
 2396     # Ok, lets find the tcl configuration
 2397     # First, look for one uninstalled.
 2398     # the alternative search directory is invoked by --with-tcl
 2399     #
 2400 
 2401     if test x"${no_tcl}" = x ; then
 2402     # we reset no_tcl in case something fails here
 2403     no_tcl=true
 2404 
 2405 # Check whether --with-tcl was given.
 2406 if test "${with_tcl+set}" = set; then :
 2407   withval=$with_tcl; with_tclconfig="${withval}"
 2408 fi
 2409 
 2410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
 2411 $as_echo_n "checking for Tcl configuration... " >&6; }
 2412     if ${ac_cv_c_tclconfig+:} false; then :
 2413   $as_echo_n "(cached) " >&6
 2414 else
 2415 
 2416 
 2417         # First check to see if --with-tcl was specified.
 2418         if test x"${with_tclconfig}" != x ; then
 2419         case "${with_tclconfig}" in
 2420             */tclConfig.sh )
 2421             if test -f "${with_tclconfig}"; then
 2422                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
 2423 $as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
 2424                 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
 2425             fi ;;
 2426         esac
 2427         if test -f "${with_tclconfig}/tclConfig.sh" ; then
 2428             ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
 2429         else
 2430             as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
 2431         fi
 2432         fi
 2433 
 2434         # then check for a private Tcl installation
 2435         if test x"${ac_cv_c_tclconfig}" = x ; then
 2436         for i in \
 2437             ../tcl \
 2438             `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2439             `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
 2440             `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
 2441             ../../tcl \
 2442             `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2443             `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
 2444             `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
 2445             ../../../tcl \
 2446             `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2447             `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
 2448             `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
 2449             if test "${TEA_PLATFORM}" = "windows" \
 2450                 -a -f "$i/win/tclConfig.sh" ; then
 2451             ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
 2452             break
 2453             fi
 2454             if test -f "$i/unix/tclConfig.sh" ; then
 2455             ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
 2456             break
 2457             fi
 2458         done
 2459         fi
 2460 
 2461         # on Darwin, check in Framework installation locations
 2462         if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
 2463         for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
 2464             `ls -d /Library/Frameworks 2>/dev/null` \
 2465             `ls -d /Network/Library/Frameworks 2>/dev/null` \
 2466             `ls -d /System/Library/Frameworks 2>/dev/null` \
 2467             ; do
 2468             if test -f "$i/Tcl.framework/tclConfig.sh" ; then
 2469             ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
 2470             break
 2471             fi
 2472         done
 2473         fi
 2474 
 2475         # TEA specific: on Windows, check in common installation locations
 2476         if test "${TEA_PLATFORM}" = "windows" \
 2477         -a x"${ac_cv_c_tclconfig}" = x ; then
 2478         for i in `ls -d C:/Tcl/lib 2>/dev/null` \
 2479             `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
 2480             ; do
 2481             if test -f "$i/tclConfig.sh" ; then
 2482             ac_cv_c_tclconfig="`(cd $i; pwd)`"
 2483             break
 2484             fi
 2485         done
 2486         fi
 2487 
 2488         # check in a few common install locations
 2489         if test x"${ac_cv_c_tclconfig}" = x ; then
 2490         for i in `ls -d ${libdir} 2>/dev/null` \
 2491             `ls -d ${exec_prefix}/lib 2>/dev/null` \
 2492             `ls -d ${prefix}/lib 2>/dev/null` \
 2493             `ls -d /usr/local/lib 2>/dev/null` \
 2494             `ls -d /usr/contrib/lib 2>/dev/null` \
 2495             `ls -d /usr/lib 2>/dev/null` \
 2496             `ls -d /usr/lib64 2>/dev/null` \
 2497             `ls -d /usr/lib/tcl8.6 2>/dev/null` \
 2498             `ls -d /usr/lib/tcl8.5 2>/dev/null` \
 2499             ; do
 2500             if test -f "$i/tclConfig.sh" ; then
 2501             ac_cv_c_tclconfig="`(cd $i; pwd)`"
 2502             break
 2503             fi
 2504         done
 2505         fi
 2506 
 2507         # check in a few other private locations
 2508         if test x"${ac_cv_c_tclconfig}" = x ; then
 2509         for i in \
 2510             ${srcdir}/../tcl \
 2511             `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2512             `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
 2513             `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
 2514             if test "${TEA_PLATFORM}" = "windows" \
 2515                 -a -f "$i/win/tclConfig.sh" ; then
 2516             ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
 2517             break
 2518             fi
 2519             if test -f "$i/unix/tclConfig.sh" ; then
 2520             ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
 2521             break
 2522             fi
 2523         done
 2524         fi
 2525 
 2526 fi
 2527 
 2528 
 2529     if test x"${ac_cv_c_tclconfig}" = x ; then
 2530         TCL_BIN_DIR="# no Tcl configs found"
 2531         as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
 2532     else
 2533         no_tcl=
 2534         TCL_BIN_DIR="${ac_cv_c_tclconfig}"
 2535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
 2536 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
 2537     fi
 2538     fi
 2539 
 2540 ac_ext=c
 2541 ac_cpp='$CPP $CPPFLAGS'
 2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2545 if test -n "$ac_tool_prefix"; then
 2546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2549 $as_echo_n "checking for $ac_word... " >&6; }
 2550 if ${ac_cv_prog_CC+:} false; then :
 2551   $as_echo_n "(cached) " >&6
 2552 else
 2553   if test -n "$CC"; then
 2554   ac_cv_prog_CC="$CC" # Let the user override the test.
 2555 else
 2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2557 for as_dir in $PATH
 2558 do
 2559   IFS=$as_save_IFS
 2560   test -z "$as_dir" && as_dir=.
 2561     for ac_exec_ext in '' $ac_executable_extensions; do
 2562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2565     break 2
 2566   fi
 2567 done
 2568   done
 2569 IFS=$as_save_IFS
 2570 
 2571 fi
 2572 fi
 2573 CC=$ac_cv_prog_CC
 2574 if test -n "$CC"; then
 2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2576 $as_echo "$CC" >&6; }
 2577 else
 2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2579 $as_echo "no" >&6; }
 2580 fi
 2581 
 2582 
 2583 fi
 2584 if test -z "$ac_cv_prog_CC"; then
 2585   ac_ct_CC=$CC
 2586   # Extract the first word of "gcc", so it can be a program name with args.
 2587 set dummy gcc; ac_word=$2
 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2589 $as_echo_n "checking for $ac_word... " >&6; }
 2590 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2591   $as_echo_n "(cached) " >&6
 2592 else
 2593   if test -n "$ac_ct_CC"; then
 2594   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2595 else
 2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2597 for as_dir in $PATH
 2598 do
 2599   IFS=$as_save_IFS
 2600   test -z "$as_dir" && as_dir=.
 2601     for ac_exec_ext in '' $ac_executable_extensions; do
 2602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2603     ac_cv_prog_ac_ct_CC="gcc"
 2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2605     break 2
 2606   fi
 2607 done
 2608   done
 2609 IFS=$as_save_IFS
 2610 
 2611 fi
 2612 fi
 2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2614 if test -n "$ac_ct_CC"; then
 2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2616 $as_echo "$ac_ct_CC" >&6; }
 2617 else
 2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2619 $as_echo "no" >&6; }
 2620 fi
 2621 
 2622   if test "x$ac_ct_CC" = x; then
 2623     CC=""
 2624   else
 2625     case $cross_compiling:$ac_tool_warned in
 2626 yes:)
 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2629 ac_tool_warned=yes ;;
 2630 esac
 2631     CC=$ac_ct_CC
 2632   fi
 2633 else
 2634   CC="$ac_cv_prog_CC"
 2635 fi
 2636 
 2637 if test -z "$CC"; then
 2638           if test -n "$ac_tool_prefix"; then
 2639     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2642 $as_echo_n "checking for $ac_word... " >&6; }
 2643 if ${ac_cv_prog_CC+:} false; then :
 2644   $as_echo_n "(cached) " >&6
 2645 else
 2646   if test -n "$CC"; then
 2647   ac_cv_prog_CC="$CC" # Let the user override the test.
 2648 else
 2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2650 for as_dir in $PATH
 2651 do
 2652   IFS=$as_save_IFS
 2653   test -z "$as_dir" && as_dir=.
 2654     for ac_exec_ext in '' $ac_executable_extensions; do
 2655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2656     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2658     break 2
 2659   fi
 2660 done
 2661   done
 2662 IFS=$as_save_IFS
 2663 
 2664 fi
 2665 fi
 2666 CC=$ac_cv_prog_CC
 2667 if test -n "$CC"; then
 2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2669 $as_echo "$CC" >&6; }
 2670 else
 2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2672 $as_echo "no" >&6; }
 2673 fi
 2674 
 2675 
 2676   fi
 2677 fi
 2678 if test -z "$CC"; then
 2679   # Extract the first word of "cc", so it can be a program name with args.
 2680 set dummy cc; ac_word=$2
 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2682 $as_echo_n "checking for $ac_word... " >&6; }
 2683 if ${ac_cv_prog_CC+:} false; then :
 2684   $as_echo_n "(cached) " >&6
 2685 else
 2686   if test -n "$CC"; then
 2687   ac_cv_prog_CC="$CC" # Let the user override the test.
 2688 else
 2689   ac_prog_rejected=no
 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2691 for as_dir in $PATH
 2692 do
 2693   IFS=$as_save_IFS
 2694   test -z "$as_dir" && as_dir=.
 2695     for ac_exec_ext in '' $ac_executable_extensions; do
 2696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2698        ac_prog_rejected=yes
 2699        continue
 2700      fi
 2701     ac_cv_prog_CC="cc"
 2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2703     break 2
 2704   fi
 2705 done
 2706   done
 2707 IFS=$as_save_IFS
 2708 
 2709 if test $ac_prog_rejected = yes; then
 2710   # We found a bogon in the path, so make sure we never use it.
 2711   set dummy $ac_cv_prog_CC
 2712   shift
 2713   if test $# != 0; then
 2714     # We chose a different compiler from the bogus one.
 2715     # However, it has the same basename, so the bogon will be chosen
 2716     # first if we set CC to just the basename; use the full file name.
 2717     shift
 2718     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2719   fi
 2720 fi
 2721 fi
 2722 fi
 2723 CC=$ac_cv_prog_CC
 2724 if test -n "$CC"; then
 2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2726 $as_echo "$CC" >&6; }
 2727 else
 2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2729 $as_echo "no" >&6; }
 2730 fi
 2731 
 2732 
 2733 fi
 2734 if test -z "$CC"; then
 2735   if test -n "$ac_tool_prefix"; then
 2736   for ac_prog in cl.exe
 2737   do
 2738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2741 $as_echo_n "checking for $ac_word... " >&6; }
 2742 if ${ac_cv_prog_CC+:} false; then :
 2743   $as_echo_n "(cached) " >&6
 2744 else
 2745   if test -n "$CC"; then
 2746   ac_cv_prog_CC="$CC" # Let the user override the test.
 2747 else
 2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2749 for as_dir in $PATH
 2750 do
 2751   IFS=$as_save_IFS
 2752   test -z "$as_dir" && as_dir=.
 2753     for ac_exec_ext in '' $ac_executable_extensions; do
 2754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2757     break 2
 2758   fi
 2759 done
 2760   done
 2761 IFS=$as_save_IFS
 2762 
 2763 fi
 2764 fi
 2765 CC=$ac_cv_prog_CC
 2766 if test -n "$CC"; then
 2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2768 $as_echo "$CC" >&6; }
 2769 else
 2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2771 $as_echo "no" >&6; }
 2772 fi
 2773 
 2774 
 2775     test -n "$CC" && break
 2776   done
 2777 fi
 2778 if test -z "$CC"; then
 2779   ac_ct_CC=$CC
 2780   for ac_prog in cl.exe
 2781 do
 2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2783 set dummy $ac_prog; ac_word=$2
 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2785 $as_echo_n "checking for $ac_word... " >&6; }
 2786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2787   $as_echo_n "(cached) " >&6
 2788 else
 2789   if test -n "$ac_ct_CC"; then
 2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2791 else
 2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2793 for as_dir in $PATH
 2794 do
 2795   IFS=$as_save_IFS
 2796   test -z "$as_dir" && as_dir=.
 2797     for ac_exec_ext in '' $ac_executable_extensions; do
 2798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2799     ac_cv_prog_ac_ct_CC="$ac_prog"
 2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2801     break 2
 2802   fi
 2803 done
 2804   done
 2805 IFS=$as_save_IFS
 2806 
 2807 fi
 2808 fi
 2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2810 if test -n "$ac_ct_CC"; then
 2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2812 $as_echo "$ac_ct_CC" >&6; }
 2813 else
 2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2815 $as_echo "no" >&6; }
 2816 fi
 2817 
 2818 
 2819   test -n "$ac_ct_CC" && break
 2820 done
 2821 
 2822   if test "x$ac_ct_CC" = x; then
 2823     CC=""
 2824   else
 2825     case $cross_compiling:$ac_tool_warned in
 2826 yes:)
 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2829 ac_tool_warned=yes ;;
 2830 esac
 2831     CC=$ac_ct_CC
 2832   fi
 2833 fi
 2834 
 2835 fi
 2836 
 2837 
 2838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2840 as_fn_error $? "no acceptable C compiler found in \$PATH
 2841 See \`config.log' for more details" "$LINENO" 5; }
 2842 
 2843 # Provide some information about the compiler.
 2844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2845 set X $ac_compile
 2846 ac_compiler=$2
 2847 for ac_option in --version -v -V -qversion; do
 2848   { { ac_try="$ac_compiler $ac_option >&5"
 2849 case "(($ac_try" in
 2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2851   *) ac_try_echo=$ac_try;;
 2852 esac
 2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2854 $as_echo "$ac_try_echo"; } >&5
 2855   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2856   ac_status=$?
 2857   if test -s conftest.err; then
 2858     sed '10a\
 2859 ... rest of stderr output deleted ...
 2860          10q' conftest.err >conftest.er1
 2861     cat conftest.er1 >&5
 2862   fi
 2863   rm -f conftest.er1 conftest.err
 2864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2865   test $ac_status = 0; }
 2866 done
 2867 
 2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2869 /* end confdefs.h.  */
 2870 
 2871 int
 2872 main ()
 2873 {
 2874 
 2875   ;
 2876   return 0;
 2877 }
 2878 _ACEOF
 2879 ac_clean_files_save=$ac_clean_files
 2880 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2881 # Try to create an executable without -o first, disregard a.out.
 2882 # It will help us diagnose broken compilers, and finding out an intuition
 2883 # of exeext.
 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2885 $as_echo_n "checking whether the C compiler works... " >&6; }
 2886 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2887 
 2888 # The possible output files:
 2889 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2890 
 2891 ac_rmfiles=
 2892 for ac_file in $ac_files
 2893 do
 2894   case $ac_file in
 2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2896     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2897   esac
 2898 done
 2899 rm -f $ac_rmfiles
 2900 
 2901 if { { ac_try="$ac_link_default"
 2902 case "(($ac_try" in
 2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2904   *) ac_try_echo=$ac_try;;
 2905 esac
 2906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2907 $as_echo "$ac_try_echo"; } >&5
 2908   (eval "$ac_link_default") 2>&5
 2909   ac_status=$?
 2910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2911   test $ac_status = 0; }; then :
 2912   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2914 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2915 # so that the user can short-circuit this test for compilers unknown to
 2916 # Autoconf.
 2917 for ac_file in $ac_files ''
 2918 do
 2919   test -f "$ac_file" || continue
 2920   case $ac_file in
 2921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2922     ;;
 2923     [ab].out )
 2924     # We found the default executable, but exeext='' is most
 2925     # certainly right.
 2926     break;;
 2927     *.* )
 2928     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2929     then :; else
 2930        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2931     fi
 2932     # We set ac_cv_exeext here because the later test for it is not
 2933     # safe: cross compilers may not add the suffix if given an `-o'
 2934     # argument, so we may need to know it at that point already.
 2935     # Even if this section looks crufty: it has the advantage of
 2936     # actually working.
 2937     break;;
 2938     * )
 2939     break;;
 2940   esac
 2941 done
 2942 test "$ac_cv_exeext" = no && ac_cv_exeext=
 2943 
 2944 else
 2945   ac_file=''
 2946 fi
 2947 if test -z "$ac_file"; then :
 2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2949 $as_echo "no" >&6; }
 2950 $as_echo "$as_me: failed program was:" >&5
 2951 sed 's/^/| /' conftest.$ac_ext >&5
 2952 
 2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2955 as_fn_error 77 "C compiler cannot create executables
 2956 See \`config.log' for more details" "$LINENO" 5; }
 2957 else
 2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2959 $as_echo "yes" >&6; }
 2960 fi
 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 2962 $as_echo_n "checking for C compiler default output file name... " >&6; }
 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 2964 $as_echo "$ac_file" >&6; }
 2965 ac_exeext=$ac_cv_exeext
 2966 
 2967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 2968 ac_clean_files=$ac_clean_files_save
 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 2970 $as_echo_n "checking for suffix of executables... " >&6; }
 2971 if { { ac_try="$ac_link"
 2972 case "(($ac_try" in
 2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2974   *) ac_try_echo=$ac_try;;
 2975 esac
 2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2977 $as_echo "$ac_try_echo"; } >&5
 2978   (eval "$ac_link") 2>&5
 2979   ac_status=$?
 2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2981   test $ac_status = 0; }; then :
 2982   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2983 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2984 # work properly (i.e., refer to `conftest.exe'), while it won't with
 2985 # `rm'.
 2986 for ac_file in conftest.exe conftest conftest.*; do
 2987   test -f "$ac_file" || continue
 2988   case $ac_file in
 2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2990     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2991       break;;
 2992     * ) break;;
 2993   esac
 2994 done
 2995 else
 2996   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2998 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 2999 See \`config.log' for more details" "$LINENO" 5; }
 3000 fi
 3001 rm -f conftest conftest$ac_cv_exeext
 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3003 $as_echo "$ac_cv_exeext" >&6; }
 3004 
 3005 rm -f conftest.$ac_ext
 3006 EXEEXT=$ac_cv_exeext
 3007 ac_exeext=$EXEEXT
 3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3009 /* end confdefs.h.  */
 3010 #include <stdio.h>
 3011 int
 3012 main ()
 3013 {
 3014 FILE *f = fopen ("conftest.out", "w");
 3015  return ferror (f) || fclose (f) != 0;
 3016 
 3017   ;
 3018   return 0;
 3019 }
 3020 _ACEOF
 3021 ac_clean_files="$ac_clean_files conftest.out"
 3022 # Check that the compiler produces executables we can run.  If not, either
 3023 # the compiler is broken, or we cross compile.
 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3025 $as_echo_n "checking whether we are cross compiling... " >&6; }
 3026 if test "$cross_compiling" != yes; then
 3027   { { ac_try="$ac_link"
 3028 case "(($ac_try" in
 3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3030   *) ac_try_echo=$ac_try;;
 3031 esac
 3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3033 $as_echo "$ac_try_echo"; } >&5
 3034   (eval "$ac_link") 2>&5
 3035   ac_status=$?
 3036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3037   test $ac_status = 0; }
 3038   if { ac_try='./conftest$ac_cv_exeext'
 3039   { { case "(($ac_try" in
 3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3041   *) ac_try_echo=$ac_try;;
 3042 esac
 3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3044 $as_echo "$ac_try_echo"; } >&5
 3045   (eval "$ac_try") 2>&5
 3046   ac_status=$?
 3047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3048   test $ac_status = 0; }; }; then
 3049     cross_compiling=no
 3050   else
 3051     if test "$cross_compiling" = maybe; then
 3052     cross_compiling=yes
 3053     else
 3054     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3056 as_fn_error $? "cannot run C compiled programs.
 3057 If you meant to cross compile, use \`--host'.
 3058 See \`config.log' for more details" "$LINENO" 5; }
 3059     fi
 3060   fi
 3061 fi
 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3063 $as_echo "$cross_compiling" >&6; }
 3064 
 3065 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3066 ac_clean_files=$ac_clean_files_save
 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3068 $as_echo_n "checking for suffix of object files... " >&6; }
 3069 if ${ac_cv_objext+:} false; then :
 3070   $as_echo_n "(cached) " >&6
 3071 else
 3072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3073 /* end confdefs.h.  */
 3074 
 3075 int
 3076 main ()
 3077 {
 3078 
 3079   ;
 3080   return 0;
 3081 }
 3082 _ACEOF
 3083 rm -f conftest.o conftest.obj
 3084 if { { ac_try="$ac_compile"
 3085 case "(($ac_try" in
 3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3087   *) ac_try_echo=$ac_try;;
 3088 esac
 3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3090 $as_echo "$ac_try_echo"; } >&5
 3091   (eval "$ac_compile") 2>&5
 3092   ac_status=$?
 3093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3094   test $ac_status = 0; }; then :
 3095   for ac_file in conftest.o conftest.obj conftest.*; do
 3096   test -f "$ac_file" || continue;
 3097   case $ac_file in
 3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3099     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3100        break;;
 3101   esac
 3102 done
 3103 else
 3104   $as_echo "$as_me: failed program was:" >&5
 3105 sed 's/^/| /' conftest.$ac_ext >&5
 3106 
 3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3109 as_fn_error $? "cannot compute suffix of object files: cannot compile
 3110 See \`config.log' for more details" "$LINENO" 5; }
 3111 fi
 3112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3113 fi
 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3115 $as_echo "$ac_cv_objext" >&6; }
 3116 OBJEXT=$ac_cv_objext
 3117 ac_objext=$OBJEXT
 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3120 if ${ac_cv_c_compiler_gnu+:} false; then :
 3121   $as_echo_n "(cached) " >&6
 3122 else
 3123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3124 /* end confdefs.h.  */
 3125 
 3126 int
 3127 main ()
 3128 {
 3129 #ifndef __GNUC__
 3130        choke me
 3131 #endif
 3132 
 3133   ;
 3134   return 0;
 3135 }
 3136 _ACEOF
 3137 if ac_fn_c_try_compile "$LINENO"; then :
 3138   ac_compiler_gnu=yes
 3139 else
 3140   ac_compiler_gnu=no
 3141 fi
 3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3144 
 3145 fi
 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3148 if test $ac_compiler_gnu = yes; then
 3149   GCC=yes
 3150 else
 3151   GCC=
 3152 fi
 3153 ac_test_CFLAGS=${CFLAGS+set}
 3154 ac_save_CFLAGS=$CFLAGS
 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3157 if ${ac_cv_prog_cc_g+:} false; then :
 3158   $as_echo_n "(cached) " >&6
 3159 else
 3160   ac_save_c_werror_flag=$ac_c_werror_flag
 3161    ac_c_werror_flag=yes
 3162    ac_cv_prog_cc_g=no
 3163    CFLAGS="-g"
 3164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3165 /* end confdefs.h.  */
 3166 
 3167 int
 3168 main ()
 3169 {
 3170 
 3171   ;
 3172   return 0;
 3173 }
 3174 _ACEOF
 3175 if ac_fn_c_try_compile "$LINENO"; then :
 3176   ac_cv_prog_cc_g=yes
 3177 else
 3178   CFLAGS=""
 3179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3180 /* end confdefs.h.  */
 3181 
 3182 int
 3183 main ()
 3184 {
 3185 
 3186   ;
 3187   return 0;
 3188 }
 3189 _ACEOF
 3190 if ac_fn_c_try_compile "$LINENO"; then :
 3191 
 3192 else
 3193   ac_c_werror_flag=$ac_save_c_werror_flag
 3194      CFLAGS="-g"
 3195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3196 /* end confdefs.h.  */
 3197 
 3198 int
 3199 main ()
 3200 {
 3201 
 3202   ;
 3203   return 0;
 3204 }
 3205 _ACEOF
 3206 if ac_fn_c_try_compile "$LINENO"; then :
 3207   ac_cv_prog_cc_g=yes
 3208 fi
 3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3210 fi
 3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3212 fi
 3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3214    ac_c_werror_flag=$ac_save_c_werror_flag
 3215 fi
 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3217 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3218 if test "$ac_test_CFLAGS" = set; then
 3219   CFLAGS=$ac_save_CFLAGS
 3220 elif test $ac_cv_prog_cc_g = yes; then
 3221   if test "$GCC" = yes; then
 3222     CFLAGS="-g -O2"
 3223   else
 3224     CFLAGS="-g"
 3225   fi
 3226 else
 3227   if test "$GCC" = yes; then
 3228     CFLAGS="-O2"
 3229   else
 3230     CFLAGS=
 3231   fi
 3232 fi
 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3235 if ${ac_cv_prog_cc_c89+:} false; then :
 3236   $as_echo_n "(cached) " >&6
 3237 else
 3238   ac_cv_prog_cc_c89=no
 3239 ac_save_CC=$CC
 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3241 /* end confdefs.h.  */
 3242 #include <stdarg.h>
 3243 #include <stdio.h>
 3244 struct stat;
 3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3246 struct buf { int x; };
 3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3248 static char *e (p, i)
 3249      char **p;
 3250      int i;
 3251 {
 3252   return p[i];
 3253 }
 3254 static char *f (char * (*g) (char **, int), char **p, ...)
 3255 {
 3256   char *s;
 3257   va_list v;
 3258   va_start (v,p);
 3259   s = g (p, va_arg (v,int));
 3260   va_end (v);
 3261   return s;
 3262 }
 3263 
 3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3265    function prototypes and stuff, but not '\xHH' hex character constants.
 3266    These don't provoke an error unfortunately, instead are silently treated
 3267    as 'x'.  The following induces an error, until -std is added to get
 3268    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3269    array size at least.  It's necessary to write '\x00'==0 to get something
 3270    that's true only with -std.  */
 3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3272 
 3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3274    inside strings and character constants.  */
 3275 #define FOO(x) 'x'
 3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3277 
 3278 int test (int i, double x);
 3279 struct s1 {int (*f) (int a);};
 3280 struct s2 {int (*f) (double a);};
 3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3282 int argc;
 3283 char **argv;
 3284 int
 3285 main ()
 3286 {
 3287 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3288   ;
 3289   return 0;
 3290 }
 3291 _ACEOF
 3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3293     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3294 do
 3295   CC="$ac_save_CC $ac_arg"
 3296   if ac_fn_c_try_compile "$LINENO"; then :
 3297   ac_cv_prog_cc_c89=$ac_arg
 3298 fi
 3299 rm -f core conftest.err conftest.$ac_objext
 3300   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3301 done
 3302 rm -f conftest.$ac_ext
 3303 CC=$ac_save_CC
 3304 
 3305 fi
 3306 # AC_CACHE_VAL
 3307 case "x$ac_cv_prog_cc_c89" in
 3308   x)
 3309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3310 $as_echo "none needed" >&6; } ;;
 3311   xno)
 3312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3313 $as_echo "unsupported" >&6; } ;;
 3314   *)
 3315     CC="$CC $ac_cv_prog_cc_c89"
 3316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3318 esac
 3319 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3320 
 3321 fi
 3322 
 3323 ac_ext=c
 3324 ac_cpp='$CPP $CPPFLAGS'
 3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3328 
 3329 
 3330 
 3331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
 3332 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
 3333 
 3334     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
 3335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
 3336 $as_echo "loading" >&6; }
 3337     . "${TCL_BIN_DIR}/tclConfig.sh"
 3338     else
 3339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
 3340 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
 3341     fi
 3342 
 3343     # eval is required to do the TCL_DBGX substitution
 3344     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
 3345     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
 3346 
 3347     # If the TCL_BIN_DIR is the build directory (not the install directory),
 3348     # then set the common variable name to the value of the build variables.
 3349     # For example, the variable TCL_LIB_SPEC will be set to the value
 3350     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
 3351     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
 3352     # installed and uninstalled version of Tcl.
 3353     if test -f "${TCL_BIN_DIR}/Makefile" ; then
 3354         TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
 3355         TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
 3356         TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
 3357     elif test "`uname -s`" = "Darwin"; then
 3358     # If Tcl was built as a framework, attempt to use the libraries
 3359     # from the framework at the given location so that linking works
 3360     # against Tcl.framework installed in an arbitrary location.
 3361     case ${TCL_DEFS} in
 3362         *TCL_FRAMEWORK*)
 3363         if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
 3364             for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
 3365                  "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
 3366             if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
 3367                 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
 3368                 break
 3369             fi
 3370             done
 3371         fi
 3372         if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
 3373             TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
 3374             TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
 3375         fi
 3376         ;;
 3377     esac
 3378     fi
 3379 
 3380     # eval is required to do the TCL_DBGX substitution
 3381     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
 3382     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
 3383     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
 3384     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
 3385 
 3386 
 3387 
 3388 
 3389 
 3390 
 3391 
 3392 
 3393 
 3394 
 3395 
 3396 
 3397 
 3398 
 3399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
 3400 $as_echo_n "checking platform... " >&6; }
 3401     hold_cc=$CC; CC="$TCL_CC"
 3402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3403 /* end confdefs.h.  */
 3404 
 3405 int
 3406 main ()
 3407 {
 3408 
 3409         #ifdef _WIN32
 3410         #error win32
 3411         #endif
 3412 
 3413   ;
 3414   return 0;
 3415 }
 3416 _ACEOF
 3417 if ac_fn_c_try_compile "$LINENO"; then :
 3418   TEA_PLATFORM="unix"
 3419 else
 3420   TEA_PLATFORM="windows"
 3421 
 3422 fi
 3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3424     CC=$hold_cc
 3425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
 3426 $as_echo "$TEA_PLATFORM" >&6; }
 3427 
 3428     # The BUILD_$pkg is to define the correct extern storage class
 3429     # handling when making this package
 3430 
 3431 cat >>confdefs.h <<_ACEOF
 3432 #define BUILD_${PACKAGE_NAME} /**/
 3433 _ACEOF
 3434 
 3435     # Do this here as we have fully defined TEA_PLATFORM now
 3436     if test "${TEA_PLATFORM}" = "windows" ; then
 3437     EXEEXT=".exe"
 3438     CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
 3439     fi
 3440 
 3441     # TEA specific:
 3442 
 3443 
 3444 
 3445 
 3446 
 3447 
 3448 
 3449 
 3450 #--------------------------------------------------------------------
 3451 # Load the tkConfig.sh file if necessary (Tk extension)
 3452 #--------------------------------------------------------------------
 3453 
 3454 #TEA_PATH_TKCONFIG
 3455 #TEA_LOAD_TKCONFIG
 3456 
 3457 #-----------------------------------------------------------------------
 3458 # Handle the --prefix=... option by defaulting to what Tcl gave.
 3459 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
 3460 #-----------------------------------------------------------------------
 3461 
 3462 
 3463     if test "${prefix}" = "NONE"; then
 3464     prefix_default=yes
 3465     if test x"${TCL_PREFIX}" != x; then
 3466         { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
 3467 $as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
 3468         prefix=${TCL_PREFIX}
 3469     else
 3470         { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
 3471 $as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
 3472         prefix=/usr/local
 3473     fi
 3474     fi
 3475     if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
 3476     -o x"${exec_prefix_default}" = x"yes" ; then
 3477     if test x"${TCL_EXEC_PREFIX}" != x; then
 3478         { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
 3479 $as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
 3480         exec_prefix=${TCL_EXEC_PREFIX}
 3481     else
 3482         { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
 3483 $as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
 3484         exec_prefix=$prefix
 3485     fi
 3486     fi
 3487 
 3488 
 3489 #-----------------------------------------------------------------------
 3490 # Standard compiler checks.
 3491 # This sets up CC by using the CC env var, or looks for gcc otherwise.
 3492 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
 3493 # the basic setup necessary to compile executables.
 3494 #-----------------------------------------------------------------------
 3495 
 3496 
 3497     # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
 3498     # in this macro, they need to go into TEA_SETUP_COMPILER instead.
 3499 
 3500     ac_ext=c
 3501 ac_cpp='$CPP $CPPFLAGS'
 3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3505 if test -n "$ac_tool_prefix"; then
 3506   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3509 $as_echo_n "checking for $ac_word... " >&6; }
 3510 if ${ac_cv_prog_CC+:} false; then :
 3511   $as_echo_n "(cached) " >&6
 3512 else
 3513   if test -n "$CC"; then
 3514   ac_cv_prog_CC="$CC" # Let the user override the test.
 3515 else
 3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3517 for as_dir in $PATH
 3518 do
 3519   IFS=$as_save_IFS
 3520   test -z "$as_dir" && as_dir=.
 3521     for ac_exec_ext in '' $ac_executable_extensions; do
 3522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3523     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3525     break 2
 3526   fi
 3527 done
 3528   done
 3529 IFS=$as_save_IFS
 3530 
 3531 fi
 3532 fi
 3533 CC=$ac_cv_prog_CC
 3534 if test -n "$CC"; then
 3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3536 $as_echo "$CC" >&6; }
 3537 else
 3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3539 $as_echo "no" >&6; }
 3540 fi
 3541 
 3542 
 3543 fi
 3544 if test -z "$ac_cv_prog_CC"; then
 3545   ac_ct_CC=$CC
 3546   # Extract the first word of "gcc", so it can be a program name with args.
 3547 set dummy gcc; ac_word=$2
 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3549 $as_echo_n "checking for $ac_word... " >&6; }
 3550 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3551   $as_echo_n "(cached) " >&6
 3552 else
 3553   if test -n "$ac_ct_CC"; then
 3554   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3555 else
 3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3557 for as_dir in $PATH
 3558 do
 3559   IFS=$as_save_IFS
 3560   test -z "$as_dir" && as_dir=.
 3561     for ac_exec_ext in '' $ac_executable_extensions; do
 3562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3563     ac_cv_prog_ac_ct_CC="gcc"
 3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3565     break 2
 3566   fi
 3567 done
 3568   done
 3569 IFS=$as_save_IFS
 3570 
 3571 fi
 3572 fi
 3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3574 if test -n "$ac_ct_CC"; then
 3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3576 $as_echo "$ac_ct_CC" >&6; }
 3577 else
 3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3579 $as_echo "no" >&6; }
 3580 fi
 3581 
 3582   if test "x$ac_ct_CC" = x; then
 3583     CC=""
 3584   else
 3585     case $cross_compiling:$ac_tool_warned in
 3586 yes:)
 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3589 ac_tool_warned=yes ;;
 3590 esac
 3591     CC=$ac_ct_CC
 3592   fi
 3593 else
 3594   CC="$ac_cv_prog_CC"
 3595 fi
 3596 
 3597 if test -z "$CC"; then
 3598           if test -n "$ac_tool_prefix"; then
 3599     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3600 set dummy ${ac_tool_prefix}cc; ac_word=$2
 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3602 $as_echo_n "checking for $ac_word... " >&6; }
 3603 if ${ac_cv_prog_CC+:} false; then :
 3604   $as_echo_n "(cached) " >&6
 3605 else
 3606   if test -n "$CC"; then
 3607   ac_cv_prog_CC="$CC" # Let the user override the test.
 3608 else
 3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3610 for as_dir in $PATH
 3611 do
 3612   IFS=$as_save_IFS
 3613   test -z "$as_dir" && as_dir=.
 3614     for ac_exec_ext in '' $ac_executable_extensions; do
 3615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3616     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3618     break 2
 3619   fi
 3620 done
 3621   done
 3622 IFS=$as_save_IFS
 3623 
 3624 fi
 3625 fi
 3626 CC=$ac_cv_prog_CC
 3627 if test -n "$CC"; then
 3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3629 $as_echo "$CC" >&6; }
 3630 else
 3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3632 $as_echo "no" >&6; }
 3633 fi
 3634 
 3635 
 3636   fi
 3637 fi
 3638 if test -z "$CC"; then
 3639   # Extract the first word of "cc", so it can be a program name with args.
 3640 set dummy cc; ac_word=$2
 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3642 $as_echo_n "checking for $ac_word... " >&6; }
 3643 if ${ac_cv_prog_CC+:} false; then :
 3644   $as_echo_n "(cached) " >&6
 3645 else
 3646   if test -n "$CC"; then
 3647   ac_cv_prog_CC="$CC" # Let the user override the test.
 3648 else
 3649   ac_prog_rejected=no
 3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3651 for as_dir in $PATH
 3652 do
 3653   IFS=$as_save_IFS
 3654   test -z "$as_dir" && as_dir=.
 3655     for ac_exec_ext in '' $ac_executable_extensions; do
 3656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3658        ac_prog_rejected=yes
 3659        continue
 3660      fi
 3661     ac_cv_prog_CC="cc"
 3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3663     break 2
 3664   fi
 3665 done
 3666   done
 3667 IFS=$as_save_IFS
 3668 
 3669 if test $ac_prog_rejected = yes; then
 3670   # We found a bogon in the path, so make sure we never use it.
 3671   set dummy $ac_cv_prog_CC
 3672   shift
 3673   if test $# != 0; then
 3674     # We chose a different compiler from the bogus one.
 3675     # However, it has the same basename, so the bogon will be chosen
 3676     # first if we set CC to just the basename; use the full file name.
 3677     shift
 3678     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3679   fi
 3680 fi
 3681 fi
 3682 fi
 3683 CC=$ac_cv_prog_CC
 3684 if test -n "$CC"; then
 3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3686 $as_echo "$CC" >&6; }
 3687 else
 3688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3689 $as_echo "no" >&6; }
 3690 fi
 3691 
 3692 
 3693 fi
 3694 if test -z "$CC"; then
 3695   if test -n "$ac_tool_prefix"; then
 3696   for ac_prog in cl.exe
 3697   do
 3698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3701 $as_echo_n "checking for $ac_word... " >&6; }
 3702 if ${ac_cv_prog_CC+:} false; then :
 3703   $as_echo_n "(cached) " >&6
 3704 else
 3705   if test -n "$CC"; then
 3706   ac_cv_prog_CC="$CC" # Let the user override the test.
 3707 else
 3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3709 for as_dir in $PATH
 3710 do
 3711   IFS=$as_save_IFS
 3712   test -z "$as_dir" && as_dir=.
 3713     for ac_exec_ext in '' $ac_executable_extensions; do
 3714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3715     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3717     break 2
 3718   fi
 3719 done
 3720   done
 3721 IFS=$as_save_IFS
 3722 
 3723 fi
 3724 fi
 3725 CC=$ac_cv_prog_CC
 3726 if test -n "$CC"; then
 3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3728 $as_echo "$CC" >&6; }
 3729 else
 3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3731 $as_echo "no" >&6; }
 3732 fi
 3733 
 3734 
 3735     test -n "$CC" && break
 3736   done
 3737 fi
 3738 if test -z "$CC"; then
 3739   ac_ct_CC=$CC
 3740   for ac_prog in cl.exe
 3741 do
 3742   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3743 set dummy $ac_prog; ac_word=$2
 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3745 $as_echo_n "checking for $ac_word... " >&6; }
 3746 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3747   $as_echo_n "(cached) " >&6
 3748 else
 3749   if test -n "$ac_ct_CC"; then
 3750   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3751 else
 3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3753 for as_dir in $PATH
 3754 do
 3755   IFS=$as_save_IFS
 3756   test -z "$as_dir" && as_dir=.
 3757     for ac_exec_ext in '' $ac_executable_extensions; do
 3758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3759     ac_cv_prog_ac_ct_CC="$ac_prog"
 3760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3761     break 2
 3762   fi
 3763 done
 3764   done
 3765 IFS=$as_save_IFS
 3766 
 3767 fi
 3768 fi
 3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3770 if test -n "$ac_ct_CC"; then
 3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3772 $as_echo "$ac_ct_CC" >&6; }
 3773 else
 3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3775 $as_echo "no" >&6; }
 3776 fi
 3777 
 3778 
 3779   test -n "$ac_ct_CC" && break
 3780 done
 3781 
 3782   if test "x$ac_ct_CC" = x; then
 3783     CC=""
 3784   else
 3785     case $cross_compiling:$ac_tool_warned in
 3786 yes:)
 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3789 ac_tool_warned=yes ;;
 3790 esac
 3791     CC=$ac_ct_CC
 3792   fi
 3793 fi
 3794 
 3795 fi
 3796 
 3797 
 3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3800 as_fn_error $? "no acceptable C compiler found in \$PATH
 3801 See \`config.log' for more details" "$LINENO" 5; }
 3802 
 3803 # Provide some information about the compiler.
 3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3805 set X $ac_compile
 3806 ac_compiler=$2
 3807 for ac_option in --version -v -V -qversion; do
 3808   { { ac_try="$ac_compiler $ac_option >&5"
 3809 case "(($ac_try" in
 3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3811   *) ac_try_echo=$ac_try;;
 3812 esac
 3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3814 $as_echo "$ac_try_echo"; } >&5
 3815   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3816   ac_status=$?
 3817   if test -s conftest.err; then
 3818     sed '10a\
 3819 ... rest of stderr output deleted ...
 3820          10q' conftest.err >conftest.er1
 3821     cat conftest.er1 >&5
 3822   fi
 3823   rm -f conftest.er1 conftest.err
 3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3825   test $ac_status = 0; }
 3826 done
 3827 
 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3830 if ${ac_cv_c_compiler_gnu+:} false; then :
 3831   $as_echo_n "(cached) " >&6
 3832 else
 3833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3834 /* end confdefs.h.  */
 3835 
 3836 int
 3837 main ()
 3838 {
 3839 #ifndef __GNUC__
 3840        choke me
 3841 #endif
 3842 
 3843   ;
 3844   return 0;
 3845 }
 3846 _ACEOF
 3847 if ac_fn_c_try_compile "$LINENO"; then :
 3848   ac_compiler_gnu=yes
 3849 else
 3850   ac_compiler_gnu=no
 3851 fi
 3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3854 
 3855 fi
 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3858 if test $ac_compiler_gnu = yes; then
 3859   GCC=yes
 3860 else
 3861   GCC=
 3862 fi
 3863 ac_test_CFLAGS=${CFLAGS+set}
 3864 ac_save_CFLAGS=$CFLAGS
 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3867 if ${ac_cv_prog_cc_g+:} false; then :
 3868   $as_echo_n "(cached) " >&6
 3869 else
 3870   ac_save_c_werror_flag=$ac_c_werror_flag
 3871    ac_c_werror_flag=yes
 3872    ac_cv_prog_cc_g=no
 3873    CFLAGS="-g"
 3874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3875 /* end confdefs.h.  */
 3876 
 3877 int
 3878 main ()
 3879 {
 3880 
 3881   ;
 3882   return 0;
 3883 }
 3884 _ACEOF
 3885 if ac_fn_c_try_compile "$LINENO"; then :
 3886   ac_cv_prog_cc_g=yes
 3887 else
 3888   CFLAGS=""
 3889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3890 /* end confdefs.h.  */
 3891 
 3892 int
 3893 main ()
 3894 {
 3895 
 3896   ;
 3897   return 0;
 3898 }
 3899 _ACEOF
 3900 if ac_fn_c_try_compile "$LINENO"; then :
 3901 
 3902 else
 3903   ac_c_werror_flag=$ac_save_c_werror_flag
 3904      CFLAGS="-g"
 3905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3906 /* end confdefs.h.  */
 3907 
 3908 int
 3909 main ()
 3910 {
 3911 
 3912   ;
 3913   return 0;
 3914 }
 3915 _ACEOF
 3916 if ac_fn_c_try_compile "$LINENO"; then :
 3917   ac_cv_prog_cc_g=yes
 3918 fi
 3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3920 fi
 3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3922 fi
 3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3924    ac_c_werror_flag=$ac_save_c_werror_flag
 3925 fi
 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3927 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3928 if test "$ac_test_CFLAGS" = set; then
 3929   CFLAGS=$ac_save_CFLAGS
 3930 elif test $ac_cv_prog_cc_g = yes; then
 3931   if test "$GCC" = yes; then
 3932     CFLAGS="-g -O2"
 3933   else
 3934     CFLAGS="-g"
 3935   fi
 3936 else
 3937   if test "$GCC" = yes; then
 3938     CFLAGS="-O2"
 3939   else
 3940     CFLAGS=
 3941   fi
 3942 fi
 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3945 if ${ac_cv_prog_cc_c89+:} false; then :
 3946   $as_echo_n "(cached) " >&6
 3947 else
 3948   ac_cv_prog_cc_c89=no
 3949 ac_save_CC=$CC
 3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3951 /* end confdefs.h.  */
 3952 #include <stdarg.h>
 3953 #include <stdio.h>
 3954 struct stat;
 3955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3956 struct buf { int x; };
 3957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3958 static char *e (p, i)
 3959      char **p;
 3960      int i;
 3961 {
 3962   return p[i];
 3963 }
 3964 static char *f (char * (*g) (char **, int), char **p, ...)
 3965 {
 3966   char *s;
 3967   va_list v;
 3968   va_start (v,p);
 3969   s = g (p, va_arg (v,int));
 3970   va_end (v);
 3971   return s;
 3972 }
 3973 
 3974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3975    function prototypes and stuff, but not '\xHH' hex character constants.
 3976    These don't provoke an error unfortunately, instead are silently treated
 3977    as 'x'.  The following induces an error, until -std is added to get
 3978    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3979    array size at least.  It's necessary to write '\x00'==0 to get something
 3980    that's true only with -std.  */
 3981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3982 
 3983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3984    inside strings and character constants.  */
 3985 #define FOO(x) 'x'
 3986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3987 
 3988 int test (int i, double x);
 3989 struct s1 {int (*f) (int a);};
 3990 struct s2 {int (*f) (double a);};
 3991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3992 int argc;
 3993 char **argv;
 3994 int
 3995 main ()
 3996 {
 3997 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3998   ;
 3999   return 0;
 4000 }
 4001 _ACEOF
 4002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4003     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4004 do
 4005   CC="$ac_save_CC $ac_arg"
 4006   if ac_fn_c_try_compile "$LINENO"; then :
 4007   ac_cv_prog_cc_c89=$ac_arg
 4008 fi
 4009 rm -f core conftest.err conftest.$ac_objext
 4010   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4011 done
 4012 rm -f conftest.$ac_ext
 4013 CC=$ac_save_CC
 4014 
 4015 fi
 4016 # AC_CACHE_VAL
 4017 case "x$ac_cv_prog_cc_c89" in
 4018   x)
 4019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4020 $as_echo "none needed" >&6; } ;;
 4021   xno)
 4022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4023 $as_echo "unsupported" >&6; } ;;
 4024   *)
 4025     CC="$CC $ac_cv_prog_cc_c89"
 4026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4027 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4028 esac
 4029 if test "x$ac_cv_prog_cc_c89" != xno; then :
 4030 
 4031 fi
 4032 
 4033 ac_ext=c
 4034 ac_cpp='$CPP $CPPFLAGS'
 4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4038 
 4039     ac_ext=c
 4040 ac_cpp='$CPP $CPPFLAGS'
 4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 4045 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 4046 # On Suns, sometimes $CPP names a directory.
 4047 if test -n "$CPP" && test -d "$CPP"; then
 4048   CPP=
 4049 fi
 4050 if test -z "$CPP"; then
 4051   if ${ac_cv_prog_CPP+:} false; then :
 4052   $as_echo_n "(cached) " >&6
 4053 else
 4054       # Double quotes because CPP needs to be expanded
 4055     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4056     do
 4057       ac_preproc_ok=false
 4058 for ac_c_preproc_warn_flag in '' yes
 4059 do
 4060   # Use a header file that comes with gcc, so configuring glibc
 4061   # with a fresh cross-compiler works.
 4062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4063   # <limits.h> exists even on freestanding compilers.
 4064   # On the NeXT, cc -E runs the code through the compiler's parser,
 4065   # not just through cpp. "Syntax error" is here to catch this case.
 4066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4067 /* end confdefs.h.  */
 4068 #ifdef __STDC__
 4069 # include <limits.h>
 4070 #else
 4071 # include <assert.h>
 4072 #endif
 4073              Syntax error
 4074 _ACEOF
 4075 if ac_fn_c_try_cpp "$LINENO"; then :
 4076 
 4077 else
 4078   # Broken: fails on valid input.
 4079 continue
 4080 fi
 4081 rm -f conftest.err conftest.i conftest.$ac_ext
 4082 
 4083   # OK, works on sane cases.  Now check whether nonexistent headers
 4084   # can be detected and how.
 4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4086 /* end confdefs.h.  */
 4087 #include <ac_nonexistent.h>
 4088 _ACEOF
 4089 if ac_fn_c_try_cpp "$LINENO"; then :
 4090   # Broken: success on invalid input.
 4091 continue
 4092 else
 4093   # Passes both tests.
 4094 ac_preproc_ok=:
 4095 break
 4096 fi
 4097 rm -f conftest.err conftest.i conftest.$ac_ext
 4098 
 4099 done
 4100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4101 rm -f conftest.i conftest.err conftest.$ac_ext
 4102 if $ac_preproc_ok; then :
 4103   break
 4104 fi
 4105 
 4106     done
 4107     ac_cv_prog_CPP=$CPP
 4108 
 4109 fi
 4110   CPP=$ac_cv_prog_CPP
 4111 else
 4112   ac_cv_prog_CPP=$CPP
 4113 fi
 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 4115 $as_echo "$CPP" >&6; }
 4116 ac_preproc_ok=false
 4117 for ac_c_preproc_warn_flag in '' yes
 4118 do
 4119   # Use a header file that comes with gcc, so configuring glibc
 4120   # with a fresh cross-compiler works.
 4121   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4122   # <limits.h> exists even on freestanding compilers.
 4123   # On the NeXT, cc -E runs the code through the compiler's parser,
 4124   # not just through cpp. "Syntax error" is here to catch this case.
 4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4126 /* end confdefs.h.  */
 4127 #ifdef __STDC__
 4128 # include <limits.h>
 4129 #else
 4130 # include <assert.h>
 4131 #endif
 4132              Syntax error
 4133 _ACEOF
 4134 if ac_fn_c_try_cpp "$LINENO"; then :
 4135 
 4136 else
 4137   # Broken: fails on valid input.
 4138 continue
 4139 fi
 4140 rm -f conftest.err conftest.i conftest.$ac_ext
 4141 
 4142   # OK, works on sane cases.  Now check whether nonexistent headers
 4143   # can be detected and how.
 4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4145 /* end confdefs.h.  */
 4146 #include <ac_nonexistent.h>
 4147 _ACEOF
 4148 if ac_fn_c_try_cpp "$LINENO"; then :
 4149   # Broken: success on invalid input.
 4150 continue
 4151 else
 4152   # Passes both tests.
 4153 ac_preproc_ok=:
 4154 break
 4155 fi
 4156 rm -f conftest.err conftest.i conftest.$ac_ext
 4157 
 4158 done
 4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4160 rm -f conftest.i conftest.err conftest.$ac_ext
 4161 if $ac_preproc_ok; then :
 4162 
 4163 else
 4164   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4166 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 4167 See \`config.log' for more details" "$LINENO" 5; }
 4168 fi
 4169 
 4170 ac_ext=c
 4171 ac_cpp='$CPP $CPPFLAGS'
 4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4175 
 4176 
 4177     INSTALL="\$(SHELL) \$(srcdir)/tclconfig/install-sh -c"
 4178 
 4179     INSTALL_DATA="\${INSTALL} -m 644"
 4180 
 4181     INSTALL_PROGRAM="\${INSTALL}"
 4182 
 4183     INSTALL_SCRIPT="\${INSTALL}"
 4184 
 4185 
 4186     #--------------------------------------------------------------------
 4187     # Checks to see if the make program sets the $MAKE variable.
 4188     #--------------------------------------------------------------------
 4189 
 4190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 4191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 4192 set x ${MAKE-make}
 4193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 4194 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 4195   $as_echo_n "(cached) " >&6
 4196 else
 4197   cat >conftest.make <<\_ACEOF
 4198 SHELL = /bin/sh
 4199 all:
 4200     @echo '@@@%%%=$(MAKE)=@@@%%%'
 4201 _ACEOF
 4202 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 4203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
 4204   *@@@%%%=?*=@@@%%%*)
 4205     eval ac_cv_prog_make_${ac_make}_set=yes;;
 4206   *)
 4207     eval ac_cv_prog_make_${ac_make}_set=no;;
 4208 esac
 4209 rm -f conftest.make
 4210 fi
 4211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4213 $as_echo "yes" >&6; }
 4214   SET_MAKE=
 4215 else
 4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4217 $as_echo "no" >&6; }
 4218   SET_MAKE="MAKE=${MAKE-make}"
 4219 fi
 4220 
 4221 
 4222     #--------------------------------------------------------------------
 4223     # Find ranlib
 4224     #--------------------------------------------------------------------
 4225 
 4226     if test -n "$ac_tool_prefix"; then
 4227   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 4228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4230 $as_echo_n "checking for $ac_word... " >&6; }
 4231 if ${ac_cv_prog_RANLIB+:} false; then :
 4232   $as_echo_n "(cached) " >&6
 4233 else
 4234   if test -n "$RANLIB"; then
 4235   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 4236 else
 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4238 for as_dir in $PATH
 4239 do
 4240   IFS=$as_save_IFS
 4241   test -z "$as_dir" && as_dir=.
 4242     for ac_exec_ext in '' $ac_executable_extensions; do
 4243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4244     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4246     break 2
 4247   fi
 4248 done
 4249   done
 4250 IFS=$as_save_IFS
 4251 
 4252 fi
 4253 fi
 4254 RANLIB=$ac_cv_prog_RANLIB
 4255 if test -n "$RANLIB"; then
 4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 4257 $as_echo "$RANLIB" >&6; }
 4258 else
 4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4260 $as_echo "no" >&6; }
 4261 fi
 4262 
 4263 
 4264 fi
 4265 if test -z "$ac_cv_prog_RANLIB"; then
 4266   ac_ct_RANLIB=$RANLIB
 4267   # Extract the first word of "ranlib", so it can be a program name with args.
 4268 set dummy ranlib; ac_word=$2
 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4270 $as_echo_n "checking for $ac_word... " >&6; }
 4271 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 4272   $as_echo_n "(cached) " >&6
 4273 else
 4274   if test -n "$ac_ct_RANLIB"; then
 4275   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 4276 else
 4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4278 for as_dir in $PATH
 4279 do
 4280   IFS=$as_save_IFS
 4281   test -z "$as_dir" && as_dir=.
 4282     for ac_exec_ext in '' $ac_executable_extensions; do
 4283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4284     ac_cv_prog_ac_ct_RANLIB="ranlib"
 4285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4286     break 2
 4287   fi
 4288 done
 4289   done
 4290 IFS=$as_save_IFS
 4291 
 4292 fi
 4293 fi
 4294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 4295 if test -n "$ac_ct_RANLIB"; then
 4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 4297 $as_echo "$ac_ct_RANLIB" >&6; }
 4298 else
 4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4300 $as_echo "no" >&6; }
 4301 fi
 4302 
 4303   if test "x$ac_ct_RANLIB" = x; then
 4304     RANLIB=""
 4305   else
 4306     case $cross_compiling:$ac_tool_warned in
 4307 yes:)
 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4310 ac_tool_warned=yes ;;
 4311 esac
 4312     RANLIB=$ac_ct_RANLIB
 4313   fi
 4314 else
 4315   RANLIB="$ac_cv_prog_RANLIB"
 4316 fi
 4317 
 4318 
 4319     #--------------------------------------------------------------------
 4320     # Determines the correct binary file extension (.o, .obj, .exe etc.)
 4321     #--------------------------------------------------------------------
 4322 
 4323 
 4324 
 4325 
 4326 
 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 4328 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 4329 if ${ac_cv_path_GREP+:} false; then :
 4330   $as_echo_n "(cached) " >&6
 4331 else
 4332   if test -z "$GREP"; then
 4333   ac_path_GREP_found=false
 4334   # Loop through the user's path and test for each of PROGNAME-LIST
 4335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4337 do
 4338   IFS=$as_save_IFS
 4339   test -z "$as_dir" && as_dir=.
 4340     for ac_prog in grep ggrep; do
 4341     for ac_exec_ext in '' $ac_executable_extensions; do
 4342       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 4343       as_fn_executable_p "$ac_path_GREP" || continue
 4344 # Check for GNU ac_path_GREP and select it if it is found.
 4345   # Check for GNU $ac_path_GREP
 4346 case `"$ac_path_GREP" --version 2>&1` in
 4347 *GNU*)
 4348   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 4349 *)
 4350   ac_count=0
 4351   $as_echo_n 0123456789 >"conftest.in"
 4352   while :
 4353   do
 4354     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4355     mv "conftest.tmp" "conftest.in"
 4356     cp "conftest.in" "conftest.nl"
 4357     $as_echo 'GREP' >> "conftest.nl"
 4358     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4359     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4360     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4361     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 4362       # Best one so far, save it but keep looking for a better one
 4363       ac_cv_path_GREP="$ac_path_GREP"
 4364       ac_path_GREP_max=$ac_count
 4365     fi
 4366     # 10*(2^10) chars as input seems more than enough
 4367     test $ac_count -gt 10 && break
 4368   done
 4369   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4370 esac
 4371 
 4372       $ac_path_GREP_found && break 3
 4373     done
 4374   done
 4375   done
 4376 IFS=$as_save_IFS
 4377   if test -z "$ac_cv_path_GREP"; then
 4378     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4379   fi
 4380 else
 4381   ac_cv_path_GREP=$GREP
 4382 fi
 4383 
 4384 fi
 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 4386 $as_echo "$ac_cv_path_GREP" >&6; }
 4387  GREP="$ac_cv_path_GREP"
 4388 
 4389 
 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 4391 $as_echo_n "checking for egrep... " >&6; }
 4392 if ${ac_cv_path_EGREP+:} false; then :
 4393   $as_echo_n "(cached) " >&6
 4394 else
 4395   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 4396    then ac_cv_path_EGREP="$GREP -E"
 4397    else
 4398      if test -z "$EGREP"; then
 4399   ac_path_EGREP_found=false
 4400   # Loop through the user's path and test for each of PROGNAME-LIST
 4401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4403 do
 4404   IFS=$as_save_IFS
 4405   test -z "$as_dir" && as_dir=.
 4406     for ac_prog in egrep; do
 4407     for ac_exec_ext in '' $ac_executable_extensions; do
 4408       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 4409       as_fn_executable_p "$ac_path_EGREP" || continue
 4410 # Check for GNU ac_path_EGREP and select it if it is found.
 4411   # Check for GNU $ac_path_EGREP
 4412 case `"$ac_path_EGREP" --version 2>&1` in
 4413 *GNU*)
 4414   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 4415 *)
 4416   ac_count=0
 4417   $as_echo_n 0123456789 >"conftest.in"
 4418   while :
 4419   do
 4420     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4421     mv "conftest.tmp" "conftest.in"
 4422     cp "conftest.in" "conftest.nl"
 4423     $as_echo 'EGREP' >> "conftest.nl"
 4424     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4425     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4426     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4427     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4428       # Best one so far, save it but keep looking for a better one
 4429       ac_cv_path_EGREP="$ac_path_EGREP"
 4430       ac_path_EGREP_max=$ac_count
 4431     fi
 4432     # 10*(2^10) chars as input seems more than enough
 4433     test $ac_count -gt 10 && break
 4434   done
 4435   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4436 esac
 4437 
 4438       $ac_path_EGREP_found && break 3
 4439     done
 4440   done
 4441   done
 4442 IFS=$as_save_IFS
 4443   if test -z "$ac_cv_path_EGREP"; then
 4444     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4445   fi
 4446 else
 4447   ac_cv_path_EGREP=$EGREP
 4448 fi
 4449 
 4450    fi
 4451 fi
 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4453 $as_echo "$ac_cv_path_EGREP" >&6; }
 4454  EGREP="$ac_cv_path_EGREP"
 4455 
 4456 
 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 4458 $as_echo_n "checking for ANSI C header files... " >&6; }
 4459 if ${ac_cv_header_stdc+:} false; then :
 4460   $as_echo_n "(cached) " >&6
 4461 else
 4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4463 /* end confdefs.h.  */
 4464 #include <stdlib.h>
 4465 #include <stdarg.h>
 4466 #include <string.h>
 4467 #include <float.h>
 4468 
 4469 int
 4470 main ()
 4471 {
 4472 
 4473   ;
 4474   return 0;
 4475 }
 4476 _ACEOF
 4477 if ac_fn_c_try_compile "$LINENO"; then :
 4478   ac_cv_header_stdc=yes
 4479 else
 4480   ac_cv_header_stdc=no
 4481 fi
 4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4483 
 4484 if test $ac_cv_header_stdc = yes; then
 4485   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4487 /* end confdefs.h.  */
 4488 #include <string.h>
 4489 
 4490 _ACEOF
 4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4492   $EGREP "memchr" >/dev/null 2>&1; then :
 4493 
 4494 else
 4495   ac_cv_header_stdc=no
 4496 fi
 4497 rm -f conftest*
 4498 
 4499 fi
 4500 
 4501 if test $ac_cv_header_stdc = yes; then
 4502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4504 /* end confdefs.h.  */
 4505 #include <stdlib.h>
 4506 
 4507 _ACEOF
 4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4509   $EGREP "free" >/dev/null 2>&1; then :
 4510 
 4511 else
 4512   ac_cv_header_stdc=no
 4513 fi
 4514 rm -f conftest*
 4515 
 4516 fi
 4517 
 4518 if test $ac_cv_header_stdc = yes; then
 4519   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4520   if test "$cross_compiling" = yes; then :
 4521   :
 4522 else
 4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4524 /* end confdefs.h.  */
 4525 #include <ctype.h>
 4526 #include <stdlib.h>
 4527 #if ((' ' & 0x0FF) == 0x020)
 4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4530 #else
 4531 # define ISLOWER(c) \
 4532            (('a' <= (c) && (c) <= 'i') \
 4533              || ('j' <= (c) && (c) <= 'r') \
 4534              || ('s' <= (c) && (c) <= 'z'))
 4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4536 #endif
 4537 
 4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4539 int
 4540 main ()
 4541 {
 4542   int i;
 4543   for (i = 0; i < 256; i++)
 4544     if (XOR (islower (i), ISLOWER (i))
 4545     || toupper (i) != TOUPPER (i))
 4546       return 2;
 4547   return 0;
 4548 }
 4549 _ACEOF
 4550 if ac_fn_c_try_run "$LINENO"; then :
 4551 
 4552 else
 4553   ac_cv_header_stdc=no
 4554 fi
 4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4556   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4557 fi
 4558 
 4559 fi
 4560 fi
 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 4562 $as_echo "$ac_cv_header_stdc" >&6; }
 4563 if test $ac_cv_header_stdc = yes; then
 4564 
 4565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 4566 
 4567 fi
 4568 
 4569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4571           inttypes.h stdint.h unistd.h
 4572 do :
 4573   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4574 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4575 "
 4576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4577   cat >>confdefs.h <<_ACEOF
 4578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4579 _ACEOF
 4580 
 4581 fi
 4582 
 4583 done
 4584 
 4585 
 4586 
 4587     # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
 4588 
 4589 
 4590     #------------------------------------------------------------------------
 4591     # If we're using GCC, see if the compiler understands -pipe. If so, use it.
 4592     # It makes compiling go faster.  (This is only a performance feature.)
 4593     #------------------------------------------------------------------------
 4594 
 4595     if test -z "$no_pipe" -a -n "$GCC"; then
 4596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
 4597 $as_echo_n "checking if the compiler understands -pipe... " >&6; }
 4598 if ${tcl_cv_cc_pipe+:} false; then :
 4599   $as_echo_n "(cached) " >&6
 4600 else
 4601 
 4602         hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
 4603         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4604 /* end confdefs.h.  */
 4605 
 4606 int
 4607 main ()
 4608 {
 4609 
 4610   ;
 4611   return 0;
 4612 }
 4613 _ACEOF
 4614 if ac_fn_c_try_compile "$LINENO"; then :
 4615   tcl_cv_cc_pipe=yes
 4616 else
 4617   tcl_cv_cc_pipe=no
 4618 fi
 4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4620         CFLAGS=$hold_cflags
 4621 fi
 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
 4623 $as_echo "$tcl_cv_cc_pipe" >&6; }
 4624     if test $tcl_cv_cc_pipe = yes; then
 4625         CFLAGS="$CFLAGS -pipe"
 4626     fi
 4627     fi
 4628 
 4629     #--------------------------------------------------------------------
 4630     # Common compiler flag setup
 4631     #--------------------------------------------------------------------
 4632 
 4633      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 4634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 4635 if ${ac_cv_c_bigendian+:} false; then :
 4636   $as_echo_n "(cached) " >&6
 4637 else
 4638   ac_cv_c_bigendian=unknown
 4639     # See if we're dealing with a universal compiler.
 4640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4641 /* end confdefs.h.  */
 4642 #ifndef __APPLE_CC__
 4643            not a universal capable compiler
 4644          #endif
 4645          typedef int dummy;
 4646 
 4647 _ACEOF
 4648 if ac_fn_c_try_compile "$LINENO"; then :
 4649 
 4650     # Check for potential -arch flags.  It is not universal unless
 4651     # there are at least two -arch flags with different values.
 4652     ac_arch=
 4653     ac_prev=
 4654     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 4655      if test -n "$ac_prev"; then
 4656        case $ac_word in
 4657          i?86 | x86_64 | ppc | ppc64)
 4658            if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 4659          ac_arch=$ac_word
 4660            else
 4661          ac_cv_c_bigendian=universal
 4662          break
 4663            fi
 4664            ;;
 4665        esac
 4666        ac_prev=
 4667      elif test "x$ac_word" = "x-arch"; then
 4668        ac_prev=arch
 4669      fi
 4670        done
 4671 fi
 4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4673     if test $ac_cv_c_bigendian = unknown; then
 4674       # See if sys/param.h defines the BYTE_ORDER macro.
 4675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4676 /* end confdefs.h.  */
 4677 #include <sys/types.h>
 4678          #include <sys/param.h>
 4679 
 4680 int
 4681 main ()
 4682 {
 4683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 4684              && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 4685              && LITTLE_ENDIAN)
 4686           bogus endian macros
 4687          #endif
 4688 
 4689   ;
 4690   return 0;
 4691 }
 4692 _ACEOF
 4693 if ac_fn_c_try_compile "$LINENO"; then :
 4694   # It does; now see whether it defined to BIG_ENDIAN or not.
 4695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4696 /* end confdefs.h.  */
 4697 #include <sys/types.h>
 4698         #include <sys/param.h>
 4699 
 4700 int
 4701 main ()
 4702 {
 4703 #if BYTE_ORDER != BIG_ENDIAN
 4704          not big endian
 4705         #endif
 4706 
 4707   ;
 4708   return 0;
 4709 }
 4710 _ACEOF
 4711 if ac_fn_c_try_compile "$LINENO"; then :
 4712   ac_cv_c_bigendian=yes
 4713 else
 4714   ac_cv_c_bigendian=no
 4715 fi
 4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4717 fi
 4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4719     fi
 4720     if test $ac_cv_c_bigendian = unknown; then
 4721       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 4722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4723 /* end confdefs.h.  */
 4724 #include <limits.h>
 4725 
 4726 int
 4727 main ()
 4728 {
 4729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 4730           bogus endian macros
 4731          #endif
 4732 
 4733   ;
 4734   return 0;
 4735 }
 4736 _ACEOF
 4737 if ac_fn_c_try_compile "$LINENO"; then :
 4738   # It does; now see whether it defined to _BIG_ENDIAN or not.
 4739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4740 /* end confdefs.h.  */
 4741 #include <limits.h>
 4742 
 4743 int
 4744 main ()
 4745 {
 4746 #ifndef _BIG_ENDIAN
 4747          not big endian
 4748         #endif
 4749 
 4750   ;
 4751   return 0;
 4752 }
 4753 _ACEOF
 4754 if ac_fn_c_try_compile "$LINENO"; then :
 4755   ac_cv_c_bigendian=yes
 4756 else
 4757   ac_cv_c_bigendian=no
 4758 fi
 4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4760 fi
 4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4762     fi
 4763     if test $ac_cv_c_bigendian = unknown; then
 4764       # Compile a test program.
 4765       if test "$cross_compiling" = yes; then :
 4766   # Try to guess by grepping values from an object file.
 4767      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4768 /* end confdefs.h.  */
 4769 short int ascii_mm[] =
 4770           { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 4771         short int ascii_ii[] =
 4772           { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 4773         int use_ascii (int i) {
 4774           return ascii_mm[i] + ascii_ii[i];
 4775         }
 4776         short int ebcdic_ii[] =
 4777           { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 4778         short int ebcdic_mm[] =
 4779           { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 4780         int use_ebcdic (int i) {
 4781           return ebcdic_mm[i] + ebcdic_ii[i];
 4782         }
 4783         extern int foo;
 4784 
 4785 int
 4786 main ()
 4787 {
 4788 return use_ascii (foo) == use_ebcdic (foo);
 4789   ;
 4790   return 0;
 4791 }
 4792 _ACEOF
 4793 if ac_fn_c_try_compile "$LINENO"; then :
 4794   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 4795           ac_cv_c_bigendian=yes
 4796         fi
 4797         if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 4798           if test "$ac_cv_c_bigendian" = unknown; then
 4799         ac_cv_c_bigendian=no
 4800           else
 4801         # finding both strings is unlikely to happen, but who knows?
 4802         ac_cv_c_bigendian=unknown
 4803           fi
 4804         fi
 4805 fi
 4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4807 else
 4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4809 /* end confdefs.h.  */
 4810 $ac_includes_default
 4811 int
 4812 main ()
 4813 {
 4814 
 4815          /* Are we little or big endian?  From Harbison&Steele.  */
 4816          union
 4817          {
 4818            long int l;
 4819            char c[sizeof (long int)];
 4820          } u;
 4821          u.l = 1;
 4822          return u.c[sizeof (long int) - 1] == 1;
 4823 
 4824   ;
 4825   return 0;
 4826 }
 4827 _ACEOF
 4828 if ac_fn_c_try_run "$LINENO"; then :
 4829   ac_cv_c_bigendian=no
 4830 else
 4831   ac_cv_c_bigendian=yes
 4832 fi
 4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4834   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4835 fi
 4836 
 4837     fi
 4838 fi
 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 4840 $as_echo "$ac_cv_c_bigendian" >&6; }
 4841  case $ac_cv_c_bigendian in #(
 4842    yes)
 4843      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 4844 ;; #(
 4845    no)
 4846       ;; #(
 4847    universal)
 4848 
 4849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 4850 
 4851      ;; #(
 4852    *)
 4853      as_fn_error $? "unknown endianness
 4854  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 4855  esac
 4856 
 4857     if test "${TEA_PLATFORM}" = "unix" ; then
 4858 
 4859     #--------------------------------------------------------------------
 4860     # On a few very rare systems, all of the libm.a stuff is
 4861     # already in libc.a.  Set compiler flags accordingly.
 4862     # Also, Linux requires the "ieee" library for math to work
 4863     # right (and it must appear before "-lm").
 4864     #--------------------------------------------------------------------
 4865 
 4866     ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
 4867 if test "x$ac_cv_func_sin" = xyes; then :
 4868   MATH_LIBS=""
 4869 else
 4870   MATH_LIBS="-lm"
 4871 fi
 4872 
 4873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
 4874 $as_echo_n "checking for main in -lieee... " >&6; }
 4875 if ${ac_cv_lib_ieee_main+:} false; then :
 4876   $as_echo_n "(cached) " >&6
 4877 else
 4878   ac_check_lib_save_LIBS=$LIBS
 4879 LIBS="-lieee  $LIBS"
 4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4881 /* end confdefs.h.  */
 4882 
 4883 
 4884 int
 4885 main ()
 4886 {
 4887 return main ();
 4888   ;
 4889   return 0;
 4890 }
 4891 _ACEOF
 4892 if ac_fn_c_try_link "$LINENO"; then :
 4893   ac_cv_lib_ieee_main=yes
 4894 else
 4895   ac_cv_lib_ieee_main=no
 4896 fi
 4897 rm -f core conftest.err conftest.$ac_objext \
 4898     conftest$ac_exeext conftest.$ac_ext
 4899 LIBS=$ac_check_lib_save_LIBS
 4900 fi
 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
 4902 $as_echo "$ac_cv_lib_ieee_main" >&6; }
 4903 if test "x$ac_cv_lib_ieee_main" = xyes; then :
 4904   MATH_LIBS="-lieee $MATH_LIBS"
 4905 fi
 4906 
 4907 
 4908     #--------------------------------------------------------------------
 4909     # Interactive UNIX requires -linet instead of -lsocket, plus it
 4910     # needs net/errno.h to define the socket-related error codes.
 4911     #--------------------------------------------------------------------
 4912 
 4913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
 4914 $as_echo_n "checking for main in -linet... " >&6; }
 4915 if ${ac_cv_lib_inet_main+:} false; then :
 4916   $as_echo_n "(cached) " >&6
 4917 else
 4918   ac_check_lib_save_LIBS=$LIBS
 4919 LIBS="-linet  $LIBS"
 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4921 /* end confdefs.h.  */
 4922 
 4923 
 4924 int
 4925 main ()
 4926 {
 4927 return main ();
 4928   ;
 4929   return 0;
 4930 }
 4931 _ACEOF
 4932 if ac_fn_c_try_link "$LINENO"; then :
 4933   ac_cv_lib_inet_main=yes
 4934 else
 4935   ac_cv_lib_inet_main=no
 4936 fi
 4937 rm -f core conftest.err conftest.$ac_objext \
 4938     conftest$ac_exeext conftest.$ac_ext
 4939 LIBS=$ac_check_lib_save_LIBS
 4940 fi
 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
 4942 $as_echo "$ac_cv_lib_inet_main" >&6; }
 4943 if test "x$ac_cv_lib_inet_main" = xyes; then :
 4944   LIBS="$LIBS -linet"
 4945 fi
 4946 
 4947     ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
 4948 if test "x$ac_cv_header_net_errno_h" = xyes; then :
 4949 
 4950 
 4951 $as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
 4952 
 4953 fi
 4954 
 4955 
 4956 
 4957     #--------------------------------------------------------------------
 4958     #   Check for the existence of the -lsocket and -lnsl libraries.
 4959     #   The order here is important, so that they end up in the right
 4960     #   order in the command line generated by make.  Here are some
 4961     #   special considerations:
 4962     #   1. Use "connect" and "accept" to check for -lsocket, and
 4963     #      "gethostbyname" to check for -lnsl.
 4964     #   2. Use each function name only once:  can't redo a check because
 4965     #      autoconf caches the results of the last check and won't redo it.
 4966     #   3. Use -lnsl and -lsocket only if they supply procedures that
 4967     #      aren't already present in the normal libraries.  This is because
 4968     #      IRIX 5.2 has libraries, but they aren't needed and they're
 4969     #      bogus:  they goof up name resolution if used.
 4970     #   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
 4971     #      To get around this problem, check for both libraries together
 4972     #      if -lsocket doesn't work by itself.
 4973     #--------------------------------------------------------------------
 4974 
 4975     tcl_checkBoth=0
 4976     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
 4977 if test "x$ac_cv_func_connect" = xyes; then :
 4978   tcl_checkSocket=0
 4979 else
 4980   tcl_checkSocket=1
 4981 fi
 4982 
 4983     if test "$tcl_checkSocket" = 1; then
 4984     ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
 4985 if test "x$ac_cv_func_setsockopt" = xyes; then :
 4986 
 4987 else
 4988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
 4989 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
 4990 if ${ac_cv_lib_socket_setsockopt+:} false; then :
 4991   $as_echo_n "(cached) " >&6
 4992 else
 4993   ac_check_lib_save_LIBS=$LIBS
 4994 LIBS="-lsocket  $LIBS"
 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4996 /* end confdefs.h.  */
 4997 
 4998 /* Override any GCC internal prototype to avoid an error.
 4999    Use char because int might match the return type of a GCC
 5000    builtin and then its argument prototype would still apply.  */
 5001 #ifdef __cplusplus
 5002 extern "C"
 5003 #endif
 5004 char setsockopt ();
 5005 int
 5006 main ()
 5007 {
 5008 return setsockopt ();
 5009   ;
 5010   return 0;
 5011 }
 5012 _ACEOF
 5013 if ac_fn_c_try_link "$LINENO"; then :
 5014   ac_cv_lib_socket_setsockopt=yes
 5015 else
 5016   ac_cv_lib_socket_setsockopt=no
 5017 fi
 5018 rm -f core conftest.err conftest.$ac_objext \
 5019     conftest$ac_exeext conftest.$ac_ext
 5020 LIBS=$ac_check_lib_save_LIBS
 5021 fi
 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
 5023 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
 5024 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
 5025   LIBS="$LIBS -lsocket"
 5026 else
 5027   tcl_checkBoth=1
 5028 fi
 5029 
 5030 fi
 5031 
 5032     fi
 5033     if test "$tcl_checkBoth" = 1; then
 5034     tk_oldLibs=$LIBS
 5035     LIBS="$LIBS -lsocket -lnsl"
 5036     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
 5037 if test "x$ac_cv_func_accept" = xyes; then :
 5038   tcl_checkNsl=0
 5039 else
 5040   LIBS=$tk_oldLibs
 5041 fi
 5042 
 5043     fi
 5044     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 5045 if test "x$ac_cv_func_gethostbyname" = xyes; then :
 5046 
 5047 else
 5048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 5049 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 5050 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
 5051   $as_echo_n "(cached) " >&6
 5052 else
 5053   ac_check_lib_save_LIBS=$LIBS
 5054 LIBS="-lnsl  $LIBS"
 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5056 /* end confdefs.h.  */
 5057 
 5058 /* Override any GCC internal prototype to avoid an error.
 5059    Use char because int might match the return type of a GCC
 5060    builtin and then its argument prototype would still apply.  */
 5061 #ifdef __cplusplus
 5062 extern "C"
 5063 #endif
 5064 char gethostbyname ();
 5065 int
 5066 main ()
 5067 {
 5068 return gethostbyname ();
 5069   ;
 5070   return 0;
 5071 }
 5072 _ACEOF
 5073 if ac_fn_c_try_link "$LINENO"; then :
 5074   ac_cv_lib_nsl_gethostbyname=yes
 5075 else
 5076   ac_cv_lib_nsl_gethostbyname=no
 5077 fi
 5078 rm -f core conftest.err conftest.$ac_objext \
 5079     conftest$ac_exeext conftest.$ac_ext
 5080 LIBS=$ac_check_lib_save_LIBS
 5081 fi
 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 5083 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 5084 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
 5085   LIBS="$LIBS -lnsl"
 5086 fi
 5087 
 5088 fi
 5089 
 5090 
 5091     # TEA specific: Don't perform the eval of the libraries here because
 5092     # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
 5093 
 5094     TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
 5095 
 5096 
 5097 
 5098 
 5099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
 5100 $as_echo_n "checking dirent.h... " >&6; }
 5101 if ${tcl_cv_dirent_h+:} false; then :
 5102   $as_echo_n "(cached) " >&6
 5103 else
 5104 
 5105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5106 /* end confdefs.h.  */
 5107 #include <sys/types.h>
 5108 #include <dirent.h>
 5109 int
 5110 main ()
 5111 {
 5112 
 5113 #ifndef _POSIX_SOURCE
 5114 #   ifdef __Lynx__
 5115     /*
 5116      * Generate compilation error to make the test fail:  Lynx headers
 5117      * are only valid if really in the POSIX environment.
 5118      */
 5119 
 5120     missing_procedure();
 5121 #   endif
 5122 #endif
 5123 DIR *d;
 5124 struct dirent *entryPtr;
 5125 char *p;
 5126 d = opendir("foobar");
 5127 entryPtr = readdir(d);
 5128 p = entryPtr->d_name;
 5129 closedir(d);
 5130 
 5131   ;
 5132   return 0;
 5133 }
 5134 _ACEOF
 5135 if ac_fn_c_try_link "$LINENO"; then :
 5136   tcl_cv_dirent_h=yes
 5137 else
 5138   tcl_cv_dirent_h=no
 5139 fi
 5140 rm -f core conftest.err conftest.$ac_objext \
 5141     conftest$ac_exeext conftest.$ac_ext
 5142 fi
 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
 5144 $as_echo "$tcl_cv_dirent_h" >&6; }
 5145 
 5146     if test $tcl_cv_dirent_h = no; then
 5147 
 5148 $as_echo "#define NO_DIRENT_H 1" >>confdefs.h
 5149 
 5150     fi
 5151 
 5152     # TEA specific:
 5153     ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
 5154 if test "x$ac_cv_header_errno_h" = xyes; then :
 5155 
 5156 else
 5157 
 5158 $as_echo "#define NO_ERRNO_H 1" >>confdefs.h
 5159 
 5160 fi
 5161 
 5162 
 5163     ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
 5164 if test "x$ac_cv_header_float_h" = xyes; then :
 5165 
 5166 else
 5167 
 5168 $as_echo "#define NO_FLOAT_H 1" >>confdefs.h
 5169 
 5170 fi
 5171 
 5172 
 5173     ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
 5174 if test "x$ac_cv_header_values_h" = xyes; then :
 5175 
 5176 else
 5177 
 5178 $as_echo "#define NO_VALUES_H 1" >>confdefs.h
 5179 
 5180 fi
 5181 
 5182 
 5183     ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
 5184 if test "x$ac_cv_header_limits_h" = xyes; then :
 5185 
 5186 $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
 5187 
 5188 else
 5189 
 5190 $as_echo "#define NO_LIMITS_H 1" >>confdefs.h
 5191 
 5192 fi
 5193 
 5194 
 5195     ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 5196 if test "x$ac_cv_header_stdlib_h" = xyes; then :
 5197   tcl_ok=1
 5198 else
 5199   tcl_ok=0
 5200 fi
 5201 
 5202 
 5203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5204 /* end confdefs.h.  */
 5205 #include <stdlib.h>
 5206 
 5207 _ACEOF
 5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5209   $EGREP "strtol" >/dev/null 2>&1; then :
 5210 
 5211 else
 5212   tcl_ok=0
 5213 fi
 5214 rm -f conftest*
 5215 
 5216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5217 /* end confdefs.h.  */
 5218 #include <stdlib.h>
 5219 
 5220 _ACEOF
 5221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5222   $EGREP "strtoul" >/dev/null 2>&1; then :
 5223 
 5224 else
 5225   tcl_ok=0
 5226 fi
 5227 rm -f conftest*
 5228 
 5229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5230 /* end confdefs.h.  */
 5231 #include <stdlib.h>
 5232 
 5233 _ACEOF
 5234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5235   $EGREP "strtod" >/dev/null 2>&1; then :
 5236 
 5237 else
 5238   tcl_ok=0
 5239 fi
 5240 rm -f conftest*
 5241 
 5242     if test $tcl_ok = 0; then
 5243 
 5244 $as_echo "#define NO_STDLIB_H 1" >>confdefs.h
 5245 
 5246     fi
 5247     ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 5248 if test "x$ac_cv_header_string_h" = xyes; then :
 5249   tcl_ok=1
 5250 else
 5251   tcl_ok=0
 5252 fi
 5253 
 5254 
 5255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5256 /* end confdefs.h.  */
 5257 #include <string.h>
 5258 
 5259 _ACEOF
 5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5261   $EGREP "strstr" >/dev/null 2>&1; then :
 5262 
 5263 else
 5264   tcl_ok=0
 5265 fi
 5266 rm -f conftest*
 5267 
 5268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5269 /* end confdefs.h.  */
 5270 #include <string.h>
 5271 
 5272 _ACEOF
 5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5274   $EGREP "strerror" >/dev/null 2>&1; then :
 5275 
 5276 else
 5277   tcl_ok=0
 5278 fi
 5279 rm -f conftest*
 5280 
 5281 
 5282     # See also memmove check below for a place where NO_STRING_H can be
 5283     # set and why.
 5284 
 5285     if test $tcl_ok = 0; then
 5286 
 5287 $as_echo "#define NO_STRING_H 1" >>confdefs.h
 5288 
 5289     fi
 5290 
 5291     ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
 5292 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
 5293 
 5294 else
 5295 
 5296 $as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
 5297 
 5298 fi
 5299 
 5300 
 5301     ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 5302 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 5303 
 5304 else
 5305 
 5306 $as_echo "#define NO_DLFCN_H 1" >>confdefs.h
 5307 
 5308 fi
 5309 
 5310 
 5311 
 5312     # OS/390 lacks sys/param.h (and doesn't need it, by chance).
 5313     for ac_header in sys/param.h
 5314 do :
 5315   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
 5316 if test "x$ac_cv_header_sys_param_h" = xyes; then :
 5317   cat >>confdefs.h <<_ACEOF
 5318 #define HAVE_SYS_PARAM_H 1
 5319 _ACEOF
 5320 
 5321 fi
 5322 
 5323 done
 5324 
 5325 
 5326     # Let the user call this, because if it triggers, they will
 5327     # need a compat/strtod.c that is correct.  Users can also
 5328     # use Tcl_GetDouble(FromObj) instead.
 5329     #TEA_BUGGY_STRTOD
 5330     fi
 5331 
 5332 
 5333 #-----------------------------------------------------------------------
 5334 # __CHANGE__
 5335 # Specify the C source files to compile in TEA_ADD_SOURCES,
 5336 # public headers that need to be installed in TEA_ADD_HEADERS,
 5337 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
 5338 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
 5339 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
 5340 # and PKG_TCL_SOURCES.
 5341 #-----------------------------------------------------------------------
 5342 
 5343 
 5344     vars="tclsqlite3.c"
 5345     for i in $vars; do
 5346     case $i in
 5347         \$*)
 5348         # allow $-var names
 5349         PKG_SOURCES="$PKG_SOURCES $i"
 5350         PKG_OBJECTS="$PKG_OBJECTS $i"
 5351         ;;
 5352         *)
 5353         # check for existence - allows for generic/win/unix VPATH
 5354         # To add more dirs here (like 'src'), you have to update VPATH
 5355         # in Makefile.in as well
 5356         if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
 5357             -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
 5358             -a ! -f "${srcdir}/macosx/$i" \
 5359             ; then
 5360             as_fn_error $? "could not find source file '$i'" "$LINENO" 5
 5361         fi
 5362         PKG_SOURCES="$PKG_SOURCES $i"
 5363         # this assumes it is in a VPATH dir
 5364         i=`basename $i`
 5365         # handle user calling this before or after TEA_SETUP_COMPILER
 5366         if test x"${OBJEXT}" != x ; then
 5367             j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
 5368         else
 5369             j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
 5370         fi
 5371         PKG_OBJECTS="$PKG_OBJECTS $j"
 5372         ;;
 5373     esac
 5374     done
 5375 
 5376 
 5377 
 5378 
 5379     vars=""
 5380     for i in $vars; do
 5381     # check for existence, be strict because it is installed
 5382     if test ! -f "${srcdir}/$i" ; then
 5383         as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
 5384     fi
 5385     PKG_HEADERS="$PKG_HEADERS $i"
 5386     done
 5387 
 5388 
 5389 
 5390     vars="-I\"`\${CYGPATH} \${srcdir}/generic`\""
 5391     for i in $vars; do
 5392     PKG_INCLUDES="$PKG_INCLUDES $i"
 5393     done
 5394 
 5395 
 5396 
 5397     vars=""
 5398     for i in $vars; do
 5399     if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
 5400         # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
 5401         i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
 5402     fi
 5403     PKG_LIBS="$PKG_LIBS $i"
 5404     done
 5405 
 5406 
 5407 
 5408     PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS3=1"
 5409 
 5410 
 5411 
 5412     PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_3_SUFFIX_ONLY=1"
 5413 
 5414 
 5415 
 5416     PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_RTREE=1"
 5417 
 5418 
 5419 
 5420     vars=""
 5421     for i in $vars; do
 5422     # check for existence - allows for generic/win/unix VPATH
 5423     if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
 5424         -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
 5425         -a ! -f "${srcdir}/macosx/$i" \
 5426         ; then
 5427         as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
 5428     fi
 5429     PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
 5430     # this assumes it is in a VPATH dir
 5431     i=`basename $i`
 5432     # handle user calling this before or after TEA_SETUP_COMPILER
 5433     if test x"${OBJEXT}" != x ; then
 5434         j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
 5435     else
 5436         j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
 5437     fi
 5438     PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
 5439     done
 5440 
 5441 
 5442 
 5443 
 5444     vars=""
 5445     for i in $vars; do
 5446     # check for existence, be strict because it is installed
 5447     if test ! -f "${srcdir}/$i" ; then
 5448         as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
 5449     fi
 5450     PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
 5451     done
 5452 
 5453 
 5454 
 5455 #--------------------------------------------------------------------
 5456 # The --with-system-sqlite causes the TCL bindings to SQLite to use
 5457 # the system shared library for SQLite rather than statically linking
 5458 # against its own private copy.  This is dangerous and leads to
 5459 # undersirable dependences and is not recommended.
 5460 # Patchs from rmax.
 5461 #--------------------------------------------------------------------
 5462 
 5463 # Check whether --with-system-sqlite was given.
 5464 if test "${with_system_sqlite+set}" = set; then :
 5465   withval=$with_system_sqlite;
 5466 else
 5467   with_system_sqlite=no
 5468 fi
 5469 
 5470 if test x$with_system_sqlite != xno; then
 5471  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
 5472 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
 5473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
 5474 $as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
 5475 if ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then :
 5476   $as_echo_n "(cached) " >&6
 5477 else
 5478   ac_check_lib_save_LIBS=$LIBS
 5479 LIBS="-lsqlite3  $LIBS"
 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5481 /* end confdefs.h.  */
 5482 
 5483 /* Override any GCC internal prototype to avoid an error.
 5484    Use char because int might match the return type of a GCC
 5485    builtin and then its argument prototype would still apply.  */
 5486 #ifdef __cplusplus
 5487 extern "C"
 5488 #endif
 5489 char sqlite3_initialize ();
 5490 int
 5491 main ()
 5492 {
 5493 return sqlite3_initialize ();
 5494   ;
 5495   return 0;
 5496 }
 5497 _ACEOF
 5498 if ac_fn_c_try_link "$LINENO"; then :
 5499   ac_cv_lib_sqlite3_sqlite3_initialize=yes
 5500 else
 5501   ac_cv_lib_sqlite3_sqlite3_initialize=no
 5502 fi
 5503 rm -f core conftest.err conftest.$ac_objext \
 5504     conftest$ac_exeext conftest.$ac_ext
 5505 LIBS=$ac_check_lib_save_LIBS
 5506 fi
 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
 5508 $as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
 5509 if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then :
 5510   $as_echo "#define USE_SYSTEM_SQLITE 1" >>confdefs.h
 5511 
 5512       LIBS="$LIBS -lsqlite3"
 5513 fi
 5514 
 5515 fi
 5516 
 5517 
 5518 fi
 5519 
 5520 #--------------------------------------------------------------------
 5521 # __CHANGE__
 5522 # Choose which headers you need.  Extension authors should try very
 5523 # hard to only rely on the Tcl public header files.  Internal headers
 5524 # contain private data structures and are subject to change without
 5525 # notice.
 5526 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
 5527 #--------------------------------------------------------------------
 5528 
 5529 
 5530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
 5531 $as_echo_n "checking for Tcl public headers... " >&6; }
 5532 
 5533 
 5534 # Check whether --with-tclinclude was given.
 5535 if test "${with_tclinclude+set}" = set; then :
 5536   withval=$with_tclinclude; with_tclinclude=${withval}
 5537 fi
 5538 
 5539