Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1287:dac8f363f1fe
prev1284:0db0a5e72698
next1293:36123decfb24
author nkeynes
date Fri Jul 13 21:05:10 2012 +1000 (9 years ago)
permissions -rwxr-xr-x
last change Add check that glGenFencesNV is actually defined, to try to guard against
installations with a broken libGL
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 install_sh
   665 STRIP
   666 INSTALL_STRIP_PROGRAM
   667 mkdir_p
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 AMTAR
   672 am__tar
   673 am__untar
   674 MAINTAINER_MODE_TRUE
   675 MAINTAINER_MODE_FALSE
   676 MAINT
   677 build
   678 build_cpu
   679 build_vendor
   680 build_os
   681 host
   682 host_cpu
   683 host_vendor
   684 host_os
   685 CC
   686 CFLAGS
   687 LDFLAGS
   688 CPPFLAGS
   689 ac_ct_CC
   690 EXEEXT
   691 OBJEXT
   692 DEPDIR
   693 am__include
   694 am__quote
   695 AMDEP_TRUE
   696 AMDEP_FALSE
   697 AMDEPBACKSLASH
   698 CCDEPMODE
   699 am__fastdepCC_TRUE
   700 am__fastdepCC_FALSE
   701 CPP
   702 CC
   703 CFLAGS
   704 CPPFLAGS
   705 CC_FOR_BUILD
   706 ac_ct_CC_FOR_BUILD
   707 CC_FOR_BUILDDEPMODE
   708 am__fastdepCC_FOR_BUILD_TRUE
   709 am__fastdepCC_FOR_BUILD_FALSE
   710 CPP
   711 CPPFLAGS
   712 CPP_FOR_BUILD
   713 BUILD_EXEEXT
   714 BUILD_OBJEXT
   715 CFLAGS_FOR_BUILD
   716 CPPFLAGS_FOR_BUILD
   717 OBJC
   718 OBJCFLAGS
   719 ac_ct_OBJC
   720 SED
   721 CCAS
   722 CCASFLAGS
   723 RANLIB
   724 GREP
   725 EGREP
   726 OBJCDEPMODE
   727 am__fastdepOBJC_TRUE
   728 am__fastdepOBJC_FALSE
   729 POD2MAN
   730 POD2HTML
   731 ANT
   732 ANDROID_ABI
   733 ANDROID_SDK_HOME
   734 ANDROID_NDK_HOME
   735 ANDROID_SDK_VERSION
   736 ANDROID_NDK_VERSION
   737 ANDROID_GDBSERVER
   738 GUI_ANDROID_TRUE
   739 GUI_ANDROID_FALSE
   740 GUI_COCOA_TRUE
   741 GUI_COCOA_FALSE
   742 SOEXT
   743 PLUGINCFLAGS
   744 PLUGINLDFLAGS
   745 LXDREAMLDFLAGS
   746 BUILD_PLUGINS_TRUE
   747 BUILD_PLUGINS_FALSE
   748 LXDREAMCPPFLAGS
   749 PKG_CONFIG
   750 LIBPNG_CFLAGS
   751 LIBPNG_LIBS
   752 GLIB_CFLAGS
   753 GLIB_LIBS
   754 GTK_CFLAGS
   755 GTK_LIBS
   756 GLIB_FOR_BUILD_CFLAGS
   757 GLIB_FOR_BUILD_LIBS
   758 GUI_GTK_TRUE
   759 GUI_GTK_FALSE
   760 LIBISOFS_CFLAGS
   761 LIBISOFS_LIBS
   762 LIBGL_CFLAGS
   763 LIBGL_LIBS
   764 VIDEO_OSMESA_TRUE
   765 VIDEO_OSMESA_FALSE
   766 VIDEO_GLX_TRUE
   767 VIDEO_GLX_FALSE
   768 VIDEO_NSGL_TRUE
   769 VIDEO_NSGL_FALSE
   770 VIDEO_EGL_TRUE
   771 VIDEO_EGL_FALSE
   772 BUILD_SH4X86_TRUE
   773 BUILD_SH4X86_FALSE
   774 AUDIO_OSX_TRUE
   775 AUDIO_OSX_FALSE
   776 SDL_CFLAGS
   777 SDL_LIBS
   778 AUDIO_SDL_TRUE
   779 AUDIO_SDL_FALSE
   780 PULSE_CFLAGS
   781 PULSE_LIBS
   782 AUDIO_PULSE_TRUE
   783 AUDIO_PULSE_FALSE
   784 ESOUND_CFLAGS
   785 ESOUND_LIBS
   786 AUDIO_ESOUND_TRUE
   787 AUDIO_ESOUND_FALSE
   788 ALSA_CFLAGS
   789 ALSA_LIBS
   790 AUDIO_ALSA_TRUE
   791 AUDIO_ALSA_FALSE
   792 CDROM_LINUX_TRUE
   793 CDROM_LINUX_FALSE
   794 CDROM_OSX_TRUE
   795 CDROM_OSX_FALSE
   796 CDROM_NONE_TRUE
   797 CDROM_NONE_FALSE
   798 JOY_LINUX_TRUE
   799 JOY_LINUX_FALSE
   800 INPUT_LIRC_TRUE
   801 INPUT_LIRC_FALSE
   802 SHCC
   803 SHLD
   804 SHOBJCOPY
   805 ARMCC
   806 ARMLD
   807 ARMOBJCOPY
   808 BUILD_SYSTEST_TRUE
   809 BUILD_SYSTEST_FALSE
   810 BUILD_ARMTEST_TRUE
   811 BUILD_ARMTEST_FALSE
   812 LXDREAM_LIBS
   813 GETTEXT_PACKAGE
   814 USE_NLS
   815 MSGFMT
   816 MSGFMT_OPTS
   817 GMSGFMT
   818 XGETTEXT
   819 CATALOGS
   820 CATOBJEXT
   821 DATADIRNAME
   822 GMOFILES
   823 INSTOBJEXT
   824 INTLLIBS
   825 PO_IN_DATADIR_TRUE
   826 PO_IN_DATADIR_FALSE
   827 POFILES
   828 POSUB
   829 MKINSTALLDIRS
   830 LIBOBJS
   831 LTLIBOBJS'
   832 ac_subst_files=''
   833       ac_precious_vars='build_alias
   834 host_alias
   835 target_alias
   836 CC
   837 CFLAGS
   838 LDFLAGS
   839 LIBS
   840 CPPFLAGS
   841 CPP
   842 CC
   843 CFLAGS
   844 CPPFLAGS
   845 CPP
   846 CPPFLAGS
   847 OBJC
   848 OBJCFLAGS
   849 CCAS
   850 CCASFLAGS
   851 PKG_CONFIG
   852 LIBPNG_CFLAGS
   853 LIBPNG_LIBS
   854 GLIB_CFLAGS
   855 GLIB_LIBS
   856 GTK_CFLAGS
   857 GTK_LIBS
   858 GLIB_FOR_BUILD_CFLAGS
   859 GLIB_FOR_BUILD_LIBS
   860 LIBISOFS_CFLAGS
   861 LIBISOFS_LIBS
   862 LIBGL_CFLAGS
   863 LIBGL_LIBS
   864 SDL_CFLAGS
   865 SDL_LIBS
   866 PULSE_CFLAGS
   867 PULSE_LIBS
   868 ESOUND_CFLAGS
   869 ESOUND_LIBS
   870 ALSA_CFLAGS
   871 ALSA_LIBS'
   874 # Initialize some variables set by options.
   875 ac_init_help=
   876 ac_init_version=false
   877 # The variables have the same names as the options, with
   878 # dashes changed to underlines.
   879 cache_file=/dev/null
   880 exec_prefix=NONE
   881 no_create=
   882 no_recursion=
   883 prefix=NONE
   884 program_prefix=NONE
   885 program_suffix=NONE
   886 program_transform_name=s,x,x,
   887 silent=
   888 site=
   889 srcdir=
   890 verbose=
   891 x_includes=NONE
   892 x_libraries=NONE
   894 # Installation directory options.
   895 # These are left unexpanded so users can "make install exec_prefix=/foo"
   896 # and all the variables that are supposed to be based on exec_prefix
   897 # by default will actually change.
   898 # Use braces instead of parens because sh, perl, etc. also accept them.
   899 # (The list follows the same order as the GNU Coding Standards.)
   900 bindir='${exec_prefix}/bin'
   901 sbindir='${exec_prefix}/sbin'
   902 libexecdir='${exec_prefix}/libexec'
   903 datarootdir='${prefix}/share'
   904 datadir='${datarootdir}'
   905 sysconfdir='${prefix}/etc'
   906 sharedstatedir='${prefix}/com'
   907 localstatedir='${prefix}/var'
   908 includedir='${prefix}/include'
   909 oldincludedir='/usr/include'
   910 docdir='${datarootdir}/doc/${PACKAGE}'
   911 infodir='${datarootdir}/info'
   912 htmldir='${docdir}'
   913 dvidir='${docdir}'
   914 pdfdir='${docdir}'
   915 psdir='${docdir}'
   916 libdir='${exec_prefix}/lib'
   917 localedir='${datarootdir}/locale'
   918 mandir='${datarootdir}/man'
   920 ac_prev=
   921 ac_dashdash=
   922 for ac_option
   923 do
   924   # If the previous option needs an argument, assign it.
   925   if test -n "$ac_prev"; then
   926     eval $ac_prev=\$ac_option
   927     ac_prev=
   928     continue
   929   fi
   931   case $ac_option in
   932   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   933   *)	ac_optarg=yes ;;
   934   esac
   936   # Accept the important Cygnus configure options, so we can diagnose typos.
   938   case $ac_dashdash$ac_option in
   939   --)
   940     ac_dashdash=yes ;;
   942   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   943     ac_prev=bindir ;;
   944   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   945     bindir=$ac_optarg ;;
   947   -build | --build | --buil | --bui | --bu)
   948     ac_prev=build_alias ;;
   949   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   950     build_alias=$ac_optarg ;;
   952   -cache-file | --cache-file | --cache-fil | --cache-fi \
   953   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   954     ac_prev=cache_file ;;
   955   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   956   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   957     cache_file=$ac_optarg ;;
   959   --config-cache | -C)
   960     cache_file=config.cache ;;
   962   -datadir | --datadir | --datadi | --datad)
   963     ac_prev=datadir ;;
   964   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   965     datadir=$ac_optarg ;;
   967   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   968   | --dataroo | --dataro | --datar)
   969     ac_prev=datarootdir ;;
   970   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   971   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   972     datarootdir=$ac_optarg ;;
   974   -disable-* | --disable-*)
   975     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   976     # Reject names that are not valid shell variable names.
   977     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   978       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   979    { (exit 1); exit 1; }; }
   980     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   981     eval enable_$ac_feature=no ;;
   983   -docdir | --docdir | --docdi | --doc | --do)
   984     ac_prev=docdir ;;
   985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   986     docdir=$ac_optarg ;;
   988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   989     ac_prev=dvidir ;;
   990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   991     dvidir=$ac_optarg ;;
   993   -enable-* | --enable-*)
   994     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   995     # Reject names that are not valid shell variable names.
   996     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   997       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   998    { (exit 1); exit 1; }; }
   999     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  1000     eval enable_$ac_feature=\$ac_optarg ;;
  1002   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1003   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1004   | --exec | --exe | --ex)
  1005     ac_prev=exec_prefix ;;
  1006   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1007   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1008   | --exec=* | --exe=* | --ex=*)
  1009     exec_prefix=$ac_optarg ;;
  1011   -gas | --gas | --ga | --g)
  1012     # Obsolete; use --with-gas.
  1013     with_gas=yes ;;
  1015   -help | --help | --hel | --he | -h)
  1016     ac_init_help=long ;;
  1017   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1018     ac_init_help=recursive ;;
  1019   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1020     ac_init_help=short ;;
  1022   -host | --host | --hos | --ho)
  1023     ac_prev=host_alias ;;
  1024   -host=* | --host=* | --hos=* | --ho=*)
  1025     host_alias=$ac_optarg ;;
  1027   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1028     ac_prev=htmldir ;;
  1029   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1030   | --ht=*)
  1031     htmldir=$ac_optarg ;;
  1033   -includedir | --includedir | --includedi | --included | --include \
  1034   | --includ | --inclu | --incl | --inc)
  1035     ac_prev=includedir ;;
  1036   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1037   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1038     includedir=$ac_optarg ;;
  1040   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1041     ac_prev=infodir ;;
  1042   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1043     infodir=$ac_optarg ;;
  1045   -libdir | --libdir | --libdi | --libd)
  1046     ac_prev=libdir ;;
  1047   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1048     libdir=$ac_optarg ;;
  1050   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1051   | --libexe | --libex | --libe)
  1052     ac_prev=libexecdir ;;
  1053   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1054   | --libexe=* | --libex=* | --libe=*)
  1055     libexecdir=$ac_optarg ;;
  1057   -localedir | --localedir | --localedi | --localed | --locale)
  1058     ac_prev=localedir ;;
  1059   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1060     localedir=$ac_optarg ;;
  1062   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1063   | --localstate | --localstat | --localsta | --localst | --locals)
  1064     ac_prev=localstatedir ;;
  1065   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1066   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1067     localstatedir=$ac_optarg ;;
  1069   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1070     ac_prev=mandir ;;
  1071   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1072     mandir=$ac_optarg ;;
  1074   -nfp | --nfp | --nf)
  1075     # Obsolete; use --without-fp.
  1076     with_fp=no ;;
  1078   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1079   | --no-cr | --no-c | -n)
  1080     no_create=yes ;;
  1082   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1083   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1084     no_recursion=yes ;;
  1086   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1087   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1088   | --oldin | --oldi | --old | --ol | --o)
  1089     ac_prev=oldincludedir ;;
  1090   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1091   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1092   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1093     oldincludedir=$ac_optarg ;;
  1095   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1096     ac_prev=prefix ;;
  1097   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1098     prefix=$ac_optarg ;;
  1100   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1101   | --program-pre | --program-pr | --program-p)
  1102     ac_prev=program_prefix ;;
  1103   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1104   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1105     program_prefix=$ac_optarg ;;
  1107   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1108   | --program-suf | --program-su | --program-s)
  1109     ac_prev=program_suffix ;;
  1110   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1111   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1112     program_suffix=$ac_optarg ;;
  1114   -program-transform-name | --program-transform-name \
  1115   | --program-transform-nam | --program-transform-na \
  1116   | --program-transform-n | --program-transform- \
  1117   | --program-transform | --program-transfor \
  1118   | --program-transfo | --program-transf \
  1119   | --program-trans | --program-tran \
  1120   | --progr-tra | --program-tr | --program-t)
  1121     ac_prev=program_transform_name ;;
  1122   -program-transform-name=* | --program-transform-name=* \
  1123   | --program-transform-nam=* | --program-transform-na=* \
  1124   | --program-transform-n=* | --program-transform-=* \
  1125   | --program-transform=* | --program-transfor=* \
  1126   | --program-transfo=* | --program-transf=* \
  1127   | --program-trans=* | --program-tran=* \
  1128   | --progr-tra=* | --program-tr=* | --program-t=*)
  1129     program_transform_name=$ac_optarg ;;
  1131   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132     ac_prev=pdfdir ;;
  1133   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134     pdfdir=$ac_optarg ;;
  1136   -psdir | --psdir | --psdi | --psd | --ps)
  1137     ac_prev=psdir ;;
  1138   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1139     psdir=$ac_optarg ;;
  1141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1142   | -silent | --silent | --silen | --sile | --sil)
  1143     silent=yes ;;
  1145   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1146     ac_prev=sbindir ;;
  1147   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1148   | --sbi=* | --sb=*)
  1149     sbindir=$ac_optarg ;;
  1151   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1152   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1153   | --sharedst | --shareds | --shared | --share | --shar \
  1154   | --sha | --sh)
  1155     ac_prev=sharedstatedir ;;
  1156   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1157   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1158   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1159   | --sha=* | --sh=*)
  1160     sharedstatedir=$ac_optarg ;;
  1162   -site | --site | --sit)
  1163     ac_prev=site ;;
  1164   -site=* | --site=* | --sit=*)
  1165     site=$ac_optarg ;;
  1167   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168     ac_prev=srcdir ;;
  1169   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170     srcdir=$ac_optarg ;;
  1172   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1173   | --syscon | --sysco | --sysc | --sys | --sy)
  1174     ac_prev=sysconfdir ;;
  1175   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1176   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1177     sysconfdir=$ac_optarg ;;
  1179   -target | --target | --targe | --targ | --tar | --ta | --t)
  1180     ac_prev=target_alias ;;
  1181   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1182     target_alias=$ac_optarg ;;
  1184   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185     verbose=yes ;;
  1187   -version | --version | --versio | --versi | --vers | -V)
  1188     ac_init_version=: ;;
  1190   -with-* | --with-*)
  1191     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1192     # Reject names that are not valid shell variable names.
  1193     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1194       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1195    { (exit 1); exit 1; }; }
  1196     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1197     eval with_$ac_package=\$ac_optarg ;;
  1199   -without-* | --without-*)
  1200     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1201     # Reject names that are not valid shell variable names.
  1202     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1204    { (exit 1); exit 1; }; }
  1205     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1206     eval with_$ac_package=no ;;
  1208   --x)
  1209     # Obsolete; use --with-x.
  1210     with_x=yes ;;
  1212   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213   | --x-incl | --x-inc | --x-in | --x-i)
  1214     ac_prev=x_includes ;;
  1215   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217     x_includes=$ac_optarg ;;
  1219   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1220   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1221     ac_prev=x_libraries ;;
  1222   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1223   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1224     x_libraries=$ac_optarg ;;
  1226   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1227 Try \`$0 --help' for more information." >&2
  1228    { (exit 1); exit 1; }; }
  1229     ;;
  1231   *=*)
  1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1233     # Reject names that are not valid shell variable names.
  1234     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1235       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1236    { (exit 1); exit 1; }; }
  1237     eval $ac_envvar=\$ac_optarg
  1238     export $ac_envvar ;;
  1240   *)
  1241     # FIXME: should be removed in autoconf 3.0.
  1242     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1243     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1244       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1245     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1246     ;;
  1248   esac
  1249 done
  1251 if test -n "$ac_prev"; then
  1252   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1253   { echo "$as_me: error: missing argument to $ac_option" >&2
  1254    { (exit 1); exit 1; }; }
  1255 fi
  1257 # Be sure to have absolute directory names.
  1258 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1259 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1260 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1261 		libdir localedir mandir
  1262 do
  1263   eval ac_val=\$$ac_var
  1264   case $ac_val in
  1265     [\\/$]* | ?:[\\/]* )  continue;;
  1266     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1267   esac
  1268   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1269    { (exit 1); exit 1; }; }
  1270 done
  1272 # There might be people who depend on the old broken behavior: `$host'
  1273 # used to hold the argument of --host etc.
  1274 # FIXME: To remove some day.
  1275 build=$build_alias
  1276 host=$host_alias
  1277 target=$target_alias
  1279 # FIXME: To remove some day.
  1280 if test "x$host_alias" != x; then
  1281   if test "x$build_alias" = x; then
  1282     cross_compiling=maybe
  1283     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1284     If a cross compiler is detected then cross compile mode will be used." >&2
  1285   elif test "x$build_alias" != "x$host_alias"; then
  1286     cross_compiling=yes
  1287   fi
  1288 fi
  1290 ac_tool_prefix=
  1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1293 test "$silent" = yes && exec 6>/dev/null
  1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1297 ac_ls_di=`ls -di .` &&
  1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1299   { echo "$as_me: error: Working directory cannot be determined" >&2
  1300    { (exit 1); exit 1; }; }
  1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1302   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1303    { (exit 1); exit 1; }; }
  1306 # Find the source files, if location was not specified.
  1307 if test -z "$srcdir"; then
  1308   ac_srcdir_defaulted=yes
  1309   # Try the directory containing this script, then the parent directory.
  1310   ac_confdir=`$as_dirname -- "$0" ||
  1311 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1312 	 X"$0" : 'X\(//\)[^/]' \| \
  1313 	 X"$0" : 'X\(//\)$' \| \
  1314 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1315 echo X"$0" |
  1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1317 	    s//\1/
  1320 	  /^X\(\/\/\)[^/].*/{
  1321 	    s//\1/
  1324 	  /^X\(\/\/\)$/{
  1325 	    s//\1/
  1328 	  /^X\(\/\).*/{
  1329 	    s//\1/
  1332 	  s/.*/./; q'`
  1333   srcdir=$ac_confdir
  1334   if test ! -r "$srcdir/$ac_unique_file"; then
  1335     srcdir=..
  1336   fi
  1337 else
  1338   ac_srcdir_defaulted=no
  1339 fi
  1340 if test ! -r "$srcdir/$ac_unique_file"; then
  1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1342   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1343    { (exit 1); exit 1; }; }
  1344 fi
  1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1346 ac_abs_confdir=`(
  1347 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1348    { (exit 1); exit 1; }; }
  1349 	pwd)`
  1350 # When building in place, set srcdir=.
  1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1352   srcdir=.
  1353 fi
  1354 # Remove unnecessary trailing slashes from srcdir.
  1355 # Double slashes in file names in object file debugging info
  1356 # mess up M-x gdb in Emacs.
  1357 case $srcdir in
  1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1359 esac
  1360 for ac_var in $ac_precious_vars; do
  1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1362   eval ac_env_${ac_var}_value=\$${ac_var}
  1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1365 done
  1368 # Report the --help message.
  1370 if test "$ac_init_help" = "long"; then
  1371   # Omit some internal or obsolete options to make the list less imposing.
  1372   # This message is too long to be a string in the A/UX 3.1 sh.
  1373   cat <<_ACEOF
  1374 \`configure' configures this package to adapt to many kinds of systems.
  1376 Usage: $0 [OPTION]... [VAR=VALUE]...
  1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1381 Defaults for the options are specified in brackets.
  1383 Configuration:
  1384   -h, --help              display this help and exit
  1385       --help=short        display options specific to this package
  1386       --help=recursive    display the short help of all the included packages
  1387   -V, --version           display version information and exit
  1388   -q, --quiet, --silent   do not print \`checking...' messages
  1389       --cache-file=FILE   cache test results in FILE [disabled]
  1390   -C, --config-cache      alias for \`--cache-file=config.cache'
  1391   -n, --no-create         do not create output files
  1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1394 Installation directories:
  1395   --prefix=PREFIX         install architecture-independent files in PREFIX
  1396 			  [$ac_default_prefix]
  1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1398 			  [PREFIX]
  1400 By default, \`make install' will install all the files in
  1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1403 for instance \`--prefix=\$HOME'.
  1405 For better control, use the options below.
  1407 Fine tuning of the installation directories:
  1408   --bindir=DIR           user executables [EPREFIX/bin]
  1409   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1410   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1411   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1412   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1413   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1414   --libdir=DIR           object code libraries [EPREFIX/lib]
  1415   --includedir=DIR       C header files [PREFIX/include]
  1416   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1417   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1418   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1419   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1420   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1421   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1422   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1423   --htmldir=DIR          html documentation [DOCDIR]
  1424   --dvidir=DIR           dvi documentation [DOCDIR]
  1425   --pdfdir=DIR           pdf documentation [DOCDIR]
  1426   --psdir=DIR            ps documentation [DOCDIR]
  1427 _ACEOF
  1429   cat <<\_ACEOF
  1431 Program names:
  1432   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1433   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1434   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1436 System types:
  1437   --build=BUILD     configure for building on BUILD [guessed]
  1438   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1439 _ACEOF
  1440 fi
  1442 if test -n "$ac_init_help"; then
  1444   cat <<\_ACEOF
  1446 Optional Features:
  1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1449   --enable-maintainer-mode  enable make rules and dependencies not useful
  1450 			  (and sometimes confusing) to the casual installer
  1451   --disable-dependency-tracking  speeds up one-time build
  1452   --enable-dependency-tracking   do not reject slow dependency extractors
  1453   --enable-strict-warn    Enable strict compilation warnings
  1454   --disable-translator    Disable the SH4 translator (Enabled by default)
  1455   --disable-optimized     Disable compile-time optimizations (Enabled by
  1456                           default)
  1457   --enable-shared         Build drivers as shared libraries (Enabled if
  1458                           available)
  1459   --enable-profiled       Enable profiling build
  1460   --enable-trace          Enable generation of IO traces (warning: hurts
  1461                           performance)
  1462   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1463                           performance)
  1464   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1466 Optional Packages:
  1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1469   --with-osmesa           Build with the osmesa GL library (software
  1470                           rendering)
  1471   --with-gtk              Build with the GTK UI. Default on X11 systems
  1472   --with-esd              Build with support for the ESounD audio system
  1473   --with-pulse            Build with support for the PulseAudio audio system
  1474   --with-sdl              Build with support for SDL audio
  1475   --with-sysroot=SYSROOT  Build using an alternate sysroot
  1476   --with-android=SDK      Specify the location of the Android SDK
  1477   --with-android-ndk=NDK  Specify the location of the Android NDK
  1478   --with-android-version  Specify target Android SDK version
  1479   --with-android-version  Specify target Android NDK version
  1480   --with-android-abi      Specify target Android ABI
  1482 Some influential environment variables:
  1483   CC          C compiler command
  1484   CFLAGS      C compiler flags
  1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1486               nonstandard directory <lib dir>
  1487   LIBS        libraries to pass to the linker, e.g. -l<library>
  1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1489               you have headers in a nonstandard directory <include dir>
  1490   CPP         C preprocessor
  1491   OBJC        Objective C compiler command
  1492   OBJCFLAGS   Objective C compiler flags
  1493   CCAS        assembler compiler command (defaults to CC)
  1494   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1495   PKG_CONFIG  path to pkg-config utility
  1496   LIBPNG_CFLAGS
  1497               C compiler flags for LIBPNG, overriding pkg-config
  1498   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1499   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1500   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1501   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1502   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1503   GLIB_FOR_BUILD_CFLAGS
  1504               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1505   GLIB_FOR_BUILD_LIBS
  1506               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1507   LIBISOFS_CFLAGS
  1508               C compiler flags for LIBISOFS, overriding pkg-config
  1509   LIBISOFS_LIBS
  1510               linker flags for LIBISOFS, overriding pkg-config
  1511   LIBGL_CFLAGS
  1512               C compiler flags for LIBGL, overriding pkg-config
  1513   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1514   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1515   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1516   PULSE_CFLAGS
  1517               C compiler flags for PULSE, overriding pkg-config
  1518   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1519   ESOUND_CFLAGS
  1520               C compiler flags for ESOUND, overriding pkg-config
  1521   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1522   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1523   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1525 Use these variables to override the choices made by `configure' or to help
  1526 it to find libraries and programs with nonstandard names/locations.
  1528 _ACEOF
  1529 ac_status=$?
  1530 fi
  1532 if test "$ac_init_help" = "recursive"; then
  1533   # If there are subdirs, report their specific --help.
  1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535     test -d "$ac_dir" || continue
  1536     ac_builddir=.
  1538 case "$ac_dir" in
  1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1540 *)
  1541   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1542   # A ".." for each directory in $ac_dir_suffix.
  1543   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1544   case $ac_top_builddir_sub in
  1545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1547   esac ;;
  1548 esac
  1549 ac_abs_top_builddir=$ac_pwd
  1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1551 # for backward compatibility:
  1552 ac_top_builddir=$ac_top_build_prefix
  1554 case $srcdir in
  1555   .)  # We are building in place.
  1556     ac_srcdir=.
  1557     ac_top_srcdir=$ac_top_builddir_sub
  1558     ac_abs_top_srcdir=$ac_pwd ;;
  1559   [\\/]* | ?:[\\/]* )  # Absolute name.
  1560     ac_srcdir=$srcdir$ac_dir_suffix;
  1561     ac_top_srcdir=$srcdir
  1562     ac_abs_top_srcdir=$srcdir ;;
  1563   *) # Relative name.
  1564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1565     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1567 esac
  1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1570     cd "$ac_dir" || { ac_status=$?; continue; }
  1571     # Check for guested configure.
  1572     if test -f "$ac_srcdir/configure.gnu"; then
  1573       echo &&
  1574       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1575     elif test -f "$ac_srcdir/configure"; then
  1576       echo &&
  1577       $SHELL "$ac_srcdir/configure" --help=recursive
  1578     else
  1579       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1580     fi || ac_status=$?
  1581     cd "$ac_pwd" || { ac_status=$?; break; }
  1582   done
  1583 fi
  1585 test -n "$ac_init_help" && exit $ac_status
  1586 if $ac_init_version; then
  1587   cat <<\_ACEOF
  1588 configure
  1589 generated by GNU Autoconf 2.61
  1591 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1592 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1593 This configure script is free software; the Free Software Foundation
  1594 gives unlimited permission to copy, distribute and modify it.
  1595 _ACEOF
  1596   exit
  1597 fi
  1598 cat >config.log <<_ACEOF
  1599 This file contains any messages produced by compilers while
  1600 running configure, to aid debugging if configure makes a mistake.
  1602 It was created by $as_me, which was
  1603 generated by GNU Autoconf 2.61.  Invocation command line was
  1605   $ $0 $@
  1607 _ACEOF
  1608 exec 5>>config.log
  1610 cat <<_ASUNAME
  1611 ## --------- ##
  1612 ## Platform. ##
  1613 ## --------- ##
  1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1632 _ASUNAME
  1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1635 for as_dir in $PATH
  1636 do
  1637   IFS=$as_save_IFS
  1638   test -z "$as_dir" && as_dir=.
  1639   echo "PATH: $as_dir"
  1640 done
  1641 IFS=$as_save_IFS
  1643 } >&5
  1645 cat >&5 <<_ACEOF
  1648 ## ----------- ##
  1649 ## Core tests. ##
  1650 ## ----------- ##
  1652 _ACEOF
  1655 # Keep a trace of the command line.
  1656 # Strip out --no-create and --no-recursion so they do not pile up.
  1657 # Strip out --silent because we don't want to record it for future runs.
  1658 # Also quote any args containing shell meta-characters.
  1659 # Make two passes to allow for proper duplicate-argument suppression.
  1660 ac_configure_args=
  1661 ac_configure_args0=
  1662 ac_configure_args1=
  1663 ac_must_keep_next=false
  1664 for ac_pass in 1 2
  1665 do
  1666   for ac_arg
  1667   do
  1668     case $ac_arg in
  1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1671     | -silent | --silent | --silen | --sile | --sil)
  1672       continue ;;
  1673     *\'*)
  1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1675     esac
  1676     case $ac_pass in
  1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1678     2)
  1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1680       if test $ac_must_keep_next = true; then
  1681 	ac_must_keep_next=false # Got value, back to normal.
  1682       else
  1683 	case $ac_arg in
  1684 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1685 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1686 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1687 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1688 	    case "$ac_configure_args0 " in
  1689 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1690 	    esac
  1691 	    ;;
  1692 	  -* ) ac_must_keep_next=true ;;
  1693 	esac
  1694       fi
  1695       ac_configure_args="$ac_configure_args '$ac_arg'"
  1696       ;;
  1697     esac
  1698   done
  1699 done
  1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1703 # When interrupted or exit'd, cleanup temporary files, and complete
  1704 # config.log.  We remove comments because anyway the quotes in there
  1705 # would cause problems or look ugly.
  1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1708 trap 'exit_status=$?
  1709   # Save into config.log some information that might help in debugging.
  1711     echo
  1713     cat <<\_ASBOX
  1714 ## ---------------- ##
  1715 ## Cache variables. ##
  1716 ## ---------------- ##
  1717 _ASBOX
  1718     echo
  1719     # The following way of writing the cache mishandles newlines in values,
  1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1722     eval ac_val=\$$ac_var
  1723     case $ac_val in #(
  1724     *${as_nl}*)
  1725       case $ac_var in #(
  1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1728       esac
  1729       case $ac_var in #(
  1730       _ | IFS | as_nl) ;; #(
  1731       *) $as_unset $ac_var ;;
  1732       esac ;;
  1733     esac
  1734   done
  1735   (set) 2>&1 |
  1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1737     *${as_nl}ac_space=\ *)
  1738       sed -n \
  1739 	"s/'\''/'\''\\\\'\'''\''/g;
  1740 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1741       ;; #(
  1742     *)
  1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1744       ;;
  1745     esac |
  1746     sort
  1748     echo
  1750     cat <<\_ASBOX
  1751 ## ----------------- ##
  1752 ## Output variables. ##
  1753 ## ----------------- ##
  1754 _ASBOX
  1755     echo
  1756     for ac_var in $ac_subst_vars
  1757     do
  1758       eval ac_val=\$$ac_var
  1759       case $ac_val in
  1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1761       esac
  1762       echo "$ac_var='\''$ac_val'\''"
  1763     done | sort
  1764     echo
  1766     if test -n "$ac_subst_files"; then
  1767       cat <<\_ASBOX
  1768 ## ------------------- ##
  1769 ## File substitutions. ##
  1770 ## ------------------- ##
  1771 _ASBOX
  1772       echo
  1773       for ac_var in $ac_subst_files
  1774       do
  1775 	eval ac_val=\$$ac_var
  1776 	case $ac_val in
  1777 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1778 	esac
  1779 	echo "$ac_var='\''$ac_val'\''"
  1780       done | sort
  1781       echo
  1782     fi
  1784     if test -s confdefs.h; then
  1785       cat <<\_ASBOX
  1786 ## ----------- ##
  1787 ## confdefs.h. ##
  1788 ## ----------- ##
  1789 _ASBOX
  1790       echo
  1791       cat confdefs.h
  1792       echo
  1793     fi
  1794     test "$ac_signal" != 0 &&
  1795       echo "$as_me: caught signal $ac_signal"
  1796     echo "$as_me: exit $exit_status"
  1797   } >&5
  1798   rm -f core *.core core.conftest.* &&
  1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1800     exit $exit_status
  1801 ' 0
  1802 for ac_signal in 1 2 13 15; do
  1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1804 done
  1805 ac_signal=0
  1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1808 rm -f -r conftest* confdefs.h
  1810 # Predefined preprocessor variables.
  1812 cat >>confdefs.h <<_ACEOF
  1813 #define PACKAGE_NAME "$PACKAGE_NAME"
  1814 _ACEOF
  1817 cat >>confdefs.h <<_ACEOF
  1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1819 _ACEOF
  1822 cat >>confdefs.h <<_ACEOF
  1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1824 _ACEOF
  1827 cat >>confdefs.h <<_ACEOF
  1828 #define PACKAGE_STRING "$PACKAGE_STRING"
  1829 _ACEOF
  1832 cat >>confdefs.h <<_ACEOF
  1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1834 _ACEOF
  1837 # Let the site file select an alternate cache file if it wants to.
  1838 # Prefer explicitly selected file to automatically selected ones.
  1839 if test -n "$CONFIG_SITE"; then
  1840   set x "$CONFIG_SITE"
  1841 elif test "x$prefix" != xNONE; then
  1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1843 else
  1844   set x "$ac_default_prefix/share/config.site" \
  1845 	"$ac_default_prefix/etc/config.site"
  1846 fi
  1847 shift
  1848 for ac_site_file
  1849 do
  1850   if test -r "$ac_site_file"; then
  1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1852 echo "$as_me: loading site script $ac_site_file" >&6;}
  1853     sed 's/^/| /' "$ac_site_file" >&5
  1854     . "$ac_site_file"
  1855   fi
  1856 done
  1858 if test -r "$cache_file"; then
  1859   # Some versions of bash will fail to source /dev/null (special
  1860   # files actually), so we avoid doing that.
  1861   if test -f "$cache_file"; then
  1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1863 echo "$as_me: loading cache $cache_file" >&6;}
  1864     case $cache_file in
  1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1866       *)                      . "./$cache_file";;
  1867     esac
  1868   fi
  1869 else
  1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1871 echo "$as_me: creating cache $cache_file" >&6;}
  1872   >$cache_file
  1873 fi
  1875 # Check that the precious variables saved in the cache have kept the same
  1876 # value.
  1877 ac_cache_corrupted=false
  1878 for ac_var in $ac_precious_vars; do
  1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1880   eval ac_new_set=\$ac_env_${ac_var}_set
  1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1882   eval ac_new_val=\$ac_env_${ac_var}_value
  1883   case $ac_old_set,$ac_new_set in
  1884     set,)
  1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1887       ac_cache_corrupted=: ;;
  1888     ,set)
  1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1891       ac_cache_corrupted=: ;;
  1892     ,);;
  1893     *)
  1894       if test "x$ac_old_val" != "x$ac_new_val"; then
  1895 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1897 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1899 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1900 echo "$as_me:   current value: $ac_new_val" >&2;}
  1901 	ac_cache_corrupted=:
  1902       fi;;
  1903   esac
  1904   # Pass precious variables to config.status.
  1905   if test "$ac_new_set" = set; then
  1906     case $ac_new_val in
  1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1908     *) ac_arg=$ac_var=$ac_new_val ;;
  1909     esac
  1910     case " $ac_configure_args " in
  1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1913     esac
  1914   fi
  1915 done
  1916 if $ac_cache_corrupted; then
  1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1921    { (exit 1); exit 1; }; }
  1922 fi
  1940 ac_ext=c
  1941 ac_cpp='$CPP $CPPFLAGS'
  1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1947 am__api_version="1.9"
  1948 ac_aux_dir=
  1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1950   if test -f "$ac_dir/install-sh"; then
  1951     ac_aux_dir=$ac_dir
  1952     ac_install_sh="$ac_aux_dir/install-sh -c"
  1953     break
  1954   elif test -f "$ac_dir/install.sh"; then
  1955     ac_aux_dir=$ac_dir
  1956     ac_install_sh="$ac_aux_dir/install.sh -c"
  1957     break
  1958   elif test -f "$ac_dir/shtool"; then
  1959     ac_aux_dir=$ac_dir
  1960     ac_install_sh="$ac_aux_dir/shtool install -c"
  1961     break
  1962   fi
  1963 done
  1964 if test -z "$ac_aux_dir"; then
  1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1967    { (exit 1); exit 1; }; }
  1968 fi
  1970 # These three variables are undocumented and unsupported,
  1971 # and are intended to be withdrawn in a future Autoconf release.
  1972 # They can cause serious problems if a builder's source tree is in a directory
  1973 # whose full name contains unusual characters.
  1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1979 # Find a good install program.  We prefer a C program (faster),
  1980 # so one script is as good as another.  But avoid the broken or
  1981 # incompatible versions:
  1982 # SysV /etc/install, /usr/sbin/install
  1983 # SunOS /usr/etc/install
  1984 # IRIX /sbin/install
  1985 # AIX /bin/install
  1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1990 # OS/2's system install, which has a completely different semantic
  1991 # ./install, which can be erroneously created by make from ./install.sh.
  1992 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1994 if test -z "$INSTALL"; then
  1995 if test "${ac_cv_path_install+set}" = set; then
  1996   echo $ECHO_N "(cached) $ECHO_C" >&6
  1997 else
  1998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999 for as_dir in $PATH
  2000 do
  2001   IFS=$as_save_IFS
  2002   test -z "$as_dir" && as_dir=.
  2003   # Account for people who put trailing slashes in PATH elements.
  2004 case $as_dir/ in
  2005   ./ | .// | /cC/* | \
  2006   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2007   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2008   /usr/ucb/* ) ;;
  2009   *)
  2010     # OSF1 and SCO ODT 3.0 have their own names for install.
  2011     # Don't use installbsd from OSF since it installs stuff as root
  2012     # by default.
  2013     for ac_prog in ginstall scoinst install; do
  2014       for ac_exec_ext in '' $ac_executable_extensions; do
  2015 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2016 	  if test $ac_prog = install &&
  2017 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2018 	    # AIX install.  It has an incompatible calling convention.
  2020 	  elif test $ac_prog = install &&
  2021 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2022 	    # program-specific install script used by HP pwplus--don't use.
  2024 	  else
  2025 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2026 	    break 3
  2027 	  fi
  2028 	fi
  2029       done
  2030     done
  2031     ;;
  2032 esac
  2033 done
  2034 IFS=$as_save_IFS
  2037 fi
  2038   if test "${ac_cv_path_install+set}" = set; then
  2039     INSTALL=$ac_cv_path_install
  2040   else
  2041     # As a last resort, use the slow shell script.  Don't cache a
  2042     # value for INSTALL within a source directory, because that will
  2043     # break other packages using the cache if that directory is
  2044     # removed, or if the value is a relative name.
  2045     INSTALL=$ac_install_sh
  2046   fi
  2047 fi
  2048 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2049 echo "${ECHO_T}$INSTALL" >&6; }
  2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2052 # It thinks the first close brace ends the variable substitution.
  2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2059 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2060 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2061 # Just in case
  2062 sleep 1
  2063 echo timestamp > conftest.file
  2064 # Do `set' in a subshell so we don't clobber the current shell's
  2065 # arguments.  Must try -L first in case configure is actually a
  2066 # symlink; some systems play weird games with the mod time of symlinks
  2067 # (eg FreeBSD returns the mod time of the symlink's containing
  2068 # directory).
  2069 if (
  2070    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2071    if test "$*" = "X"; then
  2072       # -L didn't work.
  2073       set X `ls -t $srcdir/configure conftest.file`
  2074    fi
  2075    rm -f conftest.file
  2076    if test "$*" != "X $srcdir/configure conftest.file" \
  2077       && test "$*" != "X conftest.file $srcdir/configure"; then
  2079       # If neither matched, then we have a broken ls.  This can happen
  2080       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2081       # broken ls alias from the environment.  This has actually
  2082       # happened.  Such a system could not be considered "sane".
  2083       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2084 alias in your environment" >&5
  2085 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2086 alias in your environment" >&2;}
  2087    { (exit 1); exit 1; }; }
  2088    fi
  2090    test "$2" = conftest.file
  2092 then
  2093    # Ok.
  2095 else
  2096    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2097 Check your system clock" >&5
  2098 echo "$as_me: error: newly created file is older than distributed files!
  2099 Check your system clock" >&2;}
  2100    { (exit 1); exit 1; }; }
  2101 fi
  2102 { echo "$as_me:$LINENO: result: yes" >&5
  2103 echo "${ECHO_T}yes" >&6; }
  2104 test "$program_prefix" != NONE &&
  2105   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2106 # Use a double $ so make ignores it.
  2107 test "$program_suffix" != NONE &&
  2108   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2109 # Double any \ or $.  echo might interpret backslashes.
  2110 # By default was `s,x,x', remove it if useless.
  2111 cat <<\_ACEOF >conftest.sed
  2112 s/[\\$]/&&/g;s/;s,x,x,$//
  2113 _ACEOF
  2114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2115 rm -f conftest.sed
  2117 # expand $ac_aux_dir to an absolute path
  2118 am_aux_dir=`cd $ac_aux_dir && pwd`
  2120 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2121 # Use eval to expand $SHELL
  2122 if eval "$MISSING --run true"; then
  2123   am_missing_run="$MISSING --run "
  2124 else
  2125   am_missing_run=
  2126   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2127 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2128 fi
  2130 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2131   # We used to keeping the `.' as first argument, in order to
  2132   # allow $(mkdir_p) to be used without argument.  As in
  2133   #   $(mkdir_p) $(somedir)
  2134   # where $(somedir) is conditionally defined.  However this is wrong
  2135   # for two reasons:
  2136   #  1. if the package is installed by a user who cannot write `.'
  2137   #     make install will fail,
  2138   #  2. the above comment should most certainly read
  2139   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2140   #     so it does not work when $(somedir) is undefined and
  2141   #     $(DESTDIR) is not.
  2142   #  To support the latter case, we have to write
  2143   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2144   #  so the `.' trick is pointless.
  2145   mkdir_p='mkdir -p --'
  2146 else
  2147   # On NextStep and OpenStep, the `mkdir' command does not
  2148   # recognize any option.  It will interpret all options as
  2149   # directories to create, and then abort because `.' already
  2150   # exists.
  2151   for d in ./-p ./--version;
  2152   do
  2153     test -d $d && rmdir $d
  2154   done
  2155   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2156   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2157     mkdir_p='$(mkinstalldirs)'
  2158   else
  2159     mkdir_p='$(install_sh) -d'
  2160   fi
  2161 fi
  2163 for ac_prog in gawk mawk nawk awk
  2164 do
  2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2166 set dummy $ac_prog; ac_word=$2
  2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2169 if test "${ac_cv_prog_AWK+set}" = set; then
  2170   echo $ECHO_N "(cached) $ECHO_C" >&6
  2171 else
  2172   if test -n "$AWK"; then
  2173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2174 else
  2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2176 for as_dir in $PATH
  2177 do
  2178   IFS=$as_save_IFS
  2179   test -z "$as_dir" && as_dir=.
  2180   for ac_exec_ext in '' $ac_executable_extensions; do
  2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2182     ac_cv_prog_AWK="$ac_prog"
  2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2184     break 2
  2185   fi
  2186 done
  2187 done
  2188 IFS=$as_save_IFS
  2190 fi
  2191 fi
  2192 AWK=$ac_cv_prog_AWK
  2193 if test -n "$AWK"; then
  2194   { echo "$as_me:$LINENO: result: $AWK" >&5
  2195 echo "${ECHO_T}$AWK" >&6; }
  2196 else
  2197   { echo "$as_me:$LINENO: result: no" >&5
  2198 echo "${ECHO_T}no" >&6; }
  2199 fi
  2202   test -n "$AWK" && break
  2203 done
  2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2209   echo $ECHO_N "(cached) $ECHO_C" >&6
  2210 else
  2211   cat >conftest.make <<\_ACEOF
  2212 SHELL = /bin/sh
  2213 all:
  2214 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2215 _ACEOF
  2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2218   *@@@%%%=?*=@@@%%%*)
  2219     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2220   *)
  2221     eval ac_cv_prog_make_${ac_make}_set=no;;
  2222 esac
  2223 rm -f conftest.make
  2224 fi
  2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2226   { echo "$as_me:$LINENO: result: yes" >&5
  2227 echo "${ECHO_T}yes" >&6; }
  2228   SET_MAKE=
  2229 else
  2230   { echo "$as_me:$LINENO: result: no" >&5
  2231 echo "${ECHO_T}no" >&6; }
  2232   SET_MAKE="MAKE=${MAKE-make}"
  2233 fi
  2235 rm -rf .tst 2>/dev/null
  2236 mkdir .tst 2>/dev/null
  2237 if test -d .tst; then
  2238   am__leading_dot=.
  2239 else
  2240   am__leading_dot=_
  2241 fi
  2242 rmdir .tst 2>/dev/null
  2244 # test to see if srcdir already configured
  2245 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2246    test -f $srcdir/config.status; then
  2247   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2248 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2249    { (exit 1); exit 1; }; }
  2250 fi
  2252 # test whether we have cygpath
  2253 if test -z "$CYGPATH_W"; then
  2254   if (cygpath --version) >/dev/null 2>/dev/null; then
  2255     CYGPATH_W='cygpath -w'
  2256   else
  2257     CYGPATH_W=echo
  2258   fi
  2259 fi
  2262 # Define the identity of the package.
  2263  PACKAGE=lxdream
  2264  VERSION=0.9.1
  2267 cat >>confdefs.h <<_ACEOF
  2268 #define PACKAGE "$PACKAGE"
  2269 _ACEOF
  2272 cat >>confdefs.h <<_ACEOF
  2273 #define VERSION "$VERSION"
  2274 _ACEOF
  2276 # Some tools Automake needs.
  2278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2292 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2294 # Installed binaries are usually stripped using `strip' when the user
  2295 # run `make install-strip'.  However `strip' might not be the right
  2296 # tool to use in cross-compilation environments, therefore Automake
  2297 # will honor the `STRIP' environment variable to overrule this program.
  2298 if test "$cross_compiling" != no; then
  2299   if test -n "$ac_tool_prefix"; then
  2300   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2304 if test "${ac_cv_prog_STRIP+set}" = set; then
  2305   echo $ECHO_N "(cached) $ECHO_C" >&6
  2306 else
  2307   if test -n "$STRIP"; then
  2308   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2309 else
  2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311 for as_dir in $PATH
  2312 do
  2313   IFS=$as_save_IFS
  2314   test -z "$as_dir" && as_dir=.
  2315   for ac_exec_ext in '' $ac_executable_extensions; do
  2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2317     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2319     break 2
  2320   fi
  2321 done
  2322 done
  2323 IFS=$as_save_IFS
  2325 fi
  2326 fi
  2327 STRIP=$ac_cv_prog_STRIP
  2328 if test -n "$STRIP"; then
  2329   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2330 echo "${ECHO_T}$STRIP" >&6; }
  2331 else
  2332   { echo "$as_me:$LINENO: result: no" >&5
  2333 echo "${ECHO_T}no" >&6; }
  2334 fi
  2337 fi
  2338 if test -z "$ac_cv_prog_STRIP"; then
  2339   ac_ct_STRIP=$STRIP
  2340   # Extract the first word of "strip", so it can be a program name with args.
  2341 set dummy strip; ac_word=$2
  2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2345   echo $ECHO_N "(cached) $ECHO_C" >&6
  2346 else
  2347   if test -n "$ac_ct_STRIP"; then
  2348   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2349 else
  2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351 for as_dir in $PATH
  2352 do
  2353   IFS=$as_save_IFS
  2354   test -z "$as_dir" && as_dir=.
  2355   for ac_exec_ext in '' $ac_executable_extensions; do
  2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2357     ac_cv_prog_ac_ct_STRIP="strip"
  2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2359     break 2
  2360   fi
  2361 done
  2362 done
  2363 IFS=$as_save_IFS
  2365 fi
  2366 fi
  2367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2368 if test -n "$ac_ct_STRIP"; then
  2369   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2370 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2371 else
  2372   { echo "$as_me:$LINENO: result: no" >&5
  2373 echo "${ECHO_T}no" >&6; }
  2374 fi
  2376   if test "x$ac_ct_STRIP" = x; then
  2377     STRIP=":"
  2378   else
  2379     case $cross_compiling:$ac_tool_warned in
  2380 yes:)
  2381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2382 whose name does not start with the host triplet.  If you think this
  2383 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2385 whose name does not start with the host triplet.  If you think this
  2386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2387 ac_tool_warned=yes ;;
  2388 esac
  2389     STRIP=$ac_ct_STRIP
  2390   fi
  2391 else
  2392   STRIP="$ac_cv_prog_STRIP"
  2393 fi
  2395 fi
  2396 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2398 # We need awk for the "check" target.  The system "awk" is bad on
  2399 # some platforms.
  2400 # Always define AMTAR for backward compatibility.
  2402 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2410 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2411 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2412     # Check whether --enable-maintainer-mode was given.
  2413 if test "${enable_maintainer_mode+set}" = set; then
  2414   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2415 else
  2416   USE_MAINTAINER_MODE=no
  2417 fi
  2419   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2420 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2423 if test $USE_MAINTAINER_MODE = yes; then
  2424   MAINTAINER_MODE_TRUE=
  2425   MAINTAINER_MODE_FALSE='#'
  2426 else
  2427   MAINTAINER_MODE_TRUE='#'
  2428   MAINTAINER_MODE_FALSE=
  2429 fi
  2431   MAINT=$MAINTAINER_MODE_TRUE
  2434 ac_config_headers="$ac_config_headers config.h"
  2437 # Make sure we can run config.sub.
  2438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2439   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2440 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2441    { (exit 1); exit 1; }; }
  2443 { echo "$as_me:$LINENO: checking build system type" >&5
  2444 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2445 if test "${ac_cv_build+set}" = set; then
  2446   echo $ECHO_N "(cached) $ECHO_C" >&6
  2447 else
  2448   ac_build_alias=$build_alias
  2449 test "x$ac_build_alias" = x &&
  2450   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2451 test "x$ac_build_alias" = x &&
  2452   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2453 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2454    { (exit 1); exit 1; }; }
  2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2456   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2457 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2458    { (exit 1); exit 1; }; }
  2460 fi
  2461 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2462 echo "${ECHO_T}$ac_cv_build" >&6; }
  2463 case $ac_cv_build in
  2464 *-*-*) ;;
  2465 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2466 echo "$as_me: error: invalid value of canonical build" >&2;}
  2467    { (exit 1); exit 1; }; };;
  2468 esac
  2469 build=$ac_cv_build
  2470 ac_save_IFS=$IFS; IFS='-'
  2471 set x $ac_cv_build
  2472 shift
  2473 build_cpu=$1
  2474 build_vendor=$2
  2475 shift; shift
  2476 # Remember, the first character of IFS is used to create $*,
  2477 # except with old shells:
  2478 build_os=$*
  2479 IFS=$ac_save_IFS
  2480 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2483 { echo "$as_me:$LINENO: checking host system type" >&5
  2484 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2485 if test "${ac_cv_host+set}" = set; then
  2486   echo $ECHO_N "(cached) $ECHO_C" >&6
  2487 else
  2488   if test "x$host_alias" = x; then
  2489   ac_cv_host=$ac_cv_build
  2490 else
  2491   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2492     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2493 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2494    { (exit 1); exit 1; }; }
  2495 fi
  2497 fi
  2498 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2499 echo "${ECHO_T}$ac_cv_host" >&6; }
  2500 case $ac_cv_host in
  2501 *-*-*) ;;
  2502 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2503 echo "$as_me: error: invalid value of canonical host" >&2;}
  2504    { (exit 1); exit 1; }; };;
  2505 esac
  2506 host=$ac_cv_host
  2507 ac_save_IFS=$IFS; IFS='-'
  2508 set x $ac_cv_host
  2509 shift
  2510 host_cpu=$1
  2511 host_vendor=$2
  2512 shift; shift
  2513 # Remember, the first character of IFS is used to create $*,
  2514 # except with old shells:
  2515 host_os=$*
  2516 IFS=$ac_save_IFS
  2517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2528 # LX_ANDROID_BUILD
  2529 # Defines --with-android, --with-android-ndk, and --with-android-version
  2530 # If specified, checks for a working install, and sets build parameters
  2531 # appropriately for an Android host.
  2535 DEPDIR="${am__leading_dot}deps"
  2537 ac_config_commands="$ac_config_commands depfiles"
  2540 am_make=${MAKE-make}
  2541 cat > confinc << 'END'
  2542 am__doit:
  2543 	@echo done
  2544 .PHONY: am__doit
  2545 END
  2546 # If we don't find an include directive, just comment out the code.
  2547 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2548 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2549 am__include="#"
  2550 am__quote=
  2551 _am_result=none
  2552 # First try GNU make style include.
  2553 echo "include confinc" > confmf
  2554 # We grep out `Entering directory' and `Leaving directory'
  2555 # messages which can occur if `w' ends up in MAKEFLAGS.
  2556 # In particular we don't look at `^make:' because GNU make might
  2557 # be invoked under some other name (usually "gmake"), in which
  2558 # case it prints its new name instead of `make'.
  2559 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2560    am__include=include
  2561    am__quote=
  2562    _am_result=GNU
  2563 fi
  2564 # Now try BSD make style include.
  2565 if test "$am__include" = "#"; then
  2566    echo '.include "confinc"' > confmf
  2567    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2568       am__include=.include
  2569       am__quote="\""
  2570       _am_result=BSD
  2571    fi
  2572 fi
  2575 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2576 echo "${ECHO_T}$_am_result" >&6; }
  2577 rm -f confinc confmf
  2579 # Check whether --enable-dependency-tracking was given.
  2580 if test "${enable_dependency_tracking+set}" = set; then
  2581   enableval=$enable_dependency_tracking;
  2582 fi
  2584 if test "x$enable_dependency_tracking" != xno; then
  2585   am_depcomp="$ac_aux_dir/depcomp"
  2586   AMDEPBACKSLASH='\'
  2587 fi
  2590 if test "x$enable_dependency_tracking" != xno; then
  2591   AMDEP_TRUE=
  2592   AMDEP_FALSE='#'
  2593 else
  2594   AMDEP_TRUE='#'
  2595   AMDEP_FALSE=
  2596 fi
  2600 ac_ext=c
  2601 ac_cpp='$CPP $CPPFLAGS'
  2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2605 if test -n "$ac_tool_prefix"; then
  2606   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2610 if test "${ac_cv_prog_CC+set}" = set; then
  2611   echo $ECHO_N "(cached) $ECHO_C" >&6
  2612 else
  2613   if test -n "$CC"; then
  2614   ac_cv_prog_CC="$CC" # Let the user override the test.
  2615 else
  2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2617 for as_dir in $PATH
  2618 do
  2619   IFS=$as_save_IFS
  2620   test -z "$as_dir" && as_dir=.
  2621   for ac_exec_ext in '' $ac_executable_extensions; do
  2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2623     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2625     break 2
  2626   fi
  2627 done
  2628 done
  2629 IFS=$as_save_IFS
  2631 fi
  2632 fi
  2633 CC=$ac_cv_prog_CC
  2634 if test -n "$CC"; then
  2635   { echo "$as_me:$LINENO: result: $CC" >&5
  2636 echo "${ECHO_T}$CC" >&6; }
  2637 else
  2638   { echo "$as_me:$LINENO: result: no" >&5
  2639 echo "${ECHO_T}no" >&6; }
  2640 fi
  2643 fi
  2644 if test -z "$ac_cv_prog_CC"; then
  2645   ac_ct_CC=$CC
  2646   # Extract the first word of "gcc", so it can be a program name with args.
  2647 set dummy gcc; ac_word=$2
  2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2651   echo $ECHO_N "(cached) $ECHO_C" >&6
  2652 else
  2653   if test -n "$ac_ct_CC"; then
  2654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2655 else
  2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2657 for as_dir in $PATH
  2658 do
  2659   IFS=$as_save_IFS
  2660   test -z "$as_dir" && as_dir=.
  2661   for ac_exec_ext in '' $ac_executable_extensions; do
  2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2663     ac_cv_prog_ac_ct_CC="gcc"
  2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665     break 2
  2666   fi
  2667 done
  2668 done
  2669 IFS=$as_save_IFS
  2671 fi
  2672 fi
  2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2674 if test -n "$ac_ct_CC"; then
  2675   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2676 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2677 else
  2678   { echo "$as_me:$LINENO: result: no" >&5
  2679 echo "${ECHO_T}no" >&6; }
  2680 fi
  2682   if test "x$ac_ct_CC" = x; then
  2683     CC=""
  2684   else
  2685     case $cross_compiling:$ac_tool_warned in
  2686 yes:)
  2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2688 whose name does not start with the host triplet.  If you think this
  2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2691 whose name does not start with the host triplet.  If you think this
  2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2693 ac_tool_warned=yes ;;
  2694 esac
  2695     CC=$ac_ct_CC
  2696   fi
  2697 else
  2698   CC="$ac_cv_prog_CC"
  2699 fi
  2701 if test -z "$CC"; then
  2702           if test -n "$ac_tool_prefix"; then
  2703     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2704 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2707 if test "${ac_cv_prog_CC+set}" = set; then
  2708   echo $ECHO_N "(cached) $ECHO_C" >&6
  2709 else
  2710   if test -n "$CC"; then
  2711   ac_cv_prog_CC="$CC" # Let the user override the test.
  2712 else
  2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714 for as_dir in $PATH
  2715 do
  2716   IFS=$as_save_IFS
  2717   test -z "$as_dir" && as_dir=.
  2718   for ac_exec_ext in '' $ac_executable_extensions; do
  2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722     break 2
  2723   fi
  2724 done
  2725 done
  2726 IFS=$as_save_IFS
  2728 fi
  2729 fi
  2730 CC=$ac_cv_prog_CC
  2731 if test -n "$CC"; then
  2732   { echo "$as_me:$LINENO: result: $CC" >&5
  2733 echo "${ECHO_T}$CC" >&6; }
  2734 else
  2735   { echo "$as_me:$LINENO: result: no" >&5
  2736 echo "${ECHO_T}no" >&6; }
  2737 fi
  2740   fi
  2741 fi
  2742 if test -z "$CC"; then
  2743   # Extract the first word of "cc", so it can be a program name with args.
  2744 set dummy cc; ac_word=$2
  2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2747 if test "${ac_cv_prog_CC+set}" = set; then
  2748   echo $ECHO_N "(cached) $ECHO_C" >&6
  2749 else
  2750   if test -n "$CC"; then
  2751   ac_cv_prog_CC="$CC" # Let the user override the test.
  2752 else
  2753   ac_prog_rejected=no
  2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2755 for as_dir in $PATH
  2756 do
  2757   IFS=$as_save_IFS
  2758   test -z "$as_dir" && as_dir=.
  2759   for ac_exec_ext in '' $ac_executable_extensions; do
  2760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2761     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2762        ac_prog_rejected=yes
  2763        continue
  2764      fi
  2765     ac_cv_prog_CC="cc"
  2766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767     break 2
  2768   fi
  2769 done
  2770 done
  2771 IFS=$as_save_IFS
  2773 if test $ac_prog_rejected = yes; then
  2774   # We found a bogon in the path, so make sure we never use it.
  2775   set dummy $ac_cv_prog_CC
  2776   shift
  2777   if test $# != 0; then
  2778     # We chose a different compiler from the bogus one.
  2779     # However, it has the same basename, so the bogon will be chosen
  2780     # first if we set CC to just the basename; use the full file name.
  2781     shift
  2782     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2783   fi
  2784 fi
  2785 fi
  2786 fi
  2787 CC=$ac_cv_prog_CC
  2788 if test -n "$CC"; then
  2789   { echo "$as_me:$LINENO: result: $CC" >&5
  2790 echo "${ECHO_T}$CC" >&6; }
  2791 else
  2792   { echo "$as_me:$LINENO: result: no" >&5
  2793 echo "${ECHO_T}no" >&6; }
  2794 fi
  2797 fi
  2798 if test -z "$CC"; then
  2799   if test -n "$ac_tool_prefix"; then
  2800   for ac_prog in cl.exe
  2801   do
  2802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2806 if test "${ac_cv_prog_CC+set}" = set; then
  2807   echo $ECHO_N "(cached) $ECHO_C" >&6
  2808 else
  2809   if test -n "$CC"; then
  2810   ac_cv_prog_CC="$CC" # Let the user override the test.
  2811 else
  2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813 for as_dir in $PATH
  2814 do
  2815   IFS=$as_save_IFS
  2816   test -z "$as_dir" && as_dir=.
  2817   for ac_exec_ext in '' $ac_executable_extensions; do
  2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2819     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821     break 2
  2822   fi
  2823 done
  2824 done
  2825 IFS=$as_save_IFS
  2827 fi
  2828 fi
  2829 CC=$ac_cv_prog_CC
  2830 if test -n "$CC"; then
  2831   { echo "$as_me:$LINENO: result: $CC" >&5
  2832 echo "${ECHO_T}$CC" >&6; }
  2833 else
  2834   { echo "$as_me:$LINENO: result: no" >&5
  2835 echo "${ECHO_T}no" >&6; }
  2836 fi
  2839     test -n "$CC" && break
  2840   done
  2841 fi
  2842 if test -z "$CC"; then
  2843   ac_ct_CC=$CC
  2844   for ac_prog in cl.exe
  2845 do
  2846   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2847 set dummy $ac_prog; ac_word=$2
  2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2851   echo $ECHO_N "(cached) $ECHO_C" >&6
  2852 else
  2853   if test -n "$ac_ct_CC"; then
  2854   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2855 else
  2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857 for as_dir in $PATH
  2858 do
  2859   IFS=$as_save_IFS
  2860   test -z "$as_dir" && as_dir=.
  2861   for ac_exec_ext in '' $ac_executable_extensions; do
  2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2863     ac_cv_prog_ac_ct_CC="$ac_prog"
  2864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865     break 2
  2866   fi
  2867 done
  2868 done
  2869 IFS=$as_save_IFS
  2871 fi
  2872 fi
  2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2874 if test -n "$ac_ct_CC"; then
  2875   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2876 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2877 else
  2878   { echo "$as_me:$LINENO: result: no" >&5
  2879 echo "${ECHO_T}no" >&6; }
  2880 fi
  2883   test -n "$ac_ct_CC" && break
  2884 done
  2886   if test "x$ac_ct_CC" = x; then
  2887     CC=""
  2888   else
  2889     case $cross_compiling:$ac_tool_warned in
  2890 yes:)
  2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2892 whose name does not start with the host triplet.  If you think this
  2893 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2895 whose name does not start with the host triplet.  If you think this
  2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2897 ac_tool_warned=yes ;;
  2898 esac
  2899     CC=$ac_ct_CC
  2900   fi
  2901 fi
  2903 fi
  2906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2907 See \`config.log' for more details." >&5
  2908 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2909 See \`config.log' for more details." >&2;}
  2910    { (exit 1); exit 1; }; }
  2912 # Provide some information about the compiler.
  2913 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2914 ac_compiler=`set X $ac_compile; echo $2`
  2915 { (ac_try="$ac_compiler --version >&5"
  2916 case "(($ac_try" in
  2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2918   *) ac_try_echo=$ac_try;;
  2919 esac
  2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2921   (eval "$ac_compiler --version >&5") 2>&5
  2922   ac_status=$?
  2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924   (exit $ac_status); }
  2925 { (ac_try="$ac_compiler -v >&5"
  2926 case "(($ac_try" in
  2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2928   *) ac_try_echo=$ac_try;;
  2929 esac
  2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2931   (eval "$ac_compiler -v >&5") 2>&5
  2932   ac_status=$?
  2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934   (exit $ac_status); }
  2935 { (ac_try="$ac_compiler -V >&5"
  2936 case "(($ac_try" in
  2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938   *) ac_try_echo=$ac_try;;
  2939 esac
  2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941   (eval "$ac_compiler -V >&5") 2>&5
  2942   ac_status=$?
  2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944   (exit $ac_status); }
  2946 cat >conftest.$ac_ext <<_ACEOF
  2947 /* confdefs.h.  */
  2948 _ACEOF
  2949 cat confdefs.h >>conftest.$ac_ext
  2950 cat >>conftest.$ac_ext <<_ACEOF
  2951 /* end confdefs.h.  */
  2953 int
  2954 main ()
  2958   return 0;
  2960 _ACEOF
  2961 ac_clean_files_save=$ac_clean_files
  2962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2963 # Try to create an executable without -o first, disregard a.out.
  2964 # It will help us diagnose broken compilers, and finding out an intuition
  2965 # of exeext.
  2966 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2970 # List of possible output files, starting from the most likely.
  2971 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2972 # only as a last resort.  b.out is created by i960 compilers.
  2973 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2975 # The IRIX 6 linker writes into existing files which may not be
  2976 # executable, retaining their permissions.  Remove them first so a
  2977 # subsequent execution test works.
  2978 ac_rmfiles=
  2979 for ac_file in $ac_files
  2980 do
  2981   case $ac_file in
  2982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2983     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2984   esac
  2985 done
  2986 rm -f $ac_rmfiles
  2988 if { (ac_try="$ac_link_default"
  2989 case "(($ac_try" in
  2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991   *) ac_try_echo=$ac_try;;
  2992 esac
  2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2994   (eval "$ac_link_default") 2>&5
  2995   ac_status=$?
  2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2997   (exit $ac_status); }; then
  2998   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3000 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3001 # so that the user can short-circuit this test for compilers unknown to
  3002 # Autoconf.
  3003 for ac_file in $ac_files ''
  3004 do
  3005   test -f "$ac_file" || continue
  3006   case $ac_file in
  3007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3008 	;;
  3009     [ab].out )
  3010 	# We found the default executable, but exeext='' is most
  3011 	# certainly right.
  3012 	break;;
  3013     *.* )
  3014         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3015 	then :; else
  3016 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3017 	fi
  3018 	# We set ac_cv_exeext here because the later test for it is not
  3019 	# safe: cross compilers may not add the suffix if given an `-o'
  3020 	# argument, so we may need to know it at that point already.
  3021 	# Even if this section looks crufty: it has the advantage of
  3022 	# actually working.
  3023 	break;;
  3024     * )
  3025 	break;;
  3026   esac
  3027 done
  3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3030 else
  3031   ac_file=''
  3032 fi
  3034 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3035 echo "${ECHO_T}$ac_file" >&6; }
  3036 if test -z "$ac_file"; then
  3037   echo "$as_me: failed program was:" >&5
  3038 sed 's/^/| /' conftest.$ac_ext >&5
  3040 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3041 See \`config.log' for more details." >&5
  3042 echo "$as_me: error: C compiler cannot create executables
  3043 See \`config.log' for more details." >&2;}
  3044    { (exit 77); exit 77; }; }
  3045 fi
  3047 ac_exeext=$ac_cv_exeext
  3049 # Check that the compiler produces executables we can run.  If not, either
  3050 # the compiler is broken, or we cross compile.
  3051 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3054 # If not cross compiling, check that we can run a simple program.
  3055 if test "$cross_compiling" != yes; then
  3056   if { ac_try='./$ac_file'
  3057   { (case "(($ac_try" in
  3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059   *) ac_try_echo=$ac_try;;
  3060 esac
  3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3062   (eval "$ac_try") 2>&5
  3063   ac_status=$?
  3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065   (exit $ac_status); }; }; then
  3066     cross_compiling=no
  3067   else
  3068     if test "$cross_compiling" = maybe; then
  3069 	cross_compiling=yes
  3070     else
  3071 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3072 If you meant to cross compile, use \`--host'.
  3073 See \`config.log' for more details." >&5
  3074 echo "$as_me: error: cannot run C compiled programs.
  3075 If you meant to cross compile, use \`--host'.
  3076 See \`config.log' for more details." >&2;}
  3077    { (exit 1); exit 1; }; }
  3078     fi
  3079   fi
  3080 fi
  3081 { echo "$as_me:$LINENO: result: yes" >&5
  3082 echo "${ECHO_T}yes" >&6; }
  3084 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3085 ac_clean_files=$ac_clean_files_save
  3086 # Check that the compiler produces executables we can run.  If not, either
  3087 # the compiler is broken, or we cross compile.
  3088 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3089 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3090 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3091 echo "${ECHO_T}$cross_compiling" >&6; }
  3093 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3094 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3095 if { (ac_try="$ac_link"
  3096 case "(($ac_try" in
  3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098   *) ac_try_echo=$ac_try;;
  3099 esac
  3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3101   (eval "$ac_link") 2>&5
  3102   ac_status=$?
  3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3104   (exit $ac_status); }; then
  3105   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3106 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3108 # `rm'.
  3109 for ac_file in conftest.exe conftest conftest.*; do
  3110   test -f "$ac_file" || continue
  3111   case $ac_file in
  3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3113     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3114 	  break;;
  3115     * ) break;;
  3116   esac
  3117 done
  3118 else
  3119   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3120 See \`config.log' for more details." >&5
  3121 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3122 See \`config.log' for more details." >&2;}
  3123    { (exit 1); exit 1; }; }
  3124 fi
  3126 rm -f conftest$ac_cv_exeext
  3127 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3128 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3130 rm -f conftest.$ac_ext
  3131 EXEEXT=$ac_cv_exeext
  3132 ac_exeext=$EXEEXT
  3133 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3134 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3135 if test "${ac_cv_objext+set}" = set; then
  3136   echo $ECHO_N "(cached) $ECHO_C" >&6
  3137 else
  3138   cat >conftest.$ac_ext <<_ACEOF
  3139 /* confdefs.h.  */
  3140 _ACEOF
  3141 cat confdefs.h >>conftest.$ac_ext
  3142 cat >>conftest.$ac_ext <<_ACEOF
  3143 /* end confdefs.h.  */
  3145 int
  3146 main ()
  3150   return 0;
  3152 _ACEOF
  3153 rm -f conftest.o conftest.obj
  3154 if { (ac_try="$ac_compile"
  3155 case "(($ac_try" in
  3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157   *) ac_try_echo=$ac_try;;
  3158 esac
  3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3160   (eval "$ac_compile") 2>&5
  3161   ac_status=$?
  3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163   (exit $ac_status); }; then
  3164   for ac_file in conftest.o conftest.obj conftest.*; do
  3165   test -f "$ac_file" || continue;
  3166   case $ac_file in
  3167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3168     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3169        break;;
  3170   esac
  3171 done
  3172 else
  3173   echo "$as_me: failed program was:" >&5
  3174 sed 's/^/| /' conftest.$ac_ext >&5
  3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3177 See \`config.log' for more details." >&5
  3178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3179 See \`config.log' for more details." >&2;}
  3180    { (exit 1); exit 1; }; }
  3181 fi
  3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3184 fi
  3185 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3186 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3187 OBJEXT=$ac_cv_objext
  3188 ac_objext=$OBJEXT
  3189 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3192   echo $ECHO_N "(cached) $ECHO_C" >&6
  3193 else
  3194   cat >conftest.$ac_ext <<_ACEOF
  3195 /* confdefs.h.  */
  3196 _ACEOF
  3197 cat confdefs.h >>conftest.$ac_ext
  3198 cat >>conftest.$ac_ext <<_ACEOF
  3199 /* end confdefs.h.  */
  3201 int
  3202 main ()
  3204 #ifndef __GNUC__
  3205        choke me
  3206 #endif
  3209   return 0;
  3211 _ACEOF
  3212 rm -f conftest.$ac_objext
  3213 if { (ac_try="$ac_compile"
  3214 case "(($ac_try" in
  3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216   *) ac_try_echo=$ac_try;;
  3217 esac
  3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3219   (eval "$ac_compile") 2>conftest.er1
  3220   ac_status=$?
  3221   grep -v '^ *+' conftest.er1 >conftest.err
  3222   rm -f conftest.er1
  3223   cat conftest.err >&5
  3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3225   (exit $ac_status); } && {
  3226 	 test -z "$ac_c_werror_flag" ||
  3227 	 test ! -s conftest.err
  3228        } && test -s conftest.$ac_objext; then
  3229   ac_compiler_gnu=yes
  3230 else
  3231   echo "$as_me: failed program was:" >&5
  3232 sed 's/^/| /' conftest.$ac_ext >&5
  3234 	ac_compiler_gnu=no
  3235 fi
  3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3240 fi
  3241 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3242 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3243 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3244 ac_test_CFLAGS=${CFLAGS+set}
  3245 ac_save_CFLAGS=$CFLAGS
  3246 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3248 if test "${ac_cv_prog_cc_g+set}" = set; then
  3249   echo $ECHO_N "(cached) $ECHO_C" >&6
  3250 else
  3251   ac_save_c_werror_flag=$ac_c_werror_flag
  3252    ac_c_werror_flag=yes
  3253    ac_cv_prog_cc_g=no
  3254    CFLAGS="-g"
  3255    cat >conftest.$ac_ext <<_ACEOF
  3256 /* confdefs.h.  */
  3257 _ACEOF
  3258 cat confdefs.h >>conftest.$ac_ext
  3259 cat >>conftest.$ac_ext <<_ACEOF
  3260 /* end confdefs.h.  */
  3262 int
  3263 main ()
  3267   return 0;
  3269 _ACEOF
  3270 rm -f conftest.$ac_objext
  3271 if { (ac_try="$ac_compile"
  3272 case "(($ac_try" in
  3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274   *) ac_try_echo=$ac_try;;
  3275 esac
  3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3277   (eval "$ac_compile") 2>conftest.er1
  3278   ac_status=$?
  3279   grep -v '^ *+' conftest.er1 >conftest.err
  3280   rm -f conftest.er1
  3281   cat conftest.err >&5
  3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283   (exit $ac_status); } && {
  3284 	 test -z "$ac_c_werror_flag" ||
  3285 	 test ! -s conftest.err
  3286        } && test -s conftest.$ac_objext; then
  3287   ac_cv_prog_cc_g=yes
  3288 else
  3289   echo "$as_me: failed program was:" >&5
  3290 sed 's/^/| /' conftest.$ac_ext >&5
  3292 	CFLAGS=""
  3293       cat >conftest.$ac_ext <<_ACEOF
  3294 /* confdefs.h.  */
  3295 _ACEOF
  3296 cat confdefs.h >>conftest.$ac_ext
  3297 cat >>conftest.$ac_ext <<_ACEOF
  3298 /* end confdefs.h.  */
  3300 int
  3301 main ()
  3305   return 0;
  3307 _ACEOF
  3308 rm -f conftest.$ac_objext
  3309 if { (ac_try="$ac_compile"
  3310 case "(($ac_try" in
  3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3312   *) ac_try_echo=$ac_try;;
  3313 esac
  3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3315   (eval "$ac_compile") 2>conftest.er1
  3316   ac_status=$?
  3317   grep -v '^ *+' conftest.er1 >conftest.err
  3318   rm -f conftest.er1
  3319   cat conftest.err >&5
  3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321   (exit $ac_status); } && {
  3322 	 test -z "$ac_c_werror_flag" ||
  3323 	 test ! -s conftest.err
  3324        } && test -s conftest.$ac_objext; then
  3326 else
  3327   echo "$as_me: failed program was:" >&5
  3328 sed 's/^/| /' conftest.$ac_ext >&5
  3330 	ac_c_werror_flag=$ac_save_c_werror_flag
  3331 	 CFLAGS="-g"
  3332 	 cat >conftest.$ac_ext <<_ACEOF
  3333 /* confdefs.h.  */
  3334 _ACEOF
  3335 cat confdefs.h >>conftest.$ac_ext
  3336 cat >>conftest.$ac_ext <<_ACEOF
  3337 /* end confdefs.h.  */
  3339 int
  3340 main ()
  3344   return 0;
  3346 _ACEOF
  3347 rm -f conftest.$ac_objext
  3348 if { (ac_try="$ac_compile"
  3349 case "(($ac_try" in
  3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351   *) ac_try_echo=$ac_try;;
  3352 esac
  3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354   (eval "$ac_compile") 2>conftest.er1
  3355   ac_status=$?
  3356   grep -v '^ *+' conftest.er1 >conftest.err
  3357   rm -f conftest.er1
  3358   cat conftest.err >&5
  3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360   (exit $ac_status); } && {
  3361 	 test -z "$ac_c_werror_flag" ||
  3362 	 test ! -s conftest.err
  3363        } && test -s conftest.$ac_objext; then
  3364   ac_cv_prog_cc_g=yes
  3365 else
  3366   echo "$as_me: failed program was:" >&5
  3367 sed 's/^/| /' conftest.$ac_ext >&5
  3370 fi
  3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3373 fi
  3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3376 fi
  3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379    ac_c_werror_flag=$ac_save_c_werror_flag
  3380 fi
  3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3382 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3383 if test "$ac_test_CFLAGS" = set; then
  3384   CFLAGS=$ac_save_CFLAGS
  3385 elif test $ac_cv_prog_cc_g = yes; then
  3386   if test "$GCC" = yes; then
  3387     CFLAGS="-g -O2"
  3388   else
  3389     CFLAGS="-g"
  3390   fi
  3391 else
  3392   if test "$GCC" = yes; then
  3393     CFLAGS="-O2"
  3394   else
  3395     CFLAGS=
  3396   fi
  3397 fi
  3398 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3399 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3400 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3401   echo $ECHO_N "(cached) $ECHO_C" >&6
  3402 else
  3403   ac_cv_prog_cc_c89=no
  3404 ac_save_CC=$CC
  3405 cat >conftest.$ac_ext <<_ACEOF
  3406 /* confdefs.h.  */
  3407 _ACEOF
  3408 cat confdefs.h >>conftest.$ac_ext
  3409 cat >>conftest.$ac_ext <<_ACEOF
  3410 /* end confdefs.h.  */
  3411 #include <stdarg.h>
  3412 #include <stdio.h>
  3413 #include <sys/types.h>
  3414 #include <sys/stat.h>
  3415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3416 struct buf { int x; };
  3417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3418 static char *e (p, i)
  3419      char **p;
  3420      int i;
  3422   return p[i];
  3424 static char *f (char * (*g) (char **, int), char **p, ...)
  3426   char *s;
  3427   va_list v;
  3428   va_start (v,p);
  3429   s = g (p, va_arg (v,int));
  3430   va_end (v);
  3431   return s;
  3434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3435    function prototypes and stuff, but not '\xHH' hex character constants.
  3436    These don't provoke an error unfortunately, instead are silently treated
  3437    as 'x'.  The following induces an error, until -std is added to get
  3438    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3439    array size at least.  It's necessary to write '\x00'==0 to get something
  3440    that's true only with -std.  */
  3441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3444    inside strings and character constants.  */
  3445 #define FOO(x) 'x'
  3446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3448 int test (int i, double x);
  3449 struct s1 {int (*f) (int a);};
  3450 struct s2 {int (*f) (double a);};
  3451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3452 int argc;
  3453 char **argv;
  3454 int
  3455 main ()
  3457 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3459   return 0;
  3461 _ACEOF
  3462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3463 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3464 do
  3465   CC="$ac_save_CC $ac_arg"
  3466   rm -f conftest.$ac_objext
  3467 if { (ac_try="$ac_compile"
  3468 case "(($ac_try" in
  3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3470   *) ac_try_echo=$ac_try;;
  3471 esac
  3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3473   (eval "$ac_compile") 2>conftest.er1
  3474   ac_status=$?
  3475   grep -v '^ *+' conftest.er1 >conftest.err
  3476   rm -f conftest.er1
  3477   cat conftest.err >&5
  3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479   (exit $ac_status); } && {
  3480 	 test -z "$ac_c_werror_flag" ||
  3481 	 test ! -s conftest.err
  3482        } && test -s conftest.$ac_objext; then
  3483   ac_cv_prog_cc_c89=$ac_arg
  3484 else
  3485   echo "$as_me: failed program was:" >&5
  3486 sed 's/^/| /' conftest.$ac_ext >&5
  3489 fi
  3491 rm -f core conftest.err conftest.$ac_objext
  3492   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3493 done
  3494 rm -f conftest.$ac_ext
  3495 CC=$ac_save_CC
  3497 fi
  3498 # AC_CACHE_VAL
  3499 case "x$ac_cv_prog_cc_c89" in
  3500   x)
  3501     { echo "$as_me:$LINENO: result: none needed" >&5
  3502 echo "${ECHO_T}none needed" >&6; } ;;
  3503   xno)
  3504     { echo "$as_me:$LINENO: result: unsupported" >&5
  3505 echo "${ECHO_T}unsupported" >&6; } ;;
  3506   *)
  3507     CC="$CC $ac_cv_prog_cc_c89"
  3508     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3509 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3510 esac
  3513 ac_ext=c
  3514 ac_cpp='$CPP $CPPFLAGS'
  3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3519 depcc="$CC"   am_compiler_list=
  3521 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3523 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3524   echo $ECHO_N "(cached) $ECHO_C" >&6
  3525 else
  3526   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3527   # We make a subdir and do the tests there.  Otherwise we can end up
  3528   # making bogus files that we don't know about and never remove.  For
  3529   # instance it was reported that on HP-UX the gcc test will end up
  3530   # making a dummy file named `D' -- because `-MD' means `put the output
  3531   # in D'.
  3532   mkdir conftest.dir
  3533   # Copy depcomp to subdir because otherwise we won't find it if we're
  3534   # using a relative directory.
  3535   cp "$am_depcomp" conftest.dir
  3536   cd conftest.dir
  3537   # We will build objects and dependencies in a subdirectory because
  3538   # it helps to detect inapplicable dependency modes.  For instance
  3539   # both Tru64's cc and ICC support -MD to output dependencies as a
  3540   # side effect of compilation, but ICC will put the dependencies in
  3541   # the current directory while Tru64 will put them in the object
  3542   # directory.
  3543   mkdir sub
  3545   am_cv_CC_dependencies_compiler_type=none
  3546   if test "$am_compiler_list" = ""; then
  3547      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3548   fi
  3549   for depmode in $am_compiler_list; do
  3550     # Setup a source with many dependencies, because some compilers
  3551     # like to wrap large dependency lists on column 80 (with \), and
  3552     # we should not choose a depcomp mode which is confused by this.
  3554     # We need to recreate these files for each test, as the compiler may
  3555     # overwrite some of them when testing with obscure command lines.
  3556     # This happens at least with the AIX C compiler.
  3557     : > sub/conftest.c
  3558     for i in 1 2 3 4 5 6; do
  3559       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3560       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3561       # Solaris 8's {/usr,}/bin/sh.
  3562       touch sub/conftst$i.h
  3563     done
  3564     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3566     case $depmode in
  3567     nosideeffect)
  3568       # after this tag, mechanisms are not by side-effect, so they'll
  3569       # only be used when explicitly requested
  3570       if test "x$enable_dependency_tracking" = xyes; then
  3571 	continue
  3572       else
  3573 	break
  3574       fi
  3575       ;;
  3576     none) break ;;
  3577     esac
  3578     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3579     # mode.  It turns out that the SunPro C++ compiler does not properly
  3580     # handle `-M -o', and we need to detect this.
  3581     if depmode=$depmode \
  3582        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3583        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3584        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3585          >/dev/null 2>conftest.err &&
  3586        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3587        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3588        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3589       # icc doesn't choke on unknown options, it will just issue warnings
  3590       # or remarks (even with -Werror).  So we grep stderr for any message
  3591       # that says an option was ignored or not supported.
  3592       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3593       #   icc: Command line warning: ignoring option '-M'; no argument required
  3594       # The diagnosis changed in icc 8.0:
  3595       #   icc: Command line remark: option '-MP' not supported
  3596       if (grep 'ignoring option' conftest.err ||
  3597           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3598         am_cv_CC_dependencies_compiler_type=$depmode
  3599         break
  3600       fi
  3601     fi
  3602   done
  3604   cd ..
  3605   rm -rf conftest.dir
  3606 else
  3607   am_cv_CC_dependencies_compiler_type=none
  3608 fi
  3610 fi
  3611 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3612 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3613 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3617 if
  3618   test "x$enable_dependency_tracking" != xno \
  3619   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3620   am__fastdepCC_TRUE=
  3621   am__fastdepCC_FALSE='#'
  3622 else
  3623   am__fastdepCC_TRUE='#'
  3624   am__fastdepCC_FALSE=
  3625 fi
  3630         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3631 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3632 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3633   echo $ECHO_N "(cached) $ECHO_C" >&6
  3634 else
  3635   ac_check_lib_save_LIBS=$LIBS
  3636 LIBS="-lcposix  $LIBS"
  3637 cat >conftest.$ac_ext <<_ACEOF
  3638 /* confdefs.h.  */
  3639 _ACEOF
  3640 cat confdefs.h >>conftest.$ac_ext
  3641 cat >>conftest.$ac_ext <<_ACEOF
  3642 /* end confdefs.h.  */
  3644 /* Override any GCC internal prototype to avoid an error.
  3645    Use char because int might match the return type of a GCC
  3646    builtin and then its argument prototype would still apply.  */
  3647 #ifdef __cplusplus
  3648 extern "C"
  3649 #endif
  3650 char strerror ();
  3651 int
  3652 main ()
  3654 return strerror ();
  3656   return 0;
  3658 _ACEOF
  3659 rm -f conftest.$ac_objext conftest$ac_exeext
  3660 if { (ac_try="$ac_link"
  3661 case "(($ac_try" in
  3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663   *) ac_try_echo=$ac_try;;
  3664 esac
  3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3666   (eval "$ac_link") 2>conftest.er1
  3667   ac_status=$?
  3668   grep -v '^ *+' conftest.er1 >conftest.err
  3669   rm -f conftest.er1
  3670   cat conftest.err >&5
  3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3672   (exit $ac_status); } && {
  3673 	 test -z "$ac_c_werror_flag" ||
  3674 	 test ! -s conftest.err
  3675        } && test -s conftest$ac_exeext &&
  3676        $as_test_x conftest$ac_exeext; then
  3677   ac_cv_lib_cposix_strerror=yes
  3678 else
  3679   echo "$as_me: failed program was:" >&5
  3680 sed 's/^/| /' conftest.$ac_ext >&5
  3682 	ac_cv_lib_cposix_strerror=no
  3683 fi
  3685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3686       conftest$ac_exeext conftest.$ac_ext
  3687 LIBS=$ac_check_lib_save_LIBS
  3688 fi
  3689 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3690 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3691 if test $ac_cv_lib_cposix_strerror = yes; then
  3692   LIBS="$LIBS -lcposix"
  3693 fi
  3697 ac_ext=c
  3698 ac_cpp='$CPP $CPPFLAGS'
  3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3702 if test -n "$ac_tool_prefix"; then
  3703   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3707 if test "${ac_cv_prog_CC+set}" = set; then
  3708   echo $ECHO_N "(cached) $ECHO_C" >&6
  3709 else
  3710   if test -n "$CC"; then
  3711   ac_cv_prog_CC="$CC" # Let the user override the test.
  3712 else
  3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3714 for as_dir in $PATH
  3715 do
  3716   IFS=$as_save_IFS
  3717   test -z "$as_dir" && as_dir=.
  3718   for ac_exec_ext in '' $ac_executable_extensions; do
  3719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3720     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3722     break 2
  3723   fi
  3724 done
  3725 done
  3726 IFS=$as_save_IFS
  3728 fi
  3729 fi
  3730 CC=$ac_cv_prog_CC
  3731 if test -n "$CC"; then
  3732   { echo "$as_me:$LINENO: result: $CC" >&5
  3733 echo "${ECHO_T}$CC" >&6; }
  3734 else
  3735   { echo "$as_me:$LINENO: result: no" >&5
  3736 echo "${ECHO_T}no" >&6; }
  3737 fi
  3740 fi
  3741 if test -z "$ac_cv_prog_CC"; then
  3742   ac_ct_CC=$CC
  3743   # Extract the first word of "gcc", so it can be a program name with args.
  3744 set dummy gcc; ac_word=$2
  3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3748   echo $ECHO_N "(cached) $ECHO_C" >&6
  3749 else
  3750   if test -n "$ac_ct_CC"; then
  3751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3752 else
  3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754 for as_dir in $PATH
  3755 do
  3756   IFS=$as_save_IFS
  3757   test -z "$as_dir" && as_dir=.
  3758   for ac_exec_ext in '' $ac_executable_extensions; do
  3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760     ac_cv_prog_ac_ct_CC="gcc"
  3761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762     break 2
  3763   fi
  3764 done
  3765 done
  3766 IFS=$as_save_IFS
  3768 fi
  3769 fi
  3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3771 if test -n "$ac_ct_CC"; then
  3772   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3773 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3774 else
  3775   { echo "$as_me:$LINENO: result: no" >&5
  3776 echo "${ECHO_T}no" >&6; }
  3777 fi
  3779   if test "x$ac_ct_CC" = x; then
  3780     CC=""
  3781   else
  3782     case $cross_compiling:$ac_tool_warned in
  3783 yes:)
  3784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3785 whose name does not start with the host triplet.  If you think this
  3786 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3788 whose name does not start with the host triplet.  If you think this
  3789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3790 ac_tool_warned=yes ;;
  3791 esac
  3792     CC=$ac_ct_CC
  3793   fi
  3794 else
  3795   CC="$ac_cv_prog_CC"
  3796 fi
  3798 if test -z "$CC"; then
  3799           if test -n "$ac_tool_prefix"; then
  3800     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3804 if test "${ac_cv_prog_CC+set}" = set; then
  3805   echo $ECHO_N "(cached) $ECHO_C" >&6
  3806 else
  3807   if test -n "$CC"; then
  3808   ac_cv_prog_CC="$CC" # Let the user override the test.
  3809 else
  3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3811 for as_dir in $PATH
  3812 do
  3813   IFS=$as_save_IFS
  3814   test -z "$as_dir" && as_dir=.
  3815   for ac_exec_ext in '' $ac_executable_extensions; do
  3816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3817     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819     break 2
  3820   fi
  3821 done
  3822 done
  3823 IFS=$as_save_IFS
  3825 fi
  3826 fi
  3827 CC=$ac_cv_prog_CC
  3828 if test -n "$CC"; then
  3829   { echo "$as_me:$LINENO: result: $CC" >&5
  3830 echo "${ECHO_T}$CC" >&6; }
  3831 else
  3832   { echo "$as_me:$LINENO: result: no" >&5
  3833 echo "${ECHO_T}no" >&6; }
  3834 fi
  3837   fi
  3838 fi
  3839 if test -z "$CC"; then
  3840   # Extract the first word of "cc", so it can be a program name with args.
  3841 set dummy cc; ac_word=$2
  3842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3844 if test "${ac_cv_prog_CC+set}" = set; then
  3845   echo $ECHO_N "(cached) $ECHO_C" >&6
  3846 else
  3847   if test -n "$CC"; then
  3848   ac_cv_prog_CC="$CC" # Let the user override the test.
  3849 else
  3850   ac_prog_rejected=no
  3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3852 for as_dir in $PATH
  3853 do
  3854   IFS=$as_save_IFS
  3855   test -z "$as_dir" && as_dir=.
  3856   for ac_exec_ext in '' $ac_executable_extensions; do
  3857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3858     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3859        ac_prog_rejected=yes
  3860        continue
  3861      fi
  3862     ac_cv_prog_CC="cc"
  3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3864     break 2
  3865   fi
  3866 done
  3867 done
  3868 IFS=$as_save_IFS
  3870 if test $ac_prog_rejected = yes; then
  3871   # We found a bogon in the path, so make sure we never use it.
  3872   set dummy $ac_cv_prog_CC
  3873   shift
  3874   if test $# != 0; then
  3875     # We chose a different compiler from the bogus one.
  3876     # However, it has the same basename, so the bogon will be chosen
  3877     # first if we set CC to just the basename; use the full file name.
  3878     shift
  3879     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3880   fi
  3881 fi
  3882 fi
  3883 fi
  3884 CC=$ac_cv_prog_CC
  3885 if test -n "$CC"; then
  3886   { echo "$as_me:$LINENO: result: $CC" >&5
  3887 echo "${ECHO_T}$CC" >&6; }
  3888 else
  3889   { echo "$as_me:$LINENO: result: no" >&5
  3890 echo "${ECHO_T}no" >&6; }
  3891 fi
  3894 fi
  3895 if test -z "$CC"; then
  3896   if test -n "$ac_tool_prefix"; then
  3897   for ac_prog in cl.exe
  3898   do
  3899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3903 if test "${ac_cv_prog_CC+set}" = set; then
  3904   echo $ECHO_N "(cached) $ECHO_C" >&6
  3905 else
  3906   if test -n "$CC"; then
  3907   ac_cv_prog_CC="$CC" # Let the user override the test.
  3908 else
  3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3910 for as_dir in $PATH
  3911 do
  3912   IFS=$as_save_IFS
  3913   test -z "$as_dir" && as_dir=.
  3914   for ac_exec_ext in '' $ac_executable_extensions; do
  3915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3916     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3918     break 2
  3919   fi
  3920 done
  3921 done
  3922 IFS=$as_save_IFS
  3924 fi
  3925 fi
  3926 CC=$ac_cv_prog_CC
  3927 if test -n "$CC"; then
  3928   { echo "$as_me:$LINENO: result: $CC" >&5
  3929 echo "${ECHO_T}$CC" >&6; }
  3930 else
  3931   { echo "$as_me:$LINENO: result: no" >&5
  3932 echo "${ECHO_T}no" >&6; }
  3933 fi
  3936     test -n "$CC" && break
  3937   done
  3938 fi
  3939 if test -z "$CC"; then
  3940   ac_ct_CC=$CC
  3941   for ac_prog in cl.exe
  3942 do
  3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3944 set dummy $ac_prog; ac_word=$2
  3945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3948   echo $ECHO_N "(cached) $ECHO_C" >&6
  3949 else
  3950   if test -n "$ac_ct_CC"; then
  3951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3952 else
  3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3954 for as_dir in $PATH
  3955 do
  3956   IFS=$as_save_IFS
  3957   test -z "$as_dir" && as_dir=.
  3958   for ac_exec_ext in '' $ac_executable_extensions; do
  3959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3960     ac_cv_prog_ac_ct_CC="$ac_prog"
  3961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3962     break 2
  3963   fi
  3964 done
  3965 done
  3966 IFS=$as_save_IFS
  3968 fi
  3969 fi
  3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3971 if test -n "$ac_ct_CC"; then
  3972   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3973 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3974 else
  3975   { echo "$as_me:$LINENO: result: no" >&5
  3976 echo "${ECHO_T}no" >&6; }
  3977 fi
  3980   test -n "$ac_ct_CC" && break
  3981 done
  3983   if test "x$ac_ct_CC" = x; then
  3984     CC=""
  3985   else
  3986     case $cross_compiling:$ac_tool_warned in
  3987 yes:)
  3988 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3989 whose name does not start with the host triplet.  If you think this
  3990 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3991 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3992 whose name does not start with the host triplet.  If you think this
  3993 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3994 ac_tool_warned=yes ;;
  3995 esac
  3996     CC=$ac_ct_CC
  3997   fi
  3998 fi
  4000 fi
  4003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4004 See \`config.log' for more details." >&5
  4005 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4006 See \`config.log' for more details." >&2;}
  4007    { (exit 1); exit 1; }; }
  4009 # Provide some information about the compiler.
  4010 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4011 ac_compiler=`set X $ac_compile; echo $2`
  4012 { (ac_try="$ac_compiler --version >&5"
  4013 case "(($ac_try" in
  4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4015   *) ac_try_echo=$ac_try;;
  4016 esac
  4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4018   (eval "$ac_compiler --version >&5") 2>&5
  4019   ac_status=$?
  4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021   (exit $ac_status); }
  4022 { (ac_try="$ac_compiler -v >&5"
  4023 case "(($ac_try" in
  4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4025   *) ac_try_echo=$ac_try;;
  4026 esac
  4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4028   (eval "$ac_compiler -v >&5") 2>&5
  4029   ac_status=$?
  4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031   (exit $ac_status); }
  4032 { (ac_try="$ac_compiler -V >&5"
  4033 case "(($ac_try" in
  4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4035   *) ac_try_echo=$ac_try;;
  4036 esac
  4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4038   (eval "$ac_compiler -V >&5") 2>&5
  4039   ac_status=$?
  4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4041   (exit $ac_status); }
  4043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4046   echo $ECHO_N "(cached) $ECHO_C" >&6
  4047 else
  4048   cat >conftest.$ac_ext <<_ACEOF
  4049 /* confdefs.h.  */
  4050 _ACEOF
  4051 cat confdefs.h >>conftest.$ac_ext
  4052 cat >>conftest.$ac_ext <<_ACEOF
  4053 /* end confdefs.h.  */
  4055 int
  4056 main ()
  4058 #ifndef __GNUC__
  4059        choke me
  4060 #endif
  4063   return 0;
  4065 _ACEOF
  4066 rm -f conftest.$ac_objext
  4067 if { (ac_try="$ac_compile"
  4068 case "(($ac_try" in
  4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4070   *) ac_try_echo=$ac_try;;
  4071 esac
  4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4073   (eval "$ac_compile") 2>conftest.er1
  4074   ac_status=$?
  4075   grep -v '^ *+' conftest.er1 >conftest.err
  4076   rm -f conftest.er1
  4077   cat conftest.err >&5
  4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079   (exit $ac_status); } && {
  4080 	 test -z "$ac_c_werror_flag" ||
  4081 	 test ! -s conftest.err
  4082        } && test -s conftest.$ac_objext; then
  4083   ac_compiler_gnu=yes
  4084 else
  4085   echo "$as_me: failed program was:" >&5
  4086 sed 's/^/| /' conftest.$ac_ext >&5
  4088 	ac_compiler_gnu=no
  4089 fi
  4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4094 fi
  4095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4097 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4098 ac_test_CFLAGS=${CFLAGS+set}
  4099 ac_save_CFLAGS=$CFLAGS
  4100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4102 if test "${ac_cv_prog_cc_g+set}" = set; then
  4103   echo $ECHO_N "(cached) $ECHO_C" >&6
  4104 else
  4105   ac_save_c_werror_flag=$ac_c_werror_flag
  4106    ac_c_werror_flag=yes
  4107    ac_cv_prog_cc_g=no
  4108    CFLAGS="-g"
  4109    cat >conftest.$ac_ext <<_ACEOF
  4110 /* confdefs.h.  */
  4111 _ACEOF
  4112 cat confdefs.h >>conftest.$ac_ext
  4113 cat >>conftest.$ac_ext <<_ACEOF
  4114 /* end confdefs.h.  */
  4116 int
  4117 main ()
  4121   return 0;
  4123 _ACEOF
  4124 rm -f conftest.$ac_objext
  4125 if { (ac_try="$ac_compile"
  4126 case "(($ac_try" in
  4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4128   *) ac_try_echo=$ac_try;;
  4129 esac
  4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4131   (eval "$ac_compile") 2>conftest.er1
  4132   ac_status=$?
  4133   grep -v '^ *+' conftest.er1 >conftest.err
  4134   rm -f conftest.er1
  4135   cat conftest.err >&5
  4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137   (exit $ac_status); } && {
  4138 	 test -z "$ac_c_werror_flag" ||
  4139 	 test ! -s conftest.err
  4140        } && test -s conftest.$ac_objext; then
  4141   ac_cv_prog_cc_g=yes
  4142 else
  4143   echo "$as_me: failed program was:" >&5
  4144 sed 's/^/| /' conftest.$ac_ext >&5
  4146 	CFLAGS=""
  4147       cat >conftest.$ac_ext <<_ACEOF
  4148 /* confdefs.h.  */
  4149 _ACEOF
  4150 cat confdefs.h >>conftest.$ac_ext
  4151 cat >>conftest.$ac_ext <<_ACEOF
  4152 /* end confdefs.h.  */
  4154 int
  4155 main ()
  4159   return 0;
  4161 _ACEOF
  4162 rm -f conftest.$ac_objext
  4163 if { (ac_try="$ac_compile"
  4164 case "(($ac_try" in
  4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4166   *) ac_try_echo=$ac_try;;
  4167 esac
  4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4169   (eval "$ac_compile") 2>conftest.er1
  4170   ac_status=$?
  4171   grep -v '^ *+' conftest.er1 >conftest.err
  4172   rm -f conftest.er1
  4173   cat conftest.err >&5
  4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4175   (exit $ac_status); } && {
  4176 	 test -z "$ac_c_werror_flag" ||
  4177 	 test ! -s conftest.err
  4178        } && test -s conftest.$ac_objext; then
  4180 else
  4181   echo "$as_me: failed program was:" >&5
  4182 sed 's/^/| /' conftest.$ac_ext >&5
  4184 	ac_c_werror_flag=$ac_save_c_werror_flag
  4185 	 CFLAGS="-g"
  4186 	 cat >conftest.$ac_ext <<_ACEOF
  4187 /* confdefs.h.  */
  4188 _ACEOF
  4189 cat confdefs.h >>conftest.$ac_ext
  4190 cat >>conftest.$ac_ext <<_ACEOF
  4191 /* end confdefs.h.  */
  4193 int
  4194 main ()
  4198   return 0;
  4200 _ACEOF
  4201 rm -f conftest.$ac_objext
  4202 if { (ac_try="$ac_compile"
  4203 case "(($ac_try" in
  4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4205   *) ac_try_echo=$ac_try;;
  4206 esac
  4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4208   (eval "$ac_compile") 2>conftest.er1
  4209   ac_status=$?
  4210   grep -v '^ *+' conftest.er1 >conftest.err
  4211   rm -f conftest.er1
  4212   cat conftest.err >&5
  4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214   (exit $ac_status); } && {
  4215 	 test -z "$ac_c_werror_flag" ||
  4216 	 test ! -s conftest.err
  4217        } && test -s conftest.$ac_objext; then
  4218   ac_cv_prog_cc_g=yes
  4219 else
  4220   echo "$as_me: failed program was:" >&5
  4221 sed 's/^/| /' conftest.$ac_ext >&5
  4224 fi
  4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227 fi
  4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4230 fi
  4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4233    ac_c_werror_flag=$ac_save_c_werror_flag
  4234 fi
  4235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4237 if test "$ac_test_CFLAGS" = set; then
  4238   CFLAGS=$ac_save_CFLAGS
  4239 elif test $ac_cv_prog_cc_g = yes; then
  4240   if test "$GCC" = yes; then
  4241     CFLAGS="-g -O2"
  4242   else
  4243     CFLAGS="-g"
  4244   fi
  4245 else
  4246   if test "$GCC" = yes; then
  4247     CFLAGS="-O2"
  4248   else
  4249     CFLAGS=
  4250   fi
  4251 fi
  4252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4254 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4255   echo $ECHO_N "(cached) $ECHO_C" >&6
  4256 else
  4257   ac_cv_prog_cc_c89=no
  4258 ac_save_CC=$CC
  4259 cat >conftest.$ac_ext <<_ACEOF
  4260 /* confdefs.h.  */
  4261 _ACEOF
  4262 cat confdefs.h >>conftest.$ac_ext
  4263 cat >>conftest.$ac_ext <<_ACEOF
  4264 /* end confdefs.h.  */
  4265 #include <stdarg.h>
  4266 #include <stdio.h>
  4267 #include <sys/types.h>
  4268 #include <sys/stat.h>
  4269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4270 struct buf { int x; };
  4271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4272 static char *e (p, i)
  4273      char **p;
  4274      int i;
  4276   return p[i];
  4278 static char *f (char * (*g) (char **, int), char **p, ...)
  4280   char *s;
  4281   va_list v;
  4282   va_start (v,p);
  4283   s = g (p, va_arg (v,int));
  4284   va_end (v);
  4285   return s;
  4288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4289    function prototypes and stuff, but not '\xHH' hex character constants.
  4290    These don't provoke an error unfortunately, instead are silently treated
  4291    as 'x'.  The following induces an error, until -std is added to get
  4292    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4293    array size at least.  It's necessary to write '\x00'==0 to get something
  4294    that's true only with -std.  */
  4295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4298    inside strings and character constants.  */
  4299 #define FOO(x) 'x'
  4300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4302 int test (int i, double x);
  4303 struct s1 {int (*f) (int a);};
  4304 struct s2 {int (*f) (double a);};
  4305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4306 int argc;
  4307 char **argv;
  4308 int
  4309 main ()
  4311 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4313   return 0;
  4315 _ACEOF
  4316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4317 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4318 do
  4319   CC="$ac_save_CC $ac_arg"
  4320   rm -f conftest.$ac_objext
  4321 if { (ac_try="$ac_compile"
  4322 case "(($ac_try" in
  4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4324   *) ac_try_echo=$ac_try;;
  4325 esac
  4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4327   (eval "$ac_compile") 2>conftest.er1
  4328   ac_status=$?
  4329   grep -v '^ *+' conftest.er1 >conftest.err
  4330   rm -f conftest.er1
  4331   cat conftest.err >&5
  4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333   (exit $ac_status); } && {
  4334 	 test -z "$ac_c_werror_flag" ||
  4335 	 test ! -s conftest.err
  4336        } && test -s conftest.$ac_objext; then
  4337   ac_cv_prog_cc_c89=$ac_arg
  4338 else
  4339   echo "$as_me: failed program was:" >&5
  4340 sed 's/^/| /' conftest.$ac_ext >&5
  4343 fi
  4345 rm -f core conftest.err conftest.$ac_objext
  4346   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4347 done
  4348 rm -f conftest.$ac_ext
  4349 CC=$ac_save_CC
  4351 fi
  4352 # AC_CACHE_VAL
  4353 case "x$ac_cv_prog_cc_c89" in
  4354   x)
  4355     { echo "$as_me:$LINENO: result: none needed" >&5
  4356 echo "${ECHO_T}none needed" >&6; } ;;
  4357   xno)
  4358     { echo "$as_me:$LINENO: result: unsupported" >&5
  4359 echo "${ECHO_T}unsupported" >&6; } ;;
  4360   *)
  4361     CC="$CC $ac_cv_prog_cc_c89"
  4362     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4364 esac
  4367 ac_ext=c
  4368 ac_cpp='$CPP $CPPFLAGS'
  4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4373 depcc="$CC"   am_compiler_list=
  4375 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4378   echo $ECHO_N "(cached) $ECHO_C" >&6
  4379 else
  4380   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4381   # We make a subdir and do the tests there.  Otherwise we can end up
  4382   # making bogus files that we don't know about and never remove.  For
  4383   # instance it was reported that on HP-UX the gcc test will end up
  4384   # making a dummy file named `D' -- because `-MD' means `put the output
  4385   # in D'.
  4386   mkdir conftest.dir
  4387   # Copy depcomp to subdir because otherwise we won't find it if we're
  4388   # using a relative directory.
  4389   cp "$am_depcomp" conftest.dir
  4390   cd conftest.dir
  4391   # We will build objects and dependencies in a subdirectory because
  4392   # it helps to detect inapplicable dependency modes.  For instance
  4393   # both Tru64's cc and ICC support -MD to output dependencies as a
  4394   # side effect of compilation, but ICC will put the dependencies in
  4395   # the current directory while Tru64 will put them in the object
  4396   # directory.
  4397   mkdir sub
  4399   am_cv_CC_dependencies_compiler_type=none
  4400   if test "$am_compiler_list" = ""; then
  4401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4402   fi
  4403   for depmode in $am_compiler_list; do
  4404     # Setup a source with many dependencies, because some compilers
  4405     # like to wrap large dependency lists on column 80 (with \), and
  4406     # we should not choose a depcomp mode which is confused by this.
  4408     # We need to recreate these files for each test, as the compiler may
  4409     # overwrite some of them when testing with obscure command lines.
  4410     # This happens at least with the AIX C compiler.
  4411     : > sub/conftest.c
  4412     for i in 1 2 3 4 5 6; do
  4413       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4414       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4415       # Solaris 8's {/usr,}/bin/sh.
  4416       touch sub/conftst$i.h
  4417     done
  4418     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4420     case $depmode in
  4421     nosideeffect)
  4422       # after this tag, mechanisms are not by side-effect, so they'll
  4423       # only be used when explicitly requested
  4424       if test "x$enable_dependency_tracking" = xyes; then
  4425 	continue
  4426       else
  4427 	break
  4428       fi
  4429       ;;
  4430     none) break ;;
  4431     esac
  4432     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4433     # mode.  It turns out that the SunPro C++ compiler does not properly
  4434     # handle `-M -o', and we need to detect this.
  4435     if depmode=$depmode \
  4436        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4437        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4438        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4439          >/dev/null 2>conftest.err &&
  4440        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4441        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4442        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4443       # icc doesn't choke on unknown options, it will just issue warnings
  4444       # or remarks (even with -Werror).  So we grep stderr for any message
  4445       # that says an option was ignored or not supported.
  4446       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4447       #   icc: Command line warning: ignoring option '-M'; no argument required
  4448       # The diagnosis changed in icc 8.0:
  4449       #   icc: Command line remark: option '-MP' not supported
  4450       if (grep 'ignoring option' conftest.err ||
  4451           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4452         am_cv_CC_dependencies_compiler_type=$depmode
  4453         break
  4454       fi
  4455     fi
  4456   done
  4458   cd ..
  4459   rm -rf conftest.dir
  4460 else
  4461   am_cv_CC_dependencies_compiler_type=none
  4462 fi
  4464 fi
  4465 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4466 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4471 if
  4472   test "x$enable_dependency_tracking" != xno \
  4473   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4474   am__fastdepCC_TRUE=
  4475   am__fastdepCC_FALSE='#'
  4476 else
  4477   am__fastdepCC_TRUE='#'
  4478   am__fastdepCC_FALSE=
  4479 fi
  4482 ac_ext=c
  4483 ac_cpp='$CPP $CPPFLAGS'
  4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4487 if test -n "$ac_tool_prefix"; then
  4488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4492 if test "${ac_cv_prog_CC+set}" = set; then
  4493   echo $ECHO_N "(cached) $ECHO_C" >&6
  4494 else
  4495   if test -n "$CC"; then
  4496   ac_cv_prog_CC="$CC" # Let the user override the test.
  4497 else
  4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499 for as_dir in $PATH
  4500 do
  4501   IFS=$as_save_IFS
  4502   test -z "$as_dir" && as_dir=.
  4503   for ac_exec_ext in '' $ac_executable_extensions; do
  4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4507     break 2
  4508   fi
  4509 done
  4510 done
  4511 IFS=$as_save_IFS
  4513 fi
  4514 fi
  4515 CC=$ac_cv_prog_CC
  4516 if test -n "$CC"; then
  4517   { echo "$as_me:$LINENO: result: $CC" >&5
  4518 echo "${ECHO_T}$CC" >&6; }
  4519 else
  4520   { echo "$as_me:$LINENO: result: no" >&5
  4521 echo "${ECHO_T}no" >&6; }
  4522 fi
  4525 fi
  4526 if test -z "$ac_cv_prog_CC"; then
  4527   ac_ct_CC=$CC
  4528   # Extract the first word of "gcc", so it can be a program name with args.
  4529 set dummy gcc; ac_word=$2
  4530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4533   echo $ECHO_N "(cached) $ECHO_C" >&6
  4534 else
  4535   if test -n "$ac_ct_CC"; then
  4536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4537 else
  4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539 for as_dir in $PATH
  4540 do
  4541   IFS=$as_save_IFS
  4542   test -z "$as_dir" && as_dir=.
  4543   for ac_exec_ext in '' $ac_executable_extensions; do
  4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4545     ac_cv_prog_ac_ct_CC="gcc"
  4546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547     break 2
  4548   fi
  4549 done
  4550 done
  4551 IFS=$as_save_IFS
  4553 fi
  4554 fi
  4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4556 if test -n "$ac_ct_CC"; then
  4557   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4558 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4559 else
  4560   { echo "$as_me:$LINENO: result: no" >&5
  4561 echo "${ECHO_T}no" >&6; }
  4562 fi
  4564   if test "x$ac_ct_CC" = x; then
  4565     CC=""
  4566   else
  4567     case $cross_compiling:$ac_tool_warned in
  4568 yes:)
  4569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4570 whose name does not start with the host triplet.  If you think this
  4571 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4573 whose name does not start with the host triplet.  If you think this
  4574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4575 ac_tool_warned=yes ;;
  4576 esac
  4577     CC=$ac_ct_CC
  4578   fi
  4579 else
  4580   CC="$ac_cv_prog_CC"
  4581 fi
  4583 if test -z "$CC"; then
  4584           if test -n "$ac_tool_prefix"; then
  4585     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4586 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4589 if test "${ac_cv_prog_CC+set}" = set; then
  4590   echo $ECHO_N "(cached) $ECHO_C" >&6
  4591 else
  4592   if test -n "$CC"; then
  4593   ac_cv_prog_CC="$CC" # Let the user override the test.
  4594 else
  4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4596 for as_dir in $PATH
  4597 do
  4598   IFS=$as_save_IFS
  4599   test -z "$as_dir" && as_dir=.
  4600   for ac_exec_ext in '' $ac_executable_extensions; do
  4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4602     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4604     break 2
  4605   fi
  4606 done
  4607 done
  4608 IFS=$as_save_IFS
  4610 fi
  4611 fi
  4612 CC=$ac_cv_prog_CC
  4613 if test -n "$CC"; then
  4614   { echo "$as_me:$LINENO: result: $CC" >&5
  4615 echo "${ECHO_T}$CC" >&6; }
  4616 else
  4617   { echo "$as_me:$LINENO: result: no" >&5
  4618 echo "${ECHO_T}no" >&6; }
  4619 fi
  4622   fi
  4623 fi
  4624 if test -z "$CC"; then
  4625   # Extract the first word of "cc", so it can be a program name with args.
  4626 set dummy cc; ac_word=$2
  4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4629 if test "${ac_cv_prog_CC+set}" = set; then
  4630   echo $ECHO_N "(cached) $ECHO_C" >&6
  4631 else
  4632   if test -n "$CC"; then
  4633   ac_cv_prog_CC="$CC" # Let the user override the test.
  4634 else
  4635   ac_prog_rejected=no
  4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637 for as_dir in $PATH
  4638 do
  4639   IFS=$as_save_IFS
  4640   test -z "$as_dir" && as_dir=.
  4641   for ac_exec_ext in '' $ac_executable_extensions; do
  4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4643     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4644        ac_prog_rejected=yes
  4645        continue
  4646      fi
  4647     ac_cv_prog_CC="cc"
  4648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4649     break 2
  4650   fi
  4651 done
  4652 done
  4653 IFS=$as_save_IFS
  4655 if test $ac_prog_rejected = yes; then
  4656   # We found a bogon in the path, so make sure we never use it.
  4657   set dummy $ac_cv_prog_CC
  4658   shift
  4659   if test $# != 0; then
  4660     # We chose a different compiler from the bogus one.
  4661     # However, it has the same basename, so the bogon will be chosen
  4662     # first if we set CC to just the basename; use the full file name.
  4663     shift
  4664     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4665   fi
  4666 fi
  4667 fi
  4668 fi
  4669 CC=$ac_cv_prog_CC
  4670 if test -n "$CC"; then
  4671   { echo "$as_me:$LINENO: result: $CC" >&5
  4672 echo "${ECHO_T}$CC" >&6; }
  4673 else
  4674   { echo "$as_me:$LINENO: result: no" >&5
  4675 echo "${ECHO_T}no" >&6; }
  4676 fi
  4679 fi
  4680 if test -z "$CC"; then
  4681   if test -n "$ac_tool_prefix"; then
  4682   for ac_prog in cl.exe
  4683   do
  4684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4688 if test "${ac_cv_prog_CC+set}" = set; then
  4689   echo $ECHO_N "(cached) $ECHO_C" >&6
  4690 else
  4691   if test -n "$CC"; then
  4692   ac_cv_prog_CC="$CC" # Let the user override the test.
  4693 else
  4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695 for as_dir in $PATH
  4696 do
  4697   IFS=$as_save_IFS
  4698   test -z "$as_dir" && as_dir=.
  4699   for ac_exec_ext in '' $ac_executable_extensions; do
  4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703     break 2
  4704   fi
  4705 done
  4706 done
  4707 IFS=$as_save_IFS
  4709 fi
  4710 fi
  4711 CC=$ac_cv_prog_CC
  4712 if test -n "$CC"; then
  4713   { echo "$as_me:$LINENO: result: $CC" >&5
  4714 echo "${ECHO_T}$CC" >&6; }
  4715 else
  4716   { echo "$as_me:$LINENO: result: no" >&5
  4717 echo "${ECHO_T}no" >&6; }
  4718 fi
  4721     test -n "$CC" && break
  4722   done
  4723 fi
  4724 if test -z "$CC"; then
  4725   ac_ct_CC=$CC
  4726   for ac_prog in cl.exe
  4727 do
  4728   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4729 set dummy $ac_prog; ac_word=$2
  4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4733   echo $ECHO_N "(cached) $ECHO_C" >&6
  4734 else
  4735   if test -n "$ac_ct_CC"; then
  4736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4737 else
  4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739 for as_dir in $PATH
  4740 do
  4741   IFS=$as_save_IFS
  4742   test -z "$as_dir" && as_dir=.
  4743   for ac_exec_ext in '' $ac_executable_extensions; do
  4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4745     ac_cv_prog_ac_ct_CC="$ac_prog"
  4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747     break 2
  4748   fi
  4749 done
  4750 done
  4751 IFS=$as_save_IFS
  4753 fi
  4754 fi
  4755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4756 if test -n "$ac_ct_CC"; then
  4757   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4758 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4759 else
  4760   { echo "$as_me:$LINENO: result: no" >&5
  4761 echo "${ECHO_T}no" >&6; }
  4762 fi
  4765   test -n "$ac_ct_CC" && break
  4766 done
  4768   if test "x$ac_ct_CC" = x; then
  4769     CC=""
  4770   else
  4771     case $cross_compiling:$ac_tool_warned in
  4772 yes:)
  4773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4774 whose name does not start with the host triplet.  If you think this
  4775 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4777 whose name does not start with the host triplet.  If you think this
  4778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4779 ac_tool_warned=yes ;;
  4780 esac
  4781     CC=$ac_ct_CC
  4782   fi
  4783 fi
  4785 fi
  4788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4789 See \`config.log' for more details." >&5
  4790 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4791 See \`config.log' for more details." >&2;}
  4792    { (exit 1); exit 1; }; }
  4794 # Provide some information about the compiler.
  4795 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4796 ac_compiler=`set X $ac_compile; echo $2`
  4797 { (ac_try="$ac_compiler --version >&5"
  4798 case "(($ac_try" in
  4799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4800   *) ac_try_echo=$ac_try;;
  4801 esac
  4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4803   (eval "$ac_compiler --version >&5") 2>&5
  4804   ac_status=$?
  4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806   (exit $ac_status); }
  4807 { (ac_try="$ac_compiler -v >&5"
  4808 case "(($ac_try" in
  4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810   *) ac_try_echo=$ac_try;;
  4811 esac
  4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4813   (eval "$ac_compiler -v >&5") 2>&5
  4814   ac_status=$?
  4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816   (exit $ac_status); }
  4817 { (ac_try="$ac_compiler -V >&5"
  4818 case "(($ac_try" in
  4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4820   *) ac_try_echo=$ac_try;;
  4821 esac
  4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4823   (eval "$ac_compiler -V >&5") 2>&5
  4824   ac_status=$?
  4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826   (exit $ac_status); }
  4828 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4831   echo $ECHO_N "(cached) $ECHO_C" >&6
  4832 else
  4833   cat >conftest.$ac_ext <<_ACEOF
  4834 /* confdefs.h.  */
  4835 _ACEOF
  4836 cat confdefs.h >>conftest.$ac_ext
  4837 cat >>conftest.$ac_ext <<_ACEOF
  4838 /* end confdefs.h.  */
  4840 int
  4841 main ()
  4843 #ifndef __GNUC__
  4844        choke me
  4845 #endif
  4848   return 0;
  4850 _ACEOF
  4851 rm -f conftest.$ac_objext
  4852 if { (ac_try="$ac_compile"
  4853 case "(($ac_try" in
  4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4855   *) ac_try_echo=$ac_try;;
  4856 esac
  4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4858   (eval "$ac_compile") 2>conftest.er1
  4859   ac_status=$?
  4860   grep -v '^ *+' conftest.er1 >conftest.err
  4861   rm -f conftest.er1
  4862   cat conftest.err >&5
  4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4864   (exit $ac_status); } && {
  4865 	 test -z "$ac_c_werror_flag" ||
  4866 	 test ! -s conftest.err
  4867        } && test -s conftest.$ac_objext; then
  4868   ac_compiler_gnu=yes
  4869 else
  4870   echo "$as_me: failed program was:" >&5
  4871 sed 's/^/| /' conftest.$ac_ext >&5
  4873 	ac_compiler_gnu=no
  4874 fi
  4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4879 fi
  4880 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4882 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4883 ac_test_CFLAGS=${CFLAGS+set}
  4884 ac_save_CFLAGS=$CFLAGS
  4885 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4887 if test "${ac_cv_prog_cc_g+set}" = set; then
  4888   echo $ECHO_N "(cached) $ECHO_C" >&6
  4889 else
  4890   ac_save_c_werror_flag=$ac_c_werror_flag
  4891    ac_c_werror_flag=yes
  4892    ac_cv_prog_cc_g=no
  4893    CFLAGS="-g"
  4894    cat >conftest.$ac_ext <<_ACEOF
  4895 /* confdefs.h.  */
  4896 _ACEOF
  4897 cat confdefs.h >>conftest.$ac_ext
  4898 cat >>conftest.$ac_ext <<_ACEOF
  4899 /* end confdefs.h.  */
  4901 int
  4902 main ()
  4906   return 0;
  4908 _ACEOF
  4909 rm -f conftest.$ac_objext
  4910 if { (ac_try="$ac_compile"
  4911 case "(($ac_try" in
  4912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4913   *) ac_try_echo=$ac_try;;
  4914 esac
  4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4916   (eval "$ac_compile") 2>conftest.er1
  4917   ac_status=$?
  4918   grep -v '^ *+' conftest.er1 >conftest.err
  4919   rm -f conftest.er1
  4920   cat conftest.err >&5
  4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4922   (exit $ac_status); } && {
  4923 	 test -z "$ac_c_werror_flag" ||
  4924 	 test ! -s conftest.err
  4925        } && test -s conftest.$ac_objext; then
  4926   ac_cv_prog_cc_g=yes
  4927 else
  4928   echo "$as_me: failed program was:" >&5
  4929 sed 's/^/| /' conftest.$ac_ext >&5
  4931 	CFLAGS=""
  4932       cat >conftest.$ac_ext <<_ACEOF
  4933 /* confdefs.h.  */
  4934 _ACEOF
  4935 cat confdefs.h >>conftest.$ac_ext
  4936 cat >>conftest.$ac_ext <<_ACEOF
  4937 /* end confdefs.h.  */
  4939 int
  4940 main ()
  4944   return 0;
  4946 _ACEOF
  4947 rm -f conftest.$ac_objext
  4948 if { (ac_try="$ac_compile"
  4949 case "(($ac_try" in
  4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4951   *) ac_try_echo=$ac_try;;
  4952 esac
  4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4954   (eval "$ac_compile") 2>conftest.er1
  4955   ac_status=$?
  4956   grep -v '^ *+' conftest.er1 >conftest.err
  4957   rm -f conftest.er1
  4958   cat conftest.err >&5
  4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960   (exit $ac_status); } && {
  4961 	 test -z "$ac_c_werror_flag" ||
  4962 	 test ! -s conftest.err
  4963        } && test -s conftest.$ac_objext; then
  4965 else
  4966   echo "$as_me: failed program was:" >&5
  4967 sed 's/^/| /' conftest.$ac_ext >&5
  4969 	ac_c_werror_flag=$ac_save_c_werror_flag
  4970 	 CFLAGS="-g"
  4971 	 cat >conftest.$ac_ext <<_ACEOF
  4972 /* confdefs.h.  */
  4973 _ACEOF
  4974 cat confdefs.h >>conftest.$ac_ext
  4975 cat >>conftest.$ac_ext <<_ACEOF
  4976 /* end confdefs.h.  */
  4978 int
  4979 main ()
  4983   return 0;
  4985 _ACEOF
  4986 rm -f conftest.$ac_objext
  4987 if { (ac_try="$ac_compile"
  4988 case "(($ac_try" in
  4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4990   *) ac_try_echo=$ac_try;;
  4991 esac
  4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4993   (eval "$ac_compile") 2>conftest.er1
  4994   ac_status=$?
  4995   grep -v '^ *+' conftest.er1 >conftest.err
  4996   rm -f conftest.er1
  4997   cat conftest.err >&5
  4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999   (exit $ac_status); } && {
  5000 	 test -z "$ac_c_werror_flag" ||
  5001 	 test ! -s conftest.err
  5002        } && test -s conftest.$ac_objext; then
  5003   ac_cv_prog_cc_g=yes
  5004 else
  5005   echo "$as_me: failed program was:" >&5
  5006 sed 's/^/| /' conftest.$ac_ext >&5
  5009 fi
  5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5012 fi
  5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5015 fi
  5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018    ac_c_werror_flag=$ac_save_c_werror_flag
  5019 fi
  5020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5022 if test "$ac_test_CFLAGS" = set; then
  5023   CFLAGS=$ac_save_CFLAGS
  5024 elif test $ac_cv_prog_cc_g = yes; then
  5025   if test "$GCC" = yes; then
  5026     CFLAGS="-g -O2"
  5027   else
  5028     CFLAGS="-g"
  5029   fi
  5030 else
  5031   if test "$GCC" = yes; then
  5032     CFLAGS="-O2"
  5033   else
  5034     CFLAGS=
  5035   fi
  5036 fi
  5037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5039 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5040   echo $ECHO_N "(cached) $ECHO_C" >&6
  5041 else
  5042   ac_cv_prog_cc_c89=no
  5043 ac_save_CC=$CC
  5044 cat >conftest.$ac_ext <<_ACEOF
  5045 /* confdefs.h.  */
  5046 _ACEOF
  5047 cat confdefs.h >>conftest.$ac_ext
  5048 cat >>conftest.$ac_ext <<_ACEOF
  5049 /* end confdefs.h.  */
  5050 #include <stdarg.h>
  5051 #include <stdio.h>
  5052 #include <sys/types.h>
  5053 #include <sys/stat.h>
  5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5055 struct buf { int x; };
  5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5057 static char *e (p, i)
  5058      char **p;
  5059      int i;
  5061   return p[i];
  5063 static char *f (char * (*g) (char **, int), char **p, ...)
  5065   char *s;
  5066   va_list v;
  5067   va_start (v,p);
  5068   s = g (p, va_arg (v,int));
  5069   va_end (v);
  5070   return s;
  5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5074    function prototypes and stuff, but not '\xHH' hex character constants.
  5075    These don't provoke an error unfortunately, instead are silently treated
  5076    as 'x'.  The following induces an error, until -std is added to get
  5077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5078    array size at least.  It's necessary to write '\x00'==0 to get something
  5079    that's true only with -std.  */
  5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5083    inside strings and character constants.  */
  5084 #define FOO(x) 'x'
  5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5087 int test (int i, double x);
  5088 struct s1 {int (*f) (int a);};
  5089 struct s2 {int (*f) (double a);};
  5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5091 int argc;
  5092 char **argv;
  5093 int
  5094 main ()
  5096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5098   return 0;
  5100 _ACEOF
  5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5102 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5103 do
  5104   CC="$ac_save_CC $ac_arg"
  5105   rm -f conftest.$ac_objext
  5106 if { (ac_try="$ac_compile"
  5107 case "(($ac_try" in
  5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5109   *) ac_try_echo=$ac_try;;
  5110 esac
  5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5112   (eval "$ac_compile") 2>conftest.er1
  5113   ac_status=$?
  5114   grep -v '^ *+' conftest.er1 >conftest.err
  5115   rm -f conftest.er1
  5116   cat conftest.err >&5
  5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118   (exit $ac_status); } && {
  5119 	 test -z "$ac_c_werror_flag" ||
  5120 	 test ! -s conftest.err
  5121        } && test -s conftest.$ac_objext; then
  5122   ac_cv_prog_cc_c89=$ac_arg
  5123 else
  5124   echo "$as_me: failed program was:" >&5
  5125 sed 's/^/| /' conftest.$ac_ext >&5
  5128 fi
  5130 rm -f core conftest.err conftest.$ac_objext
  5131   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5132 done
  5133 rm -f conftest.$ac_ext
  5134 CC=$ac_save_CC
  5136 fi
  5137 # AC_CACHE_VAL
  5138 case "x$ac_cv_prog_cc_c89" in
  5139   x)
  5140     { echo "$as_me:$LINENO: result: none needed" >&5
  5141 echo "${ECHO_T}none needed" >&6; } ;;
  5142   xno)
  5143     { echo "$as_me:$LINENO: result: unsupported" >&5
  5144 echo "${ECHO_T}unsupported" >&6; } ;;
  5145   *)
  5146     CC="$CC $ac_cv_prog_cc_c89"
  5147     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5148 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5149 esac
  5152 ac_ext=c
  5153 ac_cpp='$CPP $CPPFLAGS'
  5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5158 depcc="$CC"   am_compiler_list=
  5160 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5163   echo $ECHO_N "(cached) $ECHO_C" >&6
  5164 else
  5165   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5166   # We make a subdir and do the tests there.  Otherwise we can end up
  5167   # making bogus files that we don't know about and never remove.  For
  5168   # instance it was reported that on HP-UX the gcc test will end up
  5169   # making a dummy file named `D' -- because `-MD' means `put the output
  5170   # in D'.
  5171   mkdir conftest.dir
  5172   # Copy depcomp to subdir because otherwise we won't find it if we're
  5173   # using a relative directory.
  5174   cp "$am_depcomp" conftest.dir
  5175   cd conftest.dir
  5176   # We will build objects and dependencies in a subdirectory because
  5177   # it helps to detect inapplicable dependency modes.  For instance
  5178   # both Tru64's cc and ICC support -MD to output dependencies as a
  5179   # side effect of compilation, but ICC will put the dependencies in
  5180   # the current directory while Tru64 will put them in the object
  5181   # directory.
  5182   mkdir sub
  5184   am_cv_CC_dependencies_compiler_type=none
  5185   if test "$am_compiler_list" = ""; then
  5186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5187   fi
  5188   for depmode in $am_compiler_list; do
  5189     # Setup a source with many dependencies, because some compilers
  5190     # like to wrap large dependency lists on column 80 (with \), and
  5191     # we should not choose a depcomp mode which is confused by this.
  5193     # We need to recreate these files for each test, as the compiler may
  5194     # overwrite some of them when testing with obscure command lines.
  5195     # This happens at least with the AIX C compiler.
  5196     : > sub/conftest.c
  5197     for i in 1 2 3 4 5 6; do
  5198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5200       # Solaris 8's {/usr,}/bin/sh.
  5201       touch sub/conftst$i.h
  5202     done
  5203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5205     case $depmode in
  5206     nosideeffect)
  5207       # after this tag, mechanisms are not by side-effect, so they'll
  5208       # only be used when explicitly requested
  5209       if test "x$enable_dependency_tracking" = xyes; then
  5210 	continue
  5211       else
  5212 	break
  5213       fi
  5214       ;;
  5215     none) break ;;
  5216     esac
  5217     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5218     # mode.  It turns out that the SunPro C++ compiler does not properly
  5219     # handle `-M -o', and we need to detect this.
  5220     if depmode=$depmode \
  5221        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5222        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5223        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5224          >/dev/null 2>conftest.err &&
  5225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5226        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5228       # icc doesn't choke on unknown options, it will just issue warnings
  5229       # or remarks (even with -Werror).  So we grep stderr for any message
  5230       # that says an option was ignored or not supported.
  5231       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5232       #   icc: Command line warning: ignoring option '-M'; no argument required
  5233       # The diagnosis changed in icc 8.0:
  5234       #   icc: Command line remark: option '-MP' not supported
  5235       if (grep 'ignoring option' conftest.err ||
  5236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5237         am_cv_CC_dependencies_compiler_type=$depmode
  5238         break
  5239       fi
  5240     fi
  5241   done
  5243   cd ..
  5244   rm -rf conftest.dir
  5245 else
  5246   am_cv_CC_dependencies_compiler_type=none
  5247 fi
  5249 fi
  5250 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5256 if
  5257   test "x$enable_dependency_tracking" != xno \
  5258   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5259   am__fastdepCC_TRUE=
  5260   am__fastdepCC_FALSE='#'
  5261 else
  5262   am__fastdepCC_TRUE='#'
  5263   am__fastdepCC_FALSE=
  5264 fi
  5268 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5270 ac_ext=c
  5271 ac_cpp='$CPP $CPPFLAGS'
  5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5275 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5276 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5277 # On Suns, sometimes $CPP names a directory.
  5278 if test -n "$CPP" && test -d "$CPP"; then
  5279   CPP=
  5280 fi
  5281 if test -z "$CPP"; then
  5282   if test "${ac_cv_prog_CPP+set}" = set; then
  5283   echo $ECHO_N "(cached) $ECHO_C" >&6
  5284 else
  5285       # Double quotes because CPP needs to be expanded
  5286     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5287     do
  5288       ac_preproc_ok=false
  5289 for ac_c_preproc_warn_flag in '' yes
  5290 do
  5291   # Use a header file that comes with gcc, so configuring glibc
  5292   # with a fresh cross-compiler works.
  5293   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5294   # <limits.h> exists even on freestanding compilers.
  5295   # On the NeXT, cc -E runs the code through the compiler's parser,
  5296   # not just through cpp. "Syntax error" is here to catch this case.
  5297   cat >conftest.$ac_ext <<_ACEOF
  5298 /* confdefs.h.  */
  5299 _ACEOF
  5300 cat confdefs.h >>conftest.$ac_ext
  5301 cat >>conftest.$ac_ext <<_ACEOF
  5302 /* end confdefs.h.  */
  5303 #ifdef __STDC__
  5304 # include <limits.h>
  5305 #else
  5306 # include <assert.h>
  5307 #endif
  5308 		     Syntax error
  5309 _ACEOF
  5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5311 case "(($ac_try" in
  5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5313   *) ac_try_echo=$ac_try;;
  5314 esac
  5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5317   ac_status=$?
  5318   grep -v '^ *+' conftest.er1 >conftest.err
  5319   rm -f conftest.er1
  5320   cat conftest.err >&5
  5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5322   (exit $ac_status); } >/dev/null && {
  5323 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5324 	 test ! -s conftest.err
  5325        }; then
  5327 else
  5328   echo "$as_me: failed program was:" >&5
  5329 sed 's/^/| /' conftest.$ac_ext >&5
  5331   # Broken: fails on valid input.
  5332 continue
  5333 fi
  5335 rm -f conftest.err conftest.$ac_ext
  5337   # OK, works on sane cases.  Now check whether nonexistent headers
  5338   # can be detected and how.
  5339   cat >conftest.$ac_ext <<_ACEOF
  5340 /* confdefs.h.  */
  5341 _ACEOF
  5342 cat confdefs.h >>conftest.$ac_ext
  5343 cat >>conftest.$ac_ext <<_ACEOF
  5344 /* end confdefs.h.  */
  5345 #include <ac_nonexistent.h>
  5346 _ACEOF
  5347 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5348 case "(($ac_try" in
  5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5350   *) ac_try_echo=$ac_try;;
  5351 esac
  5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5354   ac_status=$?
  5355   grep -v '^ *+' conftest.er1 >conftest.err
  5356   rm -f conftest.er1
  5357   cat conftest.err >&5
  5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359   (exit $ac_status); } >/dev/null && {
  5360 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5361 	 test ! -s conftest.err
  5362        }; then
  5363   # Broken: success on invalid input.
  5364 continue
  5365 else
  5366   echo "$as_me: failed program was:" >&5
  5367 sed 's/^/| /' conftest.$ac_ext >&5
  5369   # Passes both tests.
  5370 ac_preproc_ok=:
  5371 break
  5372 fi
  5374 rm -f conftest.err conftest.$ac_ext
  5376 done
  5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5378 rm -f conftest.err conftest.$ac_ext
  5379 if $ac_preproc_ok; then
  5380   break
  5381 fi
  5383     done
  5384     ac_cv_prog_CPP=$CPP
  5386 fi
  5387   CPP=$ac_cv_prog_CPP
  5388 else
  5389   ac_cv_prog_CPP=$CPP
  5390 fi
  5391 { echo "$as_me:$LINENO: result: $CPP" >&5
  5392 echo "${ECHO_T}$CPP" >&6; }
  5393 ac_preproc_ok=false
  5394 for ac_c_preproc_warn_flag in '' yes
  5395 do
  5396   # Use a header file that comes with gcc, so configuring glibc
  5397   # with a fresh cross-compiler works.
  5398   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5399   # <limits.h> exists even on freestanding compilers.
  5400   # On the NeXT, cc -E runs the code through the compiler's parser,
  5401   # not just through cpp. "Syntax error" is here to catch this case.
  5402   cat >conftest.$ac_ext <<_ACEOF
  5403 /* confdefs.h.  */
  5404 _ACEOF
  5405 cat confdefs.h >>conftest.$ac_ext
  5406 cat >>conftest.$ac_ext <<_ACEOF
  5407 /* end confdefs.h.  */
  5408 #ifdef __STDC__
  5409 # include <limits.h>
  5410 #else
  5411 # include <assert.h>
  5412 #endif
  5413 		     Syntax error
  5414 _ACEOF
  5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5416 case "(($ac_try" in
  5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5418   *) ac_try_echo=$ac_try;;
  5419 esac
  5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5422   ac_status=$?
  5423   grep -v '^ *+' conftest.er1 >conftest.err
  5424   rm -f conftest.er1
  5425   cat conftest.err >&5
  5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5427   (exit $ac_status); } >/dev/null && {
  5428 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5429 	 test ! -s conftest.err
  5430        }; then
  5432 else
  5433   echo "$as_me: failed program was:" >&5
  5434 sed 's/^/| /' conftest.$ac_ext >&5
  5436   # Broken: fails on valid input.
  5437 continue
  5438 fi
  5440 rm -f conftest.err conftest.$ac_ext
  5442   # OK, works on sane cases.  Now check whether nonexistent headers
  5443   # can be detected and how.
  5444   cat >conftest.$ac_ext <<_ACEOF
  5445 /* confdefs.h.  */
  5446 _ACEOF
  5447 cat confdefs.h >>conftest.$ac_ext
  5448 cat >>conftest.$ac_ext <<_ACEOF
  5449 /* end confdefs.h.  */
  5450 #include <ac_nonexistent.h>
  5451 _ACEOF
  5452 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5453 case "(($ac_try" in
  5454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5455   *) ac_try_echo=$ac_try;;
  5456 esac
  5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5459   ac_status=$?
  5460   grep -v '^ *+' conftest.er1 >conftest.err
  5461   rm -f conftest.er1
  5462   cat conftest.err >&5
  5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5464   (exit $ac_status); } >/dev/null && {
  5465 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5466 	 test ! -s conftest.err
  5467        }; then
  5468   # Broken: success on invalid input.
  5469 continue
  5470 else
  5471   echo "$as_me: failed program was:" >&5
  5472 sed 's/^/| /' conftest.$ac_ext >&5
  5474   # Passes both tests.
  5475 ac_preproc_ok=:
  5476 break
  5477 fi
  5479 rm -f conftest.err conftest.$ac_ext
  5481 done
  5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5483 rm -f conftest.err conftest.$ac_ext
  5484 if $ac_preproc_ok; then
  5486 else
  5487   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5488 See \`config.log' for more details." >&5
  5489 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5490 See \`config.log' for more details." >&2;}
  5491    { (exit 1); exit 1; }; }
  5492 fi
  5494 ac_ext=c
  5495 ac_cpp='$CPP $CPPFLAGS'
  5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5501 ac_main_cc="$CC"
  5502 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5504 if test -z "$CC_FOR_BUILD"; then
  5505     if test "$#" = yes; then
  5506   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5507 See \`config.log' for more details." >&5
  5508 echo "$as_me: error: cannot run test program while cross compiling
  5509 See \`config.log' for more details." >&2;}
  5510    { (exit 1); exit 1; }; }
  5511 else
  5512   cat >conftest.$ac_ext <<_ACEOF
  5513 int main(){return 0;}
  5514 _ACEOF
  5515 rm -f conftest$ac_exeext
  5516 if { (ac_try="$ac_link"
  5517 case "(($ac_try" in
  5518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5519   *) ac_try_echo=$ac_try;;
  5520 esac
  5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5522   (eval "$ac_link") 2>&5
  5523   ac_status=$?
  5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5526   { (case "(($ac_try" in
  5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5528   *) ac_try_echo=$ac_try;;
  5529 esac
  5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5531   (eval "$ac_try") 2>&5
  5532   ac_status=$?
  5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5534   (exit $ac_status); }; }; then
  5535   CC_FOR_BUILD="$CC"
  5536 else
  5537   echo "$as_me: program exited with status $ac_status" >&5
  5538 echo "$as_me: failed program was:" >&5
  5539 sed 's/^/| /' conftest.$ac_ext >&5
  5541 fi
  5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5543 fi
  5546 fi
  5549 ac_ext=c
  5550 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5551 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5552 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5553 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5554 if test -n "$ac_build_tool_prefix"; then
  5555   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5556 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5559 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5560   echo $ECHO_N "(cached) $ECHO_C" >&6
  5561 else
  5562   if test -n "$CC_FOR_BUILD"; then
  5563   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5564 else
  5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5566 for as_dir in $PATH
  5567 do
  5568   IFS=$as_save_IFS
  5569   test -z "$as_dir" && as_dir=.
  5570   for ac_exec_ext in '' $ac_executable_extensions; do
  5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5572     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5574     break 2
  5575   fi
  5576 done
  5577 done
  5578 IFS=$as_save_IFS
  5580 fi
  5581 fi
  5582 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5583 if test -n "$CC_FOR_BUILD"; then
  5584   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5585 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5586 else
  5587   { echo "$as_me:$LINENO: result: no" >&5
  5588 echo "${ECHO_T}no" >&6; }
  5589 fi
  5592 fi
  5593 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5594   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5595   # Extract the first word of "gcc", so it can be a program name with args.
  5596 set dummy gcc; ac_word=$2
  5597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5599 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5600   echo $ECHO_N "(cached) $ECHO_C" >&6
  5601 else
  5602   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5603   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5604 else
  5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606 for as_dir in $PATH
  5607 do
  5608   IFS=$as_save_IFS
  5609   test -z "$as_dir" && as_dir=.
  5610   for ac_exec_ext in '' $ac_executable_extensions; do
  5611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5612     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5614     break 2
  5615   fi
  5616 done
  5617 done
  5618 IFS=$as_save_IFS
  5620 fi
  5621 fi
  5622 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5623 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5624   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5625 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5626 else
  5627   { echo "$as_me:$LINENO: result: no" >&5
  5628 echo "${ECHO_T}no" >&6; }
  5629 fi
  5631   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5632     CC_FOR_BUILD=""
  5633   else
  5634     case $#:$ac_tool_warned in
  5635 yes:)
  5636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5637 whose name does not start with the build triplet.  If you think this
  5638 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5640 whose name does not start with the build triplet.  If you think this
  5641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5642 ac_tool_warned=yes ;;
  5643 esac
  5644     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5645   fi
  5646 else
  5647   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5648 fi
  5650 if test -z "$CC_FOR_BUILD"; then
  5651           if test -n "$ac_build_tool_prefix"; then
  5652     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5653 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5656 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5657   echo $ECHO_N "(cached) $ECHO_C" >&6
  5658 else
  5659   if test -n "$CC_FOR_BUILD"; then
  5660   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5661 else
  5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663 for as_dir in $PATH
  5664 do
  5665   IFS=$as_save_IFS
  5666   test -z "$as_dir" && as_dir=.
  5667   for ac_exec_ext in '' $ac_executable_extensions; do
  5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5669     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671     break 2
  5672   fi
  5673 done
  5674 done
  5675 IFS=$as_save_IFS
  5677 fi
  5678 fi
  5679 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5680 if test -n "$CC_FOR_BUILD"; then
  5681   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5682 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5683 else
  5684   { echo "$as_me:$LINENO: result: no" >&5
  5685 echo "${ECHO_T}no" >&6; }
  5686 fi
  5689   fi
  5690 fi
  5691 if test -z "$CC_FOR_BUILD"; then
  5692   # Extract the first word of "cc", so it can be a program name with args.
  5693 set dummy cc; ac_word=$2
  5694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5696 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5697   echo $ECHO_N "(cached) $ECHO_C" >&6
  5698 else
  5699   if test -n "$CC_FOR_BUILD"; then
  5700   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5701 else
  5702   ac_prog_rejected=no
  5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704 for as_dir in $PATH
  5705 do
  5706   IFS=$as_save_IFS
  5707   test -z "$as_dir" && as_dir=.
  5708   for ac_exec_ext in '' $ac_executable_extensions; do
  5709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5711        ac_prog_rejected=yes
  5712        continue
  5713      fi
  5714     ac_cv_prog_CC_FOR_BUILD="cc"
  5715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5716     break 2
  5717   fi
  5718 done
  5719 done
  5720 IFS=$as_save_IFS
  5722 if test $ac_prog_rejected = yes; then
  5723   # We found a bogon in the path, so make sure we never use it.
  5724   set dummy $ac_cv_prog_CC_FOR_BUILD
  5725   shift
  5726   if test $# != 0; then
  5727     # We chose a different compiler from the bogus one.
  5728     # However, it has the same basename, so the bogon will be chosen
  5729     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5730     shift
  5731     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5732   fi
  5733 fi
  5734 fi
  5735 fi
  5736 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5737 if test -n "$CC_FOR_BUILD"; then
  5738   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5739 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5740 else
  5741   { echo "$as_me:$LINENO: result: no" >&5
  5742 echo "${ECHO_T}no" >&6; }
  5743 fi
  5746 fi
  5747 if test -z "$CC_FOR_BUILD"; then
  5748   if test -n "$ac_build_tool_prefix"; then
  5749   for ac_prog in cl.exe
  5750   do
  5751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5752 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5755 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5756   echo $ECHO_N "(cached) $ECHO_C" >&6
  5757 else
  5758   if test -n "$CC_FOR_BUILD"; then
  5759   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5760 else
  5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5762 for as_dir in $PATH
  5763 do
  5764   IFS=$as_save_IFS
  5765   test -z "$as_dir" && as_dir=.
  5766   for ac_exec_ext in '' $ac_executable_extensions; do
  5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5768     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5770     break 2
  5771   fi
  5772 done
  5773 done
  5774 IFS=$as_save_IFS
  5776 fi
  5777 fi
  5778 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5779 if test -n "$CC_FOR_BUILD"; then
  5780   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5781 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5782 else
  5783   { echo "$as_me:$LINENO: result: no" >&5
  5784 echo "${ECHO_T}no" >&6; }
  5785 fi
  5788     test -n "$CC_FOR_BUILD" && break
  5789   done
  5790 fi
  5791 if test -z "$CC_FOR_BUILD"; then
  5792   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5793   for ac_prog in cl.exe
  5794 do
  5795   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5796 set dummy $ac_prog; ac_word=$2
  5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5799 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5800   echo $ECHO_N "(cached) $ECHO_C" >&6
  5801 else
  5802   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5803   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5804 else
  5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806 for as_dir in $PATH
  5807 do
  5808   IFS=$as_save_IFS
  5809   test -z "$as_dir" && as_dir=.
  5810   for ac_exec_ext in '' $ac_executable_extensions; do
  5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5812     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814     break 2
  5815   fi
  5816 done
  5817 done
  5818 IFS=$as_save_IFS
  5820 fi
  5821 fi
  5822 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5823 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5824   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5825 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5826 else
  5827   { echo "$as_me:$LINENO: result: no" >&5
  5828 echo "${ECHO_T}no" >&6; }
  5829 fi
  5832   test -n "$ac_ct_CC_FOR_BUILD" && break
  5833 done
  5835   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5836     CC_FOR_BUILD=""
  5837   else
  5838     case $#:$ac_tool_warned in
  5839 yes:)
  5840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5841 whose name does not start with the build triplet.  If you think this
  5842 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5844 whose name does not start with the build triplet.  If you think this
  5845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5846 ac_tool_warned=yes ;;
  5847 esac
  5848     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5849   fi
  5850 fi
  5852 fi
  5855 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5856 See \`config.log' for more details." >&5
  5857 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5858 See \`config.log' for more details." >&2;}
  5859    { (exit 1); exit 1; }; }
  5861 # Provide some information about the compiler.
  5862 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5863 ac_compiler=`set X $ac_build_compile; echo $2`
  5864 { (ac_try="$ac_compiler --version >&5"
  5865 case "(($ac_try" in
  5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867   *) ac_try_echo=$ac_try;;
  5868 esac
  5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870   (eval "$ac_compiler --version >&5") 2>&5
  5871   ac_status=$?
  5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873   (exit $ac_status); }
  5874 { (ac_try="$ac_compiler -v >&5"
  5875 case "(($ac_try" in
  5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5877   *) ac_try_echo=$ac_try;;
  5878 esac
  5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5880   (eval "$ac_compiler -v >&5") 2>&5
  5881   ac_status=$?
  5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883   (exit $ac_status); }
  5884 { (ac_try="$ac_compiler -V >&5"
  5885 case "(($ac_try" in
  5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5887   *) ac_try_echo=$ac_try;;
  5888 esac
  5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5890   (eval "$ac_compiler -V >&5") 2>&5
  5891   ac_status=$?
  5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893   (exit $ac_status); }
  5895 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5898   echo $ECHO_N "(cached) $ECHO_C" >&6
  5899 else
  5900   cat >conftest.$ac_ext <<_ACEOF
  5901 /* confdefs.h.  */
  5902 _ACEOF
  5903 cat confdefs.h >>conftest.$ac_ext
  5904 cat >>conftest.$ac_ext <<_ACEOF
  5905 /* end confdefs.h.  */
  5907 int
  5908 main ()
  5910 #ifndef __GNUC__
  5911        choke me
  5912 #endif
  5915   return 0;
  5917 _ACEOF
  5918 rm -f conftest.$ac_build_objext
  5919 if { (ac_try="$ac_build_compile"
  5920 case "(($ac_try" in
  5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5922   *) ac_try_echo=$ac_try;;
  5923 esac
  5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5925   (eval "$ac_build_compile") 2>conftest.er1
  5926   ac_status=$?
  5927   grep -v '^ *+' conftest.er1 >conftest.err
  5928   rm -f conftest.er1
  5929   cat conftest.err >&5
  5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931   (exit $ac_status); } && {
  5932 	 test -z "$ac_c_werror_flag" ||
  5933 	 test ! -s conftest.err
  5934        } && test -s conftest.$ac_build_objext; then
  5935   ac_build_compiler_gnu=yes
  5936 else
  5937   echo "$as_me: failed program was:" >&5
  5938 sed 's/^/| /' conftest.$ac_ext >&5
  5940 	ac_build_compiler_gnu=no
  5941 fi
  5943 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  5944 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  5946 fi
  5947 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5949 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  5950 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  5951 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  5952 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  5953 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  5954 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  5955   echo $ECHO_N "(cached) $ECHO_C" >&6
  5956 else
  5957   ac_save_c_werror_flag=$ac_c_werror_flag
  5958    ac_c_werror_flag=yes
  5959    ac_cv_build_prog_cc_g=no
  5960    CFLAGS_FOR_BUILD="-g"
  5961    cat >conftest.$ac_ext <<_ACEOF
  5962 /* confdefs.h.  */
  5963 _ACEOF
  5964 cat confdefs.h >>conftest.$ac_ext
  5965 cat >>conftest.$ac_ext <<_ACEOF
  5966 /* end confdefs.h.  */
  5968 int
  5969 main ()
  5973   return 0;
  5975 _ACEOF
  5976 rm -f conftest.$ac_build_objext
  5977 if { (ac_try="$ac_build_compile"
  5978 case "(($ac_try" in
  5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5980   *) ac_try_echo=$ac_try;;
  5981 esac
  5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5983   (eval "$ac_build_compile") 2>conftest.er1
  5984   ac_status=$?
  5985   grep -v '^ *+' conftest.er1 >conftest.err
  5986   rm -f conftest.er1
  5987   cat conftest.err >&5
  5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989   (exit $ac_status); } && {
  5990 	 test -z "$ac_c_werror_flag" ||
  5991 	 test ! -s conftest.err
  5992        } && test -s conftest.$ac_build_objext; then
  5993   ac_cv_build_prog_cc_g=yes
  5994 else
  5995   echo "$as_me: failed program was:" >&5
  5996 sed 's/^/| /' conftest.$ac_ext >&5
  5998 	CFLAGS_FOR_BUILD=""
  5999       cat >conftest.$ac_ext <<_ACEOF
  6000 /* confdefs.h.  */
  6001 _ACEOF
  6002 cat confdefs.h >>conftest.$ac_ext
  6003 cat >>conftest.$ac_ext <<_ACEOF
  6004 /* end confdefs.h.  */
  6006 int
  6007 main ()
  6011   return 0;
  6013 _ACEOF
  6014 rm -f conftest.$ac_build_objext
  6015 if { (ac_try="$ac_build_compile"
  6016 case "(($ac_try" in
  6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6018   *) ac_try_echo=$ac_try;;
  6019 esac
  6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6021   (eval "$ac_build_compile") 2>conftest.er1
  6022   ac_status=$?
  6023   grep -v '^ *+' conftest.er1 >conftest.err
  6024   rm -f conftest.er1
  6025   cat conftest.err >&5
  6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027   (exit $ac_status); } && {
  6028 	 test -z "$ac_c_werror_flag" ||
  6029 	 test ! -s conftest.err
  6030        } && test -s conftest.$ac_build_objext; then
  6032 else
  6033   echo "$as_me: failed program was:" >&5
  6034 sed 's/^/| /' conftest.$ac_ext >&5
  6036 	ac_c_werror_flag=$ac_save_c_werror_flag
  6037 	 CFLAGS_FOR_BUILD="-g"
  6038 	 cat >conftest.$ac_ext <<_ACEOF
  6039 /* confdefs.h.  */
  6040 _ACEOF
  6041 cat confdefs.h >>conftest.$ac_ext
  6042 cat >>conftest.$ac_ext <<_ACEOF
  6043 /* end confdefs.h.  */
  6045 int
  6046 main ()
  6050   return 0;
  6052 _ACEOF
  6053 rm -f conftest.$ac_build_objext
  6054 if { (ac_try="$ac_build_compile"
  6055 case "(($ac_try" in
  6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6057   *) ac_try_echo=$ac_try;;
  6058 esac
  6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6060   (eval "$ac_build_compile") 2>conftest.er1
  6061   ac_status=$?
  6062   grep -v '^ *+' conftest.er1 >conftest.err
  6063   rm -f conftest.er1
  6064   cat conftest.err >&5
  6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066   (exit $ac_status); } && {
  6067 	 test -z "$ac_c_werror_flag" ||
  6068 	 test ! -s conftest.err
  6069        } && test -s conftest.$ac_build_objext; then
  6070   ac_cv_build_prog_cc_g=yes
  6071 else
  6072   echo "$as_me: failed program was:" >&5
  6073 sed 's/^/| /' conftest.$ac_ext >&5
  6076 fi
  6078 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6079 fi
  6081 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6082 fi
  6084 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6085    ac_c_werror_flag=$ac_save_c_werror_flag
  6086 fi
  6087 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6088 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6089 if test "$ac_test_CFLAGS" = set; then
  6090   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6091 elif test $ac_cv_build_prog_cc_g = yes; then
  6092   if test "$GCC" = yes; then
  6093     CFLAGS_FOR_BUILD="-g -O2"
  6094   else
  6095     CFLAGS_FOR_BUILD="-g"
  6096   fi
  6097 else
  6098   if test "$GCC" = yes; then
  6099     CFLAGS_FOR_BUILD="-O2"
  6100   else
  6101     CFLAGS_FOR_BUILD=
  6102   fi
  6103 fi
  6104 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6105 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6106 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6107   echo $ECHO_N "(cached) $ECHO_C" >&6
  6108 else
  6109   ac_cv_build_prog_cc_stdc=no
  6110 ac_save_CC=$CC_FOR_BUILD
  6111 cat >conftest.$ac_ext <<_ACEOF
  6112 /* confdefs.h.  */
  6113 _ACEOF
  6114 cat confdefs.h >>conftest.$ac_ext
  6115 cat >>conftest.$ac_ext <<_ACEOF
  6116 /* end confdefs.h.  */
  6117 #include <stdarg.h>
  6118 #include <stdio.h>
  6119 #include <sys/types.h>
  6120 #include <sys/stat.h>
  6121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6122 struct buf { int x; };
  6123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6124 static char *e (p, i)
  6125      char **p;
  6126      int i;
  6128   return p[i];
  6130 static char *f (char * (*g) (char **, int), char **p, ...)
  6132   char *s;
  6133   va_list v;
  6134   va_start (v,p);
  6135   s = g (p, va_arg (v,int));
  6136   va_end (v);
  6137   return s;
  6140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6141    function prototypes and stuff, but not '\xHH' hex character constants.
  6142    These don't provoke an error unfortunately, instead are silently treated
  6143    as 'x'.  The following induces an error, until -std is added to get
  6144    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6145    array size at least.  It's necessary to write '\x00'==0 to get something
  6146    that's true only with -std.  */
  6147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6150    inside strings and character constants.  */
  6151 #define FOO(x) 'x'
  6152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6154 int test (int i, double x);
  6155 struct s1 {int (*f) (int a);};
  6156 struct s2 {int (*f) (double a);};
  6157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6158 int argc;
  6159 char **argv;
  6160 int
  6161 main ()
  6163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6165   return 0;
  6167 _ACEOF
  6168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6169 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6170 do
  6171   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6172   rm -f conftest.$ac_build_objext
  6173 if { (ac_try="$ac_build_compile"
  6174 case "(($ac_try" in
  6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6176   *) ac_try_echo=$ac_try;;
  6177 esac
  6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6179   (eval "$ac_build_compile") 2>conftest.er1
  6180   ac_status=$?
  6181   grep -v '^ *+' conftest.er1 >conftest.err
  6182   rm -f conftest.er1
  6183   cat conftest.err >&5
  6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185   (exit $ac_status); } && {
  6186 	 test -z "$ac_c_werror_flag" ||
  6187 	 test ! -s conftest.err
  6188        } && test -s conftest.$ac_build_objext; then
  6189   ac_cv_build_prog_cc_stdc=$ac_arg
  6190 else
  6191   echo "$as_me: failed program was:" >&5
  6192 sed 's/^/| /' conftest.$ac_ext >&5
  6195 fi
  6197 rm -f core conftest.err conftest.$ac_build_objext
  6198   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6199 done
  6200 rm -f conftest.$ac_ext
  6201 CC_FOR_BUILD=$ac_save_CC
  6203 fi
  6204 # AC_CACHE_VAL
  6205 case "x$ac_cv_build_prog_cc_stdc" in
  6206   x)
  6207     { echo "$as_me:$LINENO: result: none needed" >&5
  6208 echo "${ECHO_T}none needed" >&6; } ;;
  6209   xno)
  6210     { echo "$as_me:$LINENO: result: unsupported" >&5
  6211 echo "${ECHO_T}unsupported" >&6; } ;;
  6212   *)
  6213     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6214     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6215 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6216 esac
  6219 ac_ext=c
  6220 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6221 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6222 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6223 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6225 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6227 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6228 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6229 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6230   echo $ECHO_N "(cached) $ECHO_C" >&6
  6231 else
  6232   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6233   # We make a subdir and do the tests there.  Otherwise we can end up
  6234   # making bogus files that we don't know about and never remove.  For
  6235   # instance it was reported that on HP-UX the gcc test will end up
  6236   # making a dummy file named `D' -- because `-MD' means `put the output
  6237   # in D'.
  6238   mkdir conftest.dir
  6239   # Copy depcomp to subdir because otherwise we won't find it if we're
  6240   # using a relative directory.
  6241   cp "$am_depcomp" conftest.dir
  6242   cd conftest.dir
  6243   # We will build objects and dependencies in a subdirectory because
  6244   # it helps to detect inapplicable dependency modes.  For instance
  6245   # both Tru64's cc and ICC support -MD to output dependencies as a
  6246   # side effect of compilation, but ICC will put the dependencies in
  6247   # the current directory while Tru64 will put them in the object
  6248   # directory.
  6249   mkdir sub
  6251   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6252   if test "$am_compiler_list" = ""; then
  6253      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6254   fi
  6255   for depmode in $am_compiler_list; do
  6256     # Setup a source with many dependencies, because some compilers
  6257     # like to wrap large dependency lists on column 80 (with \), and
  6258     # we should not choose a depcomp mode which is confused by this.
  6260     # We need to recreate these files for each test, as the compiler may
  6261     # overwrite some of them when testing with obscure command lines.
  6262     # This happens at least with the AIX C compiler.
  6263     : > sub/conftest.c
  6264     for i in 1 2 3 4 5 6; do
  6265       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6266       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6267       # Solaris 8's {/usr,}/bin/sh.
  6268       touch sub/conftst$i.h
  6269     done
  6270     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6272     case $depmode in
  6273     nosideeffect)
  6274       # after this tag, mechanisms are not by side-effect, so they'll
  6275       # only be used when explicitly requested
  6276       if test "x$enable_dependency_tracking" = xyes; then
  6277 	continue
  6278       else
  6279 	break
  6280       fi
  6281       ;;
  6282     none) break ;;
  6283     esac
  6284     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6285     # mode.  It turns out that the SunPro C++ compiler does not properly
  6286     # handle `-M -o', and we need to detect this.
  6287     if depmode=$depmode \
  6288        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6289        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6290        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6291          >/dev/null 2>conftest.err &&
  6292        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6293        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6294        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6295       # icc doesn't choke on unknown options, it will just issue warnings
  6296       # or remarks (even with -Werror).  So we grep stderr for any message
  6297       # that says an option was ignored or not supported.
  6298       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6299       #   icc: Command line warning: ignoring option '-M'; no argument required
  6300       # The diagnosis changed in icc 8.0:
  6301       #   icc: Command line remark: option '-MP' not supported
  6302       if (grep 'ignoring option' conftest.err ||
  6303           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6304         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6305         break
  6306       fi
  6307     fi
  6308   done
  6310   cd ..
  6311   rm -rf conftest.dir
  6312 else
  6313   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6314 fi
  6316 fi
  6317 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6318 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6319 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6323 if
  6324   test "x$enable_dependency_tracking" != xno \
  6325   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6326   am__fastdepCC_FOR_BUILD_TRUE=
  6327   am__fastdepCC_FOR_BUILD_FALSE='#'
  6328 else
  6329   am__fastdepCC_FOR_BUILD_TRUE='#'
  6330   am__fastdepCC_FOR_BUILD_FALSE=
  6331 fi
  6334    case $ac_cv_build_prog_cc_stdc in
  6335   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6336   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6337 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6338 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6339   echo $ECHO_N "(cached) $ECHO_C" >&6
  6340 else
  6341   ac_cv_build_prog_cc_stdc=no
  6342 ac_save_CC=$CC_FOR_BUILD
  6343 cat >conftest.$ac_ext <<_ACEOF
  6344 /* confdefs.h.  */
  6345 _ACEOF
  6346 cat confdefs.h >>conftest.$ac_ext
  6347 cat >>conftest.$ac_ext <<_ACEOF
  6348 /* end confdefs.h.  */
  6349 #include <stdarg.h>
  6350 #include <stdbool.h>
  6351 #include <stdlib.h>
  6352 #include <wchar.h>
  6353 #include <stdio.h>
  6355 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6356 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6357 #define showlist(...) puts (#__VA_ARGS__)
  6358 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6359 static void
  6360 test_varargs_macros (void)
  6362   int x = 1234;
  6363   int y = 5678;
  6364   debug ("Flag");
  6365   debug ("X = %d\n", x);
  6366   showlist (The first, second, and third items.);
  6367   report (x>y, "x is %d but y is %d", x, y);
  6370 // Check long long types.
  6371 #define BIG64 18446744073709551615ull
  6372 #define BIG32 4294967295ul
  6373 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6374 #if !BIG_OK
  6375   your preprocessor is broken;
  6376 #endif
  6377 #if BIG_OK
  6378 #else
  6379   your preprocessor is broken;
  6380 #endif
  6381 static long long int bignum = -9223372036854775807LL;
  6382 static unsigned long long int ubignum = BIG64;
  6384 struct incomplete_array
  6386   int datasize;
  6387   double data[];
  6388 };
  6390 struct named_init {
  6391   int number;
  6392   const wchar_t *name;
  6393   double average;
  6394 };
  6396 typedef const char *ccp;
  6398 static inline int
  6399 test_restrict (ccp restrict text)
  6401   // See if C++-style comments work.
  6402   // Iterate through items via the restricted pointer.
  6403   // Also check for declarations in for loops.
  6404   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6405     continue;
  6406   return 0;
  6409 // Check varargs and va_copy.
  6410 static void
  6411 test_varargs (const char *format, ...)
  6413   va_list args;
  6414   va_start (args, format);
  6415   va_list args_copy;
  6416   va_copy (args_copy, args);
  6418   const char *str;
  6419   int number;
  6420   float fnumber;
  6422   while (*format)
  6424       switch (*format++)
  6426 	case 's': // string
  6427 	  str = va_arg (args_copy, const char *);
  6428 	  break;
  6429 	case 'd': // int
  6430 	  number = va_arg (args_copy, int);
  6431 	  break;
  6432 	case 'f': // float
  6433 	  fnumber = va_arg (args_copy, double);
  6434 	  break;
  6435 	default:
  6436 	  break;
  6439   va_end (args_copy);
  6440   va_end (args);
  6443 int
  6444 main ()
  6447   // Check bool.
  6448   _Bool success = false;
  6450   // Check restrict.
  6451   if (test_restrict ("String literal") == 0)
  6452     success = true;
  6453   char *restrict newvar = "Another string";
  6455   // Check varargs.
  6456   test_varargs ("s, d' f .", "string", 65, 34.234);
  6457   test_varargs_macros ();
  6459   // Check flexible array members.
  6460   struct incomplete_array *ia =
  6461     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6462   ia->datasize = 10;
  6463   for (int i = 0; i < ia->datasize; ++i)
  6464     ia->data[i] = i * 1.234;
  6466   // Check named initializers.
  6467   struct named_init ni = {
  6468     .number = 34,
  6469     .name = L"Test wide string",
  6470     .average = 543.34343,
  6471   };
  6473   ni.number = 58;
  6475   int dynamic_array[ni.number];
  6476   dynamic_array[ni.number - 1] = 543;
  6478   // work around unused variable warnings
  6479   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6480 	  || dynamic_array[ni.number - 1] != 543);
  6483   return 0;
  6485 _ACEOF
  6486 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6487 do
  6488   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6489   rm -f conftest.$ac_build_objext
  6490 if { (ac_try="$ac_build_compile"
  6491 case "(($ac_try" in
  6492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6493   *) ac_try_echo=$ac_try;;
  6494 esac
  6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6496   (eval "$ac_build_compile") 2>conftest.er1
  6497   ac_status=$?
  6498   grep -v '^ *+' conftest.er1 >conftest.err
  6499   rm -f conftest.er1
  6500   cat conftest.err >&5
  6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6502   (exit $ac_status); } && {
  6503 	 test -z "$ac_c_werror_flag" ||
  6504 	 test ! -s conftest.err
  6505        } && test -s conftest.$ac_build_objext; then
  6506   ac_cv_build_prog_cc_stdc=$ac_arg
  6507 else
  6508   echo "$as_me: failed program was:" >&5
  6509 sed 's/^/| /' conftest.$ac_ext >&5
  6512 fi
  6514 rm -f core conftest.err conftest.$ac_build_objext
  6515   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6516 done
  6517 rm -f conftest.$ac_ext
  6518 CC_FOR_BUILD=$ac_save_CC
  6520 fi
  6521 # AC_CACHE_VAL
  6522 case "x$ac_cv_build_prog_cc_stdc" in
  6523   x)
  6524     { echo "$as_me:$LINENO: result: none needed" >&5
  6525 echo "${ECHO_T}none needed" >&6; } ;;
  6526   xno)
  6527     { echo "$as_me:$LINENO: result: unsupported" >&5
  6528 echo "${ECHO_T}unsupported" >&6; } ;;
  6529   *)
  6530     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6531     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6532 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6533 esac
  6534 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6535   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6536 else
  6537   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6538 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6539 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6540   echo $ECHO_N "(cached) $ECHO_C" >&6
  6541 else
  6542   ac_cv_build_prog_cc_stdc=no
  6543 ac_save_CC=$CC_FOR_BUILD
  6544 cat >conftest.$ac_ext <<_ACEOF
  6545 /* confdefs.h.  */
  6546 _ACEOF
  6547 cat confdefs.h >>conftest.$ac_ext
  6548 cat >>conftest.$ac_ext <<_ACEOF
  6549 /* end confdefs.h.  */
  6550 #include <stdarg.h>
  6551 #include <stdio.h>
  6552 #include <sys/types.h>
  6553 #include <sys/stat.h>
  6554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6555 struct buf { int x; };
  6556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6557 static char *e (p, i)
  6558      char **p;
  6559      int i;
  6561   return p[i];
  6563 static char *f (char * (*g) (char **, int), char **p, ...)
  6565   char *s;
  6566   va_list v;
  6567   va_start (v,p);
  6568   s = g (p, va_arg (v,int));
  6569   va_end (v);
  6570   return s;
  6573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6574    function prototypes and stuff, but not '\xHH' hex character constants.
  6575    These don't provoke an error unfortunately, instead are silently treated
  6576    as 'x'.  The following induces an error, until -std is added to get
  6577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6578    array size at least.  It's necessary to write '\x00'==0 to get something
  6579    that's true only with -std.  */
  6580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6583    inside strings and character constants.  */
  6584 #define FOO(x) 'x'
  6585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6587 int test (int i, double x);
  6588 struct s1 {int (*f) (int a);};
  6589 struct s2 {int (*f) (double a);};
  6590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6591 int argc;
  6592 char **argv;
  6593 int
  6594 main ()
  6596 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6598   return 0;
  6600 _ACEOF
  6601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6602 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6603 do
  6604   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6605   rm -f conftest.$ac_build_objext
  6606 if { (ac_try="$ac_build_compile"
  6607 case "(($ac_try" in
  6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6609   *) ac_try_echo=$ac_try;;
  6610 esac
  6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6612   (eval "$ac_build_compile") 2>conftest.er1
  6613   ac_status=$?
  6614   grep -v '^ *+' conftest.er1 >conftest.err
  6615   rm -f conftest.er1
  6616   cat conftest.err >&5
  6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618   (exit $ac_status); } && {
  6619 	 test -z "$ac_c_werror_flag" ||
  6620 	 test ! -s conftest.err
  6621        } && test -s conftest.$ac_build_objext; then
  6622   ac_cv_build_prog_cc_stdc=$ac_arg
  6623 else
  6624   echo "$as_me: failed program was:" >&5
  6625 sed 's/^/| /' conftest.$ac_ext >&5
  6628 fi
  6630 rm -f core conftest.err conftest.$ac_build_objext
  6631   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6632 done
  6633 rm -f conftest.$ac_ext
  6634 CC_FOR_BUILD=$ac_save_CC
  6636 fi
  6637 # AC_CACHE_VAL
  6638 case "x$ac_cv_build_prog_cc_stdc" in
  6639   x)
  6640     { echo "$as_me:$LINENO: result: none needed" >&5
  6641 echo "${ECHO_T}none needed" >&6; } ;;
  6642   xno)
  6643     { echo "$as_me:$LINENO: result: unsupported" >&5
  6644 echo "${ECHO_T}unsupported" >&6; } ;;
  6645   *)
  6646     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6647     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6648 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6649 esac
  6650 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6651   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6652 else
  6653   ac_cv_build_prog_cc_stdc=no
  6654 fi
  6657 fi
  6659  ;;
  6660 esac
  6661   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6662 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6663   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6664   echo $ECHO_N "(cached) $ECHO_C" >&6
  6665 fi
  6667   case $ac_cv_build_prog_cc_stdc in
  6668   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6669 echo "${ECHO_T}unsupported" >&6; } ;;
  6670   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6671 echo "${ECHO_T}none needed" >&6; } ;;
  6672   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6673 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6674 esac
  6677 ac_ext=c
  6678 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6679 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6680 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6681 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6682 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6684 # On Suns, sometimes $CPP names a directory.
  6685 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6686   CPP_FOR_BUILD=
  6687 fi
  6688 if test -z "$CPP_FOR_BUILD"; then
  6689   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6690   echo $ECHO_N "(cached) $ECHO_C" >&6
  6691 else
  6692       # Double quotes because CPP needs to be expanded
  6693     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6694     do
  6695       ac_preproc_ok=false
  6696 for ac_c_preproc_warn_flag in '' yes
  6697 do
  6698   # Use a header file that comes with gcc, so configuring glibc
  6699   # with a fresh cross-compiler works.
  6700   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6701   # <limits.h> exists even on freestanding compilers.
  6702   # On the NeXT, cc -E runs the code through the compiler's parser,
  6703   # not just through cpp. "Syntax error" is here to catch this case.
  6704   cat >conftest.$ac_ext <<_ACEOF
  6705 /* confdefs.h.  */
  6706 _ACEOF
  6707 cat confdefs.h >>conftest.$ac_ext
  6708 cat >>conftest.$ac_ext <<_ACEOF
  6709 /* end confdefs.h.  */
  6710 #ifdef __STDC__
  6711 # include <limits.h>
  6712 #else
  6713 # include <assert.h>
  6714 #endif
  6715 		     Syntax error
  6716 _ACEOF
  6717 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6718 case "(($ac_try" in
  6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6720   *) ac_try_echo=$ac_try;;
  6721 esac
  6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6723   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6724   ac_status=$?
  6725   grep -v '^ *+' conftest.er1 >conftest.err
  6726   rm -f conftest.er1
  6727   cat conftest.err >&5
  6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729   (exit $ac_status); } >/dev/null && {
  6730 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6731 	 test ! -s conftest.err
  6732        }; then
  6734 else
  6735   echo "$as_me: failed program was:" >&5
  6736 sed 's/^/| /' conftest.$ac_ext >&5
  6738   # Broken: fails on valid input.
  6739 continue
  6740 fi
  6742 rm -f conftest.err conftest.$ac_ext
  6744   # OK, works on sane cases.  Now check whether nonexistent headers
  6745   # can be detected and how.
  6746   cat >conftest.$ac_ext <<_ACEOF
  6747 /* confdefs.h.  */
  6748 _ACEOF
  6749 cat confdefs.h >>conftest.$ac_ext
  6750 cat >>conftest.$ac_ext <<_ACEOF
  6751 /* end confdefs.h.  */
  6752 #include <ac_nonexistent.h>
  6753 _ACEOF
  6754 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6755 case "(($ac_try" in
  6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757   *) ac_try_echo=$ac_try;;
  6758 esac
  6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6761   ac_status=$?
  6762   grep -v '^ *+' conftest.er1 >conftest.err
  6763   rm -f conftest.er1
  6764   cat conftest.err >&5
  6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766   (exit $ac_status); } >/dev/null && {
  6767 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||