Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1293:36123decfb24
prev1287:dac8f363f1fe
author nkeynes
date Sat Aug 25 14:09:07 2012 +1000 (11 years ago)
permissions -rwxr-xr-x
last change Subst LDFLAGS_FOR_BUILD in configure
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 LDFLAGS_FOR_BUILD
   718 OBJC
   719 OBJCFLAGS
   720 ac_ct_OBJC
   721 SED
   722 CCAS
   723 CCASFLAGS
   724 RANLIB
   725 GREP
   726 EGREP
   727 OBJCDEPMODE
   728 am__fastdepOBJC_TRUE
   729 am__fastdepOBJC_FALSE
   730 POD2MAN
   731 POD2HTML
   732 ANT
   733 ANDROID_ABI
   734 ANDROID_SDK_HOME
   735 ANDROID_NDK_HOME
   736 ANDROID_SDK_VERSION
   737 ANDROID_NDK_VERSION
   738 ANDROID_GDBSERVER
   739 GUI_ANDROID_TRUE
   740 GUI_ANDROID_FALSE
   741 GUI_COCOA_TRUE
   742 GUI_COCOA_FALSE
   743 SOEXT
   744 PLUGINCFLAGS
   745 PLUGINLDFLAGS
   746 LXDREAMLDFLAGS
   747 BUILD_PLUGINS_TRUE
   748 BUILD_PLUGINS_FALSE
   749 LXDREAMCPPFLAGS
   750 PKG_CONFIG
   751 LIBPNG_CFLAGS
   752 LIBPNG_LIBS
   753 GLIB_CFLAGS
   754 GLIB_LIBS
   755 GTK_CFLAGS
   756 GTK_LIBS
   757 GLIB_FOR_BUILD_CFLAGS
   758 GLIB_FOR_BUILD_LIBS
   759 GUI_GTK_TRUE
   760 GUI_GTK_FALSE
   761 LIBISOFS_CFLAGS
   762 LIBISOFS_LIBS
   763 LIBGL_CFLAGS
   764 LIBGL_LIBS
   765 VIDEO_OSMESA_TRUE
   766 VIDEO_OSMESA_FALSE
   767 VIDEO_GLX_TRUE
   768 VIDEO_GLX_FALSE
   769 VIDEO_NSGL_TRUE
   770 VIDEO_NSGL_FALSE
   771 VIDEO_EGL_TRUE
   772 VIDEO_EGL_FALSE
   773 BUILD_SH4X86_TRUE
   774 BUILD_SH4X86_FALSE
   775 AUDIO_OSX_TRUE
   776 AUDIO_OSX_FALSE
   777 SDL_CFLAGS
   778 SDL_LIBS
   779 AUDIO_SDL_TRUE
   780 AUDIO_SDL_FALSE
   781 PULSE_CFLAGS
   782 PULSE_LIBS
   783 AUDIO_PULSE_TRUE
   784 AUDIO_PULSE_FALSE
   785 ESOUND_CFLAGS
   786 ESOUND_LIBS
   787 AUDIO_ESOUND_TRUE
   788 AUDIO_ESOUND_FALSE
   789 ALSA_CFLAGS
   790 ALSA_LIBS
   791 AUDIO_ALSA_TRUE
   792 AUDIO_ALSA_FALSE
   793 CDROM_LINUX_TRUE
   794 CDROM_LINUX_FALSE
   795 CDROM_OSX_TRUE
   796 CDROM_OSX_FALSE
   797 CDROM_NONE_TRUE
   798 CDROM_NONE_FALSE
   799 JOY_LINUX_TRUE
   800 JOY_LINUX_FALSE
   801 INPUT_LIRC_TRUE
   802 INPUT_LIRC_FALSE
   803 SHCC
   804 SHLD
   805 SHOBJCOPY
   806 ARMCC
   807 ARMLD
   808 ARMOBJCOPY
   809 BUILD_SYSTEST_TRUE
   810 BUILD_SYSTEST_FALSE
   811 BUILD_ARMTEST_TRUE
   812 BUILD_ARMTEST_FALSE
   813 LXDREAM_LIBS
   814 GETTEXT_PACKAGE
   815 USE_NLS
   816 MSGFMT
   817 MSGFMT_OPTS
   818 GMSGFMT
   819 XGETTEXT
   820 CATALOGS
   821 CATOBJEXT
   822 DATADIRNAME
   823 GMOFILES
   824 INSTOBJEXT
   825 INTLLIBS
   826 PO_IN_DATADIR_TRUE
   827 PO_IN_DATADIR_FALSE
   828 POFILES
   829 POSUB
   830 MKINSTALLDIRS
   831 LIBOBJS
   832 LTLIBOBJS'
   833 ac_subst_files=''
   834       ac_precious_vars='build_alias
   835 host_alias
   836 target_alias
   837 CC
   838 CFLAGS
   839 LDFLAGS
   840 LIBS
   841 CPPFLAGS
   842 CPP
   843 CC
   844 CFLAGS
   845 CPPFLAGS
   846 CPP
   847 CPPFLAGS
   848 OBJC
   849 OBJCFLAGS
   850 CCAS
   851 CCASFLAGS
   852 PKG_CONFIG
   853 LIBPNG_CFLAGS
   854 LIBPNG_LIBS
   855 GLIB_CFLAGS
   856 GLIB_LIBS
   857 GTK_CFLAGS
   858 GTK_LIBS
   859 GLIB_FOR_BUILD_CFLAGS
   860 GLIB_FOR_BUILD_LIBS
   861 LIBISOFS_CFLAGS
   862 LIBISOFS_LIBS
   863 LIBGL_CFLAGS
   864 LIBGL_LIBS
   865 SDL_CFLAGS
   866 SDL_LIBS
   867 PULSE_CFLAGS
   868 PULSE_LIBS
   869 ESOUND_CFLAGS
   870 ESOUND_LIBS
   871 ALSA_CFLAGS
   872 ALSA_LIBS'
   875 # Initialize some variables set by options.
   876 ac_init_help=
   877 ac_init_version=false
   878 # The variables have the same names as the options, with
   879 # dashes changed to underlines.
   880 cache_file=/dev/null
   881 exec_prefix=NONE
   882 no_create=
   883 no_recursion=
   884 prefix=NONE
   885 program_prefix=NONE
   886 program_suffix=NONE
   887 program_transform_name=s,x,x,
   888 silent=
   889 site=
   890 srcdir=
   891 verbose=
   892 x_includes=NONE
   893 x_libraries=NONE
   895 # Installation directory options.
   896 # These are left unexpanded so users can "make install exec_prefix=/foo"
   897 # and all the variables that are supposed to be based on exec_prefix
   898 # by default will actually change.
   899 # Use braces instead of parens because sh, perl, etc. also accept them.
   900 # (The list follows the same order as the GNU Coding Standards.)
   901 bindir='${exec_prefix}/bin'
   902 sbindir='${exec_prefix}/sbin'
   903 libexecdir='${exec_prefix}/libexec'
   904 datarootdir='${prefix}/share'
   905 datadir='${datarootdir}'
   906 sysconfdir='${prefix}/etc'
   907 sharedstatedir='${prefix}/com'
   908 localstatedir='${prefix}/var'
   909 includedir='${prefix}/include'
   910 oldincludedir='/usr/include'
   911 docdir='${datarootdir}/doc/${PACKAGE}'
   912 infodir='${datarootdir}/info'
   913 htmldir='${docdir}'
   914 dvidir='${docdir}'
   915 pdfdir='${docdir}'
   916 psdir='${docdir}'
   917 libdir='${exec_prefix}/lib'
   918 localedir='${datarootdir}/locale'
   919 mandir='${datarootdir}/man'
   921 ac_prev=
   922 ac_dashdash=
   923 for ac_option
   924 do
   925   # If the previous option needs an argument, assign it.
   926   if test -n "$ac_prev"; then
   927     eval $ac_prev=\$ac_option
   928     ac_prev=
   929     continue
   930   fi
   932   case $ac_option in
   933   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   934   *)	ac_optarg=yes ;;
   935   esac
   937   # Accept the important Cygnus configure options, so we can diagnose typos.
   939   case $ac_dashdash$ac_option in
   940   --)
   941     ac_dashdash=yes ;;
   943   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   944     ac_prev=bindir ;;
   945   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   946     bindir=$ac_optarg ;;
   948   -build | --build | --buil | --bui | --bu)
   949     ac_prev=build_alias ;;
   950   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   951     build_alias=$ac_optarg ;;
   953   -cache-file | --cache-file | --cache-fil | --cache-fi \
   954   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   955     ac_prev=cache_file ;;
   956   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   957   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   958     cache_file=$ac_optarg ;;
   960   --config-cache | -C)
   961     cache_file=config.cache ;;
   963   -datadir | --datadir | --datadi | --datad)
   964     ac_prev=datadir ;;
   965   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   966     datadir=$ac_optarg ;;
   968   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   969   | --dataroo | --dataro | --datar)
   970     ac_prev=datarootdir ;;
   971   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   972   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   973     datarootdir=$ac_optarg ;;
   975   -disable-* | --disable-*)
   976     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   977     # Reject names that are not valid shell variable names.
   978     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   979       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   980    { (exit 1); exit 1; }; }
   981     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   982     eval enable_$ac_feature=no ;;
   984   -docdir | --docdir | --docdi | --doc | --do)
   985     ac_prev=docdir ;;
   986   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   987     docdir=$ac_optarg ;;
   989   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   990     ac_prev=dvidir ;;
   991   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   992     dvidir=$ac_optarg ;;
   994   -enable-* | --enable-*)
   995     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   996     # Reject names that are not valid shell variable names.
   997     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   998       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   999    { (exit 1); exit 1; }; }
  1000     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  1001     eval enable_$ac_feature=\$ac_optarg ;;
  1003   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1004   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1005   | --exec | --exe | --ex)
  1006     ac_prev=exec_prefix ;;
  1007   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1008   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1009   | --exec=* | --exe=* | --ex=*)
  1010     exec_prefix=$ac_optarg ;;
  1012   -gas | --gas | --ga | --g)
  1013     # Obsolete; use --with-gas.
  1014     with_gas=yes ;;
  1016   -help | --help | --hel | --he | -h)
  1017     ac_init_help=long ;;
  1018   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1019     ac_init_help=recursive ;;
  1020   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1021     ac_init_help=short ;;
  1023   -host | --host | --hos | --ho)
  1024     ac_prev=host_alias ;;
  1025   -host=* | --host=* | --hos=* | --ho=*)
  1026     host_alias=$ac_optarg ;;
  1028   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1029     ac_prev=htmldir ;;
  1030   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1031   | --ht=*)
  1032     htmldir=$ac_optarg ;;
  1034   -includedir | --includedir | --includedi | --included | --include \
  1035   | --includ | --inclu | --incl | --inc)
  1036     ac_prev=includedir ;;
  1037   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1038   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1039     includedir=$ac_optarg ;;
  1041   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1042     ac_prev=infodir ;;
  1043   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1044     infodir=$ac_optarg ;;
  1046   -libdir | --libdir | --libdi | --libd)
  1047     ac_prev=libdir ;;
  1048   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1049     libdir=$ac_optarg ;;
  1051   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1052   | --libexe | --libex | --libe)
  1053     ac_prev=libexecdir ;;
  1054   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1055   | --libexe=* | --libex=* | --libe=*)
  1056     libexecdir=$ac_optarg ;;
  1058   -localedir | --localedir | --localedi | --localed | --locale)
  1059     ac_prev=localedir ;;
  1060   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1061     localedir=$ac_optarg ;;
  1063   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1064   | --localstate | --localstat | --localsta | --localst | --locals)
  1065     ac_prev=localstatedir ;;
  1066   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1067   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1068     localstatedir=$ac_optarg ;;
  1070   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1071     ac_prev=mandir ;;
  1072   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1073     mandir=$ac_optarg ;;
  1075   -nfp | --nfp | --nf)
  1076     # Obsolete; use --without-fp.
  1077     with_fp=no ;;
  1079   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1080   | --no-cr | --no-c | -n)
  1081     no_create=yes ;;
  1083   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1084   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1085     no_recursion=yes ;;
  1087   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1088   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1089   | --oldin | --oldi | --old | --ol | --o)
  1090     ac_prev=oldincludedir ;;
  1091   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1092   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1093   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1094     oldincludedir=$ac_optarg ;;
  1096   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1097     ac_prev=prefix ;;
  1098   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1099     prefix=$ac_optarg ;;
  1101   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1102   | --program-pre | --program-pr | --program-p)
  1103     ac_prev=program_prefix ;;
  1104   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1105   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1106     program_prefix=$ac_optarg ;;
  1108   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1109   | --program-suf | --program-su | --program-s)
  1110     ac_prev=program_suffix ;;
  1111   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1112   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1113     program_suffix=$ac_optarg ;;
  1115   -program-transform-name | --program-transform-name \
  1116   | --program-transform-nam | --program-transform-na \
  1117   | --program-transform-n | --program-transform- \
  1118   | --program-transform | --program-transfor \
  1119   | --program-transfo | --program-transf \
  1120   | --program-trans | --program-tran \
  1121   | --progr-tra | --program-tr | --program-t)
  1122     ac_prev=program_transform_name ;;
  1123   -program-transform-name=* | --program-transform-name=* \
  1124   | --program-transform-nam=* | --program-transform-na=* \
  1125   | --program-transform-n=* | --program-transform-=* \
  1126   | --program-transform=* | --program-transfor=* \
  1127   | --program-transfo=* | --program-transf=* \
  1128   | --program-trans=* | --program-tran=* \
  1129   | --progr-tra=* | --program-tr=* | --program-t=*)
  1130     program_transform_name=$ac_optarg ;;
  1132   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1133     ac_prev=pdfdir ;;
  1134   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1135     pdfdir=$ac_optarg ;;
  1137   -psdir | --psdir | --psdi | --psd | --ps)
  1138     ac_prev=psdir ;;
  1139   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1140     psdir=$ac_optarg ;;
  1142   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1143   | -silent | --silent | --silen | --sile | --sil)
  1144     silent=yes ;;
  1146   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1147     ac_prev=sbindir ;;
  1148   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1149   | --sbi=* | --sb=*)
  1150     sbindir=$ac_optarg ;;
  1152   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1153   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1154   | --sharedst | --shareds | --shared | --share | --shar \
  1155   | --sha | --sh)
  1156     ac_prev=sharedstatedir ;;
  1157   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1158   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1159   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1160   | --sha=* | --sh=*)
  1161     sharedstatedir=$ac_optarg ;;
  1163   -site | --site | --sit)
  1164     ac_prev=site ;;
  1165   -site=* | --site=* | --sit=*)
  1166     site=$ac_optarg ;;
  1168   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1169     ac_prev=srcdir ;;
  1170   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1171     srcdir=$ac_optarg ;;
  1173   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1174   | --syscon | --sysco | --sysc | --sys | --sy)
  1175     ac_prev=sysconfdir ;;
  1176   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1177   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1178     sysconfdir=$ac_optarg ;;
  1180   -target | --target | --targe | --targ | --tar | --ta | --t)
  1181     ac_prev=target_alias ;;
  1182   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1183     target_alias=$ac_optarg ;;
  1185   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1186     verbose=yes ;;
  1188   -version | --version | --versio | --versi | --vers | -V)
  1189     ac_init_version=: ;;
  1191   -with-* | --with-*)
  1192     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1193     # Reject names that are not valid shell variable names.
  1194     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1195       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1196    { (exit 1); exit 1; }; }
  1197     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1198     eval with_$ac_package=\$ac_optarg ;;
  1200   -without-* | --without-*)
  1201     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1202     # Reject names that are not valid shell variable names.
  1203     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1204       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1205    { (exit 1); exit 1; }; }
  1206     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1207     eval with_$ac_package=no ;;
  1209   --x)
  1210     # Obsolete; use --with-x.
  1211     with_x=yes ;;
  1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1214   | --x-incl | --x-inc | --x-in | --x-i)
  1215     ac_prev=x_includes ;;
  1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1218     x_includes=$ac_optarg ;;
  1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1222     ac_prev=x_libraries ;;
  1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1225     x_libraries=$ac_optarg ;;
  1227   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1228 Try \`$0 --help' for more information." >&2
  1229    { (exit 1); exit 1; }; }
  1230     ;;
  1232   *=*)
  1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1234     # Reject names that are not valid shell variable names.
  1235     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1236       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1237    { (exit 1); exit 1; }; }
  1238     eval $ac_envvar=\$ac_optarg
  1239     export $ac_envvar ;;
  1241   *)
  1242     # FIXME: should be removed in autoconf 3.0.
  1243     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1245       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1246     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1247     ;;
  1249   esac
  1250 done
  1252 if test -n "$ac_prev"; then
  1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1254   { echo "$as_me: error: missing argument to $ac_option" >&2
  1255    { (exit 1); exit 1; }; }
  1256 fi
  1258 # Be sure to have absolute directory names.
  1259 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1260 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1261 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1262 		libdir localedir mandir
  1263 do
  1264   eval ac_val=\$$ac_var
  1265   case $ac_val in
  1266     [\\/$]* | ?:[\\/]* )  continue;;
  1267     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1268   esac
  1269   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1270    { (exit 1); exit 1; }; }
  1271 done
  1273 # There might be people who depend on the old broken behavior: `$host'
  1274 # used to hold the argument of --host etc.
  1275 # FIXME: To remove some day.
  1276 build=$build_alias
  1277 host=$host_alias
  1278 target=$target_alias
  1280 # FIXME: To remove some day.
  1281 if test "x$host_alias" != x; then
  1282   if test "x$build_alias" = x; then
  1283     cross_compiling=maybe
  1284     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1285     If a cross compiler is detected then cross compile mode will be used." >&2
  1286   elif test "x$build_alias" != "x$host_alias"; then
  1287     cross_compiling=yes
  1288   fi
  1289 fi
  1291 ac_tool_prefix=
  1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1294 test "$silent" = yes && exec 6>/dev/null
  1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1298 ac_ls_di=`ls -di .` &&
  1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1300   { echo "$as_me: error: Working directory cannot be determined" >&2
  1301    { (exit 1); exit 1; }; }
  1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1303   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1304    { (exit 1); exit 1; }; }
  1307 # Find the source files, if location was not specified.
  1308 if test -z "$srcdir"; then
  1309   ac_srcdir_defaulted=yes
  1310   # Try the directory containing this script, then the parent directory.
  1311   ac_confdir=`$as_dirname -- "$0" ||
  1312 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1313 	 X"$0" : 'X\(//\)[^/]' \| \
  1314 	 X"$0" : 'X\(//\)$' \| \
  1315 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1316 echo X"$0" |
  1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1318 	    s//\1/
  1321 	  /^X\(\/\/\)[^/].*/{
  1322 	    s//\1/
  1325 	  /^X\(\/\/\)$/{
  1326 	    s//\1/
  1329 	  /^X\(\/\).*/{
  1330 	    s//\1/
  1333 	  s/.*/./; q'`
  1334   srcdir=$ac_confdir
  1335   if test ! -r "$srcdir/$ac_unique_file"; then
  1336     srcdir=..
  1337   fi
  1338 else
  1339   ac_srcdir_defaulted=no
  1340 fi
  1341 if test ! -r "$srcdir/$ac_unique_file"; then
  1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1343   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1344    { (exit 1); exit 1; }; }
  1345 fi
  1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1347 ac_abs_confdir=`(
  1348 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1349    { (exit 1); exit 1; }; }
  1350 	pwd)`
  1351 # When building in place, set srcdir=.
  1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1353   srcdir=.
  1354 fi
  1355 # Remove unnecessary trailing slashes from srcdir.
  1356 # Double slashes in file names in object file debugging info
  1357 # mess up M-x gdb in Emacs.
  1358 case $srcdir in
  1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1360 esac
  1361 for ac_var in $ac_precious_vars; do
  1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1363   eval ac_env_${ac_var}_value=\$${ac_var}
  1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1366 done
  1369 # Report the --help message.
  1371 if test "$ac_init_help" = "long"; then
  1372   # Omit some internal or obsolete options to make the list less imposing.
  1373   # This message is too long to be a string in the A/UX 3.1 sh.
  1374   cat <<_ACEOF
  1375 \`configure' configures this package to adapt to many kinds of systems.
  1377 Usage: $0 [OPTION]... [VAR=VALUE]...
  1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1382 Defaults for the options are specified in brackets.
  1384 Configuration:
  1385   -h, --help              display this help and exit
  1386       --help=short        display options specific to this package
  1387       --help=recursive    display the short help of all the included packages
  1388   -V, --version           display version information and exit
  1389   -q, --quiet, --silent   do not print \`checking...' messages
  1390       --cache-file=FILE   cache test results in FILE [disabled]
  1391   -C, --config-cache      alias for \`--cache-file=config.cache'
  1392   -n, --no-create         do not create output files
  1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1395 Installation directories:
  1396   --prefix=PREFIX         install architecture-independent files in PREFIX
  1397 			  [$ac_default_prefix]
  1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1399 			  [PREFIX]
  1401 By default, \`make install' will install all the files in
  1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404 for instance \`--prefix=\$HOME'.
  1406 For better control, use the options below.
  1408 Fine tuning of the installation directories:
  1409   --bindir=DIR           user executables [EPREFIX/bin]
  1410   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1411   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1412   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1413   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1414   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1415   --libdir=DIR           object code libraries [EPREFIX/lib]
  1416   --includedir=DIR       C header files [PREFIX/include]
  1417   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1418   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1419   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1420   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1421   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1422   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1423   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1424   --htmldir=DIR          html documentation [DOCDIR]
  1425   --dvidir=DIR           dvi documentation [DOCDIR]
  1426   --pdfdir=DIR           pdf documentation [DOCDIR]
  1427   --psdir=DIR            ps documentation [DOCDIR]
  1428 _ACEOF
  1430   cat <<\_ACEOF
  1432 Program names:
  1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1437 System types:
  1438   --build=BUILD     configure for building on BUILD [guessed]
  1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1440 _ACEOF
  1441 fi
  1443 if test -n "$ac_init_help"; then
  1445   cat <<\_ACEOF
  1447 Optional Features:
  1448   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1449   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1450   --enable-maintainer-mode  enable make rules and dependencies not useful
  1451 			  (and sometimes confusing) to the casual installer
  1452   --disable-dependency-tracking  speeds up one-time build
  1453   --enable-dependency-tracking   do not reject slow dependency extractors
  1454   --enable-strict-warn    Enable strict compilation warnings
  1455   --disable-translator    Disable the SH4 translator (Enabled by default)
  1456   --disable-optimized     Disable compile-time optimizations (Enabled by
  1457                           default)
  1458   --enable-shared         Build drivers as shared libraries (Enabled if
  1459                           available)
  1460   --enable-profiled       Enable profiling build
  1461   --enable-trace          Enable generation of IO traces (warning: hurts
  1462                           performance)
  1463   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1464                           performance)
  1465   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1467 Optional Packages:
  1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1470   --with-osmesa           Build with the osmesa GL library (software
  1471                           rendering)
  1472   --with-gtk              Build with the GTK UI. Default on X11 systems
  1473   --with-esd              Build with support for the ESounD audio system
  1474   --with-pulse            Build with support for the PulseAudio audio system
  1475   --with-sdl              Build with support for SDL audio
  1476   --with-sysroot=SYSROOT  Build using an alternate sysroot
  1477   --with-android=SDK      Specify the location of the Android SDK
  1478   --with-android-ndk=NDK  Specify the location of the Android NDK
  1479   --with-android-version  Specify target Android SDK version
  1480   --with-android-version  Specify target Android NDK version
  1481   --with-android-abi      Specify target Android ABI
  1483 Some influential environment variables:
  1484   CC          C compiler command
  1485   CFLAGS      C compiler flags
  1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1487               nonstandard directory <lib dir>
  1488   LIBS        libraries to pass to the linker, e.g. -l<library>
  1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1490               you have headers in a nonstandard directory <include dir>
  1491   CPP         C preprocessor
  1492   OBJC        Objective C compiler command
  1493   OBJCFLAGS   Objective C compiler flags
  1494   CCAS        assembler compiler command (defaults to CC)
  1495   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1496   PKG_CONFIG  path to pkg-config utility
  1497   LIBPNG_CFLAGS
  1498               C compiler flags for LIBPNG, overriding pkg-config
  1499   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1500   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1501   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1502   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1503   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1504   GLIB_FOR_BUILD_CFLAGS
  1505               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1506   GLIB_FOR_BUILD_LIBS
  1507               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1508   LIBISOFS_CFLAGS
  1509               C compiler flags for LIBISOFS, overriding pkg-config
  1510   LIBISOFS_LIBS
  1511               linker flags for LIBISOFS, overriding pkg-config
  1512   LIBGL_CFLAGS
  1513               C compiler flags for LIBGL, overriding pkg-config
  1514   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1515   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1516   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1517   PULSE_CFLAGS
  1518               C compiler flags for PULSE, overriding pkg-config
  1519   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1520   ESOUND_CFLAGS
  1521               C compiler flags for ESOUND, overriding pkg-config
  1522   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1523   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1524   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1526 Use these variables to override the choices made by `configure' or to help
  1527 it to find libraries and programs with nonstandard names/locations.
  1529 _ACEOF
  1530 ac_status=$?
  1531 fi
  1533 if test "$ac_init_help" = "recursive"; then
  1534   # If there are subdirs, report their specific --help.
  1535   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1536     test -d "$ac_dir" || continue
  1537     ac_builddir=.
  1539 case "$ac_dir" in
  1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1541 *)
  1542   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1543   # A ".." for each directory in $ac_dir_suffix.
  1544   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1545   case $ac_top_builddir_sub in
  1546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1548   esac ;;
  1549 esac
  1550 ac_abs_top_builddir=$ac_pwd
  1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1552 # for backward compatibility:
  1553 ac_top_builddir=$ac_top_build_prefix
  1555 case $srcdir in
  1556   .)  # We are building in place.
  1557     ac_srcdir=.
  1558     ac_top_srcdir=$ac_top_builddir_sub
  1559     ac_abs_top_srcdir=$ac_pwd ;;
  1560   [\\/]* | ?:[\\/]* )  # Absolute name.
  1561     ac_srcdir=$srcdir$ac_dir_suffix;
  1562     ac_top_srcdir=$srcdir
  1563     ac_abs_top_srcdir=$srcdir ;;
  1564   *) # Relative name.
  1565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1566     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1568 esac
  1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1571     cd "$ac_dir" || { ac_status=$?; continue; }
  1572     # Check for guested configure.
  1573     if test -f "$ac_srcdir/configure.gnu"; then
  1574       echo &&
  1575       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1576     elif test -f "$ac_srcdir/configure"; then
  1577       echo &&
  1578       $SHELL "$ac_srcdir/configure" --help=recursive
  1579     else
  1580       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1581     fi || ac_status=$?
  1582     cd "$ac_pwd" || { ac_status=$?; break; }
  1583   done
  1584 fi
  1586 test -n "$ac_init_help" && exit $ac_status
  1587 if $ac_init_version; then
  1588   cat <<\_ACEOF
  1589 configure
  1590 generated by GNU Autoconf 2.61
  1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1593 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1594 This configure script is free software; the Free Software Foundation
  1595 gives unlimited permission to copy, distribute and modify it.
  1596 _ACEOF
  1597   exit
  1598 fi
  1599 cat >config.log <<_ACEOF
  1600 This file contains any messages produced by compilers while
  1601 running configure, to aid debugging if configure makes a mistake.
  1603 It was created by $as_me, which was
  1604 generated by GNU Autoconf 2.61.  Invocation command line was
  1606   $ $0 $@
  1608 _ACEOF
  1609 exec 5>>config.log
  1611 cat <<_ASUNAME
  1612 ## --------- ##
  1613 ## Platform. ##
  1614 ## --------- ##
  1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1623 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1625 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1626 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1628 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1629 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1630 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1631 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1633 _ASUNAME
  1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1636 for as_dir in $PATH
  1637 do
  1638   IFS=$as_save_IFS
  1639   test -z "$as_dir" && as_dir=.
  1640   echo "PATH: $as_dir"
  1641 done
  1642 IFS=$as_save_IFS
  1644 } >&5
  1646 cat >&5 <<_ACEOF
  1649 ## ----------- ##
  1650 ## Core tests. ##
  1651 ## ----------- ##
  1653 _ACEOF
  1656 # Keep a trace of the command line.
  1657 # Strip out --no-create and --no-recursion so they do not pile up.
  1658 # Strip out --silent because we don't want to record it for future runs.
  1659 # Also quote any args containing shell meta-characters.
  1660 # Make two passes to allow for proper duplicate-argument suppression.
  1661 ac_configure_args=
  1662 ac_configure_args0=
  1663 ac_configure_args1=
  1664 ac_must_keep_next=false
  1665 for ac_pass in 1 2
  1666 do
  1667   for ac_arg
  1668   do
  1669     case $ac_arg in
  1670     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1671     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1672     | -silent | --silent | --silen | --sile | --sil)
  1673       continue ;;
  1674     *\'*)
  1675       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1676     esac
  1677     case $ac_pass in
  1678     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1679     2)
  1680       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1681       if test $ac_must_keep_next = true; then
  1682 	ac_must_keep_next=false # Got value, back to normal.
  1683       else
  1684 	case $ac_arg in
  1685 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1686 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1687 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1688 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1689 	    case "$ac_configure_args0 " in
  1690 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1691 	    esac
  1692 	    ;;
  1693 	  -* ) ac_must_keep_next=true ;;
  1694 	esac
  1695       fi
  1696       ac_configure_args="$ac_configure_args '$ac_arg'"
  1697       ;;
  1698     esac
  1699   done
  1700 done
  1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1704 # When interrupted or exit'd, cleanup temporary files, and complete
  1705 # config.log.  We remove comments because anyway the quotes in there
  1706 # would cause problems or look ugly.
  1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1709 trap 'exit_status=$?
  1710   # Save into config.log some information that might help in debugging.
  1712     echo
  1714     cat <<\_ASBOX
  1715 ## ---------------- ##
  1716 ## Cache variables. ##
  1717 ## ---------------- ##
  1718 _ASBOX
  1719     echo
  1720     # The following way of writing the cache mishandles newlines in values,
  1722   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1723     eval ac_val=\$$ac_var
  1724     case $ac_val in #(
  1725     *${as_nl}*)
  1726       case $ac_var in #(
  1727       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1729       esac
  1730       case $ac_var in #(
  1731       _ | IFS | as_nl) ;; #(
  1732       *) $as_unset $ac_var ;;
  1733       esac ;;
  1734     esac
  1735   done
  1736   (set) 2>&1 |
  1737     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1738     *${as_nl}ac_space=\ *)
  1739       sed -n \
  1740 	"s/'\''/'\''\\\\'\'''\''/g;
  1741 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1742       ;; #(
  1743     *)
  1744       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1745       ;;
  1746     esac |
  1747     sort
  1749     echo
  1751     cat <<\_ASBOX
  1752 ## ----------------- ##
  1753 ## Output variables. ##
  1754 ## ----------------- ##
  1755 _ASBOX
  1756     echo
  1757     for ac_var in $ac_subst_vars
  1758     do
  1759       eval ac_val=\$$ac_var
  1760       case $ac_val in
  1761       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1762       esac
  1763       echo "$ac_var='\''$ac_val'\''"
  1764     done | sort
  1765     echo
  1767     if test -n "$ac_subst_files"; then
  1768       cat <<\_ASBOX
  1769 ## ------------------- ##
  1770 ## File substitutions. ##
  1771 ## ------------------- ##
  1772 _ASBOX
  1773       echo
  1774       for ac_var in $ac_subst_files
  1775       do
  1776 	eval ac_val=\$$ac_var
  1777 	case $ac_val in
  1778 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1779 	esac
  1780 	echo "$ac_var='\''$ac_val'\''"
  1781       done | sort
  1782       echo
  1783     fi
  1785     if test -s confdefs.h; then
  1786       cat <<\_ASBOX
  1787 ## ----------- ##
  1788 ## confdefs.h. ##
  1789 ## ----------- ##
  1790 _ASBOX
  1791       echo
  1792       cat confdefs.h
  1793       echo
  1794     fi
  1795     test "$ac_signal" != 0 &&
  1796       echo "$as_me: caught signal $ac_signal"
  1797     echo "$as_me: exit $exit_status"
  1798   } >&5
  1799   rm -f core *.core core.conftest.* &&
  1800     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1801     exit $exit_status
  1802 ' 0
  1803 for ac_signal in 1 2 13 15; do
  1804   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1805 done
  1806 ac_signal=0
  1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1809 rm -f -r conftest* confdefs.h
  1811 # Predefined preprocessor variables.
  1813 cat >>confdefs.h <<_ACEOF
  1814 #define PACKAGE_NAME "$PACKAGE_NAME"
  1815 _ACEOF
  1818 cat >>confdefs.h <<_ACEOF
  1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1820 _ACEOF
  1823 cat >>confdefs.h <<_ACEOF
  1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1825 _ACEOF
  1828 cat >>confdefs.h <<_ACEOF
  1829 #define PACKAGE_STRING "$PACKAGE_STRING"
  1830 _ACEOF
  1833 cat >>confdefs.h <<_ACEOF
  1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1835 _ACEOF
  1838 # Let the site file select an alternate cache file if it wants to.
  1839 # Prefer explicitly selected file to automatically selected ones.
  1840 if test -n "$CONFIG_SITE"; then
  1841   set x "$CONFIG_SITE"
  1842 elif test "x$prefix" != xNONE; then
  1843   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1844 else
  1845   set x "$ac_default_prefix/share/config.site" \
  1846 	"$ac_default_prefix/etc/config.site"
  1847 fi
  1848 shift
  1849 for ac_site_file
  1850 do
  1851   if test -r "$ac_site_file"; then
  1852     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1853 echo "$as_me: loading site script $ac_site_file" >&6;}
  1854     sed 's/^/| /' "$ac_site_file" >&5
  1855     . "$ac_site_file"
  1856   fi
  1857 done
  1859 if test -r "$cache_file"; then
  1860   # Some versions of bash will fail to source /dev/null (special
  1861   # files actually), so we avoid doing that.
  1862   if test -f "$cache_file"; then
  1863     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1864 echo "$as_me: loading cache $cache_file" >&6;}
  1865     case $cache_file in
  1866       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1867       *)                      . "./$cache_file";;
  1868     esac
  1869   fi
  1870 else
  1871   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1872 echo "$as_me: creating cache $cache_file" >&6;}
  1873   >$cache_file
  1874 fi
  1876 # Check that the precious variables saved in the cache have kept the same
  1877 # value.
  1878 ac_cache_corrupted=false
  1879 for ac_var in $ac_precious_vars; do
  1880   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1881   eval ac_new_set=\$ac_env_${ac_var}_set
  1882   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1883   eval ac_new_val=\$ac_env_${ac_var}_value
  1884   case $ac_old_set,$ac_new_set in
  1885     set,)
  1886       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1888       ac_cache_corrupted=: ;;
  1889     ,set)
  1890       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1892       ac_cache_corrupted=: ;;
  1893     ,);;
  1894     *)
  1895       if test "x$ac_old_val" != "x$ac_new_val"; then
  1896 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1898 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1899 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1900 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1901 echo "$as_me:   current value: $ac_new_val" >&2;}
  1902 	ac_cache_corrupted=:
  1903       fi;;
  1904   esac
  1905   # Pass precious variables to config.status.
  1906   if test "$ac_new_set" = set; then
  1907     case $ac_new_val in
  1908     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1909     *) ac_arg=$ac_var=$ac_new_val ;;
  1910     esac
  1911     case " $ac_configure_args " in
  1912       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1913       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1914     esac
  1915   fi
  1916 done
  1917 if $ac_cache_corrupted; then
  1918   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1920   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1922    { (exit 1); exit 1; }; }
  1923 fi
  1941 ac_ext=c
  1942 ac_cpp='$CPP $CPPFLAGS'
  1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1948 am__api_version="1.9"
  1949 ac_aux_dir=
  1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1951   if test -f "$ac_dir/install-sh"; then
  1952     ac_aux_dir=$ac_dir
  1953     ac_install_sh="$ac_aux_dir/install-sh -c"
  1954     break
  1955   elif test -f "$ac_dir/install.sh"; then
  1956     ac_aux_dir=$ac_dir
  1957     ac_install_sh="$ac_aux_dir/install.sh -c"
  1958     break
  1959   elif test -f "$ac_dir/shtool"; then
  1960     ac_aux_dir=$ac_dir
  1961     ac_install_sh="$ac_aux_dir/shtool install -c"
  1962     break
  1963   fi
  1964 done
  1965 if test -z "$ac_aux_dir"; then
  1966   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1968    { (exit 1); exit 1; }; }
  1969 fi
  1971 # These three variables are undocumented and unsupported,
  1972 # and are intended to be withdrawn in a future Autoconf release.
  1973 # They can cause serious problems if a builder's source tree is in a directory
  1974 # whose full name contains unusual characters.
  1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1977 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1980 # Find a good install program.  We prefer a C program (faster),
  1981 # so one script is as good as another.  But avoid the broken or
  1982 # incompatible versions:
  1983 # SysV /etc/install, /usr/sbin/install
  1984 # SunOS /usr/etc/install
  1985 # IRIX /sbin/install
  1986 # AIX /bin/install
  1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1991 # OS/2's system install, which has a completely different semantic
  1992 # ./install, which can be erroneously created by make from ./install.sh.
  1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1995 if test -z "$INSTALL"; then
  1996 if test "${ac_cv_path_install+set}" = set; then
  1997   echo $ECHO_N "(cached) $ECHO_C" >&6
  1998 else
  1999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2000 for as_dir in $PATH
  2001 do
  2002   IFS=$as_save_IFS
  2003   test -z "$as_dir" && as_dir=.
  2004   # Account for people who put trailing slashes in PATH elements.
  2005 case $as_dir/ in
  2006   ./ | .// | /cC/* | \
  2007   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2008   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2009   /usr/ucb/* ) ;;
  2010   *)
  2011     # OSF1 and SCO ODT 3.0 have their own names for install.
  2012     # Don't use installbsd from OSF since it installs stuff as root
  2013     # by default.
  2014     for ac_prog in ginstall scoinst install; do
  2015       for ac_exec_ext in '' $ac_executable_extensions; do
  2016 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2017 	  if test $ac_prog = install &&
  2018 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2019 	    # AIX install.  It has an incompatible calling convention.
  2021 	  elif test $ac_prog = install &&
  2022 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2023 	    # program-specific install script used by HP pwplus--don't use.
  2025 	  else
  2026 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2027 	    break 3
  2028 	  fi
  2029 	fi
  2030       done
  2031     done
  2032     ;;
  2033 esac
  2034 done
  2035 IFS=$as_save_IFS
  2038 fi
  2039   if test "${ac_cv_path_install+set}" = set; then
  2040     INSTALL=$ac_cv_path_install
  2041   else
  2042     # As a last resort, use the slow shell script.  Don't cache a
  2043     # value for INSTALL within a source directory, because that will
  2044     # break other packages using the cache if that directory is
  2045     # removed, or if the value is a relative name.
  2046     INSTALL=$ac_install_sh
  2047   fi
  2048 fi
  2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2050 echo "${ECHO_T}$INSTALL" >&6; }
  2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2053 # It thinks the first close brace ends the variable substitution.
  2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2062 # Just in case
  2063 sleep 1
  2064 echo timestamp > conftest.file
  2065 # Do `set' in a subshell so we don't clobber the current shell's
  2066 # arguments.  Must try -L first in case configure is actually a
  2067 # symlink; some systems play weird games with the mod time of symlinks
  2068 # (eg FreeBSD returns the mod time of the symlink's containing
  2069 # directory).
  2070 if (
  2071    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2072    if test "$*" = "X"; then
  2073       # -L didn't work.
  2074       set X `ls -t $srcdir/configure conftest.file`
  2075    fi
  2076    rm -f conftest.file
  2077    if test "$*" != "X $srcdir/configure conftest.file" \
  2078       && test "$*" != "X conftest.file $srcdir/configure"; then
  2080       # If neither matched, then we have a broken ls.  This can happen
  2081       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2082       # broken ls alias from the environment.  This has actually
  2083       # happened.  Such a system could not be considered "sane".
  2084       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2085 alias in your environment" >&5
  2086 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2087 alias in your environment" >&2;}
  2088    { (exit 1); exit 1; }; }
  2089    fi
  2091    test "$2" = conftest.file
  2093 then
  2094    # Ok.
  2096 else
  2097    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2098 Check your system clock" >&5
  2099 echo "$as_me: error: newly created file is older than distributed files!
  2100 Check your system clock" >&2;}
  2101    { (exit 1); exit 1; }; }
  2102 fi
  2103 { echo "$as_me:$LINENO: result: yes" >&5
  2104 echo "${ECHO_T}yes" >&6; }
  2105 test "$program_prefix" != NONE &&
  2106   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2107 # Use a double $ so make ignores it.
  2108 test "$program_suffix" != NONE &&
  2109   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2110 # Double any \ or $.  echo might interpret backslashes.
  2111 # By default was `s,x,x', remove it if useless.
  2112 cat <<\_ACEOF >conftest.sed
  2113 s/[\\$]/&&/g;s/;s,x,x,$//
  2114 _ACEOF
  2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2116 rm -f conftest.sed
  2118 # expand $ac_aux_dir to an absolute path
  2119 am_aux_dir=`cd $ac_aux_dir && pwd`
  2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2122 # Use eval to expand $SHELL
  2123 if eval "$MISSING --run true"; then
  2124   am_missing_run="$MISSING --run "
  2125 else
  2126   am_missing_run=
  2127   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2129 fi
  2131 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2132   # We used to keeping the `.' as first argument, in order to
  2133   # allow $(mkdir_p) to be used without argument.  As in
  2134   #   $(mkdir_p) $(somedir)
  2135   # where $(somedir) is conditionally defined.  However this is wrong
  2136   # for two reasons:
  2137   #  1. if the package is installed by a user who cannot write `.'
  2138   #     make install will fail,
  2139   #  2. the above comment should most certainly read
  2140   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2141   #     so it does not work when $(somedir) is undefined and
  2142   #     $(DESTDIR) is not.
  2143   #  To support the latter case, we have to write
  2144   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2145   #  so the `.' trick is pointless.
  2146   mkdir_p='mkdir -p --'
  2147 else
  2148   # On NextStep and OpenStep, the `mkdir' command does not
  2149   # recognize any option.  It will interpret all options as
  2150   # directories to create, and then abort because `.' already
  2151   # exists.
  2152   for d in ./-p ./--version;
  2153   do
  2154     test -d $d && rmdir $d
  2155   done
  2156   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2157   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2158     mkdir_p='$(mkinstalldirs)'
  2159   else
  2160     mkdir_p='$(install_sh) -d'
  2161   fi
  2162 fi
  2164 for ac_prog in gawk mawk nawk awk
  2165 do
  2166   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2167 set dummy $ac_prog; ac_word=$2
  2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170 if test "${ac_cv_prog_AWK+set}" = set; then
  2171   echo $ECHO_N "(cached) $ECHO_C" >&6
  2172 else
  2173   if test -n "$AWK"; then
  2174   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2175 else
  2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2177 for as_dir in $PATH
  2178 do
  2179   IFS=$as_save_IFS
  2180   test -z "$as_dir" && as_dir=.
  2181   for ac_exec_ext in '' $ac_executable_extensions; do
  2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2183     ac_cv_prog_AWK="$ac_prog"
  2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2185     break 2
  2186   fi
  2187 done
  2188 done
  2189 IFS=$as_save_IFS
  2191 fi
  2192 fi
  2193 AWK=$ac_cv_prog_AWK
  2194 if test -n "$AWK"; then
  2195   { echo "$as_me:$LINENO: result: $AWK" >&5
  2196 echo "${ECHO_T}$AWK" >&6; }
  2197 else
  2198   { echo "$as_me:$LINENO: result: no" >&5
  2199 echo "${ECHO_T}no" >&6; }
  2200 fi
  2203   test -n "$AWK" && break
  2204 done
  2206 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2207 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2208 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2209 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2210   echo $ECHO_N "(cached) $ECHO_C" >&6
  2211 else
  2212   cat >conftest.make <<\_ACEOF
  2213 SHELL = /bin/sh
  2214 all:
  2215 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2216 _ACEOF
  2217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2219   *@@@%%%=?*=@@@%%%*)
  2220     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2221   *)
  2222     eval ac_cv_prog_make_${ac_make}_set=no;;
  2223 esac
  2224 rm -f conftest.make
  2225 fi
  2226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2227   { echo "$as_me:$LINENO: result: yes" >&5
  2228 echo "${ECHO_T}yes" >&6; }
  2229   SET_MAKE=
  2230 else
  2231   { echo "$as_me:$LINENO: result: no" >&5
  2232 echo "${ECHO_T}no" >&6; }
  2233   SET_MAKE="MAKE=${MAKE-make}"
  2234 fi
  2236 rm -rf .tst 2>/dev/null
  2237 mkdir .tst 2>/dev/null
  2238 if test -d .tst; then
  2239   am__leading_dot=.
  2240 else
  2241   am__leading_dot=_
  2242 fi
  2243 rmdir .tst 2>/dev/null
  2245 # test to see if srcdir already configured
  2246 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2247    test -f $srcdir/config.status; then
  2248   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2250    { (exit 1); exit 1; }; }
  2251 fi
  2253 # test whether we have cygpath
  2254 if test -z "$CYGPATH_W"; then
  2255   if (cygpath --version) >/dev/null 2>/dev/null; then
  2256     CYGPATH_W='cygpath -w'
  2257   else
  2258     CYGPATH_W=echo
  2259   fi
  2260 fi
  2263 # Define the identity of the package.
  2264  PACKAGE=lxdream
  2265  VERSION=0.9.1
  2268 cat >>confdefs.h <<_ACEOF
  2269 #define PACKAGE "$PACKAGE"
  2270 _ACEOF
  2273 cat >>confdefs.h <<_ACEOF
  2274 #define VERSION "$VERSION"
  2275 _ACEOF
  2277 # Some tools Automake needs.
  2279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2293 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2295 # Installed binaries are usually stripped using `strip' when the user
  2296 # run `make install-strip'.  However `strip' might not be the right
  2297 # tool to use in cross-compilation environments, therefore Automake
  2298 # will honor the `STRIP' environment variable to overrule this program.
  2299 if test "$cross_compiling" != no; then
  2300   if test -n "$ac_tool_prefix"; then
  2301   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2302 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2305 if test "${ac_cv_prog_STRIP+set}" = set; then
  2306   echo $ECHO_N "(cached) $ECHO_C" >&6
  2307 else
  2308   if test -n "$STRIP"; then
  2309   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2310 else
  2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312 for as_dir in $PATH
  2313 do
  2314   IFS=$as_save_IFS
  2315   test -z "$as_dir" && as_dir=.
  2316   for ac_exec_ext in '' $ac_executable_extensions; do
  2317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2318     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2320     break 2
  2321   fi
  2322 done
  2323 done
  2324 IFS=$as_save_IFS
  2326 fi
  2327 fi
  2328 STRIP=$ac_cv_prog_STRIP
  2329 if test -n "$STRIP"; then
  2330   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2331 echo "${ECHO_T}$STRIP" >&6; }
  2332 else
  2333   { echo "$as_me:$LINENO: result: no" >&5
  2334 echo "${ECHO_T}no" >&6; }
  2335 fi
  2338 fi
  2339 if test -z "$ac_cv_prog_STRIP"; then
  2340   ac_ct_STRIP=$STRIP
  2341   # Extract the first word of "strip", so it can be a program name with args.
  2342 set dummy strip; ac_word=$2
  2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2346   echo $ECHO_N "(cached) $ECHO_C" >&6
  2347 else
  2348   if test -n "$ac_ct_STRIP"; then
  2349   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2350 else
  2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2352 for as_dir in $PATH
  2353 do
  2354   IFS=$as_save_IFS
  2355   test -z "$as_dir" && as_dir=.
  2356   for ac_exec_ext in '' $ac_executable_extensions; do
  2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2358     ac_cv_prog_ac_ct_STRIP="strip"
  2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2360     break 2
  2361   fi
  2362 done
  2363 done
  2364 IFS=$as_save_IFS
  2366 fi
  2367 fi
  2368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2369 if test -n "$ac_ct_STRIP"; then
  2370   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2371 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2372 else
  2373   { echo "$as_me:$LINENO: result: no" >&5
  2374 echo "${ECHO_T}no" >&6; }
  2375 fi
  2377   if test "x$ac_ct_STRIP" = x; then
  2378     STRIP=":"
  2379   else
  2380     case $cross_compiling:$ac_tool_warned in
  2381 yes:)
  2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2383 whose name does not start with the host triplet.  If you think this
  2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2386 whose name does not start with the host triplet.  If you think this
  2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2388 ac_tool_warned=yes ;;
  2389 esac
  2390     STRIP=$ac_ct_STRIP
  2391   fi
  2392 else
  2393   STRIP="$ac_cv_prog_STRIP"
  2394 fi
  2396 fi
  2397 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2399 # We need awk for the "check" target.  The system "awk" is bad on
  2400 # some platforms.
  2401 # Always define AMTAR for backward compatibility.
  2403 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2405 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2411 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2412 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2413     # Check whether --enable-maintainer-mode was given.
  2414 if test "${enable_maintainer_mode+set}" = set; then
  2415   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2416 else
  2417   USE_MAINTAINER_MODE=no
  2418 fi
  2420   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2421 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2424 if test $USE_MAINTAINER_MODE = yes; then
  2425   MAINTAINER_MODE_TRUE=
  2426   MAINTAINER_MODE_FALSE='#'
  2427 else
  2428   MAINTAINER_MODE_TRUE='#'
  2429   MAINTAINER_MODE_FALSE=
  2430 fi
  2432   MAINT=$MAINTAINER_MODE_TRUE
  2435 ac_config_headers="$ac_config_headers config.h"
  2438 # Make sure we can run config.sub.
  2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2440   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2441 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2442    { (exit 1); exit 1; }; }
  2444 { echo "$as_me:$LINENO: checking build system type" >&5
  2445 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2446 if test "${ac_cv_build+set}" = set; then
  2447   echo $ECHO_N "(cached) $ECHO_C" >&6
  2448 else
  2449   ac_build_alias=$build_alias
  2450 test "x$ac_build_alias" = x &&
  2451   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2452 test "x$ac_build_alias" = x &&
  2453   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2454 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2455    { (exit 1); exit 1; }; }
  2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2457   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2458 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2459    { (exit 1); exit 1; }; }
  2461 fi
  2462 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2463 echo "${ECHO_T}$ac_cv_build" >&6; }
  2464 case $ac_cv_build in
  2465 *-*-*) ;;
  2466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2467 echo "$as_me: error: invalid value of canonical build" >&2;}
  2468    { (exit 1); exit 1; }; };;
  2469 esac
  2470 build=$ac_cv_build
  2471 ac_save_IFS=$IFS; IFS='-'
  2472 set x $ac_cv_build
  2473 shift
  2474 build_cpu=$1
  2475 build_vendor=$2
  2476 shift; shift
  2477 # Remember, the first character of IFS is used to create $*,
  2478 # except with old shells:
  2479 build_os=$*
  2480 IFS=$ac_save_IFS
  2481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2484 { echo "$as_me:$LINENO: checking host system type" >&5
  2485 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2486 if test "${ac_cv_host+set}" = set; then
  2487   echo $ECHO_N "(cached) $ECHO_C" >&6
  2488 else
  2489   if test "x$host_alias" = x; then
  2490   ac_cv_host=$ac_cv_build
  2491 else
  2492   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2493     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2494 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2495    { (exit 1); exit 1; }; }
  2496 fi
  2498 fi
  2499 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2500 echo "${ECHO_T}$ac_cv_host" >&6; }
  2501 case $ac_cv_host in
  2502 *-*-*) ;;
  2503 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2504 echo "$as_me: error: invalid value of canonical host" >&2;}
  2505    { (exit 1); exit 1; }; };;
  2506 esac
  2507 host=$ac_cv_host
  2508 ac_save_IFS=$IFS; IFS='-'
  2509 set x $ac_cv_host
  2510 shift
  2511 host_cpu=$1
  2512 host_vendor=$2
  2513 shift; shift
  2514 # Remember, the first character of IFS is used to create $*,
  2515 # except with old shells:
  2516 host_os=$*
  2517 IFS=$ac_save_IFS
  2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2529 # LX_ANDROID_BUILD
  2530 # Defines --with-android, --with-android-ndk, and --with-android-version
  2531 # If specified, checks for a working install, and sets build parameters
  2532 # appropriately for an Android host.
  2536 DEPDIR="${am__leading_dot}deps"
  2538 ac_config_commands="$ac_config_commands depfiles"
  2541 am_make=${MAKE-make}
  2542 cat > confinc << 'END'
  2543 am__doit:
  2544 	@echo done
  2545 .PHONY: am__doit
  2546 END
  2547 # If we don't find an include directive, just comment out the code.
  2548 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2549 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2550 am__include="#"
  2551 am__quote=
  2552 _am_result=none
  2553 # First try GNU make style include.
  2554 echo "include confinc" > confmf
  2555 # We grep out `Entering directory' and `Leaving directory'
  2556 # messages which can occur if `w' ends up in MAKEFLAGS.
  2557 # In particular we don't look at `^make:' because GNU make might
  2558 # be invoked under some other name (usually "gmake"), in which
  2559 # case it prints its new name instead of `make'.
  2560 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2561    am__include=include
  2562    am__quote=
  2563    _am_result=GNU
  2564 fi
  2565 # Now try BSD make style include.
  2566 if test "$am__include" = "#"; then
  2567    echo '.include "confinc"' > confmf
  2568    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2569       am__include=.include
  2570       am__quote="\""
  2571       _am_result=BSD
  2572    fi
  2573 fi
  2576 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2577 echo "${ECHO_T}$_am_result" >&6; }
  2578 rm -f confinc confmf
  2580 # Check whether --enable-dependency-tracking was given.
  2581 if test "${enable_dependency_tracking+set}" = set; then
  2582   enableval=$enable_dependency_tracking;
  2583 fi
  2585 if test "x$enable_dependency_tracking" != xno; then
  2586   am_depcomp="$ac_aux_dir/depcomp"
  2587   AMDEPBACKSLASH='\'
  2588 fi
  2591 if test "x$enable_dependency_tracking" != xno; then
  2592   AMDEP_TRUE=
  2593   AMDEP_FALSE='#'
  2594 else
  2595   AMDEP_TRUE='#'
  2596   AMDEP_FALSE=
  2597 fi
  2601 ac_ext=c
  2602 ac_cpp='$CPP $CPPFLAGS'
  2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2606 if test -n "$ac_tool_prefix"; then
  2607   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2611 if test "${ac_cv_prog_CC+set}" = set; then
  2612   echo $ECHO_N "(cached) $ECHO_C" >&6
  2613 else
  2614   if test -n "$CC"; then
  2615   ac_cv_prog_CC="$CC" # Let the user override the test.
  2616 else
  2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2618 for as_dir in $PATH
  2619 do
  2620   IFS=$as_save_IFS
  2621   test -z "$as_dir" && as_dir=.
  2622   for ac_exec_ext in '' $ac_executable_extensions; do
  2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2624     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2626     break 2
  2627   fi
  2628 done
  2629 done
  2630 IFS=$as_save_IFS
  2632 fi
  2633 fi
  2634 CC=$ac_cv_prog_CC
  2635 if test -n "$CC"; then
  2636   { echo "$as_me:$LINENO: result: $CC" >&5
  2637 echo "${ECHO_T}$CC" >&6; }
  2638 else
  2639   { echo "$as_me:$LINENO: result: no" >&5
  2640 echo "${ECHO_T}no" >&6; }
  2641 fi
  2644 fi
  2645 if test -z "$ac_cv_prog_CC"; then
  2646   ac_ct_CC=$CC
  2647   # Extract the first word of "gcc", so it can be a program name with args.
  2648 set dummy gcc; ac_word=$2
  2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2652   echo $ECHO_N "(cached) $ECHO_C" >&6
  2653 else
  2654   if test -n "$ac_ct_CC"; then
  2655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2656 else
  2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2658 for as_dir in $PATH
  2659 do
  2660   IFS=$as_save_IFS
  2661   test -z "$as_dir" && as_dir=.
  2662   for ac_exec_ext in '' $ac_executable_extensions; do
  2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2664     ac_cv_prog_ac_ct_CC="gcc"
  2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2666     break 2
  2667   fi
  2668 done
  2669 done
  2670 IFS=$as_save_IFS
  2672 fi
  2673 fi
  2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2675 if test -n "$ac_ct_CC"; then
  2676   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2677 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2678 else
  2679   { echo "$as_me:$LINENO: result: no" >&5
  2680 echo "${ECHO_T}no" >&6; }
  2681 fi
  2683   if test "x$ac_ct_CC" = x; then
  2684     CC=""
  2685   else
  2686     case $cross_compiling:$ac_tool_warned in
  2687 yes:)
  2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2689 whose name does not start with the host triplet.  If you think this
  2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2692 whose name does not start with the host triplet.  If you think this
  2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2694 ac_tool_warned=yes ;;
  2695 esac
  2696     CC=$ac_ct_CC
  2697   fi
  2698 else
  2699   CC="$ac_cv_prog_CC"
  2700 fi
  2702 if test -z "$CC"; then
  2703           if test -n "$ac_tool_prefix"; then
  2704     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2705 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2708 if test "${ac_cv_prog_CC+set}" = set; then
  2709   echo $ECHO_N "(cached) $ECHO_C" >&6
  2710 else
  2711   if test -n "$CC"; then
  2712   ac_cv_prog_CC="$CC" # Let the user override the test.
  2713 else
  2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715 for as_dir in $PATH
  2716 do
  2717   IFS=$as_save_IFS
  2718   test -z "$as_dir" && as_dir=.
  2719   for ac_exec_ext in '' $ac_executable_extensions; do
  2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2721     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723     break 2
  2724   fi
  2725 done
  2726 done
  2727 IFS=$as_save_IFS
  2729 fi
  2730 fi
  2731 CC=$ac_cv_prog_CC
  2732 if test -n "$CC"; then
  2733   { echo "$as_me:$LINENO: result: $CC" >&5
  2734 echo "${ECHO_T}$CC" >&6; }
  2735 else
  2736   { echo "$as_me:$LINENO: result: no" >&5
  2737 echo "${ECHO_T}no" >&6; }
  2738 fi
  2741   fi
  2742 fi
  2743 if test -z "$CC"; then
  2744   # Extract the first word of "cc", so it can be a program name with args.
  2745 set dummy cc; ac_word=$2
  2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2748 if test "${ac_cv_prog_CC+set}" = set; then
  2749   echo $ECHO_N "(cached) $ECHO_C" >&6
  2750 else
  2751   if test -n "$CC"; then
  2752   ac_cv_prog_CC="$CC" # Let the user override the test.
  2753 else
  2754   ac_prog_rejected=no
  2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756 for as_dir in $PATH
  2757 do
  2758   IFS=$as_save_IFS
  2759   test -z "$as_dir" && as_dir=.
  2760   for ac_exec_ext in '' $ac_executable_extensions; do
  2761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2763        ac_prog_rejected=yes
  2764        continue
  2765      fi
  2766     ac_cv_prog_CC="cc"
  2767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2768     break 2
  2769   fi
  2770 done
  2771 done
  2772 IFS=$as_save_IFS
  2774 if test $ac_prog_rejected = yes; then
  2775   # We found a bogon in the path, so make sure we never use it.
  2776   set dummy $ac_cv_prog_CC
  2777   shift
  2778   if test $# != 0; then
  2779     # We chose a different compiler from the bogus one.
  2780     # However, it has the same basename, so the bogon will be chosen
  2781     # first if we set CC to just the basename; use the full file name.
  2782     shift
  2783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2784   fi
  2785 fi
  2786 fi
  2787 fi
  2788 CC=$ac_cv_prog_CC
  2789 if test -n "$CC"; then
  2790   { echo "$as_me:$LINENO: result: $CC" >&5
  2791 echo "${ECHO_T}$CC" >&6; }
  2792 else
  2793   { echo "$as_me:$LINENO: result: no" >&5
  2794 echo "${ECHO_T}no" >&6; }
  2795 fi
  2798 fi
  2799 if test -z "$CC"; then
  2800   if test -n "$ac_tool_prefix"; then
  2801   for ac_prog in cl.exe
  2802   do
  2803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2807 if test "${ac_cv_prog_CC+set}" = set; then
  2808   echo $ECHO_N "(cached) $ECHO_C" >&6
  2809 else
  2810   if test -n "$CC"; then
  2811   ac_cv_prog_CC="$CC" # Let the user override the test.
  2812 else
  2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2814 for as_dir in $PATH
  2815 do
  2816   IFS=$as_save_IFS
  2817   test -z "$as_dir" && as_dir=.
  2818   for ac_exec_ext in '' $ac_executable_extensions; do
  2819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2822     break 2
  2823   fi
  2824 done
  2825 done
  2826 IFS=$as_save_IFS
  2828 fi
  2829 fi
  2830 CC=$ac_cv_prog_CC
  2831 if test -n "$CC"; then
  2832   { echo "$as_me:$LINENO: result: $CC" >&5
  2833 echo "${ECHO_T}$CC" >&6; }
  2834 else
  2835   { echo "$as_me:$LINENO: result: no" >&5
  2836 echo "${ECHO_T}no" >&6; }
  2837 fi
  2840     test -n "$CC" && break
  2841   done
  2842 fi
  2843 if test -z "$CC"; then
  2844   ac_ct_CC=$CC
  2845   for ac_prog in cl.exe
  2846 do
  2847   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2848 set dummy $ac_prog; ac_word=$2
  2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2852   echo $ECHO_N "(cached) $ECHO_C" >&6
  2853 else
  2854   if test -n "$ac_ct_CC"; then
  2855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2856 else
  2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858 for as_dir in $PATH
  2859 do
  2860   IFS=$as_save_IFS
  2861   test -z "$as_dir" && as_dir=.
  2862   for ac_exec_ext in '' $ac_executable_extensions; do
  2863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2864     ac_cv_prog_ac_ct_CC="$ac_prog"
  2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866     break 2
  2867   fi
  2868 done
  2869 done
  2870 IFS=$as_save_IFS
  2872 fi
  2873 fi
  2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2875 if test -n "$ac_ct_CC"; then
  2876   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2877 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2878 else
  2879   { echo "$as_me:$LINENO: result: no" >&5
  2880 echo "${ECHO_T}no" >&6; }
  2881 fi
  2884   test -n "$ac_ct_CC" && break
  2885 done
  2887   if test "x$ac_ct_CC" = x; then
  2888     CC=""
  2889   else
  2890     case $cross_compiling:$ac_tool_warned in
  2891 yes:)
  2892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2893 whose name does not start with the host triplet.  If you think this
  2894 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2896 whose name does not start with the host triplet.  If you think this
  2897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2898 ac_tool_warned=yes ;;
  2899 esac
  2900     CC=$ac_ct_CC
  2901   fi
  2902 fi
  2904 fi
  2907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2908 See \`config.log' for more details." >&5
  2909 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2910 See \`config.log' for more details." >&2;}
  2911    { (exit 1); exit 1; }; }
  2913 # Provide some information about the compiler.
  2914 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2915 ac_compiler=`set X $ac_compile; echo $2`
  2916 { (ac_try="$ac_compiler --version >&5"
  2917 case "(($ac_try" in
  2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919   *) ac_try_echo=$ac_try;;
  2920 esac
  2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2922   (eval "$ac_compiler --version >&5") 2>&5
  2923   ac_status=$?
  2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2925   (exit $ac_status); }
  2926 { (ac_try="$ac_compiler -v >&5"
  2927 case "(($ac_try" in
  2928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2929   *) ac_try_echo=$ac_try;;
  2930 esac
  2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2932   (eval "$ac_compiler -v >&5") 2>&5
  2933   ac_status=$?
  2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935   (exit $ac_status); }
  2936 { (ac_try="$ac_compiler -V >&5"
  2937 case "(($ac_try" in
  2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2939   *) ac_try_echo=$ac_try;;
  2940 esac
  2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2942   (eval "$ac_compiler -V >&5") 2>&5
  2943   ac_status=$?
  2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2945   (exit $ac_status); }
  2947 cat >conftest.$ac_ext <<_ACEOF
  2948 /* confdefs.h.  */
  2949 _ACEOF
  2950 cat confdefs.h >>conftest.$ac_ext
  2951 cat >>conftest.$ac_ext <<_ACEOF
  2952 /* end confdefs.h.  */
  2954 int
  2955 main ()
  2959   return 0;
  2961 _ACEOF
  2962 ac_clean_files_save=$ac_clean_files
  2963 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2964 # Try to create an executable without -o first, disregard a.out.
  2965 # It will help us diagnose broken compilers, and finding out an intuition
  2966 # of exeext.
  2967 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2968 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2969 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2971 # List of possible output files, starting from the most likely.
  2972 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2973 # only as a last resort.  b.out is created by i960 compilers.
  2974 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2976 # The IRIX 6 linker writes into existing files which may not be
  2977 # executable, retaining their permissions.  Remove them first so a
  2978 # subsequent execution test works.
  2979 ac_rmfiles=
  2980 for ac_file in $ac_files
  2981 do
  2982   case $ac_file in
  2983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2984     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2985   esac
  2986 done
  2987 rm -f $ac_rmfiles
  2989 if { (ac_try="$ac_link_default"
  2990 case "(($ac_try" in
  2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2992   *) ac_try_echo=$ac_try;;
  2993 esac
  2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2995   (eval "$ac_link_default") 2>&5
  2996   ac_status=$?
  2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2998   (exit $ac_status); }; then
  2999   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3001 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3002 # so that the user can short-circuit this test for compilers unknown to
  3003 # Autoconf.
  3004 for ac_file in $ac_files ''
  3005 do
  3006   test -f "$ac_file" || continue
  3007   case $ac_file in
  3008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3009 	;;
  3010     [ab].out )
  3011 	# We found the default executable, but exeext='' is most
  3012 	# certainly right.
  3013 	break;;
  3014     *.* )
  3015         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3016 	then :; else
  3017 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3018 	fi
  3019 	# We set ac_cv_exeext here because the later test for it is not
  3020 	# safe: cross compilers may not add the suffix if given an `-o'
  3021 	# argument, so we may need to know it at that point already.
  3022 	# Even if this section looks crufty: it has the advantage of
  3023 	# actually working.
  3024 	break;;
  3025     * )
  3026 	break;;
  3027   esac
  3028 done
  3029 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3031 else
  3032   ac_file=''
  3033 fi
  3035 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3036 echo "${ECHO_T}$ac_file" >&6; }
  3037 if test -z "$ac_file"; then
  3038   echo "$as_me: failed program was:" >&5
  3039 sed 's/^/| /' conftest.$ac_ext >&5
  3041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3042 See \`config.log' for more details." >&5
  3043 echo "$as_me: error: C compiler cannot create executables
  3044 See \`config.log' for more details." >&2;}
  3045    { (exit 77); exit 77; }; }
  3046 fi
  3048 ac_exeext=$ac_cv_exeext
  3050 # Check that the compiler produces executables we can run.  If not, either
  3051 # the compiler is broken, or we cross compile.
  3052 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3055 # If not cross compiling, check that we can run a simple program.
  3056 if test "$cross_compiling" != yes; then
  3057   if { ac_try='./$ac_file'
  3058   { (case "(($ac_try" in
  3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3060   *) ac_try_echo=$ac_try;;
  3061 esac
  3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3063   (eval "$ac_try") 2>&5
  3064   ac_status=$?
  3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3066   (exit $ac_status); }; }; then
  3067     cross_compiling=no
  3068   else
  3069     if test "$cross_compiling" = maybe; then
  3070 	cross_compiling=yes
  3071     else
  3072 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3073 If you meant to cross compile, use \`--host'.
  3074 See \`config.log' for more details." >&5
  3075 echo "$as_me: error: cannot run C compiled programs.
  3076 If you meant to cross compile, use \`--host'.
  3077 See \`config.log' for more details." >&2;}
  3078    { (exit 1); exit 1; }; }
  3079     fi
  3080   fi
  3081 fi
  3082 { echo "$as_me:$LINENO: result: yes" >&5
  3083 echo "${ECHO_T}yes" >&6; }
  3085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3086 ac_clean_files=$ac_clean_files_save
  3087 # Check that the compiler produces executables we can run.  If not, either
  3088 # the compiler is broken, or we cross compile.
  3089 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3091 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3092 echo "${ECHO_T}$cross_compiling" >&6; }
  3094 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3096 if { (ac_try="$ac_link"
  3097 case "(($ac_try" in
  3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3099   *) ac_try_echo=$ac_try;;
  3100 esac
  3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3102   (eval "$ac_link") 2>&5
  3103   ac_status=$?
  3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3105   (exit $ac_status); }; then
  3106   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3107 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3108 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3109 # `rm'.
  3110 for ac_file in conftest.exe conftest conftest.*; do
  3111   test -f "$ac_file" || continue
  3112   case $ac_file in
  3113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3114     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3115 	  break;;
  3116     * ) break;;
  3117   esac
  3118 done
  3119 else
  3120   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3121 See \`config.log' for more details." >&5
  3122 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3123 See \`config.log' for more details." >&2;}
  3124    { (exit 1); exit 1; }; }
  3125 fi
  3127 rm -f conftest$ac_cv_exeext
  3128 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3129 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3131 rm -f conftest.$ac_ext
  3132 EXEEXT=$ac_cv_exeext
  3133 ac_exeext=$EXEEXT
  3134 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3135 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3136 if test "${ac_cv_objext+set}" = set; then
  3137   echo $ECHO_N "(cached) $ECHO_C" >&6
  3138 else
  3139   cat >conftest.$ac_ext <<_ACEOF
  3140 /* confdefs.h.  */
  3141 _ACEOF
  3142 cat confdefs.h >>conftest.$ac_ext
  3143 cat >>conftest.$ac_ext <<_ACEOF
  3144 /* end confdefs.h.  */
  3146 int
  3147 main ()
  3151   return 0;
  3153 _ACEOF
  3154 rm -f conftest.o conftest.obj
  3155 if { (ac_try="$ac_compile"
  3156 case "(($ac_try" in
  3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3158   *) ac_try_echo=$ac_try;;
  3159 esac
  3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3161   (eval "$ac_compile") 2>&5
  3162   ac_status=$?
  3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3164   (exit $ac_status); }; then
  3165   for ac_file in conftest.o conftest.obj conftest.*; do
  3166   test -f "$ac_file" || continue;
  3167   case $ac_file in
  3168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3169     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3170        break;;
  3171   esac
  3172 done
  3173 else
  3174   echo "$as_me: failed program was:" >&5
  3175 sed 's/^/| /' conftest.$ac_ext >&5
  3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3178 See \`config.log' for more details." >&5
  3179 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3180 See \`config.log' for more details." >&2;}
  3181    { (exit 1); exit 1; }; }
  3182 fi
  3184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3185 fi
  3186 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3187 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3188 OBJEXT=$ac_cv_objext
  3189 ac_objext=$OBJEXT
  3190 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3191 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3192 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3193   echo $ECHO_N "(cached) $ECHO_C" >&6
  3194 else
  3195   cat >conftest.$ac_ext <<_ACEOF
  3196 /* confdefs.h.  */
  3197 _ACEOF
  3198 cat confdefs.h >>conftest.$ac_ext
  3199 cat >>conftest.$ac_ext <<_ACEOF
  3200 /* end confdefs.h.  */
  3202 int
  3203 main ()
  3205 #ifndef __GNUC__
  3206        choke me
  3207 #endif
  3210   return 0;
  3212 _ACEOF
  3213 rm -f conftest.$ac_objext
  3214 if { (ac_try="$ac_compile"
  3215 case "(($ac_try" in
  3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3217   *) ac_try_echo=$ac_try;;
  3218 esac
  3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3220   (eval "$ac_compile") 2>conftest.er1
  3221   ac_status=$?
  3222   grep -v '^ *+' conftest.er1 >conftest.err
  3223   rm -f conftest.er1
  3224   cat conftest.err >&5
  3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226   (exit $ac_status); } && {
  3227 	 test -z "$ac_c_werror_flag" ||
  3228 	 test ! -s conftest.err
  3229        } && test -s conftest.$ac_objext; then
  3230   ac_compiler_gnu=yes
  3231 else
  3232   echo "$as_me: failed program was:" >&5
  3233 sed 's/^/| /' conftest.$ac_ext >&5
  3235 	ac_compiler_gnu=no
  3236 fi
  3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3241 fi
  3242 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3244 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3245 ac_test_CFLAGS=${CFLAGS+set}
  3246 ac_save_CFLAGS=$CFLAGS
  3247 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3249 if test "${ac_cv_prog_cc_g+set}" = set; then
  3250   echo $ECHO_N "(cached) $ECHO_C" >&6
  3251 else
  3252   ac_save_c_werror_flag=$ac_c_werror_flag
  3253    ac_c_werror_flag=yes
  3254    ac_cv_prog_cc_g=no
  3255    CFLAGS="-g"
  3256    cat >conftest.$ac_ext <<_ACEOF
  3257 /* confdefs.h.  */
  3258 _ACEOF
  3259 cat confdefs.h >>conftest.$ac_ext
  3260 cat >>conftest.$ac_ext <<_ACEOF
  3261 /* end confdefs.h.  */
  3263 int
  3264 main ()
  3268   return 0;
  3270 _ACEOF
  3271 rm -f conftest.$ac_objext
  3272 if { (ac_try="$ac_compile"
  3273 case "(($ac_try" in
  3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275   *) ac_try_echo=$ac_try;;
  3276 esac
  3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3278   (eval "$ac_compile") 2>conftest.er1
  3279   ac_status=$?
  3280   grep -v '^ *+' conftest.er1 >conftest.err
  3281   rm -f conftest.er1
  3282   cat conftest.err >&5
  3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3284   (exit $ac_status); } && {
  3285 	 test -z "$ac_c_werror_flag" ||
  3286 	 test ! -s conftest.err
  3287        } && test -s conftest.$ac_objext; then
  3288   ac_cv_prog_cc_g=yes
  3289 else
  3290   echo "$as_me: failed program was:" >&5
  3291 sed 's/^/| /' conftest.$ac_ext >&5
  3293 	CFLAGS=""
  3294       cat >conftest.$ac_ext <<_ACEOF
  3295 /* confdefs.h.  */
  3296 _ACEOF
  3297 cat confdefs.h >>conftest.$ac_ext
  3298 cat >>conftest.$ac_ext <<_ACEOF
  3299 /* end confdefs.h.  */
  3301 int
  3302 main ()
  3306   return 0;
  3308 _ACEOF
  3309 rm -f conftest.$ac_objext
  3310 if { (ac_try="$ac_compile"
  3311 case "(($ac_try" in
  3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3313   *) ac_try_echo=$ac_try;;
  3314 esac
  3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3316   (eval "$ac_compile") 2>conftest.er1
  3317   ac_status=$?
  3318   grep -v '^ *+' conftest.er1 >conftest.err
  3319   rm -f conftest.er1
  3320   cat conftest.err >&5
  3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322   (exit $ac_status); } && {
  3323 	 test -z "$ac_c_werror_flag" ||
  3324 	 test ! -s conftest.err
  3325        } && test -s conftest.$ac_objext; then
  3327 else
  3328   echo "$as_me: failed program was:" >&5
  3329 sed 's/^/| /' conftest.$ac_ext >&5
  3331 	ac_c_werror_flag=$ac_save_c_werror_flag
  3332 	 CFLAGS="-g"
  3333 	 cat >conftest.$ac_ext <<_ACEOF
  3334 /* confdefs.h.  */
  3335 _ACEOF
  3336 cat confdefs.h >>conftest.$ac_ext
  3337 cat >>conftest.$ac_ext <<_ACEOF
  3338 /* end confdefs.h.  */
  3340 int
  3341 main ()
  3345   return 0;
  3347 _ACEOF
  3348 rm -f conftest.$ac_objext
  3349 if { (ac_try="$ac_compile"
  3350 case "(($ac_try" in
  3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3352   *) ac_try_echo=$ac_try;;
  3353 esac
  3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3355   (eval "$ac_compile") 2>conftest.er1
  3356   ac_status=$?
  3357   grep -v '^ *+' conftest.er1 >conftest.err
  3358   rm -f conftest.er1
  3359   cat conftest.err >&5
  3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3361   (exit $ac_status); } && {
  3362 	 test -z "$ac_c_werror_flag" ||
  3363 	 test ! -s conftest.err
  3364        } && test -s conftest.$ac_objext; then
  3365   ac_cv_prog_cc_g=yes
  3366 else
  3367   echo "$as_me: failed program was:" >&5
  3368 sed 's/^/| /' conftest.$ac_ext >&5
  3371 fi
  3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3374 fi
  3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377 fi
  3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380    ac_c_werror_flag=$ac_save_c_werror_flag
  3381 fi
  3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3384 if test "$ac_test_CFLAGS" = set; then
  3385   CFLAGS=$ac_save_CFLAGS
  3386 elif test $ac_cv_prog_cc_g = yes; then
  3387   if test "$GCC" = yes; then
  3388     CFLAGS="-g -O2"
  3389   else
  3390     CFLAGS="-g"
  3391   fi
  3392 else
  3393   if test "$GCC" = yes; then
  3394     CFLAGS="-O2"
  3395   else
  3396     CFLAGS=
  3397   fi
  3398 fi
  3399 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3400 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3401 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3402   echo $ECHO_N "(cached) $ECHO_C" >&6
  3403 else
  3404   ac_cv_prog_cc_c89=no
  3405 ac_save_CC=$CC
  3406 cat >conftest.$ac_ext <<_ACEOF
  3407 /* confdefs.h.  */
  3408 _ACEOF
  3409 cat confdefs.h >>conftest.$ac_ext
  3410 cat >>conftest.$ac_ext <<_ACEOF
  3411 /* end confdefs.h.  */
  3412 #include <stdarg.h>
  3413 #include <stdio.h>
  3414 #include <sys/types.h>
  3415 #include <sys/stat.h>
  3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3417 struct buf { int x; };
  3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3419 static char *e (p, i)
  3420      char **p;
  3421      int i;
  3423   return p[i];
  3425 static char *f (char * (*g) (char **, int), char **p, ...)
  3427   char *s;
  3428   va_list v;
  3429   va_start (v,p);
  3430   s = g (p, va_arg (v,int));
  3431   va_end (v);
  3432   return s;
  3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3436    function prototypes and stuff, but not '\xHH' hex character constants.
  3437    These don't provoke an error unfortunately, instead are silently treated
  3438    as 'x'.  The following induces an error, until -std is added to get
  3439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3440    array size at least.  It's necessary to write '\x00'==0 to get something
  3441    that's true only with -std.  */
  3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3445    inside strings and character constants.  */
  3446 #define FOO(x) 'x'
  3447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3449 int test (int i, double x);
  3450 struct s1 {int (*f) (int a);};
  3451 struct s2 {int (*f) (double a);};
  3452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3453 int argc;
  3454 char **argv;
  3455 int
  3456 main ()
  3458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3460   return 0;
  3462 _ACEOF
  3463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3464 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3465 do
  3466   CC="$ac_save_CC $ac_arg"
  3467   rm -f conftest.$ac_objext
  3468 if { (ac_try="$ac_compile"
  3469 case "(($ac_try" in
  3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471   *) ac_try_echo=$ac_try;;
  3472 esac
  3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3474   (eval "$ac_compile") 2>conftest.er1
  3475   ac_status=$?
  3476   grep -v '^ *+' conftest.er1 >conftest.err
  3477   rm -f conftest.er1
  3478   cat conftest.err >&5
  3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480   (exit $ac_status); } && {
  3481 	 test -z "$ac_c_werror_flag" ||
  3482 	 test ! -s conftest.err
  3483        } && test -s conftest.$ac_objext; then
  3484   ac_cv_prog_cc_c89=$ac_arg
  3485 else
  3486   echo "$as_me: failed program was:" >&5
  3487 sed 's/^/| /' conftest.$ac_ext >&5
  3490 fi
  3492 rm -f core conftest.err conftest.$ac_objext
  3493   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3494 done
  3495 rm -f conftest.$ac_ext
  3496 CC=$ac_save_CC
  3498 fi
  3499 # AC_CACHE_VAL
  3500 case "x$ac_cv_prog_cc_c89" in
  3501   x)
  3502     { echo "$as_me:$LINENO: result: none needed" >&5
  3503 echo "${ECHO_T}none needed" >&6; } ;;
  3504   xno)
  3505     { echo "$as_me:$LINENO: result: unsupported" >&5
  3506 echo "${ECHO_T}unsupported" >&6; } ;;
  3507   *)
  3508     CC="$CC $ac_cv_prog_cc_c89"
  3509     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3510 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3511 esac
  3514 ac_ext=c
  3515 ac_cpp='$CPP $CPPFLAGS'
  3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3520 depcc="$CC"   am_compiler_list=
  3522 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3523 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3525   echo $ECHO_N "(cached) $ECHO_C" >&6
  3526 else
  3527   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3528   # We make a subdir and do the tests there.  Otherwise we can end up
  3529   # making bogus files that we don't know about and never remove.  For
  3530   # instance it was reported that on HP-UX the gcc test will end up
  3531   # making a dummy file named `D' -- because `-MD' means `put the output
  3532   # in D'.
  3533   mkdir conftest.dir
  3534   # Copy depcomp to subdir because otherwise we won't find it if we're
  3535   # using a relative directory.
  3536   cp "$am_depcomp" conftest.dir
  3537   cd conftest.dir
  3538   # We will build objects and dependencies in a subdirectory because
  3539   # it helps to detect inapplicable dependency modes.  For instance
  3540   # both Tru64's cc and ICC support -MD to output dependencies as a
  3541   # side effect of compilation, but ICC will put the dependencies in
  3542   # the current directory while Tru64 will put them in the object
  3543   # directory.
  3544   mkdir sub
  3546   am_cv_CC_dependencies_compiler_type=none
  3547   if test "$am_compiler_list" = ""; then
  3548      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3549   fi
  3550   for depmode in $am_compiler_list; do
  3551     # Setup a source with many dependencies, because some compilers
  3552     # like to wrap large dependency lists on column 80 (with \), and
  3553     # we should not choose a depcomp mode which is confused by this.
  3555     # We need to recreate these files for each test, as the compiler may
  3556     # overwrite some of them when testing with obscure command lines.
  3557     # This happens at least with the AIX C compiler.
  3558     : > sub/conftest.c
  3559     for i in 1 2 3 4 5 6; do
  3560       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3561       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3562       # Solaris 8's {/usr,}/bin/sh.
  3563       touch sub/conftst$i.h
  3564     done
  3565     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3567     case $depmode in
  3568     nosideeffect)
  3569       # after this tag, mechanisms are not by side-effect, so they'll
  3570       # only be used when explicitly requested
  3571       if test "x$enable_dependency_tracking" = xyes; then
  3572 	continue
  3573       else
  3574 	break
  3575       fi
  3576       ;;
  3577     none) break ;;
  3578     esac
  3579     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3580     # mode.  It turns out that the SunPro C++ compiler does not properly
  3581     # handle `-M -o', and we need to detect this.
  3582     if depmode=$depmode \
  3583        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3584        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3585        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3586          >/dev/null 2>conftest.err &&
  3587        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3588        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3589        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3590       # icc doesn't choke on unknown options, it will just issue warnings
  3591       # or remarks (even with -Werror).  So we grep stderr for any message
  3592       # that says an option was ignored or not supported.
  3593       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3594       #   icc: Command line warning: ignoring option '-M'; no argument required
  3595       # The diagnosis changed in icc 8.0:
  3596       #   icc: Command line remark: option '-MP' not supported
  3597       if (grep 'ignoring option' conftest.err ||
  3598           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3599         am_cv_CC_dependencies_compiler_type=$depmode
  3600         break
  3601       fi
  3602     fi
  3603   done
  3605   cd ..
  3606   rm -rf conftest.dir
  3607 else
  3608   am_cv_CC_dependencies_compiler_type=none
  3609 fi
  3611 fi
  3612 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3613 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3614 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3618 if
  3619   test "x$enable_dependency_tracking" != xno \
  3620   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3621   am__fastdepCC_TRUE=
  3622   am__fastdepCC_FALSE='#'
  3623 else
  3624   am__fastdepCC_TRUE='#'
  3625   am__fastdepCC_FALSE=
  3626 fi
  3631         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3632 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3633 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3634   echo $ECHO_N "(cached) $ECHO_C" >&6
  3635 else
  3636   ac_check_lib_save_LIBS=$LIBS
  3637 LIBS="-lcposix  $LIBS"
  3638 cat >conftest.$ac_ext <<_ACEOF
  3639 /* confdefs.h.  */
  3640 _ACEOF
  3641 cat confdefs.h >>conftest.$ac_ext
  3642 cat >>conftest.$ac_ext <<_ACEOF
  3643 /* end confdefs.h.  */
  3645 /* Override any GCC internal prototype to avoid an error.
  3646    Use char because int might match the return type of a GCC
  3647    builtin and then its argument prototype would still apply.  */
  3648 #ifdef __cplusplus
  3649 extern "C"
  3650 #endif
  3651 char strerror ();
  3652 int
  3653 main ()
  3655 return strerror ();
  3657   return 0;
  3659 _ACEOF
  3660 rm -f conftest.$ac_objext conftest$ac_exeext
  3661 if { (ac_try="$ac_link"
  3662 case "(($ac_try" in
  3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3664   *) ac_try_echo=$ac_try;;
  3665 esac
  3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3667   (eval "$ac_link") 2>conftest.er1
  3668   ac_status=$?
  3669   grep -v '^ *+' conftest.er1 >conftest.err
  3670   rm -f conftest.er1
  3671   cat conftest.err >&5
  3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3673   (exit $ac_status); } && {
  3674 	 test -z "$ac_c_werror_flag" ||
  3675 	 test ! -s conftest.err
  3676        } && test -s conftest$ac_exeext &&
  3677        $as_test_x conftest$ac_exeext; then
  3678   ac_cv_lib_cposix_strerror=yes
  3679 else
  3680   echo "$as_me: failed program was:" >&5
  3681 sed 's/^/| /' conftest.$ac_ext >&5
  3683 	ac_cv_lib_cposix_strerror=no
  3684 fi
  3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3687       conftest$ac_exeext conftest.$ac_ext
  3688 LIBS=$ac_check_lib_save_LIBS
  3689 fi
  3690 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3691 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3692 if test $ac_cv_lib_cposix_strerror = yes; then
  3693   LIBS="$LIBS -lcposix"
  3694 fi
  3698 ac_ext=c
  3699 ac_cpp='$CPP $CPPFLAGS'
  3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3703 if test -n "$ac_tool_prefix"; then
  3704   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3705 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3708 if test "${ac_cv_prog_CC+set}" = set; then
  3709   echo $ECHO_N "(cached) $ECHO_C" >&6
  3710 else
  3711   if test -n "$CC"; then
  3712   ac_cv_prog_CC="$CC" # Let the user override the test.
  3713 else
  3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3715 for as_dir in $PATH
  3716 do
  3717   IFS=$as_save_IFS
  3718   test -z "$as_dir" && as_dir=.
  3719   for ac_exec_ext in '' $ac_executable_extensions; do
  3720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3721     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3723     break 2
  3724   fi
  3725 done
  3726 done
  3727 IFS=$as_save_IFS
  3729 fi
  3730 fi
  3731 CC=$ac_cv_prog_CC
  3732 if test -n "$CC"; then
  3733   { echo "$as_me:$LINENO: result: $CC" >&5
  3734 echo "${ECHO_T}$CC" >&6; }
  3735 else
  3736   { echo "$as_me:$LINENO: result: no" >&5
  3737 echo "${ECHO_T}no" >&6; }
  3738 fi
  3741 fi
  3742 if test -z "$ac_cv_prog_CC"; then
  3743   ac_ct_CC=$CC
  3744   # Extract the first word of "gcc", so it can be a program name with args.
  3745 set dummy gcc; ac_word=$2
  3746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3749   echo $ECHO_N "(cached) $ECHO_C" >&6
  3750 else
  3751   if test -n "$ac_ct_CC"; then
  3752   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3753 else
  3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755 for as_dir in $PATH
  3756 do
  3757   IFS=$as_save_IFS
  3758   test -z "$as_dir" && as_dir=.
  3759   for ac_exec_ext in '' $ac_executable_extensions; do
  3760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3761     ac_cv_prog_ac_ct_CC="gcc"
  3762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763     break 2
  3764   fi
  3765 done
  3766 done
  3767 IFS=$as_save_IFS
  3769 fi
  3770 fi
  3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3772 if test -n "$ac_ct_CC"; then
  3773   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3774 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3775 else
  3776   { echo "$as_me:$LINENO: result: no" >&5
  3777 echo "${ECHO_T}no" >&6; }
  3778 fi
  3780   if test "x$ac_ct_CC" = x; then
  3781     CC=""
  3782   else
  3783     case $cross_compiling:$ac_tool_warned in
  3784 yes:)
  3785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3786 whose name does not start with the host triplet.  If you think this
  3787 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3789 whose name does not start with the host triplet.  If you think this
  3790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3791 ac_tool_warned=yes ;;
  3792 esac
  3793     CC=$ac_ct_CC
  3794   fi
  3795 else
  3796   CC="$ac_cv_prog_CC"
  3797 fi
  3799 if test -z "$CC"; then
  3800           if test -n "$ac_tool_prefix"; then
  3801     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3802 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3805 if test "${ac_cv_prog_CC+set}" = set; then
  3806   echo $ECHO_N "(cached) $ECHO_C" >&6
  3807 else
  3808   if test -n "$CC"; then
  3809   ac_cv_prog_CC="$CC" # Let the user override the test.
  3810 else
  3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812 for as_dir in $PATH
  3813 do
  3814   IFS=$as_save_IFS
  3815   test -z "$as_dir" && as_dir=.
  3816   for ac_exec_ext in '' $ac_executable_extensions; do
  3817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3818     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820     break 2
  3821   fi
  3822 done
  3823 done
  3824 IFS=$as_save_IFS
  3826 fi
  3827 fi
  3828 CC=$ac_cv_prog_CC
  3829 if test -n "$CC"; then
  3830   { echo "$as_me:$LINENO: result: $CC" >&5
  3831 echo "${ECHO_T}$CC" >&6; }
  3832 else
  3833   { echo "$as_me:$LINENO: result: no" >&5
  3834 echo "${ECHO_T}no" >&6; }
  3835 fi
  3838   fi
  3839 fi
  3840 if test -z "$CC"; then
  3841   # Extract the first word of "cc", so it can be a program name with args.
  3842 set dummy cc; ac_word=$2
  3843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3845 if test "${ac_cv_prog_CC+set}" = set; then
  3846   echo $ECHO_N "(cached) $ECHO_C" >&6
  3847 else
  3848   if test -n "$CC"; then
  3849   ac_cv_prog_CC="$CC" # Let the user override the test.
  3850 else
  3851   ac_prog_rejected=no
  3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3853 for as_dir in $PATH
  3854 do
  3855   IFS=$as_save_IFS
  3856   test -z "$as_dir" && as_dir=.
  3857   for ac_exec_ext in '' $ac_executable_extensions; do
  3858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3859     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3860        ac_prog_rejected=yes
  3861        continue
  3862      fi
  3863     ac_cv_prog_CC="cc"
  3864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3865     break 2
  3866   fi
  3867 done
  3868 done
  3869 IFS=$as_save_IFS
  3871 if test $ac_prog_rejected = yes; then
  3872   # We found a bogon in the path, so make sure we never use it.
  3873   set dummy $ac_cv_prog_CC
  3874   shift
  3875   if test $# != 0; then
  3876     # We chose a different compiler from the bogus one.
  3877     # However, it has the same basename, so the bogon will be chosen
  3878     # first if we set CC to just the basename; use the full file name.
  3879     shift
  3880     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3881   fi
  3882 fi
  3883 fi
  3884 fi
  3885 CC=$ac_cv_prog_CC
  3886 if test -n "$CC"; then
  3887   { echo "$as_me:$LINENO: result: $CC" >&5
  3888 echo "${ECHO_T}$CC" >&6; }
  3889 else
  3890   { echo "$as_me:$LINENO: result: no" >&5
  3891 echo "${ECHO_T}no" >&6; }
  3892 fi
  3895 fi
  3896 if test -z "$CC"; then
  3897   if test -n "$ac_tool_prefix"; then
  3898   for ac_prog in cl.exe
  3899   do
  3900     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3904 if test "${ac_cv_prog_CC+set}" = set; then
  3905   echo $ECHO_N "(cached) $ECHO_C" >&6
  3906 else
  3907   if test -n "$CC"; then
  3908   ac_cv_prog_CC="$CC" # Let the user override the test.
  3909 else
  3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911 for as_dir in $PATH
  3912 do
  3913   IFS=$as_save_IFS
  3914   test -z "$as_dir" && as_dir=.
  3915   for ac_exec_ext in '' $ac_executable_extensions; do
  3916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3917     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3919     break 2
  3920   fi
  3921 done
  3922 done
  3923 IFS=$as_save_IFS
  3925 fi
  3926 fi
  3927 CC=$ac_cv_prog_CC
  3928 if test -n "$CC"; then
  3929   { echo "$as_me:$LINENO: result: $CC" >&5
  3930 echo "${ECHO_T}$CC" >&6; }
  3931 else
  3932   { echo "$as_me:$LINENO: result: no" >&5
  3933 echo "${ECHO_T}no" >&6; }
  3934 fi
  3937     test -n "$CC" && break
  3938   done
  3939 fi
  3940 if test -z "$CC"; then
  3941   ac_ct_CC=$CC
  3942   for ac_prog in cl.exe
  3943 do
  3944   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3945 set dummy $ac_prog; ac_word=$2
  3946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3949   echo $ECHO_N "(cached) $ECHO_C" >&6
  3950 else
  3951   if test -n "$ac_ct_CC"; then
  3952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3953 else
  3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3955 for as_dir in $PATH
  3956 do
  3957   IFS=$as_save_IFS
  3958   test -z "$as_dir" && as_dir=.
  3959   for ac_exec_ext in '' $ac_executable_extensions; do
  3960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3961     ac_cv_prog_ac_ct_CC="$ac_prog"
  3962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3963     break 2
  3964   fi
  3965 done
  3966 done
  3967 IFS=$as_save_IFS
  3969 fi
  3970 fi
  3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3972 if test -n "$ac_ct_CC"; then
  3973   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3974 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3975 else
  3976   { echo "$as_me:$LINENO: result: no" >&5
  3977 echo "${ECHO_T}no" >&6; }
  3978 fi
  3981   test -n "$ac_ct_CC" && break
  3982 done
  3984   if test "x$ac_ct_CC" = x; then
  3985     CC=""
  3986   else
  3987     case $cross_compiling:$ac_tool_warned in
  3988 yes:)
  3989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3990 whose name does not start with the host triplet.  If you think this
  3991 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3993 whose name does not start with the host triplet.  If you think this
  3994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3995 ac_tool_warned=yes ;;
  3996 esac
  3997     CC=$ac_ct_CC
  3998   fi
  3999 fi
  4001 fi
  4004 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4005 See \`config.log' for more details." >&5
  4006 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4007 See \`config.log' for more details." >&2;}
  4008    { (exit 1); exit 1; }; }
  4010 # Provide some information about the compiler.
  4011 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4012 ac_compiler=`set X $ac_compile; echo $2`
  4013 { (ac_try="$ac_compiler --version >&5"
  4014 case "(($ac_try" in
  4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4016   *) ac_try_echo=$ac_try;;
  4017 esac
  4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4019   (eval "$ac_compiler --version >&5") 2>&5
  4020   ac_status=$?
  4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4022   (exit $ac_status); }
  4023 { (ac_try="$ac_compiler -v >&5"
  4024 case "(($ac_try" in
  4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4026   *) ac_try_echo=$ac_try;;
  4027 esac
  4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4029   (eval "$ac_compiler -v >&5") 2>&5
  4030   ac_status=$?
  4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032   (exit $ac_status); }
  4033 { (ac_try="$ac_compiler -V >&5"
  4034 case "(($ac_try" in
  4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4036   *) ac_try_echo=$ac_try;;
  4037 esac
  4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4039   (eval "$ac_compiler -V >&5") 2>&5
  4040   ac_status=$?
  4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4042   (exit $ac_status); }
  4044 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4047   echo $ECHO_N "(cached) $ECHO_C" >&6
  4048 else
  4049   cat >conftest.$ac_ext <<_ACEOF
  4050 /* confdefs.h.  */
  4051 _ACEOF
  4052 cat confdefs.h >>conftest.$ac_ext
  4053 cat >>conftest.$ac_ext <<_ACEOF
  4054 /* end confdefs.h.  */
  4056 int
  4057 main ()
  4059 #ifndef __GNUC__
  4060        choke me
  4061 #endif
  4064   return 0;
  4066 _ACEOF
  4067 rm -f conftest.$ac_objext
  4068 if { (ac_try="$ac_compile"
  4069 case "(($ac_try" in
  4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4071   *) ac_try_echo=$ac_try;;
  4072 esac
  4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4074   (eval "$ac_compile") 2>conftest.er1
  4075   ac_status=$?
  4076   grep -v '^ *+' conftest.er1 >conftest.err
  4077   rm -f conftest.er1
  4078   cat conftest.err >&5
  4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4080   (exit $ac_status); } && {
  4081 	 test -z "$ac_c_werror_flag" ||
  4082 	 test ! -s conftest.err
  4083        } && test -s conftest.$ac_objext; then
  4084   ac_compiler_gnu=yes
  4085 else
  4086   echo "$as_me: failed program was:" >&5
  4087 sed 's/^/| /' conftest.$ac_ext >&5
  4089 	ac_compiler_gnu=no
  4090 fi
  4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4095 fi
  4096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4098 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4099 ac_test_CFLAGS=${CFLAGS+set}
  4100 ac_save_CFLAGS=$CFLAGS
  4101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4103 if test "${ac_cv_prog_cc_g+set}" = set; then
  4104   echo $ECHO_N "(cached) $ECHO_C" >&6
  4105 else
  4106   ac_save_c_werror_flag=$ac_c_werror_flag
  4107    ac_c_werror_flag=yes
  4108    ac_cv_prog_cc_g=no
  4109    CFLAGS="-g"
  4110    cat >conftest.$ac_ext <<_ACEOF
  4111 /* confdefs.h.  */
  4112 _ACEOF
  4113 cat confdefs.h >>conftest.$ac_ext
  4114 cat >>conftest.$ac_ext <<_ACEOF
  4115 /* end confdefs.h.  */
  4117 int
  4118 main ()
  4122   return 0;
  4124 _ACEOF
  4125 rm -f conftest.$ac_objext
  4126 if { (ac_try="$ac_compile"
  4127 case "(($ac_try" in
  4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4129   *) ac_try_echo=$ac_try;;
  4130 esac
  4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4132   (eval "$ac_compile") 2>conftest.er1
  4133   ac_status=$?
  4134   grep -v '^ *+' conftest.er1 >conftest.err
  4135   rm -f conftest.er1
  4136   cat conftest.err >&5
  4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138   (exit $ac_status); } && {
  4139 	 test -z "$ac_c_werror_flag" ||
  4140 	 test ! -s conftest.err
  4141        } && test -s conftest.$ac_objext; then
  4142   ac_cv_prog_cc_g=yes
  4143 else
  4144   echo "$as_me: failed program was:" >&5
  4145 sed 's/^/| /' conftest.$ac_ext >&5
  4147 	CFLAGS=""
  4148       cat >conftest.$ac_ext <<_ACEOF
  4149 /* confdefs.h.  */
  4150 _ACEOF
  4151 cat confdefs.h >>conftest.$ac_ext
  4152 cat >>conftest.$ac_ext <<_ACEOF
  4153 /* end confdefs.h.  */
  4155 int
  4156 main ()
  4160   return 0;
  4162 _ACEOF
  4163 rm -f conftest.$ac_objext
  4164 if { (ac_try="$ac_compile"
  4165 case "(($ac_try" in
  4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4167   *) ac_try_echo=$ac_try;;
  4168 esac
  4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4170   (eval "$ac_compile") 2>conftest.er1
  4171   ac_status=$?
  4172   grep -v '^ *+' conftest.er1 >conftest.err
  4173   rm -f conftest.er1
  4174   cat conftest.err >&5
  4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176   (exit $ac_status); } && {
  4177 	 test -z "$ac_c_werror_flag" ||
  4178 	 test ! -s conftest.err
  4179        } && test -s conftest.$ac_objext; then
  4181 else
  4182   echo "$as_me: failed program was:" >&5
  4183 sed 's/^/| /' conftest.$ac_ext >&5
  4185 	ac_c_werror_flag=$ac_save_c_werror_flag
  4186 	 CFLAGS="-g"
  4187 	 cat >conftest.$ac_ext <<_ACEOF
  4188 /* confdefs.h.  */
  4189 _ACEOF
  4190 cat confdefs.h >>conftest.$ac_ext
  4191 cat >>conftest.$ac_ext <<_ACEOF
  4192 /* end confdefs.h.  */
  4194 int
  4195 main ()
  4199   return 0;
  4201 _ACEOF
  4202 rm -f conftest.$ac_objext
  4203 if { (ac_try="$ac_compile"
  4204 case "(($ac_try" in
  4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4206   *) ac_try_echo=$ac_try;;
  4207 esac
  4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4209   (eval "$ac_compile") 2>conftest.er1
  4210   ac_status=$?
  4211   grep -v '^ *+' conftest.er1 >conftest.err
  4212   rm -f conftest.er1
  4213   cat conftest.err >&5
  4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4215   (exit $ac_status); } && {
  4216 	 test -z "$ac_c_werror_flag" ||
  4217 	 test ! -s conftest.err
  4218        } && test -s conftest.$ac_objext; then
  4219   ac_cv_prog_cc_g=yes
  4220 else
  4221   echo "$as_me: failed program was:" >&5
  4222 sed 's/^/| /' conftest.$ac_ext >&5
  4225 fi
  4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4228 fi
  4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4231 fi
  4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4234    ac_c_werror_flag=$ac_save_c_werror_flag
  4235 fi
  4236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4238 if test "$ac_test_CFLAGS" = set; then
  4239   CFLAGS=$ac_save_CFLAGS
  4240 elif test $ac_cv_prog_cc_g = yes; then
  4241   if test "$GCC" = yes; then
  4242     CFLAGS="-g -O2"
  4243   else
  4244     CFLAGS="-g"
  4245   fi
  4246 else
  4247   if test "$GCC" = yes; then
  4248     CFLAGS="-O2"
  4249   else
  4250     CFLAGS=
  4251   fi
  4252 fi
  4253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4255 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4256   echo $ECHO_N "(cached) $ECHO_C" >&6
  4257 else
  4258   ac_cv_prog_cc_c89=no
  4259 ac_save_CC=$CC
  4260 cat >conftest.$ac_ext <<_ACEOF
  4261 /* confdefs.h.  */
  4262 _ACEOF
  4263 cat confdefs.h >>conftest.$ac_ext
  4264 cat >>conftest.$ac_ext <<_ACEOF
  4265 /* end confdefs.h.  */
  4266 #include <stdarg.h>
  4267 #include <stdio.h>
  4268 #include <sys/types.h>
  4269 #include <sys/stat.h>
  4270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4271 struct buf { int x; };
  4272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4273 static char *e (p, i)
  4274      char **p;
  4275      int i;
  4277   return p[i];
  4279 static char *f (char * (*g) (char **, int), char **p, ...)
  4281   char *s;
  4282   va_list v;
  4283   va_start (v,p);
  4284   s = g (p, va_arg (v,int));
  4285   va_end (v);
  4286   return s;
  4289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4290    function prototypes and stuff, but not '\xHH' hex character constants.
  4291    These don't provoke an error unfortunately, instead are silently treated
  4292    as 'x'.  The following induces an error, until -std is added to get
  4293    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4294    array size at least.  It's necessary to write '\x00'==0 to get something
  4295    that's true only with -std.  */
  4296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4299    inside strings and character constants.  */
  4300 #define FOO(x) 'x'
  4301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4303 int test (int i, double x);
  4304 struct s1 {int (*f) (int a);};
  4305 struct s2 {int (*f) (double a);};
  4306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4307 int argc;
  4308 char **argv;
  4309 int
  4310 main ()
  4312 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4314   return 0;
  4316 _ACEOF
  4317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4318 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4319 do
  4320   CC="$ac_save_CC $ac_arg"
  4321   rm -f conftest.$ac_objext
  4322 if { (ac_try="$ac_compile"
  4323 case "(($ac_try" in
  4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4325   *) ac_try_echo=$ac_try;;
  4326 esac
  4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4328   (eval "$ac_compile") 2>conftest.er1
  4329   ac_status=$?
  4330   grep -v '^ *+' conftest.er1 >conftest.err
  4331   rm -f conftest.er1
  4332   cat conftest.err >&5
  4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334   (exit $ac_status); } && {
  4335 	 test -z "$ac_c_werror_flag" ||
  4336 	 test ! -s conftest.err
  4337        } && test -s conftest.$ac_objext; then
  4338   ac_cv_prog_cc_c89=$ac_arg
  4339 else
  4340   echo "$as_me: failed program was:" >&5
  4341 sed 's/^/| /' conftest.$ac_ext >&5
  4344 fi
  4346 rm -f core conftest.err conftest.$ac_objext
  4347   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4348 done
  4349 rm -f conftest.$ac_ext
  4350 CC=$ac_save_CC
  4352 fi
  4353 # AC_CACHE_VAL
  4354 case "x$ac_cv_prog_cc_c89" in
  4355   x)
  4356     { echo "$as_me:$LINENO: result: none needed" >&5
  4357 echo "${ECHO_T}none needed" >&6; } ;;
  4358   xno)
  4359     { echo "$as_me:$LINENO: result: unsupported" >&5
  4360 echo "${ECHO_T}unsupported" >&6; } ;;
  4361   *)
  4362     CC="$CC $ac_cv_prog_cc_c89"
  4363     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4365 esac
  4368 ac_ext=c
  4369 ac_cpp='$CPP $CPPFLAGS'
  4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4374 depcc="$CC"   am_compiler_list=
  4376 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4379   echo $ECHO_N "(cached) $ECHO_C" >&6
  4380 else
  4381   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4382   # We make a subdir and do the tests there.  Otherwise we can end up
  4383   # making bogus files that we don't know about and never remove.  For
  4384   # instance it was reported that on HP-UX the gcc test will end up
  4385   # making a dummy file named `D' -- because `-MD' means `put the output
  4386   # in D'.
  4387   mkdir conftest.dir
  4388   # Copy depcomp to subdir because otherwise we won't find it if we're
  4389   # using a relative directory.
  4390   cp "$am_depcomp" conftest.dir
  4391   cd conftest.dir
  4392   # We will build objects and dependencies in a subdirectory because
  4393   # it helps to detect inapplicable dependency modes.  For instance
  4394   # both Tru64's cc and ICC support -MD to output dependencies as a
  4395   # side effect of compilation, but ICC will put the dependencies in
  4396   # the current directory while Tru64 will put them in the object
  4397   # directory.
  4398   mkdir sub
  4400   am_cv_CC_dependencies_compiler_type=none
  4401   if test "$am_compiler_list" = ""; then
  4402      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4403   fi
  4404   for depmode in $am_compiler_list; do
  4405     # Setup a source with many dependencies, because some compilers
  4406     # like to wrap large dependency lists on column 80 (with \), and
  4407     # we should not choose a depcomp mode which is confused by this.
  4409     # We need to recreate these files for each test, as the compiler may
  4410     # overwrite some of them when testing with obscure command lines.
  4411     # This happens at least with the AIX C compiler.
  4412     : > sub/conftest.c
  4413     for i in 1 2 3 4 5 6; do
  4414       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4415       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4416       # Solaris 8's {/usr,}/bin/sh.
  4417       touch sub/conftst$i.h
  4418     done
  4419     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4421     case $depmode in
  4422     nosideeffect)
  4423       # after this tag, mechanisms are not by side-effect, so they'll
  4424       # only be used when explicitly requested
  4425       if test "x$enable_dependency_tracking" = xyes; then
  4426 	continue
  4427       else
  4428 	break
  4429       fi
  4430       ;;
  4431     none) break ;;
  4432     esac
  4433     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4434     # mode.  It turns out that the SunPro C++ compiler does not properly
  4435     # handle `-M -o', and we need to detect this.
  4436     if depmode=$depmode \
  4437        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4438        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4439        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4440          >/dev/null 2>conftest.err &&
  4441        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4442        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4443        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4444       # icc doesn't choke on unknown options, it will just issue warnings
  4445       # or remarks (even with -Werror).  So we grep stderr for any message
  4446       # that says an option was ignored or not supported.
  4447       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4448       #   icc: Command line warning: ignoring option '-M'; no argument required
  4449       # The diagnosis changed in icc 8.0:
  4450       #   icc: Command line remark: option '-MP' not supported
  4451       if (grep 'ignoring option' conftest.err ||
  4452           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4453         am_cv_CC_dependencies_compiler_type=$depmode
  4454         break
  4455       fi
  4456     fi
  4457   done
  4459   cd ..
  4460   rm -rf conftest.dir
  4461 else
  4462   am_cv_CC_dependencies_compiler_type=none
  4463 fi
  4465 fi
  4466 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4472 if
  4473   test "x$enable_dependency_tracking" != xno \
  4474   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4475   am__fastdepCC_TRUE=
  4476   am__fastdepCC_FALSE='#'
  4477 else
  4478   am__fastdepCC_TRUE='#'
  4479   am__fastdepCC_FALSE=
  4480 fi
  4483 ac_ext=c
  4484 ac_cpp='$CPP $CPPFLAGS'
  4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4488 if test -n "$ac_tool_prefix"; then
  4489   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4493 if test "${ac_cv_prog_CC+set}" = set; then
  4494   echo $ECHO_N "(cached) $ECHO_C" >&6
  4495 else
  4496   if test -n "$CC"; then
  4497   ac_cv_prog_CC="$CC" # Let the user override the test.
  4498 else
  4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4500 for as_dir in $PATH
  4501 do
  4502   IFS=$as_save_IFS
  4503   test -z "$as_dir" && as_dir=.
  4504   for ac_exec_ext in '' $ac_executable_extensions; do
  4505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4506     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4508     break 2
  4509   fi
  4510 done
  4511 done
  4512 IFS=$as_save_IFS
  4514 fi
  4515 fi
  4516 CC=$ac_cv_prog_CC
  4517 if test -n "$CC"; then
  4518   { echo "$as_me:$LINENO: result: $CC" >&5
  4519 echo "${ECHO_T}$CC" >&6; }
  4520 else
  4521   { echo "$as_me:$LINENO: result: no" >&5
  4522 echo "${ECHO_T}no" >&6; }
  4523 fi
  4526 fi
  4527 if test -z "$ac_cv_prog_CC"; then
  4528   ac_ct_CC=$CC
  4529   # Extract the first word of "gcc", so it can be a program name with args.
  4530 set dummy gcc; ac_word=$2
  4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4534   echo $ECHO_N "(cached) $ECHO_C" >&6
  4535 else
  4536   if test -n "$ac_ct_CC"; then
  4537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4538 else
  4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4540 for as_dir in $PATH
  4541 do
  4542   IFS=$as_save_IFS
  4543   test -z "$as_dir" && as_dir=.
  4544   for ac_exec_ext in '' $ac_executable_extensions; do
  4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4546     ac_cv_prog_ac_ct_CC="gcc"
  4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4548     break 2
  4549   fi
  4550 done
  4551 done
  4552 IFS=$as_save_IFS
  4554 fi
  4555 fi
  4556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4557 if test -n "$ac_ct_CC"; then
  4558   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4559 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4560 else
  4561   { echo "$as_me:$LINENO: result: no" >&5
  4562 echo "${ECHO_T}no" >&6; }
  4563 fi
  4565   if test "x$ac_ct_CC" = x; then
  4566     CC=""
  4567   else
  4568     case $cross_compiling:$ac_tool_warned in
  4569 yes:)
  4570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4571 whose name does not start with the host triplet.  If you think this
  4572 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4574 whose name does not start with the host triplet.  If you think this
  4575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4576 ac_tool_warned=yes ;;
  4577 esac
  4578     CC=$ac_ct_CC
  4579   fi
  4580 else
  4581   CC="$ac_cv_prog_CC"
  4582 fi
  4584 if test -z "$CC"; then
  4585           if test -n "$ac_tool_prefix"; then
  4586     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4587 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4590 if test "${ac_cv_prog_CC+set}" = set; then
  4591   echo $ECHO_N "(cached) $ECHO_C" >&6
  4592 else
  4593   if test -n "$CC"; then
  4594   ac_cv_prog_CC="$CC" # Let the user override the test.
  4595 else
  4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597 for as_dir in $PATH
  4598 do
  4599   IFS=$as_save_IFS
  4600   test -z "$as_dir" && as_dir=.
  4601   for ac_exec_ext in '' $ac_executable_extensions; do
  4602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4603     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4605     break 2
  4606   fi
  4607 done
  4608 done
  4609 IFS=$as_save_IFS
  4611 fi
  4612 fi
  4613 CC=$ac_cv_prog_CC
  4614 if test -n "$CC"; then
  4615   { echo "$as_me:$LINENO: result: $CC" >&5
  4616 echo "${ECHO_T}$CC" >&6; }
  4617 else
  4618   { echo "$as_me:$LINENO: result: no" >&5
  4619 echo "${ECHO_T}no" >&6; }
  4620 fi
  4623   fi
  4624 fi
  4625 if test -z "$CC"; then
  4626   # Extract the first word of "cc", so it can be a program name with args.
  4627 set dummy cc; ac_word=$2
  4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4630 if test "${ac_cv_prog_CC+set}" = set; then
  4631   echo $ECHO_N "(cached) $ECHO_C" >&6
  4632 else
  4633   if test -n "$CC"; then
  4634   ac_cv_prog_CC="$CC" # Let the user override the test.
  4635 else
  4636   ac_prog_rejected=no
  4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638 for as_dir in $PATH
  4639 do
  4640   IFS=$as_save_IFS
  4641   test -z "$as_dir" && as_dir=.
  4642   for ac_exec_ext in '' $ac_executable_extensions; do
  4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4644     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4645        ac_prog_rejected=yes
  4646        continue
  4647      fi
  4648     ac_cv_prog_CC="cc"
  4649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4650     break 2
  4651   fi
  4652 done
  4653 done
  4654 IFS=$as_save_IFS
  4656 if test $ac_prog_rejected = yes; then
  4657   # We found a bogon in the path, so make sure we never use it.
  4658   set dummy $ac_cv_prog_CC
  4659   shift
  4660   if test $# != 0; then
  4661     # We chose a different compiler from the bogus one.
  4662     # However, it has the same basename, so the bogon will be chosen
  4663     # first if we set CC to just the basename; use the full file name.
  4664     shift
  4665     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4666   fi
  4667 fi
  4668 fi
  4669 fi
  4670 CC=$ac_cv_prog_CC
  4671 if test -n "$CC"; then
  4672   { echo "$as_me:$LINENO: result: $CC" >&5
  4673 echo "${ECHO_T}$CC" >&6; }
  4674 else
  4675   { echo "$as_me:$LINENO: result: no" >&5
  4676 echo "${ECHO_T}no" >&6; }
  4677 fi
  4680 fi
  4681 if test -z "$CC"; then
  4682   if test -n "$ac_tool_prefix"; then
  4683   for ac_prog in cl.exe
  4684   do
  4685     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4689 if test "${ac_cv_prog_CC+set}" = set; then
  4690   echo $ECHO_N "(cached) $ECHO_C" >&6
  4691 else
  4692   if test -n "$CC"; then
  4693   ac_cv_prog_CC="$CC" # Let the user override the test.
  4694 else
  4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696 for as_dir in $PATH
  4697 do
  4698   IFS=$as_save_IFS
  4699   test -z "$as_dir" && as_dir=.
  4700   for ac_exec_ext in '' $ac_executable_extensions; do
  4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4702     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704     break 2
  4705   fi
  4706 done
  4707 done
  4708 IFS=$as_save_IFS
  4710 fi
  4711 fi
  4712 CC=$ac_cv_prog_CC
  4713 if test -n "$CC"; then
  4714   { echo "$as_me:$LINENO: result: $CC" >&5
  4715 echo "${ECHO_T}$CC" >&6; }
  4716 else
  4717   { echo "$as_me:$LINENO: result: no" >&5
  4718 echo "${ECHO_T}no" >&6; }
  4719 fi
  4722     test -n "$CC" && break
  4723   done
  4724 fi
  4725 if test -z "$CC"; then
  4726   ac_ct_CC=$CC
  4727   for ac_prog in cl.exe
  4728 do
  4729   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4730 set dummy $ac_prog; ac_word=$2
  4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4734   echo $ECHO_N "(cached) $ECHO_C" >&6
  4735 else
  4736   if test -n "$ac_ct_CC"; then
  4737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4738 else
  4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740 for as_dir in $PATH
  4741 do
  4742   IFS=$as_save_IFS
  4743   test -z "$as_dir" && as_dir=.
  4744   for ac_exec_ext in '' $ac_executable_extensions; do
  4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4746     ac_cv_prog_ac_ct_CC="$ac_prog"
  4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748     break 2
  4749   fi
  4750 done
  4751 done
  4752 IFS=$as_save_IFS
  4754 fi
  4755 fi
  4756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4757 if test -n "$ac_ct_CC"; then
  4758   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4759 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4760 else
  4761   { echo "$as_me:$LINENO: result: no" >&5
  4762 echo "${ECHO_T}no" >&6; }
  4763 fi
  4766   test -n "$ac_ct_CC" && break
  4767 done
  4769   if test "x$ac_ct_CC" = x; then
  4770     CC=""
  4771   else
  4772     case $cross_compiling:$ac_tool_warned in
  4773 yes:)
  4774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4775 whose name does not start with the host triplet.  If you think this
  4776 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4778 whose name does not start with the host triplet.  If you think this
  4779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4780 ac_tool_warned=yes ;;
  4781 esac
  4782     CC=$ac_ct_CC
  4783   fi
  4784 fi
  4786 fi
  4789 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4790 See \`config.log' for more details." >&5
  4791 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4792 See \`config.log' for more details." >&2;}
  4793    { (exit 1); exit 1; }; }
  4795 # Provide some information about the compiler.
  4796 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4797 ac_compiler=`set X $ac_compile; echo $2`
  4798 { (ac_try="$ac_compiler --version >&5"
  4799 case "(($ac_try" in
  4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801   *) ac_try_echo=$ac_try;;
  4802 esac
  4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4804   (eval "$ac_compiler --version >&5") 2>&5
  4805   ac_status=$?
  4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4807   (exit $ac_status); }
  4808 { (ac_try="$ac_compiler -v >&5"
  4809 case "(($ac_try" in
  4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4811   *) ac_try_echo=$ac_try;;
  4812 esac
  4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4814   (eval "$ac_compiler -v >&5") 2>&5
  4815   ac_status=$?
  4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4817   (exit $ac_status); }
  4818 { (ac_try="$ac_compiler -V >&5"
  4819 case "(($ac_try" in
  4820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4821   *) ac_try_echo=$ac_try;;
  4822 esac
  4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4824   (eval "$ac_compiler -V >&5") 2>&5
  4825   ac_status=$?
  4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4827   (exit $ac_status); }
  4829 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4832   echo $ECHO_N "(cached) $ECHO_C" >&6
  4833 else
  4834   cat >conftest.$ac_ext <<_ACEOF
  4835 /* confdefs.h.  */
  4836 _ACEOF
  4837 cat confdefs.h >>conftest.$ac_ext
  4838 cat >>conftest.$ac_ext <<_ACEOF
  4839 /* end confdefs.h.  */
  4841 int
  4842 main ()
  4844 #ifndef __GNUC__
  4845        choke me
  4846 #endif
  4849   return 0;
  4851 _ACEOF
  4852 rm -f conftest.$ac_objext
  4853 if { (ac_try="$ac_compile"
  4854 case "(($ac_try" in
  4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4856   *) ac_try_echo=$ac_try;;
  4857 esac
  4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4859   (eval "$ac_compile") 2>conftest.er1
  4860   ac_status=$?
  4861   grep -v '^ *+' conftest.er1 >conftest.err
  4862   rm -f conftest.er1
  4863   cat conftest.err >&5
  4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4865   (exit $ac_status); } && {
  4866 	 test -z "$ac_c_werror_flag" ||
  4867 	 test ! -s conftest.err
  4868        } && test -s conftest.$ac_objext; then
  4869   ac_compiler_gnu=yes
  4870 else
  4871   echo "$as_me: failed program was:" >&5
  4872 sed 's/^/| /' conftest.$ac_ext >&5
  4874 	ac_compiler_gnu=no
  4875 fi
  4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4880 fi
  4881 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4882 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4883 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4884 ac_test_CFLAGS=${CFLAGS+set}
  4885 ac_save_CFLAGS=$CFLAGS
  4886 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4887 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4888 if test "${ac_cv_prog_cc_g+set}" = set; then
  4889   echo $ECHO_N "(cached) $ECHO_C" >&6
  4890 else
  4891   ac_save_c_werror_flag=$ac_c_werror_flag
  4892    ac_c_werror_flag=yes
  4893    ac_cv_prog_cc_g=no
  4894    CFLAGS="-g"
  4895    cat >conftest.$ac_ext <<_ACEOF
  4896 /* confdefs.h.  */
  4897 _ACEOF
  4898 cat confdefs.h >>conftest.$ac_ext
  4899 cat >>conftest.$ac_ext <<_ACEOF
  4900 /* end confdefs.h.  */
  4902 int
  4903 main ()
  4907   return 0;
  4909 _ACEOF
  4910 rm -f conftest.$ac_objext
  4911 if { (ac_try="$ac_compile"
  4912 case "(($ac_try" in
  4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4914   *) ac_try_echo=$ac_try;;
  4915 esac
  4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4917   (eval "$ac_compile") 2>conftest.er1
  4918   ac_status=$?
  4919   grep -v '^ *+' conftest.er1 >conftest.err
  4920   rm -f conftest.er1
  4921   cat conftest.err >&5
  4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923   (exit $ac_status); } && {
  4924 	 test -z "$ac_c_werror_flag" ||
  4925 	 test ! -s conftest.err
  4926        } && test -s conftest.$ac_objext; then
  4927   ac_cv_prog_cc_g=yes
  4928 else
  4929   echo "$as_me: failed program was:" >&5
  4930 sed 's/^/| /' conftest.$ac_ext >&5
  4932 	CFLAGS=""
  4933       cat >conftest.$ac_ext <<_ACEOF
  4934 /* confdefs.h.  */
  4935 _ACEOF
  4936 cat confdefs.h >>conftest.$ac_ext
  4937 cat >>conftest.$ac_ext <<_ACEOF
  4938 /* end confdefs.h.  */
  4940 int
  4941 main ()
  4945   return 0;
  4947 _ACEOF
  4948 rm -f conftest.$ac_objext
  4949 if { (ac_try="$ac_compile"
  4950 case "(($ac_try" in
  4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4952   *) ac_try_echo=$ac_try;;
  4953 esac
  4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4955   (eval "$ac_compile") 2>conftest.er1
  4956   ac_status=$?
  4957   grep -v '^ *+' conftest.er1 >conftest.err
  4958   rm -f conftest.er1
  4959   cat conftest.err >&5
  4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961   (exit $ac_status); } && {
  4962 	 test -z "$ac_c_werror_flag" ||
  4963 	 test ! -s conftest.err
  4964        } && test -s conftest.$ac_objext; then
  4966 else
  4967   echo "$as_me: failed program was:" >&5
  4968 sed 's/^/| /' conftest.$ac_ext >&5
  4970 	ac_c_werror_flag=$ac_save_c_werror_flag
  4971 	 CFLAGS="-g"
  4972 	 cat >conftest.$ac_ext <<_ACEOF
  4973 /* confdefs.h.  */
  4974 _ACEOF
  4975 cat confdefs.h >>conftest.$ac_ext
  4976 cat >>conftest.$ac_ext <<_ACEOF
  4977 /* end confdefs.h.  */
  4979 int
  4980 main ()
  4984   return 0;
  4986 _ACEOF
  4987 rm -f conftest.$ac_objext
  4988 if { (ac_try="$ac_compile"
  4989 case "(($ac_try" in
  4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4991   *) ac_try_echo=$ac_try;;
  4992 esac
  4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4994   (eval "$ac_compile") 2>conftest.er1
  4995   ac_status=$?
  4996   grep -v '^ *+' conftest.er1 >conftest.err
  4997   rm -f conftest.er1
  4998   cat conftest.err >&5
  4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5000   (exit $ac_status); } && {
  5001 	 test -z "$ac_c_werror_flag" ||
  5002 	 test ! -s conftest.err
  5003        } && test -s conftest.$ac_objext; then
  5004   ac_cv_prog_cc_g=yes
  5005 else
  5006   echo "$as_me: failed program was:" >&5
  5007 sed 's/^/| /' conftest.$ac_ext >&5
  5010 fi
  5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5013 fi
  5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5016 fi
  5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5019    ac_c_werror_flag=$ac_save_c_werror_flag
  5020 fi
  5021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5023 if test "$ac_test_CFLAGS" = set; then
  5024   CFLAGS=$ac_save_CFLAGS
  5025 elif test $ac_cv_prog_cc_g = yes; then
  5026   if test "$GCC" = yes; then
  5027     CFLAGS="-g -O2"
  5028   else
  5029     CFLAGS="-g"
  5030   fi
  5031 else
  5032   if test "$GCC" = yes; then
  5033     CFLAGS="-O2"
  5034   else
  5035     CFLAGS=
  5036   fi
  5037 fi
  5038 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5039 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5040 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5041   echo $ECHO_N "(cached) $ECHO_C" >&6
  5042 else
  5043   ac_cv_prog_cc_c89=no
  5044 ac_save_CC=$CC
  5045 cat >conftest.$ac_ext <<_ACEOF
  5046 /* confdefs.h.  */
  5047 _ACEOF
  5048 cat confdefs.h >>conftest.$ac_ext
  5049 cat >>conftest.$ac_ext <<_ACEOF
  5050 /* end confdefs.h.  */
  5051 #include <stdarg.h>
  5052 #include <stdio.h>
  5053 #include <sys/types.h>
  5054 #include <sys/stat.h>
  5055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5056 struct buf { int x; };
  5057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5058 static char *e (p, i)
  5059      char **p;
  5060      int i;
  5062   return p[i];
  5064 static char *f (char * (*g) (char **, int), char **p, ...)
  5066   char *s;
  5067   va_list v;
  5068   va_start (v,p);
  5069   s = g (p, va_arg (v,int));
  5070   va_end (v);
  5071   return s;
  5074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5075    function prototypes and stuff, but not '\xHH' hex character constants.
  5076    These don't provoke an error unfortunately, instead are silently treated
  5077    as 'x'.  The following induces an error, until -std is added to get
  5078    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5079    array size at least.  It's necessary to write '\x00'==0 to get something
  5080    that's true only with -std.  */
  5081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5084    inside strings and character constants.  */
  5085 #define FOO(x) 'x'
  5086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5088 int test (int i, double x);
  5089 struct s1 {int (*f) (int a);};
  5090 struct s2 {int (*f) (double a);};
  5091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5092 int argc;
  5093 char **argv;
  5094 int
  5095 main ()
  5097 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5099   return 0;
  5101 _ACEOF
  5102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5103 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5104 do
  5105   CC="$ac_save_CC $ac_arg"
  5106   rm -f conftest.$ac_objext
  5107 if { (ac_try="$ac_compile"
  5108 case "(($ac_try" in
  5109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5110   *) ac_try_echo=$ac_try;;
  5111 esac
  5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5113   (eval "$ac_compile") 2>conftest.er1
  5114   ac_status=$?
  5115   grep -v '^ *+' conftest.er1 >conftest.err
  5116   rm -f conftest.er1
  5117   cat conftest.err >&5
  5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5119   (exit $ac_status); } && {
  5120 	 test -z "$ac_c_werror_flag" ||
  5121 	 test ! -s conftest.err
  5122        } && test -s conftest.$ac_objext; then
  5123   ac_cv_prog_cc_c89=$ac_arg
  5124 else
  5125   echo "$as_me: failed program was:" >&5
  5126 sed 's/^/| /' conftest.$ac_ext >&5
  5129 fi
  5131 rm -f core conftest.err conftest.$ac_objext
  5132   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5133 done
  5134 rm -f conftest.$ac_ext
  5135 CC=$ac_save_CC
  5137 fi
  5138 # AC_CACHE_VAL
  5139 case "x$ac_cv_prog_cc_c89" in
  5140   x)
  5141     { echo "$as_me:$LINENO: result: none needed" >&5
  5142 echo "${ECHO_T}none needed" >&6; } ;;
  5143   xno)
  5144     { echo "$as_me:$LINENO: result: unsupported" >&5
  5145 echo "${ECHO_T}unsupported" >&6; } ;;
  5146   *)
  5147     CC="$CC $ac_cv_prog_cc_c89"
  5148     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5149 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5150 esac
  5153 ac_ext=c
  5154 ac_cpp='$CPP $CPPFLAGS'
  5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5159 depcc="$CC"   am_compiler_list=
  5161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5164   echo $ECHO_N "(cached) $ECHO_C" >&6
  5165 else
  5166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5167   # We make a subdir and do the tests there.  Otherwise we can end up
  5168   # making bogus files that we don't know about and never remove.  For
  5169   # instance it was reported that on HP-UX the gcc test will end up
  5170   # making a dummy file named `D' -- because `-MD' means `put the output
  5171   # in D'.
  5172   mkdir conftest.dir
  5173   # Copy depcomp to subdir because otherwise we won't find it if we're
  5174   # using a relative directory.
  5175   cp "$am_depcomp" conftest.dir
  5176   cd conftest.dir
  5177   # We will build objects and dependencies in a subdirectory because
  5178   # it helps to detect inapplicable dependency modes.  For instance
  5179   # both Tru64's cc and ICC support -MD to output dependencies as a
  5180   # side effect of compilation, but ICC will put the dependencies in
  5181   # the current directory while Tru64 will put them in the object
  5182   # directory.
  5183   mkdir sub
  5185   am_cv_CC_dependencies_compiler_type=none
  5186   if test "$am_compiler_list" = ""; then
  5187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5188   fi
  5189   for depmode in $am_compiler_list; do
  5190     # Setup a source with many dependencies, because some compilers
  5191     # like to wrap large dependency lists on column 80 (with \), and
  5192     # we should not choose a depcomp mode which is confused by this.
  5194     # We need to recreate these files for each test, as the compiler may
  5195     # overwrite some of them when testing with obscure command lines.
  5196     # This happens at least with the AIX C compiler.
  5197     : > sub/conftest.c
  5198     for i in 1 2 3 4 5 6; do
  5199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5200       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5201       # Solaris 8's {/usr,}/bin/sh.
  5202       touch sub/conftst$i.h
  5203     done
  5204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5206     case $depmode in
  5207     nosideeffect)
  5208       # after this tag, mechanisms are not by side-effect, so they'll
  5209       # only be used when explicitly requested
  5210       if test "x$enable_dependency_tracking" = xyes; then
  5211 	continue
  5212       else
  5213 	break
  5214       fi
  5215       ;;
  5216     none) break ;;
  5217     esac
  5218     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5219     # mode.  It turns out that the SunPro C++ compiler does not properly
  5220     # handle `-M -o', and we need to detect this.
  5221     if depmode=$depmode \
  5222        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5223        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5224        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5225          >/dev/null 2>conftest.err &&
  5226        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5227        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5228        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5229       # icc doesn't choke on unknown options, it will just issue warnings
  5230       # or remarks (even with -Werror).  So we grep stderr for any message
  5231       # that says an option was ignored or not supported.
  5232       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5233       #   icc: Command line warning: ignoring option '-M'; no argument required
  5234       # The diagnosis changed in icc 8.0:
  5235       #   icc: Command line remark: option '-MP' not supported
  5236       if (grep 'ignoring option' conftest.err ||
  5237           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5238         am_cv_CC_dependencies_compiler_type=$depmode
  5239         break
  5240       fi
  5241     fi
  5242   done
  5244   cd ..
  5245   rm -rf conftest.dir
  5246 else
  5247   am_cv_CC_dependencies_compiler_type=none
  5248 fi
  5250 fi
  5251 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5257 if
  5258   test "x$enable_dependency_tracking" != xno \
  5259   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5260   am__fastdepCC_TRUE=
  5261   am__fastdepCC_FALSE='#'
  5262 else
  5263   am__fastdepCC_TRUE='#'
  5264   am__fastdepCC_FALSE=
  5265 fi
  5269 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5271 ac_ext=c
  5272 ac_cpp='$CPP $CPPFLAGS'
  5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5276 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5278 # On Suns, sometimes $CPP names a directory.
  5279 if test -n "$CPP" && test -d "$CPP"; then
  5280   CPP=
  5281 fi
  5282 if test -z "$CPP"; then
  5283   if test "${ac_cv_prog_CPP+set}" = set; then
  5284   echo $ECHO_N "(cached) $ECHO_C" >&6
  5285 else
  5286       # Double quotes because CPP needs to be expanded
  5287     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5288     do
  5289       ac_preproc_ok=false
  5290 for ac_c_preproc_warn_flag in '' yes
  5291 do
  5292   # Use a header file that comes with gcc, so configuring glibc
  5293   # with a fresh cross-compiler works.
  5294   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5295   # <limits.h> exists even on freestanding compilers.
  5296   # On the NeXT, cc -E runs the code through the compiler's parser,
  5297   # not just through cpp. "Syntax error" is here to catch this case.
  5298   cat >conftest.$ac_ext <<_ACEOF
  5299 /* confdefs.h.  */
  5300 _ACEOF
  5301 cat confdefs.h >>conftest.$ac_ext
  5302 cat >>conftest.$ac_ext <<_ACEOF
  5303 /* end confdefs.h.  */
  5304 #ifdef __STDC__
  5305 # include <limits.h>
  5306 #else
  5307 # include <assert.h>
  5308 #endif
  5309 		     Syntax error
  5310 _ACEOF
  5311 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5312 case "(($ac_try" in
  5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5314   *) ac_try_echo=$ac_try;;
  5315 esac
  5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5318   ac_status=$?
  5319   grep -v '^ *+' conftest.er1 >conftest.err
  5320   rm -f conftest.er1
  5321   cat conftest.err >&5
  5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5323   (exit $ac_status); } >/dev/null && {
  5324 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5325 	 test ! -s conftest.err
  5326        }; then
  5328 else
  5329   echo "$as_me: failed program was:" >&5
  5330 sed 's/^/| /' conftest.$ac_ext >&5
  5332   # Broken: fails on valid input.
  5333 continue
  5334 fi
  5336 rm -f conftest.err conftest.$ac_ext
  5338   # OK, works on sane cases.  Now check whether nonexistent headers
  5339   # can be detected and how.
  5340   cat >conftest.$ac_ext <<_ACEOF
  5341 /* confdefs.h.  */
  5342 _ACEOF
  5343 cat confdefs.h >>conftest.$ac_ext
  5344 cat >>conftest.$ac_ext <<_ACEOF
  5345 /* end confdefs.h.  */
  5346 #include <ac_nonexistent.h>
  5347 _ACEOF
  5348 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5349 case "(($ac_try" in
  5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5351   *) ac_try_echo=$ac_try;;
  5352 esac
  5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5355   ac_status=$?
  5356   grep -v '^ *+' conftest.er1 >conftest.err
  5357   rm -f conftest.er1
  5358   cat conftest.err >&5
  5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360   (exit $ac_status); } >/dev/null && {
  5361 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5362 	 test ! -s conftest.err
  5363        }; then
  5364   # Broken: success on invalid input.
  5365 continue
  5366 else
  5367   echo "$as_me: failed program was:" >&5
  5368 sed 's/^/| /' conftest.$ac_ext >&5
  5370   # Passes both tests.
  5371 ac_preproc_ok=:
  5372 break
  5373 fi
  5375 rm -f conftest.err conftest.$ac_ext
  5377 done
  5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5379 rm -f conftest.err conftest.$ac_ext
  5380 if $ac_preproc_ok; then
  5381   break
  5382 fi
  5384     done
  5385     ac_cv_prog_CPP=$CPP
  5387 fi
  5388   CPP=$ac_cv_prog_CPP
  5389 else
  5390   ac_cv_prog_CPP=$CPP
  5391 fi
  5392 { echo "$as_me:$LINENO: result: $CPP" >&5
  5393 echo "${ECHO_T}$CPP" >&6; }
  5394 ac_preproc_ok=false
  5395 for ac_c_preproc_warn_flag in '' yes
  5396 do
  5397   # Use a header file that comes with gcc, so configuring glibc
  5398   # with a fresh cross-compiler works.
  5399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5400   # <limits.h> exists even on freestanding compilers.
  5401   # On the NeXT, cc -E runs the code through the compiler's parser,
  5402   # not just through cpp. "Syntax error" is here to catch this case.
  5403   cat >conftest.$ac_ext <<_ACEOF
  5404 /* confdefs.h.  */
  5405 _ACEOF
  5406 cat confdefs.h >>conftest.$ac_ext
  5407 cat >>conftest.$ac_ext <<_ACEOF
  5408 /* end confdefs.h.  */
  5409 #ifdef __STDC__
  5410 # include <limits.h>
  5411 #else
  5412 # include <assert.h>
  5413 #endif
  5414 		     Syntax error
  5415 _ACEOF
  5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5417 case "(($ac_try" in
  5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5419   *) ac_try_echo=$ac_try;;
  5420 esac
  5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5423   ac_status=$?
  5424   grep -v '^ *+' conftest.er1 >conftest.err
  5425   rm -f conftest.er1
  5426   cat conftest.err >&5
  5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5428   (exit $ac_status); } >/dev/null && {
  5429 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5430 	 test ! -s conftest.err
  5431        }; then
  5433 else
  5434   echo "$as_me: failed program was:" >&5
  5435 sed 's/^/| /' conftest.$ac_ext >&5
  5437   # Broken: fails on valid input.
  5438 continue
  5439 fi
  5441 rm -f conftest.err conftest.$ac_ext
  5443   # OK, works on sane cases.  Now check whether nonexistent headers
  5444   # can be detected and how.
  5445   cat >conftest.$ac_ext <<_ACEOF
  5446 /* confdefs.h.  */
  5447 _ACEOF
  5448 cat confdefs.h >>conftest.$ac_ext
  5449 cat >>conftest.$ac_ext <<_ACEOF
  5450 /* end confdefs.h.  */
  5451 #include <ac_nonexistent.h>
  5452 _ACEOF
  5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5454 case "(($ac_try" in
  5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5456   *) ac_try_echo=$ac_try;;
  5457 esac
  5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5460   ac_status=$?
  5461   grep -v '^ *+' conftest.er1 >conftest.err
  5462   rm -f conftest.er1
  5463   cat conftest.err >&5
  5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5465   (exit $ac_status); } >/dev/null && {
  5466 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5467 	 test ! -s conftest.err
  5468        }; then
  5469   # Broken: success on invalid input.
  5470 continue
  5471 else
  5472   echo "$as_me: failed program was:" >&5
  5473 sed 's/^/| /' conftest.$ac_ext >&5
  5475   # Passes both tests.
  5476 ac_preproc_ok=:
  5477 break
  5478 fi
  5480 rm -f conftest.err conftest.$ac_ext
  5482 done
  5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5484 rm -f conftest.err conftest.$ac_ext
  5485 if $ac_preproc_ok; then
  5487 else
  5488   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5489 See \`config.log' for more details." >&5
  5490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5491 See \`config.log' for more details." >&2;}
  5492    { (exit 1); exit 1; }; }
  5493 fi
  5495 ac_ext=c
  5496 ac_cpp='$CPP $CPPFLAGS'
  5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5502 ac_main_cc="$CC"
  5503 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5505 if test -z "$CC_FOR_BUILD"; then
  5506     if test "$#" = yes; then
  5507   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5508 See \`config.log' for more details." >&5
  5509 echo "$as_me: error: cannot run test program while cross compiling
  5510 See \`config.log' for more details." >&2;}
  5511    { (exit 1); exit 1; }; }
  5512 else
  5513   cat >conftest.$ac_ext <<_ACEOF
  5514 int main(){return 0;}
  5515 _ACEOF
  5516 rm -f conftest$ac_exeext
  5517 if { (ac_try="$ac_link"
  5518 case "(($ac_try" in
  5519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5520   *) ac_try_echo=$ac_try;;
  5521 esac
  5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5523   (eval "$ac_link") 2>&5
  5524   ac_status=$?
  5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5527   { (case "(($ac_try" in
  5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5529   *) ac_try_echo=$ac_try;;
  5530 esac
  5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5532   (eval "$ac_try") 2>&5
  5533   ac_status=$?
  5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5535   (exit $ac_status); }; }; then
  5536   CC_FOR_BUILD="$CC"
  5537 else
  5538   echo "$as_me: program exited with status $ac_status" >&5
  5539 echo "$as_me: failed program was:" >&5
  5540 sed 's/^/| /' conftest.$ac_ext >&5
  5542 fi
  5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5544 fi
  5547 fi
  5550 ac_ext=c
  5551 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5552 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5553 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5554 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5555 if test -n "$ac_build_tool_prefix"; then
  5556   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5557 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5560 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5561   echo $ECHO_N "(cached) $ECHO_C" >&6
  5562 else
  5563   if test -n "$CC_FOR_BUILD"; then
  5564   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5565 else
  5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5567 for as_dir in $PATH
  5568 do
  5569   IFS=$as_save_IFS
  5570   test -z "$as_dir" && as_dir=.
  5571   for ac_exec_ext in '' $ac_executable_extensions; do
  5572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5573     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5575     break 2
  5576   fi
  5577 done
  5578 done
  5579 IFS=$as_save_IFS
  5581 fi
  5582 fi
  5583 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5584 if test -n "$CC_FOR_BUILD"; then
  5585   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5586 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5587 else
  5588   { echo "$as_me:$LINENO: result: no" >&5
  5589 echo "${ECHO_T}no" >&6; }
  5590 fi
  5593 fi
  5594 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5595   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5596   # Extract the first word of "gcc", so it can be a program name with args.
  5597 set dummy gcc; ac_word=$2
  5598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5600 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5601   echo $ECHO_N "(cached) $ECHO_C" >&6
  5602 else
  5603   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5604   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5605 else
  5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607 for as_dir in $PATH
  5608 do
  5609   IFS=$as_save_IFS
  5610   test -z "$as_dir" && as_dir=.
  5611   for ac_exec_ext in '' $ac_executable_extensions; do
  5612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5613     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615     break 2
  5616   fi
  5617 done
  5618 done
  5619 IFS=$as_save_IFS
  5621 fi
  5622 fi
  5623 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5624 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5625   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5626 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5627 else
  5628   { echo "$as_me:$LINENO: result: no" >&5
  5629 echo "${ECHO_T}no" >&6; }
  5630 fi
  5632   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5633     CC_FOR_BUILD=""
  5634   else
  5635     case $#:$ac_tool_warned in
  5636 yes:)
  5637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5638 whose name does not start with the build triplet.  If you think this
  5639 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5641 whose name does not start with the build triplet.  If you think this
  5642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5643 ac_tool_warned=yes ;;
  5644 esac
  5645     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5646   fi
  5647 else
  5648   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5649 fi
  5651 if test -z "$CC_FOR_BUILD"; then
  5652           if test -n "$ac_build_tool_prefix"; then
  5653     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5654 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5657 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5658   echo $ECHO_N "(cached) $ECHO_C" >&6
  5659 else
  5660   if test -n "$CC_FOR_BUILD"; then
  5661   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5662 else
  5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5664 for as_dir in $PATH
  5665 do
  5666   IFS=$as_save_IFS
  5667   test -z "$as_dir" && as_dir=.
  5668   for ac_exec_ext in '' $ac_executable_extensions; do
  5669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5670     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5672     break 2
  5673   fi
  5674 done
  5675 done
  5676 IFS=$as_save_IFS
  5678 fi
  5679 fi
  5680 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5681 if test -n "$CC_FOR_BUILD"; then
  5682   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5683 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5684 else
  5685   { echo "$as_me:$LINENO: result: no" >&5
  5686 echo "${ECHO_T}no" >&6; }
  5687 fi
  5690   fi
  5691 fi
  5692 if test -z "$CC_FOR_BUILD"; then
  5693   # Extract the first word of "cc", so it can be a program name with args.
  5694 set dummy cc; ac_word=$2
  5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5697 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5698   echo $ECHO_N "(cached) $ECHO_C" >&6
  5699 else
  5700   if test -n "$CC_FOR_BUILD"; then
  5701   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5702 else
  5703   ac_prog_rejected=no
  5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705 for as_dir in $PATH
  5706 do
  5707   IFS=$as_save_IFS
  5708   test -z "$as_dir" && as_dir=.
  5709   for ac_exec_ext in '' $ac_executable_extensions; do
  5710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5711     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5712        ac_prog_rejected=yes
  5713        continue
  5714      fi
  5715     ac_cv_prog_CC_FOR_BUILD="cc"
  5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717     break 2
  5718   fi
  5719 done
  5720 done
  5721 IFS=$as_save_IFS
  5723 if test $ac_prog_rejected = yes; then
  5724   # We found a bogon in the path, so make sure we never use it.
  5725   set dummy $ac_cv_prog_CC_FOR_BUILD
  5726   shift
  5727   if test $# != 0; then
  5728     # We chose a different compiler from the bogus one.
  5729     # However, it has the same basename, so the bogon will be chosen
  5730     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5731     shift
  5732     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5733   fi
  5734 fi
  5735 fi
  5736 fi
  5737 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5738 if test -n "$CC_FOR_BUILD"; then
  5739   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5740 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5741 else
  5742   { echo "$as_me:$LINENO: result: no" >&5
  5743 echo "${ECHO_T}no" >&6; }
  5744 fi
  5747 fi
  5748 if test -z "$CC_FOR_BUILD"; then
  5749   if test -n "$ac_build_tool_prefix"; then
  5750   for ac_prog in cl.exe
  5751   do
  5752     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5753 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5756 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5757   echo $ECHO_N "(cached) $ECHO_C" >&6
  5758 else
  5759   if test -n "$CC_FOR_BUILD"; then
  5760   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5761 else
  5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5763 for as_dir in $PATH
  5764 do
  5765   IFS=$as_save_IFS
  5766   test -z "$as_dir" && as_dir=.
  5767   for ac_exec_ext in '' $ac_executable_extensions; do
  5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5769     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5771     break 2
  5772   fi
  5773 done
  5774 done
  5775 IFS=$as_save_IFS
  5777 fi
  5778 fi
  5779 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5780 if test -n "$CC_FOR_BUILD"; then
  5781   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5782 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5783 else
  5784   { echo "$as_me:$LINENO: result: no" >&5
  5785 echo "${ECHO_T}no" >&6; }
  5786 fi
  5789     test -n "$CC_FOR_BUILD" && break
  5790   done
  5791 fi
  5792 if test -z "$CC_FOR_BUILD"; then
  5793   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5794   for ac_prog in cl.exe
  5795 do
  5796   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5797 set dummy $ac_prog; ac_word=$2
  5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5800 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5801   echo $ECHO_N "(cached) $ECHO_C" >&6
  5802 else
  5803   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5804   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5805 else
  5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807 for as_dir in $PATH
  5808 do
  5809   IFS=$as_save_IFS
  5810   test -z "$as_dir" && as_dir=.
  5811   for ac_exec_ext in '' $ac_executable_extensions; do
  5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5813     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  5814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815     break 2
  5816   fi
  5817 done
  5818 done
  5819 IFS=$as_save_IFS
  5821 fi
  5822 fi
  5823 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5824 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5825   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5826 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5827 else
  5828   { echo "$as_me:$LINENO: result: no" >&5
  5829 echo "${ECHO_T}no" >&6; }
  5830 fi
  5833   test -n "$ac_ct_CC_FOR_BUILD" && break
  5834 done
  5836   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5837     CC_FOR_BUILD=""
  5838   else
  5839     case $#:$ac_tool_warned in
  5840 yes:)
  5841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5842 whose name does not start with the build triplet.  If you think this
  5843 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5845 whose name does not start with the build triplet.  If you think this
  5846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5847 ac_tool_warned=yes ;;
  5848 esac
  5849     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5850   fi
  5851 fi
  5853 fi
  5856 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5857 See \`config.log' for more details." >&5
  5858 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5859 See \`config.log' for more details." >&2;}
  5860    { (exit 1); exit 1; }; }
  5862 # Provide some information about the compiler.
  5863 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5864 ac_compiler=`set X $ac_build_compile; echo $2`
  5865 { (ac_try="$ac_compiler --version >&5"
  5866 case "(($ac_try" in
  5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5868   *) ac_try_echo=$ac_try;;
  5869 esac
  5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5871   (eval "$ac_compiler --version >&5") 2>&5
  5872   ac_status=$?
  5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874   (exit $ac_status); }
  5875 { (ac_try="$ac_compiler -v >&5"
  5876 case "(($ac_try" in
  5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5878   *) ac_try_echo=$ac_try;;
  5879 esac
  5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5881   (eval "$ac_compiler -v >&5") 2>&5
  5882   ac_status=$?
  5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5884   (exit $ac_status); }
  5885 { (ac_try="$ac_compiler -V >&5"
  5886 case "(($ac_try" in
  5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5888   *) ac_try_echo=$ac_try;;
  5889 esac
  5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5891   (eval "$ac_compiler -V >&5") 2>&5
  5892   ac_status=$?
  5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894   (exit $ac_status); }
  5896 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5899   echo $ECHO_N "(cached) $ECHO_C" >&6
  5900 else
  5901   cat >conftest.$ac_ext <<_ACEOF
  5902 /* confdefs.h.  */
  5903 _ACEOF
  5904 cat confdefs.h >>conftest.$ac_ext
  5905 cat >>conftest.$ac_ext <<_ACEOF
  5906 /* end confdefs.h.  */
  5908 int
  5909 main ()
  5911 #ifndef __GNUC__
  5912        choke me
  5913 #endif
  5916   return 0;
  5918 _ACEOF
  5919 rm -f conftest.$ac_build_objext
  5920 if { (ac_try="$ac_build_compile"
  5921 case "(($ac_try" in
  5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5923   *) ac_try_echo=$ac_try;;
  5924 esac
  5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5926   (eval "$ac_build_compile") 2>conftest.er1
  5927   ac_status=$?
  5928   grep -v '^ *+' conftest.er1 >conftest.err
  5929   rm -f conftest.er1
  5930   cat conftest.err >&5
  5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5932   (exit $ac_status); } && {
  5933 	 test -z "$ac_c_werror_flag" ||
  5934 	 test ! -s conftest.err
  5935        } && test -s conftest.$ac_build_objext; then
  5936   ac_build_compiler_gnu=yes
  5937 else
  5938   echo "$as_me: failed program was:" >&5
  5939 sed 's/^/| /' conftest.$ac_ext >&5
  5941 	ac_build_compiler_gnu=no
  5942 fi
  5944 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  5945 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  5947 fi
  5948 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5950 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  5951 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  5952 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  5953 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  5954 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  5955 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  5956   echo $ECHO_N "(cached) $ECHO_C" >&6
  5957 else
  5958   ac_save_c_werror_flag=$ac_c_werror_flag
  5959    ac_c_werror_flag=yes
  5960    ac_cv_build_prog_cc_g=no
  5961    CFLAGS_FOR_BUILD="-g"
  5962    cat >conftest.$ac_ext <<_ACEOF
  5963 /* confdefs.h.  */
  5964 _ACEOF
  5965 cat confdefs.h >>conftest.$ac_ext
  5966 cat >>conftest.$ac_ext <<_ACEOF
  5967 /* end confdefs.h.  */
  5969 int
  5970 main ()
  5974   return 0;
  5976 _ACEOF
  5977 rm -f conftest.$ac_build_objext
  5978 if { (ac_try="$ac_build_compile"
  5979 case "(($ac_try" in
  5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5981   *) ac_try_echo=$ac_try;;
  5982 esac
  5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5984   (eval "$ac_build_compile") 2>conftest.er1
  5985   ac_status=$?
  5986   grep -v '^ *+' conftest.er1 >conftest.err
  5987   rm -f conftest.er1
  5988   cat conftest.err >&5
  5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5990   (exit $ac_status); } && {
  5991 	 test -z "$ac_c_werror_flag" ||
  5992 	 test ! -s conftest.err
  5993        } && test -s conftest.$ac_build_objext; then
  5994   ac_cv_build_prog_cc_g=yes
  5995 else
  5996   echo "$as_me: failed program was:" >&5
  5997 sed 's/^/| /' conftest.$ac_ext >&5
  5999 	CFLAGS_FOR_BUILD=""
  6000       cat >conftest.$ac_ext <<_ACEOF
  6001 /* confdefs.h.  */
  6002 _ACEOF
  6003 cat confdefs.h >>conftest.$ac_ext
  6004 cat >>conftest.$ac_ext <<_ACEOF
  6005 /* end confdefs.h.  */
  6007 int
  6008 main ()
  6012   return 0;
  6014 _ACEOF
  6015 rm -f conftest.$ac_build_objext
  6016 if { (ac_try="$ac_build_compile"
  6017 case "(($ac_try" in
  6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6019   *) ac_try_echo=$ac_try;;
  6020 esac
  6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6022   (eval "$ac_build_compile") 2>conftest.er1
  6023   ac_status=$?
  6024   grep -v '^ *+' conftest.er1 >conftest.err
  6025   rm -f conftest.er1
  6026   cat conftest.err >&5
  6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028   (exit $ac_status); } && {
  6029 	 test -z "$ac_c_werror_flag" ||
  6030 	 test ! -s conftest.err
  6031        } && test -s conftest.$ac_build_objext; then
  6033 else
  6034   echo "$as_me: failed program was:" >&5
  6035 sed 's/^/| /' conftest.$ac_ext >&5
  6037 	ac_c_werror_flag=$ac_save_c_werror_flag
  6038 	 CFLAGS_FOR_BUILD="-g"
  6039 	 cat >conftest.$ac_ext <<_ACEOF
  6040 /* confdefs.h.  */
  6041 _ACEOF
  6042 cat confdefs.h >>conftest.$ac_ext
  6043 cat >>conftest.$ac_ext <<_ACEOF
  6044 /* end confdefs.h.  */
  6046 int
  6047 main ()
  6051   return 0;
  6053 _ACEOF
  6054 rm -f conftest.$ac_build_objext
  6055 if { (ac_try="$ac_build_compile"
  6056 case "(($ac_try" in
  6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6058   *) ac_try_echo=$ac_try;;
  6059 esac
  6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6061   (eval "$ac_build_compile") 2>conftest.er1
  6062   ac_status=$?
  6063   grep -v '^ *+' conftest.er1 >conftest.err
  6064   rm -f conftest.er1
  6065   cat conftest.err >&5
  6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6067   (exit $ac_status); } && {
  6068 	 test -z "$ac_c_werror_flag" ||
  6069 	 test ! -s conftest.err
  6070        } && test -s conftest.$ac_build_objext; then
  6071   ac_cv_build_prog_cc_g=yes
  6072 else
  6073   echo "$as_me: failed program was:" >&5
  6074 sed 's/^/| /' conftest.$ac_ext >&5
  6077 fi
  6079 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6080 fi
  6082 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6083 fi
  6085 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6086    ac_c_werror_flag=$ac_save_c_werror_flag
  6087 fi
  6088 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6089 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6090 if test "$ac_test_CFLAGS" = set; then
  6091   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6092 elif test $ac_cv_build_prog_cc_g = yes; then
  6093   if test "$GCC" = yes; then
  6094     CFLAGS_FOR_BUILD="-g -O2"
  6095   else
  6096     CFLAGS_FOR_BUILD="-g"
  6097   fi
  6098 else
  6099   if test "$GCC" = yes; then
  6100     CFLAGS_FOR_BUILD="-O2"
  6101   else
  6102     CFLAGS_FOR_BUILD=
  6103   fi
  6104 fi
  6105 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6106 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6107 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6108   echo $ECHO_N "(cached) $ECHO_C" >&6
  6109 else
  6110   ac_cv_build_prog_cc_stdc=no
  6111 ac_save_CC=$CC_FOR_BUILD
  6112 cat >conftest.$ac_ext <<_ACEOF
  6113 /* confdefs.h.  */
  6114 _ACEOF
  6115 cat confdefs.h >>conftest.$ac_ext
  6116 cat >>conftest.$ac_ext <<_ACEOF
  6117 /* end confdefs.h.  */
  6118 #include <stdarg.h>
  6119 #include <stdio.h>
  6120 #include <sys/types.h>
  6121 #include <sys/stat.h>
  6122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6123 struct buf { int x; };
  6124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6125 static char *e (p, i)
  6126      char **p;
  6127      int i;
  6129   return p[i];
  6131 static char *f (char * (*g) (char **, int), char **p, ...)
  6133   char *s;
  6134   va_list v;
  6135   va_start (v,p);
  6136   s = g (p, va_arg (v,int));
  6137   va_end (v);
  6138   return s;
  6141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6142    function prototypes and stuff, but not '\xHH' hex character constants.
  6143    These don't provoke an error unfortunately, instead are silently treated
  6144    as 'x'.  The following induces an error, until -std is added to get
  6145    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6146    array size at least.  It's necessary to write '\x00'==0 to get something
  6147    that's true only with -std.  */
  6148 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6151    inside strings and character constants.  */
  6152 #define FOO(x) 'x'
  6153 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6155 int test (int i, double x);
  6156 struct s1 {int (*f) (int a);};
  6157 struct s2 {int (*f) (double a);};
  6158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6159 int argc;
  6160 char **argv;
  6161 int
  6162 main ()
  6164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6166   return 0;
  6168 _ACEOF
  6169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6170 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6171 do
  6172   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6173   rm -f conftest.$ac_build_objext
  6174 if { (ac_try="$ac_build_compile"
  6175 case "(($ac_try" in
  6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6177   *) ac_try_echo=$ac_try;;
  6178 esac
  6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6180   (eval "$ac_build_compile") 2>conftest.er1
  6181   ac_status=$?
  6182   grep -v '^ *+' conftest.er1 >conftest.err
  6183   rm -f conftest.er1
  6184   cat conftest.err >&5
  6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6186   (exit $ac_status); } && {
  6187 	 test -z "$ac_c_werror_flag" ||
  6188 	 test ! -s conftest.err
  6189        } && test -s conftest.$ac_build_objext; then
  6190   ac_cv_build_prog_cc_stdc=$ac_arg
  6191 else
  6192   echo "$as_me: failed program was:" >&5
  6193 sed 's/^/| /' conftest.$ac_ext >&5
  6196 fi
  6198 rm -f core conftest.err conftest.$ac_build_objext
  6199   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6200 done
  6201 rm -f conftest.$ac_ext
  6202 CC_FOR_BUILD=$ac_save_CC
  6204 fi
  6205 # AC_CACHE_VAL
  6206 case "x$ac_cv_build_prog_cc_stdc" in
  6207   x)
  6208     { echo "$as_me:$LINENO: result: none needed" >&5
  6209 echo "${ECHO_T}none needed" >&6; } ;;
  6210   xno)
  6211     { echo "$as_me:$LINENO: result: unsupported" >&5
  6212 echo "${ECHO_T}unsupported" >&6; } ;;
  6213   *)
  6214     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6215     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6216 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6217 esac
  6220 ac_ext=c
  6221 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6222 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6223 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6224 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6226 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6228 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6229 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6230 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6231   echo $ECHO_N "(cached) $ECHO_C" >&6
  6232 else
  6233   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6234   # We make a subdir and do the tests there.  Otherwise we can end up
  6235   # making bogus files that we don't know about and never remove.  For
  6236   # instance it was reported that on HP-UX the gcc test will end up
  6237   # making a dummy file named `D' -- because `-MD' means `put the output
  6238   # in D'.
  6239   mkdir conftest.dir
  6240   # Copy depcomp to subdir because otherwise we won't find it if we're
  6241   # using a relative directory.
  6242   cp "$am_depcomp" conftest.dir
  6243   cd conftest.dir
  6244   # We will build objects and dependencies in a subdirectory because
  6245   # it helps to detect inapplicable dependency modes.  For instance
  6246   # both Tru64's cc and ICC support -MD to output dependencies as a
  6247   # side effect of compilation, but ICC will put the dependencies in
  6248   # the current directory while Tru64 will put them in the object
  6249   # directory.
  6250   mkdir sub
  6252   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6253   if test "$am_compiler_list" = ""; then
  6254      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6255   fi
  6256   for depmode in $am_compiler_list; do
  6257     # Setup a source with many dependencies, because some compilers
  6258     # like to wrap large dependency lists on column 80 (with \), and
  6259     # we should not choose a depcomp mode which is confused by this.
  6261     # We need to recreate these files for each test, as the compiler may
  6262     # overwrite some of them when testing with obscure command lines.
  6263     # This happens at least with the AIX C compiler.
  6264     : > sub/conftest.c
  6265     for i in 1 2 3 4 5 6; do
  6266       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6267       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6268       # Solaris 8's {/usr,}/bin/sh.
  6269       touch sub/conftst$i.h
  6270     done
  6271     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6273     case $depmode in
  6274     nosideeffect)
  6275       # after this tag, mechanisms are not by side-effect, so they'll
  6276       # only be used when explicitly requested
  6277       if test "x$enable_dependency_tracking" = xyes; then
  6278 	continue
  6279       else
  6280 	break
  6281       fi
  6282       ;;
  6283     none) break ;;
  6284     esac
  6285     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6286     # mode.  It turns out that the SunPro C++ compiler does not properly
  6287     # handle `-M -o', and we need to detect this.
  6288     if depmode=$depmode \
  6289        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6290        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6291        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6292          >/dev/null 2>conftest.err &&
  6293        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6294        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6295        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6296       # icc doesn't choke on unknown options, it will just issue warnings
  6297       # or remarks (even with -Werror).  So we grep stderr for any message
  6298       # that says an option was ignored or not supported.
  6299       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6300       #   icc: Command line warning: ignoring option '-M'; no argument required
  6301       # The diagnosis changed in icc 8.0:
  6302       #   icc: Command line remark: option '-MP' not supported
  6303       if (grep 'ignoring option' conftest.err ||
  6304           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6305         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6306         break
  6307       fi
  6308     fi
  6309   done
  6311   cd ..
  6312   rm -rf conftest.dir
  6313 else
  6314   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6315 fi
  6317 fi
  6318 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6319 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6320 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6324 if
  6325   test "x$enable_dependency_tracking" != xno \
  6326   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6327   am__fastdepCC_FOR_BUILD_TRUE=
  6328   am__fastdepCC_FOR_BUILD_FALSE='#'
  6329 else
  6330   am__fastdepCC_FOR_BUILD_TRUE='#'
  6331   am__fastdepCC_FOR_BUILD_FALSE=
  6332 fi
  6335    case $ac_cv_build_prog_cc_stdc in
  6336   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6337   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6338 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6339 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6340   echo $ECHO_N "(cached) $ECHO_C" >&6
  6341 else
  6342   ac_cv_build_prog_cc_stdc=no
  6343 ac_save_CC=$CC_FOR_BUILD
  6344 cat >conftest.$ac_ext <<_ACEOF
  6345 /* confdefs.h.  */
  6346 _ACEOF
  6347 cat confdefs.h >>conftest.$ac_ext
  6348 cat >>conftest.$ac_ext <<_ACEOF
  6349 /* end confdefs.h.  */
  6350 #include <stdarg.h>
  6351 #include <stdbool.h>
  6352 #include <stdlib.h>
  6353 #include <wchar.h>
  6354 #include <stdio.h>
  6356 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6357 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6358 #define showlist(...) puts (#__VA_ARGS__)
  6359 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6360 static void
  6361 test_varargs_macros (void)
  6363   int x = 1234;
  6364   int y = 5678;
  6365   debug ("Flag");
  6366   debug ("X = %d\n", x);
  6367   showlist (The first, second, and third items.);
  6368   report (x>y, "x is %d but y is %d", x, y);
  6371 // Check long long types.
  6372 #define BIG64 18446744073709551615ull
  6373 #define BIG32 4294967295ul
  6374 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6375 #if !BIG_OK
  6376   your preprocessor is broken;
  6377 #endif
  6378 #if BIG_OK
  6379 #else
  6380   your preprocessor is broken;
  6381 #endif
  6382 static long long int bignum = -9223372036854775807LL;
  6383 static unsigned long long int ubignum = BIG64;
  6385 struct incomplete_array
  6387   int datasize;
  6388   double data[];
  6389 };
  6391 struct named_init {
  6392   int number;
  6393   const wchar_t *name;
  6394   double average;
  6395 };
  6397 typedef const char *ccp;
  6399 static inline int
  6400 test_restrict (ccp restrict text)
  6402   // See if C++-style comments work.
  6403   // Iterate through items via the restricted pointer.
  6404   // Also check for declarations in for loops.
  6405   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6406     continue;
  6407   return 0;
  6410 // Check varargs and va_copy.
  6411 static void
  6412 test_varargs (const char *format, ...)
  6414   va_list args;
  6415   va_start (args, format);
  6416   va_list args_copy;
  6417   va_copy (args_copy, args);
  6419   const char *str;
  6420   int number;
  6421   float fnumber;
  6423   while (*format)
  6425       switch (*format++)
  6427 	case 's': // string
  6428 	  str = va_arg (args_copy, const char *);
  6429 	  break;
  6430 	case 'd': // int
  6431 	  number = va_arg (args_copy, int);
  6432 	  break;
  6433 	case 'f': // float
  6434 	  fnumber = va_arg (args_copy, double);
  6435 	  break;
  6436 	default:
  6437 	  break;
  6440   va_end (args_copy);
  6441   va_end (args);
  6444 int
  6445 main ()
  6448   // Check bool.
  6449   _Bool success = false;
  6451   // Check restrict.
  6452   if (test_restrict ("String literal") == 0)
  6453     success = true;
  6454   char *restrict newvar = "Another string";
  6456   // Check varargs.
  6457   test_varargs ("s, d' f .", "string", 65, 34.234);
  6458   test_varargs_macros ();
  6460   // Check flexible array members.
  6461   struct incomplete_array *ia =
  6462     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6463   ia->datasize = 10;
  6464   for (int i = 0; i < ia->datasize; ++i)
  6465     ia->data[i] = i * 1.234;
  6467   // Check named initializers.
  6468   struct named_init ni = {
  6469     .number = 34,
  6470     .name = L"Test wide string",
  6471     .average = 543.34343,
  6472   };
  6474   ni.number = 58;
  6476   int dynamic_array[ni.number];
  6477   dynamic_array[ni.number - 1] = 543;
  6479   // work around unused variable warnings
  6480   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6481 	  || dynamic_array[ni.number - 1] != 543);
  6484   return 0;
  6486 _ACEOF
  6487 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6488 do
  6489   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6490   rm -f conftest.$ac_build_objext
  6491 if { (ac_try="$ac_build_compile"
  6492 case "(($ac_try" in
  6493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6494   *) ac_try_echo=$ac_try;;
  6495 esac
  6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6497   (eval "$ac_build_compile") 2>conftest.er1
  6498   ac_status=$?
  6499   grep -v '^ *+' conftest.er1 >conftest.err
  6500   rm -f conftest.er1
  6501   cat conftest.err >&5
  6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6503   (exit $ac_status); } && {
  6504 	 test -z "$ac_c_werror_flag" ||
  6505 	 test ! -s conftest.err
  6506        } && test -s conftest.$ac_build_objext; then
  6507   ac_cv_build_prog_cc_stdc=$ac_arg
  6508 else
  6509   echo "$as_me: failed program was:" >&5
  6510 sed 's/^/| /' conftest.$ac_ext >&5
  6513 fi
  6515 rm -f core conftest.err conftest.$ac_build_objext
  6516   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6517 done
  6518 rm -f conftest.$ac_ext
  6519 CC_FOR_BUILD=$ac_save_CC
  6521 fi
  6522 # AC_CACHE_VAL
  6523 case "x$ac_cv_build_prog_cc_stdc" in
  6524   x)
  6525     { echo "$as_me:$LINENO: result: none needed" >&5
  6526 echo "${ECHO_T}none needed" >&6; } ;;
  6527   xno)
  6528     { echo "$as_me:$LINENO: result: unsupported" >&5
  6529 echo "${ECHO_T}unsupported" >&6; } ;;
  6530   *)
  6531     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6532     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6533 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6534 esac
  6535 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6536   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6537 else
  6538   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6539 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6540 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6541   echo $ECHO_N "(cached) $ECHO_C" >&6
  6542 else
  6543   ac_cv_build_prog_cc_stdc=no
  6544 ac_save_CC=$CC_FOR_BUILD
  6545 cat >conftest.$ac_ext <<_ACEOF
  6546 /* confdefs.h.  */
  6547 _ACEOF
  6548 cat confdefs.h >>conftest.$ac_ext
  6549 cat >>conftest.$ac_ext <<_ACEOF
  6550 /* end confdefs.h.  */
  6551 #include <stdarg.h>
  6552 #include <stdio.h>
  6553 #include <sys/types.h>
  6554 #include <sys/stat.h>
  6555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6556 struct buf { int x; };
  6557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6558 static char *e (p, i)
  6559      char **p;
  6560      int i;
  6562   return p[i];
  6564 static char *f (char * (*g) (char **, int), char **p, ...)
  6566   char *s;
  6567   va_list v;
  6568   va_start (v,p);
  6569   s = g (p, va_arg (v,int));
  6570   va_end (v);
  6571   return s;
  6574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6575    function prototypes and stuff, but not '\xHH' hex character constants.
  6576    These don't provoke an error unfortunately, instead are silently treated
  6577    as 'x'.  The following induces an error, until -std is added to get
  6578    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6579    array size at least.  It's necessary to write '\x00'==0 to get something
  6580    that's true only with -std.  */
  6581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6584    inside strings and character constants.  */
  6585 #define FOO(x) 'x'
  6586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6588 int test (int i, double x);
  6589 struct s1 {int (*f) (int a);};
  6590 struct s2 {int (*f) (double a);};
  6591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6592 int argc;
  6593 char **argv;
  6594 int
  6595 main ()
  6597 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6599   return 0;
  6601 _ACEOF
  6602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6603 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6604 do
  6605   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6606   rm -f conftest.$ac_build_objext
  6607 if { (ac_try="$ac_build_compile"
  6608 case "(($ac_try" in
  6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6610   *) ac_try_echo=$ac_try;;
  6611 esac
  6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6613   (eval "$ac_build_compile") 2>conftest.er1
  6614   ac_status=$?
  6615   grep -v '^ *+' conftest.er1 >conftest.err
  6616   rm -f conftest.er1
  6617   cat conftest.err >&5
  6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6619   (exit $ac_status); } && {
  6620 	 test -z "$ac_c_werror_flag" ||
  6621 	 test ! -s conftest.err
  6622        } && test -s conftest.$ac_build_objext; then
  6623   ac_cv_build_prog_cc_stdc=$ac_arg
  6624 else
  6625   echo "$as_me: failed program was:" >&5
  6626 sed 's/^/| /' conftest.$ac_ext >&5
  6629 fi
  6631 rm -f core conftest.err conftest.$ac_build_objext
  6632   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6633 done
  6634 rm -f conftest.$ac_ext
  6635 CC_FOR_BUILD=$ac_save_CC
  6637 fi
  6638 # AC_CACHE_VAL
  6639 case "x$ac_cv_build_prog_cc_stdc" in
  6640   x)
  6641     { echo "$as_me:$LINENO: result: none needed" >&5
  6642 echo "${ECHO_T}none needed" >&6; } ;;
  6643   xno)
  6644     { echo "$as_me:$LINENO: result: unsupported" >&5
  6645 echo "${ECHO_T}unsupported" >&6; } ;;
  6646   *)
  6647     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6648     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6649 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6650 esac
  6651 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6652   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6653 else
  6654   ac_cv_build_prog_cc_stdc=no
  6655 fi
  6658 fi
  6660  ;;
  6661 esac
  6662   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6663 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6664   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6665   echo $ECHO_N "(cached) $ECHO_C" >&6
  6666 fi
  6668   case $ac_cv_build_prog_cc_stdc in
  6669   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6670 echo "${ECHO_T}unsupported" >&6; } ;;
  6671   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6672 echo "${ECHO_T}none needed" >&6; } ;;
  6673   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6674 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6675 esac
  6678 ac_ext=c
  6679 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6680 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6681 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6682 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6683 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6685 # On Suns, sometimes $CPP names a directory.
  6686 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6687   CPP_FOR_BUILD=
  6688 fi
  6689 if test -z "$CPP_FOR_BUILD"; then
  6690   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6691   echo $ECHO_N "(cached) $ECHO_C" >&6
  6692 else
  6693       # Double quotes because CPP needs to be expanded
  6694     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6695     do
  6696       ac_preproc_ok=false
  6697 for ac_c_preproc_warn_flag in '' yes
  6698 do
  6699   # Use a header file that comes with gcc, so configuring glibc
  6700   # with a fresh cross-compiler works.
  6701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6702   # <limits.h> exists even on freestanding compilers.
  6703   # On the NeXT, cc -E runs the code through the compiler's parser,
  6704   # not just through cpp. "Syntax error" is here to catch this case.
  6705   cat >conftest.$ac_ext <<_ACEOF
  6706 /* confdefs.h.  */
  6707 _ACEOF
  6708 cat confdefs.h >>conftest.$ac_ext
  6709 cat >>conftest.$ac_ext <<_ACEOF
  6710 /* end confdefs.h.  */
  6711 #ifdef __STDC__
  6712 # include <limits.h>
  6713 #else
  6714 # include <assert.h>
  6715 #endif
  6716 		     Syntax error
  6717 _ACEOF
  6718 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6719 case "(($ac_try" in
  6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6721   *) ac_try_echo=$ac_try;;
  6722 esac
  6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6724   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6725   ac_status=$?
  6726   grep -v '^ *+' conftest.er1 >conftest.err
  6727   rm -f conftest.er1
  6728   cat conftest.err >&5
  6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730   (exit $ac_status); } >/dev/null && {
  6731 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6732 	 test ! -s conftest.err
  6733        }; then
  6735 else
  6736   echo "$as_me: failed program was:" >&5
  6737 sed 's/^/| /' conftest.$ac_ext >&5
  6739   # Broken: fails on valid input.
  6740 continue
  6741 fi
  6743 rm -f conftest.err conftest.$ac_ext
  6745   # OK, works on sane cases.  Now check whether nonexistent headers
  6746   # can be detected and how.
  6747   cat >conftest.$ac_ext <<_ACEOF
  6748 /* confdefs.h.  */
  6749 _ACEOF
  6750 cat confdefs.h >>conftest.$ac_ext
  6751 cat >>conftest.$ac_ext <<_ACEOF
  6752 /* end confdefs.h.  */
  6753 #include <ac_nonexistent.h>
  6754 _ACEOF
  6755 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6756 case "(($ac_try" in
  6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6758   *) ac_try_echo=$ac_try;;
  6759 esac
  6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6761   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6762   ac_status=$?
  6763   grep -v '^ *+' conftest.er1 >conftest.err
  6764   rm -f conftest.er1
  6765   cat conftest.err >&5
  6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6767   (exit $ac_status); } >/dev/null && {
  6768 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6769 	 test ! -s conftest.err
  6770        }; then
  6771   # Broken: success on invalid input.
  6772 continue
  6773 else
  6774   echo "$as_me: failed program was:" >&5
  6775 sed 's/^/| /' conftest.$ac_ext >&5
  6777   # Passes both tests.
  6778 ac_preproc_ok=:
  6779 break
  6780 fi
  6782 rm -f conftest.err conftest.$ac_ext
  6784 done
  6785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6786 rm -f conftest.err conftest.$ac_ext
  6787 if $ac_preproc_ok; then
  6788   break
  6789 fi
  6791     done
  6792     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6794 fi
  6795   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  6796 else
  6797   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6798 fi
  6799 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  6800 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  6801 ac_preproc_ok=false
  6802 for ac_c_preproc_warn_flag in '' yes
  6803 do
  6804   # Use a header file that comes with gcc, so configuring glibc
  6805   # with a fresh cross-compiler works.
  6806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6807   # <limits.h> exists even on freestanding compilers.
  6808   # On the NeXT, cc -E runs the code through the compiler's parser,
  6809   # not just through cpp. "Syntax error" is here to catch this case.
  6810   cat >conftest.$ac_ext <<_ACEOF
  6811 /* confdefs.h.  */
  6812 _ACEOF
  6813 cat confdefs.h >>conftest.$ac_ext
  6814 cat >>conftest.$ac_ext <<_ACEOF
  6815 /* end confdefs.h.  */
  6816 #ifdef __STDC__
  6817 # include <limits.h>
  6818 #else
  6819 # include <assert.h>
  6820 #endif
  6821 		     Syntax error
  6822 _ACEOF
  6823 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6824 case "(($ac_try" in
  6825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6826   *) ac_try_echo=$ac_try;;
  6827 esac
  6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6829   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6830   ac_status=$?
  6831   grep -v '^ *+' conftest.er1 >conftest.err
  6832   rm -f conftest.er1
  6833   cat conftest.err >&5
  6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6835   (exit $ac_status); } >/dev/null && {
  6836 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6837 	 test ! -s conftest.err
  6838        }; then
  6840 else
  6841   echo "$as_me: failed program was:" >&5
  6842 sed 's/^/| /' conftest.$ac_ext >&5
  6844   # Broken: fails on valid input.
  6845 continue
  6846 fi
  6848 rm -f conftest.err conftest.$ac_ext
  6850   # OK, works on sane cases.  Now check whether nonexistent headers
  6851   # can be detected and how.
  6852   cat >conftest.$ac_ext <<_ACEOF
  6853 /* confdefs.h.  */
  6854 _ACEOF
  6855 cat confdefs.h >>conftest.$ac_ext
  6856 cat >>conftest.$ac_ext <<_ACEOF
  6857 /* end confdefs.h.  */
  6858 #include <ac_nonexistent.h>
  6859 _ACEOF
  6860 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6861 case "(($ac_try" in
  6862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6863   *) ac_try_echo=$ac_try;;
  6864 esac
  6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6866   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6867   ac_status=$?
  6868   grep -v '^ *+' conftest.er1 >conftest.err
  6869   rm -f conftest.er1
  6870   cat conftest.err >&5
  6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6872   (exit $ac_status); } >/dev/null && {
  6873 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6874 	 test ! -s conftest.err
  6875        }; then
  6876   # Broken: success on invalid input.
  6877 continue
  6878 else
  6879   echo "$as_me: failed program was:" >&5
  6880 sed 's/^/| /' conftest.$ac_ext >&5
  6882   # Passes both tests.
  6883 ac_preproc_ok=:
  6884 break
  6885 fi
  6887 rm -f conftest.err conftest.$ac_ext
  6889 done
  6890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6891 rm -f conftest.err conftest.$ac_ext
  6892 if $ac_preproc_ok; then
  6894 else
  6895   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  6896 See \`config.log' for more details." >&5
  6897 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  6898 See \`config.log' for more details." >&2;}
  6899    { (exit 1); exit 1; }; }
  6900 fi
  6902 ac_ext=c
  6903 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6904 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6905 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6906 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6911 BUILD_EXEEXT=$ac_build_exeext
  6912 BUILD_OBJEXT=$ac_build_objext
  6914 ac_ext=m
  6915 ac_cpp='$OBJCPP $CPPFLAGS'
  6916 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6917 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6918 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  6919 if test -n "$ac_tool_prefix"; then
  6920   for ac_prog in gcc objcc objc cc CC
  6921   do
  6922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6926 if test "${ac_cv_prog_OBJC+set}" = set; then
  6927   echo $ECHO_N "(cached) $ECHO_C" >&6
  6928 else
  6929   if test -n "$OBJC"; then
  6930   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  6931 else
  6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933 for as_dir in $PATH
  6934 do
  6935   IFS=$as_save_IFS
  6936   test -z "$as_dir" && as_dir=.
  6937   for ac_exec_ext in '' $ac_executable_extensions; do
  6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6939     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941     break 2
  6942   fi
  6943 done
  6944 done
  6945 IFS=$as_save_IFS
  6947 fi
  6948 fi
  6949 OBJC=$ac_cv_prog_OBJC
  6950 if test -n "$OBJC"; then
  6951   { echo "$as_me:$LINENO: result: $OBJC" >&5
  6952 echo "${ECHO_T}$OBJC" >&6; }
  6953 else
  6954   { echo "$as_me:$LINENO: result: no" >&5
  6955 echo "${ECHO_T}no" >&6; }
  6956 fi
  6959     test -n "$OBJC" && break
  6960   done
  6961 fi
  6962 if test -z "$OBJC"; then
  6963   ac_ct_OBJC=$OBJC
  6964   for ac_prog in gcc objcc objc cc CC
  6965 do
  6966   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6967 set dummy $ac_prog; ac_word=$2
  6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6970 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  6971   echo $ECHO_N "(cached) $ECHO_C" >&6
  6972 else
  6973   if test -n "$ac_ct_OBJC"; then
  6974   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  6975 else
  6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6977 for as_dir in $PATH
  6978 do
  6979   IFS=$as_save_IFS
  6980   test -z "$as_dir" && as_dir=.
  6981   for ac_exec_ext in '' $ac_executable_extensions; do
  6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6983     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6985     break 2
  6986   fi
  6987 done
  6988 done
  6989 IFS=$as_save_IFS
  6991 fi
  6992 fi
  6993 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  6994 if test -n "$ac_ct_OBJC"; then
  6995   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  6996 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  6997 else
  6998   { echo "$as_me:$LINENO: result: no" >&5
  6999 echo "${ECHO_T}no" >&6; }
  7000 fi
  7003   test -n "$ac_ct_OBJC" && break
  7004 done
  7006   if test "x$ac_ct_OBJC" = x; then
  7007     OBJC="gcc"
  7008   else
  7009     case $cross_compiling:$ac_tool_warned in
  7010 yes:)
  7011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7012 whose name does not start with the host triplet.  If you think this
  7013 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7015 whose name does not start with the host triplet.  If you think this
  7016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7017 ac_tool_warned=yes ;;
  7018 esac
  7019     OBJC=$ac_ct_OBJC
  7020   fi
  7021 fi
  7023 # Provide some information about the compiler.
  7024 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7025 ac_compiler=`set X $ac_compile; echo $2`
  7026 { (ac_try="$ac_compiler --version >&5"
  7027 case "(($ac_try" in
  7028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7029   *) ac_try_echo=$ac_try;;
  7030 esac
  7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7032   (eval "$ac_compiler --version >&5") 2>&5
  7033   ac_status=$?
  7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7035   (exit $ac_status); }
  7036 { (ac_try="$ac_compiler -v >&5"
  7037 case "(($ac_try" in
  7038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7039   *) ac_try_echo=$ac_try;;
  7040 esac
  7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7042   (eval "$ac_compiler -v >&5") 2>&5
  7043   ac_status=$?
  7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045   (exit $ac_status); }
  7046 { (ac_try="$ac_compiler -V >&5"
  7047 case "(($ac_try" in
  7048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7049   *) ac_try_echo=$ac_try;;
  7050 esac
  7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7052   (eval "$ac_compiler -V >&5") 2>&5
  7053   ac_status=$?
  7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7055   (exit $ac_status); }
  7057 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7058 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7059 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7060   echo $ECHO_N "(cached) $ECHO_C" >&6
  7061 else
  7062   cat >conftest.$ac_ext <<_ACEOF
  7063 /* confdefs.h.  */
  7064 _ACEOF
  7065 cat confdefs.h >>conftest.$ac_ext
  7066 cat >>conftest.$ac_ext <<_ACEOF
  7067 /* end confdefs.h.  */
  7069 int
  7070 main ()
  7072 #ifndef __GNUC__
  7073        choke me
  7074 #endif
  7077   return 0;
  7079 _ACEOF
  7080 rm -f conftest.$ac_objext
  7081 if { (ac_try="$ac_compile"
  7082 case "(($ac_try" in
  7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7084   *) ac_try_echo=$ac_try;;
  7085 esac
  7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7087   (eval "$ac_compile") 2>conftest.er1
  7088   ac_status=$?
  7089   grep -v '^ *+' conftest.er1 >conftest.err
  7090   rm -f conftest.er1
  7091   cat conftest.err >&5
  7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093   (exit $ac_status); } && {
  7094 	 test -z "$ac_objc_werror_flag" ||
  7095 	 test ! -s conftest.err
  7096        } && test -s conftest.$ac_objext; then
  7097   ac_compiler_gnu=yes
  7098 else
  7099   echo "$as_me: failed program was:" >&5
  7100 sed 's/^/| /' conftest.$ac_ext >&5
  7102 	ac_compiler_gnu=no
  7103 fi
  7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7106 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7108 fi
  7109 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7110 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7111 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7112 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7113 ac_save_OBJCFLAGS=$OBJCFLAGS
  7114 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7115 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7116 if test "${ac_cv_prog_objc_g+set}" = set; then
  7117   echo $ECHO_N "(cached) $ECHO_C" >&6
  7118 else
  7119   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7120    ac_objc_werror_flag=yes
  7121    ac_cv_prog_objc_g=no
  7122    OBJCFLAGS="-g"
  7123    cat >conftest.$ac_ext <<_ACEOF
  7124 /* confdefs.h.  */
  7125 _ACEOF
  7126 cat confdefs.h >>conftest.$ac_ext
  7127 cat >>conftest.$ac_ext <<_ACEOF
  7128 /* end confdefs.h.  */
  7130 int
  7131 main ()
  7135   return 0;
  7137 _ACEOF
  7138 rm -f conftest.$ac_objext
  7139 if { (ac_try="$ac_compile"
  7140 case "(($ac_try" in
  7141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7142   *) ac_try_echo=$ac_try;;
  7143 esac
  7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7145   (eval "$ac_compile") 2>conftest.er1
  7146   ac_status=$?
  7147   grep -v '^ *+' conftest.er1 >conftest.err
  7148   rm -f conftest.er1
  7149   cat conftest.err >&5
  7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7151   (exit $ac_status); } && {
  7152 	 test -z "$ac_objc_werror_flag" ||
  7153 	 test ! -s conftest.err
  7154        } && test -s conftest.$ac_objext; then
  7155   ac_cv_prog_objc_g=yes
  7156 else
  7157   echo "$as_me: failed program was:" >&5
  7158 sed 's/^/| /' conftest.$ac_ext >&5
  7160 	OBJCFLAGS=""
  7161       cat >conftest.$ac_ext <<_ACEOF
  7162 /* confdefs.h.  */
  7163 _ACEOF
  7164 cat confdefs.h >>conftest.$ac_ext
  7165 cat >>conftest.$ac_ext <<_ACEOF
  7166 /* end confdefs.h.  */
  7168 int
  7169 main ()
  7173   return 0;
  7175 _ACEOF
  7176 rm -f conftest.$ac_objext
  7177 if { (ac_try="$ac_compile"
  7178 case "(($ac_try" in
  7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7180   *) ac_try_echo=$ac_try;;
  7181 esac
  7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7183   (eval "$ac_compile") 2>conftest.er1
  7184   ac_status=$?
  7185   grep -v '^ *+' conftest.er1 >conftest.err
  7186   rm -f conftest.er1
  7187   cat conftest.err >&5
  7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7189   (exit $ac_status); } && {
  7190 	 test -z "$ac_objc_werror_flag" ||
  7191 	 test ! -s conftest.err
  7192        } && test -s conftest.$ac_objext; then
  7194 else
  7195   echo "$as_me: failed program was:" >&5
  7196 sed 's/^/| /' conftest.$ac_ext >&5
  7198 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7199 	 OBJCFLAGS="-g"
  7200 	 cat >conftest.$ac_ext <<_ACEOF
  7201 /* confdefs.h.  */
  7202 _ACEOF
  7203 cat confdefs.h >>conftest.$ac_ext
  7204 cat >>conftest.$ac_ext <<_ACEOF
  7205 /* end confdefs.h.  */
  7207 int
  7208 main ()
  7212   return 0;
  7214 _ACEOF
  7215 rm -f conftest.$ac_objext
  7216 if { (ac_try="$ac_compile"
  7217 case "(($ac_try" in
  7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7219   *) ac_try_echo=$ac_try;;
  7220 esac
  7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7222   (eval "$ac_compile") 2>conftest.er1
  7223   ac_status=$?
  7224   grep -v '^ *+' conftest.er1 >conftest.err
  7225   rm -f conftest.er1
  7226   cat conftest.err >&5
  7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7228   (exit $ac_status); } && {
  7229 	 test -z "$ac_objc_werror_flag" ||
  7230 	 test ! -s conftest.err
  7231        } && test -s conftest.$ac_objext; then
  7232   ac_cv_prog_objc_g=yes
  7233 else
  7234   echo "$as_me: failed program was:" >&5
  7235 sed 's/^/| /' conftest.$ac_ext >&5
  7238 fi
  7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7241 fi
  7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7244 fi
  7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7247    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7248 fi
  7249 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7250 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7251 if test "$ac_test_OBJCFLAGS" = set; then
  7252   OBJCFLAGS=$ac_save_OBJCFLAGS
  7253 elif test $ac_cv_prog_objc_g = yes; then
  7254   if test "$GOBJC" = yes; then
  7255     OBJCFLAGS="-g -O2"
  7256   else
  7257     OBJCFLAGS="-g"
  7258   fi
  7259 else
  7260   if test "$GOBJC" = yes; then
  7261     OBJCFLAGS="-O2"
  7262   else
  7263     OBJCFLAGS=
  7264   fi
  7265 fi
  7266 ac_ext=c
  7267 ac_cpp='$CPP $CPPFLAGS'
  7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7272 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7273 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7274 if test "${ac_cv_path_SED+set}" = set; then
  7275   echo $ECHO_N "(cached) $ECHO_C" >&6
  7276 else
  7277             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7278      for ac_i in 1 2 3 4 5 6 7; do
  7279        ac_script="$ac_script$as_nl$ac_script"
  7280      done
  7281      echo "$ac_script" | sed 99q >conftest.sed
  7282      $as_unset ac_script || ac_script=
  7283      # Extract the first word of "sed gsed" to use in msg output
  7284 if test -z "$SED"; then
  7285 set dummy sed gsed; ac_prog_name=$2
  7286 if test "${ac_cv_path_SED+set}" = set; then
  7287   echo $ECHO_N "(cached) $ECHO_C" >&6
  7288 else
  7289   ac_path_SED_found=false
  7290 # Loop through the user's path and test for each of PROGNAME-LIST
  7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7292 for as_dir in $PATH
  7293 do
  7294   IFS=$as_save_IFS
  7295   test -z "$as_dir" && as_dir=.
  7296   for ac_prog in sed gsed; do
  7297   for ac_exec_ext in '' $ac_executable_extensions; do
  7298     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7299     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7300     # Check for GNU ac_path_SED and select it if it is found.
  7301   # Check for GNU $ac_path_SED
  7302 case `"$ac_path_SED" --version 2>&1` in
  7303 *GNU*)
  7304   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7305 *)
  7306   ac_count=0
  7307   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7308   while :
  7309   do
  7310     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7311     mv "conftest.tmp" "conftest.in"
  7312     cp "conftest.in" "conftest.nl"
  7313     echo '' >> "conftest.nl"
  7314     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7316     ac_count=`expr $ac_count + 1`
  7317     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7318       # Best one so far, save it but keep looking for a better one
  7319       ac_cv_path_SED="$ac_path_SED"
  7320       ac_path_SED_max=$ac_count
  7321     fi
  7322     # 10*(2^10) chars as input seems more than enough
  7323     test $ac_count -gt 10 && break
  7324   done
  7325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7326 esac
  7329     $ac_path_SED_found && break 3
  7330   done
  7331 done
  7333 done
  7334 IFS=$as_save_IFS
  7337 fi
  7339 SED="$ac_cv_path_SED"
  7340 if test -z "$SED"; then
  7341   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  7342 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  7343    { (exit 1); exit 1; }; }
  7344 fi
  7346 else
  7347   ac_cv_path_SED=$SED
  7348 fi
  7350 fi
  7351 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7352 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  7353  SED="$ac_cv_path_SED"
  7354   rm -f conftest.sed
  7356 # By default we simply use the C compiler to build assembly code.
  7358 test "${CCAS+set}" = set || CCAS=$CC
  7359 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7363 if test -n "$ac_tool_prefix"; then
  7364   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7368 if test "${ac_cv_prog_RANLIB+set}" = set; then
  7369   echo $ECHO_N "(cached) $ECHO_C" >&6
  7370 else
  7371   if test -n "$RANLIB"; then
  7372   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7373 else
  7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7375 for as_dir in $PATH
  7376 do
  7377   IFS=$as_save_IFS
  7378   test -z "$as_dir" && as_dir=.
  7379   for ac_exec_ext in '' $ac_executable_extensions; do
  7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7381     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7383     break 2
  7384   fi
  7385 done
  7386 done
  7387 IFS=$as_save_IFS
  7389 fi
  7390 fi
  7391 RANLIB=$ac_cv_prog_RANLIB
  7392 if test -n "$RANLIB"; then
  7393   { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7394 echo "${ECHO_T}$RANLIB" >&6; }
  7395 else
  7396   { echo "$as_me:$LINENO: result: no" >&5
  7397 echo "${ECHO_T}no" >&6; }
  7398 fi
  7401 fi
  7402 if test -z "$ac_cv_prog_RANLIB"; then
  7403   ac_ct_RANLIB=$RANLIB
  7404   # Extract the first word of "ranlib", so it can be a program name with args.
  7405 set dummy ranlib; ac_word=$2
  7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7409   echo $ECHO_N "(cached) $ECHO_C" >&6
  7410 else
  7411   if test -n "$ac_ct_RANLIB"; then
  7412   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7413 else
  7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7415 for as_dir in $PATH
  7416 do
  7417   IFS=$as_save_IFS
  7418   test -z "$as_dir" && as_dir=.
  7419   for ac_exec_ext in '' $ac_executable_extensions; do
  7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7421     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7423     break 2
  7424   fi
  7425 done
  7426 done
  7427 IFS=$as_save_IFS
  7429 fi
  7430 fi
  7431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7432 if test -n "$ac_ct_RANLIB"; then
  7433   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7434 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7435 else
  7436   { echo "$as_me:$LINENO: result: no" >&5
  7437 echo "${ECHO_T}no" >&6; }
  7438 fi
  7440   if test "x$ac_ct_RANLIB" = x; then
  7441     RANLIB=":"
  7442   else
  7443     case $cross_compiling:$ac_tool_warned in
  7444 yes:)
  7445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7446 whose name does not start with the host triplet.  If you think this
  7447 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7449 whose name does not start with the host triplet.  If you think this
  7450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7451 ac_tool_warned=yes ;;
  7452 esac
  7453     RANLIB=$ac_ct_RANLIB
  7454   fi
  7455 else
  7456   RANLIB="$ac_cv_prog_RANLIB"
  7457 fi
  7460 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  7461 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  7462 if test "${ac_cv_path_GREP+set}" = set; then
  7463   echo $ECHO_N "(cached) $ECHO_C" >&6
  7464 else
  7465   # Extract the first word of "grep ggrep" to use in msg output
  7466 if test -z "$GREP"; then
  7467 set dummy grep ggrep; ac_prog_name=$2
  7468 if test "${ac_cv_path_GREP+set}" = set; then
  7469   echo $ECHO_N "(cached) $ECHO_C" >&6
  7470 else
  7471   ac_path_GREP_found=false
  7472 # Loop through the user's path and test for each of PROGNAME-LIST
  7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7475 do
  7476   IFS=$as_save_IFS
  7477   test -z "$as_dir" && as_dir=.
  7478   for ac_prog in grep ggrep; do
  7479   for ac_exec_ext in '' $ac_executable_extensions; do
  7480     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7481     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  7482     # Check for GNU ac_path_GREP and select it if it is found.
  7483   # Check for GNU $ac_path_GREP
  7484 case `"$ac_path_GREP" --version 2>&1` in
  7485 *GNU*)
  7486   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7487 *)
  7488   ac_count=0
  7489   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7490   while :
  7491   do
  7492     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7493     mv "conftest.tmp" "conftest.in"
  7494     cp "conftest.in" "conftest.nl"
  7495     echo 'GREP' >> "conftest.nl"
  7496     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7497     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7498     ac_count=`expr $ac_count + 1`
  7499     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7500       # Best one so far, save it but keep looking for a better one
  7501       ac_cv_path_GREP="$ac_path_GREP"
  7502       ac_path_GREP_max=$ac_count
  7503     fi
  7504     # 10*(2^10) chars as input seems more than enough
  7505     test $ac_count -gt 10 && break
  7506   done
  7507   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7508 esac
  7511     $ac_path_GREP_found && break 3
  7512   done
  7513 done
  7515 done
  7516 IFS=$as_save_IFS
  7519 fi
  7521 GREP="$ac_cv_path_GREP"
  7522 if test -z "$GREP"; then
  7523   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7524 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7525    { (exit 1); exit 1; }; }
  7526 fi
  7528 else
  7529   ac_cv_path_GREP=$GREP
  7530 fi
  7533 fi
  7534 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  7535 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  7536  GREP="$ac_cv_path_GREP"
  7539 { echo "$as_me:$LINENO: checking for egrep" >&5
  7540 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  7541 if test "${ac_cv_path_EGREP+set}" = set; then
  7542   echo $ECHO_N "(cached) $ECHO_C" >&6
  7543 else
  7544   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7545    then ac_cv_path_EGREP="$GREP -E"
  7546    else
  7547      # Extract the first word of "egrep" to use in msg output
  7548 if test -z "$EGREP"; then
  7549 set dummy egrep; ac_prog_name=$2
  7550 if test "${ac_cv_path_EGREP+set}" = set; then
  7551   echo $ECHO_N "(cached) $ECHO_C" >&6
  7552 else
  7553   ac_path_EGREP_found=false
  7554 # Loop through the user's path and test for each of PROGNAME-LIST
  7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7557 do
  7558   IFS=$as_save_IFS
  7559   test -z "$as_dir" && as_dir=.
  7560   for ac_prog in egrep; do
  7561   for ac_exec_ext in '' $ac_executable_extensions; do
  7562     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7563     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  7564     # Check for GNU ac_path_EGREP and select it if it is found.
  7565   # Check for GNU $ac_path_EGREP
  7566 case `"$ac_path_EGREP" --version 2>&1` in
  7567 *GNU*)
  7568   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7569 *)
  7570   ac_count=0
  7571   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7572   while :
  7573   do
  7574     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7575     mv "conftest.tmp" "conftest.in"
  7576     cp "conftest.in" "conftest.nl"
  7577     echo 'EGREP' >> "conftest.nl"
  7578     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7580     ac_count=`expr $ac_count + 1`
  7581     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7582       # Best one so far, save it but keep looking for a better one
  7583       ac_cv_path_EGREP="$ac_path_EGREP"
  7584       ac_path_EGREP_max=$ac_count
  7585     fi
  7586     # 10*(2^10) chars as input seems more than enough
  7587     test $ac_count -gt 10 && break
  7588   done
  7589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7590 esac
  7593     $ac_path_EGREP_found && break 3
  7594   done
  7595 done
  7597 done
  7598 IFS=$as_save_IFS
  7601 fi
  7603 EGREP="$ac_cv_path_EGREP"
  7604 if test -z "$EGREP"; then
  7605   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7606 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7607    { (exit 1); exit 1; }; }
  7608 fi
  7610 else
  7611   ac_cv_path_EGREP=$EGREP
  7612 fi
  7615    fi
  7616 fi
  7617 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  7618 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  7619  EGREP="$ac_cv_path_EGREP"
  7622 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7624 if test "${ac_cv_header_stdc+set}" = set; then
  7625   echo $ECHO_N "(cached) $ECHO_C" >&6
  7626 else
  7627   cat >conftest.$ac_ext <<_ACEOF
  7628 /* confdefs.h.  */
  7629 _ACEOF
  7630 cat confdefs.h >>conftest.$ac_ext
  7631 cat >>conftest.$ac_ext <<_ACEOF
  7632 /* end confdefs.h.  */
  7633 #include <stdlib.h>
  7634 #include <stdarg.h>
  7635 #include <string.h>
  7636 #include <float.h>
  7638 int
  7639 main ()
  7643   return 0;
  7645 _ACEOF
  7646 rm -f conftest.$ac_objext
  7647 if { (ac_try="$ac_compile"
  7648 case "(($ac_try" in
  7649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7650   *) ac_try_echo=$ac_try;;
  7651 esac
  7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7653   (eval "$ac_compile") 2>conftest.er1
  7654   ac_status=$?
  7655   grep -v '^ *+' conftest.er1 >conftest.err
  7656   rm -f conftest.er1
  7657   cat conftest.err >&5
  7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659   (exit $ac_status); } && {
  7660 	 test -z "$ac_c_werror_flag" ||
  7661 	 test ! -s conftest.err
  7662        } && test -s conftest.$ac_objext; then
  7663   ac_cv_header_stdc=yes
  7664 else
  7665   echo "$as_me: failed program was:" >&5
  7666 sed 's/^/| /' conftest.$ac_ext >&5
  7668 	ac_cv_header_stdc=no
  7669 fi
  7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7673 if test $ac_cv_header_stdc = yes; then
  7674   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7675   cat >conftest.$ac_ext <<_ACEOF
  7676 /* confdefs.h.  */
  7677 _ACEOF
  7678 cat confdefs.h >>conftest.$ac_ext
  7679 cat >>conftest.$ac_ext <<_ACEOF
  7680 /* end confdefs.h.  */
  7681 #include <string.h>
  7683 _ACEOF
  7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7685   $EGREP "memchr" >/dev/null 2>&1; then
  7687 else
  7688   ac_cv_header_stdc=no
  7689 fi
  7690 rm -f conftest*
  7692 fi
  7694 if test $ac_cv_header_stdc = yes; then
  7695   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7696   cat >conftest.$ac_ext <<_ACEOF
  7697 /* confdefs.h.  */
  7698 _ACEOF
  7699 cat confdefs.h >>conftest.$ac_ext
  7700 cat >>conftest.$ac_ext <<_ACEOF
  7701 /* end confdefs.h.  */
  7702 #include <stdlib.h>
  7704 _ACEOF
  7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7706   $EGREP "free" >/dev/null 2>&1; then
  7708 else
  7709   ac_cv_header_stdc=no
  7710 fi
  7711 rm -f conftest*
  7713 fi
  7715 if test $ac_cv_header_stdc = yes; then
  7716   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7717   if test "$cross_compiling" = yes; then
  7719 else
  7720   cat >conftest.$ac_ext <<_ACEOF
  7721 /* confdefs.h.  */
  7722 _ACEOF
  7723 cat confdefs.h >>conftest.$ac_ext
  7724 cat >>conftest.$ac_ext <<_ACEOF
  7725 /* end confdefs.h.  */
  7726 #include <ctype.h>
  7727 #include <stdlib.h>
  7728 #if ((' ' & 0x0FF) == 0x020)
  7729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7731 #else
  7732 # define ISLOWER(c) \
  7733 		   (('a' <= (c) && (c) <= 'i') \
  7734 		     || ('j' <= (c) && (c) <= 'r') \
  7735 		     || ('s' <= (c) && (c) <= 'z'))
  7736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7737 #endif
  7739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7740 int
  7741 main ()
  7743   int i;
  7744   for (i = 0; i < 256; i++)
  7745     if (XOR (islower (i), ISLOWER (i))
  7746 	|| toupper (i) != TOUPPER (i))
  7747       return 2;
  7748   return 0;
  7750 _ACEOF
  7751 rm -f conftest$ac_exeext
  7752 if { (ac_try="$ac_link"
  7753 case "(($ac_try" in
  7754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7755   *) ac_try_echo=$ac_try;;
  7756 esac
  7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7758   (eval "$ac_link") 2>&5
  7759   ac_status=$?
  7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7762   { (case "(($ac_try" in
  7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7764   *) ac_try_echo=$ac_try;;
  7765 esac
  7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7767   (eval "$ac_try") 2>&5
  7768   ac_status=$?
  7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770   (exit $ac_status); }; }; then
  7772 else
  7773   echo "$as_me: program exited with status $ac_status" >&5
  7774 echo "$as_me: failed program was:" >&5
  7775 sed 's/^/| /' conftest.$ac_ext >&5
  7777 ( exit $ac_status )
  7778 ac_cv_header_stdc=no
  7779 fi
  7780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7781 fi
  7784 fi
  7785 fi
  7786 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7787 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7788 if test $ac_cv_header_stdc = yes; then
  7790 cat >>confdefs.h <<\_ACEOF
  7791 #define STDC_HEADERS 1
  7792 _ACEOF
  7794 fi
  7796 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7807 		  inttypes.h stdint.h unistd.h
  7808 do
  7809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7813   echo $ECHO_N "(cached) $ECHO_C" >&6
  7814 else
  7815   cat >conftest.$ac_ext <<_ACEOF
  7816 /* confdefs.h.  */
  7817 _ACEOF
  7818 cat confdefs.h >>conftest.$ac_ext
  7819 cat >>conftest.$ac_ext <<_ACEOF
  7820 /* end confdefs.h.  */
  7821 $ac_includes_default
  7823 #include <$ac_header>
  7824 _ACEOF
  7825 rm -f conftest.$ac_objext
  7826 if { (ac_try="$ac_compile"
  7827 case "(($ac_try" in
  7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7829   *) ac_try_echo=$ac_try;;
  7830 esac
  7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7832   (eval "$ac_compile") 2>conftest.er1
  7833   ac_status=$?
  7834   grep -v '^ *+' conftest.er1 >conftest.err
  7835   rm -f conftest.er1
  7836   cat conftest.err >&5
  7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7838   (exit $ac_status); } && {
  7839 	 test -z "$ac_c_werror_flag" ||
  7840 	 test ! -s conftest.err
  7841        } && test -s conftest.$ac_objext; then
  7842   eval "$as_ac_Header=yes"
  7843 else
  7844   echo "$as_me: failed program was:" >&5
  7845 sed 's/^/| /' conftest.$ac_ext >&5
  7847 	eval "$as_ac_Header=no"
  7848 fi
  7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7851 fi
  7852 ac_res=`eval echo '${'$as_ac_Header'}'`
  7853 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7854 echo "${ECHO_T}$ac_res" >&6; }
  7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7856   cat >>confdefs.h <<_ACEOF
  7857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7858 _ACEOF
  7860 fi
  7862 done
  7865 { echo "$as_me:$LINENO: checking for void *" >&5
  7866 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  7867 if test "${ac_cv_type_void_p+set}" = set; then
  7868   echo $ECHO_N "(cached) $ECHO_C" >&6
  7869 else
  7870   cat >conftest.$ac_ext <<_ACEOF
  7871 /* confdefs.h.  */
  7872 _ACEOF
  7873 cat confdefs.h >>conftest.$ac_ext
  7874 cat >>conftest.$ac_ext <<_ACEOF
  7875 /* end confdefs.h.  */
  7876 $ac_includes_default
  7877 typedef void * ac__type_new_;
  7878 int
  7879 main ()
  7881 if ((ac__type_new_ *) 0)
  7882   return 0;
  7883 if (sizeof (ac__type_new_))
  7884   return 0;
  7886   return 0;
  7888 _ACEOF
  7889 rm -f conftest.$ac_objext
  7890 if { (ac_try="$ac_compile"
  7891 case "(($ac_try" in
  7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7893   *) ac_try_echo=$ac_try;;
  7894 esac
  7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7896   (eval "$ac_compile") 2>conftest.er1
  7897   ac_status=$?
  7898   grep -v '^ *+' conftest.er1 >conftest.err
  7899   rm -f conftest.er1
  7900   cat conftest.err >&5
  7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902   (exit $ac_status); } && {
  7903 	 test -z "$ac_c_werror_flag" ||
  7904 	 test ! -s conftest.err
  7905        } && test -s conftest.$ac_objext; then
  7906   ac_cv_type_void_p=yes
  7907 else
  7908   echo "$as_me: failed program was:" >&5
  7909 sed 's/^/| /' conftest.$ac_ext >&5
  7911 	ac_cv_type_void_p=no
  7912 fi
  7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7915 fi
  7916 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  7917 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  7919 # The cast to long int works around a bug in the HP C Compiler
  7920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7922 # This bug is HP SR number 8606223364.
  7923 { echo "$as_me:$LINENO: checking size of void *" >&5
  7924 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  7925 if test "${ac_cv_sizeof_void_p+set}" = set; then
  7926   echo $ECHO_N "(cached) $ECHO_C" >&6
  7927 else
  7928   if test "$cross_compiling" = yes; then
  7929   # Depending upon the size, compute the lo and hi bounds.
  7930 cat >conftest.$ac_ext <<_ACEOF
  7931 /* confdefs.h.  */
  7932 _ACEOF
  7933 cat confdefs.h >>conftest.$ac_ext
  7934 cat >>conftest.$ac_ext <<_ACEOF
  7935 /* end confdefs.h.  */
  7936 $ac_includes_default
  7937    typedef void * ac__type_sizeof_;
  7938 int
  7939 main ()
  7941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7942 test_array [0] = 0
  7945   return 0;
  7947 _ACEOF
  7948 rm -f conftest.$ac_objext
  7949 if { (ac_try="$ac_compile"
  7950 case "(($ac_try" in
  7951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7952   *) ac_try_echo=$ac_try;;
  7953 esac
  7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7955   (eval "$ac_compile") 2>conftest.er1
  7956   ac_status=$?
  7957   grep -v '^ *+' conftest.er1 >conftest.err
  7958   rm -f conftest.er1
  7959   cat conftest.err >&5
  7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961   (exit $ac_status); } && {
  7962 	 test -z "$ac_c_werror_flag" ||
  7963 	 test ! -s conftest.err
  7964        } && test -s conftest.$ac_objext; then
  7965   ac_lo=0 ac_mid=0
  7966   while :; do
  7967     cat >conftest.$ac_ext <<_ACEOF
  7968 /* confdefs.h.  */
  7969 _ACEOF
  7970 cat confdefs.h >>conftest.$ac_ext
  7971 cat >>conftest.$ac_ext <<_ACEOF
  7972 /* end confdefs.h.  */
  7973 $ac_includes_default
  7974    typedef void * ac__type_sizeof_;
  7975 int
  7976 main ()
  7978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7979 test_array [0] = 0
  7982   return 0;
  7984 _ACEOF
  7985 rm -f conftest.$ac_objext
  7986 if { (ac_try="$ac_compile"
  7987 case "(($ac_try" in
  7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7989   *) ac_try_echo=$ac_try;;
  7990 esac
  7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7992   (eval "$ac_compile") 2>conftest.er1
  7993   ac_status=$?
  7994   grep -v '^ *+' conftest.er1 >conftest.err
  7995   rm -f conftest.er1
  7996   cat conftest.err >&5
  7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7998   (exit $ac_status); } && {
  7999 	 test -z "$ac_c_werror_flag" ||
  8000 	 test ! -s conftest.err
  8001        } && test -s conftest.$ac_objext; then
  8002   ac_hi=$ac_mid; break
  8003 else
  8004   echo "$as_me: failed program was:" >&5
  8005 sed 's/^/| /' conftest.$ac_ext >&5
  8007 	ac_lo=`expr $ac_mid + 1`
  8008 			if test $ac_lo -le $ac_mid; then
  8009 			  ac_lo= ac_hi=
  8010 			  break
  8011 			fi
  8012 			ac_mid=`expr 2 '*' $ac_mid + 1`
  8013 fi
  8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8016   done
  8017 else
  8018   echo "$as_me: failed program was:" >&5
  8019 sed 's/^/| /' conftest.$ac_ext >&5
  8021 	cat >conftest.$ac_ext <<_ACEOF
  8022 /* confdefs.h.  */
  8023 _ACEOF
  8024 cat confdefs.h >>conftest.$ac_ext
  8025 cat >>conftest.$ac_ext <<_ACEOF
  8026 /* end confdefs.h.  */
  8027 $ac_includes_default
  8028    typedef void * ac__type_sizeof_;
  8029 int
  8030 main ()
  8032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8033 test_array [0] = 0
  8036   return 0;
  8038 _ACEOF
  8039 rm -f conftest.$ac_objext
  8040 if { (ac_try="$ac_compile"
  8041 case "(($ac_try" in
  8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8043   *) ac_try_echo=$ac_try;;
  8044 esac
  8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8046   (eval "$ac_compile") 2>conftest.er1
  8047   ac_status=$?
  8048   grep -v '^ *+' conftest.er1 >conftest.err
  8049   rm -f conftest.er1
  8050   cat conftest.err >&5
  8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052   (exit $ac_status); } && {
  8053 	 test -z "$ac_c_werror_flag" ||
  8054 	 test ! -s conftest.err
  8055        } && test -s conftest.$ac_objext; then
  8056   ac_hi=-1 ac_mid=-1
  8057   while :; do
  8058     cat >conftest.$ac_ext <<_ACEOF
  8059 /* confdefs.h.  */
  8060 _ACEOF
  8061 cat confdefs.h >>conftest.$ac_ext
  8062 cat >>conftest.$ac_ext <<_ACEOF
  8063 /* end confdefs.h.  */
  8064 $ac_includes_default
  8065    typedef void * ac__type_sizeof_;
  8066 int
  8067 main ()
  8069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8070 test_array [0] = 0
  8073   return 0;
  8075 _ACEOF
  8076 rm -f conftest.$ac_objext
  8077 if { (ac_try="$ac_compile"
  8078 case "(($ac_try" in
  8079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8080   *) ac_try_echo=$ac_try;;
  8081 esac
  8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8083   (eval "$ac_compile") 2>conftest.er1
  8084   ac_status=$?
  8085   grep -v '^ *+' conftest.er1 >conftest.err
  8086   rm -f conftest.er1
  8087   cat conftest.err >&5
  8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089   (exit $ac_status); } && {
  8090 	 test -z "$ac_c_werror_flag" ||
  8091 	 test ! -s conftest.err
  8092        } && test -s conftest.$ac_objext; then
  8093   ac_lo=$ac_mid; break
  8094 else
  8095   echo "$as_me: failed program was:" >&5
  8096 sed 's/^/| /' conftest.$ac_ext >&5
  8098 	ac_hi=`expr '(' $ac_mid ')' - 1`
  8099 			if test $ac_mid -le $ac_hi; then
  8100 			  ac_lo= ac_hi=
  8101 			  break
  8102 			fi
  8103 			ac_mid=`expr 2 '*' $ac_mid`
  8104 fi
  8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8107   done
  8108 else
  8109   echo "$as_me: failed program was:" >&5
  8110 sed 's/^/| /' conftest.$ac_ext >&5
  8112 	ac_lo= ac_hi=
  8113 fi
  8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8116 fi
  8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8119 # Binary search between lo and hi bounds.
  8120 while test "x$ac_lo" != "x$ac_hi"; do
  8121   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8122   cat >conftest.$ac_ext <<_ACEOF
  8123 /* confdefs.h.  */
  8124 _ACEOF
  8125 cat confdefs.h >>conftest.$ac_ext
  8126 cat >>conftest.$ac_ext <<_ACEOF
  8127 /* end confdefs.h.  */
  8128 $ac_includes_default
  8129    typedef void * ac__type_sizeof_;
  8130 int
  8131 main ()
  8133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8134 test_array [0] = 0
  8137   return 0;
  8139 _ACEOF
  8140 rm -f conftest.$ac_objext
  8141 if { (ac_try="$ac_compile"
  8142 case "(($ac_try" in
  8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8144   *) ac_try_echo=$ac_try;;
  8145 esac
  8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8147   (eval "$ac_compile") 2>conftest.er1
  8148   ac_status=$?
  8149   grep -v '^ *+' conftest.er1 >conftest.err
  8150   rm -f conftest.er1
  8151   cat conftest.err >&5
  8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153   (exit $ac_status); } && {
  8154 	 test -z "$ac_c_werror_flag" ||
  8155 	 test ! -s conftest.err
  8156        } && test -s conftest.$ac_objext; then
  8157   ac_hi=$ac_mid
  8158 else
  8159   echo "$as_me: failed program was:" >&5
  8160 sed 's/^/| /' conftest.$ac_ext >&5
  8162 	ac_lo=`expr '(' $ac_mid ')' + 1`
  8163 fi
  8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8166 done
  8167 case $ac_lo in
  8168 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  8169 '') if test "$ac_cv_type_void_p" = yes; then
  8170      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8171 See \`config.log' for more details." >&5
  8172 echo "$as_me: error: cannot compute sizeof (void *)
  8173 See \`config.log' for more details." >&2;}
  8174    { (exit 77); exit 77; }; }
  8175    else
  8176      ac_cv_sizeof_void_p=0
  8177    fi ;;
  8178 esac
  8179 else
  8180   cat >conftest.$ac_ext <<_ACEOF
  8181 /* confdefs.h.  */
  8182 _ACEOF
  8183 cat confdefs.h >>conftest.$ac_ext
  8184 cat >>conftest.$ac_ext <<_ACEOF
  8185 /* end confdefs.h.  */
  8186 $ac_includes_default
  8187    typedef void * ac__type_sizeof_;
  8188 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8189 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8190 #include <stdio.h>
  8191 #include <stdlib.h>
  8192 int
  8193 main ()
  8196   FILE *f = fopen ("conftest.val", "w");
  8197   if (! f)
  8198     return 1;
  8199   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8201       long int i = longval ();
  8202       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8203 	return 1;
  8204       fprintf (f, "%ld\n", i);
  8206   else
  8208       unsigned long int i = ulongval ();
  8209       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8210 	return 1;
  8211       fprintf (f, "%lu\n", i);
  8213   return ferror (f) || fclose (f) != 0;
  8216   return 0;
  8218 _ACEOF
  8219 rm -f conftest$ac_exeext
  8220 if { (ac_try="$ac_link"
  8221 case "(($ac_try" in
  8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8223   *) ac_try_echo=$ac_try;;
  8224 esac
  8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8226   (eval "$ac_link") 2>&5
  8227   ac_status=$?
  8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8230   { (case "(($ac_try" in
  8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8232   *) ac_try_echo=$ac_try;;
  8233 esac
  8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8235   (eval "$ac_try") 2>&5
  8236   ac_status=$?
  8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238   (exit $ac_status); }; }; then
  8239   ac_cv_sizeof_void_p=`cat conftest.val`
  8240 else
  8241   echo "$as_me: program exited with status $ac_status" >&5
  8242 echo "$as_me: failed program was:" >&5
  8243 sed 's/^/| /' conftest.$ac_ext >&5
  8245 ( exit $ac_status )
  8246 if test "$ac_cv_type_void_p" = yes; then
  8247      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8248 See \`config.log' for more details." >&5
  8249 echo "$as_me: error: cannot compute sizeof (void *)
  8250 See \`config.log' for more details." >&2;}
  8251    { (exit 77); exit 77; }; }
  8252    else
  8253      ac_cv_sizeof_void_p=0
  8254    fi
  8255 fi
  8256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8257 fi
  8258 rm -f conftest.val
  8259 fi
  8260 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  8261 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  8265 cat >>confdefs.h <<_ACEOF
  8266 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  8267 _ACEOF
  8270 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8272 if test "${ac_cv_header_stdc+set}" = set; then
  8273   echo $ECHO_N "(cached) $ECHO_C" >&6
  8274 else
  8275   cat >conftest.$ac_ext <<_ACEOF
  8276 /* confdefs.h.  */
  8277 _ACEOF
  8278 cat confdefs.h >>conftest.$ac_ext
  8279 cat >>conftest.$ac_ext <<_ACEOF
  8280 /* end confdefs.h.  */
  8281 #include <stdlib.h>
  8282 #include <stdarg.h>
  8283 #include <string.h>
  8284 #include <float.h>
  8286 int
  8287 main ()
  8291   return 0;
  8293 _ACEOF
  8294 rm -f conftest.$ac_objext
  8295 if { (ac_try="$ac_compile"
  8296 case "(($ac_try" in
  8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8298   *) ac_try_echo=$ac_try;;
  8299 esac
  8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8301   (eval "$ac_compile") 2>conftest.er1
  8302   ac_status=$?
  8303   grep -v '^ *+' conftest.er1 >conftest.err
  8304   rm -f conftest.er1
  8305   cat conftest.err >&5
  8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8307   (exit $ac_status); } && {
  8308 	 test -z "$ac_c_werror_flag" ||
  8309 	 test ! -s conftest.err
  8310        } && test -s conftest.$ac_objext; then
  8311   ac_cv_header_stdc=yes
  8312 else
  8313   echo "$as_me: failed program was:" >&5
  8314 sed 's/^/| /' conftest.$ac_ext >&5
  8316 	ac_cv_header_stdc=no
  8317 fi
  8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8321 if test $ac_cv_header_stdc = yes; then
  8322   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8323   cat >conftest.$ac_ext <<_ACEOF
  8324 /* confdefs.h.  */
  8325 _ACEOF
  8326 cat confdefs.h >>conftest.$ac_ext
  8327 cat >>conftest.$ac_ext <<_ACEOF
  8328 /* end confdefs.h.  */
  8329 #include <string.h>
  8331 _ACEOF
  8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8333   $EGREP "memchr" >/dev/null 2>&1; then
  8335 else
  8336   ac_cv_header_stdc=no
  8337 fi
  8338 rm -f conftest*
  8340 fi
  8342 if test $ac_cv_header_stdc = yes; then
  8343   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8344   cat >conftest.$ac_ext <<_ACEOF
  8345 /* confdefs.h.  */
  8346 _ACEOF
  8347 cat confdefs.h >>conftest.$ac_ext
  8348 cat >>conftest.$ac_ext <<_ACEOF
  8349 /* end confdefs.h.  */
  8350 #include <stdlib.h>
  8352 _ACEOF
  8353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8354   $EGREP "free" >/dev/null 2>&1; then
  8356 else
  8357   ac_cv_header_stdc=no
  8358 fi
  8359 rm -f conftest*
  8361 fi
  8363 if test $ac_cv_header_stdc = yes; then
  8364   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8365   if test "$cross_compiling" = yes; then
  8367 else
  8368   cat >conftest.$ac_ext <<_ACEOF
  8369 /* confdefs.h.  */
  8370 _ACEOF
  8371 cat confdefs.h >>conftest.$ac_ext
  8372 cat >>conftest.$ac_ext <<_ACEOF
  8373 /* end confdefs.h.  */
  8374 #include <ctype.h>
  8375 #include <stdlib.h>
  8376 #if ((' ' & 0x0FF) == 0x020)
  8377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8379 #else
  8380 # define ISLOWER(c) \
  8381 		   (('a' <= (c) && (c) <= 'i') \
  8382 		     || ('j' <= (c) && (c) <= 'r') \
  8383 		     || ('s' <= (c) && (c) <= 'z'))
  8384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8385 #endif
  8387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8388 int
  8389 main ()
  8391   int i;
  8392   for (i = 0; i < 256; i++)
  8393     if (XOR (islower (i), ISLOWER (i))
  8394 	|| toupper (i) != TOUPPER (i))
  8395       return 2;
  8396   return 0;
  8398 _ACEOF
  8399 rm -f conftest$ac_exeext
  8400 if { (ac_try="$ac_link"
  8401 case "(($ac_try" in
  8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8403   *) ac_try_echo=$ac_try;;
  8404 esac
  8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8406   (eval "$ac_link") 2>&5
  8407   ac_status=$?
  8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8410   { (case "(($ac_try" in
  8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8412   *) ac_try_echo=$ac_try;;
  8413 esac
  8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8415   (eval "$ac_try") 2>&5
  8416   ac_status=$?
  8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8418   (exit $ac_status); }; }; then
  8420 else
  8421   echo "$as_me: program exited with status $ac_status" >&5
  8422 echo "$as_me: failed program was:" >&5
  8423 sed 's/^/| /' conftest.$ac_ext >&5
  8425 ( exit $ac_status )
  8426 ac_cv_header_stdc=no
  8427 fi
  8428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8429 fi
  8432 fi
  8433 fi
  8434 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8435 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8436 if test $ac_cv_header_stdc = yes; then
  8438 cat >>confdefs.h <<\_ACEOF
  8439 #define STDC_HEADERS 1
  8440 _ACEOF
  8442 fi
  8446 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  8448 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8449 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8450 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  8451   echo $ECHO_N "(cached) $ECHO_C" >&6
  8452 else
  8453   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8454   # We make a subdir and do the tests there.  Otherwise we can end up
  8455   # making bogus files that we don't know about and never remove.  For
  8456   # instance it was reported that on HP-UX the gcc test will end up
  8457   # making a dummy file named `D' -- because `-MD' means `put the output
  8458   # in D'.
  8459   mkdir conftest.dir
  8460   # Copy depcomp to subdir because otherwise we won't find it if we're
  8461   # using a relative directory.
  8462   cp "$am_depcomp" conftest.dir
  8463   cd conftest.dir
  8464   # We will build objects and dependencies in a subdirectory because
  8465   # it helps to detect inapplicable dependency modes.  For instance
  8466   # both Tru64's cc and ICC support -MD to output dependencies as a
  8467   # side effect of compilation, but ICC will put the dependencies in
  8468   # the current directory while Tru64 will put them in the object
  8469   # directory.
  8470   mkdir sub
  8472   am_cv_OBJC_dependencies_compiler_type=none
  8473   if test "$am_compiler_list" = ""; then
  8474      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8475   fi
  8476   for depmode in $am_compiler_list; do
  8477     # Setup a source with many dependencies, because some compilers
  8478     # like to wrap large dependency lists on column 80 (with \), and
  8479     # we should not choose a depcomp mode which is confused by this.
  8481     # We need to recreate these files for each test, as the compiler may
  8482     # overwrite some of them when testing with obscure command lines.
  8483     # This happens at least with the AIX C compiler.
  8484     : > sub/conftest.c
  8485     for i in 1 2 3 4 5 6; do
  8486       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8487       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8488       # Solaris 8's {/usr,}/bin/sh.
  8489       touch sub/conftst$i.h
  8490     done
  8491     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8493     case $depmode in
  8494     nosideeffect)
  8495       # after this tag, mechanisms are not by side-effect, so they'll
  8496       # only be used when explicitly requested
  8497       if test "x$enable_dependency_tracking" = xyes; then
  8498 	continue
  8499       else
  8500 	break
  8501       fi
  8502       ;;
  8503     none) break ;;
  8504     esac
  8505     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8506     # mode.  It turns out that the SunPro C++ compiler does not properly
  8507     # handle `-M -o', and we need to detect this.
  8508     if depmode=$depmode \
  8509        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8510        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8511        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8512          >/dev/null 2>conftest.err &&
  8513        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8514        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8515        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8516       # icc doesn't choke on unknown options, it will just issue warnings
  8517       # or remarks (even with -Werror).  So we grep stderr for any message
  8518       # that says an option was ignored or not supported.
  8519       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8520       #   icc: Command line warning: ignoring option '-M'; no argument required
  8521       # The diagnosis changed in icc 8.0:
  8522       #   icc: Command line remark: option '-MP' not supported
  8523       if (grep 'ignoring option' conftest.err ||
  8524           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8525         am_cv_OBJC_dependencies_compiler_type=$depmode
  8526         break
  8527       fi
  8528     fi
  8529   done
  8531   cd ..
  8532   rm -rf conftest.dir
  8533 else
  8534   am_cv_OBJC_dependencies_compiler_type=none
  8535 fi
  8537 fi
  8538 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  8539 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  8540 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  8544 if
  8545   test "x$enable_dependency_tracking" != xno \
  8546   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  8547   am__fastdepOBJC_TRUE=
  8548   am__fastdepOBJC_FALSE='#'
  8549 else
  8550   am__fastdepOBJC_TRUE='#'
  8551   am__fastdepOBJC_FALSE=
  8552 fi
  8556 # Extract the first word of "pod2man", so it can be a program name with args.
  8557 set dummy pod2man; ac_word=$2
  8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8560 if test "${ac_cv_path_POD2MAN+set}" = set; then
  8561   echo $ECHO_N "(cached) $ECHO_C" >&6
  8562 else
  8563   case $POD2MAN in
  8564   [\\/]* | ?:[\\/]*)
  8565   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  8566   ;;
  8567   *)
  8568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8569 for as_dir in $PATH
  8570 do
  8571   IFS=$as_save_IFS
  8572   test -z "$as_dir" && as_dir=.
  8573   for ac_exec_ext in '' $ac_executable_extensions; do
  8574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8575     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  8576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8577     break 2
  8578   fi
  8579 done
  8580 done
  8581 IFS=$as_save_IFS
  8583   ;;
  8584 esac
  8585 fi
  8586 POD2MAN=$ac_cv_path_POD2MAN
  8587 if test -n "$POD2MAN"; then
  8588   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  8589 echo "${ECHO_T}$POD2MAN" >&6; }
  8590 else
  8591   { echo "$as_me:$LINENO: result: no" >&5
  8592 echo "${ECHO_T}no" >&6; }
  8593 fi
  8596 # Extract the first word of "pod2html", so it can be a program name with args.
  8597 set dummy pod2html; ac_word=$2
  8598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8600 if test "${ac_cv_path_POD2HTML+set}" = set; then
  8601   echo $ECHO_N "(cached) $ECHO_C" >&6
  8602 else
  8603   case $POD2HTML in
  8604   [\\/]* | ?:[\\/]*)
  8605   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  8606   ;;
  8607   *)
  8608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8609 for as_dir in $PATH
  8610 do
  8611   IFS=$as_save_IFS
  8612   test -z "$as_dir" && as_dir=.
  8613   for ac_exec_ext in '' $ac_executable_extensions; do
  8614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8615     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  8616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8617     break 2
  8618   fi
  8619 done
  8620 done
  8621 IFS=$as_save_IFS
  8623   ;;
  8624 esac
  8625 fi
  8626 POD2HTML=$ac_cv_path_POD2HTML
  8627 if test -n "$POD2HTML"; then
  8628   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  8629 echo "${ECHO_T}$POD2HTML" >&6; }
  8630 else
  8631   { echo "$as_me:$LINENO: result: no" >&5
  8632 echo "${ECHO_T}no" >&6; }
  8633 fi
  8638 cat >>confdefs.h <<_ACEOF
  8639 #define BUILD_SED_PROG "${SED}"
  8640 _ACEOF
  8643 cat >>confdefs.h <<_ACEOF
  8644 #define BUILD_CPP_PROG "${CPP}"
  8645 _ACEOF
  8649 # Check whether --enable-strict-warn was given.
  8650 if test "${enable_strict_warn+set}" = set; then
  8651   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  8652       enable_strictwarn=yes
  8653     fi
  8654 fi
  8656 # Check whether --enable-translator was given.
  8657 if test "${enable_translator+set}" = set; then
  8658   enableval=$enable_translator; true
  8659 else
  8660   enable_translator=yes
  8661 fi
  8663 # Check whether --enable-optimized was given.
  8664 if test "${enable_optimized+set}" = set; then
  8665   enableval=$enable_optimized; true
  8666 else
  8667   enable_optimized=yes
  8668 fi
  8670 # Check whether --enable-shared was given.
  8671 if test "${enable_shared+set}" = set; then
  8672   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  8673 else
  8674   enable_shared=cond
  8675 fi
  8677 # Check whether --enable-profiled was given.
  8678 if test "${enable_profiled+set}" = set; then
  8679   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  8680       enable_profiled=yes;
  8681     fi
  8682 fi
  8684 # Check whether --enable-trace was given.
  8685 if test "${enable_trace+set}" = set; then
  8686   enableval=$enable_trace; if test "$enableval" == "yes"; then
  8688 cat >>confdefs.h <<\_ACEOF
  8689 #define ENABLE_TRACE_IO 1
  8690 _ACEOF
  8692     fi
  8693 fi
  8695 # Check whether --enable-watch was given.
  8696 if test "${enable_watch+set}" = set; then
  8697   enableval=$enable_watch; if test "$enableval" == "yes"; then
  8699 cat >>confdefs.h <<\_ACEOF
  8700 #define ENABLE_WATCH 1
  8701 _ACEOF
  8703    fi
  8704 fi
  8706 # Check whether --enable-sh4stats was given.
  8707 if test "${enable_sh4stats+set}" = set; then
  8708   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  8710 cat >>confdefs.h <<\_ACEOF
  8711 #define ENABLE_SH4STATS 1
  8712 _ACEOF
  8714     fi
  8715 fi
  8718 # Check whether --with-osmesa was given.
  8719 if test "${with_osmesa+set}" = set; then
  8720   withval=$with_osmesa;
  8721 else
  8722   with_osmesa=no
  8723 fi
  8726 # Check whether --with-gtk was given.
  8727 if test "${with_gtk+set}" = set; then
  8728   withval=$with_gtk; with_gtk=yes
  8729 else
  8730   with_gtk=x11
  8731 fi
  8734 # Check whether --with-esd was given.
  8735 if test "${with_esd+set}" = set; then
  8736   withval=$with_esd;
  8737 fi
  8740 # Check whether --with-pulse was given.
  8741 if test "${with_pulse+set}" = set; then
  8742   withval=$with_pulse;
  8743 fi
  8746 # Check whether --with-sdl was given.
  8747 if test "${with_sdl+set}" = set; then
  8748   withval=$with_sdl;
  8749 fi
  8753 # Check whether --with-sysroot was given.
  8754 if test "${with_sysroot+set}" = set; then
  8755   withval=$with_sysroot;
  8756      if test -d "$with_sysroot/lib/pkgconfig"; then
  8757        LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
  8758        CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
  8759        BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
  8760        TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
  8761        PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
  8762        export PKG_CONFIG_LIBDIR;
  8763      else
  8764        { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
  8765 See \`config.log' for more details." >&5
  8766 echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
  8767 See \`config.log' for more details." >&2;}
  8768    { (exit 1); exit 1; }; }
  8769      fi
  8771 fi
  8777 # Check whether --with-android was given.
  8778 if test "${with_android+set}" = set; then
  8779   withval=$with_android;
  8780 fi
  8783 # Check whether --with-android-ndk was given.
  8784 if test "${with_android_ndk+set}" = set; then
  8785   withval=$with_android_ndk;
  8786 fi
  8789 # Check whether --with-android-version was given.
  8790 if test "${with_android_version+set}" = set; then
  8791   withval=$with_android_version;
  8792 else
  8793   with_android_version="android-11"
  8794 fi
  8797 # Check whether --with-android-ndk-version was given.
  8798 if test "${with_android_ndk_version+set}" = set; then
  8799   withval=$with_android_ndk_version;
  8800 else
  8801   with_ndk_version="android-9"
  8802 fi
  8805 # Check whether --with-android-abi was given.
  8806 if test "${with_android_abi+set}" = set; then
  8807   withval=$with_android_abi;
  8808 else
  8809   ANDROID_ABI="armeabi-v7a"
  8810 fi
  8813    if test "x$with_android" != "x"; then
  8814       if test "$with_android" = "yes"; then
  8815          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  8816 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  8817    { (exit 1); exit 1; }; }
  8818       fi
  8819       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  8820          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  8821 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  8822    { (exit 1); exit 1; }; }
  8823       fi
  8825       ANDROID_SDK_HOME="$with_android"
  8826       ANDROID_NDK_HOME="$with_android_ndk"
  8827       ANDROID_SDK_VERSION="$with_android_version"
  8828       ANDROID_NDK_VERSION="$with_ndk_version"
  8830       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  8831 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  8832 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  8833 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8834   echo $ECHO_N "(cached) $ECHO_C" >&6
  8835 else
  8836   test "$cross_compiling" = yes &&
  8837   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8838 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8839    { (exit 1); exit 1; }; }
  8840 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  8841   eval "$as_ac_File=yes"
  8842 else
  8843   eval "$as_ac_File=no"
  8844 fi
  8845 fi
  8846 ac_res=`eval echo '${'$as_ac_File'}'`
  8847 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8848 echo "${ECHO_T}$ac_res" >&6; }
  8849 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8851 else
  8852    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  8853 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  8854    { (exit 1); exit 1; }; }
  8855 fi
  8857       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  8858 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  8859 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  8860 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8861   echo $ECHO_N "(cached) $ECHO_C" >&6
  8862 else
  8863   test "$cross_compiling" = yes &&
  8864   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8865 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8866    { (exit 1); exit 1; }; }
  8867 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  8868   eval "$as_ac_File=yes"
  8869 else
  8870   eval "$as_ac_File=no"
  8871 fi
  8872 fi
  8873 ac_res=`eval echo '${'$as_ac_File'}'`
  8874 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8875 echo "${ECHO_T}$ac_res" >&6; }
  8876 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8878 else
  8879    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  8880 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  8881    { (exit 1); exit 1; }; }
  8882 fi
  8884       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  8885 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  8886 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  8887 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  8888   echo $ECHO_N "(cached) $ECHO_C" >&6
  8889 else
  8890   test "$cross_compiling" = yes &&
  8891   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  8892 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  8893    { (exit 1); exit 1; }; }
  8894 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  8895   eval "$as_ac_File=yes"
  8896 else
  8897   eval "$as_ac_File=no"
  8898 fi
  8899 fi
  8900 ac_res=`eval echo '${'$as_ac_File'}'`
  8901 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8902 echo "${ECHO_T}$ac_res" >&6; }
  8903 if test `eval echo '${'$as_ac_File'}'` = yes; then
  8905 else
  8906    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  8907 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  8908    { (exit 1); exit 1; }; }
  8909 fi
  8912             TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
  8914       case $ANDROID_ABI in
  8915          armeabi | armeabi-v7a)
  8916             host_alias="arm-linux-androideabi"
  8917             host_cpu="arm"
  8918             host_vendor="unknown";
  8919             host_os="linux-androideabi"
  8920             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  8921             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  8922             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
  8923                         TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
  8924             if test "x$with_abi" = "armeabi"; then
  8925                 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
  8926             else
  8927                 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
  8928             fi
  8929             ;;
  8930          x86)
  8931             host_alias="i686-android-linux"
  8932             host_cpu="i686"
  8933             host_vendor="android"
  8934             host_os="linux"
  8935             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  8936             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  8937             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
  8938             TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
  8939             ;;
  8940          *)
  8941             { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
  8942 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
  8943    { (exit 1); exit 1; }; }
  8944       	    ;;
  8945       esac
  8947       # Extract the first word of "ant ", so it can be a program name with args.
  8948 set dummy ant ; ac_word=$2
  8949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8951 if test "${ac_cv_path_ANT+set}" = set; then
  8952   echo $ECHO_N "(cached) $ECHO_C" >&6
  8953 else
  8954   case $ANT in
  8955   [\\/]* | ?:[\\/]*)
  8956   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  8957   ;;
  8958   *)
  8959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8960 for as_dir in $PATH
  8961 do
  8962   IFS=$as_save_IFS
  8963   test -z "$as_dir" && as_dir=.
  8964   for ac_exec_ext in '' $ac_executable_extensions; do
  8965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8966     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  8967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8968     break 2
  8969   fi
  8970 done
  8971 done
  8972 IFS=$as_save_IFS
  8974   ;;
  8975 esac
  8976 fi
  8977 ANT=$ac_cv_path_ANT
  8978 if test -n "$ANT"; then
  8979   { echo "$as_me:$LINENO: result: $ANT" >&5
  8980 echo "${ECHO_T}$ANT" >&6; }
  8981 else
  8982   { echo "$as_me:$LINENO: result: no" >&5
  8983 echo "${ECHO_T}no" >&6; }
  8984 fi
  8988       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  8989       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  8990       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  8991       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  8992       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  8993       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  8994       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  8995       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  8996       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  8997       LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
  8998       LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
  9007       ANDROID_BUILD=yes
  9008       cross_compiling=yes
  9009    fi
  9013 if test "$ANDROID_BUILD" = "yes"; then
  9014   GUI_ANDROID_TRUE=
  9015   GUI_ANDROID_FALSE='#'
  9016 else
  9017   GUI_ANDROID_TRUE='#'
  9018   GUI_ANDROID_FALSE=
  9019 fi
  9025 if test "$ANDROID_BUILD" = "yes"; then
  9026    with_gtk=no;
  9027    EXTRA_OUTPUT_FILES="src/android/build.properties"
  9028    UI_DRIVER="Android"
  9029    with_sdl=no
  9030 else
  9033 ac_ext=m
  9034 ac_cpp='$OBJCPP $CPPFLAGS'
  9035 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9036 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9037 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9038 if test -n "$ac_tool_prefix"; then
  9039   for ac_prog in gcc objcc objc cc CC
  9040   do
  9041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9045 if test "${ac_cv_prog_OBJC+set}" = set; then
  9046   echo $ECHO_N "(cached) $ECHO_C" >&6
  9047 else
  9048   if test -n "$OBJC"; then
  9049   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9050 else
  9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9052 for as_dir in $PATH
  9053 do
  9054   IFS=$as_save_IFS
  9055   test -z "$as_dir" && as_dir=.
  9056   for ac_exec_ext in '' $ac_executable_extensions; do
  9057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9058     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9060     break 2
  9061   fi
  9062 done
  9063 done
  9064 IFS=$as_save_IFS
  9066 fi
  9067 fi
  9068 OBJC=$ac_cv_prog_OBJC
  9069 if test -n "$OBJC"; then
  9070   { echo "$as_me:$LINENO: result: $OBJC" >&5
  9071 echo "${ECHO_T}$OBJC" >&6; }
  9072 else
  9073   { echo "$as_me:$LINENO: result: no" >&5
  9074 echo "${ECHO_T}no" >&6; }
  9075 fi
  9078     test -n "$OBJC" && break
  9079   done
  9080 fi
  9081 if test -z "$OBJC"; then
  9082   ac_ct_OBJC=$OBJC
  9083   for ac_prog in gcc objcc objc cc CC
  9084 do
  9085   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9086 set dummy $ac_prog; ac_word=$2
  9087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9089 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  9090   echo $ECHO_N "(cached) $ECHO_C" >&6
  9091 else
  9092   if test -n "$ac_ct_OBJC"; then
  9093   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9094 else
  9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9096 for as_dir in $PATH
  9097 do
  9098   IFS=$as_save_IFS
  9099   test -z "$as_dir" && as_dir=.
  9100   for ac_exec_ext in '' $ac_executable_extensions; do
  9101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9102     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9104     break 2
  9105   fi
  9106 done
  9107 done
  9108 IFS=$as_save_IFS
  9110 fi
  9111 fi
  9112 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9113 if test -n "$ac_ct_OBJC"; then
  9114   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  9115 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  9116 else
  9117   { echo "$as_me:$LINENO: result: no" >&5
  9118 echo "${ECHO_T}no" >&6; }
  9119 fi
  9122   test -n "$ac_ct_OBJC" && break
  9123 done
  9125   if test "x$ac_ct_OBJC" = x; then
  9126     OBJC="gcc"
  9127   else
  9128     case $cross_compiling:$ac_tool_warned in
  9129 yes:)
  9130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9131 whose name does not start with the host triplet.  If you think this
  9132 configuration is useful to you, please write to autoconf@gnu.org." >&5
  9133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9134 whose name does not start with the host triplet.  If you think this
  9135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9136 ac_tool_warned=yes ;;
  9137 esac
  9138     OBJC=$ac_ct_OBJC
  9139   fi
  9140 fi
  9142 # Provide some information about the compiler.
  9143 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  9144 ac_compiler=`set X $ac_compile; echo $2`
  9145 { (ac_try="$ac_compiler --version >&5"
  9146 case "(($ac_try" in
  9147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9148   *) ac_try_echo=$ac_try;;
  9149 esac
  9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9151   (eval "$ac_compiler --version >&5") 2>&5
  9152   ac_status=$?
  9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9154   (exit $ac_status); }
  9155 { (ac_try="$ac_compiler -v >&5"
  9156 case "(($ac_try" in
  9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9158   *) ac_try_echo=$ac_try;;
  9159 esac
  9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9161   (eval "$ac_compiler -v >&5") 2>&5
  9162   ac_status=$?
  9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9164   (exit $ac_status); }
  9165 { (ac_try="$ac_compiler -V >&5"
  9166 case "(($ac_try" in
  9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9168   *) ac_try_echo=$ac_try;;
  9169 esac
  9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9171   (eval "$ac_compiler -V >&5") 2>&5
  9172   ac_status=$?
  9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9174   (exit $ac_status); }
  9176 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  9177 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  9178 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  9179   echo $ECHO_N "(cached) $ECHO_C" >&6
  9180 else
  9181   cat >conftest.$ac_ext <<_ACEOF
  9182 /* confdefs.h.  */
  9183 _ACEOF
  9184 cat confdefs.h >>conftest.$ac_ext
  9185 cat >>conftest.$ac_ext <<_ACEOF
  9186 /* end confdefs.h.  */
  9188 int
  9189 main ()
  9191 #ifndef __GNUC__
  9192        choke me
  9193 #endif
  9196   return 0;
  9198 _ACEOF
  9199 rm -f conftest.$ac_objext
  9200 if { (ac_try="$ac_compile"
  9201 case "(($ac_try" in
  9202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9203   *) ac_try_echo=$ac_try;;
  9204 esac
  9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9206   (eval "$ac_compile") 2>conftest.er1
  9207   ac_status=$?
  9208   grep -v '^ *+' conftest.er1 >conftest.err
  9209   rm -f conftest.er1
  9210   cat conftest.err >&5
  9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212   (exit $ac_status); } && {
  9213 	 test -z "$ac_objc_werror_flag" ||
  9214 	 test ! -s conftest.err
  9215        } && test -s conftest.$ac_objext; then
  9216   ac_compiler_gnu=yes
  9217 else
  9218   echo "$as_me: failed program was:" >&5
  9219 sed 's/^/| /' conftest.$ac_ext >&5
  9221 	ac_compiler_gnu=no
  9222 fi
  9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9225 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  9227 fi
  9228 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  9229 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  9230 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  9231 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  9232 ac_save_OBJCFLAGS=$OBJCFLAGS
  9233 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  9234 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  9235 if test "${ac_cv_prog_objc_g+set}" = set; then
  9236   echo $ECHO_N "(cached) $ECHO_C" >&6
  9237 else
  9238   ac_save_objc_werror_flag=$ac_objc_werror_flag
  9239    ac_objc_werror_flag=yes
  9240    ac_cv_prog_objc_g=no
  9241    OBJCFLAGS="-g"
  9242    cat >conftest.$ac_ext <<_ACEOF
  9243 /* confdefs.h.  */
  9244 _ACEOF
  9245 cat confdefs.h >>conftest.$ac_ext
  9246 cat >>conftest.$ac_ext <<_ACEOF
  9247 /* end confdefs.h.  */
  9249 int
  9250 main ()
  9254   return 0;
  9256 _ACEOF
  9257 rm -f conftest.$ac_objext
  9258 if { (ac_try="$ac_compile"
  9259 case "(($ac_try" in
  9260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9261   *) ac_try_echo=$ac_try;;
  9262 esac
  9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9264   (eval "$ac_compile") 2>conftest.er1
  9265   ac_status=$?
  9266   grep -v '^ *+' conftest.er1 >conftest.err
  9267   rm -f conftest.er1
  9268   cat conftest.err >&5
  9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9270   (exit $ac_status); } && {
  9271 	 test -z "$ac_objc_werror_flag" ||
  9272 	 test ! -s conftest.err
  9273        } && test -s conftest.$ac_objext; then
  9274   ac_cv_prog_objc_g=yes
  9275 else
  9276   echo "$as_me: failed program was:" >&5
  9277 sed 's/^/| /' conftest.$ac_ext >&5
  9279 	OBJCFLAGS=""
  9280       cat >conftest.$ac_ext <<_ACEOF
  9281 /* confdefs.h.  */
  9282 _ACEOF
  9283 cat confdefs.h >>conftest.$ac_ext
  9284 cat >>conftest.$ac_ext <<_ACEOF
  9285 /* end confdefs.h.  */
  9287 int
  9288 main ()
  9292   return 0;
  9294 _ACEOF
  9295 rm -f conftest.$ac_objext
  9296 if { (ac_try="$ac_compile"
  9297 case "(($ac_try" in
  9298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9299   *) ac_try_echo=$ac_try;;
  9300 esac
  9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9302   (eval "$ac_compile") 2>conftest.er1
  9303   ac_status=$?
  9304   grep -v '^ *+' conftest.er1 >conftest.err
  9305   rm -f conftest.er1
  9306   cat conftest.err >&5
  9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9308   (exit $ac_status); } && {
  9309 	 test -z "$ac_objc_werror_flag" ||
  9310 	 test ! -s conftest.err
  9311        } && test -s conftest.$ac_objext; then
  9313 else
  9314   echo "$as_me: failed program was:" >&5
  9315 sed 's/^/| /' conftest.$ac_ext >&5
  9317 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  9318 	 OBJCFLAGS="-g"
  9319 	 cat >conftest.$ac_ext <<_ACEOF
  9320 /* confdefs.h.  */
  9321 _ACEOF
  9322 cat confdefs.h >>conftest.$ac_ext
  9323 cat >>conftest.$ac_ext <<_ACEOF
  9324 /* end confdefs.h.  */
  9326 int
  9327 main ()
  9331   return 0;
  9333 _ACEOF
  9334 rm -f conftest.$ac_objext
  9335 if { (ac_try="$ac_compile"
  9336 case "(($ac_try" in
  9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9338   *) ac_try_echo=$ac_try;;
  9339 esac
  9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9341   (eval "$ac_compile") 2>conftest.er1
  9342   ac_status=$?
  9343   grep -v '^ *+' conftest.er1 >conftest.err
  9344   rm -f conftest.er1
  9345   cat conftest.err >&5
  9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347   (exit $ac_status); } && {
  9348 	 test -z "$ac_objc_werror_flag" ||
  9349 	 test ! -s conftest.err
  9350        } && test -s conftest.$ac_objext; then
  9351   ac_cv_prog_objc_g=yes
  9352 else
  9353   echo "$as_me: failed program was:" >&5
  9354 sed 's/^/| /' conftest.$ac_ext >&5
  9357 fi
  9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9360 fi
  9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9363 fi
  9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9366    ac_objc_werror_flag=$ac_save_objc_werror_flag
  9367 fi
  9368 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  9369 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  9370 if test "$ac_test_OBJCFLAGS" = set; then
  9371   OBJCFLAGS=$ac_save_OBJCFLAGS
  9372 elif test $ac_cv_prog_objc_g = yes; then
  9373   if test "$GOBJC" = yes; then
  9374     OBJCFLAGS="-g -O2"
  9375   else
  9376     OBJCFLAGS="-g"
  9377   fi
  9378 else
  9379   if test "$GOBJC" = yes; then
  9380     OBJCFLAGS="-O2"
  9381   else
  9382     OBJCFLAGS=
  9383   fi
  9384 fi
  9385 ac_ext=c
  9386 ac_cpp='$CPP $CPPFLAGS'
  9387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9391 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  9392 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  9393 ac_ext=m
  9394 ac_cpp='$OBJCPP $CPPFLAGS'
  9395 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9396 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9397 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9398 cat >conftest.$ac_ext <<_ACEOF
  9399 /* confdefs.h.  */
  9400 _ACEOF
  9401 cat confdefs.h >>conftest.$ac_ext
  9402 cat >>conftest.$ac_ext <<_ACEOF
  9403 /* end confdefs.h.  */
  9404 @interface Foo @end
  9405 int
  9406 main ()
  9410   return 0;
  9412 _ACEOF
  9413 rm -f conftest.$ac_objext
  9414 if { (ac_try="$ac_compile"
  9415 case "(($ac_try" in
  9416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9417   *) ac_try_echo=$ac_try;;
  9418 esac
  9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9420   (eval "$ac_compile") 2>conftest.er1
  9421   ac_status=$?
  9422   grep -v '^ *+' conftest.er1 >conftest.err
  9423   rm -f conftest.er1
  9424   cat conftest.err >&5
  9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9426   (exit $ac_status); } && {
  9427 	 test -z "$ac_objc_werror_flag" ||
  9428 	 test ! -s conftest.err
  9429        } && test -s conftest.$ac_objext; then
  9430   { echo "$as_me:$LINENO: result: yes" >&5
  9431 echo "${ECHO_T}yes" >&6; }
  9433    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  9434 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  9435 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  9436   echo $ECHO_N "(cached) $ECHO_C" >&6
  9437 else
  9438   cat >conftest.$ac_ext <<_ACEOF
  9439 /* confdefs.h.  */
  9440 _ACEOF
  9441 cat confdefs.h >>conftest.$ac_ext
  9442 cat >>conftest.$ac_ext <<_ACEOF
  9443 /* end confdefs.h.  */
  9444 $ac_includes_default
  9446 #include <Cocoa/Cocoa.h>
  9447 _ACEOF
  9448 rm -f conftest.$ac_objext
  9449 if { (ac_try="$ac_compile"
  9450 case "(($ac_try" in
  9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9452   *) ac_try_echo=$ac_try;;
  9453 esac
  9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9455   (eval "$ac_compile") 2>conftest.er1
  9456   ac_status=$?
  9457   grep -v '^ *+' conftest.er1 >conftest.err
  9458   rm -f conftest.er1
  9459   cat conftest.err >&5
  9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461   (exit $ac_status); } && {
  9462 	 test -z "$ac_objc_werror_flag" ||
  9463 	 test ! -s conftest.err
  9464        } && test -s conftest.$ac_objext; then
  9465   ac_cv_header_Cocoa_Cocoa_h=yes
  9466 else
  9467   echo "$as_me: failed program was:" >&5
  9468 sed 's/^/| /' conftest.$ac_ext >&5
  9470 	ac_cv_header_Cocoa_Cocoa_h=no
  9471 fi
  9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9474 fi
  9475 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  9476 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  9477 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  9479       HAVE_COCOA='yes'
  9480       APPLE_BUILD='yes'
  9481       LIBS="$LIBS -framework AppKit -framework Carbon"
  9482       LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
  9483       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  9484       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  9486 cat >>confdefs.h <<\_ACEOF
  9487 #define HAVE_COCOA 1
  9488 _ACEOF
  9491 cat >>confdefs.h <<\_ACEOF
  9492 #define APPLE_BUILD 1
  9493 _ACEOF
  9495       UI_DRIVER="Cocoa"
  9496       if test "x$with_gtk" = "xx11"; then
  9497         with_gtk=no
  9498       fi
  9500 fi
  9505 { echo "$as_me:$LINENO: checking OBJC version" >&5
  9506 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  9507 if test -n "$OBJC"; then
  9508   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  9509   if test -n "$_GOBJC_VERSION"; then
  9510     { echo "$as_me:$LINENO: result: GCC" >&5
  9511 echo "${ECHO_T}GCC" >&6; }
  9512       OBJCOPT="-O2"
  9513                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  9514   else
  9515     { echo "$as_me:$LINENO: result: Unknown" >&5
  9516 echo "${ECHO_T}Unknown" >&6; }
  9517       OBJCOPT="-O2"
  9518   fi
  9519 else
  9520   { echo "$as_me:$LINENO: result: None" >&5
  9521 echo "${ECHO_T}None" >&6; }
  9523 fi
  9526 ac_ext=m
  9527 ac_cpp='$OBJCPP $CPPFLAGS'
  9528 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9529 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9530 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9532 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
  9533 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
  9534 save_OBJCFLAGS="$OBJCFLAGS"
  9535 OBJCFLAGS="-msse2 $OBJCFLAGS"
  9536 cat >conftest.$ac_ext <<_ACEOF
  9538   /* confdefs.h.  */
  9539 _ACEOF
  9540 cat confdefs.h >>conftest.$ac_ext
  9541 cat >>conftest.$ac_ext <<_ACEOF
  9542 /* end confdefs.h.  */
  9543 int main() { return 0; }
  9544 _ACEOF
  9545 rm -f conftest.$ac_objext
  9546 if { (ac_try="$ac_compile"
  9547 case "(($ac_try" in
  9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9549   *) ac_try_echo=$ac_try;;
  9550 esac
  9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9552   (eval "$ac_compile") 2>conftest.er1
  9553   ac_status=$?
  9554   grep -v '^ *+' conftest.er1 >conftest.err
  9555   rm -f conftest.er1
  9556   cat conftest.err >&5
  9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9558   (exit $ac_status); } && {
  9559 	 test -z "$ac_objc_werror_flag" ||
  9560 	 test ! -s conftest.err
  9561        } && test -s conftest.$ac_objext; then
  9563    { echo "$as_me:$LINENO: result: yes" >&5
  9564 echo "${ECHO_T}yes" >&6; }
  9566 else
  9567   echo "$as_me: failed program was:" >&5
  9568 sed 's/^/| /' conftest.$ac_ext >&5
  9571    OBJCFLAGS="$save_OBJCFLAGS"
  9572    { echo "$as_me:$LINENO: result: no" >&5
  9573 echo "${ECHO_T}no" >&6; }
  9575 fi
  9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9578 ac_ext=m
  9579 ac_cpp='$OBJCPP $CPPFLAGS'
  9580 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9581 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9582 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9586 ac_ext=m
  9587 ac_cpp='$OBJCPP $CPPFLAGS'
  9588 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9589 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9590 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9592 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
  9593 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
  9594 save_OBJCFLAGS="$OBJCFLAGS"
  9595 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
  9596 cat >conftest.$ac_ext <<_ACEOF
  9598   /* confdefs.h.  */
  9599 _ACEOF
  9600 cat confdefs.h >>conftest.$ac_ext
  9601 cat >>conftest.$ac_ext <<_ACEOF
  9602 /* end confdefs.h.  */
  9603 int main() { return 0; }
  9604 _ACEOF
  9605 rm -f conftest.$ac_objext
  9606 if { (ac_try="$ac_compile"
  9607 case "(($ac_try" in
  9608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9609   *) ac_try_echo=$ac_try;;
  9610 esac
  9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9612   (eval "$ac_compile") 2>conftest.er1
  9613   ac_status=$?
  9614   grep -v '^ *+' conftest.er1 >conftest.err
  9615   rm -f conftest.er1
  9616   cat conftest.err >&5
  9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9618   (exit $ac_status); } && {
  9619 	 test -z "$ac_objc_werror_flag" ||
  9620 	 test ! -s conftest.err
  9621        } && test -s conftest.$ac_objext; then
  9623    { echo "$as_me:$LINENO: result: yes" >&5
  9624 echo "${ECHO_T}yes" >&6; }
  9626 else
  9627   echo "$as_me: failed program was:" >&5
  9628 sed 's/^/| /' conftest.$ac_ext >&5
  9631    OBJCFLAGS="$save_OBJCFLAGS"
  9632    { echo "$as_me:$LINENO: result: no" >&5
  9633 echo "${ECHO_T}no" >&6; }
  9635 fi
  9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9638 ac_ext=m
  9639 ac_cpp='$OBJCPP $CPPFLAGS'
  9640 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9641 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9642 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9646 else
  9647   echo "$as_me: failed program was:" >&5
  9648 sed 's/^/| /' conftest.$ac_ext >&5
  9650 	{ echo "$as_me:$LINENO: result: No" >&5
  9651 echo "${ECHO_T}No" >&6; }
  9653 fi
  9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  9656 ac_ext=c
  9657 ac_cpp='$CPP $CPPFLAGS'
  9658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9663 fi
  9667 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  9668   GUI_COCOA_TRUE=
  9669   GUI_COCOA_FALSE='#'
  9670 else
  9671   GUI_COCOA_TRUE='#'
  9672   GUI_COCOA_FALSE=
  9673 fi
  9675 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  9677 cat >>confdefs.h <<\_ACEOF
  9678 #define OSX_BUNDLE 1
  9679 _ACEOF
  9681 fi
  9683 CFLAGS_FOR_BUILD="-O2 -std=c99"
  9684 CFLAGS="-g -fexceptions"
  9685 OBJCFLAGS="-g -fexceptions"
  9687 cat >>confdefs.h <<\_ACEOF
  9688 #define HAVE_EXCEPTIONS 1
  9689 _ACEOF
  9692 STDCFLAG="-std=c99"
  9694 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  9695 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  9696 { echo "$as_me:$LINENO: checking CC version" >&5
  9697 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  9698 if test -n "$_ICC_VERSION"; then
  9699    { echo "$as_me:$LINENO: result: ICC" >&5
  9700 echo "${ECHO_T}ICC" >&6; }
  9701      CCOPT="$CFLAGS -fast"
  9702                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9703 elif test -n "$_GCC_VERSION"; then
  9704    { echo "$as_me:$LINENO: result: GCC" >&5
  9705 echo "${ECHO_T}GCC" >&6; }
  9706      CCOPT="-O2"
  9707                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9708 else
  9709    { echo "$as_me:$LINENO: result: Unknown" >&5
  9710 echo "${ECHO_T}Unknown" >&6; }
  9711      CCOPT="$CFLAGS -O2"
  9712 fi
  9715 ac_ext=c
  9716 ac_cpp='$CPP $CPPFLAGS'
  9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9721 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
  9722 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
  9723 save_CFLAGS="$CFLAGS"
  9724 CFLAGS="-msse2 $CFLAGS"
  9725 cat >conftest.$ac_ext <<_ACEOF
  9727   /* confdefs.h.  */
  9728 _ACEOF
  9729 cat confdefs.h >>conftest.$ac_ext
  9730 cat >>conftest.$ac_ext <<_ACEOF
  9731 /* end confdefs.h.  */
  9732 int main() { return 0; }
  9733 _ACEOF
  9734 rm -f conftest.$ac_objext
  9735 if { (ac_try="$ac_compile"
  9736 case "(($ac_try" in
  9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9738   *) ac_try_echo=$ac_try;;
  9739 esac
  9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9741   (eval "$ac_compile") 2>conftest.er1
  9742   ac_status=$?
  9743   grep -v '^ *+' conftest.er1 >conftest.err
  9744   rm -f conftest.er1
  9745   cat conftest.err >&5
  9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9747   (exit $ac_status); } && {
  9748 	 test -z "$ac_c_werror_flag" ||
  9749 	 test ! -s conftest.err
  9750        } && test -s conftest.$ac_objext; then
  9752    { echo "$as_me:$LINENO: result: yes" >&5
  9753 echo "${ECHO_T}yes" >&6; }
  9755 else
  9756   echo "$as_me: failed program was:" >&5
  9757 sed 's/^/| /' conftest.$ac_ext >&5
  9760    CFLAGS="$save_CFLAGS"
  9761    { echo "$as_me:$LINENO: result: no" >&5
  9762 echo "${ECHO_T}no" >&6; }
  9764 fi
  9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9767 ac_ext=c
  9768 ac_cpp='$CPP $CPPFLAGS'
  9769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9775 ac_ext=c
  9776 ac_cpp='$CPP $CPPFLAGS'
  9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9781 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
  9782 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
  9783 save_CFLAGS="$CFLAGS"
  9784 CFLAGS="-mfpmath=sse $CFLAGS"
  9785 cat >conftest.$ac_ext <<_ACEOF
  9787   /* confdefs.h.  */
  9788 _ACEOF
  9789 cat confdefs.h >>conftest.$ac_ext
  9790 cat >>conftest.$ac_ext <<_ACEOF
  9791 /* end confdefs.h.  */
  9792 int main() { return 0; }
  9793 _ACEOF
  9794 rm -f conftest.$ac_objext
  9795 if { (ac_try="$ac_compile"
  9796 case "(($ac_try" in
  9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9798   *) ac_try_echo=$ac_try;;
  9799 esac
  9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9801   (eval "$ac_compile") 2>conftest.er1
  9802   ac_status=$?
  9803   grep -v '^ *+' conftest.er1 >conftest.err
  9804   rm -f conftest.er1
  9805   cat conftest.err >&5
  9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9807   (exit $ac_status); } && {
  9808 	 test -z "$ac_c_werror_flag" ||
  9809 	 test ! -s conftest.err
  9810        } && test -s conftest.$ac_objext; then
  9812    { echo "$as_me:$LINENO: result: yes" >&5
  9813 echo "${ECHO_T}yes" >&6; }
  9815 else
  9816   echo "$as_me: failed program was:" >&5
  9817 sed 's/^/| /' conftest.$ac_ext >&5
  9820    CFLAGS="$save_CFLAGS"
  9821    { echo "$as_me:$LINENO: result: no" >&5
  9822 echo "${ECHO_T}no" >&6; }
  9824 fi
  9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9827 ac_ext=c
  9828 ac_cpp='$CPP $CPPFLAGS'
  9829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9835 if test "x$enable_optimized" = "xyes"; then
  9836    CFLAGS="$CFLAGS $CCOPT"
  9837    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  9838    if test "x$enable_profiled" != "xyes"; then
  9839               CFLAGS="$CFLAGS -fomit-frame-pointer"
  9840        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  9841    fi
  9842 else
  9843    CFLAGS="$CFLAGS -g3"
  9844    OBJCFLAGS="$OBJCFLAGS -g3"
  9845 fi
  9847 if test "x$enable_profiled" = "xyes"; then
  9848    CFLAGS="$CFLAGS -pg"
  9849    LDFLAGS="$LDFLAGS -pg";
  9850    OBJCFLAGS="$OBJCFLAGS -pg";
  9851 fi
  9853 if test "x$enable_strictwarn" = "xyes"; then
  9854    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  9855    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  9856 fi
  9858 if test "x$enable_shared" != "xno"; then
  9859    if test "x$APPLE_BUILD" = "xyes"; then
  9860       SOEXT="dylib"
  9861       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  9862    else
  9863       SOEXT="so"
  9864       PLUGINLDFLAGS="-shared"
  9865    fi
  9866    PLUGINCFLAGS="-fPIC"
  9868    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9869   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9870 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9871 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9872   echo $ECHO_N "(cached) $ECHO_C" >&6
  9873 fi
  9874 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9875 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9876 else
  9877   # Is the header compilable?
  9878 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  9879 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  9880 cat >conftest.$ac_ext <<_ACEOF
  9881 /* confdefs.h.  */
  9882 _ACEOF
  9883 cat confdefs.h >>conftest.$ac_ext
  9884 cat >>conftest.$ac_ext <<_ACEOF
  9885 /* end confdefs.h.  */
  9886 $ac_includes_default
  9887 #include <dlfcn.h>
  9888 _ACEOF
  9889 rm -f conftest.$ac_objext
  9890 if { (ac_try="$ac_compile"
  9891 case "(($ac_try" in
  9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9893   *) ac_try_echo=$ac_try;;
  9894 esac
  9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9896   (eval "$ac_compile") 2>conftest.er1
  9897   ac_status=$?
  9898   grep -v '^ *+' conftest.er1 >conftest.err
  9899   rm -f conftest.er1
  9900   cat conftest.err >&5
  9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9902   (exit $ac_status); } && {
  9903 	 test -z "$ac_c_werror_flag" ||
  9904 	 test ! -s conftest.err
  9905        } && test -s conftest.$ac_objext; then
  9906   ac_header_compiler=yes
  9907 else
  9908   echo "$as_me: failed program was:" >&5
  9909 sed 's/^/| /' conftest.$ac_ext >&5
  9911 	ac_header_compiler=no
  9912 fi
  9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9916 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9918 # Is the header present?
  9919 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  9920 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  9921 cat >conftest.$ac_ext <<_ACEOF
  9922 /* confdefs.h.  */
  9923 _ACEOF
  9924 cat confdefs.h >>conftest.$ac_ext
  9925 cat >>conftest.$ac_ext <<_ACEOF
  9926 /* end confdefs.h.  */
  9927 #include <dlfcn.h>
  9928 _ACEOF
  9929 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9930 case "(($ac_try" in
  9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9932   *) ac_try_echo=$ac_try;;
  9933 esac
  9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9936   ac_status=$?
  9937   grep -v '^ *+' conftest.er1 >conftest.err
  9938   rm -f conftest.er1
  9939   cat conftest.err >&5
  9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9941   (exit $ac_status); } >/dev/null && {
  9942 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9943 	 test ! -s conftest.err
  9944        }; then
  9945   ac_header_preproc=yes
  9946 else
  9947   echo "$as_me: failed program was:" >&5
  9948 sed 's/^/| /' conftest.$ac_ext >&5
  9950   ac_header_preproc=no
  9951 fi
  9953 rm -f conftest.err conftest.$ac_ext
  9954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9955 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9957 # So?  What about this header?
  9958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9959   yes:no: )
  9960     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9961 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9962     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  9963 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  9964     ac_header_preproc=yes
  9965     ;;
  9966   no:yes:* )
  9967     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  9968 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  9969     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  9970 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  9971     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  9972 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  9973     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  9974 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9975     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  9976 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  9977     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  9978 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  9980     ;;
  9981 esac
  9982 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9983 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9984 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9985   echo $ECHO_N "(cached) $ECHO_C" >&6
  9986 else
  9987   ac_cv_header_dlfcn_h=$ac_header_preproc
  9988 fi
  9989 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9990 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9992 fi
  9993 if test $ac_cv_header_dlfcn_h = yes; then
  9995       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  9996 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  9997 if test "${ac_cv_search_dlopen+set}" = set; then
  9998   echo $ECHO_N "(cached) $ECHO_C" >&6
  9999 else
 10000   ac_func_search_save_LIBS=$LIBS
 10001 cat >conftest.$ac_ext <<_ACEOF
 10002 /* confdefs.h.  */
 10003 _ACEOF
 10004 cat confdefs.h >>conftest.$ac_ext
 10005 cat >>conftest.$ac_ext <<_ACEOF
 10006 /* end confdefs.h.  */
 10008 /* Override any GCC internal prototype to avoid an error.
 10009    Use char because int might match the return type of a GCC
 10010    builtin and then its argument prototype would still apply.  */
 10011 #ifdef __cplusplus
 10012 extern "C"
 10013 #endif
 10014 char dlopen ();
 10015 int
 10016 main ()
 10018 return dlopen ();
 10020   return 0;
 10022 _ACEOF
 10023 for ac_lib in '' dl; do
 10024   if test -z "$ac_lib"; then
 10025     ac_res="none required"
 10026   else
 10027     ac_res=-l$ac_lib
 10028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10029   fi
 10030   rm -f conftest.$ac_objext conftest$ac_exeext
 10031 if { (ac_try="$ac_link"
 10032 case "(($ac_try" in
 10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10034   *) ac_try_echo=$ac_try;;
 10035 esac
 10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10037   (eval "$ac_link") 2>conftest.er1
 10038   ac_status=$?
 10039   grep -v '^ *+' conftest.er1 >conftest.err
 10040   rm -f conftest.er1
 10041   cat conftest.err >&5
 10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10043   (exit $ac_status); } && {
 10044 	 test -z "$ac_c_werror_flag" ||
 10045 	 test ! -s conftest.err
 10046        } && test -s conftest$ac_exeext &&
 10047        $as_test_x conftest$ac_exeext; then
 10048   ac_cv_search_dlopen=$ac_res
 10049 else
 10050   echo "$as_me: failed program was:" >&5
 10051 sed 's/^/| /' conftest.$ac_ext >&5
 10054 fi
 10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10057       conftest$ac_exeext
 10058   if test "${ac_cv_search_dlopen+set}" = set; then
 10059   break
 10060 fi
 10061 done
 10062 if test "${ac_cv_search_dlopen+set}" = set; then
 10064 else
 10065   ac_cv_search_dlopen=no
 10066 fi
 10067 rm conftest.$ac_ext
 10068 LIBS=$ac_func_search_save_LIBS
 10069 fi
 10070 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 10071 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 10072 ac_res=$ac_cv_search_dlopen
 10073 if test "$ac_res" != no; then
 10074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10075   have_dlopen=yes
 10076 fi
 10078 fi
 10081    if test "x$have_dlopen" != "xyes"; then
 10082       if test "x$enable_shared" == "xyes"; then
 10083          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
 10084 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
 10085    { (exit 1); exit 1; }; }
 10086       else
 10087          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
 10088 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
 10089       fi
 10090    fi
 10092    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
 10093 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
 10094    old_LDFLAGS="$LDFLAGS"
 10095    LDFLAGS="$LDFLAGS -rdynamic"
 10096    cat >conftest.$ac_ext <<_ACEOF
 10097 /* confdefs.h.  */
 10098 _ACEOF
 10099 cat confdefs.h >>conftest.$ac_ext
 10100 cat >>conftest.$ac_ext <<_ACEOF
 10101 /* end confdefs.h.  */
 10102 int main() { return 0; }
 10103 _ACEOF
 10104 rm -f conftest.$ac_objext conftest$ac_exeext
 10105 if { (ac_try="$ac_link"
 10106 case "(($ac_try" in
 10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10108   *) ac_try_echo=$ac_try;;
 10109 esac
 10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10111   (eval "$ac_link") 2>conftest.er1
 10112   ac_status=$?
 10113   grep -v '^ *+' conftest.er1 >conftest.err
 10114   rm -f conftest.er1
 10115   cat conftest.err >&5
 10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10117   (exit $ac_status); } && {
 10118 	 test -z "$ac_c_werror_flag" ||
 10119 	 test ! -s conftest.err
 10120        } && test -s conftest$ac_exeext &&
 10121        $as_test_x conftest$ac_exeext; then
 10123      LXDREAMLDFLAGS="-rdynamic"
 10124      { echo "$as_me:$LINENO: result: yes" >&5
 10125 echo "${ECHO_T}yes" >&6; }
 10127 else
 10128   echo "$as_me: failed program was:" >&5
 10129 sed 's/^/| /' conftest.$ac_ext >&5
 10132      LXDREAMLDFLAGS=""
 10133      { echo "$as_me:$LINENO: result: no" >&5
 10134 echo "${ECHO_T}no" >&6; }
 10135 fi
 10137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10138       conftest$ac_exeext conftest.$ac_ext
 10139    LDFLAGS="$old_LDFLAGS"
 10145 fi
 10146 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10148 cat >>confdefs.h <<\_ACEOF
 10149 #define BUILD_PLUGINS 1
 10150 _ACEOF
 10152 fi
 10155 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10156   BUILD_PLUGINS_TRUE=
 10157   BUILD_PLUGINS_FALSE='#'
 10158 else
 10159   BUILD_PLUGINS_TRUE='#'
 10160   BUILD_PLUGINS_FALSE=
 10161 fi
 10165 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
 10166 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
 10167 save_CFLAGS="$CFLAGS"
 10168 CFLAGS="-Werror $save_CFLAGS"
 10169 if test "$cross_compiling" = yes; then
 10171       { echo "$as_me:$LINENO: result: no" >&5
 10172 echo "${ECHO_T}no" >&6; }
 10174 else
 10175   cat >conftest.$ac_ext <<_ACEOF
 10177   /* confdefs.h.  */
 10178 _ACEOF
 10179 cat confdefs.h >>conftest.$ac_ext
 10180 cat >>conftest.$ac_ext <<_ACEOF
 10181 /* end confdefs.h.  */
 10183 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
 10185 int main(int argc, char *argv[])
 10187    return foo( 1, 2 ) == 3 ? 0 : 1;
 10189 _ACEOF
 10190 rm -f conftest$ac_exeext
 10191 if { (ac_try="$ac_link"
 10192 case "(($ac_try" in
 10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10194   *) ac_try_echo=$ac_try;;
 10195 esac
 10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10197   (eval "$ac_link") 2>&5
 10198   ac_status=$?
 10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10201   { (case "(($ac_try" in
 10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10203   *) ac_try_echo=$ac_try;;
 10204 esac
 10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10206   (eval "$ac_try") 2>&5
 10207   ac_status=$?
 10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10209   (exit $ac_status); }; }; then
 10211    { echo "$as_me:$LINENO: result: yes" >&5
 10212 echo "${ECHO_T}yes" >&6; }
 10215 cat >>confdefs.h <<\_ACEOF
 10216 #define HAVE_FASTCALL 1
 10217 _ACEOF
 10220 else
 10221   echo "$as_me: program exited with status $ac_status" >&5
 10222 echo "$as_me: failed program was:" >&5
 10223 sed 's/^/| /' conftest.$ac_ext >&5
 10225 ( exit $ac_status )
 10227    { echo "$as_me:$LINENO: result: no" >&5
 10228 echo "${ECHO_T}no" >&6; }
 10230 fi
 10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10232 fi
 10235 CFLAGS="$save_CFLAGS"
 10238 { echo "$as_me:$LINENO: checking support for force inlining" >&5
 10239 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
 10240 cat >conftest.$ac_ext <<_ACEOF
 10242   /* confdefs.h.  */
 10243 _ACEOF
 10244 cat confdefs.h >>conftest.$ac_ext
 10245 cat >>conftest.$ac_ext <<_ACEOF
 10246 /* end confdefs.h.  */
 10248 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
 10250 int main(int argc, char *argv[])
 10252    return foo( 1, 2 ) == 3 ? 0 : 1;
 10254 _ACEOF
 10255 rm -f conftest.$ac_objext
 10256 if { (ac_try="$ac_compile"
 10257 case "(($ac_try" in
 10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10259   *) ac_try_echo=$ac_try;;
 10260 esac
 10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10262   (eval "$ac_compile") 2>conftest.er1
 10263   ac_status=$?
 10264   grep -v '^ *+' conftest.er1 >conftest.err
 10265   rm -f conftest.er1
 10266   cat conftest.err >&5
 10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10268   (exit $ac_status); } && {
 10269 	 test -z "$ac_c_werror_flag" ||
 10270 	 test ! -s conftest.err
 10271        } && test -s conftest.$ac_objext; then
 10273    FORCEINLINE="__attribute__((always_inline))"
 10274    { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
 10275 echo "${ECHO_T}$FORCEINLINE" >&6; }
 10277 else
 10278   echo "$as_me: failed program was:" >&5
 10279 sed 's/^/| /' conftest.$ac_ext >&5
 10282    FORCEINLINE=""
 10283    { echo "$as_me:$LINENO: result: no" >&5
 10284 echo "${ECHO_T}no" >&6; }
 10286 fi
 10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10291 cat >>confdefs.h <<_ACEOF
 10292 #define FORCEINLINE $FORCEINLINE
 10293 _ACEOF
 10296 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
 10297 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
 10298 if test "$cross_compiling" = yes; then
 10300    { echo "$as_me:$LINENO: result: no" >&5
 10301 echo "${ECHO_T}no" >&6; }
 10302     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10303 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10304 else
 10305   cat >conftest.$ac_ext <<_ACEOF
 10307   /* confdefs.h.  */
 10308 _ACEOF
 10309 cat confdefs.h >>conftest.$ac_ext
 10310 cat >>conftest.$ac_ext <<_ACEOF
 10311 /* end confdefs.h.  */
 10313 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
 10314 int __attribute__((noinline)) foo( int arg, void *exc )
 10316     if( arg < 2 ) {
 10317         *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
 10319     return 0;
 10322 int main(int argc, char *argv[])
 10324    goto *first_arg(&&start, &&except);
 10326 start:
 10327    return foo( argc, &&except ) + 1;
 10329 except:
 10330    return 0;
 10332 _ACEOF
 10333 rm -f conftest$ac_exeext
 10334 if { (ac_try="$ac_link"
 10335 case "(($ac_try" in
 10336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10337   *) ac_try_echo=$ac_try;;
 10338 esac
 10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10340   (eval "$ac_link") 2>&5
 10341   ac_status=$?
 10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10344   { (case "(($ac_try" in
 10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10346   *) ac_try_echo=$ac_try;;
 10347 esac
 10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10349   (eval "$ac_try") 2>&5
 10350   ac_status=$?
 10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10352   (exit $ac_status); }; }; then
 10354    { echo "$as_me:$LINENO: result: yes" >&5
 10355 echo "${ECHO_T}yes" >&6; }
 10358 cat >>confdefs.h <<\_ACEOF
 10359 #define HAVE_FRAME_ADDRESS 1
 10360 _ACEOF
 10363 else
 10364   echo "$as_me: program exited with status $ac_status" >&5
 10365 echo "$as_me: failed program was:" >&5
 10366 sed 's/^/| /' conftest.$ac_ext >&5
 10368 ( exit $ac_status )
 10370    { echo "$as_me:$LINENO: result: no" >&5
 10371 echo "${ECHO_T}no" >&6; }
 10372     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10373 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10374 fi
 10375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10376 fi
 10382 { echo "$as_me:$LINENO: checking for library containing listen" >&5
 10383 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
 10384 if test "${ac_cv_search_listen+set}" = set; then
 10385   echo $ECHO_N "(cached) $ECHO_C" >&6
 10386 else
 10387   ac_func_search_save_LIBS=$LIBS
 10388 cat >conftest.$ac_ext <<_ACEOF
 10389 /* confdefs.h.  */
 10390 _ACEOF
 10391 cat confdefs.h >>conftest.$ac_ext
 10392 cat >>conftest.$ac_ext <<_ACEOF
 10393 /* end confdefs.h.  */
 10395 /* Override any GCC internal prototype to avoid an error.
 10396    Use char because int might match the return type of a GCC
 10397    builtin and then its argument prototype would still apply.  */
 10398 #ifdef __cplusplus
 10399 extern "C"
 10400 #endif
 10401 char listen ();
 10402 int
 10403 main ()
 10405 return listen ();
 10407   return 0;
 10409 _ACEOF
 10410 for ac_lib in '' socket; do
 10411   if test -z "$ac_lib"; then
 10412     ac_res="none required"
 10413   else
 10414     ac_res=-l$ac_lib
 10415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10416   fi
 10417   rm -f conftest.$ac_objext conftest$ac_exeext
 10418 if { (ac_try="$ac_link"
 10419 case "(($ac_try" in
 10420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10421   *) ac_try_echo=$ac_try;;
 10422 esac
 10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10424   (eval "$ac_link") 2>conftest.er1
 10425   ac_status=$?
 10426   grep -v '^ *+' conftest.er1 >conftest.err
 10427   rm -f conftest.er1
 10428   cat conftest.err >&5
 10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10430   (exit $ac_status); } && {
 10431 	 test -z "$ac_c_werror_flag" ||
 10432 	 test ! -s conftest.err
 10433        } && test -s conftest$ac_exeext &&
 10434        $as_test_x conftest$ac_exeext; then
 10435   ac_cv_search_listen=$ac_res
 10436 else
 10437   echo "$as_me: failed program was:" >&5
 10438 sed 's/^/| /' conftest.$ac_ext >&5
 10441 fi
 10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10444       conftest$ac_exeext
 10445   if test "${ac_cv_search_listen+set}" = set; then
 10446   break
 10447 fi
 10448 done
 10449 if test "${ac_cv_search_listen+set}" = set; then
 10451 else
 10452   ac_cv_search_listen=no
 10453 fi
 10454 rm conftest.$ac_ext
 10455 LIBS=$ac_func_search_save_LIBS
 10456 fi
 10457 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
 10458 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
 10459 ac_res=$ac_cv_search_listen
 10460 if test "$ac_res" != no; then
 10461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10463 fi
 10465 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
 10466 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
 10467 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10468   echo $ECHO_N "(cached) $ECHO_C" >&6
 10469 else
 10470   ac_func_search_save_LIBS=$LIBS
 10471 cat >conftest.$ac_ext <<_ACEOF
 10472 /* confdefs.h.  */
 10473 _ACEOF
 10474 cat confdefs.h >>conftest.$ac_ext
 10475 cat >>conftest.$ac_ext <<_ACEOF
 10476 /* end confdefs.h.  */
 10478 /* Override any GCC internal prototype to avoid an error.
 10479    Use char because int might match the return type of a GCC
 10480    builtin and then its argument prototype would still apply.  */
 10481 #ifdef __cplusplus
 10482 extern "C"
 10483 #endif
 10484 char inet_ntoa ();
 10485 int
 10486 main ()
 10488 return inet_ntoa ();
 10490   return 0;
 10492 _ACEOF
 10493 for ac_lib in '' nsl; do
 10494   if test -z "$ac_lib"; then
 10495     ac_res="none required"
 10496   else
 10497     ac_res=-l$ac_lib
 10498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10499   fi
 10500   rm -f conftest.$ac_objext conftest$ac_exeext
 10501 if { (ac_try="$ac_link"
 10502 case "(($ac_try" in
 10503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10504   *) ac_try_echo=$ac_try;;
 10505 esac
 10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10507   (eval "$ac_link") 2>conftest.er1
 10508   ac_status=$?
 10509   grep -v '^ *+' conftest.er1 >conftest.err
 10510   rm -f conftest.er1
 10511   cat conftest.err >&5
 10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10513   (exit $ac_status); } && {
 10514 	 test -z "$ac_c_werror_flag" ||
 10515 	 test ! -s conftest.err
 10516        } && test -s conftest$ac_exeext &&
 10517        $as_test_x conftest$ac_exeext; then
 10518   ac_cv_search_inet_ntoa=$ac_res
 10519 else
 10520   echo "$as_me: failed program was:" >&5
 10521 sed 's/^/| /' conftest.$ac_ext >&5
 10524 fi
 10526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10527       conftest$ac_exeext
 10528   if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10529   break
 10530 fi
 10531 done
 10532 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10534 else
 10535   ac_cv_search_inet_ntoa=no
 10536 fi
 10537 rm conftest.$ac_ext
 10538 LIBS=$ac_func_search_save_LIBS
 10539 fi
 10540 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
 10541 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 10542 ac_res=$ac_cv_search_inet_ntoa
 10543 if test "$ac_res" != no; then
 10544   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10546 fi
 10551 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 10552 	if test -n "$ac_tool_prefix"; then
 10553   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 10554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 10555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 10558   echo $ECHO_N "(cached) $ECHO_C" >&6
 10559 else
 10560   case $PKG_CONFIG in
 10561   [\\/]* | ?:[\\/]*)
 10562   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 10563   ;;
 10564   *)
 10565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10566 for as_dir in $PATH
 10567 do
 10568   IFS=$as_save_IFS
 10569   test -z "$as_dir" && as_dir=.
 10570   for ac_exec_ext in '' $ac_executable_extensions; do
 10571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10572     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10574     break 2
 10575   fi
 10576 done
 10577 done
 10578 IFS=$as_save_IFS
 10580   ;;
 10581 esac
 10582 fi
 10583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 10584 if test -n "$PKG_CONFIG"; then
 10585   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 10586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
 10587 else
 10588   { echo "$as_me:$LINENO: result: no" >&5
 10589 echo "${ECHO_T}no" >&6; }
 10590 fi
 10593 fi
 10594 if test -z "$ac_cv_path_PKG_CONFIG"; then
 10595   ac_pt_PKG_CONFIG=$PKG_CONFIG
 10596   # Extract the first word of "pkg-config", so it can be a program name with args.
 10597 set dummy pkg-config; ac_word=$2
 10598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10600 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 10601   echo $ECHO_N "(cached) $ECHO_C" >&6
 10602 else
 10603   case $ac_pt_PKG_CONFIG in
 10604   [\\/]* | ?:[\\/]*)
 10605   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 10606   ;;
 10607   *)
 10608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10609 for as_dir in $PATH
 10610 do
 10611   IFS=$as_save_IFS
 10612   test -z "$as_dir" && as_dir=.
 10613   for ac_exec_ext in '' $ac_executable_extensions; do
 10614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10615     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10617     break 2
 10618   fi
 10619 done
 10620 done
 10621 IFS=$as_save_IFS
 10623   ;;
 10624 esac
 10625 fi
 10626 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 10627 if test -n "$ac_pt_PKG_CONFIG"; then
 10628   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 10629 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 10630 else
 10631   { echo "$as_me:$LINENO: result: no" >&5
 10632 echo "${ECHO_T}no" >&6; }
 10633 fi
 10635   if test "x$ac_pt_PKG_CONFIG" = x; then
 10636     PKG_CONFIG=""
 10637   else
 10638     case $cross_compiling:$ac_tool_warned in
 10639 yes:)
 10640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 10641 whose name does not start with the host triplet.  If you think this
 10642 configuration is useful to you, please write to autoconf@gnu.org." >&5
 10643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 10644 whose name does not start with the host triplet.  If you think this
 10645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 10646 ac_tool_warned=yes ;;
 10647 esac
 10648     PKG_CONFIG=$ac_pt_PKG_CONFIG
 10649   fi
 10650 else
 10651   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 10652 fi
 10654 fi
 10655 if test -n "$PKG_CONFIG"; then
 10656 	_pkg_min_version=0.9.0
 10657 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 10658 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 10659 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 10660 		{ echo "$as_me:$LINENO: result: yes" >&5
 10661 echo "${ECHO_T}yes" >&6; }
 10662 	else
 10663 		{ echo "$as_me:$LINENO: result: no" >&5
 10664 echo "${ECHO_T}no" >&6; }
 10665 		PKG_CONFIG=""
 10666 	fi
 10668 fi
 10670 pkg_failed=no
 10671 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
 10672 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
 10674 if test -n "$LIBPNG_CFLAGS"; then
 10675     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 10676  elif test -n "$PKG_CONFIG"; then
 10677     if test -n "$PKG_CONFIG" && \
 10678     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10679   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10680   ac_status=$?
 10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10682   (exit $ac_status); }; then
 10683   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
 10684 else
 10685   pkg_failed=yes
 10686 fi
 10687  else
 10688     pkg_failed=untried
 10689 fi
 10690 if test -n "$LIBPNG_LIBS"; then
 10691     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 10692  elif test -n "$PKG_CONFIG"; then
 10693     if test -n "$PKG_CONFIG" && \
 10694     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10695   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10696   ac_status=$?
 10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10698   (exit $ac_status); }; then
 10699   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
 10700 else
 10701   pkg_failed=yes
 10702 fi
 10703  else
 10704     pkg_failed=untried
 10705 fi
 10709 if test $pkg_failed = yes; then
 10711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10712         _pkg_short_errors_supported=yes
 10713 else
 10714         _pkg_short_errors_supported=no
 10715 fi
 10716         if test $_pkg_short_errors_supported = yes; then
 10717 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
 10718         else
 10719 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
 10720         fi
 10721 	# Put the nasty error message in config.log where it belongs
 10722 	echo "$LIBPNG_PKG_ERRORS" >&5
 10724 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
 10726 $LIBPNG_PKG_ERRORS
 10728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10729 installed software in a non-standard prefix.
 10731 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10732 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10733 See the pkg-config man page for more details.
 10734 " >&5
 10735 echo "$as_me: error: Package requirements (libpng ) were not met:
 10737 $LIBPNG_PKG_ERRORS
 10739 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10740 installed software in a non-standard prefix.
 10742 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10743 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10744 See the pkg-config man page for more details.
 10745 " >&2;}
 10746    { (exit 1); exit 1; }; }
 10747 elif test $pkg_failed = untried; then
 10748 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10749 is in your PATH or set the PKG_CONFIG environment variable to the full
 10750 path to pkg-config.
 10752 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10753 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10754 See the pkg-config man page for more details.
 10756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10757 See \`config.log' for more details." >&5
 10758 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10759 is in your PATH or set the PKG_CONFIG environment variable to the full
 10760 path to pkg-config.
 10762 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10763 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10764 See the pkg-config man page for more details.
 10766 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10767 See \`config.log' for more details." >&2;}
 10768    { (exit 1); exit 1; }; }
 10769 else
 10770 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
 10771 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
 10772         { echo "$as_me:$LINENO: result: yes" >&5
 10773 echo "${ECHO_T}yes" >&6; }
 10775 fi
 10778 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
 10779 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
 10780 if test "${ac_cv_lib_z_uncompress+set}" = set; then
 10781   echo $ECHO_N "(cached) $ECHO_C" >&6
 10782 else
 10783   ac_check_lib_save_LIBS=$LIBS
 10784 LIBS="-lz  $LIBS"
 10785 cat >conftest.$ac_ext <<_ACEOF
 10786 /* confdefs.h.  */
 10787 _ACEOF
 10788 cat confdefs.h >>conftest.$ac_ext
 10789 cat >>conftest.$ac_ext <<_ACEOF
 10790 /* end confdefs.h.  */
 10792 /* Override any GCC internal prototype to avoid an error.
 10793    Use char because int might match the return type of a GCC
 10794    builtin and then its argument prototype would still apply.  */
 10795 #ifdef __cplusplus
 10796 extern "C"
 10797 #endif
 10798 char uncompress ();
 10799 int
 10800 main ()
 10802 return uncompress ();
 10804   return 0;
 10806 _ACEOF
 10807 rm -f conftest.$ac_objext conftest$ac_exeext
 10808 if { (ac_try="$ac_link"
 10809 case "(($ac_try" in
 10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10811   *) ac_try_echo=$ac_try;;
 10812 esac
 10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10814   (eval "$ac_link") 2>conftest.er1
 10815   ac_status=$?
 10816   grep -v '^ *+' conftest.er1 >conftest.err
 10817   rm -f conftest.er1
 10818   cat conftest.err >&5
 10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10820   (exit $ac_status); } && {
 10821 	 test -z "$ac_c_werror_flag" ||
 10822 	 test ! -s conftest.err
 10823        } && test -s conftest$ac_exeext &&
 10824        $as_test_x conftest$ac_exeext; then
 10825   ac_cv_lib_z_uncompress=yes
 10826 else
 10827   echo "$as_me: failed program was:" >&5
 10828 sed 's/^/| /' conftest.$ac_ext >&5
 10830 	ac_cv_lib_z_uncompress=no
 10831 fi
 10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10834       conftest$ac_exeext conftest.$ac_ext
 10835 LIBS=$ac_check_lib_save_LIBS
 10836 fi
 10837 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
 10838 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
 10839 if test $ac_cv_lib_z_uncompress = yes; then
 10840   cat >>confdefs.h <<_ACEOF
 10841 #define HAVE_LIBZ 1
 10842 _ACEOF
 10844   LIBS="-lz $LIBS"
 10846 else
 10848     echo "Zlib (libz.so) could not be found, but is required."
 10849     exit 1
 10850 fi
 10854 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
 10855 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
 10856 if test "${ac_cv_lib_m_sqrt+set}" = set; then
 10857   echo $ECHO_N "(cached) $ECHO_C" >&6
 10858 else
 10859   ac_check_lib_save_LIBS=$LIBS
 10860 LIBS="-lm  $LIBS"
 10861 cat >conftest.$ac_ext <<_ACEOF
 10862 /* confdefs.h.  */
 10863 _ACEOF
 10864 cat confdefs.h >>conftest.$ac_ext
 10865 cat >>conftest.$ac_ext <<_ACEOF
 10866 /* end confdefs.h.  */
 10868 /* Override any GCC internal prototype to avoid an error.
 10869    Use char because int might match the return type of a GCC
 10870    builtin and then its argument prototype would still apply.  */
 10871 #ifdef __cplusplus
 10872 extern "C"
 10873 #endif
 10874 char sqrt ();
 10875 int
 10876 main ()
 10878 return sqrt ();
 10880   return 0;
 10882 _ACEOF
 10883 rm -f conftest.$ac_objext conftest$ac_exeext
 10884 if { (ac_try="$ac_link"
 10885 case "(($ac_try" in
 10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10887   *) ac_try_echo=$ac_try;;
 10888 esac
 10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10890   (eval "$ac_link") 2>conftest.er1
 10891   ac_status=$?
 10892   grep -v '^ *+' conftest.er1 >conftest.err
 10893   rm -f conftest.er1
 10894   cat conftest.err >&5
 10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10896   (exit $ac_status); } && {
 10897 	 test -z "$ac_c_werror_flag" ||
 10898 	 test ! -s conftest.err
 10899        } && test -s conftest$ac_exeext &&
 10900        $as_test_x conftest$ac_exeext; then
 10901   ac_cv_lib_m_sqrt=yes
 10902 else
 10903   echo "$as_me: failed program was:" >&5
 10904 sed 's/^/| /' conftest.$ac_ext >&5
 10906 	ac_cv_lib_m_sqrt=no
 10907 fi
 10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10910       conftest$ac_exeext conftest.$ac_ext
 10911 LIBS=$ac_check_lib_save_LIBS
 10912 fi
 10913 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
 10914 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
 10915 if test $ac_cv_lib_m_sqrt = yes; then
 10916   cat >>confdefs.h <<_ACEOF
 10917 #define HAVE_LIBM 1
 10918 _ACEOF
 10920   LIBS="-lm $LIBS"
 10922 fi
 10925 if test "x$with_gtk" = "xno"; then
 10927 pkg_failed=no
 10928 { echo "$as_me:$LINENO: checking for GLIB" >&5
 10929 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 10931 if test -n "$GLIB_CFLAGS"; then
 10932     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 10933  elif test -n "$PKG_CONFIG"; then
 10934     if test -n "$PKG_CONFIG" && \
 10935     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10936   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10937   ac_status=$?
 10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10939   (exit $ac_status); }; then
 10940   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 10941 else
 10942   pkg_failed=yes
 10943 fi
 10944  else
 10945     pkg_failed=untried
 10946 fi
 10947 if test -n "$GLIB_LIBS"; then
 10948     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 10949  elif test -n "$PKG_CONFIG"; then
 10950     if test -n "$PKG_CONFIG" && \
 10951     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10952   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10953   ac_status=$?
 10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10955   (exit $ac_status); }; then
 10956   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 10957 else
 10958   pkg_failed=yes
 10959 fi
 10960  else
 10961     pkg_failed=untried
 10962 fi
 10966 if test $pkg_failed = yes; then
 10968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10969         _pkg_short_errors_supported=yes
 10970 else
 10971         _pkg_short_errors_supported=no
 10972 fi
 10973         if test $_pkg_short_errors_supported = yes; then
 10974 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 10975         else
 10976 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 10977         fi
 10978 	# Put the nasty error message in config.log where it belongs
 10979 	echo "$GLIB_PKG_ERRORS" >&5
 10981 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 10983 $GLIB_PKG_ERRORS
 10985 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10986 installed software in a non-standard prefix.
 10988 Alternatively, you may set the environment variables GLIB_CFLAGS
 10989 and GLIB_LIBS to avoid the need to call pkg-config.
 10990 See the pkg-config man page for more details.
 10991 " >&5
 10992 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 10994 $GLIB_PKG_ERRORS
 10996 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10997 installed software in a non-standard prefix.
 10999 Alternatively, you may set the environment variables GLIB_CFLAGS
 11000 and GLIB_LIBS to avoid the need to call pkg-config.
 11001 See the pkg-config man page for more details.
 11002 " >&2;}
 11003    { (exit 1); exit 1; }; }
 11004 elif test $pkg_failed = untried; then
 11005 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11006 is in your PATH or set the PKG_CONFIG environment variable to the full
 11007 path to pkg-config.
 11009 Alternatively, you may set the environment variables GLIB_CFLAGS
 11010 and GLIB_LIBS to avoid the need to call pkg-config.
 11011 See the pkg-config man page for more details.
 11013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11014 See \`config.log' for more details." >&5
 11015 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11016 is in your PATH or set the PKG_CONFIG environment variable to the full
 11017 path to pkg-config.
 11019 Alternatively, you may set the environment variables GLIB_CFLAGS
 11020 and GLIB_LIBS to avoid the need to call pkg-config.
 11021 See the pkg-config man page for more details.
 11023 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11024 See \`config.log' for more details." >&2;}
 11025    { (exit 1); exit 1; }; }
 11026 else
 11027 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 11028 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
 11029         { echo "$as_me:$LINENO: result: yes" >&5
 11030 echo "${ECHO_T}yes" >&6; }
 11032 fi
 11033 else
 11035 pkg_failed=no
 11036 { echo "$as_me:$LINENO: checking for GTK" >&5
 11037 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 11039 if test -n "$GTK_CFLAGS"; then
 11040     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 11041  elif test -n "$PKG_CONFIG"; then
 11042     if test -n "$PKG_CONFIG" && \
 11043     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11044   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11045   ac_status=$?
 11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11047   (exit $ac_status); }; then
 11048   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 11049 else
 11050   pkg_failed=yes
 11051 fi
 11052  else
 11053     pkg_failed=untried
 11054 fi
 11055 if test -n "$GTK_LIBS"; then
 11056     pkg_cv_GTK_LIBS="$GTK_LIBS"
 11057  elif test -n "$PKG_CONFIG"; then
 11058     if test -n "$PKG_CONFIG" && \
 11059     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11060   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11061   ac_status=$?
 11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11063   (exit $ac_status); }; then
 11064   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 11065 else
 11066   pkg_failed=yes
 11067 fi
 11068  else
 11069     pkg_failed=untried
 11070 fi
 11074 if test $pkg_failed = yes; then
 11076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11077         _pkg_short_errors_supported=yes
 11078 else
 11079         _pkg_short_errors_supported=no
 11080 fi
 11081         if test $_pkg_short_errors_supported = yes; then
 11082 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
 11083         else
 11084 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
 11085         fi
 11086 	# Put the nasty error message in config.log where it belongs
 11087 	echo "$GTK_PKG_ERRORS" >&5
 11089 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 11091 $GTK_PKG_ERRORS
 11093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11094 installed software in a non-standard prefix.
 11096 Alternatively, you may set the environment variables GTK_CFLAGS
 11097 and GTK_LIBS to avoid the need to call pkg-config.
 11098 See the pkg-config man page for more details.
 11099 " >&5
 11100 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 11102 $GTK_PKG_ERRORS
 11104 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11105 installed software in a non-standard prefix.
 11107 Alternatively, you may set the environment variables GTK_CFLAGS
 11108 and GTK_LIBS to avoid the need to call pkg-config.
 11109 See the pkg-config man page for more details.
 11110 " >&2;}
 11111    { (exit 1); exit 1; }; }
 11112 elif test $pkg_failed = untried; then
 11113 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11114 is in your PATH or set the PKG_CONFIG environment variable to the full
 11115 path to pkg-config.
 11117 Alternatively, you may set the environment variables GTK_CFLAGS
 11118 and GTK_LIBS to avoid the need to call pkg-config.
 11119 See the pkg-config man page for more details.
 11121 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11122 See \`config.log' for more details." >&5
 11123 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11124 is in your PATH or set the PKG_CONFIG environment variable to the full
 11125 path to pkg-config.
 11127 Alternatively, you may set the environment variables GTK_CFLAGS
 11128 and GTK_LIBS to avoid the need to call pkg-config.
 11129 See the pkg-config man page for more details.
 11131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11132 See \`config.log' for more details." >&2;}
 11133    { (exit 1); exit 1; }; }
 11134 else
 11135 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 11136 	GTK_LIBS=$pkg_cv_GTK_LIBS
 11137         { echo "$as_me:$LINENO: result: yes" >&5
 11138 echo "${ECHO_T}yes" >&6; }
 11140        HAVE_GTK='yes'
 11142 cat >>confdefs.h <<\_ACEOF
 11143 #define HAVE_GTK 1
 11144 _ACEOF
 11146        UI_DRIVER="GTK"
 11148 fi
 11150       LIBS="$LIBS $GTK_LIBS"
 11151    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
 11152 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
 11153 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
 11154   echo $ECHO_N "(cached) $ECHO_C" >&6
 11155 else
 11156   cat >conftest.$ac_ext <<_ACEOF
 11157 /* confdefs.h.  */
 11158 _ACEOF
 11159 cat confdefs.h >>conftest.$ac_ext
 11160 cat >>conftest.$ac_ext <<_ACEOF
 11161 /* end confdefs.h.  */
 11162 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
 11163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11164 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
 11166 /* System header to define __stub macros and hopefully few prototypes,
 11167     which can conflict with char gdk_x11_display_get_xdisplay (); below.
 11168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11169     <limits.h> exists even on freestanding compilers.  */
 11171 #ifdef __STDC__
 11172 # include <limits.h>
 11173 #else
 11174 # include <assert.h>
 11175 #endif
 11177 #undef gdk_x11_display_get_xdisplay
 11179 /* Override any GCC internal prototype to avoid an error.
 11180    Use char because int might match the return type of a GCC
 11181    builtin and then its argument prototype would still apply.  */
 11182 #ifdef __cplusplus
 11183 extern "C"
 11184 #endif
 11185 char gdk_x11_display_get_xdisplay ();
 11186 /* The GNU C library defines this for functions which it implements
 11187     to always fail with ENOSYS.  Some functions are actually named
 11188     something starting with __ and the normal name is an alias.  */
 11189 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
 11190 choke me
 11191 #endif
 11193 int
 11194 main ()
 11196 return gdk_x11_display_get_xdisplay ();
 11198   return 0;
 11200 _ACEOF
 11201 rm -f conftest.$ac_objext conftest$ac_exeext
 11202 if { (ac_try="$ac_link"
 11203 case "(($ac_try" in
 11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11205   *) ac_try_echo=$ac_try;;
 11206 esac
 11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11208   (eval "$ac_link") 2>conftest.er1
 11209   ac_status=$?
 11210   grep -v '^ *+' conftest.er1 >conftest.err
 11211   rm -f conftest.er1
 11212   cat conftest.err >&5
 11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11214   (exit $ac_status); } && {
 11215 	 test -z "$ac_c_werror_flag" ||
 11216 	 test ! -s conftest.err
 11217        } && test -s conftest$ac_exeext &&
 11218        $as_test_x conftest$ac_exeext; then
 11219   ac_cv_func_gdk_x11_display_get_xdisplay=yes
 11220 else
 11221   echo "$as_me: failed program was:" >&5
 11222 sed 's/^/| /' conftest.$ac_ext >&5
 11224 	ac_cv_func_gdk_x11_display_get_xdisplay=no
 11225 fi
 11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11228       conftest$ac_exeext conftest.$ac_ext
 11229 fi
 11230 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
 11231 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
 11232 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
 11234       HAVE_GTK_X11='yes'
 11236 cat >>confdefs.h <<\_ACEOF
 11237 #define HAVE_GTK_X11 1
 11238 _ACEOF
 11240 fi
 11242             GTK_LIBS="$GTK_LIBS -lX11"
 11243       LIBS="$LIBS -lX11"
 11244    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
 11245 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
 11246 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
 11247   echo $ECHO_N "(cached) $ECHO_C" >&6
 11248 else
 11249   cat >conftest.$ac_ext <<_ACEOF
 11250 /* confdefs.h.  */
 11251 _ACEOF
 11252 cat confdefs.h >>conftest.$ac_ext
 11253 cat >>conftest.$ac_ext <<_ACEOF
 11254 /* end confdefs.h.  */
 11255 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
 11256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11257 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
 11259 /* System header to define __stub macros and hopefully few prototypes,
 11260     which can conflict with char gdk_quartz_window_get_nsview (); below.
 11261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11262     <limits.h> exists even on freestanding compilers.  */
 11264 #ifdef __STDC__
 11265 # include <limits.h>
 11266 #else
 11267 # include <assert.h>
 11268 #endif
 11270 #undef gdk_quartz_window_get_nsview
 11272 /* Override any GCC internal prototype to avoid an error.
 11273    Use char because int might match the return type of a GCC
 11274    builtin and then its argument prototype would still apply.  */
 11275 #ifdef __cplusplus
 11276 extern "C"
 11277 #endif
 11278 char gdk_quartz_window_get_nsview ();
 11279 /* The GNU C library defines this for functions which it implements
 11280     to always fail with ENOSYS.  Some functions are actually named
 11281     something starting with __ and the normal name is an alias.  */
 11282 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
 11283 choke me
 11284 #endif
 11286 int
 11287 main ()
 11289 return gdk_quartz_window_get_nsview ();
 11291   return 0;
 11293 _ACEOF
 11294 rm -f conftest.$ac_objext conftest$ac_exeext
 11295 if { (ac_try="$ac_link"
 11296 case "(($ac_try" in
 11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11298   *) ac_try_echo=$ac_try;;
 11299 esac
 11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11301   (eval "$ac_link") 2>conftest.er1
 11302   ac_status=$?
 11303   grep -v '^ *+' conftest.er1 >conftest.err
 11304   rm -f conftest.er1
 11305   cat conftest.err >&5
 11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11307   (exit $ac_status); } && {
 11308 	 test -z "$ac_c_werror_flag" ||
 11309 	 test ! -s conftest.err
 11310        } && test -s conftest$ac_exeext &&
 11311        $as_test_x conftest$ac_exeext; then
 11312   ac_cv_func_gdk_quartz_window_get_nsview=yes
 11313 else
 11314   echo "$as_me: failed program was:" >&5
 11315 sed 's/^/| /' conftest.$ac_ext >&5
 11317 	ac_cv_func_gdk_quartz_window_get_nsview=no
 11318 fi
 11320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11321       conftest$ac_exeext conftest.$ac_ext
 11322 fi
 11323 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
 11324 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
 11325 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
 11327       HAVE_GTK_OSX='yes'
 11329 cat >>confdefs.h <<\_ACEOF
 11330 #define HAVE_GTK_OSX 1
 11331 _ACEOF
 11333 fi
 11335    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
 11336       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
 11337 See \`config.log' for more details." >&5
 11338 echo "$as_me: error: Unable to identify GTK platform
 11339 See \`config.log' for more details." >&2;}
 11340    { (exit 1); exit 1; }; }
 11341    fi
 11342 fi
 11345 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
 11346    PKG_CONFIG_LIBDIR="$BUILD_PKG_CONFIG_LIBDIR";
 11347    if test "x$PKG_CONFIG_LIBDIR" = "x"; then
 11348       export -n PKG_CONFIG_LIBDIR
 11349    fi
 11350 fi
 11352 pkg_failed=no
 11353 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
 11354 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
 11356 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
 11357     pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
 11358  elif test -n "$PKG_CONFIG"; then
 11359     if test -n "$PKG_CONFIG" && \
 11360     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11361   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11362   ac_status=$?
 11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11364   (exit $ac_status); }; then
 11365   pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 11366 else
 11367   pkg_failed=yes
 11368 fi
 11369  else
 11370     pkg_failed=untried
 11371 fi
 11372 if test -n "$GLIB_FOR_BUILD_LIBS"; then
 11373     pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
 11374  elif test -n "$PKG_CONFIG"; then
 11375     if test -n "$PKG_CONFIG" && \
 11376     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11377   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11378   ac_status=$?
 11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11380   (exit $ac_status); }; then
 11381   pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 11382 else
 11383   pkg_failed=yes
 11384 fi
 11385  else
 11386     pkg_failed=untried
 11387 fi
 11391 if test $pkg_failed = yes; then
 11393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11394         _pkg_short_errors_supported=yes
 11395 else
 11396         _pkg_short_errors_supported=no
 11397 fi
 11398         if test $_pkg_short_errors_supported = yes; then
 11399 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 11400         else
 11401 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 11402         fi
 11403 	# Put the nasty error message in config.log where it belongs
 11404 	echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
 11406 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 11408 $GLIB_FOR_BUILD_PKG_ERRORS
 11410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11411 installed software in a non-standard prefix.
 11413 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11414 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11415 See the pkg-config man page for more details.
 11416 " >&5
 11417 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 11419 $GLIB_FOR_BUILD_PKG_ERRORS
 11421 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11422 installed software in a non-standard prefix.
 11424 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11425 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11426 See the pkg-config man page for more details.
 11427 " >&2;}
 11428    { (exit 1); exit 1; }; }
 11429 elif test $pkg_failed = untried; then
 11430 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11431 is in your PATH or set the PKG_CONFIG environment variable to the full
 11432 path to pkg-config.
 11434 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11435 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11436 See the pkg-config man page for more details.
 11438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11439 See \`config.log' for more details." >&5
 11440 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11441 is in your PATH or set the PKG_CONFIG environment variable to the full
 11442 path to pkg-config.
 11444 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11445 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11446 See the pkg-config man page for more details.
 11448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11449 See \`config.log' for more details." >&2;}
 11450    { (exit 1); exit 1; }; }
 11451 else
 11452 	GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
 11453 	GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
 11454         { echo "$as_me:$LINENO: result: yes" >&5
 11455 echo "${ECHO_T}yes" >&6; }
 11457 fi
 11458 if test "$BUILD_PKG_CONFIG_LIBDIR" != "$TARGET_PKG_CONFIG_LIBDIR"; then
 11459    PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR";
 11460    export PKG_CONFIG_LIBDIR
 11461 fi
 11466 if test "$HAVE_GTK" = 'yes'; then
 11467   GUI_GTK_TRUE=
 11468   GUI_GTK_FALSE='#'
 11469 else
 11470   GUI_GTK_TRUE='#'
 11471   GUI_GTK_FALSE=
 11472 fi
 11476 pkg_failed=no
 11477 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
 11478 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
 11480 if test -n "$LIBISOFS_CFLAGS"; then
 11481     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
 11482  elif test -n "$PKG_CONFIG"; then
 11483     if test -n "$PKG_CONFIG" && \
 11484     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11485   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11486   ac_status=$?
 11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11488   (exit $ac_status); }; then
 11489   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
 11490 else
 11491   pkg_failed=yes
 11492 fi
 11493  else
 11494     pkg_failed=untried
 11495 fi
 11496 if test -n "$LIBISOFS_LIBS"; then
 11497     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
 11498  elif test -n "$PKG_CONFIG"; then
 11499     if test -n "$PKG_CONFIG" && \
 11500     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11501   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11502   ac_status=$?
 11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11504   (exit $ac_status); }; then
 11505   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
 11506 else
 11507   pkg_failed=yes
 11508 fi
 11509  else
 11510     pkg_failed=untried
 11511 fi
 11515 if test $pkg_failed = yes; then
 11517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11518         _pkg_short_errors_supported=yes
 11519 else
 11520         _pkg_short_errors_supported=no
 11521 fi
 11522         if test $_pkg_short_errors_supported = yes; then
 11523 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
 11524         else
 11525 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
 11526         fi
 11527 	# Put the nasty error message in config.log where it belongs
 11528 	echo "$LIBISOFS_PKG_ERRORS" >&5
 11530 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
 11532 $LIBISOFS_PKG_ERRORS
 11534 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11535 installed software in a non-standard prefix.
 11537 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11538 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11539 See the pkg-config man page for more details.
 11540 " >&5
 11541 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
 11543 $LIBISOFS_PKG_ERRORS
 11545 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11546 installed software in a non-standard prefix.
 11548 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11549 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11550 See the pkg-config man page for more details.
 11551 " >&2;}
 11552    { (exit 1); exit 1; }; }
 11553 elif test $pkg_failed = untried; then
 11554 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11555 is in your PATH or set the PKG_CONFIG environment variable to the full
 11556 path to pkg-config.
 11558 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11559 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11560 See the pkg-config man page for more details.
 11562 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11563 See \`config.log' for more details." >&5
 11564 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11565 is in your PATH or set the PKG_CONFIG environment variable to the full
 11566 path to pkg-config.
 11568 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11569 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11570 See the pkg-config man page for more details.
 11572 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11573 See \`config.log' for more details." >&2;}
 11574    { (exit 1); exit 1; }; }
 11575 else
 11576 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
 11577 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
 11578         { echo "$as_me:$LINENO: result: yes" >&5
 11579 echo "${ECHO_T}yes" >&6; }
 11581 fi
 11583 if test "x$with_osmesa" != xno; then
 11587 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
 11588 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
 11589 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
 11590   echo $ECHO_N "(cached) $ECHO_C" >&6
 11591 else
 11592   ac_check_lib_save_LIBS=$LIBS
 11593 LIBS="-lOSMesa  $LIBS"
 11594 cat >conftest.$ac_ext <<_ACEOF
 11595 /* confdefs.h.  */
 11596 _ACEOF
 11597 cat confdefs.h >>conftest.$ac_ext
 11598 cat >>conftest.$ac_ext <<_ACEOF
 11599 /* end confdefs.h.  */
 11601 /* Override any GCC internal prototype to avoid an error.
 11602    Use char because int might match the return type of a GCC
 11603    builtin and then its argument prototype would still apply.  */
 11604 #ifdef __cplusplus
 11605 extern "C"
 11606 #endif
 11607 char OSMesaCreateContext ();
 11608 int
 11609 main ()
 11611 return OSMesaCreateContext ();
 11613   return 0;
 11615 _ACEOF
 11616 rm -f conftest.$ac_objext conftest$ac_exeext
 11617 if { (ac_try="$ac_link"
 11618 case "(($ac_try" in
 11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11620   *) ac_try_echo=$ac_try;;
 11621 esac
 11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11623   (eval "$ac_link") 2>conftest.er1
 11624   ac_status=$?
 11625   grep -v '^ *+' conftest.er1 >conftest.err
 11626   rm -f conftest.er1
 11627   cat conftest.err >&5
 11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11629   (exit $ac_status); } && {
 11630 	 test -z "$ac_c_werror_flag" ||
 11631 	 test ! -s conftest.err
 11632        } && test -s conftest$ac_exeext &&
 11633        $as_test_x conftest$ac_exeext; then
 11634   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
 11635 else
 11636   echo "$as_me: failed program was:" >&5
 11637 sed 's/^/| /' conftest.$ac_ext >&5
 11639 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
 11640 fi
 11642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11643       conftest$ac_exeext conftest.$ac_ext
 11644 LIBS=$ac_check_lib_save_LIBS
 11645 fi
 11646 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
 11647 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
 11648 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
 11649   cat >>confdefs.h <<_ACEOF
 11650 #define HAVE_LIBOSMESA 1
 11651 _ACEOF
 11653   LIBS="-lOSMesa $LIBS"
 11655 else
 11656   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
 11657 See \`config.log' for more details." >&5
 11658 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
 11659 See \`config.log' for more details." >&2;}
 11660    { (exit 1); exit 1; }; }
 11661 fi
 11663   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11664   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11665 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11666 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11667   echo $ECHO_N "(cached) $ECHO_C" >&6
 11668 fi
 11669 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11670 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11671 else
 11672   # Is the header compilable?
 11673 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
 11674 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
 11675 cat >conftest.$ac_ext <<_ACEOF
 11676 /* confdefs.h.  */
 11677 _ACEOF
 11678 cat confdefs.h >>conftest.$ac_ext
 11679 cat >>conftest.$ac_ext <<_ACEOF
 11680 /* end confdefs.h.  */
 11681 $ac_includes_default
 11682 #include <GL/osmesa.h>
 11683 _ACEOF
 11684 rm -f conftest.$ac_objext
 11685 if { (ac_try="$ac_compile"
 11686 case "(($ac_try" in
 11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11688   *) ac_try_echo=$ac_try;;
 11689 esac
 11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11691   (eval "$ac_compile") 2>conftest.er1
 11692   ac_status=$?
 11693   grep -v '^ *+' conftest.er1 >conftest.err
 11694   rm -f conftest.er1
 11695   cat conftest.err >&5
 11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11697   (exit $ac_status); } && {
 11698 	 test -z "$ac_c_werror_flag" ||
 11699 	 test ! -s conftest.err
 11700        } && test -s conftest.$ac_objext; then
 11701   ac_header_compiler=yes
 11702 else
 11703   echo "$as_me: failed program was:" >&5
 11704 sed 's/^/| /' conftest.$ac_ext >&5
 11706 	ac_header_compiler=no
 11707 fi
 11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11711 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11713 # Is the header present?
 11714 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
 11715 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
 11716 cat >conftest.$ac_ext <<_ACEOF
 11717 /* confdefs.h.  */
 11718 _ACEOF
 11719 cat confdefs.h >>conftest.$ac_ext
 11720 cat >>conftest.$ac_ext <<_ACEOF
 11721 /* end confdefs.h.  */
 11722 #include <GL/osmesa.h>
 11723 _ACEOF
 11724 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11725 case "(($ac_try" in
 11726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11727   *) ac_try_echo=$ac_try;;
 11728 esac
 11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11731   ac_status=$?
 11732   grep -v '^ *+' conftest.er1 >conftest.err
 11733   rm -f conftest.er1
 11734   cat conftest.err >&5
 11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11736   (exit $ac_status); } >/dev/null && {
 11737 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11738 	 test ! -s conftest.err
 11739        }; then
 11740   ac_header_preproc=yes
 11741 else
 11742   echo "$as_me: failed program was:" >&5
 11743 sed 's/^/| /' conftest.$ac_ext >&5
 11745   ac_header_preproc=no
 11746 fi
 11748 rm -f conftest.err conftest.$ac_ext
 11749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11750 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11752 # So?  What about this header?
 11753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11754   yes:no: )
 11755     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11756 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11757     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
 11758 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
 11759     ac_header_preproc=yes
 11760     ;;
 11761   no:yes:* )
 11762     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
 11763 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
 11764     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
 11765 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
 11766     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
 11767 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
 11768     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
 11769 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11770     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
 11771 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
 11772     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
 11773 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
 11775     ;;
 11776 esac
 11777 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11778 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11779 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11780   echo $ECHO_N "(cached) $ECHO_C" >&6
 11781 else
 11782   ac_cv_header_GL_osmesa_h=$ac_header_preproc
 11783 fi
 11784 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11785 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11787 fi
 11788 if test $ac_cv_header_GL_osmesa_h = yes; then
 11790 else
 11791   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
 11792 See \`config.log' for more details." >&5
 11793 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
 11794 See \`config.log' for more details." >&2;}
 11795    { (exit 1); exit 1; }; }
 11796 fi
 11799   HAVE_OSMESA='yes'
 11800   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
 11802 cat >>confdefs.h <<\_ACEOF
 11803 #define HAVE_OSMESA 1
 11804 _ACEOF
 11806 else
 11809    if test "x$APPLE_BUILD" != 'xyes'; then
 11811 pkg_failed=no
 11812 { echo "$as_me:$LINENO: checking for LIBGL" >&5
 11813 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
 11815 if test -n "$LIBGL_CFLAGS"; then
 11816     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
 11817  elif test -n "$PKG_CONFIG"; then
 11818     if test -n "$PKG_CONFIG" && \
 11819     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
 11820   ($PKG_CONFIG --exists --print-errors "gl") 2>&5
 11821   ac_status=$?
 11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11823   (exit $ac_status); }; then
 11824   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
 11825 else
 11826   pkg_failed=yes
 11827 fi
 11828  else
 11829     pkg_failed=untried
 11830 fi
 11831 if test -n "$LIBGL_LIBS"; then
 11832     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
 11833  elif test -n "$PKG_CONFIG"; then
 11834     if test -n "$PKG_CONFIG" && \
 11835     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl\"") >&5
 11836   ($PKG_CONFIG --exists --print-errors "gl") 2>&5
 11837   ac_status=$?
 11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11839   (exit $ac_status); }; then
 11840   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
 11841 else
 11842   pkg_failed=yes
 11843 fi
 11844  else
 11845     pkg_failed=untried
 11846 fi
 11850 if test $pkg_failed = yes; then
 11852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11853         _pkg_short_errors_supported=yes
 11854 else
 11855         _pkg_short_errors_supported=no
 11856 fi
 11857         if test $_pkg_short_errors_supported = yes; then
 11858 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
 11859         else
 11860 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
 11861         fi
 11862 	# Put the nasty error message in config.log where it belongs
 11863 	echo "$LIBGL_PKG_ERRORS" >&5
 11865 	{ echo "$as_me:$LINENO: result: no" >&5
 11866 echo "${ECHO_T}no" >&6; }
 11868                   { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
 11869 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
 11870 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
 11871   echo $ECHO_N "(cached) $ECHO_C" >&6
 11872 else
 11873   ac_check_lib_save_LIBS=$LIBS
 11874 LIBS="-lGLESv2  $LIBS"
 11875 cat >conftest.$ac_ext <<_ACEOF
 11876 /* confdefs.h.  */
 11877 _ACEOF
 11878 cat confdefs.h >>conftest.$ac_ext
 11879 cat >>conftest.$ac_ext <<_ACEOF
 11880 /* end confdefs.h.  */
 11882 /* Override any GCC internal prototype to avoid an error.
 11883    Use char because int might match the return type of a GCC
 11884    builtin and then its argument prototype would still apply.  */
 11885 #ifdef __cplusplus
 11886 extern "C"
 11887 #endif
 11888 char glEnable ();
 11889 int
 11890 main ()
 11892 return glEnable ();
 11894   return 0;
 11896 _ACEOF
 11897 rm -f conftest.$ac_objext conftest$ac_exeext
 11898 if { (ac_try="$ac_link"
 11899 case "(($ac_try" in
 11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11901   *) ac_try_echo=$ac_try;;
 11902 esac
 11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11904   (eval "$ac_link") 2>conftest.er1
 11905   ac_status=$?
 11906   grep -v '^ *+' conftest.er1 >conftest.err
 11907   rm -f conftest.er1
 11908   cat conftest.err >&5
 11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11910   (exit $ac_status); } && {
 11911 	 test -z "$ac_c_werror_flag" ||
 11912 	 test ! -s conftest.err
 11913        } && test -s conftest$ac_exeext &&
 11914        $as_test_x conftest$ac_exeext; then
 11915   ac_cv_lib_GLESv2_glEnable=yes
 11916 else
 11917   echo "$as_me: failed program was:" >&5
 11918 sed 's/^/| /' conftest.$ac_ext >&5
 11920 	ac_cv_lib_GLESv2_glEnable=no
 11921 fi
 11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11924       conftest$ac_exeext conftest.$ac_ext
 11925 LIBS=$ac_check_lib_save_LIBS
 11926 fi
 11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
 11928 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
 11929 if test $ac_cv_lib_GLESv2_glEnable = yes; then
 11930   LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
 11931 else
 11932    { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 11933 See \`config.log' for more details." >&5
 11934 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 11935 See \`config.log' for more details." >&2;}
 11936    { (exit 1); exit 1; }; }
 11937 fi
 11940 elif test $pkg_failed = untried; then
 11942                   { echo "$as_me:$LINENO: checking for glEnable in -lGLESv2" >&5
 11943 echo $ECHO_N "checking for glEnable in -lGLESv2... $ECHO_C" >&6; }
 11944 if test "${ac_cv_lib_GLESv2_glEnable+set}" = set; then
 11945   echo $ECHO_N "(cached) $ECHO_C" >&6
 11946 else
 11947   ac_check_lib_save_LIBS=$LIBS
 11948 LIBS="-lGLESv2  $LIBS"
 11949 cat >conftest.$ac_ext <<_ACEOF
 11950 /* confdefs.h.  */
 11951 _ACEOF
 11952 cat confdefs.h >>conftest.$ac_ext
 11953 cat >>conftest.$ac_ext <<_ACEOF
 11954 /* end confdefs.h.  */
 11956 /* Override any GCC internal prototype to avoid an error.
 11957    Use char because int might match the return type of a GCC
 11958    builtin and then its argument prototype would still apply.  */
 11959 #ifdef __cplusplus
 11960 extern "C"
 11961 #endif
 11962 char glEnable ();
 11963 int
 11964 main ()
 11966 return glEnable ();
 11968   return 0;
 11970 _ACEOF
 11971 rm -f conftest.$ac_objext conftest$ac_exeext
 11972 if { (ac_try="$ac_link"
 11973 case "(($ac_try" in
 11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11975   *) ac_try_echo=$ac_try;;
 11976 esac
 11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11978   (eval "$ac_link") 2>conftest.er1
 11979   ac_status=$?
 11980   grep -v '^ *+' conftest.er1 >conftest.err
 11981   rm -f conftest.er1
 11982   cat conftest.err >&5
 11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11984   (exit $ac_status); } && {
 11985 	 test -z "$ac_c_werror_flag" ||
 11986 	 test ! -s conftest.err
 11987        } && test -s conftest$ac_exeext &&
 11988        $as_test_x conftest$ac_exeext; then
 11989   ac_cv_lib_GLESv2_glEnable=yes
 11990 else
 11991   echo "$as_me: failed program was:" >&5
 11992 sed 's/^/| /' conftest.$ac_ext >&5
 11994 	ac_cv_lib_GLESv2_glEnable=no
 11995 fi
 11997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11998       conftest$ac_exeext conftest.$ac_ext
 11999 LIBS=$ac_check_lib_save_LIBS
 12000 fi
 12001 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLESv2_glEnable" >&5
 12002 echo "${ECHO_T}$ac_cv_lib_GLESv2_glEnable" >&6; }
 12003 if test $ac_cv_lib_GLESv2_glEnable = yes; then
 12004   LIBS="-lGLESv2 $LIBS"; HAVE_GLES2='yes'
 12005 else
 12006    { { echo "$as_me:$LINENO: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 12007 See \`config.log' for more details." >&5
 12008 echo "$as_me: error: Neither the OpenGL library (libGL.so) nor the OpenGL ES 2.0 library (libGLESv2.so) could be found, but one is required.
 12009 See \`config.log' for more details." >&2;}
 12010    { (exit 1); exit 1; }; }
 12011 fi
 12014 else
 12015 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
 12016 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
 12017         { echo "$as_me:$LINENO: result: yes" >&5
 12018 echo "${ECHO_T}yes" >&6; }
 12020           LIBS="$LIBS $LIBGL_LIBS";
 12021           CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
 12023 fi
 12025    else
 12026       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
 12027 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
 12028 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
 12029   echo $ECHO_N "(cached) $ECHO_C" >&6
 12030 else
 12031   cat >conftest.$ac_ext <<_ACEOF
 12032 /* confdefs.h.  */
 12033 _ACEOF
 12034 cat confdefs.h >>conftest.$ac_ext
 12035 cat >>conftest.$ac_ext <<_ACEOF
 12036 /* end confdefs.h.  */
 12037 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
 12038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12039 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
 12041 /* System header to define __stub macros and hopefully few prototypes,
 12042     which can conflict with char NSOpenGLGetVersion (); below.
 12043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12044     <limits.h> exists even on freestanding compilers.  */
 12046 #ifdef __STDC__
 12047 # include <limits.h>
 12048 #else
 12049 # include <assert.h>
 12050 #endif
 12052 #undef NSOpenGLGetVersion
 12054 /* Override any GCC internal prototype to avoid an error.
 12055    Use char because int might match the return type of a GCC
 12056    builtin and then its argument prototype would still apply.  */
 12057 #ifdef __cplusplus
 12058 extern "C"
 12059 #endif
 12060 char NSOpenGLGetVersion ();
 12061 /* The GNU C library defines this for functions which it implements
 12062     to always fail with ENOSYS.  Some functions are actually named
 12063     something starting with __ and the normal name is an alias.  */
 12064 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
 12065 choke me
 12066 #endif
 12068 int
 12069 main ()
 12071 return NSOpenGLGetVersion ();
 12073   return 0;
 12075 _ACEOF
 12076 rm -f conftest.$ac_objext conftest$ac_exeext
 12077 if { (ac_try="$ac_link"
 12078 case "(($ac_try" in
 12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12080   *) ac_try_echo=$ac_try;;
 12081 esac
 12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12083   (eval "$ac_link") 2>conftest.er1
 12084   ac_status=$?
 12085   grep -v '^ *+' conftest.er1 >conftest.err
 12086   rm -f conftest.er1
 12087   cat conftest.err >&5
 12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12089   (exit $ac_status); } && {
 12090 	 test -z "$ac_c_werror_flag" ||
 12091 	 test ! -s conftest.err
 12092        } && test -s conftest$ac_exeext &&
 12093        $as_test_x conftest$ac_exeext; then
 12094   ac_cv_func_NSOpenGLGetVersion=yes
 12095 else
 12096   echo "$as_me: failed program was:" >&5
 12097 sed 's/^/| /' conftest.$ac_ext >&5
 12099 	ac_cv_func_NSOpenGLGetVersion=no
 12100 fi
 12102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12103       conftest$ac_exeext conftest.$ac_ext
 12104 fi
 12105 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
 12106 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
 12107 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
 12109          HAVE_NSGL='yes'
 12110          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
 12112 cat >>confdefs.h <<\_ACEOF
 12113 #define HAVE_NSGL 1
 12114 _ACEOF
 12116 fi
 12118       if test "x$HAVE_GTK_X11" = "xyes"; then
 12119          LIBS="$LIBS -L/usr/X11/lib -lGL"
 12120       fi
 12121    fi
 12123   { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
 12124 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
 12125 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
 12126   echo $ECHO_N "(cached) $ECHO_C" >&6
 12127 else
 12128   cat >conftest.$ac_ext <<_ACEOF
 12129 /* confdefs.h.  */
 12130 _ACEOF
 12131 cat confdefs.h >>conftest.$ac_ext
 12132 cat >>conftest.$ac_ext <<_ACEOF
 12133 /* end confdefs.h.  */
 12134 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
 12135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12136 #define glXQueryVersion innocuous_glXQueryVersion
 12138 /* System header to define __stub macros and hopefully few prototypes,
 12139     which can conflict with char glXQueryVersion (); below.
 12140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12141     <limits.h> exists even on freestanding compilers.  */
 12143 #ifdef __STDC__
 12144 # include <limits.h>
 12145 #else
 12146 # include <assert.h>
 12147 #endif
 12149 #undef glXQueryVersion
 12151 /* Override any GCC internal prototype to avoid an error.
 12152    Use char because int might match the return type of a GCC
 12153    builtin and then its argument prototype would still apply.  */
 12154 #ifdef __cplusplus
 12155 extern "C"
 12156 #endif
 12157 char glXQueryVersion ();
 12158 /* The GNU C library defines this for functions which it implements
 12159     to always fail with ENOSYS.  Some functions are actually named
 12160     something starting with __ and the normal name is an alias.  */
 12161 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
 12162 choke me
 12163 #endif
 12165 int
 12166 main ()
 12168 return glXQueryVersion ();
 12170   return 0;
 12172 _ACEOF
 12173 rm -f conftest.$ac_objext conftest$ac_exeext
 12174 if { (ac_try="$ac_link"
 12175 case "(($ac_try" in
 12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12177   *) ac_try_echo=$ac_try;;
 12178 esac
 12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12180   (eval "$ac_link") 2>conftest.er1
 12181   ac_status=$?
 12182   grep -v '^ *+' conftest.er1 >conftest.err
 12183   rm -f conftest.er1
 12184   cat conftest.err >&5
 12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12186   (exit $ac_status); } && {
 12187 	 test -z "$ac_c_werror_flag" ||
 12188 	 test ! -s conftest.err
 12189        } && test -s conftest$ac_exeext &&
 12190        $as_test_x conftest$ac_exeext; then
 12191   ac_cv_func_glXQueryVersion=yes
 12192 else
 12193   echo "$as_me: failed program was:" >&5
 12194 sed 's/^/| /' conftest.$ac_ext >&5
 12196 	ac_cv_func_glXQueryVersion=no
 12197 fi
 12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12200       conftest$ac_exeext conftest.$ac_ext
 12201 fi
 12202 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
 12203 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
 12204 if test $ac_cv_func_glXQueryVersion = yes; then
 12206      HAVE_GLX='yes'
 12207      VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
 12209 cat >>confdefs.h <<\_ACEOF
 12210 #define HAVE_GLX 1
 12211 _ACEOF
 12213 fi
 12215   { echo "$as_me:$LINENO: checking for eglGetDisplay in -lEGL" >&5
 12216 echo $ECHO_N "checking for eglGetDisplay in -lEGL... $ECHO_C" >&6; }
 12217 if test "${ac_cv_lib_EGL_eglGetDisplay+set}" = set; then
 12218   echo $ECHO_N "(cached) $ECHO_C" >&6
 12219 else
 12220   ac_check_lib_save_LIBS=$LIBS
 12221 LIBS="-lEGL  $LIBS"
 12222 cat >conftest.$ac_ext <<_ACEOF
 12223 /* confdefs.h.  */
 12224 _ACEOF
 12225 cat confdefs.h >>conftest.$ac_ext
 12226 cat >>conftest.$ac_ext <<_ACEOF
 12227 /* end confdefs.h.  */
 12229 /* Override any GCC internal prototype to avoid an error.
 12230    Use char because int might match the return type of a GCC
 12231    builtin and then its argument prototype would still apply.  */
 12232 #ifdef __cplusplus
 12233 extern "C"
 12234 #endif
 12235 char eglGetDisplay ();
 12236 int
 12237 main ()
 12239 return eglGetDisplay ();
 12241   return 0;
 12243 _ACEOF
 12244 rm -f conftest.$ac_objext conftest$ac_exeext
 12245 if { (ac_try="$ac_link"
 12246 case "(($ac_try" in
 12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12248   *) ac_try_echo=$ac_try;;
 12249 esac
 12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12251   (eval "$ac_link") 2>conftest.er1
 12252   ac_status=$?
 12253   grep -v '^ *+' conftest.er1 >conftest.err
 12254   rm -f conftest.er1
 12255   cat conftest.err >&5
 12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12257   (exit $ac_status); } && {
 12258 	 test -z "$ac_c_werror_flag" ||
 12259 	 test ! -s conftest.err
 12260        } && test -s conftest$ac_exeext &&
 12261        $as_test_x conftest$ac_exeext; then
 12262   ac_cv_lib_EGL_eglGetDisplay=yes
 12263 else
 12264   echo "$as_me: failed program was:" >&5
 12265 sed 's/^/| /' conftest.$ac_ext >&5
 12267 	ac_cv_lib_EGL_eglGetDisplay=no
 12268 fi
 12270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12271       conftest$ac_exeext conftest.$ac_ext
 12272 LIBS=$ac_check_lib_save_LIBS
 12273 fi
 12274 { echo "$as_me:$LINENO: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
 12275 echo "${ECHO_T}$ac_cv_lib_EGL_eglGetDisplay" >&6; }
 12276 if test $ac_cv_lib_EGL_eglGetDisplay = yes; then
 12278      LIBS="-lEGL $LIBS"
 12279      HAVE_EGL='yes'
 12280      VIDEO_DRIVERS="$VIDEO_DRIVERS egl"
 12281 fi
 12284 fi
 12287 if test "x$HAVE_GLES2" = "xyes"; then
 12289 cat >>confdefs.h <<\_ACEOF
 12290 #define HAVE_GLES2 1
 12291 _ACEOF
 12293 fi
 12297 if test "x$HAVE_OSMESA" = "xyes"; then
 12298   VIDEO_OSMESA_TRUE=
 12299   VIDEO_OSMESA_FALSE='#'
 12300 else
 12301   VIDEO_OSMESA_TRUE='#'
 12302   VIDEO_OSMESA_FALSE=
 12303 fi
 12307 if test "x$HAVE_GLX" = "xyes"; then
 12308   VIDEO_GLX_TRUE=
 12309   VIDEO_GLX_FALSE='#'
 12310 else
 12311   VIDEO_GLX_TRUE='#'
 12312   VIDEO_GLX_FALSE=
 12313 fi
 12317 if test "x$HAVE_NSGL" = "xyes"; then
 12318   VIDEO_NSGL_TRUE=
 12319   VIDEO_NSGL_FALSE='#'
 12320 else
 12321   VIDEO_NSGL_TRUE='#'
 12322   VIDEO_NSGL_FALSE=
 12323 fi
 12327 if test "x$HAVE_EGL" = "xyes"; then
 12328   VIDEO_EGL_TRUE=
 12329   VIDEO_EGL_FALSE='#'
 12330 else
 12331   VIDEO_EGL_TRUE='#'
 12332   VIDEO_EGL_FALSE=
 12333 fi
 12336 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
 12337 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
 12338 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
 12339   echo $ECHO_N "(cached) $ECHO_C" >&6
 12340 else
 12341   cat >conftest.$ac_ext <<_ACEOF
 12342 /* confdefs.h.  */
 12343 _ACEOF
 12344 cat confdefs.h >>conftest.$ac_ext
 12345 cat >>conftest.$ac_ext <<_ACEOF
 12346 /* end confdefs.h.  */
 12347 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
 12348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12349 #define glGenFramebuffers innocuous_glGenFramebuffers
 12351 /* System header to define __stub macros and hopefully few prototypes,
 12352     which can conflict with char glGenFramebuffers (); below.
 12353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12354     <limits.h> exists even on freestanding compilers.  */
 12356 #ifdef __STDC__
 12357 # include <limits.h>
 12358 #else
 12359 # include <assert.h>
 12360 #endif
 12362 #undef glGenFramebuffers
 12364 /* Override any GCC internal prototype to avoid an error.
 12365    Use char because int might match the return type of a GCC
 12366    builtin and then its argument prototype would still apply.  */
 12367 #ifdef __cplusplus
 12368 extern "C"
 12369 #endif
 12370 char glGenFramebuffers ();
 12371 /* The GNU C library defines this for functions which it implements
 12372     to always fail with ENOSYS.  Some functions are actually named
 12373     something starting with __ and the normal name is an alias.  */
 12374 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
 12375 choke me
 12376 #endif
 12378 int
 12379 main ()
 12381 return glGenFramebuffers ();
 12383   return 0;
 12385 _ACEOF
 12386 rm -f conftest.$ac_objext conftest$ac_exeext
 12387 if { (ac_try="$ac_link"
 12388 case "(($ac_try" in
 12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12390   *) ac_try_echo=$ac_try;;
 12391 esac
 12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12393   (eval "$ac_link") 2>conftest.er1
 12394   ac_status=$?
 12395   grep -v '^ *+' conftest.er1 >conftest.err
 12396   rm -f conftest.er1
 12397   cat conftest.err >&5
 12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12399   (exit $ac_status); } && {
 12400 	 test -z "$ac_c_werror_flag" ||
 12401 	 test ! -s conftest.err
 12402        } && test -s conftest$ac_exeext &&
 12403        $as_test_x conftest$ac_exeext; then
 12404   ac_cv_func_glGenFramebuffers=yes
 12405 else
 12406   echo "$as_me: failed program was:" >&5
 12407 sed 's/^/| /' conftest.$ac_ext >&5
 12409 	ac_cv_func_glGenFramebuffers=no
 12410 fi
 12412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12413       conftest$ac_exeext conftest.$ac_ext
 12414 fi
 12415 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
 12416 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
 12417 if test $ac_cv_func_glGenFramebuffers = yes; then
 12419 cat >>confdefs.h <<\_ACEOF
 12420 #define HAVE_OPENGL_FBO 1
 12421 _ACEOF
 12423 fi
 12425 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
 12426 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
 12427 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
 12428   echo $ECHO_N "(cached) $ECHO_C" >&6
 12429 else
 12430   cat >conftest.$ac_ext <<_ACEOF
 12431 /* confdefs.h.  */
 12432 _ACEOF
 12433 cat confdefs.h >>conftest.$ac_ext
 12434 cat >>conftest.$ac_ext <<_ACEOF
 12435 /* end confdefs.h.  */
 12436 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
 12437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12438 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
 12440 /* System header to define __stub macros and hopefully few prototypes,
 12441     which can conflict with char glGenFramebuffersEXT (); below.
 12442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12443     <limits.h> exists even on freestanding compilers.  */
 12445 #ifdef __STDC__
 12446 # include <limits.h>
 12447 #else
 12448 # include <assert.h>
 12449 #endif
 12451 #undef glGenFramebuffersEXT
 12453 /* Override any GCC internal prototype to avoid an error.
 12454    Use char because int might match the return type of a GCC
 12455    builtin and then its argument prototype would still apply.  */
 12456 #ifdef __cplusplus
 12457 extern "C"
 12458 #endif
 12459 char glGenFramebuffersEXT ();
 12460 /* The GNU C library defines this for functions which it implements
 12461     to always fail with ENOSYS.  Some functions are actually named
 12462     something starting with __ and the normal name is an alias.  */
 12463 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
 12464 choke me
 12465 #endif
 12467 int
 12468 main ()
 12470 return glGenFramebuffersEXT ();
 12472   return 0;
 12474 _ACEOF
 12475 rm -f conftest.$ac_objext conftest$ac_exeext
 12476 if { (ac_try="$ac_link"
 12477 case "(($ac_try" in
 12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12479   *) ac_try_echo=$ac_try;;
 12480 esac
 12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12482   (eval "$ac_link") 2>conftest.er1
 12483   ac_status=$?
 12484   grep -v '^ *+' conftest.er1 >conftest.err
 12485   rm -f conftest.er1
 12486   cat conftest.err >&5
 12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12488   (exit $ac_status); } && {
 12489 	 test -z "$ac_c_werror_flag" ||
 12490 	 test ! -s conftest.err
 12491        } && test -s conftest$ac_exeext &&
 12492        $as_test_x conftest$ac_exeext; then
 12493   ac_cv_func_glGenFramebuffersEXT=yes
 12494 else
 12495   echo "$as_me: failed program was:" >&5
 12496 sed 's/^/| /' conftest.$ac_ext >&5
 12498 	ac_cv_func_glGenFramebuffersEXT=no
 12499 fi
 12501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12502       conftest$ac_exeext conftest.$ac_ext
 12503 fi
 12504 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 12505 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
 12506 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
 12508 cat >>confdefs.h <<\_ACEOF
 12509 #define HAVE_OPENGL_FBO_EXT 1
 12510 _ACEOF
 12512 fi
 12514 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
 12515 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
 12516 if test "${ac_cv_func_glCreateShader+set}" = set; then
 12517   echo $ECHO_N "(cached) $ECHO_C" >&6
 12518 else
 12519   cat >conftest.$ac_ext <<_ACEOF
 12520 /* confdefs.h.  */
 12521 _ACEOF
 12522 cat confdefs.h >>conftest.$ac_ext
 12523 cat >>conftest.$ac_ext <<_ACEOF
 12524 /* end confdefs.h.  */
 12525 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 12526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12527 #define glCreateShader innocuous_glCreateShader
 12529 /* System header to define __stub macros and hopefully few prototypes,
 12530     which can conflict with char glCreateShader (); below.
 12531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12532     <limits.h> exists even on freestanding compilers.  */
 12534 #ifdef __STDC__
 12535 # include <limits.h>
 12536 #else
 12537 # include <assert.h>
 12538 #endif
 12540 #undef glCreateShader
 12542 /* Override any GCC internal prototype to avoid an error.
 12543    Use char because int might match the return type of a GCC
 12544    builtin and then its argument prototype would still apply.  */
 12545 #ifdef __cplusplus
 12546 extern "C"
 12547 #endif
 12548 char glCreateShader ();
 12549 /* The GNU C library defines this for functions which it implements
 12550     to always fail with ENOSYS.  Some functions are actually named
 12551     something starting with __ and the normal name is an alias.  */
 12552 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 12553 choke me
 12554 #endif
 12556 int
 12557 main ()
 12559 return glCreateShader ();
 12561   return 0;
 12563 _ACEOF
 12564 rm -f conftest.$ac_objext conftest$ac_exeext
 12565 if { (ac_try="$ac_link"
 12566 case "(($ac_try" in
 12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12568   *) ac_try_echo=$ac_try;;
 12569 esac
 12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12571   (eval "$ac_link") 2>conftest.er1
 12572   ac_status=$?
 12573   grep -v '^ *+' conftest.er1 >conftest.err
 12574   rm -f conftest.er1
 12575   cat conftest.err >&5
 12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12577   (exit $ac_status); } && {
 12578 	 test -z "$ac_c_werror_flag" ||
 12579 	 test ! -s conftest.err
 12580        } && test -s conftest$ac_exeext &&
 12581        $as_test_x conftest$ac_exeext; then
 12582   ac_cv_func_glCreateShader=yes
 12583 else
 12584   echo "$as_me: failed program was:" >&5
 12585 sed 's/^/| /' conftest.$ac_ext >&5
 12587 	ac_cv_func_glCreateShader=no
 12588 fi
 12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12591       conftest$ac_exeext conftest.$ac_ext
 12592 fi
 12593 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 12594 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
 12595 if test $ac_cv_func_glCreateShader = yes; then
 12597 cat >>confdefs.h <<\_ACEOF
 12598 #define HAVE_OPENGL_SHADER 1
 12599 _ACEOF
 12601 fi
 12603 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 12604 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
 12605 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 12606   echo $ECHO_N "(cached) $ECHO_C" >&6
 12607 else
 12608   cat >conftest.$ac_ext <<_ACEOF
 12609 /* confdefs.h.  */
 12610 _ACEOF
 12611 cat confdefs.h >>conftest.$ac_ext
 12612 cat >>conftest.$ac_ext <<_ACEOF
 12613 /* end confdefs.h.  */
 12614 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 12615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12616 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 12618 /* System header to define __stub macros and hopefully few prototypes,
 12619     which can conflict with char glCreateShaderObjectARB (); below.
 12620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12621     <limits.h> exists even on freestanding compilers.  */
 12623 #ifdef __STDC__
 12624 # include <limits.h>
 12625 #else
 12626 # include <assert.h>
 12627 #endif
 12629 #undef glCreateShaderObjectARB
 12631 /* Override any GCC internal prototype to avoid an error.
 12632    Use char because int might match the return type of a GCC
 12633    builtin and then its argument prototype would still apply.  */
 12634 #ifdef __cplusplus
 12635 extern "C"
 12636 #endif
 12637 char glCreateShaderObjectARB ();
 12638 /* The GNU C library defines this for functions which it implements
 12639     to always fail with ENOSYS.  Some functions are actually named
 12640     something starting with __ and the normal name is an alias.  */
 12641 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 12642 choke me
 12643 #endif
 12645 int
 12646 main ()
 12648 return glCreateShaderObjectARB ();
 12650   return 0;
 12652 _ACEOF
 12653 rm -f conftest.$ac_objext conftest$ac_exeext
 12654 if { (ac_try="$ac_link"
 12655 case "(($ac_try" in
 12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12657   *) ac_try_echo=$ac_try;;
 12658 esac
 12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12660   (eval "$ac_link") 2>conftest.er1
 12661   ac_status=$?
 12662   grep -v '^ *+' conftest.er1 >conftest.err
 12663   rm -f conftest.er1
 12664   cat conftest.err >&5
 12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12666   (exit $ac_status); } && {
 12667 	 test -z "$ac_c_werror_flag" ||
 12668 	 test ! -s conftest.err
 12669        } && test -s conftest$ac_exeext &&
 12670        $as_test_x conftest$ac_exeext; then
 12671   ac_cv_func_glCreateShaderObjectARB=yes
 12672 else
 12673   echo "$as_me: failed program was:" >&5
 12674 sed 's/^/| /' conftest.$ac_ext >&5
 12676 	ac_cv_func_glCreateShaderObjectARB=no
 12677 fi
 12679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12680       conftest$ac_exeext conftest.$ac_ext
 12681 fi
 12682 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 12683 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 12684 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 12686 cat >>confdefs.h <<\_ACEOF
 12687 #define HAVE_OPENGL_SHADER_ARB 1
 12688 _ACEOF
 12690 fi
 12692 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 12693 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 12694 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 12695   echo $ECHO_N "(cached) $ECHO_C" >&6
 12696 else
 12697   cat >conftest.$ac_ext <<_ACEOF
 12698 /* confdefs.h.  */
 12699 _ACEOF
 12700 cat confdefs.h >>conftest.$ac_ext
 12701 cat >>conftest.$ac_ext <<_ACEOF
 12702 /* end confdefs.h.  */
 12703 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 12704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12705 #define glClampColorARB innocuous_glClampColorARB
 12707 /* System header to define __stub macros and hopefully few prototypes,
 12708     which can conflict with char glClampColorARB (); below.
 12709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12710     <limits.h> exists even on freestanding compilers.  */
 12712 #ifdef __STDC__
 12713 # include <limits.h>
 12714 #else
 12715 # include <assert.h>
 12716 #endif
 12718 #undef glClampColorARB
 12720 /* Override any GCC internal prototype to avoid an error.
 12721    Use char because int might match the return type of a GCC
 12722    builtin and then its argument prototype would still apply.  */
 12723 #ifdef __cplusplus
 12724 extern "C"
 12725 #endif
 12726 char glClampColorARB ();
 12727 /* The GNU C library defines this for functions which it implements
 12728     to always fail with ENOSYS.  Some functions are actually named
 12729     something starting with __ and the normal name is an alias.  */
 12730 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 12731 choke me
 12732 #endif
 12734 int
 12735 main ()
 12737 return glClampColorARB ();
 12739   return 0;
 12741 _ACEOF
 12742 rm -f conftest.$ac_objext conftest$ac_exeext
 12743 if { (ac_try="$ac_link"
 12744 case "(($ac_try" in
 12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12746   *) ac_try_echo=$ac_try;;
 12747 esac
 12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12749   (eval "$ac_link") 2>conftest.er1
 12750   ac_status=$?
 12751   grep -v '^ *+' conftest.er1 >conftest.err
 12752   rm -f conftest.er1
 12753   cat conftest.err >&5
 12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12755   (exit $ac_status); } && {
 12756 	 test -z "$ac_c_werror_flag" ||
 12757 	 test ! -s conftest.err
 12758        } && test -s conftest$ac_exeext &&
 12759        $as_test_x conftest$ac_exeext; then
 12760   ac_cv_func_glClampColorARB=yes
 12761 else
 12762   echo "$as_me: failed program was:" >&5
 12763 sed 's/^/| /' conftest.$ac_ext >&5
 12765 	ac_cv_func_glClampColorARB=no
 12766 fi
 12768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12769       conftest$ac_exeext conftest.$ac_ext
 12770 fi
 12771 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 12772 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 12773 if test $ac_cv_func_glClampColorARB = yes; then
 12775 cat >>confdefs.h <<\_ACEOF
 12776 #define HAVE_OPENGL_CLAMP_COLOR 1
 12777 _ACEOF
 12779 fi
 12781 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
 12782 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
 12783 if test "${ac_cv_func_glClearDepthf+set}" = set; then
 12784   echo $ECHO_N "(cached) $ECHO_C" >&6
 12785 else
 12786   cat >conftest.$ac_ext <<_ACEOF
 12787 /* confdefs.h.  */
 12788 _ACEOF
 12789 cat confdefs.h >>conftest.$ac_ext
 12790 cat >>conftest.$ac_ext <<_ACEOF
 12791 /* end confdefs.h.  */
 12792 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
 12793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12794 #define glClearDepthf innocuous_glClearDepthf
 12796 /* System header to define __stub macros and hopefully few prototypes,
 12797     which can conflict with char glClearDepthf (); below.
 12798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12799     <limits.h> exists even on freestanding compilers.  */
 12801 #ifdef __STDC__
 12802 # include <limits.h>
 12803 #else
 12804 # include <assert.h>
 12805 #endif
 12807 #undef glClearDepthf
 12809 /* Override any GCC internal prototype to avoid an error.
 12810    Use char because int might match the return type of a GCC
 12811    builtin and then its argument prototype would still apply.  */
 12812 #ifdef __cplusplus
 12813 extern "C"
 12814 #endif
 12815 char glClearDepthf ();
 12816 /* The GNU C library defines this for functions which it implements
 12817     to always fail with ENOSYS.  Some functions are actually named
 12818     something starting with __ and the normal name is an alias.  */
 12819 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
 12820 choke me
 12821 #endif
 12823 int
 12824 main ()
 12826 return glClearDepthf ();
 12828   return 0;
 12830 _ACEOF
 12831 rm -f conftest.$ac_objext conftest$ac_exeext
 12832 if { (ac_try="$ac_link"
 12833 case "(($ac_try" in
 12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12835   *) ac_try_echo=$ac_try;;
 12836 esac
 12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12838   (eval "$ac_link") 2>conftest.er1
 12839   ac_status=$?
 12840   grep -v '^ *+' conftest.er1 >conftest.err
 12841   rm -f conftest.er1
 12842   cat conftest.err >&5
 12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12844   (exit $ac_status); } && {
 12845 	 test -z "$ac_c_werror_flag" ||
 12846 	 test ! -s conftest.err
 12847        } && test -s conftest$ac_exeext &&
 12848        $as_test_x conftest$ac_exeext; then
 12849   ac_cv_func_glClearDepthf=yes
 12850 else
 12851   echo "$as_me: failed program was:" >&5
 12852 sed 's/^/| /' conftest.$ac_ext >&5
 12854 	ac_cv_func_glClearDepthf=no
 12855 fi
 12857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12858       conftest$ac_exeext conftest.$ac_ext
 12859 fi
 12860 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
 12861 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
 12862 if test $ac_cv_func_glClearDepthf = yes; then
 12864 cat >>confdefs.h <<\_ACEOF
 12865 #define HAVE_OPENGL_CLEAR_DEPTHF 1
 12866 _ACEOF
 12868 fi
 12870 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
 12871 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
 12872 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
 12873   echo $ECHO_N "(cached) $ECHO_C" >&6
 12874 else
 12875   cat >conftest.$ac_ext <<_ACEOF
 12876 /* confdefs.h.  */
 12877 _ACEOF
 12878 cat confdefs.h >>conftest.$ac_ext
 12879 cat >>conftest.$ac_ext <<_ACEOF
 12880 /* end confdefs.h.  */
 12881 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
 12882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12883 #define glAreTexturesResident innocuous_glAreTexturesResident
 12885 /* System header to define __stub macros and hopefully few prototypes,
 12886     which can conflict with char glAreTexturesResident (); below.
 12887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12888     <limits.h> exists even on freestanding compilers.  */
 12890 #ifdef __STDC__
 12891 # include <limits.h>
 12892 #else
 12893 # include <assert.h>
 12894 #endif
 12896 #undef glAreTexturesResident
 12898 /* Override any GCC internal prototype to avoid an error.
 12899    Use char because int might match the return type of a GCC
 12900    builtin and then its argument prototype would still apply.  */
 12901 #ifdef __cplusplus
 12902 extern "C"
 12903 #endif
 12904 char glAreTexturesResident ();
 12905 /* The GNU C library defines this for functions which it implements
 12906     to always fail with ENOSYS.  Some functions are actually named
 12907     something starting with __ and the normal name is an alias.  */
 12908 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
 12909 choke me
 12910 #endif
 12912 int
 12913 main ()
 12915 return glAreTexturesResident ();
 12917   return 0;
 12919 _ACEOF
 12920 rm -f conftest.$ac_objext conftest$ac_exeext
 12921 if { (ac_try="$ac_link"
 12922 case "(($ac_try" in
 12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12924   *) ac_try_echo=$ac_try;;
 12925 esac
 12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12927   (eval "$ac_link") 2>conftest.er1
 12928   ac_status=$?
 12929   grep -v '^ *+' conftest.er1 >conftest.err
 12930   rm -f conftest.er1
 12931   cat conftest.err >&5
 12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12933   (exit $ac_status); } && {
 12934 	 test -z "$ac_c_werror_flag" ||
 12935 	 test ! -s conftest.err
 12936        } && test -s conftest$ac_exeext &&
 12937        $as_test_x conftest$ac_exeext; then
 12938   ac_cv_func_glAreTexturesResident=yes
 12939 else
 12940   echo "$as_me: failed program was:" >&5
 12941 sed 's/^/| /' conftest.$ac_ext >&5
 12943 	ac_cv_func_glAreTexturesResident=no
 12944 fi
 12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12947       conftest$ac_exeext conftest.$ac_ext
 12948 fi
 12949 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
 12950 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
 12951 if test $ac_cv_func_glAreTexturesResident = yes; then
 12953 cat >>confdefs.h <<\_ACEOF
 12954 #define HAVE_OPENGL_TEX_RESIDENT 1
 12955 _ACEOF
 12957 fi
 12959 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
 12960 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
 12961 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
 12962   echo $ECHO_N "(cached) $ECHO_C" >&6
 12963 else
 12964   cat >conftest.$ac_ext <<_ACEOF
 12965 /* confdefs.h.  */
 12966 _ACEOF
 12967 cat confdefs.h >>conftest.$ac_ext
 12968 cat >>conftest.$ac_ext <<_ACEOF
 12969 /* end confdefs.h.  */
 12970 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
 12971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12972 #define glDrawBuffer innocuous_glDrawBuffer
 12974 /* System header to define __stub macros and hopefully few prototypes,
 12975     which can conflict with char glDrawBuffer (); below.
 12976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12977     <limits.h> exists even on freestanding compilers.  */
 12979 #ifdef __STDC__
 12980 # include <limits.h>
 12981 #else
 12982 # include <assert.h>
 12983 #endif
 12985 #undef glDrawBuffer
 12987 /* Override any GCC internal prototype to avoid an error.
 12988    Use char because int might match the return type of a GCC
 12989    builtin and then its argument prototype would still apply.  */
 12990 #ifdef __cplusplus
 12991 extern "C"
 12992 #endif
 12993 char glDrawBuffer ();
 12994 /* The GNU C library defines this for functions which it implements
 12995     to always fail with ENOSYS.  Some functions are actually named
 12996     something starting with __ and the normal name is an alias.  */
 12997 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
 12998 choke me
 12999 #endif
 13001 int
 13002 main ()
 13004 return glDrawBuffer ();
 13006   return 0;
 13008 _ACEOF
 13009 rm -f conftest.$ac_objext conftest$ac_exeext
 13010 if { (ac_try="$ac_link"
 13011 case "(($ac_try" in
 13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13013   *) ac_try_echo=$ac_try;;
 13014 esac
 13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13016   (eval "$ac_link") 2>conftest.er1
 13017   ac_status=$?
 13018   grep -v '^ *+' conftest.er1 >conftest.err
 13019   rm -f conftest.er1
 13020   cat conftest.err >&5
 13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13022   (exit $ac_status); } && {
 13023 	 test -z "$ac_c_werror_flag" ||
 13024 	 test ! -s conftest.err
 13025        } && test -s conftest$ac_exeext &&
 13026        $as_test_x conftest$ac_exeext; then
 13027   ac_cv_func_glDrawBuffer=yes
 13028 else
 13029   echo "$as_me: failed program was:" >&5
 13030 sed 's/^/| /' conftest.$ac_ext >&5
 13032 	ac_cv_func_glDrawBuffer=no
 13033 fi
 13035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13036       conftest$ac_exeext conftest.$ac_ext
 13037 fi
 13038 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
 13039 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
 13040 if test $ac_cv_func_glDrawBuffer = yes; then
 13042 cat >>confdefs.h <<\_ACEOF
 13043 #define HAVE_OPENGL_DRAW_BUFFER 1
 13044 _ACEOF
 13046 fi
 13048 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
 13049 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
 13050 if test "${ac_cv_func_glTexEnvi+set}" = set; then
 13051   echo $ECHO_N "(cached) $ECHO_C" >&6
 13052 else
 13053   cat >conftest.$ac_ext <<_ACEOF
 13054 /* confdefs.h.  */
 13055 _ACEOF
 13056 cat confdefs.h >>conftest.$ac_ext
 13057 cat >>conftest.$ac_ext <<_ACEOF
 13058 /* end confdefs.h.  */
 13059 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
 13060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 13061 #define glTexEnvi innocuous_glTexEnvi
 13063 /* System header to define __stub macros and hopefully few prototypes,
 13064     which can conflict with char glTexEnvi (); below.
 13065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 13066     <limits.h> exists even on freestanding compilers.  */
 13068 #ifdef __STDC__
 13069 # include <limits.h>
 13070 #else
 13071 # include <assert.h>
 13072 #endif
 13074 #undef glTexEnvi
 13076 /* Override any GCC internal prototype to avoid an error.
 13077    Use char because int might match the return type of a GCC
 13078    builtin and then its argument prototype would still apply.  */
 13079 #ifdef __cplusplus
 13080 extern "C"
 13081 #endif
 13082 char glTexEnvi ();
 13083 /* The GNU C library defines this for functions which it implements
 13084     to always fail with ENOSYS.  Some functions are actually named
 13085     something starting with __ and the normal name is an alias.  */
 13086 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
 13087 choke me
 13088 #endif
 13090 int
 13091 main ()
 13093 return glTexEnvi ();
 13095   return 0;
 13097 _ACEOF
 13098 rm -f conftest.$ac_objext conftest$ac_exeext
 13099 if { (ac_try="$ac_link"
 13100 case "(($ac_try" in
 13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13102   *) ac_try_echo=$ac_try;;
 13103 esac
 13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13105   (eval "$ac_link") 2>conftest.er1
 13106   ac_status=$?
 13107   grep -v '^ *+' conftest.er1 >conftest.err
 13108   rm -f conftest.er1
 13109   cat conftest.err >&5
 13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13111   (exit $ac_status); } && {
 13112 	 test -z "$ac_c_werror_flag" ||
 13113 	 test ! -s conftest.err
 13114        } && test -s conftest$ac_exeext &&
 13115        $as_test_x conftest$ac_exeext; then
 13116   ac_cv_func_glTexEnvi=yes
 13117 else
 13118   echo "$as_me: failed program was:" >&5
 13119 sed 's/^/| /' conftest.$ac_ext >&5
 13121 	ac_cv_func_glTexEnvi=no
 13122 fi
 13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 13125       conftest$ac_exeext conftest.$ac_ext
 13126 fi
 13127 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
 13128 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
 13129 if test $ac_cv_func_glTexEnvi = yes; then
 13131 cat >>confdefs.h <<\_ACEOF
 13132 #define HAVE_OPENGL_FIXEDFUNC 1
 13133 _ACEOF
 13135 fi
 13138 if test "x$enable_translator" != "xno"; then
 13139     case $host_cpu in
 13140         i386|i486|i586|i686|x86_64)
 13141 	    SH4_TRANSLATOR="x86"
 13143 cat >>confdefs.h <<_ACEOF
 13144 #define SH4_TRANSLATOR TARGET_X86
 13145 _ACEOF
 13146 ;;
 13147     esac
 13148 fi
 13151 if test "$SH4_TRANSLATOR" = "x86"; then
 13152   BUILD_SH4X86_TRUE=
 13153   BUILD_SH4X86_FALSE='#'
 13154 else
 13155   BUILD_SH4X86_TRUE='#'
 13156   BUILD_SH4X86_FALSE=
 13157 fi
 13160 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13161   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 13162 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 13163 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13164   echo $ECHO_N "(cached) $ECHO_C" >&6
 13165 fi
 13166 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 13167 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 13168 else
 13169   # Is the header compilable?
 13170 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 13171 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 13172 cat >conftest.$ac_ext <<_ACEOF
 13173 /* confdefs.h.  */
 13174 _ACEOF
 13175 cat confdefs.h >>conftest.$ac_ext
 13176 cat >>conftest.$ac_ext <<_ACEOF
 13177 /* end confdefs.h.  */
 13178 $ac_includes_default
 13179 #include <CoreAudio/CoreAudio.h>
 13180 _ACEOF
 13181 rm -f conftest.$ac_objext
 13182 if { (ac_try="$ac_compile"
 13183 case "(($ac_try" in
 13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13185   *) ac_try_echo=$ac_try;;
 13186 esac
 13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13188   (eval "$ac_compile") 2>conftest.er1
 13189   ac_status=$?
 13190   grep -v '^ *+' conftest.er1 >conftest.err
 13191   rm -f conftest.er1
 13192   cat conftest.err >&5
 13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13194   (exit $ac_status); } && {
 13195 	 test -z "$ac_c_werror_flag" ||
 13196 	 test ! -s conftest.err
 13197        } && test -s conftest.$ac_objext; then
 13198   ac_header_compiler=yes
 13199 else
 13200   echo "$as_me: failed program was:" >&5
 13201 sed 's/^/| /' conftest.$ac_ext >&5
 13203 	ac_header_compiler=no
 13204 fi
 13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13208 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13210 # Is the header present?
 13211 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 13212 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 13213 cat >conftest.$ac_ext <<_ACEOF
 13214 /* confdefs.h.  */
 13215 _ACEOF
 13216 cat confdefs.h >>conftest.$ac_ext
 13217 cat >>conftest.$ac_ext <<_ACEOF
 13218 /* end confdefs.h.  */
 13219 #include <CoreAudio/CoreAudio.h>
 13220 _ACEOF
 13221 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13222 case "(($ac_try" in
 13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13224   *) ac_try_echo=$ac_try;;
 13225 esac
 13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13228   ac_status=$?
 13229   grep -v '^ *+' conftest.er1 >conftest.err
 13230   rm -f conftest.er1
 13231   cat conftest.err >&5
 13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13233   (exit $ac_status); } >/dev/null && {
 13234 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13235 	 test ! -s conftest.err
 13236        }; then
 13237   ac_header_preproc=yes
 13238 else
 13239   echo "$as_me: failed program was:" >&5
 13240 sed 's/^/| /' conftest.$ac_ext >&5
 13242   ac_header_preproc=no
 13243 fi
 13245 rm -f conftest.err conftest.$ac_ext
 13246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13247 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13249 # So?  What about this header?
 13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13251   yes:no: )
 13252     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13253 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13254     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 13255 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 13256     ac_header_preproc=yes
 13257     ;;
 13258   no:yes:* )
 13259     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 13260 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 13261     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 13262 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 13263     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 13264 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 13265     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 13266 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13267     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 13268 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 13269     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 13270 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 13272     ;;
 13273 esac
 13274 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 13275 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 13276 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13277   echo $ECHO_N "(cached) $ECHO_C" >&6
 13278 else
 13279   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 13280 fi
 13281 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 13282 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 13284 fi
 13285 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 13287      HAVE_CORE_AUDIO=yes
 13288      LIBS="$LIBS -framework CoreAudio"
 13289      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 13291 cat >>confdefs.h <<\_ACEOF
 13292 #define HAVE_CORE_AUDIO 1
 13293 _ACEOF
 13295 else
 13296   true
 13297 fi
 13302 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 13303   AUDIO_OSX_TRUE=
 13304   AUDIO_OSX_FALSE='#'
 13305 else
 13306   AUDIO_OSX_TRUE='#'
 13307   AUDIO_OSX_FALSE=
 13308 fi
 13311 if test "x$with_sdl" != "xno"; then
 13313 pkg_failed=no
 13314 { echo "$as_me:$LINENO: checking for SDL" >&5
 13315 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 13317 if test -n "$SDL_CFLAGS"; then
 13318     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 13319  elif test -n "$PKG_CONFIG"; then
 13320     if test -n "$PKG_CONFIG" && \
 13321     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13322   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13323   ac_status=$?
 13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13325   (exit $ac_status); }; then
 13326   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 13327 else
 13328   pkg_failed=yes
 13329 fi
 13330  else
 13331     pkg_failed=untried
 13332 fi
 13333 if test -n "$SDL_LIBS"; then
 13334     pkg_cv_SDL_LIBS="$SDL_LIBS"
 13335  elif test -n "$PKG_CONFIG"; then
 13336     if test -n "$PKG_CONFIG" && \
 13337     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13338   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13339   ac_status=$?
 13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13341   (exit $ac_status); }; then
 13342   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 13343 else
 13344   pkg_failed=yes
 13345 fi
 13346  else
 13347     pkg_failed=untried
 13348 fi
 13352 if test $pkg_failed = yes; then
 13354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13355         _pkg_short_errors_supported=yes
 13356 else
 13357         _pkg_short_errors_supported=no
 13358 fi
 13359         if test $_pkg_short_errors_supported = yes; then
 13360 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 13361         else
 13362 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 13363         fi
 13364 	# Put the nasty error message in config.log where it belongs
 13365 	echo "$SDL_PKG_ERRORS" >&5
 13367 	{ echo "$as_me:$LINENO: result: no" >&5
 13368 echo "${ECHO_T}no" >&6; }
 13370       if test "x$with_sdl" = "xyes"; then
 13371          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13372 See \`config.log' for more details." >&5
 13373 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13374 See \`config.log' for more details." >&2;}
 13375    { (exit 1); exit 1; }; }
 13376       fi
 13378 elif test $pkg_failed = untried; then
 13380       if test "x$with_sdl" = "xyes"; then
 13381          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13382 See \`config.log' for more details." >&5
 13383 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13384 See \`config.log' for more details." >&2;}
 13385    { (exit 1); exit 1; }; }
 13386       fi
 13388 else
 13389 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 13390 	SDL_LIBS=$pkg_cv_SDL_LIBS
 13391         { echo "$as_me:$LINENO: result: yes" >&5
 13392 echo "${ECHO_T}yes" >&6; }
 13394        HAVE_SDL='yes'
 13395        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 13397 cat >>confdefs.h <<\_ACEOF
 13398 #define HAVE_SDL 1
 13399 _ACEOF
 13402 fi
 13403 fi
 13406 if test "$HAVE_SDL" = 'yes' ; then
 13407   AUDIO_SDL_TRUE=
 13408   AUDIO_SDL_FALSE='#'
 13409 else
 13410   AUDIO_SDL_TRUE='#'
 13411   AUDIO_SDL_FALSE=
 13412 fi
 13415 if test "x$with_pulse" != "xno"; then
 13417 pkg_failed=no
 13418 { echo "$as_me:$LINENO: checking for PULSE" >&5
 13419 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 13421 if test -n "$PULSE_CFLAGS"; then
 13422     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 13423  elif test -n "$PKG_CONFIG"; then
 13424     if test -n "$PKG_CONFIG" && \
 13425     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13426   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13427   ac_status=$?
 13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13429   (exit $ac_status); }; then
 13430   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 13431 else
 13432   pkg_failed=yes
 13433 fi
 13434  else
 13435     pkg_failed=untried
 13436 fi
 13437 if test -n "$PULSE_LIBS"; then
 13438     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 13439  elif test -n "$PKG_CONFIG"; then
 13440     if test -n "$PKG_CONFIG" && \
 13441     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13442   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13443   ac_status=$?
 13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13445   (exit $ac_status); }; then
 13446   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 13447 else
 13448   pkg_failed=yes
 13449 fi
 13450  else
 13451     pkg_failed=untried
 13452 fi
 13456 if test $pkg_failed = yes; then
 13458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13459         _pkg_short_errors_supported=yes
 13460 else
 13461         _pkg_short_errors_supported=no
 13462 fi
 13463         if test $_pkg_short_errors_supported = yes; then
 13464 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 13465         else
 13466 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 13467         fi
 13468 	# Put the nasty error message in config.log where it belongs
 13469 	echo "$PULSE_PKG_ERRORS" >&5
 13471 	{ echo "$as_me:$LINENO: result: no" >&5
 13472 echo "${ECHO_T}no" >&6; }
 13474        if test "x$with_pulse" = "xyes"; then
 13475           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13476 See \`config.log' for more details." >&5
 13477 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13478 See \`config.log' for more details." >&2;}
 13479    { (exit 1); exit 1; }; }
 13480        fi
 13482 elif test $pkg_failed = untried; then
 13484        if test "x$with_pulse" = "xyes"; then
 13485           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13486 See \`config.log' for more details." >&5
 13487 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13488 See \`config.log' for more details." >&2;}
 13489    { (exit 1); exit 1; }; }
 13490        fi
 13492 else
 13493 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 13494 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 13495         { echo "$as_me:$LINENO: result: yes" >&5
 13496 echo "${ECHO_T}yes" >&6; }
 13498        HAVE_PULSE='yes'
 13499        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 13501 cat >>confdefs.h <<\_ACEOF
 13502 #define HAVE_PULSE 1
 13503 _ACEOF
 13506 fi
 13507 fi
 13510 if test "$HAVE_PULSE" = 'yes' ; then
 13511   AUDIO_PULSE_TRUE=
 13512   AUDIO_PULSE_FALSE='#'
 13513 else
 13514   AUDIO_PULSE_TRUE='#'
 13515   AUDIO_PULSE_FALSE=
 13516 fi
 13519 if test "x$with_esd" != "xno"; then
 13521 pkg_failed=no
 13522 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 13523 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 13525 if test -n "$ESOUND_CFLAGS"; then
 13526     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 13527  elif test -n "$PKG_CONFIG"; then
 13528     if test -n "$PKG_CONFIG" && \
 13529     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13530   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13531   ac_status=$?
 13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13533   (exit $ac_status); }; then
 13534   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 13535 else
 13536   pkg_failed=yes
 13537 fi
 13538  else
 13539     pkg_failed=untried
 13540 fi
 13541 if test -n "$ESOUND_LIBS"; then
 13542     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 13543  elif test -n "$PKG_CONFIG"; then
 13544     if test -n "$PKG_CONFIG" && \
 13545     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13546   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13547   ac_status=$?
 13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13549   (exit $ac_status); }; then
 13550   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 13551 else
 13552   pkg_failed=yes
 13553 fi
 13554  else
 13555     pkg_failed=untried
 13556 fi
 13560 if test $pkg_failed = yes; then
 13562 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13563         _pkg_short_errors_supported=yes
 13564 else
 13565         _pkg_short_errors_supported=no
 13566 fi
 13567         if test $_pkg_short_errors_supported = yes; then
 13568 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 13569         else
 13570 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 13571         fi
 13572 	# Put the nasty error message in config.log where it belongs
 13573 	echo "$ESOUND_PKG_ERRORS" >&5
 13575 	{ echo "$as_me:$LINENO: result: no" >&5
 13576 echo "${ECHO_T}no" >&6; }
 13578        if test "x$with_esd" = "xyes"; then
 13579           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13580 See \`config.log' for more details." >&5
 13581 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13582 See \`config.log' for more details." >&2;}
 13583    { (exit 1); exit 1; }; }
 13584        fi
 13586 elif test $pkg_failed = untried; then
 13588        if test "x$with_esd" = "xyes"; then
 13589           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13590 See \`config.log' for more details." >&5
 13591 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13592 See \`config.log' for more details." >&2;}
 13593    { (exit 1); exit 1; }; }
 13594        fi
 13596 else
 13597 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 13598 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 13599         { echo "$as_me:$LINENO: result: yes" >&5
 13600 echo "${ECHO_T}yes" >&6; }
 13602        HAVE_ESOUND='yes'
 13603        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 13605 cat >>confdefs.h <<\_ACEOF
 13606 #define HAVE_ESOUND 1
 13607 _ACEOF
 13610 fi
 13611 fi
 13614 if test "$HAVE_ESOUND" = 'yes' ; then
 13615   AUDIO_ESOUND_TRUE=
 13616   AUDIO_ESOUND_FALSE='#'
 13617 else
 13618   AUDIO_ESOUND_TRUE='#'
 13619   AUDIO_ESOUND_FALSE=
 13620 fi
 13624 pkg_failed=no
 13625 { echo "$as_me:$LINENO: checking for ALSA" >&5
 13626 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 13628 if test -n "$ALSA_CFLAGS"; then
 13629     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 13630  elif test -n "$PKG_CONFIG"; then
 13631     if test -n "$PKG_CONFIG" && \
 13632     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13633   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13634   ac_status=$?
 13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13636   (exit $ac_status); }; then
 13637   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 13638 else
 13639   pkg_failed=yes
 13640 fi
 13641  else
 13642     pkg_failed=untried
 13643 fi
 13644 if test -n "$ALSA_LIBS"; then
 13645     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 13646  elif test -n "$PKG_CONFIG"; then
 13647     if test -n "$PKG_CONFIG" && \
 13648     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13649   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13650   ac_status=$?
 13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13652   (exit $ac_status); }; then
 13653   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 13654 else
 13655   pkg_failed=yes
 13656 fi
 13657  else
 13658     pkg_failed=untried
 13659 fi
 13663 if test $pkg_failed = yes; then
 13665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13666         _pkg_short_errors_supported=yes
 13667 else
 13668         _pkg_short_errors_supported=no
 13669 fi
 13670         if test $_pkg_short_errors_supported = yes; then
 13671 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 13672         else
 13673 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 13674         fi
 13675 	# Put the nasty error message in config.log where it belongs
 13676 	echo "$ALSA_PKG_ERRORS" >&5
 13678 	{ echo "$as_me:$LINENO: result: no" >&5
 13679 echo "${ECHO_T}no" >&6; }
 13680                 true
 13681 elif test $pkg_failed = untried; then
 13682 	true
 13683 else
 13684 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 13685 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 13686         { echo "$as_me:$LINENO: result: yes" >&5
 13687 echo "${ECHO_T}yes" >&6; }
 13689      HAVE_ALSA='yes'
 13690      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 13692 cat >>confdefs.h <<\_ACEOF
 13693 #define HAVE_ALSA 1
 13694 _ACEOF
 13696 fi
 13699 if test "$HAVE_ALSA" = 'yes' ; then
 13700   AUDIO_ALSA_TRUE=
 13701   AUDIO_ALSA_FALSE='#'
 13702 else
 13703   AUDIO_ALSA_TRUE='#'
 13704   AUDIO_ALSA_FALSE=
 13705 fi
 13709 if test "$ANDROID_BUILD" != "yes"; then
 13710   if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13711   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13712 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13713 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13714   echo $ECHO_N "(cached) $ECHO_C" >&6
 13715 fi
 13716 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13717 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13718 else
 13719   # Is the header compilable?
 13720 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 13721 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 13722 cat >conftest.$ac_ext <<_ACEOF
 13723 /* confdefs.h.  */
 13724 _ACEOF
 13725 cat confdefs.h >>conftest.$ac_ext
 13726 cat >>conftest.$ac_ext <<_ACEOF
 13727 /* end confdefs.h.  */
 13728 $ac_includes_default
 13729 #include <linux/cdrom.h>
 13730 _ACEOF
 13731 rm -f conftest.$ac_objext
 13732 if { (ac_try="$ac_compile"
 13733 case "(($ac_try" in
 13734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13735   *) ac_try_echo=$ac_try;;
 13736 esac
 13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13738   (eval "$ac_compile") 2>conftest.er1
 13739   ac_status=$?
 13740   grep -v '^ *+' conftest.er1 >conftest.err
 13741   rm -f conftest.er1
 13742   cat conftest.err >&5
 13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13744   (exit $ac_status); } && {
 13745 	 test -z "$ac_c_werror_flag" ||
 13746 	 test ! -s conftest.err
 13747        } && test -s conftest.$ac_objext; then
 13748   ac_header_compiler=yes
 13749 else
 13750   echo "$as_me: failed program was:" >&5
 13751 sed 's/^/| /' conftest.$ac_ext >&5
 13753 	ac_header_compiler=no
 13754 fi
 13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13758 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13760 # Is the header present?
 13761 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 13762 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 13763 cat >conftest.$ac_ext <<_ACEOF
 13764 /* confdefs.h.  */
 13765 _ACEOF
 13766 cat confdefs.h >>conftest.$ac_ext
 13767 cat >>conftest.$ac_ext <<_ACEOF
 13768 /* end confdefs.h.  */
 13769 #include <linux/cdrom.h>
 13770 _ACEOF
 13771 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13772 case "(($ac_try" in
 13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13774   *) ac_try_echo=$ac_try;;
 13775 esac
 13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13778   ac_status=$?
 13779   grep -v '^ *+' conftest.er1 >conftest.err
 13780   rm -f conftest.er1
 13781   cat conftest.err >&5
 13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13783   (exit $ac_status); } >/dev/null && {
 13784 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13785 	 test ! -s conftest.err
 13786        }; then
 13787   ac_header_preproc=yes
 13788 else
 13789   echo "$as_me: failed program was:" >&5
 13790 sed 's/^/| /' conftest.$ac_ext >&5
 13792   ac_header_preproc=no
 13793 fi
 13795 rm -f conftest.err conftest.$ac_ext
 13796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13797 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13799 # So?  What about this header?
 13800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13801   yes:no: )
 13802     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13803 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13804     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 13805 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 13806     ac_header_preproc=yes
 13807     ;;
 13808   no:yes:* )
 13809     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 13810 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 13811     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 13812 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 13813     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 13814 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 13815     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 13816 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13817     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 13818 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 13819     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 13820 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 13822     ;;
 13823 esac
 13824 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13825 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13826 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13827   echo $ECHO_N "(cached) $ECHO_C" >&6
 13828 else
 13829   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 13830 fi
 13831 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13832 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13834 fi
 13835 if test $ac_cv_header_linux_cdrom_h = yes; then
 13837      CDROM_DRIVER=linux
 13838           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 13839 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 13840      old_CFLAGS="$CFLAGS"
 13841      CFLAGS="$CFLAGS $STDCFLAG"
 13842      cat >conftest.$ac_ext <<_ACEOF
 13843 /* confdefs.h.  */
 13844 _ACEOF
 13845 cat confdefs.h >>conftest.$ac_ext
 13846 cat >>conftest.$ac_ext <<_ACEOF
 13847 /* end confdefs.h.  */
 13848 #include <linux/cdrom.h>
 13849 int
 13850 main ()
 13854   return 0;
 13856 _ACEOF
 13857 rm -f conftest.$ac_objext
 13858 if { (ac_try="$ac_compile"
 13859 case "(($ac_try" in
 13860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13861   *) ac_try_echo=$ac_try;;
 13862 esac
 13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13864   (eval "$ac_compile") 2>conftest.er1
 13865   ac_status=$?
 13866   grep -v '^ *+' conftest.er1 >conftest.err
 13867   rm -f conftest.er1
 13868   cat conftest.err >&5
 13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13870   (exit $ac_status); } && {
 13871 	 test -z "$ac_c_werror_flag" ||
 13872 	 test ! -s conftest.err
 13873        } && test -s conftest.$ac_objext; then
 13874   { echo "$as_me:$LINENO: result: Yes" >&5
 13875 echo "${ECHO_T}Yes" >&6; }
 13876 else
 13877   echo "$as_me: failed program was:" >&5
 13878 sed 's/^/| /' conftest.$ac_ext >&5
 13881         { echo "$as_me:$LINENO: result: No" >&5
 13882 echo "${ECHO_T}No" >&6; }
 13883         STDCFLAG="-std=gnu99"
 13884 fi
 13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13887      CFLAGS="$old_CFLAGS"
 13889 else
 13890   true
 13891 fi
 13894   if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13895   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13896 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13897 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13898   echo $ECHO_N "(cached) $ECHO_C" >&6
 13899 fi
 13900 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13901 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13902 else
 13903   # Is the header compilable?
 13904 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 13905 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 13906 cat >conftest.$ac_ext <<_ACEOF
 13907 /* confdefs.h.  */
 13908 _ACEOF
 13909 cat confdefs.h >>conftest.$ac_ext
 13910 cat >>conftest.$ac_ext <<_ACEOF
 13911 /* end confdefs.h.  */
 13912 $ac_includes_default
 13913 #include <IOKit/IOKitLib.h>
 13914 _ACEOF
 13915 rm -f conftest.$ac_objext
 13916 if { (ac_try="$ac_compile"
 13917 case "(($ac_try" in
 13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13919   *) ac_try_echo=$ac_try;;
 13920 esac
 13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13922   (eval "$ac_compile") 2>conftest.er1
 13923   ac_status=$?
 13924   grep -v '^ *+' conftest.er1 >conftest.err
 13925   rm -f conftest.er1
 13926   cat conftest.err >&5
 13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13928   (exit $ac_status); } && {
 13929 	 test -z "$ac_c_werror_flag" ||
 13930 	 test ! -s conftest.err
 13931        } && test -s conftest.$ac_objext; then
 13932   ac_header_compiler=yes
 13933 else
 13934   echo "$as_me: failed program was:" >&5
 13935 sed 's/^/| /' conftest.$ac_ext >&5
 13937 	ac_header_compiler=no
 13938 fi
 13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13944 # Is the header present?
 13945 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 13946 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 13947 cat >conftest.$ac_ext <<_ACEOF
 13948 /* confdefs.h.  */
 13949 _ACEOF
 13950 cat confdefs.h >>conftest.$ac_ext
 13951 cat >>conftest.$ac_ext <<_ACEOF
 13952 /* end confdefs.h.  */
 13953 #include <IOKit/IOKitLib.h>
 13954 _ACEOF
 13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13956 case "(($ac_try" in
 13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13958   *) ac_try_echo=$ac_try;;
 13959 esac
 13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13962   ac_status=$?
 13963   grep -v '^ *+' conftest.er1 >conftest.err
 13964   rm -f conftest.er1
 13965   cat conftest.err >&5
 13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13967   (exit $ac_status); } >/dev/null && {
 13968 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13969 	 test ! -s conftest.err
 13970        }; then
 13971   ac_header_preproc=yes
 13972 else
 13973   echo "$as_me: failed program was:" >&5
 13974 sed 's/^/| /' conftest.$ac_ext >&5
 13976   ac_header_preproc=no
 13977 fi
 13979 rm -f conftest.err conftest.$ac_ext
 13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13983 # So?  What about this header?
 13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13985   yes:no: )
 13986     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13987 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13988     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 13989 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 13990     ac_header_preproc=yes
 13991     ;;
 13992   no:yes:* )
 13993     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 13994 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 13995     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 13996 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 13997     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 13998 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 13999     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 14000 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14001     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 14002 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 14003     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 14004 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 14006     ;;
 14007 esac
 14008 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 14009 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 14010 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 14011   echo $ECHO_N "(cached) $ECHO_C" >&6
 14012 else
 14013   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 14014 fi
 14015 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 14016 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 14018 fi
 14019 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 14021        CDROM_DRIVER=osx
 14022        LIBS="$LIBS -framework IOKit"
 14023 else
 14024   true
 14025 fi
 14028 fi
 14031 if test "x$CDROM_DRIVER" = "xlinux"; then
 14032   CDROM_LINUX_TRUE=
 14033   CDROM_LINUX_FALSE='#'
 14034 else
 14035   CDROM_LINUX_TRUE='#'
 14036   CDROM_LINUX_FALSE=
 14037 fi
 14041 if test "x$CDROM_DRIVER" = "xosx"; then
 14042   CDROM_OSX_TRUE=
 14043   CDROM_OSX_FALSE='#'
 14044 else
 14045   CDROM_OSX_TRUE='#'
 14046   CDROM_OSX_FALSE=
 14047 fi
 14051 if test "x$CDROM_DRIVER" = "x"; then
 14052   CDROM_NONE_TRUE=
 14053   CDROM_NONE_FALSE='#'
 14054 else
 14055   CDROM_NONE_TRUE='#'
 14056   CDROM_NONE_FALSE=
 14057 fi
 14059 if test "x$CDROM_DRIVER" = "xlinux"; then
 14061 cat >>confdefs.h <<\_ACEOF
 14062 #define HAVE_LINUX_CDROM 1
 14063 _ACEOF
 14065 fi
 14067 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14068   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 14069 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 14070 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14071   echo $ECHO_N "(cached) $ECHO_C" >&6
 14072 fi
 14073 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 14074 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 14075 else
 14076   # Is the header compilable?
 14077 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 14078 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 14079 cat >conftest.$ac_ext <<_ACEOF
 14080 /* confdefs.h.  */
 14081 _ACEOF
 14082 cat confdefs.h >>conftest.$ac_ext
 14083 cat >>conftest.$ac_ext <<_ACEOF
 14084 /* end confdefs.h.  */
 14085 $ac_includes_default
 14086 #include <linux/joystick.h>
 14087 _ACEOF
 14088 rm -f conftest.$ac_objext
 14089 if { (ac_try="$ac_compile"
 14090 case "(($ac_try" in
 14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14092   *) ac_try_echo=$ac_try;;
 14093 esac
 14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14095   (eval "$ac_compile") 2>conftest.er1
 14096   ac_status=$?
 14097   grep -v '^ *+' conftest.er1 >conftest.err
 14098   rm -f conftest.er1
 14099   cat conftest.err >&5
 14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14101   (exit $ac_status); } && {
 14102 	 test -z "$ac_c_werror_flag" ||
 14103 	 test ! -s conftest.err
 14104        } && test -s conftest.$ac_objext; then
 14105   ac_header_compiler=yes
 14106 else
 14107   echo "$as_me: failed program was:" >&5
 14108 sed 's/^/| /' conftest.$ac_ext >&5
 14110 	ac_header_compiler=no
 14111 fi
 14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14115 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14117 # Is the header present?
 14118 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 14119 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
 14120 cat >conftest.$ac_ext <<_ACEOF
 14121 /* confdefs.h.  */
 14122 _ACEOF
 14123 cat confdefs.h >>conftest.$ac_ext
 14124 cat >>conftest.$ac_ext <<_ACEOF
 14125 /* end confdefs.h.  */
 14126 #include <linux/joystick.h>
 14127 _ACEOF
 14128 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14129 case "(($ac_try" in
 14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14131   *) ac_try_echo=$ac_try;;
 14132 esac
 14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14135   ac_status=$?
 14136   grep -v '^ *+' conftest.er1 >conftest.err
 14137   rm -f conftest.er1
 14138   cat conftest.err >&5
 14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14140   (exit $ac_status); } >/dev/null && {
 14141 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14142 	 test ! -s conftest.err
 14143        }; then
 14144   ac_header_preproc=yes
 14145 else
 14146   echo "$as_me: failed program was:" >&5
 14147 sed 's/^/| /' conftest.$ac_ext >&5
 14149   ac_header_preproc=no
 14150 fi
 14152 rm -f conftest.err conftest.$ac_ext
 14153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14154 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14156 # So?  What about this header?
 14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14158   yes:no: )
 14159     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14160 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14161     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 14162 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 14163     ac_header_preproc=yes
 14164     ;;
 14165   no:yes:* )
 14166     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 14167 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 14168     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 14169 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 14170     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 14171 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 14172     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 14173 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14174     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 14175 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 14176     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 14177 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 14179     ;;
 14180 esac
 14181 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 14182 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 14183 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 14184   echo $ECHO_N "(cached) $ECHO_C" >&6
 14185 else
 14186   ac_cv_header_linux_joystick_h=$ac_header_preproc
 14187 fi
 14188 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 14189 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 14191 fi
 14192 if test $ac_cv_header_linux_joystick_h = yes; then
 14194     HAVE_LINUX_JOYSTICK_H=yes
 14196 cat >>confdefs.h <<\_ACEOF
 14197 #define HAVE_LINUX_JOYSTICK 1
 14198 _ACEOF
 14200     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 14201 else
 14202    echo "Linux Joystick support not found, building without it."
 14203 fi
 14208 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 14209   JOY_LINUX_TRUE=
 14210   JOY_LINUX_FALSE='#'
 14211 else
 14212   JOY_LINUX_TRUE='#'
 14213   JOY_LINUX_FALSE=
 14214 fi
 14217 if test "x$with_lirc" != "xno"; then
 14218     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14219   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14220 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14221 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14222   echo $ECHO_N "(cached) $ECHO_C" >&6
 14223 fi
 14224 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14225 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14226 else
 14227   # Is the header compilable?
 14228 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 14229 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 14230 cat >conftest.$ac_ext <<_ACEOF
 14231 /* confdefs.h.  */
 14232 _ACEOF
 14233 cat confdefs.h >>conftest.$ac_ext
 14234 cat >>conftest.$ac_ext <<_ACEOF
 14235 /* end confdefs.h.  */
 14236 $ac_includes_default
 14237 #include <lirc/lirc_client.h>
 14238 _ACEOF
 14239 rm -f conftest.$ac_objext
 14240 if { (ac_try="$ac_compile"
 14241 case "(($ac_try" in
 14242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14243   *) ac_try_echo=$ac_try;;
 14244 esac
 14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14246   (eval "$ac_compile") 2>conftest.er1
 14247   ac_status=$?
 14248   grep -v '^ *+' conftest.er1 >conftest.err
 14249   rm -f conftest.er1
 14250   cat conftest.err >&5
 14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14252   (exit $ac_status); } && {
 14253 	 test -z "$ac_c_werror_flag" ||
 14254 	 test ! -s conftest.err
 14255        } && test -s conftest.$ac_objext; then
 14256   ac_header_compiler=yes
 14257 else
 14258   echo "$as_me: failed program was:" >&5
 14259 sed 's/^/| /' conftest.$ac_ext >&5
 14261 	ac_header_compiler=no
 14262 fi
 14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14266 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14268 # Is the header present?
 14269 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 14270 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 14271 cat >conftest.$ac_ext <<_ACEOF
 14272 /* confdefs.h.  */
 14273 _ACEOF
 14274 cat confdefs.h >>conftest.$ac_ext
 14275 cat >>conftest.$ac_ext <<_ACEOF
 14276 /* end confdefs.h.  */
 14277 #include <lirc/lirc_client.h>
 14278 _ACEOF
 14279 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14280 case "(($ac_try" in
 14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14282   *) ac_try_echo=$ac_try;;
 14283 esac
 14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14286   ac_status=$?
 14287   grep -v '^ *+' conftest.er1 >conftest.err
 14288   rm -f conftest.er1
 14289   cat conftest.err >&5
 14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14291   (exit $ac_status); } >/dev/null && {
 14292 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14293 	 test ! -s conftest.err
 14294        }; then
 14295   ac_header_preproc=yes
 14296 else
 14297   echo "$as_me: failed program was:" >&5
 14298 sed 's/^/| /' conftest.$ac_ext >&5
 14300   ac_header_preproc=no
 14301 fi
 14303 rm -f conftest.err conftest.$ac_ext
 14304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14305 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14307 # So?  What about this header?
 14308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14309   yes:no: )
 14310     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14311 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14312     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 14313 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 14314     ac_header_preproc=yes
 14315     ;;
 14316   no:yes:* )
 14317     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 14318 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 14319     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 14320 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 14321     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 14322 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 14323     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 14324 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14325     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 14326 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 14327     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 14328 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 14330     ;;
 14331 esac
 14332 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14333 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14334 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14335   echo $ECHO_N "(cached) $ECHO_C" >&6
 14336 else
 14337   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 14338 fi
 14339 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14340 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14342 fi
 14343 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 14345         HAVE_LIRC_CLIENT_H=yes
 14347 cat >>confdefs.h <<\_ACEOF
 14348 #define HAVE_LIRC 1
 14349 _ACEOF
 14351         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 14353 else
 14354    echo "LIRC support not found, building without it."
 14355 fi
 14358 fi
 14361 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 14362   INPUT_LIRC_TRUE=
 14363   INPUT_LIRC_FALSE='#'
 14364 else
 14365   INPUT_LIRC_TRUE='#'
 14366   INPUT_LIRC_FALSE=
 14367 fi
 14370 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 14371 set dummy sh-elf-gcc; ac_word=$2
 14372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14374 if test "${ac_cv_path_SHCC+set}" = set; then
 14375   echo $ECHO_N "(cached) $ECHO_C" >&6
 14376 else
 14377   case $SHCC in
 14378   [\\/]* | ?:[\\/]*)
 14379   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 14380   ;;
 14381   *)
 14382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14383 for as_dir in $PATH
 14384 do
 14385   IFS=$as_save_IFS
 14386   test -z "$as_dir" && as_dir=.
 14387   for ac_exec_ext in '' $ac_executable_extensions; do
 14388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14389     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 14390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14391     break 2
 14392   fi
 14393 done
 14394 done
 14395 IFS=$as_save_IFS
 14397   ;;
 14398 esac
 14399 fi
 14400 SHCC=$ac_cv_path_SHCC
 14401 if test -n "$SHCC"; then
 14402   { echo "$as_me:$LINENO: result: $SHCC" >&5
 14403 echo "${ECHO_T}$SHCC" >&6; }
 14404 else
 14405   { echo "$as_me:$LINENO: result: no" >&5
 14406 echo "${ECHO_T}no" >&6; }
 14407 fi
 14410 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 14411 set dummy sh-elf-ld; ac_word=$2
 14412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14414 if test "${ac_cv_path_SHLD+set}" = set; then
 14415   echo $ECHO_N "(cached) $ECHO_C" >&6
 14416 else
 14417   case $SHLD in
 14418   [\\/]* | ?:[\\/]*)
 14419   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 14420   ;;
 14421   *)
 14422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14423 for as_dir in $PATH
 14424 do
 14425   IFS=$as_save_IFS
 14426   test -z "$as_dir" && as_dir=.
 14427   for ac_exec_ext in '' $ac_executable_extensions; do
 14428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14429     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 14430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14431     break 2
 14432   fi
 14433 done
 14434 done
 14435 IFS=$as_save_IFS
 14437   ;;
 14438 esac
 14439 fi
 14440 SHLD=$ac_cv_path_SHLD
 14441 if test -n "$SHLD"; then
 14442   { echo "$as_me:$LINENO: result: $SHLD" >&5
 14443 echo "${ECHO_T}$SHLD" >&6; }
 14444 else
 14445   { echo "$as_me:$LINENO: result: no" >&5
 14446 echo "${ECHO_T}no" >&6; }
 14447 fi
 14450 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 14451 set dummy sh-elf-objcopy; ac_word=$2
 14452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14454 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 14455   echo $ECHO_N "(cached) $ECHO_C" >&6
 14456 else
 14457   case $SHOBJCOPY in
 14458   [\\/]* | ?:[\\/]*)
 14459   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 14460   ;;
 14461   *)
 14462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14463 for as_dir in $PATH
 14464 do
 14465   IFS=$as_save_IFS
 14466   test -z "$as_dir" && as_dir=.
 14467   for ac_exec_ext in '' $ac_executable_extensions; do
 14468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14469     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14471     break 2
 14472   fi
 14473 done
 14474 done
 14475 IFS=$as_save_IFS
 14477   ;;
 14478 esac
 14479 fi
 14480 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 14481 if test -n "$SHOBJCOPY"; then
 14482   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 14483 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 14484 else
 14485   { echo "$as_me:$LINENO: result: no" >&5
 14486 echo "${ECHO_T}no" >&6; }
 14487 fi
 14490 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 14491 set dummy arm-elf-gcc; ac_word=$2
 14492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14494 if test "${ac_cv_path_ARMCC+set}" = set; then
 14495   echo $ECHO_N "(cached) $ECHO_C" >&6
 14496 else
 14497   case $ARMCC in
 14498   [\\/]* | ?:[\\/]*)
 14499   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 14500   ;;
 14501   *)
 14502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14503 for as_dir in $PATH
 14504 do
 14505   IFS=$as_save_IFS
 14506   test -z "$as_dir" && as_dir=.
 14507   for ac_exec_ext in '' $ac_executable_extensions; do
 14508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14509     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 14510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14511     break 2
 14512   fi
 14513 done
 14514 done
 14515 IFS=$as_save_IFS
 14517   ;;
 14518 esac
 14519 fi
 14520 ARMCC=$ac_cv_path_ARMCC
 14521 if test -n "$ARMCC"; then
 14522   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 14523 echo "${ECHO_T}$ARMCC" >&6; }
 14524 else
 14525   { echo "$as_me:$LINENO: result: no" >&5
 14526 echo "${ECHO_T}no" >&6; }
 14527 fi
 14530 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 14531 set dummy arm-elf-ld; ac_word=$2
 14532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14534 if test "${ac_cv_path_ARMLD+set}" = set; then
 14535   echo $ECHO_N "(cached) $ECHO_C" >&6
 14536 else
 14537   case $ARMLD in
 14538   [\\/]* | ?:[\\/]*)
 14539   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 14540   ;;
 14541   *)
 14542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14543 for as_dir in $PATH
 14544 do
 14545   IFS=$as_save_IFS
 14546   test -z "$as_dir" && as_dir=.
 14547   for ac_exec_ext in '' $ac_executable_extensions; do
 14548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14549     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 14550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14551     break 2
 14552   fi
 14553 done
 14554 done
 14555 IFS=$as_save_IFS
 14557   ;;
 14558 esac
 14559 fi
 14560 ARMLD=$ac_cv_path_ARMLD
 14561 if test -n "$ARMLD"; then
 14562   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 14563 echo "${ECHO_T}$ARMLD" >&6; }
 14564 else
 14565   { echo "$as_me:$LINENO: result: no" >&5
 14566 echo "${ECHO_T}no" >&6; }
 14567 fi
 14570 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 14571 set dummy arm-elf-objcopy; ac_word=$2
 14572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14574 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 14575   echo $ECHO_N "(cached) $ECHO_C" >&6
 14576 else
 14577   case $ARMOBJCOPY in
 14578   [\\/]* | ?:[\\/]*)
 14579   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 14580   ;;
 14581   *)
 14582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14583 for as_dir in $PATH
 14584 do
 14585   IFS=$as_save_IFS
 14586   test -z "$as_dir" && as_dir=.
 14587   for ac_exec_ext in '' $ac_executable_extensions; do
 14588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14589     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14591     break 2
 14592   fi
 14593 done
 14594 done
 14595 IFS=$as_save_IFS
 14597   ;;
 14598 esac
 14599 fi
 14600 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 14601 if test -n "$ARMOBJCOPY"; then
 14602   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 14603 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 14604 else
 14605   { echo "$as_me:$LINENO: result: no" >&5
 14606 echo "${ECHO_T}no" >&6; }
 14607 fi
 14611 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 14612   BUILD_SH="no"
 14613   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 14614 else
 14615   BUILD_SH="yes"
 14616 fi
 14617 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 14618   BUILD_ARM="no"
 14619   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 14620 else
 14621   BUILD_ARM="yes"
 14622 fi
 14625 if test "$BUILD_SH" = "yes"; then
 14626   BUILD_SYSTEST_TRUE=
 14627   BUILD_SYSTEST_FALSE='#'
 14628 else
 14629   BUILD_SYSTEST_TRUE='#'
 14630   BUILD_SYSTEST_FALSE=
 14631 fi
 14635 if test "$BUILD_ARM" = "yes"; then
 14636   BUILD_ARMTEST_TRUE=
 14637   BUILD_ARMTEST_FALSE='#'
 14638 else
 14639   BUILD_ARMTEST_TRUE='#'
 14640   BUILD_ARMTEST_FALSE=
 14641 fi
 14644 CFLAGS="$CFLAGS $STDCFLAG"
 14646 GETTEXT_PACKAGE=lxdream
 14647 LXDREAM_LIBS="$LIBS"
 14648 LIBS=""
 14652 cat >>confdefs.h <<_ACEOF
 14653 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 14654 _ACEOF
 14657 ALL_LINGUAS="de es it nl pt_BR"
 14660 for ac_header in locale.h
 14661 do
 14662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 14663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14667   echo $ECHO_N "(cached) $ECHO_C" >&6
 14668 fi
 14669 ac_res=`eval echo '${'$as_ac_Header'}'`
 14670 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14671 echo "${ECHO_T}$ac_res" >&6; }
 14672 else
 14673   # Is the header compilable?
 14674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 14675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 14676 cat >conftest.$ac_ext <<_ACEOF
 14677 /* confdefs.h.  */
 14678 _ACEOF
 14679 cat confdefs.h >>conftest.$ac_ext
 14680 cat >>conftest.$ac_ext <<_ACEOF
 14681 /* end confdefs.h.  */
 14682 $ac_includes_default
 14683 #include <$ac_header>
 14684 _ACEOF
 14685 rm -f conftest.$ac_objext
 14686 if { (ac_try="$ac_compile"
 14687 case "(($ac_try" in
 14688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14689   *) ac_try_echo=$ac_try;;
 14690 esac
 14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14692   (eval "$ac_compile") 2>conftest.er1
 14693   ac_status=$?
 14694   grep -v '^ *+' conftest.er1 >conftest.err
 14695   rm -f conftest.er1
 14696   cat conftest.err >&5
 14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14698   (exit $ac_status); } && {
 14699 	 test -z "$ac_c_werror_flag" ||
 14700 	 test ! -s conftest.err
 14701        } && test -s conftest.$ac_objext; then
 14702   ac_header_compiler=yes
 14703 else
 14704   echo "$as_me: failed program was:" >&5
 14705 sed 's/^/| /' conftest.$ac_ext >&5
 14707 	ac_header_compiler=no
 14708 fi
 14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14714 # Is the header present?
 14715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 14716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 14717 cat >conftest.$ac_ext <<_ACEOF
 14718 /* confdefs.h.  */
 14719 _ACEOF
 14720 cat confdefs.h >>conftest.$ac_ext
 14721 cat >>conftest.$ac_ext <<_ACEOF
 14722 /* end confdefs.h.  */
 14723 #include <$ac_header>
 14724 _ACEOF
 14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14726 case "(($ac_try" in
 14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14728   *) ac_try_echo=$ac_try;;
 14729 esac
 14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14732   ac_status=$?
 14733   grep -v '^ *+' conftest.er1 >conftest.err
 14734   rm -f conftest.er1
 14735   cat conftest.err >&5
 14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14737   (exit $ac_status); } >/dev/null && {
 14738 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14739 	 test ! -s conftest.err
 14740        }; then
 14741   ac_header_preproc=yes
 14742 else
 14743   echo "$as_me: failed program was:" >&5
 14744 sed 's/^/| /' conftest.$ac_ext >&5
 14746   ac_header_preproc=no
 14747 fi
 14749 rm -f conftest.err conftest.$ac_ext
 14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14753 # So?  What about this header?
 14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14755   yes:no: )
 14756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 14757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 14759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 14760     ac_header_preproc=yes
 14761     ;;
 14762   no:yes:* )
 14763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 14764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 14765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 14766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 14767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 14768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 14769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 14770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 14771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 14772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 14773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 14774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 14776     ;;
 14777 esac
 14778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14781   echo $ECHO_N "(cached) $ECHO_C" >&6
 14782 else
 14783   eval "$as_ac_Header=\$ac_header_preproc"
 14784 fi
 14785 ac_res=`eval echo '${'$as_ac_Header'}'`
 14786 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14787 echo "${ECHO_T}$ac_res" >&6; }
 14789 fi
 14790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 14791   cat >>confdefs.h <<_ACEOF
 14792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 14793 _ACEOF
 14795 fi
 14797 done
 14799     if test $ac_cv_header_locale_h = yes; then
 14800     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 14801 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 14802 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 14803   echo $ECHO_N "(cached) $ECHO_C" >&6
 14804 else
 14805   cat >conftest.$ac_ext <<_ACEOF
 14806 /* confdefs.h.  */
 14807 _ACEOF
 14808 cat confdefs.h >>conftest.$ac_ext
 14809 cat >>conftest.$ac_ext <<_ACEOF
 14810 /* end confdefs.h.  */
 14811 #include <locale.h>
 14812 int
 14813 main ()
 14815 return LC_MESSAGES
 14817   return 0;
 14819 _ACEOF
 14820 rm -f conftest.$ac_objext conftest$ac_exeext
 14821 if { (ac_try="$ac_link"
 14822 case "(($ac_try" in
 14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14824   *) ac_try_echo=$ac_try;;
 14825 esac
 14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14827   (eval "$ac_link") 2>conftest.er1
 14828   ac_status=$?
 14829   grep -v '^ *+' conftest.er1 >conftest.err
 14830   rm -f conftest.er1
 14831   cat conftest.err >&5
 14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14833   (exit $ac_status); } && {
 14834 	 test -z "$ac_c_werror_flag" ||
 14835 	 test ! -s conftest.err
 14836        } && test -s conftest$ac_exeext &&
 14837        $as_test_x conftest$ac_exeext; then
 14838   am_cv_val_LC_MESSAGES=yes
 14839 else
 14840   echo "$as_me: failed program was:" >&5
 14841 sed 's/^/| /' conftest.$ac_ext >&5
 14843 	am_cv_val_LC_MESSAGES=no
 14844 fi
 14846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14847       conftest$ac_exeext conftest.$ac_ext
 14848 fi
 14849 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 14850 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 14851     if test $am_cv_val_LC_MESSAGES = yes; then
 14853 cat >>confdefs.h <<\_ACEOF
 14854 #define HAVE_LC_MESSAGES 1
 14855 _ACEOF
 14857     fi
 14858   fi
 14859      USE_NLS=yes
 14862     gt_cv_have_gettext=no
 14864     CATOBJEXT=NONE
 14865     XGETTEXT=:
 14866     INTLLIBS=
 14868     if test "${ac_cv_header_libintl_h+set}" = set; then
 14869   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14870 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14871 if test "${ac_cv_header_libintl_h+set}" = set; then
 14872   echo $ECHO_N "(cached) $ECHO_C" >&6
 14873 fi
 14874 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14875 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14876 else
 14877   # Is the header compilable?
 14878 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 14879 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 14880 cat >conftest.$ac_ext <<_ACEOF
 14881 /* confdefs.h.  */
 14882 _ACEOF
 14883 cat confdefs.h >>conftest.$ac_ext
 14884 cat >>conftest.$ac_ext <<_ACEOF
 14885 /* end confdefs.h.  */
 14886 $ac_includes_default
 14887 #include <libintl.h>
 14888 _ACEOF
 14889 rm -f conftest.$ac_objext
 14890 if { (ac_try="$ac_compile"
 14891 case "(($ac_try" in
 14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14893   *) ac_try_echo=$ac_try;;
 14894 esac
 14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14896   (eval "$ac_compile") 2>conftest.er1
 14897   ac_status=$?
 14898   grep -v '^ *+' conftest.er1 >conftest.err
 14899   rm -f conftest.er1
 14900   cat conftest.err >&5
 14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14902   (exit $ac_status); } && {
 14903 	 test -z "$ac_c_werror_flag" ||
 14904 	 test ! -s conftest.err
 14905        } && test -s conftest.$ac_objext; then
 14906   ac_header_compiler=yes
 14907 else
 14908   echo "$as_me: failed program was:" >&5
 14909 sed 's/^/| /' conftest.$ac_ext >&5
 14911 	ac_header_compiler=no
 14912 fi
 14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14916 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14918 # Is the header present?
 14919 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 14920 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 14921 cat >conftest.$ac_ext <<_ACEOF
 14922 /* confdefs.h.  */
 14923 _ACEOF
 14924 cat confdefs.h >>conftest.$ac_ext
 14925 cat >>conftest.$ac_ext <<_ACEOF
 14926 /* end confdefs.h.  */
 14927 #include <libintl.h>
 14928 _ACEOF
 14929 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14930 case "(($ac_try" in
 14931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14932   *) ac_try_echo=$ac_try;;
 14933 esac
 14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14936   ac_status=$?
 14937   grep -v '^ *+' conftest.er1 >conftest.err
 14938   rm -f conftest.er1
 14939   cat conftest.err >&5
 14940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14941   (exit $ac_status); } >/dev/null && {
 14942 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14943 	 test ! -s conftest.err
 14944        }; then
 14945   ac_header_preproc=yes
 14946 else
 14947   echo "$as_me: failed program was:" >&5
 14948 sed 's/^/| /' conftest.$ac_ext >&5
 14950   ac_header_preproc=no
 14951 fi
 14953 rm -f conftest.err conftest.$ac_ext
 14954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14955 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14957 # So?  What about this header?
 14958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14959   yes:no: )
 14960     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14961 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14962     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 14963 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 14964     ac_header_preproc=yes
 14965     ;;
 14966   no:yes:* )
 14967     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 14968 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 14969     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 14970 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 14971     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 14972 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 14973     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 14974 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14975     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 14976 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 14977     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 14978 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 14980     ;;
 14981 esac
 14982 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14983 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14984 if test "${ac_cv_header_libintl_h+set}" = set; then
 14985   echo $ECHO_N "(cached) $ECHO_C" >&6
 14986 else
 14987   ac_cv_header_libintl_h=$ac_header_preproc
 14988 fi
 14989 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14990 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14992 fi
 14993 if test $ac_cv_header_libintl_h = yes; then
 14994   gt_cv_func_dgettext_libintl="no"
 14995       libintl_extra_libs=""
 14998       # First check in libc
 15000       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 15001 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 15002 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 15003   echo $ECHO_N "(cached) $ECHO_C" >&6
 15004 else
 15005   cat >conftest.$ac_ext <<_ACEOF
 15006 /* confdefs.h.  */
 15007 _ACEOF
 15008 cat confdefs.h >>conftest.$ac_ext
 15009 cat >>conftest.$ac_ext <<_ACEOF
 15010 /* end confdefs.h.  */
 15012 #include <libintl.h>
 15014 int
 15015 main ()
 15017 return !ngettext ("","", 1)
 15019   return 0;
 15021 _ACEOF
 15022 rm -f conftest.$ac_objext conftest$ac_exeext
 15023 if { (ac_try="$ac_link"
 15024 case "(($ac_try" in
 15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15026   *) ac_try_echo=$ac_try;;
 15027 esac
 15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15029   (eval "$ac_link") 2>conftest.er1
 15030   ac_status=$?
 15031   grep -v '^ *+' conftest.er1 >conftest.err
 15032   rm -f conftest.er1
 15033   cat conftest.err >&5
 15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15035   (exit $ac_status); } && {
 15036 	 test -z "$ac_c_werror_flag" ||
 15037 	 test ! -s conftest.err
 15038        } && test -s conftest$ac_exeext &&
 15039        $as_test_x conftest$ac_exeext; then
 15040   gt_cv_func_ngettext_libc=yes
 15041 else
 15042   echo "$as_me: failed program was:" >&5
 15043 sed 's/^/| /' conftest.$ac_ext >&5
 15045 	gt_cv_func_ngettext_libc=no
 15046 fi
 15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15049       conftest$ac_exeext conftest.$ac_ext
 15051 fi
 15052 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 15053 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 15055       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 15056 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 15057 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 15058 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 15059   echo $ECHO_N "(cached) $ECHO_C" >&6
 15060 else
 15061   cat >conftest.$ac_ext <<_ACEOF
 15062 /* confdefs.h.  */
 15063 _ACEOF
 15064 cat confdefs.h >>conftest.$ac_ext
 15065 cat >>conftest.$ac_ext <<_ACEOF
 15066 /* end confdefs.h.  */
 15068 #include <libintl.h>
 15070 int
 15071 main ()
 15073 return !dgettext ("","")
 15075   return 0;
 15077 _ACEOF
 15078 rm -f conftest.$ac_objext conftest$ac_exeext
 15079 if { (ac_try="$ac_link"
 15080 case "(($ac_try" in
 15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15082   *) ac_try_echo=$ac_try;;
 15083 esac
 15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15085   (eval "$ac_link") 2>conftest.er1
 15086   ac_status=$?
 15087   grep -v '^ *+' conftest.er1 >conftest.err
 15088   rm -f conftest.er1
 15089   cat conftest.err >&5
 15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15091   (exit $ac_status); } && {
 15092 	 test -z "$ac_c_werror_flag" ||
 15093 	 test ! -s conftest.err
 15094        } && test -s conftest$ac_exeext &&
 15095        $as_test_x conftest$ac_exeext; then
 15096   gt_cv_func_dgettext_libc=yes
 15097 else
 15098   echo "$as_me: failed program was:" >&5
 15099 sed 's/^/| /' conftest.$ac_ext >&5
 15101 	gt_cv_func_dgettext_libc=no
 15102 fi
 15104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15105       conftest$ac_exeext conftest.$ac_ext
 15107 fi
 15108 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 15109 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 15110       fi
 15112       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 15114 for ac_func in bind_textdomain_codeset
 15115 do
 15116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15120   echo $ECHO_N "(cached) $ECHO_C" >&6
 15121 else
 15122   cat >conftest.$ac_ext <<_ACEOF
 15123 /* confdefs.h.  */
 15124 _ACEOF
 15125 cat confdefs.h >>conftest.$ac_ext
 15126 cat >>conftest.$ac_ext <<_ACEOF
 15127 /* end confdefs.h.  */
 15128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15130 #define $ac_func innocuous_$ac_func
 15132 /* System header to define __stub macros and hopefully few prototypes,
 15133     which can conflict with char $ac_func (); below.
 15134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15135     <limits.h> exists even on freestanding compilers.  */
 15137 #ifdef __STDC__
 15138 # include <limits.h>
 15139 #else
 15140 # include <assert.h>
 15141 #endif
 15143 #undef $ac_func
 15145 /* Override any GCC internal prototype to avoid an error.
 15146    Use char because int might match the return type of a GCC
 15147    builtin and then its argument prototype would still apply.  */
 15148 #ifdef __cplusplus
 15149 extern "C"
 15150 #endif
 15151 char $ac_func ();
 15152 /* The GNU C library defines this for functions which it implements
 15153     to always fail with ENOSYS.  Some functions are actually named
 15154     something starting with __ and the normal name is an alias.  */
 15155 #if defined __stub_$ac_func || defined __stub___$ac_func
 15156 choke me
 15157 #endif
 15159 int
 15160 main ()
 15162 return $ac_func ();
 15164   return 0;
 15166 _ACEOF
 15167 rm -f conftest.$ac_objext conftest$ac_exeext
 15168 if { (ac_try="$ac_link"
 15169 case "(($ac_try" in
 15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15171   *) ac_try_echo=$ac_try;;
 15172 esac
 15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15174   (eval "$ac_link") 2>conftest.er1
 15175   ac_status=$?
 15176   grep -v '^ *+' conftest.er1 >conftest.err
 15177   rm -f conftest.er1
 15178   cat conftest.err >&5
 15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15180   (exit $ac_status); } && {
 15181 	 test -z "$ac_c_werror_flag" ||
 15182 	 test ! -s conftest.err
 15183        } && test -s conftest$ac_exeext &&
 15184        $as_test_x conftest$ac_exeext; then
 15185   eval "$as_ac_var=yes"
 15186 else
 15187   echo "$as_me: failed program was:" >&5
 15188 sed 's/^/| /' conftest.$ac_ext >&5
 15190 	eval "$as_ac_var=no"
 15191 fi
 15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15194       conftest$ac_exeext conftest.$ac_ext
 15195 fi
 15196 ac_res=`eval echo '${'$as_ac_var'}'`
 15197 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15198 echo "${ECHO_T}$ac_res" >&6; }
 15199 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15200   cat >>confdefs.h <<_ACEOF
 15201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15202 _ACEOF
 15204 fi
 15205 done
 15207       fi
 15210       # If we don't have everything we want, check in libintl
 15212       if test "$gt_cv_func_dgettext_libc" != "yes" \
 15213 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 15214          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 15216         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 15217 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 15218 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 15219   echo $ECHO_N "(cached) $ECHO_C" >&6
 15220 else
 15221   ac_check_lib_save_LIBS=$LIBS
 15222 LIBS="-lintl  $LIBS"
 15223 cat >conftest.$ac_ext <<_ACEOF
 15224 /* confdefs.h.  */
 15225 _ACEOF
 15226 cat confdefs.h >>conftest.$ac_ext
 15227 cat >>conftest.$ac_ext <<_ACEOF
 15228 /* end confdefs.h.  */
 15230 /* Override any GCC internal prototype to avoid an error.
 15231    Use char because int might match the return type of a GCC
 15232    builtin and then its argument prototype would still apply.  */
 15233 #ifdef __cplusplus
 15234 extern "C"
 15235 #endif
 15236 char bindtextdomain ();
 15237 int
 15238 main ()
 15240 return bindtextdomain ();
 15242   return 0;
 15244 _ACEOF
 15245 rm -f conftest.$ac_objext conftest$ac_exeext
 15246 if { (ac_try="$ac_link"
 15247 case "(($ac_try" in
 15248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15249   *) ac_try_echo=$ac_try;;
 15250 esac
 15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15252   (eval "$ac_link") 2>conftest.er1
 15253   ac_status=$?
 15254   grep -v '^ *+' conftest.er1 >conftest.err
 15255   rm -f conftest.er1
 15256   cat conftest.err >&5
 15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15258   (exit $ac_status); } && {
 15259 	 test -z "$ac_c_werror_flag" ||
 15260 	 test ! -s conftest.err
 15261        } && test -s conftest$ac_exeext &&
 15262        $as_test_x conftest$ac_exeext; then
 15263   ac_cv_lib_intl_bindtextdomain=yes
 15264 else
 15265   echo "$as_me: failed program was:" >&5
 15266 sed 's/^/| /' conftest.$ac_ext >&5
 15268 	ac_cv_lib_intl_bindtextdomain=no
 15269 fi
 15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15272       conftest$ac_exeext conftest.$ac_ext
 15273 LIBS=$ac_check_lib_save_LIBS
 15274 fi
 15275 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 15276 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 15277 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 15278   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15279 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15280 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15281   echo $ECHO_N "(cached) $ECHO_C" >&6
 15282 else
 15283   ac_check_lib_save_LIBS=$LIBS
 15284 LIBS="-lintl  $LIBS"
 15285 cat >conftest.$ac_ext <<_ACEOF
 15286 /* confdefs.h.  */
 15287 _ACEOF
 15288 cat confdefs.h >>conftest.$ac_ext
 15289 cat >>conftest.$ac_ext <<_ACEOF
 15290 /* end confdefs.h.  */
 15292 /* Override any GCC internal prototype to avoid an error.
 15293    Use char because int might match the return type of a GCC
 15294    builtin and then its argument prototype would still apply.  */
 15295 #ifdef __cplusplus
 15296 extern "C"
 15297 #endif
 15298 char ngettext ();
 15299 int
 15300 main ()
 15302 return ngettext ();
 15304   return 0;
 15306 _ACEOF
 15307 rm -f conftest.$ac_objext conftest$ac_exeext
 15308 if { (ac_try="$ac_link"
 15309 case "(($ac_try" in
 15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15311   *) ac_try_echo=$ac_try;;
 15312 esac
 15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15314   (eval "$ac_link") 2>conftest.er1
 15315   ac_status=$?
 15316   grep -v '^ *+' conftest.er1 >conftest.err
 15317   rm -f conftest.er1
 15318   cat conftest.err >&5
 15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15320   (exit $ac_status); } && {
 15321 	 test -z "$ac_c_werror_flag" ||
 15322 	 test ! -s conftest.err
 15323        } && test -s conftest$ac_exeext &&
 15324        $as_test_x conftest$ac_exeext; then
 15325   ac_cv_lib_intl_ngettext=yes
 15326 else
 15327   echo "$as_me: failed program was:" >&5
 15328 sed 's/^/| /' conftest.$ac_ext >&5
 15330 	ac_cv_lib_intl_ngettext=no
 15331 fi
 15333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15334       conftest$ac_exeext conftest.$ac_ext
 15335 LIBS=$ac_check_lib_save_LIBS
 15336 fi
 15337 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15338 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15339 if test $ac_cv_lib_intl_ngettext = yes; then
 15340   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 15341 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 15342 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 15343   echo $ECHO_N "(cached) $ECHO_C" >&6
 15344 else
 15345   ac_check_lib_save_LIBS=$LIBS
 15346 LIBS="-lintl  $LIBS"
 15347 cat >conftest.$ac_ext <<_ACEOF
 15348 /* confdefs.h.  */
 15349 _ACEOF
 15350 cat confdefs.h >>conftest.$ac_ext
 15351 cat >>conftest.$ac_ext <<_ACEOF
 15352 /* end confdefs.h.  */
 15354 /* Override any GCC internal prototype to avoid an error.
 15355    Use char because int might match the return type of a GCC
 15356    builtin and then its argument prototype would still apply.  */
 15357 #ifdef __cplusplus
 15358 extern "C"
 15359 #endif
 15360 char dgettext ();
 15361 int
 15362 main ()
 15364 return dgettext ();
 15366   return 0;
 15368 _ACEOF
 15369 rm -f conftest.$ac_objext conftest$ac_exeext
 15370 if { (ac_try="$ac_link"
 15371 case "(($ac_try" in
 15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15373   *) ac_try_echo=$ac_try;;
 15374 esac
 15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15376   (eval "$ac_link") 2>conftest.er1
 15377   ac_status=$?
 15378   grep -v '^ *+' conftest.er1 >conftest.err
 15379   rm -f conftest.er1
 15380   cat conftest.err >&5
 15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15382   (exit $ac_status); } && {
 15383 	 test -z "$ac_c_werror_flag" ||
 15384 	 test ! -s conftest.err
 15385        } && test -s conftest$ac_exeext &&
 15386        $as_test_x conftest$ac_exeext; then
 15387   ac_cv_lib_intl_dgettext=yes
 15388 else
 15389   echo "$as_me: failed program was:" >&5
 15390 sed 's/^/| /' conftest.$ac_ext >&5
 15392 	ac_cv_lib_intl_dgettext=no
 15393 fi
 15395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15396       conftest$ac_exeext conftest.$ac_ext
 15397 LIBS=$ac_check_lib_save_LIBS
 15398 fi
 15399 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 15400 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 15401 if test $ac_cv_lib_intl_dgettext = yes; then
 15402   gt_cv_func_dgettext_libintl=yes
 15403 fi
 15405 fi
 15407 fi
 15410 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 15411 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 15412 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 15413 	  { echo "$as_me:$LINENO: result: " >&5
 15414 echo "${ECHO_T}" >&6; }
 15415   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15416 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15417 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15418   echo $ECHO_N "(cached) $ECHO_C" >&6
 15419 else
 15420   ac_check_lib_save_LIBS=$LIBS
 15421 LIBS="-lintl -liconv $LIBS"
 15422 cat >conftest.$ac_ext <<_ACEOF
 15423 /* confdefs.h.  */
 15424 _ACEOF
 15425 cat confdefs.h >>conftest.$ac_ext
 15426 cat >>conftest.$ac_ext <<_ACEOF
 15427 /* end confdefs.h.  */
 15429 /* Override any GCC internal prototype to avoid an error.
 15430    Use char because int might match the return type of a GCC
 15431    builtin and then its argument prototype would still apply.  */
 15432 #ifdef __cplusplus
 15433 extern "C"
 15434 #endif
 15435 char ngettext ();
 15436 int
 15437 main ()
 15439 return ngettext ();
 15441   return 0;
 15443 _ACEOF
 15444 rm -f conftest.$ac_objext conftest$ac_exeext
 15445 if { (ac_try="$ac_link"
 15446 case "(($ac_try" in
 15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15448   *) ac_try_echo=$ac_try;;
 15449 esac
 15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15451   (eval "$ac_link") 2>conftest.er1
 15452   ac_status=$?
 15453   grep -v '^ *+' conftest.er1 >conftest.err
 15454   rm -f conftest.er1
 15455   cat conftest.err >&5
 15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15457   (exit $ac_status); } && {
 15458 	 test -z "$ac_c_werror_flag" ||
 15459 	 test ! -s conftest.err
 15460        } && test -s conftest$ac_exeext &&
 15461        $as_test_x conftest$ac_exeext; then
 15462   ac_cv_lib_intl_ngettext=yes
 15463 else
 15464   echo "$as_me: failed program was:" >&5
 15465 sed 's/^/| /' conftest.$ac_ext >&5
 15467 	ac_cv_lib_intl_ngettext=no
 15468 fi
 15470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15471       conftest$ac_exeext conftest.$ac_ext
 15472 LIBS=$ac_check_lib_save_LIBS
 15473 fi
 15474 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15475 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15476 if test $ac_cv_lib_intl_ngettext = yes; then
 15477   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 15478 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 15479 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 15480   echo $ECHO_N "(cached) $ECHO_C" >&6
 15481 else
 15482   ac_check_lib_save_LIBS=$LIBS
 15483 LIBS="-lintl -liconv $LIBS"
 15484 cat >conftest.$ac_ext <<_ACEOF
 15485 /* confdefs.h.  */
 15486 _ACEOF
 15487 cat confdefs.h >>conftest.$ac_ext
 15488 cat >>conftest.$ac_ext <<_ACEOF
 15489 /* end confdefs.h.  */
 15491 /* Override any GCC internal prototype to avoid an error.
 15492    Use char because int might match the return type of a GCC
 15493    builtin and then its argument prototype would still apply.  */
 15494 #ifdef __cplusplus
 15495 extern "C"
 15496 #endif
 15497 char dcgettext ();
 15498 int
 15499 main ()
 15501 return dcgettext ();
 15503   return 0;
 15505 _ACEOF
 15506 rm -f conftest.$ac_objext conftest$ac_exeext
 15507 if { (ac_try="$ac_link"
 15508 case "(($ac_try" in
 15509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15510   *) ac_try_echo=$ac_try;;
 15511 esac
 15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15513   (eval "$ac_link") 2>conftest.er1
 15514   ac_status=$?
 15515   grep -v '^ *+' conftest.er1 >conftest.err
 15516   rm -f conftest.er1
 15517   cat conftest.err >&5
 15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15519   (exit $ac_status); } && {
 15520 	 test -z "$ac_c_werror_flag" ||
 15521 	 test ! -s conftest.err
 15522        } && test -s conftest$ac_exeext &&
 15523        $as_test_x conftest$ac_exeext; then
 15524   ac_cv_lib_intl_dcgettext=yes
 15525 else
 15526   echo "$as_me: failed program was:" >&5
 15527 sed 's/^/| /' conftest.$ac_ext >&5
 15529 	ac_cv_lib_intl_dcgettext=no
 15530 fi
 15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15533       conftest$ac_exeext conftest.$ac_ext
 15534 LIBS=$ac_check_lib_save_LIBS
 15535 fi
 15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 15537 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 15538 if test $ac_cv_lib_intl_dcgettext = yes; then
 15539   gt_cv_func_dgettext_libintl=yes
 15540 			libintl_extra_libs=-liconv
 15541 else
 15543 fi
 15545 else
 15547 fi
 15549         fi
 15552         # If we found libintl, then check in it for bind_textdomain_codeset();
 15553         # we'll prefer libc if neither have bind_textdomain_codeset(),
 15554         # and both have dgettext and ngettext
 15556         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 15557           glib_save_LIBS="$LIBS"
 15558           LIBS="$LIBS -lintl $libintl_extra_libs"
 15559           unset ac_cv_func_bind_textdomain_codeset
 15561 for ac_func in bind_textdomain_codeset
 15562 do
 15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15567   echo $ECHO_N "(cached) $ECHO_C" >&6
 15568 else
 15569   cat >conftest.$ac_ext <<_ACEOF
 15570 /* confdefs.h.  */
 15571 _ACEOF
 15572 cat confdefs.h >>conftest.$ac_ext
 15573 cat >>conftest.$ac_ext <<_ACEOF
 15574 /* end confdefs.h.  */
 15575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15577 #define $ac_func innocuous_$ac_func
 15579 /* System header to define __stub macros and hopefully few prototypes,
 15580     which can conflict with char $ac_func (); below.
 15581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15582     <limits.h> exists even on freestanding compilers.  */
 15584 #ifdef __STDC__
 15585 # include <limits.h>
 15586 #else
 15587 # include <assert.h>
 15588 #endif
 15590 #undef $ac_func
 15592 /* Override any GCC internal prototype to avoid an error.
 15593    Use char because int might match the return type of a GCC
 15594    builtin and then its argument prototype would still apply.  */
 15595 #ifdef __cplusplus
 15596 extern "C"
 15597 #endif
 15598 char $ac_func ();
 15599 /* The GNU C library defines this for functions which it implements
 15600     to always fail with ENOSYS.  Some functions are actually named
 15601     something starting with __ and the normal name is an alias.  */
 15602 #if defined __stub_$ac_func || defined __stub___$ac_func
 15603 choke me
 15604 #endif
 15606 int
 15607 main ()
 15609 return $ac_func ();
 15611   return 0;
 15613 _ACEOF
 15614 rm -f conftest.$ac_objext conftest$ac_exeext
 15615 if { (ac_try="$ac_link"
 15616 case "(($ac_try" in
 15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15618   *) ac_try_echo=$ac_try;;
 15619 esac
 15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15621   (eval "$ac_link") 2>conftest.er1
 15622   ac_status=$?
 15623   grep -v '^ *+' conftest.er1 >conftest.err
 15624   rm -f conftest.er1
 15625   cat conftest.err >&5
 15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15627   (exit $ac_status); } && {
 15628 	 test -z "$ac_c_werror_flag" ||
 15629 	 test ! -s conftest.err
 15630        } && test -s conftest$ac_exeext &&
 15631        $as_test_x conftest$ac_exeext; then
 15632   eval "$as_ac_var=yes"
 15633 else
 15634   echo "$as_me: failed program was:" >&5
 15635 sed 's/^/| /' conftest.$ac_ext >&5
 15637 	eval "$as_ac_var=no"
 15638 fi
 15640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15641       conftest$ac_exeext conftest.$ac_ext
 15642 fi
 15643 ac_res=`eval echo '${'$as_ac_var'}'`
 15644 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15645 echo "${ECHO_T}$ac_res" >&6; }
 15646 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15647   cat >>confdefs.h <<_ACEOF
 15648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15649 _ACEOF
 15651 fi
 15652 done
 15654           LIBS="$glib_save_LIBS"
 15656           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 15657             gt_cv_func_dgettext_libc=no
 15658           else
 15659             if test "$gt_cv_func_dgettext_libc" = "yes" \
 15660 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 15661               gt_cv_func_dgettext_libintl=no
 15662             fi
 15663           fi
 15664         fi
 15665       fi
 15667       if test "$gt_cv_func_dgettext_libc" = "yes" \
 15668 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15669         gt_cv_have_gettext=yes
 15670       fi
 15672       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15673         INTLLIBS="-lintl $libintl_extra_libs"
 15674       fi
 15676       if test "$gt_cv_have_gettext" = "yes"; then
 15678 cat >>confdefs.h <<\_ACEOF
 15679 #define HAVE_GETTEXT 1
 15680 _ACEOF
 15682 	# Extract the first word of "msgfmt", so it can be a program name with args.
 15683 set dummy msgfmt; ac_word=$2
 15684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15686 if test "${ac_cv_path_MSGFMT+set}" = set; then
 15687   echo $ECHO_N "(cached) $ECHO_C" >&6
 15688 else
 15689   case "$MSGFMT" in
 15690   /*)
 15691   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 15692   ;;
 15693   *)
 15694   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15695   for ac_dir in $PATH; do
 15696     test -z "$ac_dir" && ac_dir=.
 15697     if test -f $ac_dir/$ac_word; then
 15698       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 15699 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 15700 	break
 15701       fi
 15702     fi
 15703   done
 15704   IFS="$ac_save_ifs"
 15705   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 15706   ;;
 15707 esac
 15708 fi
 15709 MSGFMT="$ac_cv_path_MSGFMT"
 15710 if test "$MSGFMT" != "no"; then
 15711   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 15712 echo "${ECHO_T}$MSGFMT" >&6; }
 15713 else
 15714   { echo "$as_me:$LINENO: result: no" >&5
 15715 echo "${ECHO_T}no" >&6; }
 15716 fi
 15717 	if test "$MSGFMT" != "no"; then
 15718           glib_save_LIBS="$LIBS"
 15719           LIBS="$LIBS $INTLLIBS"
 15721 for ac_func in dcgettext
 15722 do
 15723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15727   echo $ECHO_N "(cached) $ECHO_C" >&6
 15728 else
 15729   cat >conftest.$ac_ext <<_ACEOF
 15730 /* confdefs.h.  */
 15731 _ACEOF
 15732 cat confdefs.h >>conftest.$ac_ext
 15733 cat >>conftest.$ac_ext <<_ACEOF
 15734 /* end confdefs.h.  */
 15735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15737 #define $ac_func innocuous_$ac_func
 15739 /* System header to define __stub macros and hopefully few prototypes,
 15740     which can conflict with char $ac_func (); below.
 15741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15742     <limits.h> exists even on freestanding compilers.  */
 15744 #ifdef __STDC__
 15745 # include <limits.h>
 15746 #else
 15747 # include <assert.h>
 15748 #endif
 15750 #undef $ac_func
 15752 /* Override any GCC internal prototype to avoid an error.
 15753    Use char because int might match the return type of a GCC
 15754    builtin and then its argument prototype would still apply.  */
 15755 #ifdef __cplusplus
 15756 extern "C"
 15757 #endif
 15758 char $ac_func ();
 15759 /* The GNU C library defines this for functions which it implements
 15760     to always fail with ENOSYS.  Some functions are actually named
 15761     something starting with __ and the normal name is an alias.  */
 15762 #if defined __stub_$ac_func || defined __stub___$ac_func
 15763 choke me
 15764 #endif
 15766 int
 15767 main ()
 15769 return $ac_func ();
 15771   return 0;
 15773 _ACEOF
 15774 rm -f conftest.$ac_objext conftest$ac_exeext
 15775 if { (ac_try="$ac_link"
 15776 case "(($ac_try" in
 15777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15778   *) ac_try_echo=$ac_try;;
 15779 esac
 15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15781   (eval "$ac_link") 2>conftest.er1
 15782   ac_status=$?
 15783   grep -v '^ *+' conftest.er1 >conftest.err
 15784   rm -f conftest.er1
 15785   cat conftest.err >&5
 15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15787   (exit $ac_status); } && {
 15788 	 test -z "$ac_c_werror_flag" ||
 15789 	 test ! -s conftest.err
 15790        } && test -s conftest$ac_exeext &&
 15791        $as_test_x conftest$ac_exeext; then
 15792   eval "$as_ac_var=yes"
 15793 else
 15794   echo "$as_me: failed program was:" >&5
 15795 sed 's/^/| /' conftest.$ac_ext >&5
 15797 	eval "$as_ac_var=no"
 15798 fi
 15800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15801       conftest$ac_exeext conftest.$ac_ext
 15802 fi
 15803 ac_res=`eval echo '${'$as_ac_var'}'`
 15804 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15805 echo "${ECHO_T}$ac_res" >&6; }
 15806 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15807   cat >>confdefs.h <<_ACEOF
 15808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15809 _ACEOF
 15811 fi
 15812 done
 15814 	  MSGFMT_OPTS=
 15815 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 15816 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 15817 	  cat >conftest.foo <<_ACEOF
 15819 msgid ""
 15820 msgstr ""
 15821 "Content-Type: text/plain; charset=UTF-8\n"
 15822 "Project-Id-Version: test 1.0\n"
 15823 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 15824 "Last-Translator: test <foo@bar.xx>\n"
 15825 "Language-Team: C <LL@li.org>\n"
 15826 "MIME-Version: 1.0\n"
 15827 "Content-Transfer-Encoding: 8bit\n"
 15829 _ACEOF
 15830 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 15831   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 15832   ac_status=$?
 15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15834   (exit $ac_status); }; then
 15835   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 15836 echo "${ECHO_T}yes" >&6; }
 15837 else { echo "$as_me:$LINENO: result: no" >&5
 15838 echo "${ECHO_T}no" >&6; }
 15839 echo "$as_me: failed input was:" >&5
 15840 sed 's/^/| /' conftest.foo >&5
 15841 fi
 15843 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 15844 set dummy gmsgfmt; ac_word=$2
 15845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 15848   echo $ECHO_N "(cached) $ECHO_C" >&6
 15849 else
 15850   case $GMSGFMT in
 15851   [\\/]* | ?:[\\/]*)
 15852   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 15853   ;;
 15854   *)
 15855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15856 for as_dir in $PATH
 15857 do
 15858   IFS=$as_save_IFS
 15859   test -z "$as_dir" && as_dir=.
 15860   for ac_exec_ext in '' $ac_executable_extensions; do
 15861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 15862     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 15863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 15864     break 2
 15865   fi
 15866 done
 15867 done
 15868 IFS=$as_save_IFS
 15870   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 15871   ;;
 15872 esac
 15873 fi
 15874 GMSGFMT=$ac_cv_path_GMSGFMT
 15875 if test -n "$GMSGFMT"; then
 15876   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 15877 echo "${ECHO_T}$GMSGFMT" >&6; }
 15878 else
 15879   { echo "$as_me:$LINENO: result: no" >&5
 15880 echo "${ECHO_T}no" >&6; }
 15881 fi
 15884 	  # Extract the first word of "xgettext", so it can be a program name with args.
 15885 set dummy xgettext; ac_word=$2
 15886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 15889   echo $ECHO_N "(cached) $ECHO_C" >&6
 15890 else
 15891   case "$XGETTEXT" in
 15892   /*)
 15893   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 15894   ;;
 15895   *)
 15896   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15897   for ac_dir in $PATH; do
 15898     test -z "$ac_dir" && ac_dir=.
 15899     if test -f $ac_dir/$ac_word; then
 15900       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 15901 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 15902 	break
 15903       fi
 15904     fi
 15905   done
 15906   IFS="$ac_save_ifs"
 15907   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 15908   ;;
 15909 esac
 15910 fi
 15911 XGETTEXT="$ac_cv_path_XGETTEXT"
 15912 if test "$XGETTEXT" != ":"; then
 15913   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 15914 echo "${ECHO_T}$XGETTEXT" >&6; }
 15915 else
 15916   { echo "$as_me:$LINENO: result: no" >&5
 15917 echo "${ECHO_T}no" >&6; }
 15918 fi
 15920 	  cat >conftest.$ac_ext <<_ACEOF
 15921 /* confdefs.h.  */
 15922 _ACEOF
 15923 cat confdefs.h >>conftest.$ac_ext
 15924 cat >>conftest.$ac_ext <<_ACEOF
 15925 /* end confdefs.h.  */
 15927 int
 15928 main ()
 15930 extern int _nl_msg_cat_cntr;
 15931 			 return _nl_msg_cat_cntr
 15933   return 0;
 15935 _ACEOF
 15936 rm -f conftest.$ac_objext conftest$ac_exeext
 15937 if { (ac_try="$ac_link"
 15938 case "(($ac_try" in
 15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15940   *) ac_try_echo=$ac_try;;
 15941 esac
 15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15943   (eval "$ac_link") 2>conftest.er1
 15944   ac_status=$?
 15945   grep -v '^ *+' conftest.er1 >conftest.err
 15946   rm -f conftest.er1
 15947   cat conftest.err >&5
 15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15949   (exit $ac_status); } && {
 15950 	 test -z "$ac_c_werror_flag" ||
 15951 	 test ! -s conftest.err
 15952        } && test -s conftest$ac_exeext &&
 15953        $as_test_x conftest$ac_exeext; then
 15954   CATOBJEXT=.gmo
 15955              DATADIRNAME=share
 15956 else
 15957   echo "$as_me: failed program was:" >&5
 15958 sed 's/^/| /' conftest.$ac_ext >&5
 15960 	case $host in
 15961 	    *-*-solaris*)
 15962 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 15963 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 15964 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 15965   echo $ECHO_N "(cached) $ECHO_C" >&6
 15966 else
 15967   cat >conftest.$ac_ext <<_ACEOF
 15968 /* confdefs.h.  */
 15969 _ACEOF
 15970 cat confdefs.h >>conftest.$ac_ext
 15971 cat >>conftest.$ac_ext <<_ACEOF
 15972 /* end confdefs.h.  */
 15973 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 15974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15975 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 15977 /* System header to define __stub macros and hopefully few prototypes,
 15978     which can conflict with char bind_textdomain_codeset (); below.
 15979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15980     <limits.h> exists even on freestanding compilers.  */
 15982 #ifdef __STDC__
 15983 # include <limits.h>
 15984 #else
 15985 # include <assert.h>
 15986 #endif
 15988 #undef bind_textdomain_codeset
 15990 /* Override any GCC internal prototype to avoid an error.
 15991    Use char because int might match the return type of a GCC
 15992    builtin and then its argument prototype would still apply.  */
 15993 #ifdef __cplusplus
 15994 extern "C"
 15995 #endif
 15996 char bind_textdomain_codeset ();
 15997 /* The GNU C library defines this for functions which it implements
 15998     to always fail with ENOSYS.  Some functions are actually named
 15999     something starting with __ and the normal name is an alias.  */
 16000 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 16001 choke me
 16002 #endif
 16004 int
 16005 main ()
 16007 return bind_textdomain_codeset ();
 16009   return 0;
 16011 _ACEOF
 16012 rm -f conftest.$ac_objext conftest$ac_exeext
 16013 if { (ac_try="$ac_link"
 16014 case "(($ac_try" in
 16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 16016   *) ac_try_echo=$ac_try;;
 16017 esac
 16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 16019   (eval "$ac_link") 2>conftest.er1
 16020   ac_status=$?
 16021   grep -v '^ *+' conftest.er1 >conftest.err
 16022   rm -f conftest.er1
 16023   cat conftest.err >&5
 16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16025   (exit $ac_status); } && {
 16026 	 test -z "$ac_c_werror_flag" ||
 16027 	 test ! -s conftest.err
 16028        } && test -s conftest$ac_exeext &&
 16029        $as_test_x conftest$ac_exeext; then
 16030   ac_cv_func_bind_textdomain_codeset=yes
 16031 else
 16032   echo "$as_me: failed program was:" >&5
 16033 sed 's/^/| /' conftest.$ac_ext >&5
 16035 	ac_cv_func_bind_textdomain_codeset=no
 16036 fi
 16038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 16039       conftest$ac_exeext conftest.$ac_ext
 16040 fi
 16041 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 16042 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 16043 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 16044   CATOBJEXT=.gmo
 16045                DATADIRNAME=share
 16046 else
 16047   CATOBJEXT=.mo
 16048                DATADIRNAME=lib
 16049 fi
 16051 	    ;;
 16052 	    *)
 16053 	    CATOBJEXT=.mo
 16054             DATADIRNAME=lib
 16055 	    ;;
 16056 	    esac
 16057 fi
 16059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 16060       conftest$ac_exeext conftest.$ac_ext
 16061           LIBS="$glib_save_LIBS"
 16062 	  INSTOBJEXT=.mo
 16063 	else
 16064 	  gt_cv_have_gettext=no
 16065 	fi
 16066       fi
 16068 fi
 16072     if test "$gt_cv_have_gettext" = "yes" ; then
 16074 cat >>confdefs.h <<\_ACEOF
 16075 #define ENABLE_NLS 1
 16076 _ACEOF
 16078     fi
 16080         if test "$XGETTEXT" != ":"; then
 16081                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 16082         : ;
 16083       else
 16084         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 16085 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 16086         XGETTEXT=":"
 16087       fi
 16088     fi
 16090     # We need to process the po/ directory.
 16091     POSUB=po
 16093     ac_config_commands="$ac_config_commands default-1"
 16096                 for lang in $ALL_LINGUAS; do
 16097       GMOFILES="$GMOFILES $lang.gmo"
 16098       POFILES="$POFILES $lang.po"
 16099     done
 16113    if test "$gt_cv_have_gettext" = "yes"; then
 16114      if test "x$ALL_LINGUAS" = "x"; then
 16115        LINGUAS=
 16116      else
 16117        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 16118 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 16119        NEW_LINGUAS=
 16120        for presentlang in $ALL_LINGUAS; do
 16121          useit=no
 16122          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 16123            desiredlanguages="$LINGUAS"
 16124          else
 16125            desiredlanguages="$ALL_LINGUAS"
 16126          fi
 16127          for desiredlang in $desiredlanguages; do
 16128  	   # Use the presentlang catalog if desiredlang is
 16129            #   a. equal to presentlang, or
 16130            #   b. a variant of presentlang (because in this case,
 16131            #      presentlang can be used as a fallback for messages
 16132            #      which are not translated in the desiredlang catalog).
 16133            case "$desiredlang" in
 16134              "$presentlang"*) useit=yes;;
 16135            esac
 16136          done
 16137          if test $useit = yes; then
 16138            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 16139          fi
 16140        done
 16141        LINGUAS=$NEW_LINGUAS
 16142        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 16143 echo "${ECHO_T}$LINGUAS" >&6; }
 16144      fi
 16146           if test -n "$LINGUAS"; then
 16147        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 16148      fi
 16149    fi
 16151             MKINSTALLDIRS=
 16152    if test -n "$ac_aux_dir"; then
 16153      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 16154    fi
 16155    if test -z "$MKINSTALLDIRS"; then
 16156      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 16157    fi
 16160          test -d po || mkdir po
 16161    if test "x$srcdir" != "x."; then
 16162      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 16163        posrcprefix="$srcdir/"
 16164      else
 16165        posrcprefix="../$srcdir/"
 16166      fi
 16167    else
 16168      posrcprefix="../"
 16169    fi
 16170    rm -f po/POTFILES
 16171    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 16172 	< $srcdir/po/POTFILES.in > po/POTFILES
 16175 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
 16177 cat >confcache <<\_ACEOF
 16178 # This file is a shell script that caches the results of configure
 16179 # tests run on this system so they can be shared between configure
 16180 # scripts and configure runs, see configure's option --config-cache.
 16181 # It is not useful on other systems.  If it contains results you don't
 16182 # want to keep, you may remove or edit it.
 16184 # config.status only pays attention to the cache file if you give it
 16185 # the --recheck option to rerun configure.
 16187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 16188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 16189 # following values.
 16191 _ACEOF
 16193 # The following way of writing the cache mishandles newlines in values,
 16194 # but we know of no workaround that is simple, portable, and efficient.
 16195 # So, we kill variables containing newlines.
 16196 # Ultrix sh set writes to stderr and can't be redirected directly,
 16197 # and sets the high bit in the cache file unless we assign to the vars.
 16199   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 16200     eval ac_val=\$$ac_var
 16201     case $ac_val in #(
 16202     *${as_nl}*)
 16203       case $ac_var in #(
 16204       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 16205 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 16206       esac
 16207       case $ac_var in #(
 16208       _ | IFS | as_nl) ;; #(
 16209       *) $as_unset $ac_var ;;
 16210       esac ;;
 16211     esac
 16212   done
 16214   (set) 2>&1 |
 16215     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 16216     *${as_nl}ac_space=\ *)
 16217       # `set' does not quote correctly, so add quotes (double-quote
 16218       # substitution turns \\\\ into \\, and sed turns \\ into \).
 16219       sed -n \
 16220 	"s/'/'\\\\''/g;
 16221 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 16222       ;; #(
 16223     *)
 16224       # `set' quotes correctly as required by POSIX, so do not add quotes.
 16225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 16226       ;;
 16227     esac |
 16228     sort
 16229 ) |
 16230   sed '
 16231      /^ac_cv_env_/b end
 16232      t clear
 16233      :clear
 16234      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 16235      t end
 16236      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 16237      :end' >>confcache
 16238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 16239   if test -w "$cache_file"; then
 16240     test "x$cache_file" != "x/dev/null" &&
 16241       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 16242 echo "$as_me: updating cache $cache_file" >&6;}
 16243     cat confcache >$cache_file
 16244   else
 16245     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 16246 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 16247   fi
 16248 fi
 16249 rm -f confcache
 16251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 16252 # Let make expand exec_prefix.
 16253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 16255 DEFS=-DHAVE_CONFIG_H
 16257 ac_libobjs=
 16258 ac_ltlibobjs=
 16259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 16260   # 1. Remove the extension, and $U if already installed.
 16261   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 16262   ac_i=`echo "$ac_i" | sed "$ac_script"`
 16263   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 16264   #    will be set to the directory where LIBOBJS objects are built.
 16265   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 16266   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 16267 done
 16268 LIBOBJS=$ac_libobjs
 16270 LTLIBOBJS=$ac_ltlibobjs
 16273 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 16274   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 16275 Usually this means the macro was only invoked conditionally." >&5
 16276 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 16277 Usually this means the macro was only invoked conditionally." >&2;}
 16278    { (exit 1); exit 1; }; }
 16279 fi
 16280 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 16281   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 16282 Usually this means the macro was only invoked conditionally." >&5
 16283 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 16284 Usually this means the macro was only invoked conditionally." >&2;}
 16285    { (exit 1); exit 1; }; }
 16286 fi
 16287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16288   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16289 Usually this means the macro was only invoked conditionally." >&5
 16290 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16291 Usually this means the macro was only invoked conditionally." >&2;}
 16292    { (exit 1); exit 1; }; }
 16293 fi
 16294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16295   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16296 Usually this means the macro was only invoked conditionally." >&5
 16297 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16298 Usually this means the macro was only invoked conditionally." >&2;}
 16299    { (exit 1); exit 1; }; }
 16300 fi
 16301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16302   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16303 Usually this means the macro was only invoked conditionally." >&5
 16304 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16305 Usually this means the macro was only invoked conditionally." >&2;}
 16306    { (exit 1); exit 1; }; }
 16307 fi
 16308 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
 16309   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16310 Usually this means the macro was only invoked conditionally." >&5
 16311 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16312 Usually this means the macro was only invoked conditionally." >&2;}
 16313    { (exit 1); exit 1; }; }
 16314 fi
 16315 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 16316   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 16317 Usually this means the macro was only invoked conditionally." >&5
 16318 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 16319 Usually this means the macro was only invoked conditionally." >&2;}
 16320    { (exit 1); exit 1; }; }
 16321 fi
 16322 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
 16323   { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
 16324 Usually this means the macro was only invoked conditionally." >&5
 16325 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
 16326 Usually this means the macro was only invoked conditionally." >&2;}
 16327    { (exit 1); exit 1; }; }
 16328 fi
 16329 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 16330   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 16331 Usually this means the macro was only invoked conditionally." >&5
 16332 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 16333 Usually this means the macro was only invoked conditionally." >&2;}
 16334    { (exit 1); exit 1; }; }
 16335 fi
 16336 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
 16337   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
 16338 Usually this means the macro was only invoked conditionally." >&5
 16339 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
 16340 Usually this means the macro was only invoked conditionally." >&2;}
 16341    { (exit 1); exit 1; }; }
 16342 fi
 16343 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 16344   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 16345 Usually this means the macro was only invoked conditionally." >&5
 16346 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 16347 Usually this means the macro was only invoked conditionally." >&2;}
 16348    { (exit 1); exit 1; }; }
 16349 fi
 16350 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 16351   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 16352 Usually this means the macro was only invoked conditionally." >&5
 16353 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 16354 Usually this means the macro was only invoked conditionally." >&2;}
 16355    { (exit 1); exit 1; }; }
 16356 fi
 16357 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 16358   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 16359 Usually this means the macro was only invoked conditionally." >&5
 16360 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 16361 Usually this means the macro was only invoked conditionally." >&2;}
 16362    { (exit 1); exit 1; }; }
 16363 fi
 16364 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 16365   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 16366 Usually this means the macro was only invoked conditionally." >&5
 16367 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 16368 Usually this means the macro was only invoked conditionally." >&2;}
 16369    { (exit 1); exit 1; }; }
 16370 fi
 16371 if test -z "${VIDEO_EGL_TRUE}" && test -z "${VIDEO_EGL_FALSE}"; then
 16372   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_EGL\" was never defined.
 16373 Usually this means the macro was only invoked conditionally." >&5
 16374 echo "$as_me: error: conditional \"VIDEO_EGL\" was never defined.
 16375 Usually this means the macro was only invoked conditionally." >&2;}
 16376    { (exit 1); exit 1; }; }
 16377 fi
 16378 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 16379   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 16380 Usually this means the macro was only invoked conditionally." >&5
 16381 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 16382 Usually this means the macro was only invoked conditionally." >&2;}
 16383    { (exit 1); exit 1; }; }
 16384 fi
 16385 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 16386   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 16387 Usually this means the macro was only invoked conditionally." >&5
 16388 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 16389 Usually this means the macro was only invoked conditionally." >&2;}
 16390    { (exit 1); exit 1; }; }
 16391 fi
 16392 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 16393   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 16394 Usually this means the macro was only invoked conditionally." >&5
 16395 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 16396 Usually this means the macro was only invoked conditionally." >&2;}
 16397    { (exit 1); exit 1; }; }
 16398 fi
 16399 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 16400   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 16401 Usually this means the macro was only invoked conditionally." >&5
 16402 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 16403 Usually this means the macro was only invoked conditionally." >&2;}
 16404    { (exit 1); exit 1; }; }
 16405 fi
 16406 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 16407   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 16408 Usually this means the macro was only invoked conditionally." >&5
 16409 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 16410 Usually this means the macro was only invoked conditionally." >&2;}
 16411    { (exit 1); exit 1; }; }
 16412 fi
 16413 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 16414   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 16415 Usually this means the macro was only invoked conditionally." >&5
 16416 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 16417 Usually this means the macro was only invoked conditionally." >&2;}
 16418    { (exit 1); exit 1; }; }
 16419 fi
 16420 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 16421   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 16422 Usually this means the macro was only invoked conditionally." >&5
 16423 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 16424 Usually this means the macro was only invoked conditionally." >&2;}
 16425    { (exit 1); exit 1; }; }
 16426 fi
 16427 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 16428   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 16429 Usually this means the macro was only invoked conditionally." >&5
 16430 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 16431 Usually this means the macro was only invoked conditionally." >&2;}
 16432    { (exit 1); exit 1; }; }
 16433 fi
 16434 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 16435   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 16436 Usually this means the macro was only invoked conditionally." >&5
 16437 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 16438 Usually this means the macro was only invoked conditionally." >&2;}
 16439    { (exit 1); exit 1; }; }
 16440 fi
 16441 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 16442   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 16443 Usually this means the macro was only invoked conditionally." >&5
 16444 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 16445 Usually this means the macro was only invoked conditionally." >&2;}
 16446    { (exit 1); exit 1; }; }
 16447 fi
 16448 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 16449   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 16450 Usually this means the macro was only invoked conditionally." >&5
 16451 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 16452 Usually this means the macro was only invoked conditionally." >&2;}
 16453    { (exit 1); exit 1; }; }
 16454 fi
 16455 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 16456   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 16457 Usually this means the macro was only invoked conditionally." >&5
 16458 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 16459 Usually this means the macro was only invoked conditionally." >&2;}
 16460    { (exit 1); exit 1; }; }
 16461 fi
 16462 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 16463   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 16464 Usually this means the macro was only invoked conditionally." >&5
 16465 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 16466 Usually this means the macro was only invoked conditionally." >&2;}
 16467    { (exit 1); exit 1; }; }
 16468 fi
 16470 : ${CONFIG_STATUS=./config.status}
 16471 ac_clean_files_save=$ac_clean_files
 16472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16475 cat >$CONFIG_STATUS <<_ACEOF
 16476 #! $SHELL
 16477 # Generated by $as_me.
 16478 # Run this file to recreate the current configuration.
 16479 # Compiler output produced by configure, useful for debugging
 16480 # configure, is in config.log if it exists.
 16482 debug=false
 16483 ac_cs_recheck=false
 16484 ac_cs_silent=false
 16485 SHELL=\${CONFIG_SHELL-$SHELL}
 16486 _ACEOF
 16488 cat >>$CONFIG_STATUS <<\_ACEOF
 16489 ## --------------------- ##
 16490 ## M4sh Initialization.  ##
 16491 ## --------------------- ##
 16493 # Be more Bourne compatible
 16494 DUALCASE=1; export DUALCASE # for MKS sh
 16495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16496   emulate sh
 16497   NULLCMD=:
 16498   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16499   # is contrary to our usage.  Disable this feature.
 16500   alias -g '${1+"$@"}'='"$@"'
 16501   setopt NO_GLOB_SUBST
 16502 else
 16503   case `(set -o) 2>/dev/null` in
 16504   *posix*) set -o posix ;;
 16505 esac
 16507 fi
 16512 # PATH needs CR
 16513 # Avoid depending upon Character Ranges.
 16514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16517 as_cr_digits='0123456789'
 16518 as_cr_alnum=$as_cr_Letters$as_cr_digits
 16520 # The user is always right.
 16521 if test "${PATH_SEPARATOR+set}" != set; then
 16522   echo "#! /bin/sh" >conf$$.sh
 16523   echo  "exit 0"   >>conf$$.sh
 16524   chmod +x conf$$.sh
 16525   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16526     PATH_SEPARATOR=';'
 16527   else
 16528     PATH_SEPARATOR=:
 16529   fi
 16530   rm -f conf$$.sh
 16531 fi
 16533 # Support unset when possible.
 16534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16535   as_unset=unset
 16536 else
 16537   as_unset=false
 16538 fi
 16541 # IFS
 16542 # We need space, tab and new line, in precisely that order.  Quoting is
 16543 # there to prevent editors from complaining about space-tab.
 16544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 16545 # splitting by setting IFS to empty value.)
 16546 as_nl='
 16548 IFS=" ""	$as_nl"
 16550 # Find who we are.  Look in the path if we contain no directory separator.
 16551 case $0 in
 16552   *[\\/]* ) as_myself=$0 ;;
 16553   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16554 for as_dir in $PATH
 16555 do
 16556   IFS=$as_save_IFS
 16557   test -z "$as_dir" && as_dir=.
 16558   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16559 done
 16560 IFS=$as_save_IFS
 16562      ;;
 16563 esac
 16564 # We did not find ourselves, most probably we were run as `sh COMMAND'
 16565 # in which case we are not to be found in the path.
 16566 if test "x$as_myself" = x; then
 16567   as_myself=$0
 16568 fi
 16569 if test ! -f "$as_myself"; then
 16570   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 16571   { (exit 1); exit 1; }
 16572 fi
 16574 # Work around bugs in pre-3.0 UWIN ksh.
 16575 for as_var in ENV MAIL MAILPATH
 16576 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16577 done
 16578 PS1='$ '
 16579 PS2='> '
 16580 PS4='+ '
 16582 # NLS nuisances.
 16583 for as_var in \
 16584   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16585   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16586   LC_TELEPHONE LC_TIME
 16587 do
 16588   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16589     eval $as_var=C; export $as_var
 16590   else
 16591     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16592   fi
 16593 done
 16595 # Required to use basename.
 16596 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16597    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16598   as_expr=expr
 16599 else
 16600   as_expr=false
 16601 fi
 16603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 16604   as_basename=basename
 16605 else
 16606   as_basename=false
 16607 fi
 16610 # Name of the executable.
 16611 as_me=`$as_basename -- "$0" ||
 16612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16613 	 X"$0" : 'X\(//\)$' \| \
 16614 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 16615 echo X/"$0" |
 16616     sed '/^.*\/\([^/][^/]*\)\/*$/{
 16617 	    s//\1/
 16620 	  /^X\/\(\/\/\)$/{
 16621 	    s//\1/
 16624 	  /^X\/\(\/\).*/{
 16625 	    s//\1/
 16628 	  s/.*/./; q'`
 16630 # CDPATH.
 16631 $as_unset CDPATH
 16635   as_lineno_1=$LINENO
 16636   as_lineno_2=$LINENO
 16637   test "x$as_lineno_1" != "x$as_lineno_2" &&
 16638   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 16640   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16641   # uniformly replaced by the line number.  The first 'sed' inserts a
 16642   # line-number line after each line using $LINENO; the second 'sed'
 16643   # does the real work.  The second script uses 'N' to pair each
 16644   # line-number line with the line containing $LINENO, and appends
 16645   # trailing '-' during substitution so that $LINENO is not a special
 16646   # case at line end.
 16647   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16648   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 16649   # E. McMahon (1931-1989) for sed's syntax.  :-)
 16650   sed -n '
 16652     /[$]LINENO/=
 16653   ' <$as_myself |
 16654     sed '
 16655       s/[$]LINENO.*/&-/
 16656       t lineno
 16658       :lineno
 16660       :loop
 16661       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 16662       t loop
 16663       s/-\n.*//
 16664     ' >$as_me.lineno &&
 16665   chmod +x "$as_me.lineno" ||
 16666     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 16667    { (exit 1); exit 1; }; }
 16669   # Don't try to exec as it changes $[0], causing all sort of problems
 16670   # (the dirname of $[0] is not the place where we might find the
 16671   # original and so on.  Autoconf is especially sensitive to this).
 16672   . "./$as_me.lineno"
 16673   # Exit status is that of the last command.
 16674   exit
 16678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 16679   as_dirname=dirname
 16680 else
 16681   as_dirname=false
 16682 fi
 16684 ECHO_C= ECHO_N= ECHO_T=
 16685 case `echo -n x` in
 16686 -n*)
 16687   case `echo 'x\c'` in
 16688   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 16689   *)   ECHO_C='\c';;
 16690   esac;;
 16691 *)
 16692   ECHO_N='-n';;
 16693 esac
 16695 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16696    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16697   as_expr=expr
 16698 else
 16699   as_expr=false
 16700 fi
 16702 rm -f conf$$ conf$$.exe conf$$.file
 16703 if test -d conf$$.dir; then
 16704   rm -f conf$$.dir/conf$$.file
 16705 else
 16706   rm -f conf$$.dir
 16707   mkdir conf$$.dir
 16708 fi
 16709 echo >conf$$.file
 16710 if ln -s conf$$.file conf$$ 2>/dev/null; then
 16711   as_ln_s='ln -s'
 16712   # ... but there are two gotchas:
 16713   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 16714   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 16715   # In both cases, we have to default to `cp -p'.
 16716   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 16717     as_ln_s='cp -p'
 16718 elif ln conf$$.file conf$$ 2>/dev/null; then
 16719   as_ln_s=ln
 16720 else
 16721   as_ln_s='cp -p'
 16722 fi
 16723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 16724 rmdir conf$$.dir 2>/dev/null
 16726 if mkdir -p . 2>/dev/null; then
 16727   as_mkdir_p=:
 16728 else
 16729   test -d ./-p && rmdir ./-p
 16730   as_mkdir_p=false
 16731 fi
 16733 if test -x / >/dev/null 2>&1; then
 16734   as_test_x='test -x'
 16735 else
 16736   if ls -dL / >/dev/null 2>&1; then
 16737     as_ls_L_option=L
 16738   else
 16739     as_ls_L_option=
 16740   fi
 16741   as_test_x='
 16742     eval sh -c '\''
 16743       if test -d "$1"; then
 16744         test -d "$1/.";
 16745       else
 16746 	case $1 in
 16747         -*)set "./$1";;
 16748 	esac;
 16749 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 16750 	???[sx]*):;;*)false;;esac;fi
 16751     '\'' sh
 16753 fi
 16754 as_executable_p=$as_test_x
 16756 # Sed expression to map a string onto a valid CPP name.
 16757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16759 # Sed expression to map a string onto a valid variable name.
 16760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16763 exec 6>&1
 16765 # Save the log message, to keep $[0] and so on meaningful, and to
 16766 # report actual input values of CONFIG_FILES etc. instead of their
 16767 # values after options handling.
 16768 ac_log="
 16769 This file was extended by $as_me, which was
 16770 generated by GNU Autoconf 2.61.  Invocation command line was
 16772   CONFIG_FILES    = $CONFIG_FILES
 16773   CONFIG_HEADERS  = $CONFIG_HEADERS
 16774   CONFIG_LINKS    = $CONFIG_LINKS
 16775   CONFIG_COMMANDS = $CONFIG_COMMANDS
 16776   $ $0 $@
 16778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 16781 _ACEOF
 16783 cat >>$CONFIG_STATUS <<_ACEOF
 16784 # Files that config.status was made for.
 16785 config_files="$ac_config_files"
 16786 config_headers="$ac_config_headers"
 16787 config_commands="$ac_config_commands"
 16789 _ACEOF
 16791 cat >>$CONFIG_STATUS <<\_ACEOF
 16792 ac_cs_usage="\
 16793 \`$as_me' instantiates files from templates according to the
 16794 current configuration.
 16796 Usage: $0 [OPTIONS] [FILE]...
 16798   -h, --help       print this help, then exit
 16799   -V, --version    print version number and configuration settings, then exit
 16800   -q, --quiet      do not print progress messages
 16801   -d, --debug      don't remove temporary files
 16802       --recheck    update $as_me by reconfiguring in the same conditions
 16803   --file=FILE[:TEMPLATE]
 16804 		   instantiate the configuration file FILE
 16805   --header=FILE[:TEMPLATE]
 16806 		   instantiate the configuration header FILE
 16808 Configuration files:
 16809 $config_files
 16811 Configuration headers:
 16812 $config_headers
 16814 Configuration commands:
 16815 $config_commands
 16817 Report bugs to <bug-autoconf@gnu.org>."
 16819 _ACEOF
 16820 cat >>$CONFIG_STATUS <<_ACEOF
 16821 ac_cs_version="\\
 16822 config.status
 16823 configured by $0, generated by GNU Autoconf 2.61,
 16824   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 16826 Copyright (C) 2006 Free Software Foundation, Inc.
 16827 This config.status script is free software; the Free Software Foundation
 16828 gives unlimited permission to copy, distribute and modify it."
 16830 ac_pwd='$ac_pwd'
 16831 srcdir='$srcdir'
 16832 INSTALL='$INSTALL'
 16833 _ACEOF
 16835 cat >>$CONFIG_STATUS <<\_ACEOF
 16836 # If no file are specified by the user, then we need to provide default
 16837 # value.  By we need to know if files were specified by the user.
 16838 ac_need_defaults=:
 16839 while test $# != 0
 16840 do
 16841   case $1 in
 16842   --*=*)
 16843     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 16844     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 16845     ac_shift=:
 16846     ;;
 16847   *)
 16848     ac_option=$1
 16849     ac_optarg=$2
 16850     ac_shift=shift
 16851     ;;
 16852   esac
 16854   case $ac_option in
 16855   # Handling of the options.
 16856   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16857     ac_cs_recheck=: ;;
 16858   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 16859     echo "$ac_cs_version"; exit ;;
 16860   --debug | --debu | --deb | --de | --d | -d )
 16861     debug=: ;;
 16862   --file | --fil | --fi | --f )
 16863     $ac_shift
 16864     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16865     ac_need_defaults=false;;
 16866   --header | --heade | --head | --hea )
 16867     $ac_shift
 16868     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16869     ac_need_defaults=false;;
 16870   --he | --h)
 16871     # Conflict between --help and --header
 16872     { echo "$as_me: error: ambiguous option: $1
 16873 Try \`$0 --help' for more information." >&2
 16874    { (exit 1); exit 1; }; };;
 16875   --help | --hel | -h )
 16876     echo "$ac_cs_usage"; exit ;;
 16877   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16878   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16879     ac_cs_silent=: ;;
 16881   # This is an error.
 16882   -*) { echo "$as_me: error: unrecognized option: $1
 16883 Try \`$0 --help' for more information." >&2
 16884    { (exit 1); exit 1; }; } ;;
 16886   *) ac_config_targets="$ac_config_targets $1"
 16887      ac_need_defaults=false ;;
 16889   esac
 16890   shift
 16891 done
 16893 ac_configure_extra_args=
 16895 if $ac_cs_silent; then
 16896   exec 6>/dev/null
 16897   ac_configure_extra_args="$ac_configure_extra_args --silent"
 16898 fi
 16900 _ACEOF
 16901 cat >>$CONFIG_STATUS <<_ACEOF
 16902 if \$ac_cs_recheck; then
 16903   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16904   CONFIG_SHELL=$SHELL
 16905   export CONFIG_SHELL
 16906   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16907 fi
 16909 _ACEOF
 16910 cat >>$CONFIG_STATUS <<\_ACEOF
 16911 exec 5>>config.log
 16913   echo
 16914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16915 ## Running $as_me. ##
 16916 _ASBOX
 16917   echo "$ac_log"
 16918 } >&5
 16920 _ACEOF
 16921 cat >>$CONFIG_STATUS <<_ACEOF
 16923 # INIT-COMMANDS
 16925 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16928 _ACEOF
 16930 cat >>$CONFIG_STATUS <<\_ACEOF
 16932 # Handling of arguments.
 16933 for ac_config_target in $ac_config_targets
 16934 do
 16935   case $ac_config_target in
 16936     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 16937     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16938     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 16939     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16940     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 16941     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 16942     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 16943     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 16944     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 16946   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16948    { (exit 1); exit 1; }; };;
 16949   esac
 16950 done
 16953 # If the user did not use the arguments to specify the items to instantiate,
 16954 # then the envvar interface is used.  Set only those that are not.
 16955 # We use the long form for the default assignment because of an extremely
 16956 # bizarre bug on SunOS 4.1.3.
 16957 if $ac_need_defaults; then
 16958   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16959   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 16960   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16961 fi
 16963 # Have a temporary directory for convenience.  Make it in the build tree
 16964 # simply because there is no reason against having it here, and in addition,
 16965 # creating and moving files from /tmp can sometimes cause problems.
 16966 # Hook for its removal unless debugging.
 16967 # Note that there is a small window in which the directory will not be cleaned:
 16968 # after its creation but before its name has been assigned to `$tmp'.
 16969 $debug ||
 16971   tmp=
 16972   trap 'exit_status=$?
 16973   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 16974 ' 0
 16975   trap '{ (exit 1); exit 1; }' 1 2 13 15
 16977 # Create a (secure) tmp directory for tmp files.
 16980   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 16981   test -n "$tmp" && test -d "$tmp"
 16982 }  ||
 16984   tmp=./conf$$-$RANDOM
 16985   (umask 077 && mkdir "$tmp")
 16986 } ||
 16988    echo "$me: cannot create a temporary directory in ." >&2
 16989    { (exit 1); exit 1; }
 16993 # Set up the sed scripts for CONFIG_FILES section.
 16996 # No need to generate the scripts if there are no CONFIG_FILES.
 16997 # This happens for instance when ./config.status config.h
 16998 if test -n "$CONFIG_FILES"; then
 17000 _ACEOF
 17004 ac_delim='%!_!# '
 17005 for ac_last_try in false false false false false :; do
 17006   cat >conf$$subs.sed <<_ACEOF
 17007 SHELL!$SHELL$ac_delim
 17008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 17009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 17010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 17011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 17012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 17013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 17014 exec_prefix!$exec_prefix$ac_delim
 17015 prefix!$prefix$ac_delim
 17016 program_transform_name!$program_transform_name$ac_delim
 17017 bindir!$bindir$ac_delim
 17018 sbindir!$sbindir$ac_delim
 17019 libexecdir!$libexecdir$ac_delim
 17020 datarootdir!$datarootdir$ac_delim
 17021 datadir!$datadir$ac_delim
 17022 sysconfdir!$sysconfdir$ac_delim
 17023 sharedstatedir!$sharedstatedir$ac_delim
 17024 localstatedir!$localstatedir$ac_delim
 17025 includedir!$includedir$ac_delim
 17026 oldincludedir!$oldincludedir$ac_delim
 17027 docdir!$docdir$ac_delim
 17028 infodir!$infodir$ac_delim
 17029 htmldir!$htmldir$ac_delim
 17030 dvidir!$dvidir$ac_delim
 17031 pdfdir!$pdfdir$ac_delim
 17032 psdir!$psdir$ac_delim
 17033 libdir!$libdir$ac_delim
 17034 localedir!$localedir$ac_delim
 17035 mandir!$mandir$ac_delim
 17036 DEFS!$DEFS$ac_delim
 17037 ECHO_C!$ECHO_C$ac_delim
 17038 ECHO_N!$ECHO_N$ac_delim
 17039 ECHO_T!$ECHO_T$ac_delim
 17040 LIBS!$LIBS$ac_delim
 17041 build_alias!$build_alias$ac_delim
 17042 host_alias!$host_alias$ac_delim
 17043 target_alias!$target_alias$ac_delim
 17044 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 17045 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 17046 INSTALL_DATA!$INSTALL_DATA$ac_delim
 17047 CYGPATH_W!$CYGPATH_W$ac_delim
 17048 PACKAGE!$PACKAGE$ac_delim
 17049 VERSION!$VERSION$ac_delim
 17050 ACLOCAL!$ACLOCAL$ac_delim
 17051 AUTOCONF!$AUTOCONF$ac_delim
 17052 AUTOMAKE!$AUTOMAKE$ac_delim
 17053 AUTOHEADER!$AUTOHEADER$ac_delim
 17054 MAKEINFO!$MAKEINFO$ac_delim
 17055 install_sh!$install_sh$ac_delim
 17056 STRIP!$STRIP$ac_delim
 17057 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 17058 mkdir_p!$mkdir_p$ac_delim
 17059 AWK!$AWK$ac_delim
 17060 SET_MAKE!$SET_MAKE$ac_delim
 17061 am__leading_dot!$am__leading_dot$ac_delim
 17062 AMTAR!$AMTAR$ac_delim
 17063 am__tar!$am__tar$ac_delim
 17064 am__untar!$am__untar$ac_delim
 17065 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 17066 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 17067 MAINT!$MAINT$ac_delim
 17068 build!$build$ac_delim
 17069 build_cpu!$build_cpu$ac_delim
 17070 build_vendor!$build_vendor$ac_delim
 17071 build_os!$build_os$ac_delim
 17072 host!$host$ac_delim
 17073 host_cpu!$host_cpu$ac_delim
 17074 host_vendor!$host_vendor$ac_delim
 17075 host_os!$host_os$ac_delim
 17076 CC!$CC$ac_delim
 17077 CFLAGS!$CFLAGS$ac_delim
 17078 LDFLAGS!$LDFLAGS$ac_delim
 17079 CPPFLAGS!$CPPFLAGS$ac_delim
 17080 ac_ct_CC!$ac_ct_CC$ac_delim
 17081 EXEEXT!$EXEEXT$ac_delim
 17082 OBJEXT!$OBJEXT$ac_delim
 17083 DEPDIR!$DEPDIR$ac_delim
 17084 am__include!$am__include$ac_delim
 17085 am__quote!$am__quote$ac_delim
 17086 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 17087 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 17088 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 17089 CCDEPMODE!$CCDEPMODE$ac_delim
 17090 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 17091 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 17092 CPP!$CPP$ac_delim
 17093 CC!$CC$ac_delim
 17094 CFLAGS!$CFLAGS$ac_delim
 17095 CPPFLAGS!$CPPFLAGS$ac_delim
 17096 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 17097 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
 17098 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
 17099 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
 17100 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
 17101 CPP!$CPP$ac_delim
 17102 CPPFLAGS!$CPPFLAGS$ac_delim
 17103 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
 17104 _ACEOF
 17106   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 17107     break
 17108   elif $ac_last_try; then
 17109     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17110 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17111    { (exit 1); exit 1; }; }
 17112   else
 17113     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17114   fi
 17115 done
 17117 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17118 if test -n "$ac_eof"; then
 17119   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17120   ac_eof=`expr $ac_eof + 1`
 17121 fi
 17123 cat >>$CONFIG_STATUS <<_ACEOF
 17124 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 17125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17126 _ACEOF
 17127 sed '
 17128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17129 s/^/s,@/; s/!/@,|#_!!_#|/
 17130 :n
 17131 t n
 17132 s/'"$ac_delim"'$/,g/; t
 17133 s/$/\\/; p
 17134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17135 ' >>$CONFIG_STATUS <conf$$subs.sed
 17136 rm -f conf$$subs.sed
 17137 cat >>$CONFIG_STATUS <<_ACEOF
 17138 CEOF$ac_eof
 17139 _ACEOF
 17142 ac_delim='%!_!# '
 17143 for ac_last_try in false false false false false :; do
 17144   cat >conf$$subs.sed <<_ACEOF
 17145 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
 17146 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
 17147 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 17148 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
 17149 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
 17150 OBJC!$OBJC$ac_delim
 17151 OBJCFLAGS!$OBJCFLAGS$ac_delim
 17152 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 17153 SED!$SED$ac_delim
 17154 CCAS!$CCAS$ac_delim
 17155 CCASFLAGS!$CCASFLAGS$ac_delim
 17156 RANLIB!$RANLIB$ac_delim
 17157 GREP!$GREP$ac_delim
 17158 EGREP!$EGREP$ac_delim
 17159 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 17160 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 17161 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 17162 POD2MAN!$POD2MAN$ac_delim
 17163 POD2HTML!$POD2HTML$ac_delim
 17164 ANT!$ANT$ac_delim
 17165 ANDROID_ABI!$ANDROID_ABI$ac_delim
 17166 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
 17167 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
 17168 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
 17169 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
 17170 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
 17171 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
 17172 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
 17173 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 17174 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 17175 SOEXT!$SOEXT$ac_delim
 17176 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 17177 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 17178 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 17179 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
 17180 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
 17181 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 17182 PKG_CONFIG!$PKG_CONFIG$ac_delim
 17183 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 17184 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 17185 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 17186 GLIB_LIBS!$GLIB_LIBS$ac_delim
 17187 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 17188 GTK_LIBS!$GTK_LIBS$ac_delim
 17189 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
 17190 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
 17191 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 17192 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 17193 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 17194 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 17195 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 17196 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 17197 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 17198 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 17199 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 17200 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 17201 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 17202 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 17203 VIDEO_EGL_TRUE!$VIDEO_EGL_TRUE$ac_delim
 17204 VIDEO_EGL_FALSE!$VIDEO_EGL_FALSE$ac_delim
 17205 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 17206 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 17207 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 17208 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 17209 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 17210 SDL_LIBS!$SDL_LIBS$ac_delim
 17211 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 17212 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 17213 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 17214 PULSE_LIBS!$PULSE_LIBS$ac_delim
 17215 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 17216 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 17217 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 17218 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 17219 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 17220 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 17221 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 17222 ALSA_LIBS!$ALSA_LIBS$ac_delim
 17223 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 17224 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 17225 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 17226 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 17227 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 17228 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 17229 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 17230 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 17231 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 17232 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 17233 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 17234 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 17235 SHCC!$SHCC$ac_delim
 17236 SHLD!$SHLD$ac_delim
 17237 SHOBJCOPY!$SHOBJCOPY$ac_delim
 17238 ARMCC!$ARMCC$ac_delim
 17239 ARMLD!$ARMLD$ac_delim
 17240 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 17241 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 17242 _ACEOF
 17244   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 17245     break
 17246   elif $ac_last_try; then
 17247     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17248 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17249    { (exit 1); exit 1; }; }
 17250   else
 17251     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17252   fi
 17253 done
 17255 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17256 if test -n "$ac_eof"; then
 17257   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17258   ac_eof=`expr $ac_eof + 1`
 17259 fi
 17261 cat >>$CONFIG_STATUS <<_ACEOF
 17262 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 17263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17264 _ACEOF
 17265 sed '
 17266 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17267 s/^/s,@/; s/!/@,|#_!!_#|/
 17268 :n
 17269 t n
 17270 s/'"$ac_delim"'$/,g/; t
 17271 s/$/\\/; p
 17272 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17273 ' >>$CONFIG_STATUS <conf$$subs.sed
 17274 rm -f conf$$subs.sed
 17275 cat >>$CONFIG_STATUS <<_ACEOF
 17276 CEOF$ac_eof
 17277 _ACEOF
 17280 ac_delim='%!_!# '
 17281 for ac_last_try in false false false false false :; do
 17282   cat >conf$$subs.sed <<_ACEOF
 17283 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 17284 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 17285 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 17286 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 17287 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 17288 USE_NLS!$USE_NLS$ac_delim
 17289 MSGFMT!$MSGFMT$ac_delim
 17290 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 17291 GMSGFMT!$GMSGFMT$ac_delim
 17292 XGETTEXT!$XGETTEXT$ac_delim
 17293 CATALOGS!$CATALOGS$ac_delim
 17294 CATOBJEXT!$CATOBJEXT$ac_delim
 17295 DATADIRNAME!$DATADIRNAME$ac_delim
 17296 GMOFILES!$GMOFILES$ac_delim
 17297 INSTOBJEXT!$INSTOBJEXT$ac_delim
 17298 INTLLIBS!$INTLLIBS$ac_delim
 17299 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 17300 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 17301 POFILES!$POFILES$ac_delim
 17302 POSUB!$POSUB$ac_delim
 17303 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 17304 LIBOBJS!$LIBOBJS$ac_delim
 17305 LTLIBOBJS!$LTLIBOBJS$ac_delim
 17306 _ACEOF
 17308   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
 17309     break
 17310   elif $ac_last_try; then
 17311     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17312 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17313    { (exit 1); exit 1; }; }
 17314   else
 17315     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17316   fi
 17317 done
 17319 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17320 if test -n "$ac_eof"; then
 17321   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17322   ac_eof=`expr $ac_eof + 1`
 17323 fi
 17325 cat >>$CONFIG_STATUS <<_ACEOF
 17326 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 17327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 17328 _ACEOF
 17329 sed '
 17330 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17331 s/^/s,@/; s/!/@,|#_!!_#|/
 17332 :n
 17333 t n
 17334 s/'"$ac_delim"'$/,g/; t
 17335 s/$/\\/; p
 17336 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17337 ' >>$CONFIG_STATUS <conf$$subs.sed
 17338 rm -f conf$$subs.sed
 17339 cat >>$CONFIG_STATUS <<_ACEOF
 17340 :end
 17341 s/|#_!!_#|//g
 17342 CEOF$ac_eof
 17343 _ACEOF
 17346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 17347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 17348 # trailing colons and then remove the whole line if VPATH becomes empty
 17349 # (actually we leave an empty line to preserve line numbers).
 17350 if test "x$srcdir" = x.; then
 17351   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 17352 s/:*\$(srcdir):*/:/
 17353 s/:*\${srcdir}:*/:/
 17354 s/:*@srcdir@:*/:/
 17355 s/^\([^=]*=[	 ]*\):*/\1/
 17356 s/:*$//
 17357 s/^[^=]*=[	 ]*$//
 17358 }'
 17359 fi
 17361 cat >>$CONFIG_STATUS <<\_ACEOF
 17362 fi # test -n "$CONFIG_FILES"
 17365 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 17366 do
 17367   case $ac_tag in
 17368   :[FHLC]) ac_mode=$ac_tag; continue;;
 17369   esac
 17370   case $ac_mode$ac_tag in
 17371   :[FHL]*:*);;
 17372   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 17373 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 17374    { (exit 1); exit 1; }; };;
 17375   :[FH]-) ac_tag=-:-;;
 17376   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 17377   esac
 17378   ac_save_IFS=$IFS
 17379   IFS=:
 17380   set x $ac_tag
 17381   IFS=$ac_save_IFS
 17382   shift
 17383   ac_file=$1
 17384   shift
 17386   case $ac_mode in
 17387   :L) ac_source=$1;;
 17388   :[FH])
 17389     ac_file_inputs=
 17390     for ac_f
 17391     do
 17392       case $ac_f in
 17393       -) ac_f="$tmp/stdin";;
 17394       *) # Look for the file first in the build tree, then in the source tree
 17395 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 17396 	 # because $ac_f cannot contain `:'.
 17397 	 test -f "$ac_f" ||
 17398 	   case $ac_f in
 17399 	   [\\/$]*) false;;
 17400 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 17401 	   esac ||
 17402 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 17403 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 17404    { (exit 1); exit 1; }; };;
 17405       esac
 17406       ac_file_inputs="$ac_file_inputs $ac_f"
 17407     done
 17409     # Let's still pretend it is `configure' which instantiates (i.e., don't
 17410     # use $as_me), people would be surprised to read:
 17411     #    /* config.h.  Generated by config.status.  */
 17412     configure_input="Generated from "`IFS=:
 17413 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 17414     if test x"$ac_file" != x-; then
 17415       configure_input="$ac_file.  $configure_input"
 17416       { echo "$as_me:$LINENO: creating $ac_file" >&5
 17417 echo "$as_me: creating $ac_file" >&6;}
 17418     fi
 17420     case $ac_tag in
 17421     *:-:* | *:-) cat >"$tmp/stdin";;
 17422     esac
 17423     ;;
 17424   esac
 17426   ac_dir=`$as_dirname -- "$ac_file" ||
 17427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17428 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 17429 	 X"$ac_file" : 'X\(//\)$' \| \
 17430 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 17431 echo X"$ac_file" |
 17432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17433 	    s//\1/
 17436 	  /^X\(\/\/\)[^/].*/{
 17437 	    s//\1/
 17440 	  /^X\(\/\/\)$/{
 17441 	    s//\1/
 17444 	  /^X\(\/\).*/{
 17445 	    s//\1/
 17448 	  s/.*/./; q'`
 17449   { as_dir="$ac_dir"
 17450   case $as_dir in #(
 17451   -*) as_dir=./$as_dir;;
 17452   esac
 17453   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17454     as_dirs=
 17455     while :; do
 17456       case $as_dir in #(
 17457       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17458       *) as_qdir=$as_dir;;
 17459       esac
 17460       as_dirs="'$as_qdir' $as_dirs"
 17461       as_dir=`$as_dirname -- "$as_dir" ||
 17462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17463 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17464 	 X"$as_dir" : 'X\(//\)$' \| \
 17465 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17466 echo X"$as_dir" |
 17467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17468 	    s//\1/
 17471 	  /^X\(\/\/\)[^/].*/{
 17472 	    s//\1/
 17475 	  /^X\(\/\/\)$/{
 17476 	    s//\1/
 17479 	  /^X\(\/\).*/{
 17480 	    s//\1/
 17483 	  s/.*/./; q'`
 17484       test -d "$as_dir" && break
 17485     done
 17486     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17487   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17488 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17489    { (exit 1); exit 1; }; }; }
 17490   ac_builddir=.
 17492 case "$ac_dir" in
 17493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17494 *)
 17495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 17496   # A ".." for each directory in $ac_dir_suffix.
 17497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 17498   case $ac_top_builddir_sub in
 17499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 17501   esac ;;
 17502 esac
 17503 ac_abs_top_builddir=$ac_pwd
 17504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 17505 # for backward compatibility:
 17506 ac_top_builddir=$ac_top_build_prefix
 17508 case $srcdir in
 17509   .)  # We are building in place.
 17510     ac_srcdir=.
 17511     ac_top_srcdir=$ac_top_builddir_sub
 17512     ac_abs_top_srcdir=$ac_pwd ;;
 17513   [\\/]* | ?:[\\/]* )  # Absolute name.
 17514     ac_srcdir=$srcdir$ac_dir_suffix;
 17515     ac_top_srcdir=$srcdir
 17516     ac_abs_top_srcdir=$srcdir ;;
 17517   *) # Relative name.
 17518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 17519     ac_top_srcdir=$ac_top_build_prefix$srcdir
 17520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 17521 esac
 17522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 17525   case $ac_mode in
 17526   :F)
 17528   # CONFIG_FILE
 17531   case $INSTALL in
 17532   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 17533   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 17534   esac
 17535 _ACEOF
 17537 cat >>$CONFIG_STATUS <<\_ACEOF
 17538 # If the template does not know about datarootdir, expand it.
 17539 # FIXME: This hack should be removed a few years after 2.60.
 17540 ac_datarootdir_hack=; ac_datarootdir_seen=
 17542 case `sed -n '/datarootdir/ {
 17546 /@datadir@/p
 17547 /@docdir@/p
 17548 /@infodir@/p
 17549 /@localedir@/p
 17550 /@mandir@/p
 17551 ' $ac_file_inputs` in
 17552 *datarootdir*) ac_datarootdir_seen=yes;;
 17553 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 17554   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 17555 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 17556 _ACEOF
 17557 cat >>$CONFIG_STATUS <<_ACEOF
 17558   ac_datarootdir_hack='
 17559   s&@datadir@&$datadir&g
 17560   s&@docdir@&$docdir&g
 17561   s&@infodir@&$infodir&g
 17562   s&@localedir@&$localedir&g
 17563   s&@mandir@&$mandir&g
 17564     s&\\\${datarootdir}&$datarootdir&g' ;;
 17565 esac
 17566 _ACEOF
 17568 # Neutralize VPATH when `$srcdir' = `.'.
 17569 # Shell code in configure.ac might set extrasub.
 17570 # FIXME: do we really want to maintain this feature?
 17571 cat >>$CONFIG_STATUS <<_ACEOF
 17572   sed "$ac_vpsub
 17573 $extrasub
 17574 _ACEOF
 17575 cat >>$CONFIG_STATUS <<\_ACEOF
 17576 :t
 17577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17578 s&@configure_input@&$configure_input&;t t
 17579 s&@top_builddir@&$ac_top_builddir_sub&;t t
 17580 s&@srcdir@&$ac_srcdir&;t t
 17581 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 17582 s&@top_srcdir@&$ac_top_srcdir&;t t
 17583 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 17584 s&@builddir@&$ac_builddir&;t t
 17585 s&@abs_builddir@&$ac_abs_builddir&;t t
 17586 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 17587 s&@INSTALL@&$ac_INSTALL&;t t
 17588 $ac_datarootdir_hack
 17589 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 17591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 17592   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 17593   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 17594   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17595 which seems to be undefined.  Please make sure it is defined." >&5
 17596 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17597 which seems to be undefined.  Please make sure it is defined." >&2;}
 17599   rm -f "$tmp/stdin"
 17600   case $ac_file in
 17601   -) cat "$tmp/out"; rm -f "$tmp/out";;
 17602   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 17603   esac
 17604  ;;
 17605   :H)
 17607   # CONFIG_HEADER
 17609 _ACEOF
 17611 # Transform confdefs.h into a sed script `conftest.defines', that
 17612 # substitutes the proper values into config.h.in to produce config.h.
 17613 rm -f conftest.defines conftest.tail
 17614 # First, append a space to every undef/define line, to ease matching.
 17615 echo 's/$/ /' >conftest.defines
 17616 # Then, protect against being on the right side of a sed subst, or in
 17617 # an unquoted here document, in config.status.  If some macros were
 17618 # called several times there might be several #defines for the same
 17619 # symbol, which is useless.  But do not sort them, since the last
 17620 # AC_DEFINE must be honored.
 17621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 17622 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 17623 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 17624 # PARAMS is the parameter list in the macro definition--in most cases, it's
 17625 # just an empty string.
 17626 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 17627 ac_dB='\\)[	 (].*,\\1define\\2'
 17628 ac_dC=' '
 17629 ac_dD=' ,'
 17631 uniq confdefs.h |
 17632   sed -n '
 17633 	t rset
 17634 	:rset
 17635 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 17636 	t ok
 17638 	:ok
 17639 	s/[\\&,]/\\&/g
 17640 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 17641 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 17642   ' >>conftest.defines
 17644 # Remove the space that was appended to ease matching.
 17645 # Then replace #undef with comments.  This is necessary, for
 17646 # example, in the case of _POSIX_SOURCE, which is predefined and required
 17647 # on some systems where configure will not decide to define it.
 17648 # (The regexp can be short, since the line contains either #define or #undef.)
 17649 echo 's/ $//
 17650 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 17652 # Break up conftest.defines:
 17653 ac_max_sed_lines=50
 17655 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 17656 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 17657 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 17658 # et cetera.
 17659 ac_in='$ac_file_inputs'
 17660 ac_out='"$tmp/out1"'
 17661 ac_nxt='"$tmp/out2"'
 17663 while :
 17664 do
 17665   # Write a here document:
 17666     cat >>$CONFIG_STATUS <<_ACEOF
 17667     # First, check the format of the line:
 17668     cat >"\$tmp/defines.sed" <<\\CEOF
 17669 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 17670 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 17672 :def
 17673 _ACEOF
 17674   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 17675   echo 'CEOF
 17676     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 17677   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 17678   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 17679   grep . conftest.tail >/dev/null || break
 17680   rm -f conftest.defines
 17681   mv conftest.tail conftest.defines
 17682 done
 17683 rm -f conftest.defines conftest.tail
 17685 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 17686 cat >>$CONFIG_STATUS <<\_ACEOF
 17687   if test x"$ac_file" != x-; then
 17688     echo "/* $configure_input  */" >"$tmp/config.h"
 17689     cat "$ac_result" >>"$tmp/config.h"
 17690     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 17691       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 17692 echo "$as_me: $ac_file is unchanged" >&6;}
 17693     else
 17694       rm -f $ac_file
 17695       mv "$tmp/config.h" $ac_file
 17696     fi
 17697   else
 17698     echo "/* $configure_input  */"
 17699     cat "$ac_result"
 17700   fi
 17701   rm -f "$tmp/out12"
 17702 # Compute $ac_file's index in $config_headers.
 17703 _am_stamp_count=1
 17704 for _am_header in $config_headers :; do
 17705   case $_am_header in
 17706     $ac_file | $ac_file:* )
 17707       break ;;
 17708     * )
 17709       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 17710   esac
 17711 done
 17712 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 17713 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17714 	 X$ac_file : 'X\(//\)[^/]' \| \
 17715 	 X$ac_file : 'X\(//\)$' \| \
 17716 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 17717 echo X$ac_file |
 17718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17719 	    s//\1/
 17722 	  /^X\(\/\/\)[^/].*/{
 17723 	    s//\1/
 17726 	  /^X\(\/\/\)$/{
 17727 	    s//\1/
 17730 	  /^X\(\/\).*/{
 17731 	    s//\1/
 17734 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 17735  ;;
 17737   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 17738 echo "$as_me: executing $ac_file commands" >&6;}
 17739  ;;
 17740   esac
 17743   case $ac_file$ac_mode in
 17744     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 17745   # Strip MF so we end up with the name of the file.
 17746   mf=`echo "$mf" | sed -e 's/:.*$//'`
 17747   # Check whether this is an Automake generated Makefile or not.
 17748   # We used to match only the files named `Makefile.in', but
 17749   # some people rename them; so instead we look at the file content.
 17750   # Grep'ing the first line is not enough: some people post-process
 17751   # each Makefile.in and add a new line on top of each file to say so.
 17752   # So let's grep whole file.
 17753   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 17754     dirpart=`$as_dirname -- "$mf" ||
 17755 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17756 	 X"$mf" : 'X\(//\)[^/]' \| \
 17757 	 X"$mf" : 'X\(//\)$' \| \
 17758 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 17759 echo X"$mf" |
 17760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17761 	    s//\1/
 17764 	  /^X\(\/\/\)[^/].*/{
 17765 	    s//\1/
 17768 	  /^X\(\/\/\)$/{
 17769 	    s//\1/
 17772 	  /^X\(\/\).*/{
 17773 	    s//\1/
 17776 	  s/.*/./; q'`
 17777   else
 17778     continue
 17779   fi
 17780   # Extract the definition of DEPDIR, am__include, and am__quote
 17781   # from the Makefile without running `make'.
 17782   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 17783   test -z "$DEPDIR" && continue
 17784   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 17785   test -z "am__include" && continue
 17786   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 17787   # When using ansi2knr, U may be empty or an underscore; expand it
 17788   U=`sed -n 's/^U = //p' < "$mf"`
 17789   # Find all dependency output files, they are included files with
 17790   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 17791   # simplest approach to changing $(DEPDIR) to its actual value in the
 17792   # expansion.
 17793   for file in `sed -n "
 17794     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 17795        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 17796     # Make sure the directory exists.
 17797     test -f "$dirpart/$file" && continue
 17798     fdir=`$as_dirname -- "$file" ||
 17799 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17800 	 X"$file" : 'X\(//\)[^/]' \| \
 17801 	 X"$file" : 'X\(//\)$' \| \
 17802 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 17803 echo X"$file" |
 17804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17805 	    s//\1/
 17808 	  /^X\(\/\/\)[^/].*/{
 17809 	    s//\1/
 17812 	  /^X\(\/\/\)$/{
 17813 	    s//\1/
 17816 	  /^X\(\/\).*/{
 17817 	    s//\1/
 17820 	  s/.*/./; q'`
 17821     { as_dir=$dirpart/$fdir
 17822   case $as_dir in #(
 17823   -*) as_dir=./$as_dir;;
 17824   esac
 17825   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17826     as_dirs=
 17827     while :; do
 17828       case $as_dir in #(
 17829       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17830       *) as_qdir=$as_dir;;
 17831       esac
 17832       as_dirs="'$as_qdir' $as_dirs"
 17833       as_dir=`$as_dirname -- "$as_dir" ||
 17834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17835 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17836 	 X"$as_dir" : 'X\(//\)$' \| \
 17837 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17838 echo X"$as_dir" |
 17839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17840 	    s//\1/
 17843 	  /^X\(\/\/\)[^/].*/{
 17844 	    s//\1/
 17847 	  /^X\(\/\/\)$/{
 17848 	    s//\1/
 17851 	  /^X\(\/\).*/{
 17852 	    s//\1/
 17855 	  s/.*/./; q'`
 17856       test -d "$as_dir" && break
 17857     done
 17858     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17859   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17861    { (exit 1); exit 1; }; }; }
 17862     # echo "creating $dirpart/$file"
 17863     echo '# dummy' > "$dirpart/$file"
 17864   done
 17865 done
 17866  ;;
 17867     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 17868         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 17869       esac ;;
 17871   esac
 17872 done # for ac_tag
 17875 { (exit 0); exit 0; }
 17876 _ACEOF
 17877 chmod +x $CONFIG_STATUS
 17878 ac_clean_files=$ac_clean_files_save
 17881 # configure is writing to config.log, and then calls config.status.
 17882 # config.status does its own redirection, appending to config.log.
 17883 # Unfortunately, on DOS this fails, as config.log is still kept open
 17884 # by configure, so config.status won't be able to write to it; its
 17885 # output is simply discarded.  So we exec the FD to /dev/null,
 17886 # effectively closing config.log, so it can be properly (re)opened and
 17887 # appended to by config.status.  When coming back to configure, we
 17888 # need to make the FD available again.
 17889 if test "$no_create" != yes; then
 17890   ac_cs_success=:
 17891   ac_config_status_args=
 17892   test "$silent" = yes &&
 17893     ac_config_status_args="$ac_config_status_args --quiet"
 17894   exec 5>/dev/null
 17895   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 17896   exec 5>>config.log
 17897   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 17898   # would make configure fail if this is the last instruction.
 17899   $ac_cs_success || { (exit 1); exit 1; }
 17900 fi
 17902 { as_dir=test/sh4
 17903   case $as_dir in #(
 17904   -*) as_dir=./$as_dir;;
 17905   esac
 17906   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17907     as_dirs=
 17908     while :; do
 17909       case $as_dir in #(
 17910       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17911       *) as_qdir=$as_dir;;
 17912       esac
 17913       as_dirs="'$as_qdir' $as_dirs"
 17914       as_dir=`$as_dirname -- "$as_dir" ||
 17915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17916 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17917 	 X"$as_dir" : 'X\(//\)$' \| \
 17918 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17919 echo X"$as_dir" |
 17920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17921 	    s//\1/
 17924 	  /^X\(\/\/\)[^/].*/{
 17925 	    s//\1/
 17928 	  /^X\(\/\/\)$/{
 17929 	    s//\1/
 17932 	  /^X\(\/\).*/{
 17933 	    s//\1/
 17936 	  s/.*/./; q'`
 17937       test -d "$as_dir" && break
 17938     done
 17939     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17940   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17941 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17942    { (exit 1); exit 1; }; }; }
 17945 echo
 17946 echo "Configuration complete"
 17947 echo
 17949 if test "x$UI_DRIVER" = x; then
 17950   echo "  User interface: none"
 17951 else
 17952   echo "  User interface: $UI_DRIVER"
 17953 fi
 17955 if test "x$SH4_TRANSLATOR" = "x"; then
 17956   echo "  SH4 translator: none (emulation core only)"
 17957 else
 17958   echo "  SH4 translator: $SH4_TRANSLATOR"
 17959 fi
 17961 if test "x$VIDEO_DRIVERS" = "x"; then
 17962    echo "  Video drivers: none (no supported GL found)"
 17963 else
 17964    echo "  Video drivers: $VIDEO_DRIVERS"
 17965 fi
 17967 if test "x$AUDIO_DRIVERS" = "x"; then
 17968    echo "  Audio drivers: none (no supported output devices found)"
 17969 else
 17970    echo "  Audio drivers: $AUDIO_DRIVERS"
 17971 fi
 17973 if test "x$INPUT_DRIVERS" = "x"; then
 17974    echo "  Input drivers: none (no supported input devices found)"
 17975 else
 17976    echo "  Input drivers: $INPUT_DRIVERS"
 17977 fi
 17979 if test "x$CDROM_DRIVER" = "x"; then
 17980    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 17981 else
 17982    echo "  CD-ROM driver:  $CDROM_DRIVER"
 17983 fi
.