Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1284:0db0a5e72698
prev1266:e6079b9c69ba
next1287:dac8f363f1fe
author nkeynes
date Tue Apr 17 21:53:55 2012 +1000 (12 years ago)
permissions -rwxr-xr-x
last change Set the android default directory to $SDCARD/lxdream instead of the /data
directory.
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 ANT
   686 ANDROID_ABI
   687 ANDROID_SDK_HOME
   688 ANDROID_NDK_HOME
   689 ANDROID_SDK_VERSION
   690 ANDROID_NDK_VERSION
   691 ANDROID_GDBSERVER
   692 GDB
   693 GUI_ANDROID_TRUE
   694 GUI_ANDROID_FALSE
   695 CC
   696 CFLAGS
   697 LDFLAGS
   698 CPPFLAGS
   699 ac_ct_CC
   700 EXEEXT
   701 OBJEXT
   702 DEPDIR
   703 am__include
   704 am__quote
   705 AMDEP_TRUE
   706 AMDEP_FALSE
   707 AMDEPBACKSLASH
   708 CCDEPMODE
   709 am__fastdepCC_TRUE
   710 am__fastdepCC_FALSE
   711 CPP
   712 CC
   713 CFLAGS
   714 CPPFLAGS
   715 CC_FOR_BUILD
   716 ac_ct_CC_FOR_BUILD
   717 CC_FOR_BUILDDEPMODE
   718 am__fastdepCC_FOR_BUILD_TRUE
   719 am__fastdepCC_FOR_BUILD_FALSE
   720 CPP
   721 CPPFLAGS
   722 CPP_FOR_BUILD
   723 BUILD_EXEEXT
   724 BUILD_OBJEXT
   725 CFLAGS_FOR_BUILD
   726 CPPFLAGS_FOR_BUILD
   727 OBJC
   728 OBJCFLAGS
   729 ac_ct_OBJC
   730 SED
   731 CCAS
   732 CCASFLAGS
   733 RANLIB
   734 GREP
   735 EGREP
   736 OBJCDEPMODE
   737 am__fastdepOBJC_TRUE
   738 am__fastdepOBJC_FALSE
   739 POD2MAN
   740 POD2HTML
   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 BUILD_SH4X86_TRUE
   772 BUILD_SH4X86_FALSE
   773 AUDIO_OSX_TRUE
   774 AUDIO_OSX_FALSE
   775 SDL_CFLAGS
   776 SDL_LIBS
   777 AUDIO_SDL_TRUE
   778 AUDIO_SDL_FALSE
   779 PULSE_CFLAGS
   780 PULSE_LIBS
   781 AUDIO_PULSE_TRUE
   782 AUDIO_PULSE_FALSE
   783 ESOUND_CFLAGS
   784 ESOUND_LIBS
   785 AUDIO_ESOUND_TRUE
   786 AUDIO_ESOUND_FALSE
   787 ALSA_CFLAGS
   788 ALSA_LIBS
   789 AUDIO_ALSA_TRUE
   790 AUDIO_ALSA_FALSE
   791 CDROM_LINUX_TRUE
   792 CDROM_LINUX_FALSE
   793 CDROM_OSX_TRUE
   794 CDROM_OSX_FALSE
   795 CDROM_NONE_TRUE
   796 CDROM_NONE_FALSE
   797 JOY_LINUX_TRUE
   798 JOY_LINUX_FALSE
   799 INPUT_LIRC_TRUE
   800 INPUT_LIRC_FALSE
   801 SHCC
   802 SHLD
   803 SHOBJCOPY
   804 ARMCC
   805 ARMLD
   806 ARMOBJCOPY
   807 BUILD_SYSTEST_TRUE
   808 BUILD_SYSTEST_FALSE
   809 BUILD_ARMTEST_TRUE
   810 BUILD_ARMTEST_FALSE
   811 LXDREAM_LIBS
   812 GETTEXT_PACKAGE
   813 USE_NLS
   814 MSGFMT
   815 MSGFMT_OPTS
   816 GMSGFMT
   817 XGETTEXT
   818 CATALOGS
   819 CATOBJEXT
   820 DATADIRNAME
   821 GMOFILES
   822 INSTOBJEXT
   823 INTLLIBS
   824 PO_IN_DATADIR_TRUE
   825 PO_IN_DATADIR_FALSE
   826 POFILES
   827 POSUB
   828 MKINSTALLDIRS
   829 LIBOBJS
   830 LTLIBOBJS'
   831 ac_subst_files=''
   832       ac_precious_vars='build_alias
   833 host_alias
   834 target_alias
   835 CC
   836 CFLAGS
   837 LDFLAGS
   838 LIBS
   839 CPPFLAGS
   840 CPP
   841 CC
   842 CFLAGS
   843 CPPFLAGS
   844 CPP
   845 CPPFLAGS
   846 OBJC
   847 OBJCFLAGS
   848 CCAS
   849 CCASFLAGS
   850 PKG_CONFIG
   851 LIBPNG_CFLAGS
   852 LIBPNG_LIBS
   853 GLIB_CFLAGS
   854 GLIB_LIBS
   855 GTK_CFLAGS
   856 GTK_LIBS
   857 GLIB_FOR_BUILD_CFLAGS
   858 GLIB_FOR_BUILD_LIBS
   859 LIBISOFS_CFLAGS
   860 LIBISOFS_LIBS
   861 LIBGL_CFLAGS
   862 LIBGL_LIBS
   863 SDL_CFLAGS
   864 SDL_LIBS
   865 PULSE_CFLAGS
   866 PULSE_LIBS
   867 ESOUND_CFLAGS
   868 ESOUND_LIBS
   869 ALSA_CFLAGS
   870 ALSA_LIBS'
   873 # Initialize some variables set by options.
   874 ac_init_help=
   875 ac_init_version=false
   876 # The variables have the same names as the options, with
   877 # dashes changed to underlines.
   878 cache_file=/dev/null
   879 exec_prefix=NONE
   880 no_create=
   881 no_recursion=
   882 prefix=NONE
   883 program_prefix=NONE
   884 program_suffix=NONE
   885 program_transform_name=s,x,x,
   886 silent=
   887 site=
   888 srcdir=
   889 verbose=
   890 x_includes=NONE
   891 x_libraries=NONE
   893 # Installation directory options.
   894 # These are left unexpanded so users can "make install exec_prefix=/foo"
   895 # and all the variables that are supposed to be based on exec_prefix
   896 # by default will actually change.
   897 # Use braces instead of parens because sh, perl, etc. also accept them.
   898 # (The list follows the same order as the GNU Coding Standards.)
   899 bindir='${exec_prefix}/bin'
   900 sbindir='${exec_prefix}/sbin'
   901 libexecdir='${exec_prefix}/libexec'
   902 datarootdir='${prefix}/share'
   903 datadir='${datarootdir}'
   904 sysconfdir='${prefix}/etc'
   905 sharedstatedir='${prefix}/com'
   906 localstatedir='${prefix}/var'
   907 includedir='${prefix}/include'
   908 oldincludedir='/usr/include'
   909 docdir='${datarootdir}/doc/${PACKAGE}'
   910 infodir='${datarootdir}/info'
   911 htmldir='${docdir}'
   912 dvidir='${docdir}'
   913 pdfdir='${docdir}'
   914 psdir='${docdir}'
   915 libdir='${exec_prefix}/lib'
   916 localedir='${datarootdir}/locale'
   917 mandir='${datarootdir}/man'
   919 ac_prev=
   920 ac_dashdash=
   921 for ac_option
   922 do
   923   # If the previous option needs an argument, assign it.
   924   if test -n "$ac_prev"; then
   925     eval $ac_prev=\$ac_option
   926     ac_prev=
   927     continue
   928   fi
   930   case $ac_option in
   931   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   932   *)	ac_optarg=yes ;;
   933   esac
   935   # Accept the important Cygnus configure options, so we can diagnose typos.
   937   case $ac_dashdash$ac_option in
   938   --)
   939     ac_dashdash=yes ;;
   941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   942     ac_prev=bindir ;;
   943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   944     bindir=$ac_optarg ;;
   946   -build | --build | --buil | --bui | --bu)
   947     ac_prev=build_alias ;;
   948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   949     build_alias=$ac_optarg ;;
   951   -cache-file | --cache-file | --cache-fil | --cache-fi \
   952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   953     ac_prev=cache_file ;;
   954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   956     cache_file=$ac_optarg ;;
   958   --config-cache | -C)
   959     cache_file=config.cache ;;
   961   -datadir | --datadir | --datadi | --datad)
   962     ac_prev=datadir ;;
   963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   964     datadir=$ac_optarg ;;
   966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   967   | --dataroo | --dataro | --datar)
   968     ac_prev=datarootdir ;;
   969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   971     datarootdir=$ac_optarg ;;
   973   -disable-* | --disable-*)
   974     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   975     # Reject names that are not valid shell variable names.
   976     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   977       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   978    { (exit 1); exit 1; }; }
   979     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   980     eval enable_$ac_feature=no ;;
   982   -docdir | --docdir | --docdi | --doc | --do)
   983     ac_prev=docdir ;;
   984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   985     docdir=$ac_optarg ;;
   987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   988     ac_prev=dvidir ;;
   989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   990     dvidir=$ac_optarg ;;
   992   -enable-* | --enable-*)
   993     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   994     # Reject names that are not valid shell variable names.
   995     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   997    { (exit 1); exit 1; }; }
   998     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   999     eval enable_$ac_feature=\$ac_optarg ;;
  1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1003   | --exec | --exe | --ex)
  1004     ac_prev=exec_prefix ;;
  1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1007   | --exec=* | --exe=* | --ex=*)
  1008     exec_prefix=$ac_optarg ;;
  1010   -gas | --gas | --ga | --g)
  1011     # Obsolete; use --with-gas.
  1012     with_gas=yes ;;
  1014   -help | --help | --hel | --he | -h)
  1015     ac_init_help=long ;;
  1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1017     ac_init_help=recursive ;;
  1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1019     ac_init_help=short ;;
  1021   -host | --host | --hos | --ho)
  1022     ac_prev=host_alias ;;
  1023   -host=* | --host=* | --hos=* | --ho=*)
  1024     host_alias=$ac_optarg ;;
  1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1027     ac_prev=htmldir ;;
  1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1029   | --ht=*)
  1030     htmldir=$ac_optarg ;;
  1032   -includedir | --includedir | --includedi | --included | --include \
  1033   | --includ | --inclu | --incl | --inc)
  1034     ac_prev=includedir ;;
  1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1037     includedir=$ac_optarg ;;
  1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1040     ac_prev=infodir ;;
  1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1042     infodir=$ac_optarg ;;
  1044   -libdir | --libdir | --libdi | --libd)
  1045     ac_prev=libdir ;;
  1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1047     libdir=$ac_optarg ;;
  1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1050   | --libexe | --libex | --libe)
  1051     ac_prev=libexecdir ;;
  1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1053   | --libexe=* | --libex=* | --libe=*)
  1054     libexecdir=$ac_optarg ;;
  1056   -localedir | --localedir | --localedi | --localed | --locale)
  1057     ac_prev=localedir ;;
  1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1059     localedir=$ac_optarg ;;
  1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1062   | --localstate | --localstat | --localsta | --localst | --locals)
  1063     ac_prev=localstatedir ;;
  1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1066     localstatedir=$ac_optarg ;;
  1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1069     ac_prev=mandir ;;
  1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1071     mandir=$ac_optarg ;;
  1073   -nfp | --nfp | --nf)
  1074     # Obsolete; use --without-fp.
  1075     with_fp=no ;;
  1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1078   | --no-cr | --no-c | -n)
  1079     no_create=yes ;;
  1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1083     no_recursion=yes ;;
  1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1087   | --oldin | --oldi | --old | --ol | --o)
  1088     ac_prev=oldincludedir ;;
  1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1092     oldincludedir=$ac_optarg ;;
  1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1095     ac_prev=prefix ;;
  1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1097     prefix=$ac_optarg ;;
  1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1100   | --program-pre | --program-pr | --program-p)
  1101     ac_prev=program_prefix ;;
  1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1104     program_prefix=$ac_optarg ;;
  1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1107   | --program-suf | --program-su | --program-s)
  1108     ac_prev=program_suffix ;;
  1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1111     program_suffix=$ac_optarg ;;
  1113   -program-transform-name | --program-transform-name \
  1114   | --program-transform-nam | --program-transform-na \
  1115   | --program-transform-n | --program-transform- \
  1116   | --program-transform | --program-transfor \
  1117   | --program-transfo | --program-transf \
  1118   | --program-trans | --program-tran \
  1119   | --progr-tra | --program-tr | --program-t)
  1120     ac_prev=program_transform_name ;;
  1121   -program-transform-name=* | --program-transform-name=* \
  1122   | --program-transform-nam=* | --program-transform-na=* \
  1123   | --program-transform-n=* | --program-transform-=* \
  1124   | --program-transform=* | --program-transfor=* \
  1125   | --program-transfo=* | --program-transf=* \
  1126   | --program-trans=* | --program-tran=* \
  1127   | --progr-tra=* | --program-tr=* | --program-t=*)
  1128     program_transform_name=$ac_optarg ;;
  1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1131     ac_prev=pdfdir ;;
  1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1133     pdfdir=$ac_optarg ;;
  1135   -psdir | --psdir | --psdi | --psd | --ps)
  1136     ac_prev=psdir ;;
  1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138     psdir=$ac_optarg ;;
  1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1141   | -silent | --silent | --silen | --sile | --sil)
  1142     silent=yes ;;
  1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1145     ac_prev=sbindir ;;
  1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1147   | --sbi=* | --sb=*)
  1148     sbindir=$ac_optarg ;;
  1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1152   | --sharedst | --shareds | --shared | --share | --shar \
  1153   | --sha | --sh)
  1154     ac_prev=sharedstatedir ;;
  1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1158   | --sha=* | --sh=*)
  1159     sharedstatedir=$ac_optarg ;;
  1161   -site | --site | --sit)
  1162     ac_prev=site ;;
  1163   -site=* | --site=* | --sit=*)
  1164     site=$ac_optarg ;;
  1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1167     ac_prev=srcdir ;;
  1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1169     srcdir=$ac_optarg ;;
  1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1172   | --syscon | --sysco | --sysc | --sys | --sy)
  1173     ac_prev=sysconfdir ;;
  1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1176     sysconfdir=$ac_optarg ;;
  1178   -target | --target | --targe | --targ | --tar | --ta | --t)
  1179     ac_prev=target_alias ;;
  1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1181     target_alias=$ac_optarg ;;
  1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1184     verbose=yes ;;
  1186   -version | --version | --versio | --versi | --vers | -V)
  1187     ac_init_version=: ;;
  1189   -with-* | --with-*)
  1190     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1191     # Reject names that are not valid shell variable names.
  1192     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1193       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1194    { (exit 1); exit 1; }; }
  1195     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1196     eval with_$ac_package=\$ac_optarg ;;
  1198   -without-* | --without-*)
  1199     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1200     # Reject names that are not valid shell variable names.
  1201     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1203    { (exit 1); exit 1; }; }
  1204     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1205     eval with_$ac_package=no ;;
  1207   --x)
  1208     # Obsolete; use --with-x.
  1209     with_x=yes ;;
  1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1212   | --x-incl | --x-inc | --x-in | --x-i)
  1213     ac_prev=x_includes ;;
  1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1216     x_includes=$ac_optarg ;;
  1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220     ac_prev=x_libraries ;;
  1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223     x_libraries=$ac_optarg ;;
  1225   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1226 Try \`$0 --help' for more information." >&2
  1227    { (exit 1); exit 1; }; }
  1228     ;;
  1230   *=*)
  1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1232     # Reject names that are not valid shell variable names.
  1233     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1234       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1235    { (exit 1); exit 1; }; }
  1236     eval $ac_envvar=\$ac_optarg
  1237     export $ac_envvar ;;
  1239   *)
  1240     # FIXME: should be removed in autoconf 3.0.
  1241     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1243       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1244     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1245     ;;
  1247   esac
  1248 done
  1250 if test -n "$ac_prev"; then
  1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1252   { echo "$as_me: error: missing argument to $ac_option" >&2
  1253    { (exit 1); exit 1; }; }
  1254 fi
  1256 # Be sure to have absolute directory names.
  1257 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1258 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1259 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1260 		libdir localedir mandir
  1261 do
  1262   eval ac_val=\$$ac_var
  1263   case $ac_val in
  1264     [\\/$]* | ?:[\\/]* )  continue;;
  1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1266   esac
  1267   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1268    { (exit 1); exit 1; }; }
  1269 done
  1271 # There might be people who depend on the old broken behavior: `$host'
  1272 # used to hold the argument of --host etc.
  1273 # FIXME: To remove some day.
  1274 build=$build_alias
  1275 host=$host_alias
  1276 target=$target_alias
  1278 # FIXME: To remove some day.
  1279 if test "x$host_alias" != x; then
  1280   if test "x$build_alias" = x; then
  1281     cross_compiling=maybe
  1282     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1283     If a cross compiler is detected then cross compile mode will be used." >&2
  1284   elif test "x$build_alias" != "x$host_alias"; then
  1285     cross_compiling=yes
  1286   fi
  1287 fi
  1289 ac_tool_prefix=
  1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1292 test "$silent" = yes && exec 6>/dev/null
  1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1296 ac_ls_di=`ls -di .` &&
  1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1298   { echo "$as_me: error: Working directory cannot be determined" >&2
  1299    { (exit 1); exit 1; }; }
  1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1301   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1302    { (exit 1); exit 1; }; }
  1305 # Find the source files, if location was not specified.
  1306 if test -z "$srcdir"; then
  1307   ac_srcdir_defaulted=yes
  1308   # Try the directory containing this script, then the parent directory.
  1309   ac_confdir=`$as_dirname -- "$0" ||
  1310 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1311 	 X"$0" : 'X\(//\)[^/]' \| \
  1312 	 X"$0" : 'X\(//\)$' \| \
  1313 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1314 echo X"$0" |
  1315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1316 	    s//\1/
  1319 	  /^X\(\/\/\)[^/].*/{
  1320 	    s//\1/
  1323 	  /^X\(\/\/\)$/{
  1324 	    s//\1/
  1327 	  /^X\(\/\).*/{
  1328 	    s//\1/
  1331 	  s/.*/./; q'`
  1332   srcdir=$ac_confdir
  1333   if test ! -r "$srcdir/$ac_unique_file"; then
  1334     srcdir=..
  1335   fi
  1336 else
  1337   ac_srcdir_defaulted=no
  1338 fi
  1339 if test ! -r "$srcdir/$ac_unique_file"; then
  1340   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1341   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1342    { (exit 1); exit 1; }; }
  1343 fi
  1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1345 ac_abs_confdir=`(
  1346 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1347    { (exit 1); exit 1; }; }
  1348 	pwd)`
  1349 # When building in place, set srcdir=.
  1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1351   srcdir=.
  1352 fi
  1353 # Remove unnecessary trailing slashes from srcdir.
  1354 # Double slashes in file names in object file debugging info
  1355 # mess up M-x gdb in Emacs.
  1356 case $srcdir in
  1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1358 esac
  1359 for ac_var in $ac_precious_vars; do
  1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1361   eval ac_env_${ac_var}_value=\$${ac_var}
  1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1364 done
  1367 # Report the --help message.
  1369 if test "$ac_init_help" = "long"; then
  1370   # Omit some internal or obsolete options to make the list less imposing.
  1371   # This message is too long to be a string in the A/UX 3.1 sh.
  1372   cat <<_ACEOF
  1373 \`configure' configures this package to adapt to many kinds of systems.
  1375 Usage: $0 [OPTION]... [VAR=VALUE]...
  1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1380 Defaults for the options are specified in brackets.
  1382 Configuration:
  1383   -h, --help              display this help and exit
  1384       --help=short        display options specific to this package
  1385       --help=recursive    display the short help of all the included packages
  1386   -V, --version           display version information and exit
  1387   -q, --quiet, --silent   do not print \`checking...' messages
  1388       --cache-file=FILE   cache test results in FILE [disabled]
  1389   -C, --config-cache      alias for \`--cache-file=config.cache'
  1390   -n, --no-create         do not create output files
  1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1393 Installation directories:
  1394   --prefix=PREFIX         install architecture-independent files in PREFIX
  1395 			  [$ac_default_prefix]
  1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1397 			  [PREFIX]
  1399 By default, \`make install' will install all the files in
  1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1402 for instance \`--prefix=\$HOME'.
  1404 For better control, use the options below.
  1406 Fine tuning of the installation directories:
  1407   --bindir=DIR           user executables [EPREFIX/bin]
  1408   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1409   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1410   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1411   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1412   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1413   --libdir=DIR           object code libraries [EPREFIX/lib]
  1414   --includedir=DIR       C header files [PREFIX/include]
  1415   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1416   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1417   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1418   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1419   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1420   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1421   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1422   --htmldir=DIR          html documentation [DOCDIR]
  1423   --dvidir=DIR           dvi documentation [DOCDIR]
  1424   --pdfdir=DIR           pdf documentation [DOCDIR]
  1425   --psdir=DIR            ps documentation [DOCDIR]
  1426 _ACEOF
  1428   cat <<\_ACEOF
  1430 Program names:
  1431   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1432   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1435 System types:
  1436   --build=BUILD     configure for building on BUILD [guessed]
  1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1438 _ACEOF
  1439 fi
  1441 if test -n "$ac_init_help"; then
  1443   cat <<\_ACEOF
  1445 Optional Features:
  1446   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1447   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1448   --enable-maintainer-mode  enable make rules and dependencies not useful
  1449 			  (and sometimes confusing) to the casual installer
  1450   --disable-dependency-tracking  speeds up one-time build
  1451   --enable-dependency-tracking   do not reject slow dependency extractors
  1452   --enable-strict-warn    Enable strict compilation warnings
  1453   --disable-translator    Disable the SH4 translator (Enabled by default)
  1454   --disable-optimized     Disable compile-time optimizations (Enabled by
  1455                           default)
  1456   --enable-shared         Build drivers as shared libraries (Enabled if
  1457                           available)
  1458   --enable-profiled       Enable profiling build
  1459   --enable-trace          Enable generation of IO traces (warning: hurts
  1460                           performance)
  1461   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1462                           performance)
  1463   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1465 Optional Packages:
  1466   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1467   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1468   --with-android=SDK      Specify the location of the Android SDK
  1469   --with-android-ndk=NDK  Specify the location of the Android NDK
  1470   --with-android-version  Specify target Android SDK version
  1471   --with-android-version  Specify target Android NDK version
  1472   --with-android-abi      Specify target Android ABI
  1473   --with-osmesa           Build with the osmesa GL library (software
  1474                           rendering)
  1475   --with-gtk              Build with the GTK UI. Default on X11 systems
  1476   --with-esd              Build with support for the ESounD audio system
  1477   --with-pulse            Build with support for the PulseAudio audio system
  1478   --with-sdl              Build with support for SDL audio
  1480 Some influential environment variables:
  1481   CC          C compiler command
  1482   CFLAGS      C compiler flags
  1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1484               nonstandard directory <lib dir>
  1485   LIBS        libraries to pass to the linker, e.g. -l<library>
  1486   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1487               you have headers in a nonstandard directory <include dir>
  1488   CPP         C preprocessor
  1489   OBJC        Objective C compiler command
  1490   OBJCFLAGS   Objective C compiler flags
  1491   CCAS        assembler compiler command (defaults to CC)
  1492   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1493   PKG_CONFIG  path to pkg-config utility
  1494   LIBPNG_CFLAGS
  1495               C compiler flags for LIBPNG, overriding pkg-config
  1496   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1497   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1498   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1499   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1500   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1501   GLIB_FOR_BUILD_CFLAGS
  1502               C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
  1503   GLIB_FOR_BUILD_LIBS
  1504               linker flags for GLIB_FOR_BUILD, overriding pkg-config
  1505   LIBISOFS_CFLAGS
  1506               C compiler flags for LIBISOFS, overriding pkg-config
  1507   LIBISOFS_LIBS
  1508               linker flags for LIBISOFS, overriding pkg-config
  1509   LIBGL_CFLAGS
  1510               C compiler flags for LIBGL, overriding pkg-config
  1511   LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
  1512   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
  1513   SDL_LIBS    linker flags for SDL, overriding pkg-config
  1514   PULSE_CFLAGS
  1515               C compiler flags for PULSE, overriding pkg-config
  1516   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1517   ESOUND_CFLAGS
  1518               C compiler flags for ESOUND, overriding pkg-config
  1519   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1520   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1521   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1523 Use these variables to override the choices made by `configure' or to help
  1524 it to find libraries and programs with nonstandard names/locations.
  1526 _ACEOF
  1527 ac_status=$?
  1528 fi
  1530 if test "$ac_init_help" = "recursive"; then
  1531   # If there are subdirs, report their specific --help.
  1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1533     test -d "$ac_dir" || continue
  1534     ac_builddir=.
  1536 case "$ac_dir" in
  1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1538 *)
  1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1540   # A ".." for each directory in $ac_dir_suffix.
  1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1542   case $ac_top_builddir_sub in
  1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1545   esac ;;
  1546 esac
  1547 ac_abs_top_builddir=$ac_pwd
  1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1549 # for backward compatibility:
  1550 ac_top_builddir=$ac_top_build_prefix
  1552 case $srcdir in
  1553   .)  # We are building in place.
  1554     ac_srcdir=.
  1555     ac_top_srcdir=$ac_top_builddir_sub
  1556     ac_abs_top_srcdir=$ac_pwd ;;
  1557   [\\/]* | ?:[\\/]* )  # Absolute name.
  1558     ac_srcdir=$srcdir$ac_dir_suffix;
  1559     ac_top_srcdir=$srcdir
  1560     ac_abs_top_srcdir=$srcdir ;;
  1561   *) # Relative name.
  1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1565 esac
  1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1568     cd "$ac_dir" || { ac_status=$?; continue; }
  1569     # Check for guested configure.
  1570     if test -f "$ac_srcdir/configure.gnu"; then
  1571       echo &&
  1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1573     elif test -f "$ac_srcdir/configure"; then
  1574       echo &&
  1575       $SHELL "$ac_srcdir/configure" --help=recursive
  1576     else
  1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1578     fi || ac_status=$?
  1579     cd "$ac_pwd" || { ac_status=$?; break; }
  1580   done
  1581 fi
  1583 test -n "$ac_init_help" && exit $ac_status
  1584 if $ac_init_version; then
  1585   cat <<\_ACEOF
  1586 configure
  1587 generated by GNU Autoconf 2.61
  1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1591 This configure script is free software; the Free Software Foundation
  1592 gives unlimited permission to copy, distribute and modify it.
  1593 _ACEOF
  1594   exit
  1595 fi
  1596 cat >config.log <<_ACEOF
  1597 This file contains any messages produced by compilers while
  1598 running configure, to aid debugging if configure makes a mistake.
  1600 It was created by $as_me, which was
  1601 generated by GNU Autoconf 2.61.  Invocation command line was
  1603   $ $0 $@
  1605 _ACEOF
  1606 exec 5>>config.log
  1608 cat <<_ASUNAME
  1609 ## --------- ##
  1610 ## Platform. ##
  1611 ## --------- ##
  1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1620 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1622 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1623 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1625 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1626 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1627 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1628 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1630 _ASUNAME
  1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1633 for as_dir in $PATH
  1634 do
  1635   IFS=$as_save_IFS
  1636   test -z "$as_dir" && as_dir=.
  1637   echo "PATH: $as_dir"
  1638 done
  1639 IFS=$as_save_IFS
  1641 } >&5
  1643 cat >&5 <<_ACEOF
  1646 ## ----------- ##
  1647 ## Core tests. ##
  1648 ## ----------- ##
  1650 _ACEOF
  1653 # Keep a trace of the command line.
  1654 # Strip out --no-create and --no-recursion so they do not pile up.
  1655 # Strip out --silent because we don't want to record it for future runs.
  1656 # Also quote any args containing shell meta-characters.
  1657 # Make two passes to allow for proper duplicate-argument suppression.
  1658 ac_configure_args=
  1659 ac_configure_args0=
  1660 ac_configure_args1=
  1661 ac_must_keep_next=false
  1662 for ac_pass in 1 2
  1663 do
  1664   for ac_arg
  1665   do
  1666     case $ac_arg in
  1667     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1668     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1669     | -silent | --silent | --silen | --sile | --sil)
  1670       continue ;;
  1671     *\'*)
  1672       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1673     esac
  1674     case $ac_pass in
  1675     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1676     2)
  1677       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1678       if test $ac_must_keep_next = true; then
  1679 	ac_must_keep_next=false # Got value, back to normal.
  1680       else
  1681 	case $ac_arg in
  1682 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1683 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1684 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1685 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1686 	    case "$ac_configure_args0 " in
  1687 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1688 	    esac
  1689 	    ;;
  1690 	  -* ) ac_must_keep_next=true ;;
  1691 	esac
  1692       fi
  1693       ac_configure_args="$ac_configure_args '$ac_arg'"
  1694       ;;
  1695     esac
  1696   done
  1697 done
  1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1701 # When interrupted or exit'd, cleanup temporary files, and complete
  1702 # config.log.  We remove comments because anyway the quotes in there
  1703 # would cause problems or look ugly.
  1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1706 trap 'exit_status=$?
  1707   # Save into config.log some information that might help in debugging.
  1709     echo
  1711     cat <<\_ASBOX
  1712 ## ---------------- ##
  1713 ## Cache variables. ##
  1714 ## ---------------- ##
  1715 _ASBOX
  1716     echo
  1717     # The following way of writing the cache mishandles newlines in values,
  1719   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1720     eval ac_val=\$$ac_var
  1721     case $ac_val in #(
  1722     *${as_nl}*)
  1723       case $ac_var in #(
  1724       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1726       esac
  1727       case $ac_var in #(
  1728       _ | IFS | as_nl) ;; #(
  1729       *) $as_unset $ac_var ;;
  1730       esac ;;
  1731     esac
  1732   done
  1733   (set) 2>&1 |
  1734     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1735     *${as_nl}ac_space=\ *)
  1736       sed -n \
  1737 	"s/'\''/'\''\\\\'\'''\''/g;
  1738 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1739       ;; #(
  1740     *)
  1741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1742       ;;
  1743     esac |
  1744     sort
  1746     echo
  1748     cat <<\_ASBOX
  1749 ## ----------------- ##
  1750 ## Output variables. ##
  1751 ## ----------------- ##
  1752 _ASBOX
  1753     echo
  1754     for ac_var in $ac_subst_vars
  1755     do
  1756       eval ac_val=\$$ac_var
  1757       case $ac_val in
  1758       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1759       esac
  1760       echo "$ac_var='\''$ac_val'\''"
  1761     done | sort
  1762     echo
  1764     if test -n "$ac_subst_files"; then
  1765       cat <<\_ASBOX
  1766 ## ------------------- ##
  1767 ## File substitutions. ##
  1768 ## ------------------- ##
  1769 _ASBOX
  1770       echo
  1771       for ac_var in $ac_subst_files
  1772       do
  1773 	eval ac_val=\$$ac_var
  1774 	case $ac_val in
  1775 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1776 	esac
  1777 	echo "$ac_var='\''$ac_val'\''"
  1778       done | sort
  1779       echo
  1780     fi
  1782     if test -s confdefs.h; then
  1783       cat <<\_ASBOX
  1784 ## ----------- ##
  1785 ## confdefs.h. ##
  1786 ## ----------- ##
  1787 _ASBOX
  1788       echo
  1789       cat confdefs.h
  1790       echo
  1791     fi
  1792     test "$ac_signal" != 0 &&
  1793       echo "$as_me: caught signal $ac_signal"
  1794     echo "$as_me: exit $exit_status"
  1795   } >&5
  1796   rm -f core *.core core.conftest.* &&
  1797     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1798     exit $exit_status
  1799 ' 0
  1800 for ac_signal in 1 2 13 15; do
  1801   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1802 done
  1803 ac_signal=0
  1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1806 rm -f -r conftest* confdefs.h
  1808 # Predefined preprocessor variables.
  1810 cat >>confdefs.h <<_ACEOF
  1811 #define PACKAGE_NAME "$PACKAGE_NAME"
  1812 _ACEOF
  1815 cat >>confdefs.h <<_ACEOF
  1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1817 _ACEOF
  1820 cat >>confdefs.h <<_ACEOF
  1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1822 _ACEOF
  1825 cat >>confdefs.h <<_ACEOF
  1826 #define PACKAGE_STRING "$PACKAGE_STRING"
  1827 _ACEOF
  1830 cat >>confdefs.h <<_ACEOF
  1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1832 _ACEOF
  1835 # Let the site file select an alternate cache file if it wants to.
  1836 # Prefer explicitly selected file to automatically selected ones.
  1837 if test -n "$CONFIG_SITE"; then
  1838   set x "$CONFIG_SITE"
  1839 elif test "x$prefix" != xNONE; then
  1840   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1841 else
  1842   set x "$ac_default_prefix/share/config.site" \
  1843 	"$ac_default_prefix/etc/config.site"
  1844 fi
  1845 shift
  1846 for ac_site_file
  1847 do
  1848   if test -r "$ac_site_file"; then
  1849     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1850 echo "$as_me: loading site script $ac_site_file" >&6;}
  1851     sed 's/^/| /' "$ac_site_file" >&5
  1852     . "$ac_site_file"
  1853   fi
  1854 done
  1856 if test -r "$cache_file"; then
  1857   # Some versions of bash will fail to source /dev/null (special
  1858   # files actually), so we avoid doing that.
  1859   if test -f "$cache_file"; then
  1860     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1861 echo "$as_me: loading cache $cache_file" >&6;}
  1862     case $cache_file in
  1863       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1864       *)                      . "./$cache_file";;
  1865     esac
  1866   fi
  1867 else
  1868   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1869 echo "$as_me: creating cache $cache_file" >&6;}
  1870   >$cache_file
  1871 fi
  1873 # Check that the precious variables saved in the cache have kept the same
  1874 # value.
  1875 ac_cache_corrupted=false
  1876 for ac_var in $ac_precious_vars; do
  1877   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1878   eval ac_new_set=\$ac_env_${ac_var}_set
  1879   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1880   eval ac_new_val=\$ac_env_${ac_var}_value
  1881   case $ac_old_set,$ac_new_set in
  1882     set,)
  1883       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1885       ac_cache_corrupted=: ;;
  1886     ,set)
  1887       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1889       ac_cache_corrupted=: ;;
  1890     ,);;
  1891     *)
  1892       if test "x$ac_old_val" != "x$ac_new_val"; then
  1893 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1895 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1896 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1897 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1898 echo "$as_me:   current value: $ac_new_val" >&2;}
  1899 	ac_cache_corrupted=:
  1900       fi;;
  1901   esac
  1902   # Pass precious variables to config.status.
  1903   if test "$ac_new_set" = set; then
  1904     case $ac_new_val in
  1905     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1906     *) ac_arg=$ac_var=$ac_new_val ;;
  1907     esac
  1908     case " $ac_configure_args " in
  1909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1910       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1911     esac
  1912   fi
  1913 done
  1914 if $ac_cache_corrupted; then
  1915   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1917   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1919    { (exit 1); exit 1; }; }
  1920 fi
  1938 ac_ext=c
  1939 ac_cpp='$CPP $CPPFLAGS'
  1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1945 am__api_version="1.9"
  1946 ac_aux_dir=
  1947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1948   if test -f "$ac_dir/install-sh"; then
  1949     ac_aux_dir=$ac_dir
  1950     ac_install_sh="$ac_aux_dir/install-sh -c"
  1951     break
  1952   elif test -f "$ac_dir/install.sh"; then
  1953     ac_aux_dir=$ac_dir
  1954     ac_install_sh="$ac_aux_dir/install.sh -c"
  1955     break
  1956   elif test -f "$ac_dir/shtool"; then
  1957     ac_aux_dir=$ac_dir
  1958     ac_install_sh="$ac_aux_dir/shtool install -c"
  1959     break
  1960   fi
  1961 done
  1962 if test -z "$ac_aux_dir"; then
  1963   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1965    { (exit 1); exit 1; }; }
  1966 fi
  1968 # These three variables are undocumented and unsupported,
  1969 # and are intended to be withdrawn in a future Autoconf release.
  1970 # They can cause serious problems if a builder's source tree is in a directory
  1971 # whose full name contains unusual characters.
  1972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1974 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1977 # Find a good install program.  We prefer a C program (faster),
  1978 # so one script is as good as another.  But avoid the broken or
  1979 # incompatible versions:
  1980 # SysV /etc/install, /usr/sbin/install
  1981 # SunOS /usr/etc/install
  1982 # IRIX /sbin/install
  1983 # AIX /bin/install
  1984 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1988 # OS/2's system install, which has a completely different semantic
  1989 # ./install, which can be erroneously created by make from ./install.sh.
  1990 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1992 if test -z "$INSTALL"; then
  1993 if test "${ac_cv_path_install+set}" = set; then
  1994   echo $ECHO_N "(cached) $ECHO_C" >&6
  1995 else
  1996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1997 for as_dir in $PATH
  1998 do
  1999   IFS=$as_save_IFS
  2000   test -z "$as_dir" && as_dir=.
  2001   # Account for people who put trailing slashes in PATH elements.
  2002 case $as_dir/ in
  2003   ./ | .// | /cC/* | \
  2004   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2005   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2006   /usr/ucb/* ) ;;
  2007   *)
  2008     # OSF1 and SCO ODT 3.0 have their own names for install.
  2009     # Don't use installbsd from OSF since it installs stuff as root
  2010     # by default.
  2011     for ac_prog in ginstall scoinst install; do
  2012       for ac_exec_ext in '' $ac_executable_extensions; do
  2013 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2014 	  if test $ac_prog = install &&
  2015 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2016 	    # AIX install.  It has an incompatible calling convention.
  2018 	  elif test $ac_prog = install &&
  2019 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2020 	    # program-specific install script used by HP pwplus--don't use.
  2022 	  else
  2023 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2024 	    break 3
  2025 	  fi
  2026 	fi
  2027       done
  2028     done
  2029     ;;
  2030 esac
  2031 done
  2032 IFS=$as_save_IFS
  2035 fi
  2036   if test "${ac_cv_path_install+set}" = set; then
  2037     INSTALL=$ac_cv_path_install
  2038   else
  2039     # As a last resort, use the slow shell script.  Don't cache a
  2040     # value for INSTALL within a source directory, because that will
  2041     # break other packages using the cache if that directory is
  2042     # removed, or if the value is a relative name.
  2043     INSTALL=$ac_install_sh
  2044   fi
  2045 fi
  2046 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2047 echo "${ECHO_T}$INSTALL" >&6; }
  2049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2050 # It thinks the first close brace ends the variable substitution.
  2051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2057 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2058 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2059 # Just in case
  2060 sleep 1
  2061 echo timestamp > conftest.file
  2062 # Do `set' in a subshell so we don't clobber the current shell's
  2063 # arguments.  Must try -L first in case configure is actually a
  2064 # symlink; some systems play weird games with the mod time of symlinks
  2065 # (eg FreeBSD returns the mod time of the symlink's containing
  2066 # directory).
  2067 if (
  2068    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2069    if test "$*" = "X"; then
  2070       # -L didn't work.
  2071       set X `ls -t $srcdir/configure conftest.file`
  2072    fi
  2073    rm -f conftest.file
  2074    if test "$*" != "X $srcdir/configure conftest.file" \
  2075       && test "$*" != "X conftest.file $srcdir/configure"; then
  2077       # If neither matched, then we have a broken ls.  This can happen
  2078       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2079       # broken ls alias from the environment.  This has actually
  2080       # happened.  Such a system could not be considered "sane".
  2081       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2082 alias in your environment" >&5
  2083 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2084 alias in your environment" >&2;}
  2085    { (exit 1); exit 1; }; }
  2086    fi
  2088    test "$2" = conftest.file
  2090 then
  2091    # Ok.
  2093 else
  2094    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2095 Check your system clock" >&5
  2096 echo "$as_me: error: newly created file is older than distributed files!
  2097 Check your system clock" >&2;}
  2098    { (exit 1); exit 1; }; }
  2099 fi
  2100 { echo "$as_me:$LINENO: result: yes" >&5
  2101 echo "${ECHO_T}yes" >&6; }
  2102 test "$program_prefix" != NONE &&
  2103   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2104 # Use a double $ so make ignores it.
  2105 test "$program_suffix" != NONE &&
  2106   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2107 # Double any \ or $.  echo might interpret backslashes.
  2108 # By default was `s,x,x', remove it if useless.
  2109 cat <<\_ACEOF >conftest.sed
  2110 s/[\\$]/&&/g;s/;s,x,x,$//
  2111 _ACEOF
  2112 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2113 rm -f conftest.sed
  2115 # expand $ac_aux_dir to an absolute path
  2116 am_aux_dir=`cd $ac_aux_dir && pwd`
  2118 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2119 # Use eval to expand $SHELL
  2120 if eval "$MISSING --run true"; then
  2121   am_missing_run="$MISSING --run "
  2122 else
  2123   am_missing_run=
  2124   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2125 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2126 fi
  2128 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2129   # We used to keeping the `.' as first argument, in order to
  2130   # allow $(mkdir_p) to be used without argument.  As in
  2131   #   $(mkdir_p) $(somedir)
  2132   # where $(somedir) is conditionally defined.  However this is wrong
  2133   # for two reasons:
  2134   #  1. if the package is installed by a user who cannot write `.'
  2135   #     make install will fail,
  2136   #  2. the above comment should most certainly read
  2137   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2138   #     so it does not work when $(somedir) is undefined and
  2139   #     $(DESTDIR) is not.
  2140   #  To support the latter case, we have to write
  2141   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2142   #  so the `.' trick is pointless.
  2143   mkdir_p='mkdir -p --'
  2144 else
  2145   # On NextStep and OpenStep, the `mkdir' command does not
  2146   # recognize any option.  It will interpret all options as
  2147   # directories to create, and then abort because `.' already
  2148   # exists.
  2149   for d in ./-p ./--version;
  2150   do
  2151     test -d $d && rmdir $d
  2152   done
  2153   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2154   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2155     mkdir_p='$(mkinstalldirs)'
  2156   else
  2157     mkdir_p='$(install_sh) -d'
  2158   fi
  2159 fi
  2161 for ac_prog in gawk mawk nawk awk
  2162 do
  2163   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2164 set dummy $ac_prog; ac_word=$2
  2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2167 if test "${ac_cv_prog_AWK+set}" = set; then
  2168   echo $ECHO_N "(cached) $ECHO_C" >&6
  2169 else
  2170   if test -n "$AWK"; then
  2171   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2172 else
  2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2174 for as_dir in $PATH
  2175 do
  2176   IFS=$as_save_IFS
  2177   test -z "$as_dir" && as_dir=.
  2178   for ac_exec_ext in '' $ac_executable_extensions; do
  2179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2180     ac_cv_prog_AWK="$ac_prog"
  2181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2182     break 2
  2183   fi
  2184 done
  2185 done
  2186 IFS=$as_save_IFS
  2188 fi
  2189 fi
  2190 AWK=$ac_cv_prog_AWK
  2191 if test -n "$AWK"; then
  2192   { echo "$as_me:$LINENO: result: $AWK" >&5
  2193 echo "${ECHO_T}$AWK" >&6; }
  2194 else
  2195   { echo "$as_me:$LINENO: result: no" >&5
  2196 echo "${ECHO_T}no" >&6; }
  2197 fi
  2200   test -n "$AWK" && break
  2201 done
  2203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2205 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2207   echo $ECHO_N "(cached) $ECHO_C" >&6
  2208 else
  2209   cat >conftest.make <<\_ACEOF
  2210 SHELL = /bin/sh
  2211 all:
  2212 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2213 _ACEOF
  2214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2216   *@@@%%%=?*=@@@%%%*)
  2217     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2218   *)
  2219     eval ac_cv_prog_make_${ac_make}_set=no;;
  2220 esac
  2221 rm -f conftest.make
  2222 fi
  2223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2224   { echo "$as_me:$LINENO: result: yes" >&5
  2225 echo "${ECHO_T}yes" >&6; }
  2226   SET_MAKE=
  2227 else
  2228   { echo "$as_me:$LINENO: result: no" >&5
  2229 echo "${ECHO_T}no" >&6; }
  2230   SET_MAKE="MAKE=${MAKE-make}"
  2231 fi
  2233 rm -rf .tst 2>/dev/null
  2234 mkdir .tst 2>/dev/null
  2235 if test -d .tst; then
  2236   am__leading_dot=.
  2237 else
  2238   am__leading_dot=_
  2239 fi
  2240 rmdir .tst 2>/dev/null
  2242 # test to see if srcdir already configured
  2243 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2244    test -f $srcdir/config.status; then
  2245   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2246 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2247    { (exit 1); exit 1; }; }
  2248 fi
  2250 # test whether we have cygpath
  2251 if test -z "$CYGPATH_W"; then
  2252   if (cygpath --version) >/dev/null 2>/dev/null; then
  2253     CYGPATH_W='cygpath -w'
  2254   else
  2255     CYGPATH_W=echo
  2256   fi
  2257 fi
  2260 # Define the identity of the package.
  2261  PACKAGE=lxdream
  2262  VERSION=0.9.1
  2265 cat >>confdefs.h <<_ACEOF
  2266 #define PACKAGE "$PACKAGE"
  2267 _ACEOF
  2270 cat >>confdefs.h <<_ACEOF
  2271 #define VERSION "$VERSION"
  2272 _ACEOF
  2274 # Some tools Automake needs.
  2276 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2279 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2282 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2285 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2288 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2290 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2292 # Installed binaries are usually stripped using `strip' when the user
  2293 # run `make install-strip'.  However `strip' might not be the right
  2294 # tool to use in cross-compilation environments, therefore Automake
  2295 # will honor the `STRIP' environment variable to overrule this program.
  2296 if test "$cross_compiling" != no; then
  2297   if test -n "$ac_tool_prefix"; then
  2298   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2299 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2302 if test "${ac_cv_prog_STRIP+set}" = set; then
  2303   echo $ECHO_N "(cached) $ECHO_C" >&6
  2304 else
  2305   if test -n "$STRIP"; then
  2306   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2307 else
  2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309 for as_dir in $PATH
  2310 do
  2311   IFS=$as_save_IFS
  2312   test -z "$as_dir" && as_dir=.
  2313   for ac_exec_ext in '' $ac_executable_extensions; do
  2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2315     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2317     break 2
  2318   fi
  2319 done
  2320 done
  2321 IFS=$as_save_IFS
  2323 fi
  2324 fi
  2325 STRIP=$ac_cv_prog_STRIP
  2326 if test -n "$STRIP"; then
  2327   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2328 echo "${ECHO_T}$STRIP" >&6; }
  2329 else
  2330   { echo "$as_me:$LINENO: result: no" >&5
  2331 echo "${ECHO_T}no" >&6; }
  2332 fi
  2335 fi
  2336 if test -z "$ac_cv_prog_STRIP"; then
  2337   ac_ct_STRIP=$STRIP
  2338   # Extract the first word of "strip", so it can be a program name with args.
  2339 set dummy strip; ac_word=$2
  2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2342 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2343   echo $ECHO_N "(cached) $ECHO_C" >&6
  2344 else
  2345   if test -n "$ac_ct_STRIP"; then
  2346   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2347 else
  2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349 for as_dir in $PATH
  2350 do
  2351   IFS=$as_save_IFS
  2352   test -z "$as_dir" && as_dir=.
  2353   for ac_exec_ext in '' $ac_executable_extensions; do
  2354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2355     ac_cv_prog_ac_ct_STRIP="strip"
  2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2357     break 2
  2358   fi
  2359 done
  2360 done
  2361 IFS=$as_save_IFS
  2363 fi
  2364 fi
  2365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2366 if test -n "$ac_ct_STRIP"; then
  2367   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2368 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2369 else
  2370   { echo "$as_me:$LINENO: result: no" >&5
  2371 echo "${ECHO_T}no" >&6; }
  2372 fi
  2374   if test "x$ac_ct_STRIP" = x; then
  2375     STRIP=":"
  2376   else
  2377     case $cross_compiling:$ac_tool_warned in
  2378 yes:)
  2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2380 whose name does not start with the host triplet.  If you think this
  2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2382 echo "$as_me: 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." >&2;}
  2385 ac_tool_warned=yes ;;
  2386 esac
  2387     STRIP=$ac_ct_STRIP
  2388   fi
  2389 else
  2390   STRIP="$ac_cv_prog_STRIP"
  2391 fi
  2393 fi
  2394 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2396 # We need awk for the "check" target.  The system "awk" is bad on
  2397 # some platforms.
  2398 # Always define AMTAR for backward compatibility.
  2400 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2402 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2408 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2409 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2410     # Check whether --enable-maintainer-mode was given.
  2411 if test "${enable_maintainer_mode+set}" = set; then
  2412   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2413 else
  2414   USE_MAINTAINER_MODE=no
  2415 fi
  2417   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2418 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2421 if test $USE_MAINTAINER_MODE = yes; then
  2422   MAINTAINER_MODE_TRUE=
  2423   MAINTAINER_MODE_FALSE='#'
  2424 else
  2425   MAINTAINER_MODE_TRUE='#'
  2426   MAINTAINER_MODE_FALSE=
  2427 fi
  2429   MAINT=$MAINTAINER_MODE_TRUE
  2432 ac_config_headers="$ac_config_headers config.h"
  2435 # Make sure we can run config.sub.
  2436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2437   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2438 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2439    { (exit 1); exit 1; }; }
  2441 { echo "$as_me:$LINENO: checking build system type" >&5
  2442 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2443 if test "${ac_cv_build+set}" = set; then
  2444   echo $ECHO_N "(cached) $ECHO_C" >&6
  2445 else
  2446   ac_build_alias=$build_alias
  2447 test "x$ac_build_alias" = x &&
  2448   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2449 test "x$ac_build_alias" = x &&
  2450   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2452    { (exit 1); exit 1; }; }
  2453 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2454   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2455 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2456    { (exit 1); exit 1; }; }
  2458 fi
  2459 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2460 echo "${ECHO_T}$ac_cv_build" >&6; }
  2461 case $ac_cv_build in
  2462 *-*-*) ;;
  2463 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2464 echo "$as_me: error: invalid value of canonical build" >&2;}
  2465    { (exit 1); exit 1; }; };;
  2466 esac
  2467 build=$ac_cv_build
  2468 ac_save_IFS=$IFS; IFS='-'
  2469 set x $ac_cv_build
  2470 shift
  2471 build_cpu=$1
  2472 build_vendor=$2
  2473 shift; shift
  2474 # Remember, the first character of IFS is used to create $*,
  2475 # except with old shells:
  2476 build_os=$*
  2477 IFS=$ac_save_IFS
  2478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2481 { echo "$as_me:$LINENO: checking host system type" >&5
  2482 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2483 if test "${ac_cv_host+set}" = set; then
  2484   echo $ECHO_N "(cached) $ECHO_C" >&6
  2485 else
  2486   if test "x$host_alias" = x; then
  2487   ac_cv_host=$ac_cv_build
  2488 else
  2489   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2490     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2491 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2492    { (exit 1); exit 1; }; }
  2493 fi
  2495 fi
  2496 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2497 echo "${ECHO_T}$ac_cv_host" >&6; }
  2498 case $ac_cv_host in
  2499 *-*-*) ;;
  2500 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2501 echo "$as_me: error: invalid value of canonical host" >&2;}
  2502    { (exit 1); exit 1; }; };;
  2503 esac
  2504 host=$ac_cv_host
  2505 ac_save_IFS=$IFS; IFS='-'
  2506 set x $ac_cv_host
  2507 shift
  2508 host_cpu=$1
  2509 host_vendor=$2
  2510 shift; shift
  2511 # Remember, the first character of IFS is used to create $*,
  2512 # except with old shells:
  2513 host_os=$*
  2514 IFS=$ac_save_IFS
  2515 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2526 # LX_ANDROID_BUILD
  2527 # Defines --with-android, --with-android-ndk, and --with-android-version
  2528 # If specified, checks for a working install, and sets build parameters
  2529 # appropriately for an Android host.
  2535 # Check whether --with-android was given.
  2536 if test "${with_android+set}" = set; then
  2537   withval=$with_android;
  2538 fi
  2541 # Check whether --with-android-ndk was given.
  2542 if test "${with_android_ndk+set}" = set; then
  2543   withval=$with_android_ndk;
  2544 fi
  2547 # Check whether --with-android-version was given.
  2548 if test "${with_android_version+set}" = set; then
  2549   withval=$with_android_version;
  2550 else
  2551   with_android_version="android-11"
  2552 fi
  2555 # Check whether --with-android-ndk-version was given.
  2556 if test "${with_android_ndk_version+set}" = set; then
  2557   withval=$with_android_ndk_version;
  2558 else
  2559   with_ndk_version="android-9"
  2560 fi
  2563 # Check whether --with-android-abi was given.
  2564 if test "${with_android_abi+set}" = set; then
  2565   withval=$with_android_abi;
  2566 else
  2567   ANDROID_ABI="armeabi-v7a"
  2568 fi
  2571    if test "x$with_android" != "x"; then
  2572       if test "$with_android" = "yes"; then
  2573          { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
  2574 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
  2575    { (exit 1); exit 1; }; }
  2576       fi
  2577       if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
  2578          { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
  2579 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
  2580    { (exit 1); exit 1; }; }
  2581       fi
  2583       ANDROID_SDK_HOME="$with_android"
  2584       ANDROID_NDK_HOME="$with_android_ndk"
  2585       ANDROID_SDK_VERSION="$with_android_version"
  2586       ANDROID_NDK_VERSION="$with_ndk_version"
  2588       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
  2589 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
  2590 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
  2591 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2592   echo $ECHO_N "(cached) $ECHO_C" >&6
  2593 else
  2594   test "$cross_compiling" = yes &&
  2595   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2596 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2597    { (exit 1); exit 1; }; }
  2598 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
  2599   eval "$as_ac_File=yes"
  2600 else
  2601   eval "$as_ac_File=no"
  2602 fi
  2603 fi
  2604 ac_res=`eval echo '${'$as_ac_File'}'`
  2605 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2606 echo "${ECHO_T}$ac_res" >&6; }
  2607 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2609 else
  2610    { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
  2611 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
  2612    { (exit 1); exit 1; }; }
  2613 fi
  2615       as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
  2616 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
  2617 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
  2618 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2619   echo $ECHO_N "(cached) $ECHO_C" >&6
  2620 else
  2621   test "$cross_compiling" = yes &&
  2622   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2623 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2624    { (exit 1); exit 1; }; }
  2625 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
  2626   eval "$as_ac_File=yes"
  2627 else
  2628   eval "$as_ac_File=no"
  2629 fi
  2630 fi
  2631 ac_res=`eval echo '${'$as_ac_File'}'`
  2632 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2633 echo "${ECHO_T}$ac_res" >&6; }
  2634 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2636 else
  2637    { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
  2638 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
  2639    { (exit 1); exit 1; }; }
  2640 fi
  2642       as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
  2643 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
  2644 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
  2645 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  2646   echo $ECHO_N "(cached) $ECHO_C" >&6
  2647 else
  2648   test "$cross_compiling" = yes &&
  2649   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  2650 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  2651    { (exit 1); exit 1; }; }
  2652 if test -r "$ANDROID_NDK_HOME/toolchains"; then
  2653   eval "$as_ac_File=yes"
  2654 else
  2655   eval "$as_ac_File=no"
  2656 fi
  2657 fi
  2658 ac_res=`eval echo '${'$as_ac_File'}'`
  2659 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  2660 echo "${ECHO_T}$ac_res" >&6; }
  2661 if test `eval echo '${'$as_ac_File'}'` = yes; then
  2663 else
  2664    { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
  2665 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
  2666    { (exit 1); exit 1; }; }
  2667 fi
  2670             TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
  2672       case $ANDROID_ABI in
  2673          armeabi | armeabi-v7a)
  2674             host_alias="arm-linux-androideabi"
  2675             host_cpu="arm"
  2676             host_vendor="unknown";
  2677             host_os="linux-androideabi"
  2678             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
  2679             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
  2680             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
  2681                         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__"
  2682             if test "x$with_abi" = "armeabi"; then
  2683                 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
  2684             else
  2685                 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
  2686             fi
  2687             ;;
  2688          x86)
  2689             host_alias="i686-android-linux"
  2690             host_cpu="i686"
  2691             host_vendor="android"
  2692             host_os="linux"
  2693             ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
  2694             ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
  2695             ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
  2696             TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
  2697             ;;
  2698          *)
  2699             { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
  2700 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
  2701    { (exit 1); exit 1; }; }
  2702       	    ;;
  2703       esac
  2705       # Extract the first word of "ant ", so it can be a program name with args.
  2706 set dummy ant ; ac_word=$2
  2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2709 if test "${ac_cv_path_ANT+set}" = set; then
  2710   echo $ECHO_N "(cached) $ECHO_C" >&6
  2711 else
  2712   case $ANT in
  2713   [\\/]* | ?:[\\/]*)
  2714   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  2715   ;;
  2716   *)
  2717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718 for as_dir in $PATH
  2719 do
  2720   IFS=$as_save_IFS
  2721   test -z "$as_dir" && as_dir=.
  2722   for ac_exec_ext in '' $ac_executable_extensions; do
  2723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2724     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  2725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726     break 2
  2727   fi
  2728 done
  2729 done
  2730 IFS=$as_save_IFS
  2732   ;;
  2733 esac
  2734 fi
  2735 ANT=$ac_cv_path_ANT
  2736 if test -n "$ANT"; then
  2737   { echo "$as_me:$LINENO: result: $ANT" >&5
  2738 echo "${ECHO_T}$ANT" >&6; }
  2739 else
  2740   { echo "$as_me:$LINENO: result: no" >&5
  2741 echo "${ECHO_T}no" >&6; }
  2742 fi
  2746       CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
  2747       CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
  2748       CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
  2749       LD="$ANDROID_NDK_BIN/${host_alias}-ld"
  2750       AR="$ANDROID_NDK_BIN/${host_alias}-ar"
  2751       GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
  2752       RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
  2753       STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
  2754       OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
  2755       CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
  2756       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"
  2757       LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
  2767       ANDROID_BUILD=yes
  2768       cross_compiling=yes
  2769    fi
  2773 if test "$ANDROID_BUILD" = "yes"; then
  2774   GUI_ANDROID_TRUE=
  2775   GUI_ANDROID_FALSE='#'
  2776 else
  2777   GUI_ANDROID_TRUE='#'
  2778   GUI_ANDROID_FALSE=
  2779 fi
  2784 DEPDIR="${am__leading_dot}deps"
  2786 ac_config_commands="$ac_config_commands depfiles"
  2789 am_make=${MAKE-make}
  2790 cat > confinc << 'END'
  2791 am__doit:
  2792 	@echo done
  2793 .PHONY: am__doit
  2794 END
  2795 # If we don't find an include directive, just comment out the code.
  2796 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2797 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2798 am__include="#"
  2799 am__quote=
  2800 _am_result=none
  2801 # First try GNU make style include.
  2802 echo "include confinc" > confmf
  2803 # We grep out `Entering directory' and `Leaving directory'
  2804 # messages which can occur if `w' ends up in MAKEFLAGS.
  2805 # In particular we don't look at `^make:' because GNU make might
  2806 # be invoked under some other name (usually "gmake"), in which
  2807 # case it prints its new name instead of `make'.
  2808 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2809    am__include=include
  2810    am__quote=
  2811    _am_result=GNU
  2812 fi
  2813 # Now try BSD make style include.
  2814 if test "$am__include" = "#"; then
  2815    echo '.include "confinc"' > confmf
  2816    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2817       am__include=.include
  2818       am__quote="\""
  2819       _am_result=BSD
  2820    fi
  2821 fi
  2824 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2825 echo "${ECHO_T}$_am_result" >&6; }
  2826 rm -f confinc confmf
  2828 # Check whether --enable-dependency-tracking was given.
  2829 if test "${enable_dependency_tracking+set}" = set; then
  2830   enableval=$enable_dependency_tracking;
  2831 fi
  2833 if test "x$enable_dependency_tracking" != xno; then
  2834   am_depcomp="$ac_aux_dir/depcomp"
  2835   AMDEPBACKSLASH='\'
  2836 fi
  2839 if test "x$enable_dependency_tracking" != xno; then
  2840   AMDEP_TRUE=
  2841   AMDEP_FALSE='#'
  2842 else
  2843   AMDEP_TRUE='#'
  2844   AMDEP_FALSE=
  2845 fi
  2849 ac_ext=c
  2850 ac_cpp='$CPP $CPPFLAGS'
  2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2854 if test -n "$ac_tool_prefix"; then
  2855   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2859 if test "${ac_cv_prog_CC+set}" = set; then
  2860   echo $ECHO_N "(cached) $ECHO_C" >&6
  2861 else
  2862   if test -n "$CC"; then
  2863   ac_cv_prog_CC="$CC" # Let the user override the test.
  2864 else
  2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866 for as_dir in $PATH
  2867 do
  2868   IFS=$as_save_IFS
  2869   test -z "$as_dir" && as_dir=.
  2870   for ac_exec_ext in '' $ac_executable_extensions; do
  2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2872     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874     break 2
  2875   fi
  2876 done
  2877 done
  2878 IFS=$as_save_IFS
  2880 fi
  2881 fi
  2882 CC=$ac_cv_prog_CC
  2883 if test -n "$CC"; then
  2884   { echo "$as_me:$LINENO: result: $CC" >&5
  2885 echo "${ECHO_T}$CC" >&6; }
  2886 else
  2887   { echo "$as_me:$LINENO: result: no" >&5
  2888 echo "${ECHO_T}no" >&6; }
  2889 fi
  2892 fi
  2893 if test -z "$ac_cv_prog_CC"; then
  2894   ac_ct_CC=$CC
  2895   # Extract the first word of "gcc", so it can be a program name with args.
  2896 set dummy gcc; ac_word=$2
  2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2900   echo $ECHO_N "(cached) $ECHO_C" >&6
  2901 else
  2902   if test -n "$ac_ct_CC"; then
  2903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2904 else
  2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906 for as_dir in $PATH
  2907 do
  2908   IFS=$as_save_IFS
  2909   test -z "$as_dir" && as_dir=.
  2910   for ac_exec_ext in '' $ac_executable_extensions; do
  2911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2912     ac_cv_prog_ac_ct_CC="gcc"
  2913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2914     break 2
  2915   fi
  2916 done
  2917 done
  2918 IFS=$as_save_IFS
  2920 fi
  2921 fi
  2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2923 if test -n "$ac_ct_CC"; then
  2924   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2925 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2926 else
  2927   { echo "$as_me:$LINENO: result: no" >&5
  2928 echo "${ECHO_T}no" >&6; }
  2929 fi
  2931   if test "x$ac_ct_CC" = x; then
  2932     CC=""
  2933   else
  2934     case $cross_compiling:$ac_tool_warned in
  2935 yes:)
  2936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2937 whose name does not start with the host triplet.  If you think this
  2938 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2940 whose name does not start with the host triplet.  If you think this
  2941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2942 ac_tool_warned=yes ;;
  2943 esac
  2944     CC=$ac_ct_CC
  2945   fi
  2946 else
  2947   CC="$ac_cv_prog_CC"
  2948 fi
  2950 if test -z "$CC"; then
  2951           if test -n "$ac_tool_prefix"; then
  2952     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2956 if test "${ac_cv_prog_CC+set}" = set; then
  2957   echo $ECHO_N "(cached) $ECHO_C" >&6
  2958 else
  2959   if test -n "$CC"; then
  2960   ac_cv_prog_CC="$CC" # Let the user override the test.
  2961 else
  2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963 for as_dir in $PATH
  2964 do
  2965   IFS=$as_save_IFS
  2966   test -z "$as_dir" && as_dir=.
  2967   for ac_exec_ext in '' $ac_executable_extensions; do
  2968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2969     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971     break 2
  2972   fi
  2973 done
  2974 done
  2975 IFS=$as_save_IFS
  2977 fi
  2978 fi
  2979 CC=$ac_cv_prog_CC
  2980 if test -n "$CC"; then
  2981   { echo "$as_me:$LINENO: result: $CC" >&5
  2982 echo "${ECHO_T}$CC" >&6; }
  2983 else
  2984   { echo "$as_me:$LINENO: result: no" >&5
  2985 echo "${ECHO_T}no" >&6; }
  2986 fi
  2989   fi
  2990 fi
  2991 if test -z "$CC"; then
  2992   # Extract the first word of "cc", so it can be a program name with args.
  2993 set dummy cc; ac_word=$2
  2994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2996 if test "${ac_cv_prog_CC+set}" = set; then
  2997   echo $ECHO_N "(cached) $ECHO_C" >&6
  2998 else
  2999   if test -n "$CC"; then
  3000   ac_cv_prog_CC="$CC" # Let the user override the test.
  3001 else
  3002   ac_prog_rejected=no
  3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3004 for as_dir in $PATH
  3005 do
  3006   IFS=$as_save_IFS
  3007   test -z "$as_dir" && as_dir=.
  3008   for ac_exec_ext in '' $ac_executable_extensions; do
  3009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3010     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3011        ac_prog_rejected=yes
  3012        continue
  3013      fi
  3014     ac_cv_prog_CC="cc"
  3015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3016     break 2
  3017   fi
  3018 done
  3019 done
  3020 IFS=$as_save_IFS
  3022 if test $ac_prog_rejected = yes; then
  3023   # We found a bogon in the path, so make sure we never use it.
  3024   set dummy $ac_cv_prog_CC
  3025   shift
  3026   if test $# != 0; then
  3027     # We chose a different compiler from the bogus one.
  3028     # However, it has the same basename, so the bogon will be chosen
  3029     # first if we set CC to just the basename; use the full file name.
  3030     shift
  3031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3032   fi
  3033 fi
  3034 fi
  3035 fi
  3036 CC=$ac_cv_prog_CC
  3037 if test -n "$CC"; then
  3038   { echo "$as_me:$LINENO: result: $CC" >&5
  3039 echo "${ECHO_T}$CC" >&6; }
  3040 else
  3041   { echo "$as_me:$LINENO: result: no" >&5
  3042 echo "${ECHO_T}no" >&6; }
  3043 fi
  3046 fi
  3047 if test -z "$CC"; then
  3048   if test -n "$ac_tool_prefix"; then
  3049   for ac_prog in cl.exe
  3050   do
  3051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3055 if test "${ac_cv_prog_CC+set}" = set; then
  3056   echo $ECHO_N "(cached) $ECHO_C" >&6
  3057 else
  3058   if test -n "$CC"; then
  3059   ac_cv_prog_CC="$CC" # Let the user override the test.
  3060 else
  3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3062 for as_dir in $PATH
  3063 do
  3064   IFS=$as_save_IFS
  3065   test -z "$as_dir" && as_dir=.
  3066   for ac_exec_ext in '' $ac_executable_extensions; do
  3067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3068     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3070     break 2
  3071   fi
  3072 done
  3073 done
  3074 IFS=$as_save_IFS
  3076 fi
  3077 fi
  3078 CC=$ac_cv_prog_CC
  3079 if test -n "$CC"; then
  3080   { echo "$as_me:$LINENO: result: $CC" >&5
  3081 echo "${ECHO_T}$CC" >&6; }
  3082 else
  3083   { echo "$as_me:$LINENO: result: no" >&5
  3084 echo "${ECHO_T}no" >&6; }
  3085 fi
  3088     test -n "$CC" && break
  3089   done
  3090 fi
  3091 if test -z "$CC"; then
  3092   ac_ct_CC=$CC
  3093   for ac_prog in cl.exe
  3094 do
  3095   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3096 set dummy $ac_prog; ac_word=$2
  3097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3100   echo $ECHO_N "(cached) $ECHO_C" >&6
  3101 else
  3102   if test -n "$ac_ct_CC"; then
  3103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3104 else
  3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106 for as_dir in $PATH
  3107 do
  3108   IFS=$as_save_IFS
  3109   test -z "$as_dir" && as_dir=.
  3110   for ac_exec_ext in '' $ac_executable_extensions; do
  3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3112     ac_cv_prog_ac_ct_CC="$ac_prog"
  3113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114     break 2
  3115   fi
  3116 done
  3117 done
  3118 IFS=$as_save_IFS
  3120 fi
  3121 fi
  3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3123 if test -n "$ac_ct_CC"; then
  3124   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3125 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3126 else
  3127   { echo "$as_me:$LINENO: result: no" >&5
  3128 echo "${ECHO_T}no" >&6; }
  3129 fi
  3132   test -n "$ac_ct_CC" && break
  3133 done
  3135   if test "x$ac_ct_CC" = x; then
  3136     CC=""
  3137   else
  3138     case $cross_compiling:$ac_tool_warned in
  3139 yes:)
  3140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3141 whose name does not start with the host triplet.  If you think this
  3142 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3144 whose name does not start with the host triplet.  If you think this
  3145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3146 ac_tool_warned=yes ;;
  3147 esac
  3148     CC=$ac_ct_CC
  3149   fi
  3150 fi
  3152 fi
  3155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3156 See \`config.log' for more details." >&5
  3157 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3158 See \`config.log' for more details." >&2;}
  3159    { (exit 1); exit 1; }; }
  3161 # Provide some information about the compiler.
  3162 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3163 ac_compiler=`set X $ac_compile; echo $2`
  3164 { (ac_try="$ac_compiler --version >&5"
  3165 case "(($ac_try" in
  3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167   *) ac_try_echo=$ac_try;;
  3168 esac
  3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3170   (eval "$ac_compiler --version >&5") 2>&5
  3171   ac_status=$?
  3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3173   (exit $ac_status); }
  3174 { (ac_try="$ac_compiler -v >&5"
  3175 case "(($ac_try" in
  3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177   *) ac_try_echo=$ac_try;;
  3178 esac
  3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3180   (eval "$ac_compiler -v >&5") 2>&5
  3181   ac_status=$?
  3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3183   (exit $ac_status); }
  3184 { (ac_try="$ac_compiler -V >&5"
  3185 case "(($ac_try" in
  3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187   *) ac_try_echo=$ac_try;;
  3188 esac
  3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3190   (eval "$ac_compiler -V >&5") 2>&5
  3191   ac_status=$?
  3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3193   (exit $ac_status); }
  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 ()
  3207   return 0;
  3209 _ACEOF
  3210 ac_clean_files_save=$ac_clean_files
  3211 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3212 # Try to create an executable without -o first, disregard a.out.
  3213 # It will help us diagnose broken compilers, and finding out an intuition
  3214 # of exeext.
  3215 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3216 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  3217 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3219 # List of possible output files, starting from the most likely.
  3220 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  3221 # only as a last resort.  b.out is created by i960 compilers.
  3222 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  3224 # The IRIX 6 linker writes into existing files which may not be
  3225 # executable, retaining their permissions.  Remove them first so a
  3226 # subsequent execution test works.
  3227 ac_rmfiles=
  3228 for ac_file in $ac_files
  3229 do
  3230   case $ac_file in
  3231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3232     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3233   esac
  3234 done
  3235 rm -f $ac_rmfiles
  3237 if { (ac_try="$ac_link_default"
  3238 case "(($ac_try" in
  3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240   *) ac_try_echo=$ac_try;;
  3241 esac
  3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3243   (eval "$ac_link_default") 2>&5
  3244   ac_status=$?
  3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3246   (exit $ac_status); }; then
  3247   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3249 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3250 # so that the user can short-circuit this test for compilers unknown to
  3251 # Autoconf.
  3252 for ac_file in $ac_files ''
  3253 do
  3254   test -f "$ac_file" || continue
  3255   case $ac_file in
  3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  3257 	;;
  3258     [ab].out )
  3259 	# We found the default executable, but exeext='' is most
  3260 	# certainly right.
  3261 	break;;
  3262     *.* )
  3263         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3264 	then :; else
  3265 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3266 	fi
  3267 	# We set ac_cv_exeext here because the later test for it is not
  3268 	# safe: cross compilers may not add the suffix if given an `-o'
  3269 	# argument, so we may need to know it at that point already.
  3270 	# Even if this section looks crufty: it has the advantage of
  3271 	# actually working.
  3272 	break;;
  3273     * )
  3274 	break;;
  3275   esac
  3276 done
  3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
  3279 else
  3280   ac_file=''
  3281 fi
  3283 { echo "$as_me:$LINENO: result: $ac_file" >&5
  3284 echo "${ECHO_T}$ac_file" >&6; }
  3285 if test -z "$ac_file"; then
  3286   echo "$as_me: failed program was:" >&5
  3287 sed 's/^/| /' conftest.$ac_ext >&5
  3289 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  3290 See \`config.log' for more details." >&5
  3291 echo "$as_me: error: C compiler cannot create executables
  3292 See \`config.log' for more details." >&2;}
  3293    { (exit 77); exit 77; }; }
  3294 fi
  3296 ac_exeext=$ac_cv_exeext
  3298 # Check that the compiler produces executables we can run.  If not, either
  3299 # the compiler is broken, or we cross compile.
  3300 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3301 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  3302 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3303 # If not cross compiling, check that we can run a simple program.
  3304 if test "$cross_compiling" != yes; then
  3305   if { ac_try='./$ac_file'
  3306   { (case "(($ac_try" in
  3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3308   *) ac_try_echo=$ac_try;;
  3309 esac
  3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3311   (eval "$ac_try") 2>&5
  3312   ac_status=$?
  3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3314   (exit $ac_status); }; }; then
  3315     cross_compiling=no
  3316   else
  3317     if test "$cross_compiling" = maybe; then
  3318 	cross_compiling=yes
  3319     else
  3320 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3321 If you meant to cross compile, use \`--host'.
  3322 See \`config.log' for more details." >&5
  3323 echo "$as_me: error: cannot run C compiled programs.
  3324 If you meant to cross compile, use \`--host'.
  3325 See \`config.log' for more details." >&2;}
  3326    { (exit 1); exit 1; }; }
  3327     fi
  3328   fi
  3329 fi
  3330 { echo "$as_me:$LINENO: result: yes" >&5
  3331 echo "${ECHO_T}yes" >&6; }
  3333 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3334 ac_clean_files=$ac_clean_files_save
  3335 # Check that the compiler produces executables we can run.  If not, either
  3336 # the compiler is broken, or we cross compile.
  3337 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3338 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3339 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3340 echo "${ECHO_T}$cross_compiling" >&6; }
  3342 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3343 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3344 if { (ac_try="$ac_link"
  3345 case "(($ac_try" in
  3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3347   *) ac_try_echo=$ac_try;;
  3348 esac
  3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3350   (eval "$ac_link") 2>&5
  3351   ac_status=$?
  3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3353   (exit $ac_status); }; then
  3354   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3355 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3356 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3357 # `rm'.
  3358 for ac_file in conftest.exe conftest conftest.*; do
  3359   test -f "$ac_file" || continue
  3360   case $ac_file in
  3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3362     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3363 	  break;;
  3364     * ) break;;
  3365   esac
  3366 done
  3367 else
  3368   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3369 See \`config.log' for more details." >&5
  3370 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3371 See \`config.log' for more details." >&2;}
  3372    { (exit 1); exit 1; }; }
  3373 fi
  3375 rm -f conftest$ac_cv_exeext
  3376 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3377 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3379 rm -f conftest.$ac_ext
  3380 EXEEXT=$ac_cv_exeext
  3381 ac_exeext=$EXEEXT
  3382 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3383 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3384 if test "${ac_cv_objext+set}" = set; then
  3385   echo $ECHO_N "(cached) $ECHO_C" >&6
  3386 else
  3387   cat >conftest.$ac_ext <<_ACEOF
  3388 /* confdefs.h.  */
  3389 _ACEOF
  3390 cat confdefs.h >>conftest.$ac_ext
  3391 cat >>conftest.$ac_ext <<_ACEOF
  3392 /* end confdefs.h.  */
  3394 int
  3395 main ()
  3399   return 0;
  3401 _ACEOF
  3402 rm -f conftest.o conftest.obj
  3403 if { (ac_try="$ac_compile"
  3404 case "(($ac_try" in
  3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3406   *) ac_try_echo=$ac_try;;
  3407 esac
  3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3409   (eval "$ac_compile") 2>&5
  3410   ac_status=$?
  3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3412   (exit $ac_status); }; then
  3413   for ac_file in conftest.o conftest.obj conftest.*; do
  3414   test -f "$ac_file" || continue;
  3415   case $ac_file in
  3416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3417     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3418        break;;
  3419   esac
  3420 done
  3421 else
  3422   echo "$as_me: failed program was:" >&5
  3423 sed 's/^/| /' conftest.$ac_ext >&5
  3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3426 See \`config.log' for more details." >&5
  3427 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3428 See \`config.log' for more details." >&2;}
  3429    { (exit 1); exit 1; }; }
  3430 fi
  3432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3433 fi
  3434 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3435 echo "${ECHO_T}$ac_cv_objext" >&6; }
  3436 OBJEXT=$ac_cv_objext
  3437 ac_objext=$OBJEXT
  3438 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3439 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3440 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3441   echo $ECHO_N "(cached) $ECHO_C" >&6
  3442 else
  3443   cat >conftest.$ac_ext <<_ACEOF
  3444 /* confdefs.h.  */
  3445 _ACEOF
  3446 cat confdefs.h >>conftest.$ac_ext
  3447 cat >>conftest.$ac_ext <<_ACEOF
  3448 /* end confdefs.h.  */
  3450 int
  3451 main ()
  3453 #ifndef __GNUC__
  3454        choke me
  3455 #endif
  3458   return 0;
  3460 _ACEOF
  3461 rm -f conftest.$ac_objext
  3462 if { (ac_try="$ac_compile"
  3463 case "(($ac_try" in
  3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465   *) ac_try_echo=$ac_try;;
  3466 esac
  3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3468   (eval "$ac_compile") 2>conftest.er1
  3469   ac_status=$?
  3470   grep -v '^ *+' conftest.er1 >conftest.err
  3471   rm -f conftest.er1
  3472   cat conftest.err >&5
  3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3474   (exit $ac_status); } && {
  3475 	 test -z "$ac_c_werror_flag" ||
  3476 	 test ! -s conftest.err
  3477        } && test -s conftest.$ac_objext; then
  3478   ac_compiler_gnu=yes
  3479 else
  3480   echo "$as_me: failed program was:" >&5
  3481 sed 's/^/| /' conftest.$ac_ext >&5
  3483 	ac_compiler_gnu=no
  3484 fi
  3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3489 fi
  3490 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3492 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3493 ac_test_CFLAGS=${CFLAGS+set}
  3494 ac_save_CFLAGS=$CFLAGS
  3495 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3497 if test "${ac_cv_prog_cc_g+set}" = set; then
  3498   echo $ECHO_N "(cached) $ECHO_C" >&6
  3499 else
  3500   ac_save_c_werror_flag=$ac_c_werror_flag
  3501    ac_c_werror_flag=yes
  3502    ac_cv_prog_cc_g=no
  3503    CFLAGS="-g"
  3504    cat >conftest.$ac_ext <<_ACEOF
  3505 /* confdefs.h.  */
  3506 _ACEOF
  3507 cat confdefs.h >>conftest.$ac_ext
  3508 cat >>conftest.$ac_ext <<_ACEOF
  3509 /* end confdefs.h.  */
  3511 int
  3512 main ()
  3516   return 0;
  3518 _ACEOF
  3519 rm -f conftest.$ac_objext
  3520 if { (ac_try="$ac_compile"
  3521 case "(($ac_try" in
  3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523   *) ac_try_echo=$ac_try;;
  3524 esac
  3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3526   (eval "$ac_compile") 2>conftest.er1
  3527   ac_status=$?
  3528   grep -v '^ *+' conftest.er1 >conftest.err
  3529   rm -f conftest.er1
  3530   cat conftest.err >&5
  3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3532   (exit $ac_status); } && {
  3533 	 test -z "$ac_c_werror_flag" ||
  3534 	 test ! -s conftest.err
  3535        } && test -s conftest.$ac_objext; then
  3536   ac_cv_prog_cc_g=yes
  3537 else
  3538   echo "$as_me: failed program was:" >&5
  3539 sed 's/^/| /' conftest.$ac_ext >&5
  3541 	CFLAGS=""
  3542       cat >conftest.$ac_ext <<_ACEOF
  3543 /* confdefs.h.  */
  3544 _ACEOF
  3545 cat confdefs.h >>conftest.$ac_ext
  3546 cat >>conftest.$ac_ext <<_ACEOF
  3547 /* end confdefs.h.  */
  3549 int
  3550 main ()
  3554   return 0;
  3556 _ACEOF
  3557 rm -f conftest.$ac_objext
  3558 if { (ac_try="$ac_compile"
  3559 case "(($ac_try" in
  3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561   *) ac_try_echo=$ac_try;;
  3562 esac
  3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3564   (eval "$ac_compile") 2>conftest.er1
  3565   ac_status=$?
  3566   grep -v '^ *+' conftest.er1 >conftest.err
  3567   rm -f conftest.er1
  3568   cat conftest.err >&5
  3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570   (exit $ac_status); } && {
  3571 	 test -z "$ac_c_werror_flag" ||
  3572 	 test ! -s conftest.err
  3573        } && test -s conftest.$ac_objext; then
  3575 else
  3576   echo "$as_me: failed program was:" >&5
  3577 sed 's/^/| /' conftest.$ac_ext >&5
  3579 	ac_c_werror_flag=$ac_save_c_werror_flag
  3580 	 CFLAGS="-g"
  3581 	 cat >conftest.$ac_ext <<_ACEOF
  3582 /* confdefs.h.  */
  3583 _ACEOF
  3584 cat confdefs.h >>conftest.$ac_ext
  3585 cat >>conftest.$ac_ext <<_ACEOF
  3586 /* end confdefs.h.  */
  3588 int
  3589 main ()
  3593   return 0;
  3595 _ACEOF
  3596 rm -f conftest.$ac_objext
  3597 if { (ac_try="$ac_compile"
  3598 case "(($ac_try" in
  3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3600   *) ac_try_echo=$ac_try;;
  3601 esac
  3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3603   (eval "$ac_compile") 2>conftest.er1
  3604   ac_status=$?
  3605   grep -v '^ *+' conftest.er1 >conftest.err
  3606   rm -f conftest.er1
  3607   cat conftest.err >&5
  3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3609   (exit $ac_status); } && {
  3610 	 test -z "$ac_c_werror_flag" ||
  3611 	 test ! -s conftest.err
  3612        } && test -s conftest.$ac_objext; then
  3613   ac_cv_prog_cc_g=yes
  3614 else
  3615   echo "$as_me: failed program was:" >&5
  3616 sed 's/^/| /' conftest.$ac_ext >&5
  3619 fi
  3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3622 fi
  3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3625 fi
  3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628    ac_c_werror_flag=$ac_save_c_werror_flag
  3629 fi
  3630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3631 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3632 if test "$ac_test_CFLAGS" = set; then
  3633   CFLAGS=$ac_save_CFLAGS
  3634 elif test $ac_cv_prog_cc_g = yes; then
  3635   if test "$GCC" = yes; then
  3636     CFLAGS="-g -O2"
  3637   else
  3638     CFLAGS="-g"
  3639   fi
  3640 else
  3641   if test "$GCC" = yes; then
  3642     CFLAGS="-O2"
  3643   else
  3644     CFLAGS=
  3645   fi
  3646 fi
  3647 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3648 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3649 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3650   echo $ECHO_N "(cached) $ECHO_C" >&6
  3651 else
  3652   ac_cv_prog_cc_c89=no
  3653 ac_save_CC=$CC
  3654 cat >conftest.$ac_ext <<_ACEOF
  3655 /* confdefs.h.  */
  3656 _ACEOF
  3657 cat confdefs.h >>conftest.$ac_ext
  3658 cat >>conftest.$ac_ext <<_ACEOF
  3659 /* end confdefs.h.  */
  3660 #include <stdarg.h>
  3661 #include <stdio.h>
  3662 #include <sys/types.h>
  3663 #include <sys/stat.h>
  3664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3665 struct buf { int x; };
  3666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3667 static char *e (p, i)
  3668      char **p;
  3669      int i;
  3671   return p[i];
  3673 static char *f (char * (*g) (char **, int), char **p, ...)
  3675   char *s;
  3676   va_list v;
  3677   va_start (v,p);
  3678   s = g (p, va_arg (v,int));
  3679   va_end (v);
  3680   return s;
  3683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3684    function prototypes and stuff, but not '\xHH' hex character constants.
  3685    These don't provoke an error unfortunately, instead are silently treated
  3686    as 'x'.  The following induces an error, until -std is added to get
  3687    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3688    array size at least.  It's necessary to write '\x00'==0 to get something
  3689    that's true only with -std.  */
  3690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3693    inside strings and character constants.  */
  3694 #define FOO(x) 'x'
  3695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3697 int test (int i, double x);
  3698 struct s1 {int (*f) (int a);};
  3699 struct s2 {int (*f) (double a);};
  3700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3701 int argc;
  3702 char **argv;
  3703 int
  3704 main ()
  3706 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3708   return 0;
  3710 _ACEOF
  3711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3712 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3713 do
  3714   CC="$ac_save_CC $ac_arg"
  3715   rm -f conftest.$ac_objext
  3716 if { (ac_try="$ac_compile"
  3717 case "(($ac_try" in
  3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3719   *) ac_try_echo=$ac_try;;
  3720 esac
  3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3722   (eval "$ac_compile") 2>conftest.er1
  3723   ac_status=$?
  3724   grep -v '^ *+' conftest.er1 >conftest.err
  3725   rm -f conftest.er1
  3726   cat conftest.err >&5
  3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728   (exit $ac_status); } && {
  3729 	 test -z "$ac_c_werror_flag" ||
  3730 	 test ! -s conftest.err
  3731        } && test -s conftest.$ac_objext; then
  3732   ac_cv_prog_cc_c89=$ac_arg
  3733 else
  3734   echo "$as_me: failed program was:" >&5
  3735 sed 's/^/| /' conftest.$ac_ext >&5
  3738 fi
  3740 rm -f core conftest.err conftest.$ac_objext
  3741   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3742 done
  3743 rm -f conftest.$ac_ext
  3744 CC=$ac_save_CC
  3746 fi
  3747 # AC_CACHE_VAL
  3748 case "x$ac_cv_prog_cc_c89" in
  3749   x)
  3750     { echo "$as_me:$LINENO: result: none needed" >&5
  3751 echo "${ECHO_T}none needed" >&6; } ;;
  3752   xno)
  3753     { echo "$as_me:$LINENO: result: unsupported" >&5
  3754 echo "${ECHO_T}unsupported" >&6; } ;;
  3755   *)
  3756     CC="$CC $ac_cv_prog_cc_c89"
  3757     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3759 esac
  3762 ac_ext=c
  3763 ac_cpp='$CPP $CPPFLAGS'
  3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3768 depcc="$CC"   am_compiler_list=
  3770 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3771 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3772 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3773   echo $ECHO_N "(cached) $ECHO_C" >&6
  3774 else
  3775   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3776   # We make a subdir and do the tests there.  Otherwise we can end up
  3777   # making bogus files that we don't know about and never remove.  For
  3778   # instance it was reported that on HP-UX the gcc test will end up
  3779   # making a dummy file named `D' -- because `-MD' means `put the output
  3780   # in D'.
  3781   mkdir conftest.dir
  3782   # Copy depcomp to subdir because otherwise we won't find it if we're
  3783   # using a relative directory.
  3784   cp "$am_depcomp" conftest.dir
  3785   cd conftest.dir
  3786   # We will build objects and dependencies in a subdirectory because
  3787   # it helps to detect inapplicable dependency modes.  For instance
  3788   # both Tru64's cc and ICC support -MD to output dependencies as a
  3789   # side effect of compilation, but ICC will put the dependencies in
  3790   # the current directory while Tru64 will put them in the object
  3791   # directory.
  3792   mkdir sub
  3794   am_cv_CC_dependencies_compiler_type=none
  3795   if test "$am_compiler_list" = ""; then
  3796      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3797   fi
  3798   for depmode in $am_compiler_list; do
  3799     # Setup a source with many dependencies, because some compilers
  3800     # like to wrap large dependency lists on column 80 (with \), and
  3801     # we should not choose a depcomp mode which is confused by this.
  3803     # We need to recreate these files for each test, as the compiler may
  3804     # overwrite some of them when testing with obscure command lines.
  3805     # This happens at least with the AIX C compiler.
  3806     : > sub/conftest.c
  3807     for i in 1 2 3 4 5 6; do
  3808       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3809       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3810       # Solaris 8's {/usr,}/bin/sh.
  3811       touch sub/conftst$i.h
  3812     done
  3813     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3815     case $depmode in
  3816     nosideeffect)
  3817       # after this tag, mechanisms are not by side-effect, so they'll
  3818       # only be used when explicitly requested
  3819       if test "x$enable_dependency_tracking" = xyes; then
  3820 	continue
  3821       else
  3822 	break
  3823       fi
  3824       ;;
  3825     none) break ;;
  3826     esac
  3827     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3828     # mode.  It turns out that the SunPro C++ compiler does not properly
  3829     # handle `-M -o', and we need to detect this.
  3830     if depmode=$depmode \
  3831        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3832        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3833        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3834          >/dev/null 2>conftest.err &&
  3835        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3836        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3837        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3838       # icc doesn't choke on unknown options, it will just issue warnings
  3839       # or remarks (even with -Werror).  So we grep stderr for any message
  3840       # that says an option was ignored or not supported.
  3841       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3842       #   icc: Command line warning: ignoring option '-M'; no argument required
  3843       # The diagnosis changed in icc 8.0:
  3844       #   icc: Command line remark: option '-MP' not supported
  3845       if (grep 'ignoring option' conftest.err ||
  3846           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3847         am_cv_CC_dependencies_compiler_type=$depmode
  3848         break
  3849       fi
  3850     fi
  3851   done
  3853   cd ..
  3854   rm -rf conftest.dir
  3855 else
  3856   am_cv_CC_dependencies_compiler_type=none
  3857 fi
  3859 fi
  3860 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3861 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3866 if
  3867   test "x$enable_dependency_tracking" != xno \
  3868   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3869   am__fastdepCC_TRUE=
  3870   am__fastdepCC_FALSE='#'
  3871 else
  3872   am__fastdepCC_TRUE='#'
  3873   am__fastdepCC_FALSE=
  3874 fi
  3879         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3880 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3881 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3882   echo $ECHO_N "(cached) $ECHO_C" >&6
  3883 else
  3884   ac_check_lib_save_LIBS=$LIBS
  3885 LIBS="-lcposix  $LIBS"
  3886 cat >conftest.$ac_ext <<_ACEOF
  3887 /* confdefs.h.  */
  3888 _ACEOF
  3889 cat confdefs.h >>conftest.$ac_ext
  3890 cat >>conftest.$ac_ext <<_ACEOF
  3891 /* end confdefs.h.  */
  3893 /* Override any GCC internal prototype to avoid an error.
  3894    Use char because int might match the return type of a GCC
  3895    builtin and then its argument prototype would still apply.  */
  3896 #ifdef __cplusplus
  3897 extern "C"
  3898 #endif
  3899 char strerror ();
  3900 int
  3901 main ()
  3903 return strerror ();
  3905   return 0;
  3907 _ACEOF
  3908 rm -f conftest.$ac_objext conftest$ac_exeext
  3909 if { (ac_try="$ac_link"
  3910 case "(($ac_try" in
  3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3912   *) ac_try_echo=$ac_try;;
  3913 esac
  3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3915   (eval "$ac_link") 2>conftest.er1
  3916   ac_status=$?
  3917   grep -v '^ *+' conftest.er1 >conftest.err
  3918   rm -f conftest.er1
  3919   cat conftest.err >&5
  3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3921   (exit $ac_status); } && {
  3922 	 test -z "$ac_c_werror_flag" ||
  3923 	 test ! -s conftest.err
  3924        } && test -s conftest$ac_exeext &&
  3925        $as_test_x conftest$ac_exeext; then
  3926   ac_cv_lib_cposix_strerror=yes
  3927 else
  3928   echo "$as_me: failed program was:" >&5
  3929 sed 's/^/| /' conftest.$ac_ext >&5
  3931 	ac_cv_lib_cposix_strerror=no
  3932 fi
  3934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3935       conftest$ac_exeext conftest.$ac_ext
  3936 LIBS=$ac_check_lib_save_LIBS
  3937 fi
  3938 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3939 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3940 if test $ac_cv_lib_cposix_strerror = yes; then
  3941   LIBS="$LIBS -lcposix"
  3942 fi
  3946 ac_ext=c
  3947 ac_cpp='$CPP $CPPFLAGS'
  3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3951 if test -n "$ac_tool_prefix"; then
  3952   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3956 if test "${ac_cv_prog_CC+set}" = set; then
  3957   echo $ECHO_N "(cached) $ECHO_C" >&6
  3958 else
  3959   if test -n "$CC"; then
  3960   ac_cv_prog_CC="$CC" # Let the user override the test.
  3961 else
  3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963 for as_dir in $PATH
  3964 do
  3965   IFS=$as_save_IFS
  3966   test -z "$as_dir" && as_dir=.
  3967   for ac_exec_ext in '' $ac_executable_extensions; do
  3968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3969     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971     break 2
  3972   fi
  3973 done
  3974 done
  3975 IFS=$as_save_IFS
  3977 fi
  3978 fi
  3979 CC=$ac_cv_prog_CC
  3980 if test -n "$CC"; then
  3981   { echo "$as_me:$LINENO: result: $CC" >&5
  3982 echo "${ECHO_T}$CC" >&6; }
  3983 else
  3984   { echo "$as_me:$LINENO: result: no" >&5
  3985 echo "${ECHO_T}no" >&6; }
  3986 fi
  3989 fi
  3990 if test -z "$ac_cv_prog_CC"; then
  3991   ac_ct_CC=$CC
  3992   # Extract the first word of "gcc", so it can be a program name with args.
  3993 set dummy gcc; ac_word=$2
  3994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3997   echo $ECHO_N "(cached) $ECHO_C" >&6
  3998 else
  3999   if test -n "$ac_ct_CC"; then
  4000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4001 else
  4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4003 for as_dir in $PATH
  4004 do
  4005   IFS=$as_save_IFS
  4006   test -z "$as_dir" && as_dir=.
  4007   for ac_exec_ext in '' $ac_executable_extensions; do
  4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4009     ac_cv_prog_ac_ct_CC="gcc"
  4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4011     break 2
  4012   fi
  4013 done
  4014 done
  4015 IFS=$as_save_IFS
  4017 fi
  4018 fi
  4019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4020 if test -n "$ac_ct_CC"; then
  4021   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4022 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4023 else
  4024   { echo "$as_me:$LINENO: result: no" >&5
  4025 echo "${ECHO_T}no" >&6; }
  4026 fi
  4028   if test "x$ac_ct_CC" = x; then
  4029     CC=""
  4030   else
  4031     case $cross_compiling:$ac_tool_warned in
  4032 yes:)
  4033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4034 whose name does not start with the host triplet.  If you think this
  4035 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4037 whose name does not start with the host triplet.  If you think this
  4038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4039 ac_tool_warned=yes ;;
  4040 esac
  4041     CC=$ac_ct_CC
  4042   fi
  4043 else
  4044   CC="$ac_cv_prog_CC"
  4045 fi
  4047 if test -z "$CC"; then
  4048           if test -n "$ac_tool_prefix"; then
  4049     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4050 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4053 if test "${ac_cv_prog_CC+set}" = set; then
  4054   echo $ECHO_N "(cached) $ECHO_C" >&6
  4055 else
  4056   if test -n "$CC"; then
  4057   ac_cv_prog_CC="$CC" # Let the user override the test.
  4058 else
  4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4060 for as_dir in $PATH
  4061 do
  4062   IFS=$as_save_IFS
  4063   test -z "$as_dir" && as_dir=.
  4064   for ac_exec_ext in '' $ac_executable_extensions; do
  4065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4066     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4068     break 2
  4069   fi
  4070 done
  4071 done
  4072 IFS=$as_save_IFS
  4074 fi
  4075 fi
  4076 CC=$ac_cv_prog_CC
  4077 if test -n "$CC"; then
  4078   { echo "$as_me:$LINENO: result: $CC" >&5
  4079 echo "${ECHO_T}$CC" >&6; }
  4080 else
  4081   { echo "$as_me:$LINENO: result: no" >&5
  4082 echo "${ECHO_T}no" >&6; }
  4083 fi
  4086   fi
  4087 fi
  4088 if test -z "$CC"; then
  4089   # Extract the first word of "cc", so it can be a program name with args.
  4090 set dummy cc; ac_word=$2
  4091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4093 if test "${ac_cv_prog_CC+set}" = set; then
  4094   echo $ECHO_N "(cached) $ECHO_C" >&6
  4095 else
  4096   if test -n "$CC"; then
  4097   ac_cv_prog_CC="$CC" # Let the user override the test.
  4098 else
  4099   ac_prog_rejected=no
  4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4101 for as_dir in $PATH
  4102 do
  4103   IFS=$as_save_IFS
  4104   test -z "$as_dir" && as_dir=.
  4105   for ac_exec_ext in '' $ac_executable_extensions; do
  4106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4108        ac_prog_rejected=yes
  4109        continue
  4110      fi
  4111     ac_cv_prog_CC="cc"
  4112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4113     break 2
  4114   fi
  4115 done
  4116 done
  4117 IFS=$as_save_IFS
  4119 if test $ac_prog_rejected = yes; then
  4120   # We found a bogon in the path, so make sure we never use it.
  4121   set dummy $ac_cv_prog_CC
  4122   shift
  4123   if test $# != 0; then
  4124     # We chose a different compiler from the bogus one.
  4125     # However, it has the same basename, so the bogon will be chosen
  4126     # first if we set CC to just the basename; use the full file name.
  4127     shift
  4128     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4129   fi
  4130 fi
  4131 fi
  4132 fi
  4133 CC=$ac_cv_prog_CC
  4134 if test -n "$CC"; then
  4135   { echo "$as_me:$LINENO: result: $CC" >&5
  4136 echo "${ECHO_T}$CC" >&6; }
  4137 else
  4138   { echo "$as_me:$LINENO: result: no" >&5
  4139 echo "${ECHO_T}no" >&6; }
  4140 fi
  4143 fi
  4144 if test -z "$CC"; then
  4145   if test -n "$ac_tool_prefix"; then
  4146   for ac_prog in cl.exe
  4147   do
  4148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4152 if test "${ac_cv_prog_CC+set}" = set; then
  4153   echo $ECHO_N "(cached) $ECHO_C" >&6
  4154 else
  4155   if test -n "$CC"; then
  4156   ac_cv_prog_CC="$CC" # Let the user override the test.
  4157 else
  4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159 for as_dir in $PATH
  4160 do
  4161   IFS=$as_save_IFS
  4162   test -z "$as_dir" && as_dir=.
  4163   for ac_exec_ext in '' $ac_executable_extensions; do
  4164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4165     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167     break 2
  4168   fi
  4169 done
  4170 done
  4171 IFS=$as_save_IFS
  4173 fi
  4174 fi
  4175 CC=$ac_cv_prog_CC
  4176 if test -n "$CC"; then
  4177   { echo "$as_me:$LINENO: result: $CC" >&5
  4178 echo "${ECHO_T}$CC" >&6; }
  4179 else
  4180   { echo "$as_me:$LINENO: result: no" >&5
  4181 echo "${ECHO_T}no" >&6; }
  4182 fi
  4185     test -n "$CC" && break
  4186   done
  4187 fi
  4188 if test -z "$CC"; then
  4189   ac_ct_CC=$CC
  4190   for ac_prog in cl.exe
  4191 do
  4192   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4193 set dummy $ac_prog; ac_word=$2
  4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4197   echo $ECHO_N "(cached) $ECHO_C" >&6
  4198 else
  4199   if test -n "$ac_ct_CC"; then
  4200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4201 else
  4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4203 for as_dir in $PATH
  4204 do
  4205   IFS=$as_save_IFS
  4206   test -z "$as_dir" && as_dir=.
  4207   for ac_exec_ext in '' $ac_executable_extensions; do
  4208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4209     ac_cv_prog_ac_ct_CC="$ac_prog"
  4210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4211     break 2
  4212   fi
  4213 done
  4214 done
  4215 IFS=$as_save_IFS
  4217 fi
  4218 fi
  4219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4220 if test -n "$ac_ct_CC"; then
  4221   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4222 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4223 else
  4224   { echo "$as_me:$LINENO: result: no" >&5
  4225 echo "${ECHO_T}no" >&6; }
  4226 fi
  4229   test -n "$ac_ct_CC" && break
  4230 done
  4232   if test "x$ac_ct_CC" = x; then
  4233     CC=""
  4234   else
  4235     case $cross_compiling:$ac_tool_warned in
  4236 yes:)
  4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4238 whose name does not start with the host triplet.  If you think this
  4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4241 whose name does not start with the host triplet.  If you think this
  4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4243 ac_tool_warned=yes ;;
  4244 esac
  4245     CC=$ac_ct_CC
  4246   fi
  4247 fi
  4249 fi
  4252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4253 See \`config.log' for more details." >&5
  4254 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4255 See \`config.log' for more details." >&2;}
  4256    { (exit 1); exit 1; }; }
  4258 # Provide some information about the compiler.
  4259 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4260 ac_compiler=`set X $ac_compile; echo $2`
  4261 { (ac_try="$ac_compiler --version >&5"
  4262 case "(($ac_try" in
  4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4264   *) ac_try_echo=$ac_try;;
  4265 esac
  4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4267   (eval "$ac_compiler --version >&5") 2>&5
  4268   ac_status=$?
  4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270   (exit $ac_status); }
  4271 { (ac_try="$ac_compiler -v >&5"
  4272 case "(($ac_try" in
  4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4274   *) ac_try_echo=$ac_try;;
  4275 esac
  4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4277   (eval "$ac_compiler -v >&5") 2>&5
  4278   ac_status=$?
  4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280   (exit $ac_status); }
  4281 { (ac_try="$ac_compiler -V >&5"
  4282 case "(($ac_try" in
  4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4284   *) ac_try_echo=$ac_try;;
  4285 esac
  4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4287   (eval "$ac_compiler -V >&5") 2>&5
  4288   ac_status=$?
  4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4290   (exit $ac_status); }
  4292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4295   echo $ECHO_N "(cached) $ECHO_C" >&6
  4296 else
  4297   cat >conftest.$ac_ext <<_ACEOF
  4298 /* confdefs.h.  */
  4299 _ACEOF
  4300 cat confdefs.h >>conftest.$ac_ext
  4301 cat >>conftest.$ac_ext <<_ACEOF
  4302 /* end confdefs.h.  */
  4304 int
  4305 main ()
  4307 #ifndef __GNUC__
  4308        choke me
  4309 #endif
  4312   return 0;
  4314 _ACEOF
  4315 rm -f conftest.$ac_objext
  4316 if { (ac_try="$ac_compile"
  4317 case "(($ac_try" in
  4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4319   *) ac_try_echo=$ac_try;;
  4320 esac
  4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4322   (eval "$ac_compile") 2>conftest.er1
  4323   ac_status=$?
  4324   grep -v '^ *+' conftest.er1 >conftest.err
  4325   rm -f conftest.er1
  4326   cat conftest.err >&5
  4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328   (exit $ac_status); } && {
  4329 	 test -z "$ac_c_werror_flag" ||
  4330 	 test ! -s conftest.err
  4331        } && test -s conftest.$ac_objext; then
  4332   ac_compiler_gnu=yes
  4333 else
  4334   echo "$as_me: failed program was:" >&5
  4335 sed 's/^/| /' conftest.$ac_ext >&5
  4337 	ac_compiler_gnu=no
  4338 fi
  4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4343 fi
  4344 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4346 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4347 ac_test_CFLAGS=${CFLAGS+set}
  4348 ac_save_CFLAGS=$CFLAGS
  4349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4351 if test "${ac_cv_prog_cc_g+set}" = set; then
  4352   echo $ECHO_N "(cached) $ECHO_C" >&6
  4353 else
  4354   ac_save_c_werror_flag=$ac_c_werror_flag
  4355    ac_c_werror_flag=yes
  4356    ac_cv_prog_cc_g=no
  4357    CFLAGS="-g"
  4358    cat >conftest.$ac_ext <<_ACEOF
  4359 /* confdefs.h.  */
  4360 _ACEOF
  4361 cat confdefs.h >>conftest.$ac_ext
  4362 cat >>conftest.$ac_ext <<_ACEOF
  4363 /* end confdefs.h.  */
  4365 int
  4366 main ()
  4370   return 0;
  4372 _ACEOF
  4373 rm -f conftest.$ac_objext
  4374 if { (ac_try="$ac_compile"
  4375 case "(($ac_try" in
  4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4377   *) ac_try_echo=$ac_try;;
  4378 esac
  4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4380   (eval "$ac_compile") 2>conftest.er1
  4381   ac_status=$?
  4382   grep -v '^ *+' conftest.er1 >conftest.err
  4383   rm -f conftest.er1
  4384   cat conftest.err >&5
  4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4386   (exit $ac_status); } && {
  4387 	 test -z "$ac_c_werror_flag" ||
  4388 	 test ! -s conftest.err
  4389        } && test -s conftest.$ac_objext; then
  4390   ac_cv_prog_cc_g=yes
  4391 else
  4392   echo "$as_me: failed program was:" >&5
  4393 sed 's/^/| /' conftest.$ac_ext >&5
  4395 	CFLAGS=""
  4396       cat >conftest.$ac_ext <<_ACEOF
  4397 /* confdefs.h.  */
  4398 _ACEOF
  4399 cat confdefs.h >>conftest.$ac_ext
  4400 cat >>conftest.$ac_ext <<_ACEOF
  4401 /* end confdefs.h.  */
  4403 int
  4404 main ()
  4408   return 0;
  4410 _ACEOF
  4411 rm -f conftest.$ac_objext
  4412 if { (ac_try="$ac_compile"
  4413 case "(($ac_try" in
  4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4415   *) ac_try_echo=$ac_try;;
  4416 esac
  4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4418   (eval "$ac_compile") 2>conftest.er1
  4419   ac_status=$?
  4420   grep -v '^ *+' conftest.er1 >conftest.err
  4421   rm -f conftest.er1
  4422   cat conftest.err >&5
  4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4424   (exit $ac_status); } && {
  4425 	 test -z "$ac_c_werror_flag" ||
  4426 	 test ! -s conftest.err
  4427        } && test -s conftest.$ac_objext; then
  4429 else
  4430   echo "$as_me: failed program was:" >&5
  4431 sed 's/^/| /' conftest.$ac_ext >&5
  4433 	ac_c_werror_flag=$ac_save_c_werror_flag
  4434 	 CFLAGS="-g"
  4435 	 cat >conftest.$ac_ext <<_ACEOF
  4436 /* confdefs.h.  */
  4437 _ACEOF
  4438 cat confdefs.h >>conftest.$ac_ext
  4439 cat >>conftest.$ac_ext <<_ACEOF
  4440 /* end confdefs.h.  */
  4442 int
  4443 main ()
  4447   return 0;
  4449 _ACEOF
  4450 rm -f conftest.$ac_objext
  4451 if { (ac_try="$ac_compile"
  4452 case "(($ac_try" in
  4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4454   *) ac_try_echo=$ac_try;;
  4455 esac
  4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4457   (eval "$ac_compile") 2>conftest.er1
  4458   ac_status=$?
  4459   grep -v '^ *+' conftest.er1 >conftest.err
  4460   rm -f conftest.er1
  4461   cat conftest.err >&5
  4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4463   (exit $ac_status); } && {
  4464 	 test -z "$ac_c_werror_flag" ||
  4465 	 test ! -s conftest.err
  4466        } && test -s conftest.$ac_objext; then
  4467   ac_cv_prog_cc_g=yes
  4468 else
  4469   echo "$as_me: failed program was:" >&5
  4470 sed 's/^/| /' conftest.$ac_ext >&5
  4473 fi
  4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4476 fi
  4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4479 fi
  4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4482    ac_c_werror_flag=$ac_save_c_werror_flag
  4483 fi
  4484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4486 if test "$ac_test_CFLAGS" = set; then
  4487   CFLAGS=$ac_save_CFLAGS
  4488 elif test $ac_cv_prog_cc_g = yes; then
  4489   if test "$GCC" = yes; then
  4490     CFLAGS="-g -O2"
  4491   else
  4492     CFLAGS="-g"
  4493   fi
  4494 else
  4495   if test "$GCC" = yes; then
  4496     CFLAGS="-O2"
  4497   else
  4498     CFLAGS=
  4499   fi
  4500 fi
  4501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4503 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4504   echo $ECHO_N "(cached) $ECHO_C" >&6
  4505 else
  4506   ac_cv_prog_cc_c89=no
  4507 ac_save_CC=$CC
  4508 cat >conftest.$ac_ext <<_ACEOF
  4509 /* confdefs.h.  */
  4510 _ACEOF
  4511 cat confdefs.h >>conftest.$ac_ext
  4512 cat >>conftest.$ac_ext <<_ACEOF
  4513 /* end confdefs.h.  */
  4514 #include <stdarg.h>
  4515 #include <stdio.h>
  4516 #include <sys/types.h>
  4517 #include <sys/stat.h>
  4518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4519 struct buf { int x; };
  4520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4521 static char *e (p, i)
  4522      char **p;
  4523      int i;
  4525   return p[i];
  4527 static char *f (char * (*g) (char **, int), char **p, ...)
  4529   char *s;
  4530   va_list v;
  4531   va_start (v,p);
  4532   s = g (p, va_arg (v,int));
  4533   va_end (v);
  4534   return s;
  4537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4538    function prototypes and stuff, but not '\xHH' hex character constants.
  4539    These don't provoke an error unfortunately, instead are silently treated
  4540    as 'x'.  The following induces an error, until -std is added to get
  4541    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4542    array size at least.  It's necessary to write '\x00'==0 to get something
  4543    that's true only with -std.  */
  4544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4547    inside strings and character constants.  */
  4548 #define FOO(x) 'x'
  4549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4551 int test (int i, double x);
  4552 struct s1 {int (*f) (int a);};
  4553 struct s2 {int (*f) (double a);};
  4554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4555 int argc;
  4556 char **argv;
  4557 int
  4558 main ()
  4560 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4562   return 0;
  4564 _ACEOF
  4565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4566 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4567 do
  4568   CC="$ac_save_CC $ac_arg"
  4569   rm -f conftest.$ac_objext
  4570 if { (ac_try="$ac_compile"
  4571 case "(($ac_try" in
  4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4573   *) ac_try_echo=$ac_try;;
  4574 esac
  4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4576   (eval "$ac_compile") 2>conftest.er1
  4577   ac_status=$?
  4578   grep -v '^ *+' conftest.er1 >conftest.err
  4579   rm -f conftest.er1
  4580   cat conftest.err >&5
  4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4582   (exit $ac_status); } && {
  4583 	 test -z "$ac_c_werror_flag" ||
  4584 	 test ! -s conftest.err
  4585        } && test -s conftest.$ac_objext; then
  4586   ac_cv_prog_cc_c89=$ac_arg
  4587 else
  4588   echo "$as_me: failed program was:" >&5
  4589 sed 's/^/| /' conftest.$ac_ext >&5
  4592 fi
  4594 rm -f core conftest.err conftest.$ac_objext
  4595   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4596 done
  4597 rm -f conftest.$ac_ext
  4598 CC=$ac_save_CC
  4600 fi
  4601 # AC_CACHE_VAL
  4602 case "x$ac_cv_prog_cc_c89" in
  4603   x)
  4604     { echo "$as_me:$LINENO: result: none needed" >&5
  4605 echo "${ECHO_T}none needed" >&6; } ;;
  4606   xno)
  4607     { echo "$as_me:$LINENO: result: unsupported" >&5
  4608 echo "${ECHO_T}unsupported" >&6; } ;;
  4609   *)
  4610     CC="$CC $ac_cv_prog_cc_c89"
  4611     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4613 esac
  4616 ac_ext=c
  4617 ac_cpp='$CPP $CPPFLAGS'
  4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4622 depcc="$CC"   am_compiler_list=
  4624 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4625 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4627   echo $ECHO_N "(cached) $ECHO_C" >&6
  4628 else
  4629   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4630   # We make a subdir and do the tests there.  Otherwise we can end up
  4631   # making bogus files that we don't know about and never remove.  For
  4632   # instance it was reported that on HP-UX the gcc test will end up
  4633   # making a dummy file named `D' -- because `-MD' means `put the output
  4634   # in D'.
  4635   mkdir conftest.dir
  4636   # Copy depcomp to subdir because otherwise we won't find it if we're
  4637   # using a relative directory.
  4638   cp "$am_depcomp" conftest.dir
  4639   cd conftest.dir
  4640   # We will build objects and dependencies in a subdirectory because
  4641   # it helps to detect inapplicable dependency modes.  For instance
  4642   # both Tru64's cc and ICC support -MD to output dependencies as a
  4643   # side effect of compilation, but ICC will put the dependencies in
  4644   # the current directory while Tru64 will put them in the object
  4645   # directory.
  4646   mkdir sub
  4648   am_cv_CC_dependencies_compiler_type=none
  4649   if test "$am_compiler_list" = ""; then
  4650      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4651   fi
  4652   for depmode in $am_compiler_list; do
  4653     # Setup a source with many dependencies, because some compilers
  4654     # like to wrap large dependency lists on column 80 (with \), and
  4655     # we should not choose a depcomp mode which is confused by this.
  4657     # We need to recreate these files for each test, as the compiler may
  4658     # overwrite some of them when testing with obscure command lines.
  4659     # This happens at least with the AIX C compiler.
  4660     : > sub/conftest.c
  4661     for i in 1 2 3 4 5 6; do
  4662       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4663       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4664       # Solaris 8's {/usr,}/bin/sh.
  4665       touch sub/conftst$i.h
  4666     done
  4667     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4669     case $depmode in
  4670     nosideeffect)
  4671       # after this tag, mechanisms are not by side-effect, so they'll
  4672       # only be used when explicitly requested
  4673       if test "x$enable_dependency_tracking" = xyes; then
  4674 	continue
  4675       else
  4676 	break
  4677       fi
  4678       ;;
  4679     none) break ;;
  4680     esac
  4681     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4682     # mode.  It turns out that the SunPro C++ compiler does not properly
  4683     # handle `-M -o', and we need to detect this.
  4684     if depmode=$depmode \
  4685        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4686        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4687        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4688          >/dev/null 2>conftest.err &&
  4689        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4690        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4691        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4692       # icc doesn't choke on unknown options, it will just issue warnings
  4693       # or remarks (even with -Werror).  So we grep stderr for any message
  4694       # that says an option was ignored or not supported.
  4695       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4696       #   icc: Command line warning: ignoring option '-M'; no argument required
  4697       # The diagnosis changed in icc 8.0:
  4698       #   icc: Command line remark: option '-MP' not supported
  4699       if (grep 'ignoring option' conftest.err ||
  4700           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4701         am_cv_CC_dependencies_compiler_type=$depmode
  4702         break
  4703       fi
  4704     fi
  4705   done
  4707   cd ..
  4708   rm -rf conftest.dir
  4709 else
  4710   am_cv_CC_dependencies_compiler_type=none
  4711 fi
  4713 fi
  4714 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4715 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4720 if
  4721   test "x$enable_dependency_tracking" != xno \
  4722   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4723   am__fastdepCC_TRUE=
  4724   am__fastdepCC_FALSE='#'
  4725 else
  4726   am__fastdepCC_TRUE='#'
  4727   am__fastdepCC_FALSE=
  4728 fi
  4731 ac_ext=c
  4732 ac_cpp='$CPP $CPPFLAGS'
  4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4736 if test -n "$ac_tool_prefix"; then
  4737   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4741 if test "${ac_cv_prog_CC+set}" = set; then
  4742   echo $ECHO_N "(cached) $ECHO_C" >&6
  4743 else
  4744   if test -n "$CC"; then
  4745   ac_cv_prog_CC="$CC" # Let the user override the test.
  4746 else
  4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4748 for as_dir in $PATH
  4749 do
  4750   IFS=$as_save_IFS
  4751   test -z "$as_dir" && as_dir=.
  4752   for ac_exec_ext in '' $ac_executable_extensions; do
  4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4754     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4756     break 2
  4757   fi
  4758 done
  4759 done
  4760 IFS=$as_save_IFS
  4762 fi
  4763 fi
  4764 CC=$ac_cv_prog_CC
  4765 if test -n "$CC"; then
  4766   { echo "$as_me:$LINENO: result: $CC" >&5
  4767 echo "${ECHO_T}$CC" >&6; }
  4768 else
  4769   { echo "$as_me:$LINENO: result: no" >&5
  4770 echo "${ECHO_T}no" >&6; }
  4771 fi
  4774 fi
  4775 if test -z "$ac_cv_prog_CC"; then
  4776   ac_ct_CC=$CC
  4777   # Extract the first word of "gcc", so it can be a program name with args.
  4778 set dummy gcc; ac_word=$2
  4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4782   echo $ECHO_N "(cached) $ECHO_C" >&6
  4783 else
  4784   if test -n "$ac_ct_CC"; then
  4785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4786 else
  4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788 for as_dir in $PATH
  4789 do
  4790   IFS=$as_save_IFS
  4791   test -z "$as_dir" && as_dir=.
  4792   for ac_exec_ext in '' $ac_executable_extensions; do
  4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4794     ac_cv_prog_ac_ct_CC="gcc"
  4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796     break 2
  4797   fi
  4798 done
  4799 done
  4800 IFS=$as_save_IFS
  4802 fi
  4803 fi
  4804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4805 if test -n "$ac_ct_CC"; then
  4806   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4807 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4808 else
  4809   { echo "$as_me:$LINENO: result: no" >&5
  4810 echo "${ECHO_T}no" >&6; }
  4811 fi
  4813   if test "x$ac_ct_CC" = x; then
  4814     CC=""
  4815   else
  4816     case $cross_compiling:$ac_tool_warned in
  4817 yes:)
  4818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4819 whose name does not start with the host triplet.  If you think this
  4820 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4822 whose name does not start with the host triplet.  If you think this
  4823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4824 ac_tool_warned=yes ;;
  4825 esac
  4826     CC=$ac_ct_CC
  4827   fi
  4828 else
  4829   CC="$ac_cv_prog_CC"
  4830 fi
  4832 if test -z "$CC"; then
  4833           if test -n "$ac_tool_prefix"; then
  4834     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4835 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4838 if test "${ac_cv_prog_CC+set}" = set; then
  4839   echo $ECHO_N "(cached) $ECHO_C" >&6
  4840 else
  4841   if test -n "$CC"; then
  4842   ac_cv_prog_CC="$CC" # Let the user override the test.
  4843 else
  4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4845 for as_dir in $PATH
  4846 do
  4847   IFS=$as_save_IFS
  4848   test -z "$as_dir" && as_dir=.
  4849   for ac_exec_ext in '' $ac_executable_extensions; do
  4850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4851     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4853     break 2
  4854   fi
  4855 done
  4856 done
  4857 IFS=$as_save_IFS
  4859 fi
  4860 fi
  4861 CC=$ac_cv_prog_CC
  4862 if test -n "$CC"; then
  4863   { echo "$as_me:$LINENO: result: $CC" >&5
  4864 echo "${ECHO_T}$CC" >&6; }
  4865 else
  4866   { echo "$as_me:$LINENO: result: no" >&5
  4867 echo "${ECHO_T}no" >&6; }
  4868 fi
  4871   fi
  4872 fi
  4873 if test -z "$CC"; then
  4874   # Extract the first word of "cc", so it can be a program name with args.
  4875 set dummy cc; ac_word=$2
  4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4878 if test "${ac_cv_prog_CC+set}" = set; then
  4879   echo $ECHO_N "(cached) $ECHO_C" >&6
  4880 else
  4881   if test -n "$CC"; then
  4882   ac_cv_prog_CC="$CC" # Let the user override the test.
  4883 else
  4884   ac_prog_rejected=no
  4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886 for as_dir in $PATH
  4887 do
  4888   IFS=$as_save_IFS
  4889   test -z "$as_dir" && as_dir=.
  4890   for ac_exec_ext in '' $ac_executable_extensions; do
  4891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4892     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4893        ac_prog_rejected=yes
  4894        continue
  4895      fi
  4896     ac_cv_prog_CC="cc"
  4897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4898     break 2
  4899   fi
  4900 done
  4901 done
  4902 IFS=$as_save_IFS
  4904 if test $ac_prog_rejected = yes; then
  4905   # We found a bogon in the path, so make sure we never use it.
  4906   set dummy $ac_cv_prog_CC
  4907   shift
  4908   if test $# != 0; then
  4909     # We chose a different compiler from the bogus one.
  4910     # However, it has the same basename, so the bogon will be chosen
  4911     # first if we set CC to just the basename; use the full file name.
  4912     shift
  4913     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4914   fi
  4915 fi
  4916 fi
  4917 fi
  4918 CC=$ac_cv_prog_CC
  4919 if test -n "$CC"; then
  4920   { echo "$as_me:$LINENO: result: $CC" >&5
  4921 echo "${ECHO_T}$CC" >&6; }
  4922 else
  4923   { echo "$as_me:$LINENO: result: no" >&5
  4924 echo "${ECHO_T}no" >&6; }
  4925 fi
  4928 fi
  4929 if test -z "$CC"; then
  4930   if test -n "$ac_tool_prefix"; then
  4931   for ac_prog in cl.exe
  4932   do
  4933     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4937 if test "${ac_cv_prog_CC+set}" = set; then
  4938   echo $ECHO_N "(cached) $ECHO_C" >&6
  4939 else
  4940   if test -n "$CC"; then
  4941   ac_cv_prog_CC="$CC" # Let the user override the test.
  4942 else
  4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4944 for as_dir in $PATH
  4945 do
  4946   IFS=$as_save_IFS
  4947   test -z "$as_dir" && as_dir=.
  4948   for ac_exec_ext in '' $ac_executable_extensions; do
  4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4950     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4952     break 2
  4953   fi
  4954 done
  4955 done
  4956 IFS=$as_save_IFS
  4958 fi
  4959 fi
  4960 CC=$ac_cv_prog_CC
  4961 if test -n "$CC"; then
  4962   { echo "$as_me:$LINENO: result: $CC" >&5
  4963 echo "${ECHO_T}$CC" >&6; }
  4964 else
  4965   { echo "$as_me:$LINENO: result: no" >&5
  4966 echo "${ECHO_T}no" >&6; }
  4967 fi
  4970     test -n "$CC" && break
  4971   done
  4972 fi
  4973 if test -z "$CC"; then
  4974   ac_ct_CC=$CC
  4975   for ac_prog in cl.exe
  4976 do
  4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4978 set dummy $ac_prog; ac_word=$2
  4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4982   echo $ECHO_N "(cached) $ECHO_C" >&6
  4983 else
  4984   if test -n "$ac_ct_CC"; then
  4985   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4986 else
  4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4988 for as_dir in $PATH
  4989 do
  4990   IFS=$as_save_IFS
  4991   test -z "$as_dir" && as_dir=.
  4992   for ac_exec_ext in '' $ac_executable_extensions; do
  4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4994     ac_cv_prog_ac_ct_CC="$ac_prog"
  4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4996     break 2
  4997   fi
  4998 done
  4999 done
  5000 IFS=$as_save_IFS
  5002 fi
  5003 fi
  5004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5005 if test -n "$ac_ct_CC"; then
  5006   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5007 echo "${ECHO_T}$ac_ct_CC" >&6; }
  5008 else
  5009   { echo "$as_me:$LINENO: result: no" >&5
  5010 echo "${ECHO_T}no" >&6; }
  5011 fi
  5014   test -n "$ac_ct_CC" && break
  5015 done
  5017   if test "x$ac_ct_CC" = x; then
  5018     CC=""
  5019   else
  5020     case $cross_compiling:$ac_tool_warned in
  5021 yes:)
  5022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5023 whose name does not start with the host triplet.  If you think this
  5024 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5026 whose name does not start with the host triplet.  If you think this
  5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5028 ac_tool_warned=yes ;;
  5029 esac
  5030     CC=$ac_ct_CC
  5031   fi
  5032 fi
  5034 fi
  5037 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5038 See \`config.log' for more details." >&5
  5039 echo "$as_me: error: no acceptable C compiler found in \$PATH
  5040 See \`config.log' for more details." >&2;}
  5041    { (exit 1); exit 1; }; }
  5043 # Provide some information about the compiler.
  5044 echo "$as_me:$LINENO: checking for C compiler version" >&5
  5045 ac_compiler=`set X $ac_compile; echo $2`
  5046 { (ac_try="$ac_compiler --version >&5"
  5047 case "(($ac_try" in
  5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5049   *) ac_try_echo=$ac_try;;
  5050 esac
  5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5052   (eval "$ac_compiler --version >&5") 2>&5
  5053   ac_status=$?
  5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055   (exit $ac_status); }
  5056 { (ac_try="$ac_compiler -v >&5"
  5057 case "(($ac_try" in
  5058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5059   *) ac_try_echo=$ac_try;;
  5060 esac
  5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5062   (eval "$ac_compiler -v >&5") 2>&5
  5063   ac_status=$?
  5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065   (exit $ac_status); }
  5066 { (ac_try="$ac_compiler -V >&5"
  5067 case "(($ac_try" in
  5068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5069   *) ac_try_echo=$ac_try;;
  5070 esac
  5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5072   (eval "$ac_compiler -V >&5") 2>&5
  5073   ac_status=$?
  5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5075   (exit $ac_status); }
  5077 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5080   echo $ECHO_N "(cached) $ECHO_C" >&6
  5081 else
  5082   cat >conftest.$ac_ext <<_ACEOF
  5083 /* confdefs.h.  */
  5084 _ACEOF
  5085 cat confdefs.h >>conftest.$ac_ext
  5086 cat >>conftest.$ac_ext <<_ACEOF
  5087 /* end confdefs.h.  */
  5089 int
  5090 main ()
  5092 #ifndef __GNUC__
  5093        choke me
  5094 #endif
  5097   return 0;
  5099 _ACEOF
  5100 rm -f conftest.$ac_objext
  5101 if { (ac_try="$ac_compile"
  5102 case "(($ac_try" in
  5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5104   *) ac_try_echo=$ac_try;;
  5105 esac
  5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5107   (eval "$ac_compile") 2>conftest.er1
  5108   ac_status=$?
  5109   grep -v '^ *+' conftest.er1 >conftest.err
  5110   rm -f conftest.er1
  5111   cat conftest.err >&5
  5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5113   (exit $ac_status); } && {
  5114 	 test -z "$ac_c_werror_flag" ||
  5115 	 test ! -s conftest.err
  5116        } && test -s conftest.$ac_objext; then
  5117   ac_compiler_gnu=yes
  5118 else
  5119   echo "$as_me: failed program was:" >&5
  5120 sed 's/^/| /' conftest.$ac_ext >&5
  5122 	ac_compiler_gnu=no
  5123 fi
  5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5128 fi
  5129 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5131 GCC=`test $ac_compiler_gnu = yes && echo yes`
  5132 ac_test_CFLAGS=${CFLAGS+set}
  5133 ac_save_CFLAGS=$CFLAGS
  5134 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5136 if test "${ac_cv_prog_cc_g+set}" = set; then
  5137   echo $ECHO_N "(cached) $ECHO_C" >&6
  5138 else
  5139   ac_save_c_werror_flag=$ac_c_werror_flag
  5140    ac_c_werror_flag=yes
  5141    ac_cv_prog_cc_g=no
  5142    CFLAGS="-g"
  5143    cat >conftest.$ac_ext <<_ACEOF
  5144 /* confdefs.h.  */
  5145 _ACEOF
  5146 cat confdefs.h >>conftest.$ac_ext
  5147 cat >>conftest.$ac_ext <<_ACEOF
  5148 /* end confdefs.h.  */
  5150 int
  5151 main ()
  5155   return 0;
  5157 _ACEOF
  5158 rm -f conftest.$ac_objext
  5159 if { (ac_try="$ac_compile"
  5160 case "(($ac_try" in
  5161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5162   *) ac_try_echo=$ac_try;;
  5163 esac
  5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5165   (eval "$ac_compile") 2>conftest.er1
  5166   ac_status=$?
  5167   grep -v '^ *+' conftest.er1 >conftest.err
  5168   rm -f conftest.er1
  5169   cat conftest.err >&5
  5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171   (exit $ac_status); } && {
  5172 	 test -z "$ac_c_werror_flag" ||
  5173 	 test ! -s conftest.err
  5174        } && test -s conftest.$ac_objext; then
  5175   ac_cv_prog_cc_g=yes
  5176 else
  5177   echo "$as_me: failed program was:" >&5
  5178 sed 's/^/| /' conftest.$ac_ext >&5
  5180 	CFLAGS=""
  5181       cat >conftest.$ac_ext <<_ACEOF
  5182 /* confdefs.h.  */
  5183 _ACEOF
  5184 cat confdefs.h >>conftest.$ac_ext
  5185 cat >>conftest.$ac_ext <<_ACEOF
  5186 /* end confdefs.h.  */
  5188 int
  5189 main ()
  5193   return 0;
  5195 _ACEOF
  5196 rm -f conftest.$ac_objext
  5197 if { (ac_try="$ac_compile"
  5198 case "(($ac_try" in
  5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5200   *) ac_try_echo=$ac_try;;
  5201 esac
  5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5203   (eval "$ac_compile") 2>conftest.er1
  5204   ac_status=$?
  5205   grep -v '^ *+' conftest.er1 >conftest.err
  5206   rm -f conftest.er1
  5207   cat conftest.err >&5
  5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5209   (exit $ac_status); } && {
  5210 	 test -z "$ac_c_werror_flag" ||
  5211 	 test ! -s conftest.err
  5212        } && test -s conftest.$ac_objext; then
  5214 else
  5215   echo "$as_me: failed program was:" >&5
  5216 sed 's/^/| /' conftest.$ac_ext >&5
  5218 	ac_c_werror_flag=$ac_save_c_werror_flag
  5219 	 CFLAGS="-g"
  5220 	 cat >conftest.$ac_ext <<_ACEOF
  5221 /* confdefs.h.  */
  5222 _ACEOF
  5223 cat confdefs.h >>conftest.$ac_ext
  5224 cat >>conftest.$ac_ext <<_ACEOF
  5225 /* end confdefs.h.  */
  5227 int
  5228 main ()
  5232   return 0;
  5234 _ACEOF
  5235 rm -f conftest.$ac_objext
  5236 if { (ac_try="$ac_compile"
  5237 case "(($ac_try" in
  5238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5239   *) ac_try_echo=$ac_try;;
  5240 esac
  5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5242   (eval "$ac_compile") 2>conftest.er1
  5243   ac_status=$?
  5244   grep -v '^ *+' conftest.er1 >conftest.err
  5245   rm -f conftest.er1
  5246   cat conftest.err >&5
  5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5248   (exit $ac_status); } && {
  5249 	 test -z "$ac_c_werror_flag" ||
  5250 	 test ! -s conftest.err
  5251        } && test -s conftest.$ac_objext; then
  5252   ac_cv_prog_cc_g=yes
  5253 else
  5254   echo "$as_me: failed program was:" >&5
  5255 sed 's/^/| /' conftest.$ac_ext >&5
  5258 fi
  5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5261 fi
  5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5264 fi
  5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267    ac_c_werror_flag=$ac_save_c_werror_flag
  5268 fi
  5269 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5270 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5271 if test "$ac_test_CFLAGS" = set; then
  5272   CFLAGS=$ac_save_CFLAGS
  5273 elif test $ac_cv_prog_cc_g = yes; then
  5274   if test "$GCC" = yes; then
  5275     CFLAGS="-g -O2"
  5276   else
  5277     CFLAGS="-g"
  5278   fi
  5279 else
  5280   if test "$GCC" = yes; then
  5281     CFLAGS="-O2"
  5282   else
  5283     CFLAGS=
  5284   fi
  5285 fi
  5286 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5287 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5288 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5289   echo $ECHO_N "(cached) $ECHO_C" >&6
  5290 else
  5291   ac_cv_prog_cc_c89=no
  5292 ac_save_CC=$CC
  5293 cat >conftest.$ac_ext <<_ACEOF
  5294 /* confdefs.h.  */
  5295 _ACEOF
  5296 cat confdefs.h >>conftest.$ac_ext
  5297 cat >>conftest.$ac_ext <<_ACEOF
  5298 /* end confdefs.h.  */
  5299 #include <stdarg.h>
  5300 #include <stdio.h>
  5301 #include <sys/types.h>
  5302 #include <sys/stat.h>
  5303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5304 struct buf { int x; };
  5305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5306 static char *e (p, i)
  5307      char **p;
  5308      int i;
  5310   return p[i];
  5312 static char *f (char * (*g) (char **, int), char **p, ...)
  5314   char *s;
  5315   va_list v;
  5316   va_start (v,p);
  5317   s = g (p, va_arg (v,int));
  5318   va_end (v);
  5319   return s;
  5322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5323    function prototypes and stuff, but not '\xHH' hex character constants.
  5324    These don't provoke an error unfortunately, instead are silently treated
  5325    as 'x'.  The following induces an error, until -std is added to get
  5326    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5327    array size at least.  It's necessary to write '\x00'==0 to get something
  5328    that's true only with -std.  */
  5329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5332    inside strings and character constants.  */
  5333 #define FOO(x) 'x'
  5334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5336 int test (int i, double x);
  5337 struct s1 {int (*f) (int a);};
  5338 struct s2 {int (*f) (double a);};
  5339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5340 int argc;
  5341 char **argv;
  5342 int
  5343 main ()
  5345 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5347   return 0;
  5349 _ACEOF
  5350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5351 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5352 do
  5353   CC="$ac_save_CC $ac_arg"
  5354   rm -f conftest.$ac_objext
  5355 if { (ac_try="$ac_compile"
  5356 case "(($ac_try" in
  5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5358   *) ac_try_echo=$ac_try;;
  5359 esac
  5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5361   (eval "$ac_compile") 2>conftest.er1
  5362   ac_status=$?
  5363   grep -v '^ *+' conftest.er1 >conftest.err
  5364   rm -f conftest.er1
  5365   cat conftest.err >&5
  5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5367   (exit $ac_status); } && {
  5368 	 test -z "$ac_c_werror_flag" ||
  5369 	 test ! -s conftest.err
  5370        } && test -s conftest.$ac_objext; then
  5371   ac_cv_prog_cc_c89=$ac_arg
  5372 else
  5373   echo "$as_me: failed program was:" >&5
  5374 sed 's/^/| /' conftest.$ac_ext >&5
  5377 fi
  5379 rm -f core conftest.err conftest.$ac_objext
  5380   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5381 done
  5382 rm -f conftest.$ac_ext
  5383 CC=$ac_save_CC
  5385 fi
  5386 # AC_CACHE_VAL
  5387 case "x$ac_cv_prog_cc_c89" in
  5388   x)
  5389     { echo "$as_me:$LINENO: result: none needed" >&5
  5390 echo "${ECHO_T}none needed" >&6; } ;;
  5391   xno)
  5392     { echo "$as_me:$LINENO: result: unsupported" >&5
  5393 echo "${ECHO_T}unsupported" >&6; } ;;
  5394   *)
  5395     CC="$CC $ac_cv_prog_cc_c89"
  5396     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5398 esac
  5401 ac_ext=c
  5402 ac_cpp='$CPP $CPPFLAGS'
  5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5407 depcc="$CC"   am_compiler_list=
  5409 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5410 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5411 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5412   echo $ECHO_N "(cached) $ECHO_C" >&6
  5413 else
  5414   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5415   # We make a subdir and do the tests there.  Otherwise we can end up
  5416   # making bogus files that we don't know about and never remove.  For
  5417   # instance it was reported that on HP-UX the gcc test will end up
  5418   # making a dummy file named `D' -- because `-MD' means `put the output
  5419   # in D'.
  5420   mkdir conftest.dir
  5421   # Copy depcomp to subdir because otherwise we won't find it if we're
  5422   # using a relative directory.
  5423   cp "$am_depcomp" conftest.dir
  5424   cd conftest.dir
  5425   # We will build objects and dependencies in a subdirectory because
  5426   # it helps to detect inapplicable dependency modes.  For instance
  5427   # both Tru64's cc and ICC support -MD to output dependencies as a
  5428   # side effect of compilation, but ICC will put the dependencies in
  5429   # the current directory while Tru64 will put them in the object
  5430   # directory.
  5431   mkdir sub
  5433   am_cv_CC_dependencies_compiler_type=none
  5434   if test "$am_compiler_list" = ""; then
  5435      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5436   fi
  5437   for depmode in $am_compiler_list; do
  5438     # Setup a source with many dependencies, because some compilers
  5439     # like to wrap large dependency lists on column 80 (with \), and
  5440     # we should not choose a depcomp mode which is confused by this.
  5442     # We need to recreate these files for each test, as the compiler may
  5443     # overwrite some of them when testing with obscure command lines.
  5444     # This happens at least with the AIX C compiler.
  5445     : > sub/conftest.c
  5446     for i in 1 2 3 4 5 6; do
  5447       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5448       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5449       # Solaris 8's {/usr,}/bin/sh.
  5450       touch sub/conftst$i.h
  5451     done
  5452     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5454     case $depmode in
  5455     nosideeffect)
  5456       # after this tag, mechanisms are not by side-effect, so they'll
  5457       # only be used when explicitly requested
  5458       if test "x$enable_dependency_tracking" = xyes; then
  5459 	continue
  5460       else
  5461 	break
  5462       fi
  5463       ;;
  5464     none) break ;;
  5465     esac
  5466     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5467     # mode.  It turns out that the SunPro C++ compiler does not properly
  5468     # handle `-M -o', and we need to detect this.
  5469     if depmode=$depmode \
  5470        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5471        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5472        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5473          >/dev/null 2>conftest.err &&
  5474        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5475        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5476        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5477       # icc doesn't choke on unknown options, it will just issue warnings
  5478       # or remarks (even with -Werror).  So we grep stderr for any message
  5479       # that says an option was ignored or not supported.
  5480       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5481       #   icc: Command line warning: ignoring option '-M'; no argument required
  5482       # The diagnosis changed in icc 8.0:
  5483       #   icc: Command line remark: option '-MP' not supported
  5484       if (grep 'ignoring option' conftest.err ||
  5485           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5486         am_cv_CC_dependencies_compiler_type=$depmode
  5487         break
  5488       fi
  5489     fi
  5490   done
  5492   cd ..
  5493   rm -rf conftest.dir
  5494 else
  5495   am_cv_CC_dependencies_compiler_type=none
  5496 fi
  5498 fi
  5499 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5500 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5501 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5505 if
  5506   test "x$enable_dependency_tracking" != xno \
  5507   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5508   am__fastdepCC_TRUE=
  5509   am__fastdepCC_FALSE='#'
  5510 else
  5511   am__fastdepCC_TRUE='#'
  5512   am__fastdepCC_FALSE=
  5513 fi
  5517 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5519 ac_ext=c
  5520 ac_cpp='$CPP $CPPFLAGS'
  5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5526 # On Suns, sometimes $CPP names a directory.
  5527 if test -n "$CPP" && test -d "$CPP"; then
  5528   CPP=
  5529 fi
  5530 if test -z "$CPP"; then
  5531   if test "${ac_cv_prog_CPP+set}" = set; then
  5532   echo $ECHO_N "(cached) $ECHO_C" >&6
  5533 else
  5534       # Double quotes because CPP needs to be expanded
  5535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5536     do
  5537       ac_preproc_ok=false
  5538 for ac_c_preproc_warn_flag in '' yes
  5539 do
  5540   # Use a header file that comes with gcc, so configuring glibc
  5541   # with a fresh cross-compiler works.
  5542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5543   # <limits.h> exists even on freestanding compilers.
  5544   # On the NeXT, cc -E runs the code through the compiler's parser,
  5545   # not just through cpp. "Syntax error" is here to catch this case.
  5546   cat >conftest.$ac_ext <<_ACEOF
  5547 /* confdefs.h.  */
  5548 _ACEOF
  5549 cat confdefs.h >>conftest.$ac_ext
  5550 cat >>conftest.$ac_ext <<_ACEOF
  5551 /* end confdefs.h.  */
  5552 #ifdef __STDC__
  5553 # include <limits.h>
  5554 #else
  5555 # include <assert.h>
  5556 #endif
  5557 		     Syntax error
  5558 _ACEOF
  5559 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5560 case "(($ac_try" in
  5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5562   *) ac_try_echo=$ac_try;;
  5563 esac
  5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5566   ac_status=$?
  5567   grep -v '^ *+' conftest.er1 >conftest.err
  5568   rm -f conftest.er1
  5569   cat conftest.err >&5
  5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571   (exit $ac_status); } >/dev/null && {
  5572 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5573 	 test ! -s conftest.err
  5574        }; then
  5576 else
  5577   echo "$as_me: failed program was:" >&5
  5578 sed 's/^/| /' conftest.$ac_ext >&5
  5580   # Broken: fails on valid input.
  5581 continue
  5582 fi
  5584 rm -f conftest.err conftest.$ac_ext
  5586   # OK, works on sane cases.  Now check whether nonexistent headers
  5587   # can be detected and how.
  5588   cat >conftest.$ac_ext <<_ACEOF
  5589 /* confdefs.h.  */
  5590 _ACEOF
  5591 cat confdefs.h >>conftest.$ac_ext
  5592 cat >>conftest.$ac_ext <<_ACEOF
  5593 /* end confdefs.h.  */
  5594 #include <ac_nonexistent.h>
  5595 _ACEOF
  5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5597 case "(($ac_try" in
  5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5599   *) ac_try_echo=$ac_try;;
  5600 esac
  5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5603   ac_status=$?
  5604   grep -v '^ *+' conftest.er1 >conftest.err
  5605   rm -f conftest.er1
  5606   cat conftest.err >&5
  5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5608   (exit $ac_status); } >/dev/null && {
  5609 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5610 	 test ! -s conftest.err
  5611        }; then
  5612   # Broken: success on invalid input.
  5613 continue
  5614 else
  5615   echo "$as_me: failed program was:" >&5
  5616 sed 's/^/| /' conftest.$ac_ext >&5
  5618   # Passes both tests.
  5619 ac_preproc_ok=:
  5620 break
  5621 fi
  5623 rm -f conftest.err conftest.$ac_ext
  5625 done
  5626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5627 rm -f conftest.err conftest.$ac_ext
  5628 if $ac_preproc_ok; then
  5629   break
  5630 fi
  5632     done
  5633     ac_cv_prog_CPP=$CPP
  5635 fi
  5636   CPP=$ac_cv_prog_CPP
  5637 else
  5638   ac_cv_prog_CPP=$CPP
  5639 fi
  5640 { echo "$as_me:$LINENO: result: $CPP" >&5
  5641 echo "${ECHO_T}$CPP" >&6; }
  5642 ac_preproc_ok=false
  5643 for ac_c_preproc_warn_flag in '' yes
  5644 do
  5645   # Use a header file that comes with gcc, so configuring glibc
  5646   # with a fresh cross-compiler works.
  5647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5648   # <limits.h> exists even on freestanding compilers.
  5649   # On the NeXT, cc -E runs the code through the compiler's parser,
  5650   # not just through cpp. "Syntax error" is here to catch this case.
  5651   cat >conftest.$ac_ext <<_ACEOF
  5652 /* confdefs.h.  */
  5653 _ACEOF
  5654 cat confdefs.h >>conftest.$ac_ext
  5655 cat >>conftest.$ac_ext <<_ACEOF
  5656 /* end confdefs.h.  */
  5657 #ifdef __STDC__
  5658 # include <limits.h>
  5659 #else
  5660 # include <assert.h>
  5661 #endif
  5662 		     Syntax error
  5663 _ACEOF
  5664 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5665 case "(($ac_try" in
  5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5667   *) ac_try_echo=$ac_try;;
  5668 esac
  5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5671   ac_status=$?
  5672   grep -v '^ *+' conftest.er1 >conftest.err
  5673   rm -f conftest.er1
  5674   cat conftest.err >&5
  5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5676   (exit $ac_status); } >/dev/null && {
  5677 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5678 	 test ! -s conftest.err
  5679        }; then
  5681 else
  5682   echo "$as_me: failed program was:" >&5
  5683 sed 's/^/| /' conftest.$ac_ext >&5
  5685   # Broken: fails on valid input.
  5686 continue
  5687 fi
  5689 rm -f conftest.err conftest.$ac_ext
  5691   # OK, works on sane cases.  Now check whether nonexistent headers
  5692   # can be detected and how.
  5693   cat >conftest.$ac_ext <<_ACEOF
  5694 /* confdefs.h.  */
  5695 _ACEOF
  5696 cat confdefs.h >>conftest.$ac_ext
  5697 cat >>conftest.$ac_ext <<_ACEOF
  5698 /* end confdefs.h.  */
  5699 #include <ac_nonexistent.h>
  5700 _ACEOF
  5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5702 case "(($ac_try" in
  5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5704   *) ac_try_echo=$ac_try;;
  5705 esac
  5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5708   ac_status=$?
  5709   grep -v '^ *+' conftest.er1 >conftest.err
  5710   rm -f conftest.er1
  5711   cat conftest.err >&5
  5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5713   (exit $ac_status); } >/dev/null && {
  5714 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5715 	 test ! -s conftest.err
  5716        }; then
  5717   # Broken: success on invalid input.
  5718 continue
  5719 else
  5720   echo "$as_me: failed program was:" >&5
  5721 sed 's/^/| /' conftest.$ac_ext >&5
  5723   # Passes both tests.
  5724 ac_preproc_ok=:
  5725 break
  5726 fi
  5728 rm -f conftest.err conftest.$ac_ext
  5730 done
  5731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5732 rm -f conftest.err conftest.$ac_ext
  5733 if $ac_preproc_ok; then
  5735 else
  5736   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5737 See \`config.log' for more details." >&5
  5738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5739 See \`config.log' for more details." >&2;}
  5740    { (exit 1); exit 1; }; }
  5741 fi
  5743 ac_ext=c
  5744 ac_cpp='$CPP $CPPFLAGS'
  5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5750 ac_main_cc="$CC"
  5751 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
  5753 if test -z "$CC_FOR_BUILD"; then
  5754     if test "$#" = yes; then
  5755   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  5756 See \`config.log' for more details." >&5
  5757 echo "$as_me: error: cannot run test program while cross compiling
  5758 See \`config.log' for more details." >&2;}
  5759    { (exit 1); exit 1; }; }
  5760 else
  5761   cat >conftest.$ac_ext <<_ACEOF
  5762 int main(){return 0;}
  5763 _ACEOF
  5764 rm -f conftest$ac_exeext
  5765 if { (ac_try="$ac_link"
  5766 case "(($ac_try" in
  5767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5768   *) ac_try_echo=$ac_try;;
  5769 esac
  5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5771   (eval "$ac_link") 2>&5
  5772   ac_status=$?
  5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5775   { (case "(($ac_try" in
  5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5777   *) ac_try_echo=$ac_try;;
  5778 esac
  5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5780   (eval "$ac_try") 2>&5
  5781   ac_status=$?
  5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783   (exit $ac_status); }; }; then
  5784   CC_FOR_BUILD="$CC"
  5785 else
  5786   echo "$as_me: program exited with status $ac_status" >&5
  5787 echo "$as_me: failed program was:" >&5
  5788 sed 's/^/| /' conftest.$ac_ext >&5
  5790 fi
  5791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5792 fi
  5795 fi
  5798 ac_ext=c
  5799 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5800 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5801 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5802 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  5803 if test -n "$ac_build_tool_prefix"; then
  5804   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5805 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5808 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5809   echo $ECHO_N "(cached) $ECHO_C" >&6
  5810 else
  5811   if test -n "$CC_FOR_BUILD"; then
  5812   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5813 else
  5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5815 for as_dir in $PATH
  5816 do
  5817   IFS=$as_save_IFS
  5818   test -z "$as_dir" && as_dir=.
  5819   for ac_exec_ext in '' $ac_executable_extensions; do
  5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5821     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5823     break 2
  5824   fi
  5825 done
  5826 done
  5827 IFS=$as_save_IFS
  5829 fi
  5830 fi
  5831 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5832 if test -n "$CC_FOR_BUILD"; then
  5833   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5834 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5835 else
  5836   { echo "$as_me:$LINENO: result: no" >&5
  5837 echo "${ECHO_T}no" >&6; }
  5838 fi
  5841 fi
  5842 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  5843   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  5844   # Extract the first word of "gcc", so it can be a program name with args.
  5845 set dummy gcc; ac_word=$2
  5846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5848 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  5849   echo $ECHO_N "(cached) $ECHO_C" >&6
  5850 else
  5851   if test -n "$ac_ct_CC_FOR_BUILD"; then
  5852   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  5853 else
  5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855 for as_dir in $PATH
  5856 do
  5857   IFS=$as_save_IFS
  5858   test -z "$as_dir" && as_dir=.
  5859   for ac_exec_ext in '' $ac_executable_extensions; do
  5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5861     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5863     break 2
  5864   fi
  5865 done
  5866 done
  5867 IFS=$as_save_IFS
  5869 fi
  5870 fi
  5871 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  5872 if test -n "$ac_ct_CC_FOR_BUILD"; then
  5873   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  5874 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  5875 else
  5876   { echo "$as_me:$LINENO: result: no" >&5
  5877 echo "${ECHO_T}no" >&6; }
  5878 fi
  5880   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  5881     CC_FOR_BUILD=""
  5882   else
  5883     case $#:$ac_tool_warned in
  5884 yes:)
  5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5886 whose name does not start with the build triplet.  If you think this
  5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5889 whose name does not start with the build triplet.  If you think this
  5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5891 ac_tool_warned=yes ;;
  5892 esac
  5893     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  5894   fi
  5895 else
  5896   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  5897 fi
  5899 if test -z "$CC_FOR_BUILD"; then
  5900           if test -n "$ac_build_tool_prefix"; then
  5901     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5902 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5905 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5906   echo $ECHO_N "(cached) $ECHO_C" >&6
  5907 else
  5908   if test -n "$CC_FOR_BUILD"; then
  5909   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5910 else
  5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912 for as_dir in $PATH
  5913 do
  5914   IFS=$as_save_IFS
  5915   test -z "$as_dir" && as_dir=.
  5916   for ac_exec_ext in '' $ac_executable_extensions; do
  5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5918     ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920     break 2
  5921   fi
  5922 done
  5923 done
  5924 IFS=$as_save_IFS
  5926 fi
  5927 fi
  5928 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5929 if test -n "$CC_FOR_BUILD"; then
  5930   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5931 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5932 else
  5933   { echo "$as_me:$LINENO: result: no" >&5
  5934 echo "${ECHO_T}no" >&6; }
  5935 fi
  5938   fi
  5939 fi
  5940 if test -z "$CC_FOR_BUILD"; then
  5941   # Extract the first word of "cc", so it can be a program name with args.
  5942 set dummy cc; ac_word=$2
  5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5945 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  5946   echo $ECHO_N "(cached) $ECHO_C" >&6
  5947 else
  5948   if test -n "$CC_FOR_BUILD"; then
  5949   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5950 else
  5951   ac_prog_rejected=no
  5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5953 for as_dir in $PATH
  5954 do
  5955   IFS=$as_save_IFS
  5956   test -z "$as_dir" && as_dir=.
  5957   for ac_exec_ext in '' $ac_executable_extensions; do
  5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5959     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5960        ac_prog_rejected=yes
  5961        continue
  5962      fi
  5963     ac_cv_prog_CC_FOR_BUILD="cc"
  5964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965     break 2
  5966   fi
  5967 done
  5968 done
  5969 IFS=$as_save_IFS
  5971 if test $ac_prog_rejected = yes; then
  5972   # We found a bogon in the path, so make sure we never use it.
  5973   set dummy $ac_cv_prog_CC_FOR_BUILD
  5974   shift
  5975   if test $# != 0; then
  5976     # We chose a different compiler from the bogus one.
  5977     # However, it has the same basename, so the bogon will be chosen
  5978     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  5979     shift
  5980     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  5981   fi
  5982 fi
  5983 fi
  5984 fi
  5985 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5986 if test -n "$CC_FOR_BUILD"; then
  5987   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  5988 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  5989 else
  5990   { echo "$as_me:$LINENO: result: no" >&5
  5991 echo "${ECHO_T}no" >&6; }
  5992 fi
  5995 fi
  5996 if test -z "$CC_FOR_BUILD"; then
  5997   if test -n "$ac_build_tool_prefix"; then
  5998   for ac_prog in cl.exe
  5999   do
  6000     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6001 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6004 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
  6005   echo $ECHO_N "(cached) $ECHO_C" >&6
  6006 else
  6007   if test -n "$CC_FOR_BUILD"; then
  6008   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  6009 else
  6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6011 for as_dir in $PATH
  6012 do
  6013   IFS=$as_save_IFS
  6014   test -z "$as_dir" && as_dir=.
  6015   for ac_exec_ext in '' $ac_executable_extensions; do
  6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6017     ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  6018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6019     break 2
  6020   fi
  6021 done
  6022 done
  6023 IFS=$as_save_IFS
  6025 fi
  6026 fi
  6027 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6028 if test -n "$CC_FOR_BUILD"; then
  6029   { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  6030 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
  6031 else
  6032   { echo "$as_me:$LINENO: result: no" >&5
  6033 echo "${ECHO_T}no" >&6; }
  6034 fi
  6037     test -n "$CC_FOR_BUILD" && break
  6038   done
  6039 fi
  6040 if test -z "$CC_FOR_BUILD"; then
  6041   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6042   for ac_prog in cl.exe
  6043 do
  6044   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6045 set dummy $ac_prog; ac_word=$2
  6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6048 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
  6049   echo $ECHO_N "(cached) $ECHO_C" >&6
  6050 else
  6051   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6052   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6053 else
  6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6055 for as_dir in $PATH
  6056 do
  6057   IFS=$as_save_IFS
  6058   test -z "$as_dir" && as_dir=.
  6059   for ac_exec_ext in '' $ac_executable_extensions; do
  6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6061     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6063     break 2
  6064   fi
  6065 done
  6066 done
  6067 IFS=$as_save_IFS
  6069 fi
  6070 fi
  6071 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6072 if test -n "$ac_ct_CC_FOR_BUILD"; then
  6073   { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
  6074 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
  6075 else
  6076   { echo "$as_me:$LINENO: result: no" >&5
  6077 echo "${ECHO_T}no" >&6; }
  6078 fi
  6081   test -n "$ac_ct_CC_FOR_BUILD" && break
  6082 done
  6084   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6085     CC_FOR_BUILD=""
  6086   else
  6087     case $#:$ac_tool_warned in
  6088 yes:)
  6089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6090 whose name does not start with the build triplet.  If you think this
  6091 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6093 whose name does not start with the build triplet.  If you think this
  6094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6095 ac_tool_warned=yes ;;
  6096 esac
  6097     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6098   fi
  6099 fi
  6101 fi
  6104 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  6105 See \`config.log' for more details." >&5
  6106 echo "$as_me: error: no acceptable C compiler found in \$PATH
  6107 See \`config.log' for more details." >&2;}
  6108    { (exit 1); exit 1; }; }
  6110 # Provide some information about the compiler.
  6111 echo "$as_me:$LINENO: checking for C compiler version" >&5
  6112 ac_compiler=`set X $ac_build_compile; echo $2`
  6113 { (ac_try="$ac_compiler --version >&5"
  6114 case "(($ac_try" in
  6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6116   *) ac_try_echo=$ac_try;;
  6117 esac
  6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6119   (eval "$ac_compiler --version >&5") 2>&5
  6120   ac_status=$?
  6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6122   (exit $ac_status); }
  6123 { (ac_try="$ac_compiler -v >&5"
  6124 case "(($ac_try" in
  6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6126   *) ac_try_echo=$ac_try;;
  6127 esac
  6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6129   (eval "$ac_compiler -v >&5") 2>&5
  6130   ac_status=$?
  6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132   (exit $ac_status); }
  6133 { (ac_try="$ac_compiler -V >&5"
  6134 case "(($ac_try" in
  6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6136   *) ac_try_echo=$ac_try;;
  6137 esac
  6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6139   (eval "$ac_compiler -V >&5") 2>&5
  6140   ac_status=$?
  6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142   (exit $ac_status); }
  6144 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  6145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  6146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  6147   echo $ECHO_N "(cached) $ECHO_C" >&6
  6148 else
  6149   cat >conftest.$ac_ext <<_ACEOF
  6150 /* confdefs.h.  */
  6151 _ACEOF
  6152 cat confdefs.h >>conftest.$ac_ext
  6153 cat >>conftest.$ac_ext <<_ACEOF
  6154 /* end confdefs.h.  */
  6156 int
  6157 main ()
  6159 #ifndef __GNUC__
  6160        choke me
  6161 #endif
  6164   return 0;
  6166 _ACEOF
  6167 rm -f conftest.$ac_build_objext
  6168 if { (ac_try="$ac_build_compile"
  6169 case "(($ac_try" in
  6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6171   *) ac_try_echo=$ac_try;;
  6172 esac
  6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6174   (eval "$ac_build_compile") 2>conftest.er1
  6175   ac_status=$?
  6176   grep -v '^ *+' conftest.er1 >conftest.err
  6177   rm -f conftest.er1
  6178   cat conftest.err >&5
  6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6180   (exit $ac_status); } && {
  6181 	 test -z "$ac_c_werror_flag" ||
  6182 	 test ! -s conftest.err
  6183        } && test -s conftest.$ac_build_objext; then
  6184   ac_build_compiler_gnu=yes
  6185 else
  6186   echo "$as_me: failed program was:" >&5
  6187 sed 's/^/| /' conftest.$ac_ext >&5
  6189 	ac_build_compiler_gnu=no
  6190 fi
  6192 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6193 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
  6195 fi
  6196 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  6197 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  6198 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
  6199 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6200 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6201 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
  6202 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
  6203 if test "${ac_cv_build_prog_cc_g+set}" = set; then
  6204   echo $ECHO_N "(cached) $ECHO_C" >&6
  6205 else
  6206   ac_save_c_werror_flag=$ac_c_werror_flag
  6207    ac_c_werror_flag=yes
  6208    ac_cv_build_prog_cc_g=no
  6209    CFLAGS_FOR_BUILD="-g"
  6210    cat >conftest.$ac_ext <<_ACEOF
  6211 /* confdefs.h.  */
  6212 _ACEOF
  6213 cat confdefs.h >>conftest.$ac_ext
  6214 cat >>conftest.$ac_ext <<_ACEOF
  6215 /* end confdefs.h.  */
  6217 int
  6218 main ()
  6222   return 0;
  6224 _ACEOF
  6225 rm -f conftest.$ac_build_objext
  6226 if { (ac_try="$ac_build_compile"
  6227 case "(($ac_try" in
  6228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6229   *) ac_try_echo=$ac_try;;
  6230 esac
  6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6232   (eval "$ac_build_compile") 2>conftest.er1
  6233   ac_status=$?
  6234   grep -v '^ *+' conftest.er1 >conftest.err
  6235   rm -f conftest.er1
  6236   cat conftest.err >&5
  6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238   (exit $ac_status); } && {
  6239 	 test -z "$ac_c_werror_flag" ||
  6240 	 test ! -s conftest.err
  6241        } && test -s conftest.$ac_build_objext; then
  6242   ac_cv_build_prog_cc_g=yes
  6243 else
  6244   echo "$as_me: failed program was:" >&5
  6245 sed 's/^/| /' conftest.$ac_ext >&5
  6247 	CFLAGS_FOR_BUILD=""
  6248       cat >conftest.$ac_ext <<_ACEOF
  6249 /* confdefs.h.  */
  6250 _ACEOF
  6251 cat confdefs.h >>conftest.$ac_ext
  6252 cat >>conftest.$ac_ext <<_ACEOF
  6253 /* end confdefs.h.  */
  6255 int
  6256 main ()
  6260   return 0;
  6262 _ACEOF
  6263 rm -f conftest.$ac_build_objext
  6264 if { (ac_try="$ac_build_compile"
  6265 case "(($ac_try" in
  6266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6267   *) ac_try_echo=$ac_try;;
  6268 esac
  6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6270   (eval "$ac_build_compile") 2>conftest.er1
  6271   ac_status=$?
  6272   grep -v '^ *+' conftest.er1 >conftest.err
  6273   rm -f conftest.er1
  6274   cat conftest.err >&5
  6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276   (exit $ac_status); } && {
  6277 	 test -z "$ac_c_werror_flag" ||
  6278 	 test ! -s conftest.err
  6279        } && test -s conftest.$ac_build_objext; then
  6281 else
  6282   echo "$as_me: failed program was:" >&5
  6283 sed 's/^/| /' conftest.$ac_ext >&5
  6285 	ac_c_werror_flag=$ac_save_c_werror_flag
  6286 	 CFLAGS_FOR_BUILD="-g"
  6287 	 cat >conftest.$ac_ext <<_ACEOF
  6288 /* confdefs.h.  */
  6289 _ACEOF
  6290 cat confdefs.h >>conftest.$ac_ext
  6291 cat >>conftest.$ac_ext <<_ACEOF
  6292 /* end confdefs.h.  */
  6294 int
  6295 main ()
  6299   return 0;
  6301 _ACEOF
  6302 rm -f conftest.$ac_build_objext
  6303 if { (ac_try="$ac_build_compile"
  6304 case "(($ac_try" in
  6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6306   *) ac_try_echo=$ac_try;;
  6307 esac
  6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6309   (eval "$ac_build_compile") 2>conftest.er1
  6310   ac_status=$?
  6311   grep -v '^ *+' conftest.er1 >conftest.err
  6312   rm -f conftest.er1
  6313   cat conftest.err >&5
  6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315   (exit $ac_status); } && {
  6316 	 test -z "$ac_c_werror_flag" ||
  6317 	 test ! -s conftest.err
  6318        } && test -s conftest.$ac_build_objext; then
  6319   ac_cv_build_prog_cc_g=yes
  6320 else
  6321   echo "$as_me: failed program was:" >&5
  6322 sed 's/^/| /' conftest.$ac_ext >&5
  6325 fi
  6327 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6328 fi
  6330 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6331 fi
  6333 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6334    ac_c_werror_flag=$ac_save_c_werror_flag
  6335 fi
  6336 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
  6337 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
  6338 if test "$ac_test_CFLAGS" = set; then
  6339   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6340 elif test $ac_cv_build_prog_cc_g = yes; then
  6341   if test "$GCC" = yes; then
  6342     CFLAGS_FOR_BUILD="-g -O2"
  6343   else
  6344     CFLAGS_FOR_BUILD="-g"
  6345   fi
  6346 else
  6347   if test "$GCC" = yes; then
  6348     CFLAGS_FOR_BUILD="-O2"
  6349   else
  6350     CFLAGS_FOR_BUILD=
  6351   fi
  6352 fi
  6353 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6354 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6355 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6356   echo $ECHO_N "(cached) $ECHO_C" >&6
  6357 else
  6358   ac_cv_build_prog_cc_stdc=no
  6359 ac_save_CC=$CC_FOR_BUILD
  6360 cat >conftest.$ac_ext <<_ACEOF
  6361 /* confdefs.h.  */
  6362 _ACEOF
  6363 cat confdefs.h >>conftest.$ac_ext
  6364 cat >>conftest.$ac_ext <<_ACEOF
  6365 /* end confdefs.h.  */
  6366 #include <stdarg.h>
  6367 #include <stdio.h>
  6368 #include <sys/types.h>
  6369 #include <sys/stat.h>
  6370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6371 struct buf { int x; };
  6372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6373 static char *e (p, i)
  6374      char **p;
  6375      int i;
  6377   return p[i];
  6379 static char *f (char * (*g) (char **, int), char **p, ...)
  6381   char *s;
  6382   va_list v;
  6383   va_start (v,p);
  6384   s = g (p, va_arg (v,int));
  6385   va_end (v);
  6386   return s;
  6389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6390    function prototypes and stuff, but not '\xHH' hex character constants.
  6391    These don't provoke an error unfortunately, instead are silently treated
  6392    as 'x'.  The following induces an error, until -std is added to get
  6393    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6394    array size at least.  It's necessary to write '\x00'==0 to get something
  6395    that's true only with -std.  */
  6396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6399    inside strings and character constants.  */
  6400 #define FOO(x) 'x'
  6401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6403 int test (int i, double x);
  6404 struct s1 {int (*f) (int a);};
  6405 struct s2 {int (*f) (double a);};
  6406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6407 int argc;
  6408 char **argv;
  6409 int
  6410 main ()
  6412 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6414   return 0;
  6416 _ACEOF
  6417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6418 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6419 do
  6420   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6421   rm -f conftest.$ac_build_objext
  6422 if { (ac_try="$ac_build_compile"
  6423 case "(($ac_try" in
  6424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6425   *) ac_try_echo=$ac_try;;
  6426 esac
  6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6428   (eval "$ac_build_compile") 2>conftest.er1
  6429   ac_status=$?
  6430   grep -v '^ *+' conftest.er1 >conftest.err
  6431   rm -f conftest.er1
  6432   cat conftest.err >&5
  6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434   (exit $ac_status); } && {
  6435 	 test -z "$ac_c_werror_flag" ||
  6436 	 test ! -s conftest.err
  6437        } && test -s conftest.$ac_build_objext; then
  6438   ac_cv_build_prog_cc_stdc=$ac_arg
  6439 else
  6440   echo "$as_me: failed program was:" >&5
  6441 sed 's/^/| /' conftest.$ac_ext >&5
  6444 fi
  6446 rm -f core conftest.err conftest.$ac_build_objext
  6447   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6448 done
  6449 rm -f conftest.$ac_ext
  6450 CC_FOR_BUILD=$ac_save_CC
  6452 fi
  6453 # AC_CACHE_VAL
  6454 case "x$ac_cv_build_prog_cc_stdc" in
  6455   x)
  6456     { echo "$as_me:$LINENO: result: none needed" >&5
  6457 echo "${ECHO_T}none needed" >&6; } ;;
  6458   xno)
  6459     { echo "$as_me:$LINENO: result: unsupported" >&5
  6460 echo "${ECHO_T}unsupported" >&6; } ;;
  6461   *)
  6462     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6463     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6464 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6465 esac
  6468 ac_ext=c
  6469 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6470 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6471 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6472 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6474 depcc="$CC_FOR_BUILD"   am_compiler_list=
  6476 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  6478 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
  6479   echo $ECHO_N "(cached) $ECHO_C" >&6
  6480 else
  6481   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6482   # We make a subdir and do the tests there.  Otherwise we can end up
  6483   # making bogus files that we don't know about and never remove.  For
  6484   # instance it was reported that on HP-UX the gcc test will end up
  6485   # making a dummy file named `D' -- because `-MD' means `put the output
  6486   # in D'.
  6487   mkdir conftest.dir
  6488   # Copy depcomp to subdir because otherwise we won't find it if we're
  6489   # using a relative directory.
  6490   cp "$am_depcomp" conftest.dir
  6491   cd conftest.dir
  6492   # We will build objects and dependencies in a subdirectory because
  6493   # it helps to detect inapplicable dependency modes.  For instance
  6494   # both Tru64's cc and ICC support -MD to output dependencies as a
  6495   # side effect of compilation, but ICC will put the dependencies in
  6496   # the current directory while Tru64 will put them in the object
  6497   # directory.
  6498   mkdir sub
  6500   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6501   if test "$am_compiler_list" = ""; then
  6502      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6503   fi
  6504   for depmode in $am_compiler_list; do
  6505     # Setup a source with many dependencies, because some compilers
  6506     # like to wrap large dependency lists on column 80 (with \), and
  6507     # we should not choose a depcomp mode which is confused by this.
  6509     # We need to recreate these files for each test, as the compiler may
  6510     # overwrite some of them when testing with obscure command lines.
  6511     # This happens at least with the AIX C compiler.
  6512     : > sub/conftest.c
  6513     for i in 1 2 3 4 5 6; do
  6514       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6515       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6516       # Solaris 8's {/usr,}/bin/sh.
  6517       touch sub/conftst$i.h
  6518     done
  6519     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6521     case $depmode in
  6522     nosideeffect)
  6523       # after this tag, mechanisms are not by side-effect, so they'll
  6524       # only be used when explicitly requested
  6525       if test "x$enable_dependency_tracking" = xyes; then
  6526 	continue
  6527       else
  6528 	break
  6529       fi
  6530       ;;
  6531     none) break ;;
  6532     esac
  6533     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6534     # mode.  It turns out that the SunPro C++ compiler does not properly
  6535     # handle `-M -o', and we need to detect this.
  6536     if depmode=$depmode \
  6537        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6538        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6539        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6540          >/dev/null 2>conftest.err &&
  6541        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6542        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6543        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6544       # icc doesn't choke on unknown options, it will just issue warnings
  6545       # or remarks (even with -Werror).  So we grep stderr for any message
  6546       # that says an option was ignored or not supported.
  6547       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6548       #   icc: Command line warning: ignoring option '-M'; no argument required
  6549       # The diagnosis changed in icc 8.0:
  6550       #   icc: Command line remark: option '-MP' not supported
  6551       if (grep 'ignoring option' conftest.err ||
  6552           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6553         am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
  6554         break
  6555       fi
  6556     fi
  6557   done
  6559   cd ..
  6560   rm -rf conftest.dir
  6561 else
  6562   am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
  6563 fi
  6565 fi
  6566 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
  6567 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
  6568 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
  6572 if
  6573   test "x$enable_dependency_tracking" != xno \
  6574   && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
  6575   am__fastdepCC_FOR_BUILD_TRUE=
  6576   am__fastdepCC_FOR_BUILD_FALSE='#'
  6577 else
  6578   am__fastdepCC_FOR_BUILD_TRUE='#'
  6579   am__fastdepCC_FOR_BUILD_FALSE=
  6580 fi
  6583    case $ac_cv_build_prog_cc_stdc in
  6584   no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
  6585   *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
  6586 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
  6587 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6588   echo $ECHO_N "(cached) $ECHO_C" >&6
  6589 else
  6590   ac_cv_build_prog_cc_stdc=no
  6591 ac_save_CC=$CC_FOR_BUILD
  6592 cat >conftest.$ac_ext <<_ACEOF
  6593 /* confdefs.h.  */
  6594 _ACEOF
  6595 cat confdefs.h >>conftest.$ac_ext
  6596 cat >>conftest.$ac_ext <<_ACEOF
  6597 /* end confdefs.h.  */
  6598 #include <stdarg.h>
  6599 #include <stdbool.h>
  6600 #include <stdlib.h>
  6601 #include <wchar.h>
  6602 #include <stdio.h>
  6604 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  6605 #define debug(...) fprintf (stderr, __VA_ARGS__)
  6606 #define showlist(...) puts (#__VA_ARGS__)
  6607 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  6608 static void
  6609 test_varargs_macros (void)
  6611   int x = 1234;
  6612   int y = 5678;
  6613   debug ("Flag");
  6614   debug ("X = %d\n", x);
  6615   showlist (The first, second, and third items.);
  6616   report (x>y, "x is %d but y is %d", x, y);
  6619 // Check long long types.
  6620 #define BIG64 18446744073709551615ull
  6621 #define BIG32 4294967295ul
  6622 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6623 #if !BIG_OK
  6624   your preprocessor is broken;
  6625 #endif
  6626 #if BIG_OK
  6627 #else
  6628   your preprocessor is broken;
  6629 #endif
  6630 static long long int bignum = -9223372036854775807LL;
  6631 static unsigned long long int ubignum = BIG64;
  6633 struct incomplete_array
  6635   int datasize;
  6636   double data[];
  6637 };
  6639 struct named_init {
  6640   int number;
  6641   const wchar_t *name;
  6642   double average;
  6643 };
  6645 typedef const char *ccp;
  6647 static inline int
  6648 test_restrict (ccp restrict text)
  6650   // See if C++-style comments work.
  6651   // Iterate through items via the restricted pointer.
  6652   // Also check for declarations in for loops.
  6653   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6654     continue;
  6655   return 0;
  6658 // Check varargs and va_copy.
  6659 static void
  6660 test_varargs (const char *format, ...)
  6662   va_list args;
  6663   va_start (args, format);
  6664   va_list args_copy;
  6665   va_copy (args_copy, args);
  6667   const char *str;
  6668   int number;
  6669   float fnumber;
  6671   while (*format)
  6673       switch (*format++)
  6675 	case 's': // string
  6676 	  str = va_arg (args_copy, const char *);
  6677 	  break;
  6678 	case 'd': // int
  6679 	  number = va_arg (args_copy, int);
  6680 	  break;
  6681 	case 'f': // float
  6682 	  fnumber = va_arg (args_copy, double);
  6683 	  break;
  6684 	default:
  6685 	  break;
  6688   va_end (args_copy);
  6689   va_end (args);
  6692 int
  6693 main ()
  6696   // Check bool.
  6697   _Bool success = false;
  6699   // Check restrict.
  6700   if (test_restrict ("String literal") == 0)
  6701     success = true;
  6702   char *restrict newvar = "Another string";
  6704   // Check varargs.
  6705   test_varargs ("s, d' f .", "string", 65, 34.234);
  6706   test_varargs_macros ();
  6708   // Check flexible array members.
  6709   struct incomplete_array *ia =
  6710     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6711   ia->datasize = 10;
  6712   for (int i = 0; i < ia->datasize; ++i)
  6713     ia->data[i] = i * 1.234;
  6715   // Check named initializers.
  6716   struct named_init ni = {
  6717     .number = 34,
  6718     .name = L"Test wide string",
  6719     .average = 543.34343,
  6720   };
  6722   ni.number = 58;
  6724   int dynamic_array[ni.number];
  6725   dynamic_array[ni.number - 1] = 543;
  6727   // work around unused variable warnings
  6728   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6729 	  || dynamic_array[ni.number - 1] != 543);
  6732   return 0;
  6734 _ACEOF
  6735 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  6736 do
  6737   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6738   rm -f conftest.$ac_build_objext
  6739 if { (ac_try="$ac_build_compile"
  6740 case "(($ac_try" in
  6741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6742   *) ac_try_echo=$ac_try;;
  6743 esac
  6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6745   (eval "$ac_build_compile") 2>conftest.er1
  6746   ac_status=$?
  6747   grep -v '^ *+' conftest.er1 >conftest.err
  6748   rm -f conftest.er1
  6749   cat conftest.err >&5
  6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751   (exit $ac_status); } && {
  6752 	 test -z "$ac_c_werror_flag" ||
  6753 	 test ! -s conftest.err
  6754        } && test -s conftest.$ac_build_objext; then
  6755   ac_cv_build_prog_cc_stdc=$ac_arg
  6756 else
  6757   echo "$as_me: failed program was:" >&5
  6758 sed 's/^/| /' conftest.$ac_ext >&5
  6761 fi
  6763 rm -f core conftest.err conftest.$ac_build_objext
  6764   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6765 done
  6766 rm -f conftest.$ac_ext
  6767 CC_FOR_BUILD=$ac_save_CC
  6769 fi
  6770 # AC_CACHE_VAL
  6771 case "x$ac_cv_build_prog_cc_stdc" in
  6772   x)
  6773     { echo "$as_me:$LINENO: result: none needed" >&5
  6774 echo "${ECHO_T}none needed" >&6; } ;;
  6775   xno)
  6776     { echo "$as_me:$LINENO: result: unsupported" >&5
  6777 echo "${ECHO_T}unsupported" >&6; } ;;
  6778   *)
  6779     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6780     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6781 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6782 esac
  6783 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6784   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6785 else
  6786   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6787 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
  6788 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6789   echo $ECHO_N "(cached) $ECHO_C" >&6
  6790 else
  6791   ac_cv_build_prog_cc_stdc=no
  6792 ac_save_CC=$CC_FOR_BUILD
  6793 cat >conftest.$ac_ext <<_ACEOF
  6794 /* confdefs.h.  */
  6795 _ACEOF
  6796 cat confdefs.h >>conftest.$ac_ext
  6797 cat >>conftest.$ac_ext <<_ACEOF
  6798 /* end confdefs.h.  */
  6799 #include <stdarg.h>
  6800 #include <stdio.h>
  6801 #include <sys/types.h>
  6802 #include <sys/stat.h>
  6803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6804 struct buf { int x; };
  6805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6806 static char *e (p, i)
  6807      char **p;
  6808      int i;
  6810   return p[i];
  6812 static char *f (char * (*g) (char **, int), char **p, ...)
  6814   char *s;
  6815   va_list v;
  6816   va_start (v,p);
  6817   s = g (p, va_arg (v,int));
  6818   va_end (v);
  6819   return s;
  6822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6823    function prototypes and stuff, but not '\xHH' hex character constants.
  6824    These don't provoke an error unfortunately, instead are silently treated
  6825    as 'x'.  The following induces an error, until -std is added to get
  6826    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6827    array size at least.  It's necessary to write '\x00'==0 to get something
  6828    that's true only with -std.  */
  6829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6832    inside strings and character constants.  */
  6833 #define FOO(x) 'x'
  6834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6836 int test (int i, double x);
  6837 struct s1 {int (*f) (int a);};
  6838 struct s2 {int (*f) (double a);};
  6839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6840 int argc;
  6841 char **argv;
  6842 int
  6843 main ()
  6845 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6847   return 0;
  6849 _ACEOF
  6850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6851 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6852 do
  6853   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6854   rm -f conftest.$ac_build_objext
  6855 if { (ac_try="$ac_build_compile"
  6856 case "(($ac_try" in
  6857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6858   *) ac_try_echo=$ac_try;;
  6859 esac
  6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6861   (eval "$ac_build_compile") 2>conftest.er1
  6862   ac_status=$?
  6863   grep -v '^ *+' conftest.er1 >conftest.err
  6864   rm -f conftest.er1
  6865   cat conftest.err >&5
  6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6867   (exit $ac_status); } && {
  6868 	 test -z "$ac_c_werror_flag" ||
  6869 	 test ! -s conftest.err
  6870        } && test -s conftest.$ac_build_objext; then
  6871   ac_cv_build_prog_cc_stdc=$ac_arg
  6872 else
  6873   echo "$as_me: failed program was:" >&5
  6874 sed 's/^/| /' conftest.$ac_ext >&5
  6877 fi
  6879 rm -f core conftest.err conftest.$ac_build_objext
  6880   test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
  6881 done
  6882 rm -f conftest.$ac_ext
  6883 CC_FOR_BUILD=$ac_save_CC
  6885 fi
  6886 # AC_CACHE_VAL
  6887 case "x$ac_cv_build_prog_cc_stdc" in
  6888   x)
  6889     { echo "$as_me:$LINENO: result: none needed" >&5
  6890 echo "${ECHO_T}none needed" >&6; } ;;
  6891   xno)
  6892     { echo "$as_me:$LINENO: result: unsupported" >&5
  6893 echo "${ECHO_T}unsupported" >&6; } ;;
  6894   *)
  6895     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
  6896     { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6897 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6898 esac
  6899 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
  6900   ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
  6901 else
  6902   ac_cv_build_prog_cc_stdc=no
  6903 fi
  6906 fi
  6908  ;;
  6909 esac
  6910   { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
  6911 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
  6912   if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
  6913   echo $ECHO_N "(cached) $ECHO_C" >&6
  6914 fi
  6916   case $ac_cv_build_prog_cc_stdc in
  6917   no) { echo "$as_me:$LINENO: result: unsupported" >&5
  6918 echo "${ECHO_T}unsupported" >&6; } ;;
  6919   '') { echo "$as_me:$LINENO: result: none needed" >&5
  6920 echo "${ECHO_T}none needed" >&6; } ;;
  6921   *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
  6922 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
  6923 esac
  6926 ac_ext=c
  6927 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6928 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6929 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6930 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  6931 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6933 # On Suns, sometimes $CPP names a directory.
  6934 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6935   CPP_FOR_BUILD=
  6936 fi
  6937 if test -z "$CPP_FOR_BUILD"; then
  6938   if test "${ac_cv_build_prog_CPP+set}" = set; then
  6939   echo $ECHO_N "(cached) $ECHO_C" >&6
  6940 else
  6941       # Double quotes because CPP needs to be expanded
  6942     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6943     do
  6944       ac_preproc_ok=false
  6945 for ac_c_preproc_warn_flag in '' yes
  6946 do
  6947   # Use a header file that comes with gcc, so configuring glibc
  6948   # with a fresh cross-compiler works.
  6949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6950   # <limits.h> exists even on freestanding compilers.
  6951   # On the NeXT, cc -E runs the code through the compiler's parser,
  6952   # not just through cpp. "Syntax error" is here to catch this case.
  6953   cat >conftest.$ac_ext <<_ACEOF
  6954 /* confdefs.h.  */
  6955 _ACEOF
  6956 cat confdefs.h >>conftest.$ac_ext
  6957 cat >>conftest.$ac_ext <<_ACEOF
  6958 /* end confdefs.h.  */
  6959 #ifdef __STDC__
  6960 # include <limits.h>
  6961 #else
  6962 # include <assert.h>
  6963 #endif
  6964 		     Syntax error
  6965 _ACEOF
  6966 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  6967 case "(($ac_try" in
  6968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6969   *) ac_try_echo=$ac_try;;
  6970 esac
  6971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6972   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  6973   ac_status=$?
  6974   grep -v '^ *+' conftest.er1 >conftest.err
  6975   rm -f conftest.er1
  6976   cat conftest.err >&5
  6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6978   (exit $ac_status); } >/dev/null && {
  6979 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6980 	 test ! -s conftest.err
  6981        }; then
  6983 else
  6984   echo "$as_me: failed program was:" >&5
  6985 sed 's/^/| /' conftest.$ac_ext >&5
  6987   # Broken: fails on valid input.
  6988 continue
  6989 fi
  6991 rm -f conftest.err conftest.$ac_ext
  6993   # OK, works on sane cases.  Now check whether nonexistent headers
  6994   # can be detected and how.
  6995   cat >conftest.$ac_ext <<_ACEOF
  6996 /* confdefs.h.  */
  6997 _ACEOF
  6998 cat confdefs.h >>conftest.$ac_ext
  6999 cat >>conftest.$ac_ext <<_ACEOF
  7000 /* end confdefs.h.  */
  7001 #include <ac_nonexistent.h>
  7002 _ACEOF
  7003 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7004 case "(($ac_try" in
  7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7006   *) ac_try_echo=$ac_try;;
  7007 esac
  7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7009   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7010   ac_status=$?
  7011   grep -v '^ *+' conftest.er1 >conftest.err
  7012   rm -f conftest.er1
  7013   cat conftest.err >&5
  7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015   (exit $ac_status); } >/dev/null && {
  7016 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7017 	 test ! -s conftest.err
  7018        }; then
  7019   # Broken: success on invalid input.
  7020 continue
  7021 else
  7022   echo "$as_me: failed program was:" >&5
  7023 sed 's/^/| /' conftest.$ac_ext >&5
  7025   # Passes both tests.
  7026 ac_preproc_ok=:
  7027 break
  7028 fi
  7030 rm -f conftest.err conftest.$ac_ext
  7032 done
  7033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7034 rm -f conftest.err conftest.$ac_ext
  7035 if $ac_preproc_ok; then
  7036   break
  7037 fi
  7039     done
  7040     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7042 fi
  7043   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  7044 else
  7045   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  7046 fi
  7047 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
  7048 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
  7049 ac_preproc_ok=false
  7050 for ac_c_preproc_warn_flag in '' yes
  7051 do
  7052   # Use a header file that comes with gcc, so configuring glibc
  7053   # with a fresh cross-compiler works.
  7054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7055   # <limits.h> exists even on freestanding compilers.
  7056   # On the NeXT, cc -E runs the code through the compiler's parser,
  7057   # not just through cpp. "Syntax error" is here to catch this case.
  7058   cat >conftest.$ac_ext <<_ACEOF
  7059 /* confdefs.h.  */
  7060 _ACEOF
  7061 cat confdefs.h >>conftest.$ac_ext
  7062 cat >>conftest.$ac_ext <<_ACEOF
  7063 /* end confdefs.h.  */
  7064 #ifdef __STDC__
  7065 # include <limits.h>
  7066 #else
  7067 # include <assert.h>
  7068 #endif
  7069 		     Syntax error
  7070 _ACEOF
  7071 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7072 case "(($ac_try" in
  7073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7074   *) ac_try_echo=$ac_try;;
  7075 esac
  7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7077   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7078   ac_status=$?
  7079   grep -v '^ *+' conftest.er1 >conftest.err
  7080   rm -f conftest.er1
  7081   cat conftest.err >&5
  7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7083   (exit $ac_status); } >/dev/null && {
  7084 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7085 	 test ! -s conftest.err
  7086        }; then
  7088 else
  7089   echo "$as_me: failed program was:" >&5
  7090 sed 's/^/| /' conftest.$ac_ext >&5
  7092   # Broken: fails on valid input.
  7093 continue
  7094 fi
  7096 rm -f conftest.err conftest.$ac_ext
  7098   # OK, works on sane cases.  Now check whether nonexistent headers
  7099   # can be detected and how.
  7100   cat >conftest.$ac_ext <<_ACEOF
  7101 /* confdefs.h.  */
  7102 _ACEOF
  7103 cat confdefs.h >>conftest.$ac_ext
  7104 cat >>conftest.$ac_ext <<_ACEOF
  7105 /* end confdefs.h.  */
  7106 #include <ac_nonexistent.h>
  7107 _ACEOF
  7108 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
  7109 case "(($ac_try" in
  7110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7111   *) ac_try_echo=$ac_try;;
  7112 esac
  7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7114   (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
  7115   ac_status=$?
  7116   grep -v '^ *+' conftest.er1 >conftest.err
  7117   rm -f conftest.er1
  7118   cat conftest.err >&5
  7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120   (exit $ac_status); } >/dev/null && {
  7121 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7122 	 test ! -s conftest.err
  7123        }; then
  7124   # Broken: success on invalid input.
  7125 continue
  7126 else
  7127   echo "$as_me: failed program was:" >&5
  7128 sed 's/^/| /' conftest.$ac_ext >&5
  7130   # Passes both tests.
  7131 ac_preproc_ok=:
  7132 break
  7133 fi
  7135 rm -f conftest.err conftest.$ac_ext
  7137 done
  7138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7139 rm -f conftest.err conftest.$ac_ext
  7140 if $ac_preproc_ok; then
  7142 else
  7143   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7144 See \`config.log' for more details." >&5
  7145 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  7146 See \`config.log' for more details." >&2;}
  7147    { (exit 1); exit 1; }; }
  7148 fi
  7150 ac_ext=c
  7151 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  7152 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7153 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7154 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
  7159 BUILD_EXEEXT=$ac_build_exeext
  7160 BUILD_OBJEXT=$ac_build_objext
  7162 ac_ext=m
  7163 ac_cpp='$OBJCPP $CPPFLAGS'
  7164 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7165 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7166 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7167 if test -n "$ac_tool_prefix"; then
  7168   for ac_prog in gcc objcc objc cc CC
  7169   do
  7170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7174 if test "${ac_cv_prog_OBJC+set}" = set; then
  7175   echo $ECHO_N "(cached) $ECHO_C" >&6
  7176 else
  7177   if test -n "$OBJC"; then
  7178   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7179 else
  7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181 for as_dir in $PATH
  7182 do
  7183   IFS=$as_save_IFS
  7184   test -z "$as_dir" && as_dir=.
  7185   for ac_exec_ext in '' $ac_executable_extensions; do
  7186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7187     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7189     break 2
  7190   fi
  7191 done
  7192 done
  7193 IFS=$as_save_IFS
  7195 fi
  7196 fi
  7197 OBJC=$ac_cv_prog_OBJC
  7198 if test -n "$OBJC"; then
  7199   { echo "$as_me:$LINENO: result: $OBJC" >&5
  7200 echo "${ECHO_T}$OBJC" >&6; }
  7201 else
  7202   { echo "$as_me:$LINENO: result: no" >&5
  7203 echo "${ECHO_T}no" >&6; }
  7204 fi
  7207     test -n "$OBJC" && break
  7208   done
  7209 fi
  7210 if test -z "$OBJC"; then
  7211   ac_ct_OBJC=$OBJC
  7212   for ac_prog in gcc objcc objc cc CC
  7213 do
  7214   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7215 set dummy $ac_prog; ac_word=$2
  7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7218 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7219   echo $ECHO_N "(cached) $ECHO_C" >&6
  7220 else
  7221   if test -n "$ac_ct_OBJC"; then
  7222   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7223 else
  7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7225 for as_dir in $PATH
  7226 do
  7227   IFS=$as_save_IFS
  7228   test -z "$as_dir" && as_dir=.
  7229   for ac_exec_ext in '' $ac_executable_extensions; do
  7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7231     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7233     break 2
  7234   fi
  7235 done
  7236 done
  7237 IFS=$as_save_IFS
  7239 fi
  7240 fi
  7241 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7242 if test -n "$ac_ct_OBJC"; then
  7243   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7244 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  7245 else
  7246   { echo "$as_me:$LINENO: result: no" >&5
  7247 echo "${ECHO_T}no" >&6; }
  7248 fi
  7251   test -n "$ac_ct_OBJC" && break
  7252 done
  7254   if test "x$ac_ct_OBJC" = x; then
  7255     OBJC="gcc"
  7256   else
  7257     case $cross_compiling:$ac_tool_warned in
  7258 yes:)
  7259 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7260 whose name does not start with the host triplet.  If you think this
  7261 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7262 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7263 whose name does not start with the host triplet.  If you think this
  7264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7265 ac_tool_warned=yes ;;
  7266 esac
  7267     OBJC=$ac_ct_OBJC
  7268   fi
  7269 fi
  7271 # Provide some information about the compiler.
  7272 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7273 ac_compiler=`set X $ac_compile; echo $2`
  7274 { (ac_try="$ac_compiler --version >&5"
  7275 case "(($ac_try" in
  7276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277   *) ac_try_echo=$ac_try;;
  7278 esac
  7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7280   (eval "$ac_compiler --version >&5") 2>&5
  7281   ac_status=$?
  7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283   (exit $ac_status); }
  7284 { (ac_try="$ac_compiler -v >&5"
  7285 case "(($ac_try" in
  7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7287   *) ac_try_echo=$ac_try;;
  7288 esac
  7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7290   (eval "$ac_compiler -v >&5") 2>&5
  7291   ac_status=$?
  7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7293   (exit $ac_status); }
  7294 { (ac_try="$ac_compiler -V >&5"
  7295 case "(($ac_try" in
  7296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7297   *) ac_try_echo=$ac_try;;
  7298 esac
  7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7300   (eval "$ac_compiler -V >&5") 2>&5
  7301   ac_status=$?
  7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7303   (exit $ac_status); }
  7305 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7306 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  7307 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7308   echo $ECHO_N "(cached) $ECHO_C" >&6
  7309 else
  7310   cat >conftest.$ac_ext <<_ACEOF
  7311 /* confdefs.h.  */
  7312 _ACEOF
  7313 cat confdefs.h >>conftest.$ac_ext
  7314 cat >>conftest.$ac_ext <<_ACEOF
  7315 /* end confdefs.h.  */
  7317 int
  7318 main ()
  7320 #ifndef __GNUC__
  7321        choke me
  7322 #endif
  7325   return 0;
  7327 _ACEOF
  7328 rm -f conftest.$ac_objext
  7329 if { (ac_try="$ac_compile"
  7330 case "(($ac_try" in
  7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7332   *) ac_try_echo=$ac_try;;
  7333 esac
  7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7335   (eval "$ac_compile") 2>conftest.er1
  7336   ac_status=$?
  7337   grep -v '^ *+' conftest.er1 >conftest.err
  7338   rm -f conftest.er1
  7339   cat conftest.err >&5
  7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7341   (exit $ac_status); } && {
  7342 	 test -z "$ac_objc_werror_flag" ||
  7343 	 test ! -s conftest.err
  7344        } && test -s conftest.$ac_objext; then
  7345   ac_compiler_gnu=yes
  7346 else
  7347   echo "$as_me: failed program was:" >&5
  7348 sed 's/^/| /' conftest.$ac_ext >&5
  7350 	ac_compiler_gnu=no
  7351 fi
  7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7354 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7356 fi
  7357 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7358 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  7359 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  7360 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7361 ac_save_OBJCFLAGS=$OBJCFLAGS
  7362 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7363 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  7364 if test "${ac_cv_prog_objc_g+set}" = set; then
  7365   echo $ECHO_N "(cached) $ECHO_C" >&6
  7366 else
  7367   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7368    ac_objc_werror_flag=yes
  7369    ac_cv_prog_objc_g=no
  7370    OBJCFLAGS="-g"
  7371    cat >conftest.$ac_ext <<_ACEOF
  7372 /* confdefs.h.  */
  7373 _ACEOF
  7374 cat confdefs.h >>conftest.$ac_ext
  7375 cat >>conftest.$ac_ext <<_ACEOF
  7376 /* end confdefs.h.  */
  7378 int
  7379 main ()
  7383   return 0;
  7385 _ACEOF
  7386 rm -f conftest.$ac_objext
  7387 if { (ac_try="$ac_compile"
  7388 case "(($ac_try" in
  7389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7390   *) ac_try_echo=$ac_try;;
  7391 esac
  7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7393   (eval "$ac_compile") 2>conftest.er1
  7394   ac_status=$?
  7395   grep -v '^ *+' conftest.er1 >conftest.err
  7396   rm -f conftest.er1
  7397   cat conftest.err >&5
  7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7399   (exit $ac_status); } && {
  7400 	 test -z "$ac_objc_werror_flag" ||
  7401 	 test ! -s conftest.err
  7402        } && test -s conftest.$ac_objext; then
  7403   ac_cv_prog_objc_g=yes
  7404 else
  7405   echo "$as_me: failed program was:" >&5
  7406 sed 's/^/| /' conftest.$ac_ext >&5
  7408 	OBJCFLAGS=""
  7409       cat >conftest.$ac_ext <<_ACEOF
  7410 /* confdefs.h.  */
  7411 _ACEOF
  7412 cat confdefs.h >>conftest.$ac_ext
  7413 cat >>conftest.$ac_ext <<_ACEOF
  7414 /* end confdefs.h.  */
  7416 int
  7417 main ()
  7421   return 0;
  7423 _ACEOF
  7424 rm -f conftest.$ac_objext
  7425 if { (ac_try="$ac_compile"
  7426 case "(($ac_try" in
  7427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7428   *) ac_try_echo=$ac_try;;
  7429 esac
  7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7431   (eval "$ac_compile") 2>conftest.er1
  7432   ac_status=$?
  7433   grep -v '^ *+' conftest.er1 >conftest.err
  7434   rm -f conftest.er1
  7435   cat conftest.err >&5
  7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437   (exit $ac_status); } && {
  7438 	 test -z "$ac_objc_werror_flag" ||
  7439 	 test ! -s conftest.err
  7440        } && test -s conftest.$ac_objext; then
  7442 else
  7443   echo "$as_me: failed program was:" >&5
  7444 sed 's/^/| /' conftest.$ac_ext >&5
  7446 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7447 	 OBJCFLAGS="-g"
  7448 	 cat >conftest.$ac_ext <<_ACEOF
  7449 /* confdefs.h.  */
  7450 _ACEOF
  7451 cat confdefs.h >>conftest.$ac_ext
  7452 cat >>conftest.$ac_ext <<_ACEOF
  7453 /* end confdefs.h.  */
  7455 int
  7456 main ()
  7460   return 0;
  7462 _ACEOF
  7463 rm -f conftest.$ac_objext
  7464 if { (ac_try="$ac_compile"
  7465 case "(($ac_try" in
  7466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7467   *) ac_try_echo=$ac_try;;
  7468 esac
  7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7470   (eval "$ac_compile") 2>conftest.er1
  7471   ac_status=$?
  7472   grep -v '^ *+' conftest.er1 >conftest.err
  7473   rm -f conftest.er1
  7474   cat conftest.err >&5
  7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476   (exit $ac_status); } && {
  7477 	 test -z "$ac_objc_werror_flag" ||
  7478 	 test ! -s conftest.err
  7479        } && test -s conftest.$ac_objext; then
  7480   ac_cv_prog_objc_g=yes
  7481 else
  7482   echo "$as_me: failed program was:" >&5
  7483 sed 's/^/| /' conftest.$ac_ext >&5
  7486 fi
  7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7489 fi
  7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7492 fi
  7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7495    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7496 fi
  7497 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7498 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  7499 if test "$ac_test_OBJCFLAGS" = set; then
  7500   OBJCFLAGS=$ac_save_OBJCFLAGS
  7501 elif test $ac_cv_prog_objc_g = yes; then
  7502   if test "$GOBJC" = yes; then
  7503     OBJCFLAGS="-g -O2"
  7504   else
  7505     OBJCFLAGS="-g"
  7506   fi
  7507 else
  7508   if test "$GOBJC" = yes; then
  7509     OBJCFLAGS="-O2"
  7510   else
  7511     OBJCFLAGS=
  7512   fi
  7513 fi
  7514 ac_ext=c
  7515 ac_cpp='$CPP $CPPFLAGS'
  7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7520 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7521 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7522 if test "${ac_cv_path_SED+set}" = set; then
  7523   echo $ECHO_N "(cached) $ECHO_C" >&6
  7524 else
  7525             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7526      for ac_i in 1 2 3 4 5 6 7; do
  7527        ac_script="$ac_script$as_nl$ac_script"
  7528      done
  7529      echo "$ac_script" | sed 99q >conftest.sed
  7530      $as_unset ac_script || ac_script=
  7531      # Extract the first word of "sed gsed" to use in msg output
  7532 if test -z "$SED"; then
  7533 set dummy sed gsed; ac_prog_name=$2
  7534 if test "${ac_cv_path_SED+set}" = set; then
  7535   echo $ECHO_N "(cached) $ECHO_C" >&6
  7536 else
  7537   ac_path_SED_found=false
  7538 # Loop through the user's path and test for each of PROGNAME-LIST
  7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7540 for as_dir in $PATH
  7541 do
  7542   IFS=$as_save_IFS
  7543   test -z "$as_dir" && as_dir=.
  7544   for ac_prog in sed gsed; do
  7545   for ac_exec_ext in '' $ac_executable_extensions; do
  7546     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7547     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7548     # Check for GNU ac_path_SED and select it if it is found.
  7549   # Check for GNU $ac_path_SED
  7550 case `"$ac_path_SED" --version 2>&1` in
  7551 *GNU*)
  7552   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7553 *)
  7554   ac_count=0
  7555   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7556   while :
  7557   do
  7558     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7559     mv "conftest.tmp" "conftest.in"
  7560     cp "conftest.in" "conftest.nl"
  7561     echo '' >> "conftest.nl"
  7562     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7564     ac_count=`expr $ac_count + 1`
  7565     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7566       # Best one so far, save it but keep looking for a better one
  7567       ac_cv_path_SED="$ac_path_SED"
  7568       ac_path_SED_max=$ac_count
  7569     fi
  7570     # 10*(2^10) chars as input seems more than enough
  7571     test $ac_count -gt 10 && break
  7572   done
  7573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7574 esac
  7577     $ac_path_SED_found && break 3
  7578   done
  7579 done
  7581 done
  7582 IFS=$as_save_IFS
  7585 fi
  7587 SED="$ac_cv_path_SED"
  7588 if test -z "$SED"; then
  7589   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  7590 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  7591    { (exit 1); exit 1; }; }
  7592 fi
  7594 else
  7595   ac_cv_path_SED=$SED
  7596 fi
  7598 fi
  7599 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7600 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  7601  SED="$ac_cv_path_SED"
  7602   rm -f conftest.sed
  7604 # By default we simply use the C compiler to build assembly code.
  7606 test "${CCAS+set}" = set || CCAS=$CC
  7607 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7611 if test -n "$ac_tool_prefix"; then
  7612   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7616 if test "${ac_cv_prog_RANLIB+set}" = set; then
  7617   echo $ECHO_N "(cached) $ECHO_C" >&6
  7618 else
  7619   if test -n "$RANLIB"; then
  7620   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7621 else
  7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7623 for as_dir in $PATH
  7624 do
  7625   IFS=$as_save_IFS
  7626   test -z "$as_dir" && as_dir=.
  7627   for ac_exec_ext in '' $ac_executable_extensions; do
  7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7629     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7631     break 2
  7632   fi
  7633 done
  7634 done
  7635 IFS=$as_save_IFS
  7637 fi
  7638 fi
  7639 RANLIB=$ac_cv_prog_RANLIB
  7640 if test -n "$RANLIB"; then
  7641   { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7642 echo "${ECHO_T}$RANLIB" >&6; }
  7643 else
  7644   { echo "$as_me:$LINENO: result: no" >&5
  7645 echo "${ECHO_T}no" >&6; }
  7646 fi
  7649 fi
  7650 if test -z "$ac_cv_prog_RANLIB"; then
  7651   ac_ct_RANLIB=$RANLIB
  7652   # Extract the first word of "ranlib", so it can be a program name with args.
  7653 set dummy ranlib; ac_word=$2
  7654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7657   echo $ECHO_N "(cached) $ECHO_C" >&6
  7658 else
  7659   if test -n "$ac_ct_RANLIB"; then
  7660   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7661 else
  7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7663 for as_dir in $PATH
  7664 do
  7665   IFS=$as_save_IFS
  7666   test -z "$as_dir" && as_dir=.
  7667   for ac_exec_ext in '' $ac_executable_extensions; do
  7668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7669     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7671     break 2
  7672   fi
  7673 done
  7674 done
  7675 IFS=$as_save_IFS
  7677 fi
  7678 fi
  7679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7680 if test -n "$ac_ct_RANLIB"; then
  7681   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7682 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7683 else
  7684   { echo "$as_me:$LINENO: result: no" >&5
  7685 echo "${ECHO_T}no" >&6; }
  7686 fi
  7688   if test "x$ac_ct_RANLIB" = x; then
  7689     RANLIB=":"
  7690   else
  7691     case $cross_compiling:$ac_tool_warned in
  7692 yes:)
  7693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7694 whose name does not start with the host triplet.  If you think this
  7695 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7697 whose name does not start with the host triplet.  If you think this
  7698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7699 ac_tool_warned=yes ;;
  7700 esac
  7701     RANLIB=$ac_ct_RANLIB
  7702   fi
  7703 else
  7704   RANLIB="$ac_cv_prog_RANLIB"
  7705 fi
  7708 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  7709 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  7710 if test "${ac_cv_path_GREP+set}" = set; then
  7711   echo $ECHO_N "(cached) $ECHO_C" >&6
  7712 else
  7713   # Extract the first word of "grep ggrep" to use in msg output
  7714 if test -z "$GREP"; then
  7715 set dummy grep ggrep; ac_prog_name=$2
  7716 if test "${ac_cv_path_GREP+set}" = set; then
  7717   echo $ECHO_N "(cached) $ECHO_C" >&6
  7718 else
  7719   ac_path_GREP_found=false
  7720 # Loop through the user's path and test for each of PROGNAME-LIST
  7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7723 do
  7724   IFS=$as_save_IFS
  7725   test -z "$as_dir" && as_dir=.
  7726   for ac_prog in grep ggrep; do
  7727   for ac_exec_ext in '' $ac_executable_extensions; do
  7728     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7729     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  7730     # Check for GNU ac_path_GREP and select it if it is found.
  7731   # Check for GNU $ac_path_GREP
  7732 case `"$ac_path_GREP" --version 2>&1` in
  7733 *GNU*)
  7734   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7735 *)
  7736   ac_count=0
  7737   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7738   while :
  7739   do
  7740     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7741     mv "conftest.tmp" "conftest.in"
  7742     cp "conftest.in" "conftest.nl"
  7743     echo 'GREP' >> "conftest.nl"
  7744     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7746     ac_count=`expr $ac_count + 1`
  7747     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7748       # Best one so far, save it but keep looking for a better one
  7749       ac_cv_path_GREP="$ac_path_GREP"
  7750       ac_path_GREP_max=$ac_count
  7751     fi
  7752     # 10*(2^10) chars as input seems more than enough
  7753     test $ac_count -gt 10 && break
  7754   done
  7755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7756 esac
  7759     $ac_path_GREP_found && break 3
  7760   done
  7761 done
  7763 done
  7764 IFS=$as_save_IFS
  7767 fi
  7769 GREP="$ac_cv_path_GREP"
  7770 if test -z "$GREP"; then
  7771   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7772 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7773    { (exit 1); exit 1; }; }
  7774 fi
  7776 else
  7777   ac_cv_path_GREP=$GREP
  7778 fi
  7781 fi
  7782 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  7783 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  7784  GREP="$ac_cv_path_GREP"
  7787 { echo "$as_me:$LINENO: checking for egrep" >&5
  7788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  7789 if test "${ac_cv_path_EGREP+set}" = set; then
  7790   echo $ECHO_N "(cached) $ECHO_C" >&6
  7791 else
  7792   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7793    then ac_cv_path_EGREP="$GREP -E"
  7794    else
  7795      # Extract the first word of "egrep" to use in msg output
  7796 if test -z "$EGREP"; then
  7797 set dummy egrep; ac_prog_name=$2
  7798 if test "${ac_cv_path_EGREP+set}" = set; then
  7799   echo $ECHO_N "(cached) $ECHO_C" >&6
  7800 else
  7801   ac_path_EGREP_found=false
  7802 # Loop through the user's path and test for each of PROGNAME-LIST
  7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7805 do
  7806   IFS=$as_save_IFS
  7807   test -z "$as_dir" && as_dir=.
  7808   for ac_prog in egrep; do
  7809   for ac_exec_ext in '' $ac_executable_extensions; do
  7810     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7811     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  7812     # Check for GNU ac_path_EGREP and select it if it is found.
  7813   # Check for GNU $ac_path_EGREP
  7814 case `"$ac_path_EGREP" --version 2>&1` in
  7815 *GNU*)
  7816   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7817 *)
  7818   ac_count=0
  7819   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  7820   while :
  7821   do
  7822     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7823     mv "conftest.tmp" "conftest.in"
  7824     cp "conftest.in" "conftest.nl"
  7825     echo 'EGREP' >> "conftest.nl"
  7826     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7828     ac_count=`expr $ac_count + 1`
  7829     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7830       # Best one so far, save it but keep looking for a better one
  7831       ac_cv_path_EGREP="$ac_path_EGREP"
  7832       ac_path_EGREP_max=$ac_count
  7833     fi
  7834     # 10*(2^10) chars as input seems more than enough
  7835     test $ac_count -gt 10 && break
  7836   done
  7837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7838 esac
  7841     $ac_path_EGREP_found && break 3
  7842   done
  7843 done
  7845 done
  7846 IFS=$as_save_IFS
  7849 fi
  7851 EGREP="$ac_cv_path_EGREP"
  7852 if test -z "$EGREP"; then
  7853   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7855    { (exit 1); exit 1; }; }
  7856 fi
  7858 else
  7859   ac_cv_path_EGREP=$EGREP
  7860 fi
  7863    fi
  7864 fi
  7865 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  7866 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  7867  EGREP="$ac_cv_path_EGREP"
  7870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7872 if test "${ac_cv_header_stdc+set}" = set; then
  7873   echo $ECHO_N "(cached) $ECHO_C" >&6
  7874 else
  7875   cat >conftest.$ac_ext <<_ACEOF
  7876 /* confdefs.h.  */
  7877 _ACEOF
  7878 cat confdefs.h >>conftest.$ac_ext
  7879 cat >>conftest.$ac_ext <<_ACEOF
  7880 /* end confdefs.h.  */
  7881 #include <stdlib.h>
  7882 #include <stdarg.h>
  7883 #include <string.h>
  7884 #include <float.h>
  7886 int
  7887 main ()
  7891   return 0;
  7893 _ACEOF
  7894 rm -f conftest.$ac_objext
  7895 if { (ac_try="$ac_compile"
  7896 case "(($ac_try" in
  7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7898   *) ac_try_echo=$ac_try;;
  7899 esac
  7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7901   (eval "$ac_compile") 2>conftest.er1
  7902   ac_status=$?
  7903   grep -v '^ *+' conftest.er1 >conftest.err
  7904   rm -f conftest.er1
  7905   cat conftest.err >&5
  7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907   (exit $ac_status); } && {
  7908 	 test -z "$ac_c_werror_flag" ||
  7909 	 test ! -s conftest.err
  7910        } && test -s conftest.$ac_objext; then
  7911   ac_cv_header_stdc=yes
  7912 else
  7913   echo "$as_me: failed program was:" >&5
  7914 sed 's/^/| /' conftest.$ac_ext >&5
  7916 	ac_cv_header_stdc=no
  7917 fi
  7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7921 if test $ac_cv_header_stdc = yes; then
  7922   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7923   cat >conftest.$ac_ext <<_ACEOF
  7924 /* confdefs.h.  */
  7925 _ACEOF
  7926 cat confdefs.h >>conftest.$ac_ext
  7927 cat >>conftest.$ac_ext <<_ACEOF
  7928 /* end confdefs.h.  */
  7929 #include <string.h>
  7931 _ACEOF
  7932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7933   $EGREP "memchr" >/dev/null 2>&1; then
  7935 else
  7936   ac_cv_header_stdc=no
  7937 fi
  7938 rm -f conftest*
  7940 fi
  7942 if test $ac_cv_header_stdc = yes; then
  7943   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7944   cat >conftest.$ac_ext <<_ACEOF
  7945 /* confdefs.h.  */
  7946 _ACEOF
  7947 cat confdefs.h >>conftest.$ac_ext
  7948 cat >>conftest.$ac_ext <<_ACEOF
  7949 /* end confdefs.h.  */
  7950 #include <stdlib.h>
  7952 _ACEOF
  7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7954   $EGREP "free" >/dev/null 2>&1; then
  7956 else
  7957   ac_cv_header_stdc=no
  7958 fi
  7959 rm -f conftest*
  7961 fi
  7963 if test $ac_cv_header_stdc = yes; then
  7964   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7965   if test "$cross_compiling" = yes; then
  7967 else
  7968   cat >conftest.$ac_ext <<_ACEOF
  7969 /* confdefs.h.  */
  7970 _ACEOF
  7971 cat confdefs.h >>conftest.$ac_ext
  7972 cat >>conftest.$ac_ext <<_ACEOF
  7973 /* end confdefs.h.  */
  7974 #include <ctype.h>
  7975 #include <stdlib.h>
  7976 #if ((' ' & 0x0FF) == 0x020)
  7977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7979 #else
  7980 # define ISLOWER(c) \
  7981 		   (('a' <= (c) && (c) <= 'i') \
  7982 		     || ('j' <= (c) && (c) <= 'r') \
  7983 		     || ('s' <= (c) && (c) <= 'z'))
  7984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7985 #endif
  7987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7988 int
  7989 main ()
  7991   int i;
  7992   for (i = 0; i < 256; i++)
  7993     if (XOR (islower (i), ISLOWER (i))
  7994 	|| toupper (i) != TOUPPER (i))
  7995       return 2;
  7996   return 0;
  7998 _ACEOF
  7999 rm -f conftest$ac_exeext
  8000 if { (ac_try="$ac_link"
  8001 case "(($ac_try" in
  8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8003   *) ac_try_echo=$ac_try;;
  8004 esac
  8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8006   (eval "$ac_link") 2>&5
  8007   ac_status=$?
  8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8010   { (case "(($ac_try" in
  8011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8012   *) ac_try_echo=$ac_try;;
  8013 esac
  8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8015   (eval "$ac_try") 2>&5
  8016   ac_status=$?
  8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8018   (exit $ac_status); }; }; then
  8020 else
  8021   echo "$as_me: program exited with status $ac_status" >&5
  8022 echo "$as_me: failed program was:" >&5
  8023 sed 's/^/| /' conftest.$ac_ext >&5
  8025 ( exit $ac_status )
  8026 ac_cv_header_stdc=no
  8027 fi
  8028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8029 fi
  8032 fi
  8033 fi
  8034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8036 if test $ac_cv_header_stdc = yes; then
  8038 cat >>confdefs.h <<\_ACEOF
  8039 #define STDC_HEADERS 1
  8040 _ACEOF
  8042 fi
  8044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8055 		  inttypes.h stdint.h unistd.h
  8056 do
  8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8061   echo $ECHO_N "(cached) $ECHO_C" >&6
  8062 else
  8063   cat >conftest.$ac_ext <<_ACEOF
  8064 /* confdefs.h.  */
  8065 _ACEOF
  8066 cat confdefs.h >>conftest.$ac_ext
  8067 cat >>conftest.$ac_ext <<_ACEOF
  8068 /* end confdefs.h.  */
  8069 $ac_includes_default
  8071 #include <$ac_header>
  8072 _ACEOF
  8073 rm -f conftest.$ac_objext
  8074 if { (ac_try="$ac_compile"
  8075 case "(($ac_try" in
  8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8077   *) ac_try_echo=$ac_try;;
  8078 esac
  8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8080   (eval "$ac_compile") 2>conftest.er1
  8081   ac_status=$?
  8082   grep -v '^ *+' conftest.er1 >conftest.err
  8083   rm -f conftest.er1
  8084   cat conftest.err >&5
  8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8086   (exit $ac_status); } && {
  8087 	 test -z "$ac_c_werror_flag" ||
  8088 	 test ! -s conftest.err
  8089        } && test -s conftest.$ac_objext; then
  8090   eval "$as_ac_Header=yes"
  8091 else
  8092   echo "$as_me: failed program was:" >&5
  8093 sed 's/^/| /' conftest.$ac_ext >&5
  8095 	eval "$as_ac_Header=no"
  8096 fi
  8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8099 fi
  8100 ac_res=`eval echo '${'$as_ac_Header'}'`
  8101 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  8102 echo "${ECHO_T}$ac_res" >&6; }
  8103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8104   cat >>confdefs.h <<_ACEOF
  8105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8106 _ACEOF
  8108 fi
  8110 done
  8113 { echo "$as_me:$LINENO: checking for void *" >&5
  8114 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  8115 if test "${ac_cv_type_void_p+set}" = set; then
  8116   echo $ECHO_N "(cached) $ECHO_C" >&6
  8117 else
  8118   cat >conftest.$ac_ext <<_ACEOF
  8119 /* confdefs.h.  */
  8120 _ACEOF
  8121 cat confdefs.h >>conftest.$ac_ext
  8122 cat >>conftest.$ac_ext <<_ACEOF
  8123 /* end confdefs.h.  */
  8124 $ac_includes_default
  8125 typedef void * ac__type_new_;
  8126 int
  8127 main ()
  8129 if ((ac__type_new_ *) 0)
  8130   return 0;
  8131 if (sizeof (ac__type_new_))
  8132   return 0;
  8134   return 0;
  8136 _ACEOF
  8137 rm -f conftest.$ac_objext
  8138 if { (ac_try="$ac_compile"
  8139 case "(($ac_try" in
  8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8141   *) ac_try_echo=$ac_try;;
  8142 esac
  8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8144   (eval "$ac_compile") 2>conftest.er1
  8145   ac_status=$?
  8146   grep -v '^ *+' conftest.er1 >conftest.err
  8147   rm -f conftest.er1
  8148   cat conftest.err >&5
  8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150   (exit $ac_status); } && {
  8151 	 test -z "$ac_c_werror_flag" ||
  8152 	 test ! -s conftest.err
  8153        } && test -s conftest.$ac_objext; then
  8154   ac_cv_type_void_p=yes
  8155 else
  8156   echo "$as_me: failed program was:" >&5
  8157 sed 's/^/| /' conftest.$ac_ext >&5
  8159 	ac_cv_type_void_p=no
  8160 fi
  8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8163 fi
  8164 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  8165 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  8167 # The cast to long int works around a bug in the HP C Compiler
  8168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8170 # This bug is HP SR number 8606223364.
  8171 { echo "$as_me:$LINENO: checking size of void *" >&5
  8172 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  8173 if test "${ac_cv_sizeof_void_p+set}" = set; then
  8174   echo $ECHO_N "(cached) $ECHO_C" >&6
  8175 else
  8176   if test "$cross_compiling" = yes; then
  8177   # Depending upon the size, compute the lo and hi bounds.
  8178 cat >conftest.$ac_ext <<_ACEOF
  8179 /* confdefs.h.  */
  8180 _ACEOF
  8181 cat confdefs.h >>conftest.$ac_ext
  8182 cat >>conftest.$ac_ext <<_ACEOF
  8183 /* end confdefs.h.  */
  8184 $ac_includes_default
  8185    typedef void * ac__type_sizeof_;
  8186 int
  8187 main ()
  8189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8190 test_array [0] = 0
  8193   return 0;
  8195 _ACEOF
  8196 rm -f conftest.$ac_objext
  8197 if { (ac_try="$ac_compile"
  8198 case "(($ac_try" in
  8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8200   *) ac_try_echo=$ac_try;;
  8201 esac
  8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8203   (eval "$ac_compile") 2>conftest.er1
  8204   ac_status=$?
  8205   grep -v '^ *+' conftest.er1 >conftest.err
  8206   rm -f conftest.er1
  8207   cat conftest.err >&5
  8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8209   (exit $ac_status); } && {
  8210 	 test -z "$ac_c_werror_flag" ||
  8211 	 test ! -s conftest.err
  8212        } && test -s conftest.$ac_objext; then
  8213   ac_lo=0 ac_mid=0
  8214   while :; do
  8215     cat >conftest.$ac_ext <<_ACEOF
  8216 /* confdefs.h.  */
  8217 _ACEOF
  8218 cat confdefs.h >>conftest.$ac_ext
  8219 cat >>conftest.$ac_ext <<_ACEOF
  8220 /* end confdefs.h.  */
  8221 $ac_includes_default
  8222    typedef void * ac__type_sizeof_;
  8223 int
  8224 main ()
  8226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8227 test_array [0] = 0
  8230   return 0;
  8232 _ACEOF
  8233 rm -f conftest.$ac_objext
  8234 if { (ac_try="$ac_compile"
  8235 case "(($ac_try" in
  8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8237   *) ac_try_echo=$ac_try;;
  8238 esac
  8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8240   (eval "$ac_compile") 2>conftest.er1
  8241   ac_status=$?
  8242   grep -v '^ *+' conftest.er1 >conftest.err
  8243   rm -f conftest.er1
  8244   cat conftest.err >&5
  8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8246   (exit $ac_status); } && {
  8247 	 test -z "$ac_c_werror_flag" ||
  8248 	 test ! -s conftest.err
  8249        } && test -s conftest.$ac_objext; then
  8250   ac_hi=$ac_mid; break
  8251 else
  8252   echo "$as_me: failed program was:" >&5
  8253 sed 's/^/| /' conftest.$ac_ext >&5
  8255 	ac_lo=`expr $ac_mid + 1`
  8256 			if test $ac_lo -le $ac_mid; then
  8257 			  ac_lo= ac_hi=
  8258 			  break
  8259 			fi
  8260 			ac_mid=`expr 2 '*' $ac_mid + 1`
  8261 fi
  8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8264   done
  8265 else
  8266   echo "$as_me: failed program was:" >&5
  8267 sed 's/^/| /' conftest.$ac_ext >&5
  8269 	cat >conftest.$ac_ext <<_ACEOF
  8270 /* confdefs.h.  */
  8271 _ACEOF
  8272 cat confdefs.h >>conftest.$ac_ext
  8273 cat >>conftest.$ac_ext <<_ACEOF
  8274 /* end confdefs.h.  */
  8275 $ac_includes_default
  8276    typedef void * ac__type_sizeof_;
  8277 int
  8278 main ()
  8280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8281 test_array [0] = 0
  8284   return 0;
  8286 _ACEOF
  8287 rm -f conftest.$ac_objext
  8288 if { (ac_try="$ac_compile"
  8289 case "(($ac_try" in
  8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8291   *) ac_try_echo=$ac_try;;
  8292 esac
  8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8294   (eval "$ac_compile") 2>conftest.er1
  8295   ac_status=$?
  8296   grep -v '^ *+' conftest.er1 >conftest.err
  8297   rm -f conftest.er1
  8298   cat conftest.err >&5
  8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8300   (exit $ac_status); } && {
  8301 	 test -z "$ac_c_werror_flag" ||
  8302 	 test ! -s conftest.err
  8303        } && test -s conftest.$ac_objext; then
  8304   ac_hi=-1 ac_mid=-1
  8305   while :; do
  8306     cat >conftest.$ac_ext <<_ACEOF
  8307 /* confdefs.h.  */
  8308 _ACEOF
  8309 cat confdefs.h >>conftest.$ac_ext
  8310 cat >>conftest.$ac_ext <<_ACEOF
  8311 /* end confdefs.h.  */
  8312 $ac_includes_default
  8313    typedef void * ac__type_sizeof_;
  8314 int
  8315 main ()
  8317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8318 test_array [0] = 0
  8321   return 0;
  8323 _ACEOF
  8324 rm -f conftest.$ac_objext
  8325 if { (ac_try="$ac_compile"
  8326 case "(($ac_try" in
  8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8328   *) ac_try_echo=$ac_try;;
  8329 esac
  8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8331   (eval "$ac_compile") 2>conftest.er1
  8332   ac_status=$?
  8333   grep -v '^ *+' conftest.er1 >conftest.err
  8334   rm -f conftest.er1
  8335   cat conftest.err >&5
  8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8337   (exit $ac_status); } && {
  8338 	 test -z "$ac_c_werror_flag" ||
  8339 	 test ! -s conftest.err
  8340        } && test -s conftest.$ac_objext; then
  8341   ac_lo=$ac_mid; break
  8342 else
  8343   echo "$as_me: failed program was:" >&5
  8344 sed 's/^/| /' conftest.$ac_ext >&5
  8346 	ac_hi=`expr '(' $ac_mid ')' - 1`
  8347 			if test $ac_mid -le $ac_hi; then
  8348 			  ac_lo= ac_hi=
  8349 			  break
  8350 			fi
  8351 			ac_mid=`expr 2 '*' $ac_mid`
  8352 fi
  8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8355   done
  8356 else
  8357   echo "$as_me: failed program was:" >&5
  8358 sed 's/^/| /' conftest.$ac_ext >&5
  8360 	ac_lo= ac_hi=
  8361 fi
  8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8364 fi
  8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8367 # Binary search between lo and hi bounds.
  8368 while test "x$ac_lo" != "x$ac_hi"; do
  8369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8370   cat >conftest.$ac_ext <<_ACEOF
  8371 /* confdefs.h.  */
  8372 _ACEOF
  8373 cat confdefs.h >>conftest.$ac_ext
  8374 cat >>conftest.$ac_ext <<_ACEOF
  8375 /* end confdefs.h.  */
  8376 $ac_includes_default
  8377    typedef void * ac__type_sizeof_;
  8378 int
  8379 main ()
  8381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8382 test_array [0] = 0
  8385   return 0;
  8387 _ACEOF
  8388 rm -f conftest.$ac_objext
  8389 if { (ac_try="$ac_compile"
  8390 case "(($ac_try" in
  8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8392   *) ac_try_echo=$ac_try;;
  8393 esac
  8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8395   (eval "$ac_compile") 2>conftest.er1
  8396   ac_status=$?
  8397   grep -v '^ *+' conftest.er1 >conftest.err
  8398   rm -f conftest.er1
  8399   cat conftest.err >&5
  8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8401   (exit $ac_status); } && {
  8402 	 test -z "$ac_c_werror_flag" ||
  8403 	 test ! -s conftest.err
  8404        } && test -s conftest.$ac_objext; then
  8405   ac_hi=$ac_mid
  8406 else
  8407   echo "$as_me: failed program was:" >&5
  8408 sed 's/^/| /' conftest.$ac_ext >&5
  8410 	ac_lo=`expr '(' $ac_mid ')' + 1`
  8411 fi
  8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8414 done
  8415 case $ac_lo in
  8416 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  8417 '') if test "$ac_cv_type_void_p" = yes; then
  8418      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8419 See \`config.log' for more details." >&5
  8420 echo "$as_me: error: cannot compute sizeof (void *)
  8421 See \`config.log' for more details." >&2;}
  8422    { (exit 77); exit 77; }; }
  8423    else
  8424      ac_cv_sizeof_void_p=0
  8425    fi ;;
  8426 esac
  8427 else
  8428   cat >conftest.$ac_ext <<_ACEOF
  8429 /* confdefs.h.  */
  8430 _ACEOF
  8431 cat confdefs.h >>conftest.$ac_ext
  8432 cat >>conftest.$ac_ext <<_ACEOF
  8433 /* end confdefs.h.  */
  8434 $ac_includes_default
  8435    typedef void * ac__type_sizeof_;
  8436 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8437 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8438 #include <stdio.h>
  8439 #include <stdlib.h>
  8440 int
  8441 main ()
  8444   FILE *f = fopen ("conftest.val", "w");
  8445   if (! f)
  8446     return 1;
  8447   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8449       long int i = longval ();
  8450       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8451 	return 1;
  8452       fprintf (f, "%ld\n", i);
  8454   else
  8456       unsigned long int i = ulongval ();
  8457       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8458 	return 1;
  8459       fprintf (f, "%lu\n", i);
  8461   return ferror (f) || fclose (f) != 0;
  8464   return 0;
  8466 _ACEOF
  8467 rm -f conftest$ac_exeext
  8468 if { (ac_try="$ac_link"
  8469 case "(($ac_try" in
  8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8471   *) ac_try_echo=$ac_try;;
  8472 esac
  8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8474   (eval "$ac_link") 2>&5
  8475   ac_status=$?
  8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8478   { (case "(($ac_try" in
  8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8480   *) ac_try_echo=$ac_try;;
  8481 esac
  8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8483   (eval "$ac_try") 2>&5
  8484   ac_status=$?
  8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8486   (exit $ac_status); }; }; then
  8487   ac_cv_sizeof_void_p=`cat conftest.val`
  8488 else
  8489   echo "$as_me: program exited with status $ac_status" >&5
  8490 echo "$as_me: failed program was:" >&5
  8491 sed 's/^/| /' conftest.$ac_ext >&5
  8493 ( exit $ac_status )
  8494 if test "$ac_cv_type_void_p" = yes; then
  8495      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  8496 See \`config.log' for more details." >&5
  8497 echo "$as_me: error: cannot compute sizeof (void *)
  8498 See \`config.log' for more details." >&2;}
  8499    { (exit 77); exit 77; }; }
  8500    else
  8501      ac_cv_sizeof_void_p=0
  8502    fi
  8503 fi
  8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8505 fi
  8506 rm -f conftest.val
  8507 fi
  8508 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  8509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  8513 cat >>confdefs.h <<_ACEOF
  8514 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  8515 _ACEOF
  8518 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  8519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  8520 if test "${ac_cv_header_stdc+set}" = set; then
  8521   echo $ECHO_N "(cached) $ECHO_C" >&6
  8522 else
  8523   cat >conftest.$ac_ext <<_ACEOF
  8524 /* confdefs.h.  */
  8525 _ACEOF
  8526 cat confdefs.h >>conftest.$ac_ext
  8527 cat >>conftest.$ac_ext <<_ACEOF
  8528 /* end confdefs.h.  */
  8529 #include <stdlib.h>
  8530 #include <stdarg.h>
  8531 #include <string.h>
  8532 #include <float.h>
  8534 int
  8535 main ()
  8539   return 0;
  8541 _ACEOF
  8542 rm -f conftest.$ac_objext
  8543 if { (ac_try="$ac_compile"
  8544 case "(($ac_try" in
  8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8546   *) ac_try_echo=$ac_try;;
  8547 esac
  8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8549   (eval "$ac_compile") 2>conftest.er1
  8550   ac_status=$?
  8551   grep -v '^ *+' conftest.er1 >conftest.err
  8552   rm -f conftest.er1
  8553   cat conftest.err >&5
  8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8555   (exit $ac_status); } && {
  8556 	 test -z "$ac_c_werror_flag" ||
  8557 	 test ! -s conftest.err
  8558        } && test -s conftest.$ac_objext; then
  8559   ac_cv_header_stdc=yes
  8560 else
  8561   echo "$as_me: failed program was:" >&5
  8562 sed 's/^/| /' conftest.$ac_ext >&5
  8564 	ac_cv_header_stdc=no
  8565 fi
  8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8569 if test $ac_cv_header_stdc = yes; then
  8570   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8571   cat >conftest.$ac_ext <<_ACEOF
  8572 /* confdefs.h.  */
  8573 _ACEOF
  8574 cat confdefs.h >>conftest.$ac_ext
  8575 cat >>conftest.$ac_ext <<_ACEOF
  8576 /* end confdefs.h.  */
  8577 #include <string.h>
  8579 _ACEOF
  8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8581   $EGREP "memchr" >/dev/null 2>&1; then
  8583 else
  8584   ac_cv_header_stdc=no
  8585 fi
  8586 rm -f conftest*
  8588 fi
  8590 if test $ac_cv_header_stdc = yes; then
  8591   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8592   cat >conftest.$ac_ext <<_ACEOF
  8593 /* confdefs.h.  */
  8594 _ACEOF
  8595 cat confdefs.h >>conftest.$ac_ext
  8596 cat >>conftest.$ac_ext <<_ACEOF
  8597 /* end confdefs.h.  */
  8598 #include <stdlib.h>
  8600 _ACEOF
  8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8602   $EGREP "free" >/dev/null 2>&1; then
  8604 else
  8605   ac_cv_header_stdc=no
  8606 fi
  8607 rm -f conftest*
  8609 fi
  8611 if test $ac_cv_header_stdc = yes; then
  8612   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8613   if test "$cross_compiling" = yes; then
  8615 else
  8616   cat >conftest.$ac_ext <<_ACEOF
  8617 /* confdefs.h.  */
  8618 _ACEOF
  8619 cat confdefs.h >>conftest.$ac_ext
  8620 cat >>conftest.$ac_ext <<_ACEOF
  8621 /* end confdefs.h.  */
  8622 #include <ctype.h>
  8623 #include <stdlib.h>
  8624 #if ((' ' & 0x0FF) == 0x020)
  8625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8627 #else
  8628 # define ISLOWER(c) \
  8629 		   (('a' <= (c) && (c) <= 'i') \
  8630 		     || ('j' <= (c) && (c) <= 'r') \
  8631 		     || ('s' <= (c) && (c) <= 'z'))
  8632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8633 #endif
  8635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8636 int
  8637 main ()
  8639   int i;
  8640   for (i = 0; i < 256; i++)
  8641     if (XOR (islower (i), ISLOWER (i))
  8642 	|| toupper (i) != TOUPPER (i))
  8643       return 2;
  8644   return 0;
  8646 _ACEOF
  8647 rm -f conftest$ac_exeext
  8648 if { (ac_try="$ac_link"
  8649 case "(($ac_try" in
  8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8651   *) ac_try_echo=$ac_try;;
  8652 esac
  8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8654   (eval "$ac_link") 2>&5
  8655   ac_status=$?
  8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8658   { (case "(($ac_try" in
  8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8660   *) ac_try_echo=$ac_try;;
  8661 esac
  8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8663   (eval "$ac_try") 2>&5
  8664   ac_status=$?
  8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8666   (exit $ac_status); }; }; then
  8668 else
  8669   echo "$as_me: program exited with status $ac_status" >&5
  8670 echo "$as_me: failed program was:" >&5
  8671 sed 's/^/| /' conftest.$ac_ext >&5
  8673 ( exit $ac_status )
  8674 ac_cv_header_stdc=no
  8675 fi
  8676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8677 fi
  8680 fi
  8681 fi
  8682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  8684 if test $ac_cv_header_stdc = yes; then
  8686 cat >>confdefs.h <<\_ACEOF
  8687 #define STDC_HEADERS 1
  8688 _ACEOF
  8690 fi
  8694 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  8696 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8697 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8698 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  8699   echo $ECHO_N "(cached) $ECHO_C" >&6
  8700 else
  8701   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8702   # We make a subdir and do the tests there.  Otherwise we can end up
  8703   # making bogus files that we don't know about and never remove.  For
  8704   # instance it was reported that on HP-UX the gcc test will end up
  8705   # making a dummy file named `D' -- because `-MD' means `put the output
  8706   # in D'.
  8707   mkdir conftest.dir
  8708   # Copy depcomp to subdir because otherwise we won't find it if we're
  8709   # using a relative directory.
  8710   cp "$am_depcomp" conftest.dir
  8711   cd conftest.dir
  8712   # We will build objects and dependencies in a subdirectory because
  8713   # it helps to detect inapplicable dependency modes.  For instance
  8714   # both Tru64's cc and ICC support -MD to output dependencies as a
  8715   # side effect of compilation, but ICC will put the dependencies in
  8716   # the current directory while Tru64 will put them in the object
  8717   # directory.
  8718   mkdir sub
  8720   am_cv_OBJC_dependencies_compiler_type=none
  8721   if test "$am_compiler_list" = ""; then
  8722      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8723   fi
  8724   for depmode in $am_compiler_list; do
  8725     # Setup a source with many dependencies, because some compilers
  8726     # like to wrap large dependency lists on column 80 (with \), and
  8727     # we should not choose a depcomp mode which is confused by this.
  8729     # We need to recreate these files for each test, as the compiler may
  8730     # overwrite some of them when testing with obscure command lines.
  8731     # This happens at least with the AIX C compiler.
  8732     : > sub/conftest.c
  8733     for i in 1 2 3 4 5 6; do
  8734       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8735       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8736       # Solaris 8's {/usr,}/bin/sh.
  8737       touch sub/conftst$i.h
  8738     done
  8739     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8741     case $depmode in
  8742     nosideeffect)
  8743       # after this tag, mechanisms are not by side-effect, so they'll
  8744       # only be used when explicitly requested
  8745       if test "x$enable_dependency_tracking" = xyes; then
  8746 	continue
  8747       else
  8748 	break
  8749       fi
  8750       ;;
  8751     none) break ;;
  8752     esac
  8753     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8754     # mode.  It turns out that the SunPro C++ compiler does not properly
  8755     # handle `-M -o', and we need to detect this.
  8756     if depmode=$depmode \
  8757        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8758        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8759        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8760          >/dev/null 2>conftest.err &&
  8761        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8762        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8763        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8764       # icc doesn't choke on unknown options, it will just issue warnings
  8765       # or remarks (even with -Werror).  So we grep stderr for any message
  8766       # that says an option was ignored or not supported.
  8767       # When given -MP, icc 7.0 and 7.1 complain thusly:
  8768       #   icc: Command line warning: ignoring option '-M'; no argument required
  8769       # The diagnosis changed in icc 8.0:
  8770       #   icc: Command line remark: option '-MP' not supported
  8771       if (grep 'ignoring option' conftest.err ||
  8772           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8773         am_cv_OBJC_dependencies_compiler_type=$depmode
  8774         break
  8775       fi
  8776     fi
  8777   done
  8779   cd ..
  8780   rm -rf conftest.dir
  8781 else
  8782   am_cv_OBJC_dependencies_compiler_type=none
  8783 fi
  8785 fi
  8786 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  8787 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
  8788 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  8792 if
  8793   test "x$enable_dependency_tracking" != xno \
  8794   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  8795   am__fastdepOBJC_TRUE=
  8796   am__fastdepOBJC_FALSE='#'
  8797 else
  8798   am__fastdepOBJC_TRUE='#'
  8799   am__fastdepOBJC_FALSE=
  8800 fi
  8804 # Extract the first word of "pod2man", so it can be a program name with args.
  8805 set dummy pod2man; ac_word=$2
  8806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8808 if test "${ac_cv_path_POD2MAN+set}" = set; then
  8809   echo $ECHO_N "(cached) $ECHO_C" >&6
  8810 else
  8811   case $POD2MAN in
  8812   [\\/]* | ?:[\\/]*)
  8813   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  8814   ;;
  8815   *)
  8816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8817 for as_dir in $PATH
  8818 do
  8819   IFS=$as_save_IFS
  8820   test -z "$as_dir" && as_dir=.
  8821   for ac_exec_ext in '' $ac_executable_extensions; do
  8822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8823     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  8824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8825     break 2
  8826   fi
  8827 done
  8828 done
  8829 IFS=$as_save_IFS
  8831   ;;
  8832 esac
  8833 fi
  8834 POD2MAN=$ac_cv_path_POD2MAN
  8835 if test -n "$POD2MAN"; then
  8836   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  8837 echo "${ECHO_T}$POD2MAN" >&6; }
  8838 else
  8839   { echo "$as_me:$LINENO: result: no" >&5
  8840 echo "${ECHO_T}no" >&6; }
  8841 fi
  8844 # Extract the first word of "pod2html", so it can be a program name with args.
  8845 set dummy pod2html; ac_word=$2
  8846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8848 if test "${ac_cv_path_POD2HTML+set}" = set; then
  8849   echo $ECHO_N "(cached) $ECHO_C" >&6
  8850 else
  8851   case $POD2HTML in
  8852   [\\/]* | ?:[\\/]*)
  8853   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  8854   ;;
  8855   *)
  8856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8857 for as_dir in $PATH
  8858 do
  8859   IFS=$as_save_IFS
  8860   test -z "$as_dir" && as_dir=.
  8861   for ac_exec_ext in '' $ac_executable_extensions; do
  8862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8863     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  8864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8865     break 2
  8866   fi
  8867 done
  8868 done
  8869 IFS=$as_save_IFS
  8871   ;;
  8872 esac
  8873 fi
  8874 POD2HTML=$ac_cv_path_POD2HTML
  8875 if test -n "$POD2HTML"; then
  8876   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  8877 echo "${ECHO_T}$POD2HTML" >&6; }
  8878 else
  8879   { echo "$as_me:$LINENO: result: no" >&5
  8880 echo "${ECHO_T}no" >&6; }
  8881 fi
  8886 cat >>confdefs.h <<_ACEOF
  8887 #define BUILD_SED_PROG "${SED}"
  8888 _ACEOF
  8891 cat >>confdefs.h <<_ACEOF
  8892 #define BUILD_CPP_PROG "${CPP}"
  8893 _ACEOF
  8897 # Check whether --enable-strict-warn was given.
  8898 if test "${enable_strict_warn+set}" = set; then
  8899   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  8900       enable_strictwarn=yes
  8901     fi
  8902 fi
  8904 # Check whether --enable-translator was given.
  8905 if test "${enable_translator+set}" = set; then
  8906   enableval=$enable_translator; true
  8907 else
  8908   enable_translator=yes
  8909 fi
  8911 # Check whether --enable-optimized was given.
  8912 if test "${enable_optimized+set}" = set; then
  8913   enableval=$enable_optimized; true
  8914 else
  8915   enable_optimized=yes
  8916 fi
  8918 # Check whether --enable-shared was given.
  8919 if test "${enable_shared+set}" = set; then
  8920   enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
  8921 else
  8922   enable_shared=cond
  8923 fi
  8925 # Check whether --enable-profiled was given.
  8926 if test "${enable_profiled+set}" = set; then
  8927   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  8928       enable_profiled=yes;
  8929     fi
  8930 fi
  8932 # Check whether --enable-trace was given.
  8933 if test "${enable_trace+set}" = set; then
  8934   enableval=$enable_trace; if test "$enableval" == "yes"; then
  8936 cat >>confdefs.h <<\_ACEOF
  8937 #define ENABLE_TRACE_IO 1
  8938 _ACEOF
  8940     fi
  8941 fi
  8943 # Check whether --enable-watch was given.
  8944 if test "${enable_watch+set}" = set; then
  8945   enableval=$enable_watch; if test "$enableval" == "yes"; then
  8947 cat >>confdefs.h <<\_ACEOF
  8948 #define ENABLE_WATCH 1
  8949 _ACEOF
  8951    fi
  8952 fi
  8954 # Check whether --enable-sh4stats was given.
  8955 if test "${enable_sh4stats+set}" = set; then
  8956   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  8958 cat >>confdefs.h <<\_ACEOF
  8959 #define ENABLE_SH4STATS 1
  8960 _ACEOF
  8962     fi
  8963 fi
  8966 # Check whether --with-osmesa was given.
  8967 if test "${with_osmesa+set}" = set; then
  8968   withval=$with_osmesa;
  8969 else
  8970   with_osmesa=no
  8971 fi
  8974 # Check whether --with-gtk was given.
  8975 if test "${with_gtk+set}" = set; then
  8976   withval=$with_gtk; with_gtk=yes
  8977 else
  8978   with_gtk=x11
  8979 fi
  8982 # Check whether --with-esd was given.
  8983 if test "${with_esd+set}" = set; then
  8984   withval=$with_esd;
  8985 fi
  8988 # Check whether --with-pulse was given.
  8989 if test "${with_pulse+set}" = set; then
  8990   withval=$with_pulse;
  8991 fi
  8994 # Check whether --with-sdl was given.
  8995 if test "${with_sdl+set}" = set; then
  8996   withval=$with_sdl;
  8997 fi
  9001 if test "$ANDROID_BUILD" = "yes"; then
  9002    with_gtk=no;
  9003    EXTRA_OUTPUT_FILES="src/android/build.properties"
  9004    LIBS="-lEGL -lGLESv2 $LIBS"
  9006 cat >>confdefs.h <<\_ACEOF
  9007 #define HAVE_GLES2 1
  9008 _ACEOF
  9010    UI_DRIVER="Android"
  9011    VIDEO_DRIVERS="egl"
  9012    with_sdl=no
  9013 else
  9016 ac_ext=m
  9017 ac_cpp='$OBJCPP $CPPFLAGS'
  9018 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9019 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9020 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9021 if test -n "$ac_tool_prefix"; then
  9022   for ac_prog in gcc objcc objc cc CC
  9023   do
  9024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9028 if test "${ac_cv_prog_OBJC+set}" = set; then
  9029   echo $ECHO_N "(cached) $ECHO_C" >&6
  9030 else
  9031   if test -n "$OBJC"; then
  9032   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9033 else
  9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9035 for as_dir in $PATH
  9036 do
  9037   IFS=$as_save_IFS
  9038   test -z "$as_dir" && as_dir=.
  9039   for ac_exec_ext in '' $ac_executable_extensions; do
  9040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9041     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9043     break 2
  9044   fi
  9045 done
  9046 done
  9047 IFS=$as_save_IFS
  9049 fi
  9050 fi
  9051 OBJC=$ac_cv_prog_OBJC
  9052 if test -n "$OBJC"; then
  9053   { echo "$as_me:$LINENO: result: $OBJC" >&5
  9054 echo "${ECHO_T}$OBJC" >&6; }
  9055 else
  9056   { echo "$as_me:$LINENO: result: no" >&5
  9057 echo "${ECHO_T}no" >&6; }
  9058 fi
  9061     test -n "$OBJC" && break
  9062   done
  9063 fi
  9064 if test -z "$OBJC"; then
  9065   ac_ct_OBJC=$OBJC
  9066   for ac_prog in gcc objcc objc cc CC
  9067 do
  9068   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9069 set dummy $ac_prog; ac_word=$2
  9070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9072 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  9073   echo $ECHO_N "(cached) $ECHO_C" >&6
  9074 else
  9075   if test -n "$ac_ct_OBJC"; then
  9076   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9077 else
  9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9079 for as_dir in $PATH
  9080 do
  9081   IFS=$as_save_IFS
  9082   test -z "$as_dir" && as_dir=.
  9083   for ac_exec_ext in '' $ac_executable_extensions; do
  9084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9085     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9087     break 2
  9088   fi
  9089 done
  9090 done
  9091 IFS=$as_save_IFS
  9093 fi
  9094 fi
  9095 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9096 if test -n "$ac_ct_OBJC"; then
  9097   { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  9098 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
  9099 else
  9100   { echo "$as_me:$LINENO: result: no" >&5
  9101 echo "${ECHO_T}no" >&6; }
  9102 fi
  9105   test -n "$ac_ct_OBJC" && break
  9106 done
  9108   if test "x$ac_ct_OBJC" = x; then
  9109     OBJC="gcc"
  9110   else
  9111     case $cross_compiling:$ac_tool_warned in
  9112 yes:)
  9113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9114 whose name does not start with the host triplet.  If you think this
  9115 configuration is useful to you, please write to autoconf@gnu.org." >&5
  9116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9117 whose name does not start with the host triplet.  If you think this
  9118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9119 ac_tool_warned=yes ;;
  9120 esac
  9121     OBJC=$ac_ct_OBJC
  9122   fi
  9123 fi
  9125 # Provide some information about the compiler.
  9126 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  9127 ac_compiler=`set X $ac_compile; echo $2`
  9128 { (ac_try="$ac_compiler --version >&5"
  9129 case "(($ac_try" in
  9130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9131   *) ac_try_echo=$ac_try;;
  9132 esac
  9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9134   (eval "$ac_compiler --version >&5") 2>&5
  9135   ac_status=$?
  9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9137   (exit $ac_status); }
  9138 { (ac_try="$ac_compiler -v >&5"
  9139 case "(($ac_try" in
  9140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9141   *) ac_try_echo=$ac_try;;
  9142 esac
  9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9144   (eval "$ac_compiler -v >&5") 2>&5
  9145   ac_status=$?
  9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9147   (exit $ac_status); }
  9148 { (ac_try="$ac_compiler -V >&5"
  9149 case "(($ac_try" in
  9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9151   *) ac_try_echo=$ac_try;;
  9152 esac
  9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9154   (eval "$ac_compiler -V >&5") 2>&5
  9155   ac_status=$?
  9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9157   (exit $ac_status); }
  9159 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  9160 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
  9161 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  9162   echo $ECHO_N "(cached) $ECHO_C" >&6
  9163 else
  9164   cat >conftest.$ac_ext <<_ACEOF
  9165 /* confdefs.h.  */
  9166 _ACEOF
  9167 cat confdefs.h >>conftest.$ac_ext
  9168 cat >>conftest.$ac_ext <<_ACEOF
  9169 /* end confdefs.h.  */
  9171 int
  9172 main ()
  9174 #ifndef __GNUC__
  9175        choke me
  9176 #endif
  9179   return 0;
  9181 _ACEOF
  9182 rm -f conftest.$ac_objext
  9183 if { (ac_try="$ac_compile"
  9184 case "(($ac_try" in
  9185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9186   *) ac_try_echo=$ac_try;;
  9187 esac
  9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9189   (eval "$ac_compile") 2>conftest.er1
  9190   ac_status=$?
  9191   grep -v '^ *+' conftest.er1 >conftest.err
  9192   rm -f conftest.er1
  9193   cat conftest.err >&5
  9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9195   (exit $ac_status); } && {
  9196 	 test -z "$ac_objc_werror_flag" ||
  9197 	 test ! -s conftest.err
  9198        } && test -s conftest.$ac_objext; then
  9199   ac_compiler_gnu=yes
  9200 else
  9201   echo "$as_me: failed program was:" >&5
  9202 sed 's/^/| /' conftest.$ac_ext >&5
  9204 	ac_compiler_gnu=no
  9205 fi
  9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9208 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  9210 fi
  9211 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  9212 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
  9213 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
  9214 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  9215 ac_save_OBJCFLAGS=$OBJCFLAGS
  9216 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  9217 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
  9218 if test "${ac_cv_prog_objc_g+set}" = set; then
  9219   echo $ECHO_N "(cached) $ECHO_C" >&6
  9220 else
  9221   ac_save_objc_werror_flag=$ac_objc_werror_flag
  9222    ac_objc_werror_flag=yes
  9223    ac_cv_prog_objc_g=no
  9224    OBJCFLAGS="-g"
  9225    cat >conftest.$ac_ext <<_ACEOF
  9226 /* confdefs.h.  */
  9227 _ACEOF
  9228 cat confdefs.h >>conftest.$ac_ext
  9229 cat >>conftest.$ac_ext <<_ACEOF
  9230 /* end confdefs.h.  */
  9232 int
  9233 main ()
  9237   return 0;
  9239 _ACEOF
  9240 rm -f conftest.$ac_objext
  9241 if { (ac_try="$ac_compile"
  9242 case "(($ac_try" in
  9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9244   *) ac_try_echo=$ac_try;;
  9245 esac
  9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9247   (eval "$ac_compile") 2>conftest.er1
  9248   ac_status=$?
  9249   grep -v '^ *+' conftest.er1 >conftest.err
  9250   rm -f conftest.er1
  9251   cat conftest.err >&5
  9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9253   (exit $ac_status); } && {
  9254 	 test -z "$ac_objc_werror_flag" ||
  9255 	 test ! -s conftest.err
  9256        } && test -s conftest.$ac_objext; then
  9257   ac_cv_prog_objc_g=yes
  9258 else
  9259   echo "$as_me: failed program was:" >&5
  9260 sed 's/^/| /' conftest.$ac_ext >&5
  9262 	OBJCFLAGS=""
  9263       cat >conftest.$ac_ext <<_ACEOF
  9264 /* confdefs.h.  */
  9265 _ACEOF
  9266 cat confdefs.h >>conftest.$ac_ext
  9267 cat >>conftest.$ac_ext <<_ACEOF
  9268 /* end confdefs.h.  */
  9270 int
  9271 main ()
  9275   return 0;
  9277 _ACEOF
  9278 rm -f conftest.$ac_objext
  9279 if { (ac_try="$ac_compile"
  9280 case "(($ac_try" in
  9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9282   *) ac_try_echo=$ac_try;;
  9283 esac
  9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9285   (eval "$ac_compile") 2>conftest.er1
  9286   ac_status=$?
  9287   grep -v '^ *+' conftest.er1 >conftest.err
  9288   rm -f conftest.er1
  9289   cat conftest.err >&5
  9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9291   (exit $ac_status); } && {
  9292 	 test -z "$ac_objc_werror_flag" ||
  9293 	 test ! -s conftest.err
  9294        } && test -s conftest.$ac_objext; then
  9296 else
  9297   echo "$as_me: failed program was:" >&5
  9298 sed 's/^/| /' conftest.$ac_ext >&5
  9300 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  9301 	 OBJCFLAGS="-g"
  9302 	 cat >conftest.$ac_ext <<_ACEOF
  9303 /* confdefs.h.  */
  9304 _ACEOF
  9305 cat confdefs.h >>conftest.$ac_ext
  9306 cat >>conftest.$ac_ext <<_ACEOF
  9307 /* end confdefs.h.  */
  9309 int
  9310 main ()
  9314   return 0;
  9316 _ACEOF
  9317 rm -f conftest.$ac_objext
  9318 if { (ac_try="$ac_compile"
  9319 case "(($ac_try" in
  9320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9321   *) ac_try_echo=$ac_try;;
  9322 esac
  9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9324   (eval "$ac_compile") 2>conftest.er1
  9325   ac_status=$?
  9326   grep -v '^ *+' conftest.er1 >conftest.err
  9327   rm -f conftest.er1
  9328   cat conftest.err >&5
  9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9330   (exit $ac_status); } && {
  9331 	 test -z "$ac_objc_werror_flag" ||
  9332 	 test ! -s conftest.err
  9333        } && test -s conftest.$ac_objext; then
  9334   ac_cv_prog_objc_g=yes
  9335 else
  9336   echo "$as_me: failed program was:" >&5
  9337 sed 's/^/| /' conftest.$ac_ext >&5
  9340 fi
  9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9343 fi
  9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9346 fi
  9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9349    ac_objc_werror_flag=$ac_save_objc_werror_flag
  9350 fi
  9351 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  9352 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
  9353 if test "$ac_test_OBJCFLAGS" = set; then
  9354   OBJCFLAGS=$ac_save_OBJCFLAGS
  9355 elif test $ac_cv_prog_objc_g = yes; then
  9356   if test "$GOBJC" = yes; then
  9357     OBJCFLAGS="-g -O2"
  9358   else
  9359     OBJCFLAGS="-g"
  9360   fi
  9361 else
  9362   if test "$GOBJC" = yes; then
  9363     OBJCFLAGS="-O2"
  9364   else
  9365     OBJCFLAGS=
  9366   fi
  9367 fi
  9368 ac_ext=c
  9369 ac_cpp='$CPP $CPPFLAGS'
  9370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9374 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  9375 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
  9376 ac_ext=m
  9377 ac_cpp='$OBJCPP $CPPFLAGS'
  9378 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9379 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9380 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9381 cat >conftest.$ac_ext <<_ACEOF
  9382 /* confdefs.h.  */
  9383 _ACEOF
  9384 cat confdefs.h >>conftest.$ac_ext
  9385 cat >>conftest.$ac_ext <<_ACEOF
  9386 /* end confdefs.h.  */
  9387 @interface Foo @end
  9388 int
  9389 main ()
  9393   return 0;
  9395 _ACEOF
  9396 rm -f conftest.$ac_objext
  9397 if { (ac_try="$ac_compile"
  9398 case "(($ac_try" in
  9399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9400   *) ac_try_echo=$ac_try;;
  9401 esac
  9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9403   (eval "$ac_compile") 2>conftest.er1
  9404   ac_status=$?
  9405   grep -v '^ *+' conftest.er1 >conftest.err
  9406   rm -f conftest.er1
  9407   cat conftest.err >&5
  9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9409   (exit $ac_status); } && {
  9410 	 test -z "$ac_objc_werror_flag" ||
  9411 	 test ! -s conftest.err
  9412        } && test -s conftest.$ac_objext; then
  9413   { echo "$as_me:$LINENO: result: yes" >&5
  9414 echo "${ECHO_T}yes" >&6; }
  9416    { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  9417 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  9418 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  9419   echo $ECHO_N "(cached) $ECHO_C" >&6
  9420 else
  9421   cat >conftest.$ac_ext <<_ACEOF
  9422 /* confdefs.h.  */
  9423 _ACEOF
  9424 cat confdefs.h >>conftest.$ac_ext
  9425 cat >>conftest.$ac_ext <<_ACEOF
  9426 /* end confdefs.h.  */
  9427 $ac_includes_default
  9429 #include <Cocoa/Cocoa.h>
  9430 _ACEOF
  9431 rm -f conftest.$ac_objext
  9432 if { (ac_try="$ac_compile"
  9433 case "(($ac_try" in
  9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9435   *) ac_try_echo=$ac_try;;
  9436 esac
  9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9438   (eval "$ac_compile") 2>conftest.er1
  9439   ac_status=$?
  9440   grep -v '^ *+' conftest.er1 >conftest.err
  9441   rm -f conftest.er1
  9442   cat conftest.err >&5
  9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9444   (exit $ac_status); } && {
  9445 	 test -z "$ac_objc_werror_flag" ||
  9446 	 test ! -s conftest.err
  9447        } && test -s conftest.$ac_objext; then
  9448   ac_cv_header_Cocoa_Cocoa_h=yes
  9449 else
  9450   echo "$as_me: failed program was:" >&5
  9451 sed 's/^/| /' conftest.$ac_ext >&5
  9453 	ac_cv_header_Cocoa_Cocoa_h=no
  9454 fi
  9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9457 fi
  9458 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  9459 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  9460 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  9462       HAVE_COCOA='yes'
  9463       APPLE_BUILD='yes'
  9464       LIBS="$LIBS -framework AppKit -framework Carbon"
  9465       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"
  9466       LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  9467       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  9469 cat >>confdefs.h <<\_ACEOF
  9470 #define HAVE_COCOA 1
  9471 _ACEOF
  9474 cat >>confdefs.h <<\_ACEOF
  9475 #define APPLE_BUILD 1
  9476 _ACEOF
  9478       UI_DRIVER="Cocoa"
  9479       if test "x$with_gtk" = "xx11"; then
  9480         with_gtk=no
  9481       fi
  9483 fi
  9488 { echo "$as_me:$LINENO: checking OBJC version" >&5
  9489 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
  9490 if test -n "$OBJC"; then
  9491   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  9492   if test -n "$_GOBJC_VERSION"; then
  9493     { echo "$as_me:$LINENO: result: GCC" >&5
  9494 echo "${ECHO_T}GCC" >&6; }
  9495       OBJCOPT="-O2"
  9496                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  9497   else
  9498     { echo "$as_me:$LINENO: result: Unknown" >&5
  9499 echo "${ECHO_T}Unknown" >&6; }
  9500       OBJCOPT="-O2"
  9501   fi
  9502 else
  9503   { echo "$as_me:$LINENO: result: None" >&5
  9504 echo "${ECHO_T}None" >&6; }
  9506 fi
  9509 ac_ext=m
  9510 ac_cpp='$OBJCPP $CPPFLAGS'
  9511 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9512 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9513 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9515 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
  9516 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
  9517 save_OBJCFLAGS="$OBJCFLAGS"
  9518 OBJCFLAGS="-msse2 $OBJCFLAGS"
  9519 cat >conftest.$ac_ext <<_ACEOF
  9521   /* confdefs.h.  */
  9522 _ACEOF
  9523 cat confdefs.h >>conftest.$ac_ext
  9524 cat >>conftest.$ac_ext <<_ACEOF
  9525 /* end confdefs.h.  */
  9526 int main() { return 0; }
  9527 _ACEOF
  9528 rm -f conftest.$ac_objext
  9529 if { (ac_try="$ac_compile"
  9530 case "(($ac_try" in
  9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9532   *) ac_try_echo=$ac_try;;
  9533 esac
  9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9535   (eval "$ac_compile") 2>conftest.er1
  9536   ac_status=$?
  9537   grep -v '^ *+' conftest.er1 >conftest.err
  9538   rm -f conftest.er1
  9539   cat conftest.err >&5
  9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9541   (exit $ac_status); } && {
  9542 	 test -z "$ac_objc_werror_flag" ||
  9543 	 test ! -s conftest.err
  9544        } && test -s conftest.$ac_objext; then
  9546    { echo "$as_me:$LINENO: result: yes" >&5
  9547 echo "${ECHO_T}yes" >&6; }
  9549 else
  9550   echo "$as_me: failed program was:" >&5
  9551 sed 's/^/| /' conftest.$ac_ext >&5
  9554    OBJCFLAGS="$save_OBJCFLAGS"
  9555    { echo "$as_me:$LINENO: result: no" >&5
  9556 echo "${ECHO_T}no" >&6; }
  9558 fi
  9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9561 ac_ext=m
  9562 ac_cpp='$OBJCPP $CPPFLAGS'
  9563 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9564 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9565 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9569 ac_ext=m
  9570 ac_cpp='$OBJCPP $CPPFLAGS'
  9571 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9572 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9573 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9575 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
  9576 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
  9577 save_OBJCFLAGS="$OBJCFLAGS"
  9578 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
  9579 cat >conftest.$ac_ext <<_ACEOF
  9581   /* confdefs.h.  */
  9582 _ACEOF
  9583 cat confdefs.h >>conftest.$ac_ext
  9584 cat >>conftest.$ac_ext <<_ACEOF
  9585 /* end confdefs.h.  */
  9586 int main() { return 0; }
  9587 _ACEOF
  9588 rm -f conftest.$ac_objext
  9589 if { (ac_try="$ac_compile"
  9590 case "(($ac_try" in
  9591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9592   *) ac_try_echo=$ac_try;;
  9593 esac
  9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9595   (eval "$ac_compile") 2>conftest.er1
  9596   ac_status=$?
  9597   grep -v '^ *+' conftest.er1 >conftest.err
  9598   rm -f conftest.er1
  9599   cat conftest.err >&5
  9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9601   (exit $ac_status); } && {
  9602 	 test -z "$ac_objc_werror_flag" ||
  9603 	 test ! -s conftest.err
  9604        } && test -s conftest.$ac_objext; then
  9606    { echo "$as_me:$LINENO: result: yes" >&5
  9607 echo "${ECHO_T}yes" >&6; }
  9609 else
  9610   echo "$as_me: failed program was:" >&5
  9611 sed 's/^/| /' conftest.$ac_ext >&5
  9614    OBJCFLAGS="$save_OBJCFLAGS"
  9615    { echo "$as_me:$LINENO: result: no" >&5
  9616 echo "${ECHO_T}no" >&6; }
  9618 fi
  9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9621 ac_ext=m
  9622 ac_cpp='$OBJCPP $CPPFLAGS'
  9623 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9624 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9625 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9629 else
  9630   echo "$as_me: failed program was:" >&5
  9631 sed 's/^/| /' conftest.$ac_ext >&5
  9633 	{ echo "$as_me:$LINENO: result: No" >&5
  9634 echo "${ECHO_T}No" >&6; }
  9636 fi
  9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  9639 ac_ext=c
  9640 ac_cpp='$CPP $CPPFLAGS'
  9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9646 fi
  9650 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  9651   GUI_COCOA_TRUE=
  9652   GUI_COCOA_FALSE='#'
  9653 else
  9654   GUI_COCOA_TRUE='#'
  9655   GUI_COCOA_FALSE=
  9656 fi
  9658 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  9660 cat >>confdefs.h <<\_ACEOF
  9661 #define OSX_BUNDLE 1
  9662 _ACEOF
  9664 fi
  9666 CFLAGS_FOR_BUILD="-O2 -std=c99"
  9667 CFLAGS="-g -fexceptions"
  9668 OBJCFLAGS="-g -fexceptions"
  9670 cat >>confdefs.h <<\_ACEOF
  9671 #define HAVE_EXCEPTIONS 1
  9672 _ACEOF
  9675 STDCFLAG="-std=c99"
  9677 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  9678 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  9679 { echo "$as_me:$LINENO: checking CC version" >&5
  9680 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
  9681 if test -n "$_ICC_VERSION"; then
  9682    { echo "$as_me:$LINENO: result: ICC" >&5
  9683 echo "${ECHO_T}ICC" >&6; }
  9684      CCOPT="$CFLAGS -fast"
  9685                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9686 elif test -n "$_GCC_VERSION"; then
  9687    { echo "$as_me:$LINENO: result: GCC" >&5
  9688 echo "${ECHO_T}GCC" >&6; }
  9689      CCOPT="-O2"
  9690                 CFLAGS="$CFLAGS -fno-strict-aliasing"
  9691 else
  9692    { echo "$as_me:$LINENO: result: Unknown" >&5
  9693 echo "${ECHO_T}Unknown" >&6; }
  9694      CCOPT="$CFLAGS -O2"
  9695 fi
  9698 ac_ext=c
  9699 ac_cpp='$CPP $CPPFLAGS'
  9700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9704 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
  9705 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
  9706 save_CFLAGS="$CFLAGS"
  9707 CFLAGS="-msse2 $CFLAGS"
  9708 cat >conftest.$ac_ext <<_ACEOF
  9710   /* confdefs.h.  */
  9711 _ACEOF
  9712 cat confdefs.h >>conftest.$ac_ext
  9713 cat >>conftest.$ac_ext <<_ACEOF
  9714 /* end confdefs.h.  */
  9715 int main() { return 0; }
  9716 _ACEOF
  9717 rm -f conftest.$ac_objext
  9718 if { (ac_try="$ac_compile"
  9719 case "(($ac_try" in
  9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9721   *) ac_try_echo=$ac_try;;
  9722 esac
  9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9724   (eval "$ac_compile") 2>conftest.er1
  9725   ac_status=$?
  9726   grep -v '^ *+' conftest.er1 >conftest.err
  9727   rm -f conftest.er1
  9728   cat conftest.err >&5
  9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9730   (exit $ac_status); } && {
  9731 	 test -z "$ac_c_werror_flag" ||
  9732 	 test ! -s conftest.err
  9733        } && test -s conftest.$ac_objext; then
  9735    { echo "$as_me:$LINENO: result: yes" >&5
  9736 echo "${ECHO_T}yes" >&6; }
  9738 else
  9739   echo "$as_me: failed program was:" >&5
  9740 sed 's/^/| /' conftest.$ac_ext >&5
  9743    CFLAGS="$save_CFLAGS"
  9744    { echo "$as_me:$LINENO: result: no" >&5
  9745 echo "${ECHO_T}no" >&6; }
  9747 fi
  9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9750 ac_ext=c
  9751 ac_cpp='$CPP $CPPFLAGS'
  9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9758 ac_ext=c
  9759 ac_cpp='$CPP $CPPFLAGS'
  9760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9764 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
  9765 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
  9766 save_CFLAGS="$CFLAGS"
  9767 CFLAGS="-mfpmath=sse $CFLAGS"
  9768 cat >conftest.$ac_ext <<_ACEOF
  9770   /* confdefs.h.  */
  9771 _ACEOF
  9772 cat confdefs.h >>conftest.$ac_ext
  9773 cat >>conftest.$ac_ext <<_ACEOF
  9774 /* end confdefs.h.  */
  9775 int main() { return 0; }
  9776 _ACEOF
  9777 rm -f conftest.$ac_objext
  9778 if { (ac_try="$ac_compile"
  9779 case "(($ac_try" in
  9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9781   *) ac_try_echo=$ac_try;;
  9782 esac
  9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9784   (eval "$ac_compile") 2>conftest.er1
  9785   ac_status=$?
  9786   grep -v '^ *+' conftest.er1 >conftest.err
  9787   rm -f conftest.er1
  9788   cat conftest.err >&5
  9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9790   (exit $ac_status); } && {
  9791 	 test -z "$ac_c_werror_flag" ||
  9792 	 test ! -s conftest.err
  9793        } && test -s conftest.$ac_objext; then
  9795    { echo "$as_me:$LINENO: result: yes" >&5
  9796 echo "${ECHO_T}yes" >&6; }
  9798 else
  9799   echo "$as_me: failed program was:" >&5
  9800 sed 's/^/| /' conftest.$ac_ext >&5
  9803    CFLAGS="$save_CFLAGS"
  9804    { echo "$as_me:$LINENO: result: no" >&5
  9805 echo "${ECHO_T}no" >&6; }
  9807 fi
  9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9810 ac_ext=c
  9811 ac_cpp='$CPP $CPPFLAGS'
  9812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9818 if test "x$enable_optimized" = "xyes"; then
  9819    CFLAGS="$CFLAGS $CCOPT"
  9820    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  9821    if test "x$enable_profiled" != "xyes"; then
  9822               CFLAGS="$CFLAGS -fomit-frame-pointer"
  9823        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  9824    fi
  9825 else
  9826    CFLAGS="$CFLAGS -g3"
  9827    OBJCFLAGS="$OBJCFLAGS -g3"
  9828 fi
  9830 if test "x$enable_profiled" = "xyes"; then
  9831    CFLAGS="$CFLAGS -pg"
  9832    LDFLAGS="$LDFLAGS -pg";
  9833    OBJCFLAGS="$OBJCFLAGS -pg";
  9834 fi
  9836 if test "x$enable_strictwarn" = "xyes"; then
  9837    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  9838    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  9839 fi
  9841 if test "x$enable_shared" != "xno"; then
  9842    if test "x$APPLE_BUILD" = "xyes"; then
  9843       SOEXT="dylib"
  9844       PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
  9845    else
  9846       SOEXT="so"
  9847       PLUGINLDFLAGS="-shared"
  9848    fi
  9849    PLUGINCFLAGS="-fPIC"
  9851    if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9852   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9853 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9854 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9855   echo $ECHO_N "(cached) $ECHO_C" >&6
  9856 fi
  9857 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9858 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9859 else
  9860   # Is the header compilable?
  9861 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  9862 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
  9863 cat >conftest.$ac_ext <<_ACEOF
  9864 /* confdefs.h.  */
  9865 _ACEOF
  9866 cat confdefs.h >>conftest.$ac_ext
  9867 cat >>conftest.$ac_ext <<_ACEOF
  9868 /* end confdefs.h.  */
  9869 $ac_includes_default
  9870 #include <dlfcn.h>
  9871 _ACEOF
  9872 rm -f conftest.$ac_objext
  9873 if { (ac_try="$ac_compile"
  9874 case "(($ac_try" in
  9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9876   *) ac_try_echo=$ac_try;;
  9877 esac
  9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9879   (eval "$ac_compile") 2>conftest.er1
  9880   ac_status=$?
  9881   grep -v '^ *+' conftest.er1 >conftest.err
  9882   rm -f conftest.er1
  9883   cat conftest.err >&5
  9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9885   (exit $ac_status); } && {
  9886 	 test -z "$ac_c_werror_flag" ||
  9887 	 test ! -s conftest.err
  9888        } && test -s conftest.$ac_objext; then
  9889   ac_header_compiler=yes
  9890 else
  9891   echo "$as_me: failed program was:" >&5
  9892 sed 's/^/| /' conftest.$ac_ext >&5
  9894 	ac_header_compiler=no
  9895 fi
  9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9899 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9901 # Is the header present?
  9902 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  9903 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
  9904 cat >conftest.$ac_ext <<_ACEOF
  9905 /* confdefs.h.  */
  9906 _ACEOF
  9907 cat confdefs.h >>conftest.$ac_ext
  9908 cat >>conftest.$ac_ext <<_ACEOF
  9909 /* end confdefs.h.  */
  9910 #include <dlfcn.h>
  9911 _ACEOF
  9912 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9913 case "(($ac_try" in
  9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9915   *) ac_try_echo=$ac_try;;
  9916 esac
  9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9919   ac_status=$?
  9920   grep -v '^ *+' conftest.er1 >conftest.err
  9921   rm -f conftest.er1
  9922   cat conftest.err >&5
  9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9924   (exit $ac_status); } >/dev/null && {
  9925 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9926 	 test ! -s conftest.err
  9927        }; then
  9928   ac_header_preproc=yes
  9929 else
  9930   echo "$as_me: failed program was:" >&5
  9931 sed 's/^/| /' conftest.$ac_ext >&5
  9933   ac_header_preproc=no
  9934 fi
  9936 rm -f conftest.err conftest.$ac_ext
  9937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9938 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9940 # So?  What about this header?
  9941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9942   yes:no: )
  9943     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9944 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9945     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  9946 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  9947     ac_header_preproc=yes
  9948     ;;
  9949   no:yes:* )
  9950     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  9951 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  9952     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
  9953 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
  9954     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  9955 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  9956     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
  9957 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9958     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  9959 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  9960     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  9961 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  9963     ;;
  9964 esac
  9965 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  9966 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
  9967 if test "${ac_cv_header_dlfcn_h+set}" = set; then
  9968   echo $ECHO_N "(cached) $ECHO_C" >&6
  9969 else
  9970   ac_cv_header_dlfcn_h=$ac_header_preproc
  9971 fi
  9972 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  9973 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
  9975 fi
  9976 if test $ac_cv_header_dlfcn_h = yes; then
  9978       { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  9979 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  9980 if test "${ac_cv_search_dlopen+set}" = set; then
  9981   echo $ECHO_N "(cached) $ECHO_C" >&6
  9982 else
  9983   ac_func_search_save_LIBS=$LIBS
  9984 cat >conftest.$ac_ext <<_ACEOF
  9985 /* confdefs.h.  */
  9986 _ACEOF
  9987 cat confdefs.h >>conftest.$ac_ext
  9988 cat >>conftest.$ac_ext <<_ACEOF
  9989 /* end confdefs.h.  */
  9991 /* Override any GCC internal prototype to avoid an error.
  9992    Use char because int might match the return type of a GCC
  9993    builtin and then its argument prototype would still apply.  */
  9994 #ifdef __cplusplus
  9995 extern "C"
  9996 #endif
  9997 char dlopen ();
  9998 int
  9999 main ()
 10001 return dlopen ();
 10003   return 0;
 10005 _ACEOF
 10006 for ac_lib in '' dl; do
 10007   if test -z "$ac_lib"; then
 10008     ac_res="none required"
 10009   else
 10010     ac_res=-l$ac_lib
 10011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10012   fi
 10013   rm -f conftest.$ac_objext conftest$ac_exeext
 10014 if { (ac_try="$ac_link"
 10015 case "(($ac_try" in
 10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10017   *) ac_try_echo=$ac_try;;
 10018 esac
 10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10020   (eval "$ac_link") 2>conftest.er1
 10021   ac_status=$?
 10022   grep -v '^ *+' conftest.er1 >conftest.err
 10023   rm -f conftest.er1
 10024   cat conftest.err >&5
 10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10026   (exit $ac_status); } && {
 10027 	 test -z "$ac_c_werror_flag" ||
 10028 	 test ! -s conftest.err
 10029        } && test -s conftest$ac_exeext &&
 10030        $as_test_x conftest$ac_exeext; then
 10031   ac_cv_search_dlopen=$ac_res
 10032 else
 10033   echo "$as_me: failed program was:" >&5
 10034 sed 's/^/| /' conftest.$ac_ext >&5
 10037 fi
 10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10040       conftest$ac_exeext
 10041   if test "${ac_cv_search_dlopen+set}" = set; then
 10042   break
 10043 fi
 10044 done
 10045 if test "${ac_cv_search_dlopen+set}" = set; then
 10047 else
 10048   ac_cv_search_dlopen=no
 10049 fi
 10050 rm conftest.$ac_ext
 10051 LIBS=$ac_func_search_save_LIBS
 10052 fi
 10053 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 10054 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 10055 ac_res=$ac_cv_search_dlopen
 10056 if test "$ac_res" != no; then
 10057   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10058   have_dlopen=yes
 10059 fi
 10061 fi
 10064    if test "x$have_dlopen" != "xyes"; then
 10065       if test "x$enable_shared" == "xyes"; then
 10066          { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
 10067 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
 10068    { (exit 1); exit 1; }; }
 10069       else
 10070          { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
 10071 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
 10072       fi
 10073    fi
 10075    { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
 10076 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
 10077    old_LDFLAGS="$LDFLAGS"
 10078    LDFLAGS="$LDFLAGS -rdynamic"
 10079    cat >conftest.$ac_ext <<_ACEOF
 10080 /* confdefs.h.  */
 10081 _ACEOF
 10082 cat confdefs.h >>conftest.$ac_ext
 10083 cat >>conftest.$ac_ext <<_ACEOF
 10084 /* end confdefs.h.  */
 10085 int main() { return 0; }
 10086 _ACEOF
 10087 rm -f conftest.$ac_objext conftest$ac_exeext
 10088 if { (ac_try="$ac_link"
 10089 case "(($ac_try" in
 10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10091   *) ac_try_echo=$ac_try;;
 10092 esac
 10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10094   (eval "$ac_link") 2>conftest.er1
 10095   ac_status=$?
 10096   grep -v '^ *+' conftest.er1 >conftest.err
 10097   rm -f conftest.er1
 10098   cat conftest.err >&5
 10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10100   (exit $ac_status); } && {
 10101 	 test -z "$ac_c_werror_flag" ||
 10102 	 test ! -s conftest.err
 10103        } && test -s conftest$ac_exeext &&
 10104        $as_test_x conftest$ac_exeext; then
 10106      LXDREAMLDFLAGS="-rdynamic"
 10107      { echo "$as_me:$LINENO: result: yes" >&5
 10108 echo "${ECHO_T}yes" >&6; }
 10110 else
 10111   echo "$as_me: failed program was:" >&5
 10112 sed 's/^/| /' conftest.$ac_ext >&5
 10115      LXDREAMLDFLAGS=""
 10116      { echo "$as_me:$LINENO: result: no" >&5
 10117 echo "${ECHO_T}no" >&6; }
 10118 fi
 10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10121       conftest$ac_exeext conftest.$ac_ext
 10122    LDFLAGS="$old_LDFLAGS"
 10128 fi
 10129 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10131 cat >>confdefs.h <<\_ACEOF
 10132 #define BUILD_PLUGINS 1
 10133 _ACEOF
 10135 fi
 10138 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
 10139   BUILD_PLUGINS_TRUE=
 10140   BUILD_PLUGINS_FALSE='#'
 10141 else
 10142   BUILD_PLUGINS_TRUE='#'
 10143   BUILD_PLUGINS_FALSE=
 10144 fi
 10148 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
 10149 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
 10150 save_CFLAGS="$CFLAGS"
 10151 CFLAGS="-Werror $save_CFLAGS"
 10152 if test "$cross_compiling" = yes; then
 10154       { echo "$as_me:$LINENO: result: no" >&5
 10155 echo "${ECHO_T}no" >&6; }
 10157 else
 10158   cat >conftest.$ac_ext <<_ACEOF
 10160   /* confdefs.h.  */
 10161 _ACEOF
 10162 cat confdefs.h >>conftest.$ac_ext
 10163 cat >>conftest.$ac_ext <<_ACEOF
 10164 /* end confdefs.h.  */
 10166 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
 10168 int main(int argc, char *argv[])
 10170    return foo( 1, 2 ) == 3 ? 0 : 1;
 10172 _ACEOF
 10173 rm -f conftest$ac_exeext
 10174 if { (ac_try="$ac_link"
 10175 case "(($ac_try" in
 10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10177   *) ac_try_echo=$ac_try;;
 10178 esac
 10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10180   (eval "$ac_link") 2>&5
 10181   ac_status=$?
 10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10184   { (case "(($ac_try" in
 10185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10186   *) ac_try_echo=$ac_try;;
 10187 esac
 10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10189   (eval "$ac_try") 2>&5
 10190   ac_status=$?
 10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10192   (exit $ac_status); }; }; then
 10194    { echo "$as_me:$LINENO: result: yes" >&5
 10195 echo "${ECHO_T}yes" >&6; }
 10198 cat >>confdefs.h <<\_ACEOF
 10199 #define HAVE_FASTCALL 1
 10200 _ACEOF
 10203 else
 10204   echo "$as_me: program exited with status $ac_status" >&5
 10205 echo "$as_me: failed program was:" >&5
 10206 sed 's/^/| /' conftest.$ac_ext >&5
 10208 ( exit $ac_status )
 10210    { echo "$as_me:$LINENO: result: no" >&5
 10211 echo "${ECHO_T}no" >&6; }
 10213 fi
 10214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10215 fi
 10218 CFLAGS="$save_CFLAGS"
 10221 { echo "$as_me:$LINENO: checking support for force inlining" >&5
 10222 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
 10223 cat >conftest.$ac_ext <<_ACEOF
 10225   /* confdefs.h.  */
 10226 _ACEOF
 10227 cat confdefs.h >>conftest.$ac_ext
 10228 cat >>conftest.$ac_ext <<_ACEOF
 10229 /* end confdefs.h.  */
 10231 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
 10233 int main(int argc, char *argv[])
 10235    return foo( 1, 2 ) == 3 ? 0 : 1;
 10237 _ACEOF
 10238 rm -f conftest.$ac_objext
 10239 if { (ac_try="$ac_compile"
 10240 case "(($ac_try" in
 10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10242   *) ac_try_echo=$ac_try;;
 10243 esac
 10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10245   (eval "$ac_compile") 2>conftest.er1
 10246   ac_status=$?
 10247   grep -v '^ *+' conftest.er1 >conftest.err
 10248   rm -f conftest.er1
 10249   cat conftest.err >&5
 10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10251   (exit $ac_status); } && {
 10252 	 test -z "$ac_c_werror_flag" ||
 10253 	 test ! -s conftest.err
 10254        } && test -s conftest.$ac_objext; then
 10256    FORCEINLINE="__attribute__((always_inline))"
 10257    { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
 10258 echo "${ECHO_T}$FORCEINLINE" >&6; }
 10260 else
 10261   echo "$as_me: failed program was:" >&5
 10262 sed 's/^/| /' conftest.$ac_ext >&5
 10265    FORCEINLINE=""
 10266    { echo "$as_me:$LINENO: result: no" >&5
 10267 echo "${ECHO_T}no" >&6; }
 10269 fi
 10271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10274 cat >>confdefs.h <<_ACEOF
 10275 #define FORCEINLINE $FORCEINLINE
 10276 _ACEOF
 10279 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
 10280 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
 10281 if test "$cross_compiling" = yes; then
 10283    { echo "$as_me:$LINENO: result: no" >&5
 10284 echo "${ECHO_T}no" >&6; }
 10285     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10286 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10287 else
 10288   cat >conftest.$ac_ext <<_ACEOF
 10290   /* confdefs.h.  */
 10291 _ACEOF
 10292 cat confdefs.h >>conftest.$ac_ext
 10293 cat >>conftest.$ac_ext <<_ACEOF
 10294 /* end confdefs.h.  */
 10296 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
 10297 int __attribute__((noinline)) foo( int arg, void *exc )
 10299     if( arg < 2 ) {
 10300         *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
 10302     return 0;
 10305 int main(int argc, char *argv[])
 10307    goto *first_arg(&&start, &&except);
 10309 start:
 10310    return foo( argc, &&except ) + 1;
 10312 except:
 10313    return 0;
 10315 _ACEOF
 10316 rm -f conftest$ac_exeext
 10317 if { (ac_try="$ac_link"
 10318 case "(($ac_try" in
 10319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10320   *) ac_try_echo=$ac_try;;
 10321 esac
 10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10323   (eval "$ac_link") 2>&5
 10324   ac_status=$?
 10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 10327   { (case "(($ac_try" in
 10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10329   *) ac_try_echo=$ac_try;;
 10330 esac
 10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10332   (eval "$ac_try") 2>&5
 10333   ac_status=$?
 10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10335   (exit $ac_status); }; }; then
 10337    { echo "$as_me:$LINENO: result: yes" >&5
 10338 echo "${ECHO_T}yes" >&6; }
 10341 cat >>confdefs.h <<\_ACEOF
 10342 #define HAVE_FRAME_ADDRESS 1
 10343 _ACEOF
 10346 else
 10347   echo "$as_me: program exited with status $ac_status" >&5
 10348 echo "$as_me: failed program was:" >&5
 10349 sed 's/^/| /' conftest.$ac_ext >&5
 10351 ( exit $ac_status )
 10353    { echo "$as_me:$LINENO: result: no" >&5
 10354 echo "${ECHO_T}no" >&6; }
 10355     { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
 10356 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
 10357 fi
 10358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 10359 fi
 10365 { echo "$as_me:$LINENO: checking for library containing listen" >&5
 10366 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
 10367 if test "${ac_cv_search_listen+set}" = set; then
 10368   echo $ECHO_N "(cached) $ECHO_C" >&6
 10369 else
 10370   ac_func_search_save_LIBS=$LIBS
 10371 cat >conftest.$ac_ext <<_ACEOF
 10372 /* confdefs.h.  */
 10373 _ACEOF
 10374 cat confdefs.h >>conftest.$ac_ext
 10375 cat >>conftest.$ac_ext <<_ACEOF
 10376 /* end confdefs.h.  */
 10378 /* Override any GCC internal prototype to avoid an error.
 10379    Use char because int might match the return type of a GCC
 10380    builtin and then its argument prototype would still apply.  */
 10381 #ifdef __cplusplus
 10382 extern "C"
 10383 #endif
 10384 char listen ();
 10385 int
 10386 main ()
 10388 return listen ();
 10390   return 0;
 10392 _ACEOF
 10393 for ac_lib in '' socket; do
 10394   if test -z "$ac_lib"; then
 10395     ac_res="none required"
 10396   else
 10397     ac_res=-l$ac_lib
 10398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10399   fi
 10400   rm -f conftest.$ac_objext conftest$ac_exeext
 10401 if { (ac_try="$ac_link"
 10402 case "(($ac_try" in
 10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10404   *) ac_try_echo=$ac_try;;
 10405 esac
 10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10407   (eval "$ac_link") 2>conftest.er1
 10408   ac_status=$?
 10409   grep -v '^ *+' conftest.er1 >conftest.err
 10410   rm -f conftest.er1
 10411   cat conftest.err >&5
 10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10413   (exit $ac_status); } && {
 10414 	 test -z "$ac_c_werror_flag" ||
 10415 	 test ! -s conftest.err
 10416        } && test -s conftest$ac_exeext &&
 10417        $as_test_x conftest$ac_exeext; then
 10418   ac_cv_search_listen=$ac_res
 10419 else
 10420   echo "$as_me: failed program was:" >&5
 10421 sed 's/^/| /' conftest.$ac_ext >&5
 10424 fi
 10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10427       conftest$ac_exeext
 10428   if test "${ac_cv_search_listen+set}" = set; then
 10429   break
 10430 fi
 10431 done
 10432 if test "${ac_cv_search_listen+set}" = set; then
 10434 else
 10435   ac_cv_search_listen=no
 10436 fi
 10437 rm conftest.$ac_ext
 10438 LIBS=$ac_func_search_save_LIBS
 10439 fi
 10440 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
 10441 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
 10442 ac_res=$ac_cv_search_listen
 10443 if test "$ac_res" != no; then
 10444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10446 fi
 10448 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
 10449 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
 10450 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10451   echo $ECHO_N "(cached) $ECHO_C" >&6
 10452 else
 10453   ac_func_search_save_LIBS=$LIBS
 10454 cat >conftest.$ac_ext <<_ACEOF
 10455 /* confdefs.h.  */
 10456 _ACEOF
 10457 cat confdefs.h >>conftest.$ac_ext
 10458 cat >>conftest.$ac_ext <<_ACEOF
 10459 /* end confdefs.h.  */
 10461 /* Override any GCC internal prototype to avoid an error.
 10462    Use char because int might match the return type of a GCC
 10463    builtin and then its argument prototype would still apply.  */
 10464 #ifdef __cplusplus
 10465 extern "C"
 10466 #endif
 10467 char inet_ntoa ();
 10468 int
 10469 main ()
 10471 return inet_ntoa ();
 10473   return 0;
 10475 _ACEOF
 10476 for ac_lib in '' nsl; do
 10477   if test -z "$ac_lib"; then
 10478     ac_res="none required"
 10479   else
 10480     ac_res=-l$ac_lib
 10481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 10482   fi
 10483   rm -f conftest.$ac_objext conftest$ac_exeext
 10484 if { (ac_try="$ac_link"
 10485 case "(($ac_try" in
 10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10487   *) ac_try_echo=$ac_try;;
 10488 esac
 10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10490   (eval "$ac_link") 2>conftest.er1
 10491   ac_status=$?
 10492   grep -v '^ *+' conftest.er1 >conftest.err
 10493   rm -f conftest.er1
 10494   cat conftest.err >&5
 10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10496   (exit $ac_status); } && {
 10497 	 test -z "$ac_c_werror_flag" ||
 10498 	 test ! -s conftest.err
 10499        } && test -s conftest$ac_exeext &&
 10500        $as_test_x conftest$ac_exeext; then
 10501   ac_cv_search_inet_ntoa=$ac_res
 10502 else
 10503   echo "$as_me: failed program was:" >&5
 10504 sed 's/^/| /' conftest.$ac_ext >&5
 10507 fi
 10509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10510       conftest$ac_exeext
 10511   if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10512   break
 10513 fi
 10514 done
 10515 if test "${ac_cv_search_inet_ntoa+set}" = set; then
 10517 else
 10518   ac_cv_search_inet_ntoa=no
 10519 fi
 10520 rm conftest.$ac_ext
 10521 LIBS=$ac_func_search_save_LIBS
 10522 fi
 10523 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
 10524 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 10525 ac_res=$ac_cv_search_inet_ntoa
 10526 if test "$ac_res" != no; then
 10527   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 10529 fi
 10534 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 10535 	if test -n "$ac_tool_prefix"; then
 10536   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 10537 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 10538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 10541   echo $ECHO_N "(cached) $ECHO_C" >&6
 10542 else
 10543   case $PKG_CONFIG in
 10544   [\\/]* | ?:[\\/]*)
 10545   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 10546   ;;
 10547   *)
 10548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10549 for as_dir in $PATH
 10550 do
 10551   IFS=$as_save_IFS
 10552   test -z "$as_dir" && as_dir=.
 10553   for ac_exec_ext in '' $ac_executable_extensions; do
 10554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10555     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10557     break 2
 10558   fi
 10559 done
 10560 done
 10561 IFS=$as_save_IFS
 10563   ;;
 10564 esac
 10565 fi
 10566 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 10567 if test -n "$PKG_CONFIG"; then
 10568   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 10569 echo "${ECHO_T}$PKG_CONFIG" >&6; }
 10570 else
 10571   { echo "$as_me:$LINENO: result: no" >&5
 10572 echo "${ECHO_T}no" >&6; }
 10573 fi
 10576 fi
 10577 if test -z "$ac_cv_path_PKG_CONFIG"; then
 10578   ac_pt_PKG_CONFIG=$PKG_CONFIG
 10579   # Extract the first word of "pkg-config", so it can be a program name with args.
 10580 set dummy pkg-config; ac_word=$2
 10581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10583 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 10584   echo $ECHO_N "(cached) $ECHO_C" >&6
 10585 else
 10586   case $ac_pt_PKG_CONFIG in
 10587   [\\/]* | ?:[\\/]*)
 10588   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 10589   ;;
 10590   *)
 10591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10592 for as_dir in $PATH
 10593 do
 10594   IFS=$as_save_IFS
 10595   test -z "$as_dir" && as_dir=.
 10596   for ac_exec_ext in '' $ac_executable_extensions; do
 10597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10598     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 10599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10600     break 2
 10601   fi
 10602 done
 10603 done
 10604 IFS=$as_save_IFS
 10606   ;;
 10607 esac
 10608 fi
 10609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 10610 if test -n "$ac_pt_PKG_CONFIG"; then
 10611   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 10612 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 10613 else
 10614   { echo "$as_me:$LINENO: result: no" >&5
 10615 echo "${ECHO_T}no" >&6; }
 10616 fi
 10618   if test "x$ac_pt_PKG_CONFIG" = x; then
 10619     PKG_CONFIG=""
 10620   else
 10621     case $cross_compiling:$ac_tool_warned in
 10622 yes:)
 10623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 10624 whose name does not start with the host triplet.  If you think this
 10625 configuration is useful to you, please write to autoconf@gnu.org." >&5
 10626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 10627 whose name does not start with the host triplet.  If you think this
 10628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 10629 ac_tool_warned=yes ;;
 10630 esac
 10631     PKG_CONFIG=$ac_pt_PKG_CONFIG
 10632   fi
 10633 else
 10634   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 10635 fi
 10637 fi
 10638 if test -n "$PKG_CONFIG"; then
 10639 	_pkg_min_version=0.9.0
 10640 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 10641 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 10642 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 10643 		{ echo "$as_me:$LINENO: result: yes" >&5
 10644 echo "${ECHO_T}yes" >&6; }
 10645 	else
 10646 		{ echo "$as_me:$LINENO: result: no" >&5
 10647 echo "${ECHO_T}no" >&6; }
 10648 		PKG_CONFIG=""
 10649 	fi
 10651 fi
 10653 pkg_failed=no
 10654 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
 10655 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
 10657 if test -n "$LIBPNG_CFLAGS"; then
 10658     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 10659  elif test -n "$PKG_CONFIG"; then
 10660     if test -n "$PKG_CONFIG" && \
 10661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10662   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10663   ac_status=$?
 10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10665   (exit $ac_status); }; then
 10666   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
 10667 else
 10668   pkg_failed=yes
 10669 fi
 10670  else
 10671     pkg_failed=untried
 10672 fi
 10673 if test -n "$LIBPNG_LIBS"; then
 10674     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 10675  elif test -n "$PKG_CONFIG"; then
 10676     if test -n "$PKG_CONFIG" && \
 10677     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
 10678   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
 10679   ac_status=$?
 10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10681   (exit $ac_status); }; then
 10682   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
 10683 else
 10684   pkg_failed=yes
 10685 fi
 10686  else
 10687     pkg_failed=untried
 10688 fi
 10692 if test $pkg_failed = yes; then
 10694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10695         _pkg_short_errors_supported=yes
 10696 else
 10697         _pkg_short_errors_supported=no
 10698 fi
 10699         if test $_pkg_short_errors_supported = yes; then
 10700 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
 10701         else
 10702 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
 10703         fi
 10704 	# Put the nasty error message in config.log where it belongs
 10705 	echo "$LIBPNG_PKG_ERRORS" >&5
 10707 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
 10709 $LIBPNG_PKG_ERRORS
 10711 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10712 installed software in a non-standard prefix.
 10714 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10715 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10716 See the pkg-config man page for more details.
 10717 " >&5
 10718 echo "$as_me: error: Package requirements (libpng ) were not met:
 10720 $LIBPNG_PKG_ERRORS
 10722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10723 installed software in a non-standard prefix.
 10725 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10726 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10727 See the pkg-config man page for more details.
 10728 " >&2;}
 10729    { (exit 1); exit 1; }; }
 10730 elif test $pkg_failed = untried; then
 10731 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10732 is in your PATH or set the PKG_CONFIG environment variable to the full
 10733 path to pkg-config.
 10735 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10736 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10737 See the pkg-config man page for more details.
 10739 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10740 See \`config.log' for more details." >&5
 10741 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10742 is in your PATH or set the PKG_CONFIG environment variable to the full
 10743 path to pkg-config.
 10745 Alternatively, you may set the environment variables LIBPNG_CFLAGS
 10746 and LIBPNG_LIBS to avoid the need to call pkg-config.
 10747 See the pkg-config man page for more details.
 10749 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10750 See \`config.log' for more details." >&2;}
 10751    { (exit 1); exit 1; }; }
 10752 else
 10753 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
 10754 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
 10755         { echo "$as_me:$LINENO: result: yes" >&5
 10756 echo "${ECHO_T}yes" >&6; }
 10758 fi
 10761 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
 10762 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
 10763 if test "${ac_cv_lib_z_uncompress+set}" = set; then
 10764   echo $ECHO_N "(cached) $ECHO_C" >&6
 10765 else
 10766   ac_check_lib_save_LIBS=$LIBS
 10767 LIBS="-lz  $LIBS"
 10768 cat >conftest.$ac_ext <<_ACEOF
 10769 /* confdefs.h.  */
 10770 _ACEOF
 10771 cat confdefs.h >>conftest.$ac_ext
 10772 cat >>conftest.$ac_ext <<_ACEOF
 10773 /* end confdefs.h.  */
 10775 /* Override any GCC internal prototype to avoid an error.
 10776    Use char because int might match the return type of a GCC
 10777    builtin and then its argument prototype would still apply.  */
 10778 #ifdef __cplusplus
 10779 extern "C"
 10780 #endif
 10781 char uncompress ();
 10782 int
 10783 main ()
 10785 return uncompress ();
 10787   return 0;
 10789 _ACEOF
 10790 rm -f conftest.$ac_objext conftest$ac_exeext
 10791 if { (ac_try="$ac_link"
 10792 case "(($ac_try" in
 10793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10794   *) ac_try_echo=$ac_try;;
 10795 esac
 10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10797   (eval "$ac_link") 2>conftest.er1
 10798   ac_status=$?
 10799   grep -v '^ *+' conftest.er1 >conftest.err
 10800   rm -f conftest.er1
 10801   cat conftest.err >&5
 10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10803   (exit $ac_status); } && {
 10804 	 test -z "$ac_c_werror_flag" ||
 10805 	 test ! -s conftest.err
 10806        } && test -s conftest$ac_exeext &&
 10807        $as_test_x conftest$ac_exeext; then
 10808   ac_cv_lib_z_uncompress=yes
 10809 else
 10810   echo "$as_me: failed program was:" >&5
 10811 sed 's/^/| /' conftest.$ac_ext >&5
 10813 	ac_cv_lib_z_uncompress=no
 10814 fi
 10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10817       conftest$ac_exeext conftest.$ac_ext
 10818 LIBS=$ac_check_lib_save_LIBS
 10819 fi
 10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
 10821 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
 10822 if test $ac_cv_lib_z_uncompress = yes; then
 10823   cat >>confdefs.h <<_ACEOF
 10824 #define HAVE_LIBZ 1
 10825 _ACEOF
 10827   LIBS="-lz $LIBS"
 10829 else
 10831     echo "Zlib (libz.so) could not be found, but is required."
 10832     exit 1
 10833 fi
 10837 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
 10838 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
 10839 if test "${ac_cv_lib_m_sqrt+set}" = set; then
 10840   echo $ECHO_N "(cached) $ECHO_C" >&6
 10841 else
 10842   ac_check_lib_save_LIBS=$LIBS
 10843 LIBS="-lm  $LIBS"
 10844 cat >conftest.$ac_ext <<_ACEOF
 10845 /* confdefs.h.  */
 10846 _ACEOF
 10847 cat confdefs.h >>conftest.$ac_ext
 10848 cat >>conftest.$ac_ext <<_ACEOF
 10849 /* end confdefs.h.  */
 10851 /* Override any GCC internal prototype to avoid an error.
 10852    Use char because int might match the return type of a GCC
 10853    builtin and then its argument prototype would still apply.  */
 10854 #ifdef __cplusplus
 10855 extern "C"
 10856 #endif
 10857 char sqrt ();
 10858 int
 10859 main ()
 10861 return sqrt ();
 10863   return 0;
 10865 _ACEOF
 10866 rm -f conftest.$ac_objext conftest$ac_exeext
 10867 if { (ac_try="$ac_link"
 10868 case "(($ac_try" in
 10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10870   *) ac_try_echo=$ac_try;;
 10871 esac
 10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10873   (eval "$ac_link") 2>conftest.er1
 10874   ac_status=$?
 10875   grep -v '^ *+' conftest.er1 >conftest.err
 10876   rm -f conftest.er1
 10877   cat conftest.err >&5
 10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10879   (exit $ac_status); } && {
 10880 	 test -z "$ac_c_werror_flag" ||
 10881 	 test ! -s conftest.err
 10882        } && test -s conftest$ac_exeext &&
 10883        $as_test_x conftest$ac_exeext; then
 10884   ac_cv_lib_m_sqrt=yes
 10885 else
 10886   echo "$as_me: failed program was:" >&5
 10887 sed 's/^/| /' conftest.$ac_ext >&5
 10889 	ac_cv_lib_m_sqrt=no
 10890 fi
 10892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10893       conftest$ac_exeext conftest.$ac_ext
 10894 LIBS=$ac_check_lib_save_LIBS
 10895 fi
 10896 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
 10897 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
 10898 if test $ac_cv_lib_m_sqrt = yes; then
 10899   cat >>confdefs.h <<_ACEOF
 10900 #define HAVE_LIBM 1
 10901 _ACEOF
 10903   LIBS="-lm $LIBS"
 10905 fi
 10908 if test "x$with_gtk" = "xno"; then
 10910 pkg_failed=no
 10911 { echo "$as_me:$LINENO: checking for GLIB" >&5
 10912 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
 10914 if test -n "$GLIB_CFLAGS"; then
 10915     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
 10916  elif test -n "$PKG_CONFIG"; then
 10917     if test -n "$PKG_CONFIG" && \
 10918     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10919   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10920   ac_status=$?
 10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10922   (exit $ac_status); }; then
 10923   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 10924 else
 10925   pkg_failed=yes
 10926 fi
 10927  else
 10928     pkg_failed=untried
 10929 fi
 10930 if test -n "$GLIB_LIBS"; then
 10931     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
 10932  elif test -n "$PKG_CONFIG"; then
 10933     if test -n "$PKG_CONFIG" && \
 10934     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 10935   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 10936   ac_status=$?
 10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10938   (exit $ac_status); }; then
 10939   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 10940 else
 10941   pkg_failed=yes
 10942 fi
 10943  else
 10944     pkg_failed=untried
 10945 fi
 10949 if test $pkg_failed = yes; then
 10951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10952         _pkg_short_errors_supported=yes
 10953 else
 10954         _pkg_short_errors_supported=no
 10955 fi
 10956         if test $_pkg_short_errors_supported = yes; then
 10957 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 10958         else
 10959 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 10960         fi
 10961 	# Put the nasty error message in config.log where it belongs
 10962 	echo "$GLIB_PKG_ERRORS" >&5
 10964 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 10966 $GLIB_PKG_ERRORS
 10968 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10969 installed software in a non-standard prefix.
 10971 Alternatively, you may set the environment variables GLIB_CFLAGS
 10972 and GLIB_LIBS to avoid the need to call pkg-config.
 10973 See the pkg-config man page for more details.
 10974 " >&5
 10975 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 10977 $GLIB_PKG_ERRORS
 10979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 10980 installed software in a non-standard prefix.
 10982 Alternatively, you may set the environment variables GLIB_CFLAGS
 10983 and GLIB_LIBS to avoid the need to call pkg-config.
 10984 See the pkg-config man page for more details.
 10985 " >&2;}
 10986    { (exit 1); exit 1; }; }
 10987 elif test $pkg_failed = untried; then
 10988 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 10989 is in your PATH or set the PKG_CONFIG environment variable to the full
 10990 path to pkg-config.
 10992 Alternatively, you may set the environment variables GLIB_CFLAGS
 10993 and GLIB_LIBS to avoid the need to call pkg-config.
 10994 See the pkg-config man page for more details.
 10996 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 10997 See \`config.log' for more details." >&5
 10998 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 10999 is in your PATH or set the PKG_CONFIG environment variable to the full
 11000 path to pkg-config.
 11002 Alternatively, you may set the environment variables GLIB_CFLAGS
 11003 and GLIB_LIBS to avoid the need to call pkg-config.
 11004 See the pkg-config man page for more details.
 11006 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11007 See \`config.log' for more details." >&2;}
 11008    { (exit 1); exit 1; }; }
 11009 else
 11010 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
 11011 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
 11012         { echo "$as_me:$LINENO: result: yes" >&5
 11013 echo "${ECHO_T}yes" >&6; }
 11015 fi
 11016 else
 11018 pkg_failed=no
 11019 { echo "$as_me:$LINENO: checking for GTK" >&5
 11020 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
 11022 if test -n "$GTK_CFLAGS"; then
 11023     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 11024  elif test -n "$PKG_CONFIG"; then
 11025     if test -n "$PKG_CONFIG" && \
 11026     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11027   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11028   ac_status=$?
 11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11030   (exit $ac_status); }; then
 11031   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
 11032 else
 11033   pkg_failed=yes
 11034 fi
 11035  else
 11036     pkg_failed=untried
 11037 fi
 11038 if test -n "$GTK_LIBS"; then
 11039     pkg_cv_GTK_LIBS="$GTK_LIBS"
 11040  elif test -n "$PKG_CONFIG"; then
 11041     if test -n "$PKG_CONFIG" && \
 11042     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
 11043   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
 11044   ac_status=$?
 11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11046   (exit $ac_status); }; then
 11047   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
 11048 else
 11049   pkg_failed=yes
 11050 fi
 11051  else
 11052     pkg_failed=untried
 11053 fi
 11057 if test $pkg_failed = yes; then
 11059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11060         _pkg_short_errors_supported=yes
 11061 else
 11062         _pkg_short_errors_supported=no
 11063 fi
 11064         if test $_pkg_short_errors_supported = yes; then
 11065 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
 11066         else
 11067 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
 11068         fi
 11069 	# Put the nasty error message in config.log where it belongs
 11070 	echo "$GTK_PKG_ERRORS" >&5
 11072 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
 11074 $GTK_PKG_ERRORS
 11076 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11077 installed software in a non-standard prefix.
 11079 Alternatively, you may set the environment variables GTK_CFLAGS
 11080 and GTK_LIBS to avoid the need to call pkg-config.
 11081 See the pkg-config man page for more details.
 11082 " >&5
 11083 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
 11085 $GTK_PKG_ERRORS
 11087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11088 installed software in a non-standard prefix.
 11090 Alternatively, you may set the environment variables GTK_CFLAGS
 11091 and GTK_LIBS to avoid the need to call pkg-config.
 11092 See the pkg-config man page for more details.
 11093 " >&2;}
 11094    { (exit 1); exit 1; }; }
 11095 elif test $pkg_failed = untried; then
 11096 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11097 is in your PATH or set the PKG_CONFIG environment variable to the full
 11098 path to pkg-config.
 11100 Alternatively, you may set the environment variables GTK_CFLAGS
 11101 and GTK_LIBS to avoid the need to call pkg-config.
 11102 See the pkg-config man page for more details.
 11104 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11105 See \`config.log' for more details." >&5
 11106 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11107 is in your PATH or set the PKG_CONFIG environment variable to the full
 11108 path to pkg-config.
 11110 Alternatively, you may set the environment variables GTK_CFLAGS
 11111 and GTK_LIBS to avoid the need to call pkg-config.
 11112 See the pkg-config man page for more details.
 11114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11115 See \`config.log' for more details." >&2;}
 11116    { (exit 1); exit 1; }; }
 11117 else
 11118 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
 11119 	GTK_LIBS=$pkg_cv_GTK_LIBS
 11120         { echo "$as_me:$LINENO: result: yes" >&5
 11121 echo "${ECHO_T}yes" >&6; }
 11123        HAVE_GTK='yes'
 11125 cat >>confdefs.h <<\_ACEOF
 11126 #define HAVE_GTK 1
 11127 _ACEOF
 11129        UI_DRIVER="GTK"
 11131 fi
 11133       LIBS="$LIBS $GTK_LIBS"
 11134    { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
 11135 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
 11136 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
 11137   echo $ECHO_N "(cached) $ECHO_C" >&6
 11138 else
 11139   cat >conftest.$ac_ext <<_ACEOF
 11140 /* confdefs.h.  */
 11141 _ACEOF
 11142 cat confdefs.h >>conftest.$ac_ext
 11143 cat >>conftest.$ac_ext <<_ACEOF
 11144 /* end confdefs.h.  */
 11145 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
 11146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11147 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
 11149 /* System header to define __stub macros and hopefully few prototypes,
 11150     which can conflict with char gdk_x11_display_get_xdisplay (); below.
 11151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11152     <limits.h> exists even on freestanding compilers.  */
 11154 #ifdef __STDC__
 11155 # include <limits.h>
 11156 #else
 11157 # include <assert.h>
 11158 #endif
 11160 #undef gdk_x11_display_get_xdisplay
 11162 /* Override any GCC internal prototype to avoid an error.
 11163    Use char because int might match the return type of a GCC
 11164    builtin and then its argument prototype would still apply.  */
 11165 #ifdef __cplusplus
 11166 extern "C"
 11167 #endif
 11168 char gdk_x11_display_get_xdisplay ();
 11169 /* The GNU C library defines this for functions which it implements
 11170     to always fail with ENOSYS.  Some functions are actually named
 11171     something starting with __ and the normal name is an alias.  */
 11172 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
 11173 choke me
 11174 #endif
 11176 int
 11177 main ()
 11179 return gdk_x11_display_get_xdisplay ();
 11181   return 0;
 11183 _ACEOF
 11184 rm -f conftest.$ac_objext conftest$ac_exeext
 11185 if { (ac_try="$ac_link"
 11186 case "(($ac_try" in
 11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11188   *) ac_try_echo=$ac_try;;
 11189 esac
 11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11191   (eval "$ac_link") 2>conftest.er1
 11192   ac_status=$?
 11193   grep -v '^ *+' conftest.er1 >conftest.err
 11194   rm -f conftest.er1
 11195   cat conftest.err >&5
 11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11197   (exit $ac_status); } && {
 11198 	 test -z "$ac_c_werror_flag" ||
 11199 	 test ! -s conftest.err
 11200        } && test -s conftest$ac_exeext &&
 11201        $as_test_x conftest$ac_exeext; then
 11202   ac_cv_func_gdk_x11_display_get_xdisplay=yes
 11203 else
 11204   echo "$as_me: failed program was:" >&5
 11205 sed 's/^/| /' conftest.$ac_ext >&5
 11207 	ac_cv_func_gdk_x11_display_get_xdisplay=no
 11208 fi
 11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11211       conftest$ac_exeext conftest.$ac_ext
 11212 fi
 11213 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
 11214 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
 11215 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
 11217       HAVE_GTK_X11='yes'
 11219 cat >>confdefs.h <<\_ACEOF
 11220 #define HAVE_GTK_X11 1
 11221 _ACEOF
 11223 fi
 11225             GTK_LIBS="$GTK_LIBS -lX11"
 11226       LIBS="$LIBS -lX11"
 11227    { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
 11228 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
 11229 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
 11230   echo $ECHO_N "(cached) $ECHO_C" >&6
 11231 else
 11232   cat >conftest.$ac_ext <<_ACEOF
 11233 /* confdefs.h.  */
 11234 _ACEOF
 11235 cat confdefs.h >>conftest.$ac_ext
 11236 cat >>conftest.$ac_ext <<_ACEOF
 11237 /* end confdefs.h.  */
 11238 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
 11239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11240 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
 11242 /* System header to define __stub macros and hopefully few prototypes,
 11243     which can conflict with char gdk_quartz_window_get_nsview (); below.
 11244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11245     <limits.h> exists even on freestanding compilers.  */
 11247 #ifdef __STDC__
 11248 # include <limits.h>
 11249 #else
 11250 # include <assert.h>
 11251 #endif
 11253 #undef gdk_quartz_window_get_nsview
 11255 /* Override any GCC internal prototype to avoid an error.
 11256    Use char because int might match the return type of a GCC
 11257    builtin and then its argument prototype would still apply.  */
 11258 #ifdef __cplusplus
 11259 extern "C"
 11260 #endif
 11261 char gdk_quartz_window_get_nsview ();
 11262 /* The GNU C library defines this for functions which it implements
 11263     to always fail with ENOSYS.  Some functions are actually named
 11264     something starting with __ and the normal name is an alias.  */
 11265 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
 11266 choke me
 11267 #endif
 11269 int
 11270 main ()
 11272 return gdk_quartz_window_get_nsview ();
 11274   return 0;
 11276 _ACEOF
 11277 rm -f conftest.$ac_objext conftest$ac_exeext
 11278 if { (ac_try="$ac_link"
 11279 case "(($ac_try" in
 11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11281   *) ac_try_echo=$ac_try;;
 11282 esac
 11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11284   (eval "$ac_link") 2>conftest.er1
 11285   ac_status=$?
 11286   grep -v '^ *+' conftest.er1 >conftest.err
 11287   rm -f conftest.er1
 11288   cat conftest.err >&5
 11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11290   (exit $ac_status); } && {
 11291 	 test -z "$ac_c_werror_flag" ||
 11292 	 test ! -s conftest.err
 11293        } && test -s conftest$ac_exeext &&
 11294        $as_test_x conftest$ac_exeext; then
 11295   ac_cv_func_gdk_quartz_window_get_nsview=yes
 11296 else
 11297   echo "$as_me: failed program was:" >&5
 11298 sed 's/^/| /' conftest.$ac_ext >&5
 11300 	ac_cv_func_gdk_quartz_window_get_nsview=no
 11301 fi
 11303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11304       conftest$ac_exeext conftest.$ac_ext
 11305 fi
 11306 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
 11307 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
 11308 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
 11310       HAVE_GTK_OSX='yes'
 11312 cat >>confdefs.h <<\_ACEOF
 11313 #define HAVE_GTK_OSX 1
 11314 _ACEOF
 11316 fi
 11318    if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
 11319       { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
 11320 See \`config.log' for more details." >&5
 11321 echo "$as_me: error: Unable to identify GTK platform
 11322 See \`config.log' for more details." >&2;}
 11323    { (exit 1); exit 1; }; }
 11324    fi
 11325 fi
 11329 pkg_failed=no
 11330 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
 11331 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
 11333 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
 11334     pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
 11335  elif test -n "$PKG_CONFIG"; then
 11336     if test -n "$PKG_CONFIG" && \
 11337     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11338   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11339   ac_status=$?
 11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11341   (exit $ac_status); }; then
 11342   pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
 11343 else
 11344   pkg_failed=yes
 11345 fi
 11346  else
 11347     pkg_failed=untried
 11348 fi
 11349 if test -n "$GLIB_FOR_BUILD_LIBS"; then
 11350     pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
 11351  elif test -n "$PKG_CONFIG"; then
 11352     if test -n "$PKG_CONFIG" && \
 11353     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
 11354   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
 11355   ac_status=$?
 11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11357   (exit $ac_status); }; then
 11358   pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
 11359 else
 11360   pkg_failed=yes
 11361 fi
 11362  else
 11363     pkg_failed=untried
 11364 fi
 11368 if test $pkg_failed = yes; then
 11370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11371         _pkg_short_errors_supported=yes
 11372 else
 11373         _pkg_short_errors_supported=no
 11374 fi
 11375         if test $_pkg_short_errors_supported = yes; then
 11376 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
 11377         else
 11378 	        GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
 11379         fi
 11380 	# Put the nasty error message in config.log where it belongs
 11381 	echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
 11383 	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
 11385 $GLIB_FOR_BUILD_PKG_ERRORS
 11387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11388 installed software in a non-standard prefix.
 11390 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11391 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11392 See the pkg-config man page for more details.
 11393 " >&5
 11394 echo "$as_me: error: Package requirements (glib-2.0) were not met:
 11396 $GLIB_FOR_BUILD_PKG_ERRORS
 11398 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11399 installed software in a non-standard prefix.
 11401 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11402 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11403 See the pkg-config man page for more details.
 11404 " >&2;}
 11405    { (exit 1); exit 1; }; }
 11406 elif test $pkg_failed = untried; then
 11407 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11408 is in your PATH or set the PKG_CONFIG environment variable to the full
 11409 path to pkg-config.
 11411 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11412 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11413 See the pkg-config man page for more details.
 11415 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11416 See \`config.log' for more details." >&5
 11417 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11418 is in your PATH or set the PKG_CONFIG environment variable to the full
 11419 path to pkg-config.
 11421 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
 11422 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
 11423 See the pkg-config man page for more details.
 11425 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11426 See \`config.log' for more details." >&2;}
 11427    { (exit 1); exit 1; }; }
 11428 else
 11429 	GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
 11430 	GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
 11431         { echo "$as_me:$LINENO: result: yes" >&5
 11432 echo "${ECHO_T}yes" >&6; }
 11434 fi
 11439 if test "$HAVE_GTK" = 'yes'; then
 11440   GUI_GTK_TRUE=
 11441   GUI_GTK_FALSE='#'
 11442 else
 11443   GUI_GTK_TRUE='#'
 11444   GUI_GTK_FALSE=
 11445 fi
 11449 pkg_failed=no
 11450 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
 11451 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
 11453 if test -n "$LIBISOFS_CFLAGS"; then
 11454     pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
 11455  elif test -n "$PKG_CONFIG"; then
 11456     if test -n "$PKG_CONFIG" && \
 11457     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11458   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11459   ac_status=$?
 11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11461   (exit $ac_status); }; then
 11462   pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
 11463 else
 11464   pkg_failed=yes
 11465 fi
 11466  else
 11467     pkg_failed=untried
 11468 fi
 11469 if test -n "$LIBISOFS_LIBS"; then
 11470     pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
 11471  elif test -n "$PKG_CONFIG"; then
 11472     if test -n "$PKG_CONFIG" && \
 11473     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
 11474   ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
 11475   ac_status=$?
 11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11477   (exit $ac_status); }; then
 11478   pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
 11479 else
 11480   pkg_failed=yes
 11481 fi
 11482  else
 11483     pkg_failed=untried
 11484 fi
 11488 if test $pkg_failed = yes; then
 11490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11491         _pkg_short_errors_supported=yes
 11492 else
 11493         _pkg_short_errors_supported=no
 11494 fi
 11495         if test $_pkg_short_errors_supported = yes; then
 11496 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
 11497         else
 11498 	        LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
 11499         fi
 11500 	# Put the nasty error message in config.log where it belongs
 11501 	echo "$LIBISOFS_PKG_ERRORS" >&5
 11503 	{ { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
 11505 $LIBISOFS_PKG_ERRORS
 11507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11508 installed software in a non-standard prefix.
 11510 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11511 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11512 See the pkg-config man page for more details.
 11513 " >&5
 11514 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
 11516 $LIBISOFS_PKG_ERRORS
 11518 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11519 installed software in a non-standard prefix.
 11521 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11522 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11523 See the pkg-config man page for more details.
 11524 " >&2;}
 11525    { (exit 1); exit 1; }; }
 11526 elif test $pkg_failed = untried; then
 11527 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11528 is in your PATH or set the PKG_CONFIG environment variable to the full
 11529 path to pkg-config.
 11531 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11532 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11533 See the pkg-config man page for more details.
 11535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11536 See \`config.log' for more details." >&5
 11537 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11538 is in your PATH or set the PKG_CONFIG environment variable to the full
 11539 path to pkg-config.
 11541 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
 11542 and LIBISOFS_LIBS to avoid the need to call pkg-config.
 11543 See the pkg-config man page for more details.
 11545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11546 See \`config.log' for more details." >&2;}
 11547    { (exit 1); exit 1; }; }
 11548 else
 11549 	LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
 11550 	LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
 11551         { echo "$as_me:$LINENO: result: yes" >&5
 11552 echo "${ECHO_T}yes" >&6; }
 11554 fi
 11556 if test "x$with_osmesa" != xno; then
 11560 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
 11561 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
 11562 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
 11563   echo $ECHO_N "(cached) $ECHO_C" >&6
 11564 else
 11565   ac_check_lib_save_LIBS=$LIBS
 11566 LIBS="-lOSMesa  $LIBS"
 11567 cat >conftest.$ac_ext <<_ACEOF
 11568 /* confdefs.h.  */
 11569 _ACEOF
 11570 cat confdefs.h >>conftest.$ac_ext
 11571 cat >>conftest.$ac_ext <<_ACEOF
 11572 /* end confdefs.h.  */
 11574 /* Override any GCC internal prototype to avoid an error.
 11575    Use char because int might match the return type of a GCC
 11576    builtin and then its argument prototype would still apply.  */
 11577 #ifdef __cplusplus
 11578 extern "C"
 11579 #endif
 11580 char OSMesaCreateContext ();
 11581 int
 11582 main ()
 11584 return OSMesaCreateContext ();
 11586   return 0;
 11588 _ACEOF
 11589 rm -f conftest.$ac_objext conftest$ac_exeext
 11590 if { (ac_try="$ac_link"
 11591 case "(($ac_try" in
 11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11593   *) ac_try_echo=$ac_try;;
 11594 esac
 11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11596   (eval "$ac_link") 2>conftest.er1
 11597   ac_status=$?
 11598   grep -v '^ *+' conftest.er1 >conftest.err
 11599   rm -f conftest.er1
 11600   cat conftest.err >&5
 11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11602   (exit $ac_status); } && {
 11603 	 test -z "$ac_c_werror_flag" ||
 11604 	 test ! -s conftest.err
 11605        } && test -s conftest$ac_exeext &&
 11606        $as_test_x conftest$ac_exeext; then
 11607   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
 11608 else
 11609   echo "$as_me: failed program was:" >&5
 11610 sed 's/^/| /' conftest.$ac_ext >&5
 11612 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
 11613 fi
 11615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11616       conftest$ac_exeext conftest.$ac_ext
 11617 LIBS=$ac_check_lib_save_LIBS
 11618 fi
 11619 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
 11620 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
 11621 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
 11622   cat >>confdefs.h <<_ACEOF
 11623 #define HAVE_LIBOSMESA 1
 11624 _ACEOF
 11626   LIBS="-lOSMesa $LIBS"
 11628 else
 11629   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
 11630 See \`config.log' for more details." >&5
 11631 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
 11632 See \`config.log' for more details." >&2;}
 11633    { (exit 1); exit 1; }; }
 11634 fi
 11636   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11637   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11638 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11639 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11640   echo $ECHO_N "(cached) $ECHO_C" >&6
 11641 fi
 11642 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11643 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11644 else
 11645   # Is the header compilable?
 11646 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
 11647 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
 11648 cat >conftest.$ac_ext <<_ACEOF
 11649 /* confdefs.h.  */
 11650 _ACEOF
 11651 cat confdefs.h >>conftest.$ac_ext
 11652 cat >>conftest.$ac_ext <<_ACEOF
 11653 /* end confdefs.h.  */
 11654 $ac_includes_default
 11655 #include <GL/osmesa.h>
 11656 _ACEOF
 11657 rm -f conftest.$ac_objext
 11658 if { (ac_try="$ac_compile"
 11659 case "(($ac_try" in
 11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11661   *) ac_try_echo=$ac_try;;
 11662 esac
 11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11664   (eval "$ac_compile") 2>conftest.er1
 11665   ac_status=$?
 11666   grep -v '^ *+' conftest.er1 >conftest.err
 11667   rm -f conftest.er1
 11668   cat conftest.err >&5
 11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11670   (exit $ac_status); } && {
 11671 	 test -z "$ac_c_werror_flag" ||
 11672 	 test ! -s conftest.err
 11673        } && test -s conftest.$ac_objext; then
 11674   ac_header_compiler=yes
 11675 else
 11676   echo "$as_me: failed program was:" >&5
 11677 sed 's/^/| /' conftest.$ac_ext >&5
 11679 	ac_header_compiler=no
 11680 fi
 11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11684 echo "${ECHO_T}$ac_header_compiler" >&6; }
 11686 # Is the header present?
 11687 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
 11688 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
 11689 cat >conftest.$ac_ext <<_ACEOF
 11690 /* confdefs.h.  */
 11691 _ACEOF
 11692 cat confdefs.h >>conftest.$ac_ext
 11693 cat >>conftest.$ac_ext <<_ACEOF
 11694 /* end confdefs.h.  */
 11695 #include <GL/osmesa.h>
 11696 _ACEOF
 11697 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11698 case "(($ac_try" in
 11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11700   *) ac_try_echo=$ac_try;;
 11701 esac
 11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11704   ac_status=$?
 11705   grep -v '^ *+' conftest.er1 >conftest.err
 11706   rm -f conftest.er1
 11707   cat conftest.err >&5
 11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11709   (exit $ac_status); } >/dev/null && {
 11710 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11711 	 test ! -s conftest.err
 11712        }; then
 11713   ac_header_preproc=yes
 11714 else
 11715   echo "$as_me: failed program was:" >&5
 11716 sed 's/^/| /' conftest.$ac_ext >&5
 11718   ac_header_preproc=no
 11719 fi
 11721 rm -f conftest.err conftest.$ac_ext
 11722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11723 echo "${ECHO_T}$ac_header_preproc" >&6; }
 11725 # So?  What about this header?
 11726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11727   yes:no: )
 11728     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11729 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11730     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
 11731 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
 11732     ac_header_preproc=yes
 11733     ;;
 11734   no:yes:* )
 11735     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
 11736 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
 11737     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
 11738 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
 11739     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
 11740 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
 11741     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
 11742 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11743     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
 11744 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
 11745     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
 11746 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
 11748     ;;
 11749 esac
 11750 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
 11751 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
 11752 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
 11753   echo $ECHO_N "(cached) $ECHO_C" >&6
 11754 else
 11755   ac_cv_header_GL_osmesa_h=$ac_header_preproc
 11756 fi
 11757 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
 11758 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
 11760 fi
 11761 if test $ac_cv_header_GL_osmesa_h = yes; then
 11763 else
 11764   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
 11765 See \`config.log' for more details." >&5
 11766 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
 11767 See \`config.log' for more details." >&2;}
 11768    { (exit 1); exit 1; }; }
 11769 fi
 11772   HAVE_OSMESA='yes'
 11773   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
 11775 cat >>confdefs.h <<\_ACEOF
 11776 #define HAVE_OSMESA 1
 11777 _ACEOF
 11779 else
 11782    if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
 11784 pkg_failed=no
 11785 { echo "$as_me:$LINENO: checking for LIBGL" >&5
 11786 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
 11788 if test -n "$LIBGL_CFLAGS"; then
 11789     pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
 11790  elif test -n "$PKG_CONFIG"; then
 11791     if test -n "$PKG_CONFIG" && \
 11792     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11793   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11794   ac_status=$?
 11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11796   (exit $ac_status); }; then
 11797   pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
 11798 else
 11799   pkg_failed=yes
 11800 fi
 11801  else
 11802     pkg_failed=untried
 11803 fi
 11804 if test -n "$LIBGL_LIBS"; then
 11805     pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
 11806  elif test -n "$PKG_CONFIG"; then
 11807     if test -n "$PKG_CONFIG" && \
 11808     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
 11809   ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
 11810   ac_status=$?
 11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11812   (exit $ac_status); }; then
 11813   pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
 11814 else
 11815   pkg_failed=yes
 11816 fi
 11817  else
 11818     pkg_failed=untried
 11819 fi
 11823 if test $pkg_failed = yes; then
 11825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 11826         _pkg_short_errors_supported=yes
 11827 else
 11828         _pkg_short_errors_supported=no
 11829 fi
 11830         if test $_pkg_short_errors_supported = yes; then
 11831 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
 11832         else
 11833 	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
 11834         fi
 11835 	# Put the nasty error message in config.log where it belongs
 11836 	echo "$LIBGL_PKG_ERRORS" >&5
 11838 	{ { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
 11840 $LIBGL_PKG_ERRORS
 11842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11843 installed software in a non-standard prefix.
 11845 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11846 and LIBGL_LIBS to avoid the need to call pkg-config.
 11847 See the pkg-config man page for more details.
 11848 " >&5
 11849 echo "$as_me: error: Package requirements (gl ) were not met:
 11851 $LIBGL_PKG_ERRORS
 11853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 11854 installed software in a non-standard prefix.
 11856 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11857 and LIBGL_LIBS to avoid the need to call pkg-config.
 11858 See the pkg-config man page for more details.
 11859 " >&2;}
 11860    { (exit 1); exit 1; }; }
 11861 elif test $pkg_failed = untried; then
 11862 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 11863 is in your PATH or set the PKG_CONFIG environment variable to the full
 11864 path to pkg-config.
 11866 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11867 and LIBGL_LIBS to avoid the need to call pkg-config.
 11868 See the pkg-config man page for more details.
 11870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11871 See \`config.log' for more details." >&5
 11872 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 11873 is in your PATH or set the PKG_CONFIG environment variable to the full
 11874 path to pkg-config.
 11876 Alternatively, you may set the environment variables LIBGL_CFLAGS
 11877 and LIBGL_LIBS to avoid the need to call pkg-config.
 11878 See the pkg-config man page for more details.
 11880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 11881 See \`config.log' for more details." >&2;}
 11882    { (exit 1); exit 1; }; }
 11883 else
 11884 	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
 11885 	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
 11886         { echo "$as_me:$LINENO: result: yes" >&5
 11887 echo "${ECHO_T}yes" >&6; }
 11889 fi
 11890                                       LIBS="$LIBS $LIBGL_LIBS";
 11891       CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
 11892    else
 11893       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
 11894 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
 11895 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
 11896   echo $ECHO_N "(cached) $ECHO_C" >&6
 11897 else
 11898   cat >conftest.$ac_ext <<_ACEOF
 11899 /* confdefs.h.  */
 11900 _ACEOF
 11901 cat confdefs.h >>conftest.$ac_ext
 11902 cat >>conftest.$ac_ext <<_ACEOF
 11903 /* end confdefs.h.  */
 11904 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
 11905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11906 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
 11908 /* System header to define __stub macros and hopefully few prototypes,
 11909     which can conflict with char NSOpenGLGetVersion (); below.
 11910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11911     <limits.h> exists even on freestanding compilers.  */
 11913 #ifdef __STDC__
 11914 # include <limits.h>
 11915 #else
 11916 # include <assert.h>
 11917 #endif
 11919 #undef NSOpenGLGetVersion
 11921 /* Override any GCC internal prototype to avoid an error.
 11922    Use char because int might match the return type of a GCC
 11923    builtin and then its argument prototype would still apply.  */
 11924 #ifdef __cplusplus
 11925 extern "C"
 11926 #endif
 11927 char NSOpenGLGetVersion ();
 11928 /* The GNU C library defines this for functions which it implements
 11929     to always fail with ENOSYS.  Some functions are actually named
 11930     something starting with __ and the normal name is an alias.  */
 11931 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
 11932 choke me
 11933 #endif
 11935 int
 11936 main ()
 11938 return NSOpenGLGetVersion ();
 11940   return 0;
 11942 _ACEOF
 11943 rm -f conftest.$ac_objext conftest$ac_exeext
 11944 if { (ac_try="$ac_link"
 11945 case "(($ac_try" in
 11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11947   *) ac_try_echo=$ac_try;;
 11948 esac
 11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 11950   (eval "$ac_link") 2>conftest.er1
 11951   ac_status=$?
 11952   grep -v '^ *+' conftest.er1 >conftest.err
 11953   rm -f conftest.er1
 11954   cat conftest.err >&5
 11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11956   (exit $ac_status); } && {
 11957 	 test -z "$ac_c_werror_flag" ||
 11958 	 test ! -s conftest.err
 11959        } && test -s conftest$ac_exeext &&
 11960        $as_test_x conftest$ac_exeext; then
 11961   ac_cv_func_NSOpenGLGetVersion=yes
 11962 else
 11963   echo "$as_me: failed program was:" >&5
 11964 sed 's/^/| /' conftest.$ac_ext >&5
 11966 	ac_cv_func_NSOpenGLGetVersion=no
 11967 fi
 11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11970       conftest$ac_exeext conftest.$ac_ext
 11971 fi
 11972 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
 11973 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
 11974 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
 11976          HAVE_NSGL='yes'
 11977          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
 11979 cat >>confdefs.h <<\_ACEOF
 11980 #define HAVE_NSGL 1
 11981 _ACEOF
 11983 fi
 11985    fi
 11987    if test "x$HAVE_GTK_X11" = "xyes"; then
 11988       if test "x$APPLE_BUILD" = "xyes"; then
 11989          LIBS="$LIBS -L/usr/X11/lib -lGL"
 11990       fi
 11991       { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
 11992 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
 11993 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
 11994   echo $ECHO_N "(cached) $ECHO_C" >&6
 11995 else
 11996   cat >conftest.$ac_ext <<_ACEOF
 11997 /* confdefs.h.  */
 11998 _ACEOF
 11999 cat confdefs.h >>conftest.$ac_ext
 12000 cat >>conftest.$ac_ext <<_ACEOF
 12001 /* end confdefs.h.  */
 12002 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
 12003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12004 #define glXQueryVersion innocuous_glXQueryVersion
 12006 /* System header to define __stub macros and hopefully few prototypes,
 12007     which can conflict with char glXQueryVersion (); below.
 12008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12009     <limits.h> exists even on freestanding compilers.  */
 12011 #ifdef __STDC__
 12012 # include <limits.h>
 12013 #else
 12014 # include <assert.h>
 12015 #endif
 12017 #undef glXQueryVersion
 12019 /* Override any GCC internal prototype to avoid an error.
 12020    Use char because int might match the return type of a GCC
 12021    builtin and then its argument prototype would still apply.  */
 12022 #ifdef __cplusplus
 12023 extern "C"
 12024 #endif
 12025 char glXQueryVersion ();
 12026 /* The GNU C library defines this for functions which it implements
 12027     to always fail with ENOSYS.  Some functions are actually named
 12028     something starting with __ and the normal name is an alias.  */
 12029 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
 12030 choke me
 12031 #endif
 12033 int
 12034 main ()
 12036 return glXQueryVersion ();
 12038   return 0;
 12040 _ACEOF
 12041 rm -f conftest.$ac_objext conftest$ac_exeext
 12042 if { (ac_try="$ac_link"
 12043 case "(($ac_try" in
 12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12045   *) ac_try_echo=$ac_try;;
 12046 esac
 12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12048   (eval "$ac_link") 2>conftest.er1
 12049   ac_status=$?
 12050   grep -v '^ *+' conftest.er1 >conftest.err
 12051   rm -f conftest.er1
 12052   cat conftest.err >&5
 12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12054   (exit $ac_status); } && {
 12055 	 test -z "$ac_c_werror_flag" ||
 12056 	 test ! -s conftest.err
 12057        } && test -s conftest$ac_exeext &&
 12058        $as_test_x conftest$ac_exeext; then
 12059   ac_cv_func_glXQueryVersion=yes
 12060 else
 12061   echo "$as_me: failed program was:" >&5
 12062 sed 's/^/| /' conftest.$ac_ext >&5
 12064 	ac_cv_func_glXQueryVersion=no
 12065 fi
 12067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12068       conftest$ac_exeext conftest.$ac_ext
 12069 fi
 12070 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
 12071 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
 12072 if test $ac_cv_func_glXQueryVersion = yes; then
 12074          HAVE_GLX='yes'
 12075          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
 12077 cat >>confdefs.h <<\_ACEOF
 12078 #define HAVE_GLX 1
 12079 _ACEOF
 12081 fi
 12083    fi
 12086 fi
 12093 if test "x$HAVE_OSMESA" = "xyes"; then
 12094   VIDEO_OSMESA_TRUE=
 12095   VIDEO_OSMESA_FALSE='#'
 12096 else
 12097   VIDEO_OSMESA_TRUE='#'
 12098   VIDEO_OSMESA_FALSE=
 12099 fi
 12103 if test "x$HAVE_GLX" = "xyes"; then
 12104   VIDEO_GLX_TRUE=
 12105   VIDEO_GLX_FALSE='#'
 12106 else
 12107   VIDEO_GLX_TRUE='#'
 12108   VIDEO_GLX_FALSE=
 12109 fi
 12113 if test "x$HAVE_NSGL" = "xyes"; then
 12114   VIDEO_NSGL_TRUE=
 12115   VIDEO_NSGL_FALSE='#'
 12116 else
 12117   VIDEO_NSGL_TRUE='#'
 12118   VIDEO_NSGL_FALSE=
 12119 fi
 12122 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
 12123 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
 12124 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
 12125   echo $ECHO_N "(cached) $ECHO_C" >&6
 12126 else
 12127   cat >conftest.$ac_ext <<_ACEOF
 12128 /* confdefs.h.  */
 12129 _ACEOF
 12130 cat confdefs.h >>conftest.$ac_ext
 12131 cat >>conftest.$ac_ext <<_ACEOF
 12132 /* end confdefs.h.  */
 12133 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
 12134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12135 #define glGenFramebuffers innocuous_glGenFramebuffers
 12137 /* System header to define __stub macros and hopefully few prototypes,
 12138     which can conflict with char glGenFramebuffers (); below.
 12139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12140     <limits.h> exists even on freestanding compilers.  */
 12142 #ifdef __STDC__
 12143 # include <limits.h>
 12144 #else
 12145 # include <assert.h>
 12146 #endif
 12148 #undef glGenFramebuffers
 12150 /* Override any GCC internal prototype to avoid an error.
 12151    Use char because int might match the return type of a GCC
 12152    builtin and then its argument prototype would still apply.  */
 12153 #ifdef __cplusplus
 12154 extern "C"
 12155 #endif
 12156 char glGenFramebuffers ();
 12157 /* The GNU C library defines this for functions which it implements
 12158     to always fail with ENOSYS.  Some functions are actually named
 12159     something starting with __ and the normal name is an alias.  */
 12160 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
 12161 choke me
 12162 #endif
 12164 int
 12165 main ()
 12167 return glGenFramebuffers ();
 12169   return 0;
 12171 _ACEOF
 12172 rm -f conftest.$ac_objext conftest$ac_exeext
 12173 if { (ac_try="$ac_link"
 12174 case "(($ac_try" in
 12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12176   *) ac_try_echo=$ac_try;;
 12177 esac
 12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12179   (eval "$ac_link") 2>conftest.er1
 12180   ac_status=$?
 12181   grep -v '^ *+' conftest.er1 >conftest.err
 12182   rm -f conftest.er1
 12183   cat conftest.err >&5
 12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12185   (exit $ac_status); } && {
 12186 	 test -z "$ac_c_werror_flag" ||
 12187 	 test ! -s conftest.err
 12188        } && test -s conftest$ac_exeext &&
 12189        $as_test_x conftest$ac_exeext; then
 12190   ac_cv_func_glGenFramebuffers=yes
 12191 else
 12192   echo "$as_me: failed program was:" >&5
 12193 sed 's/^/| /' conftest.$ac_ext >&5
 12195 	ac_cv_func_glGenFramebuffers=no
 12196 fi
 12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12199       conftest$ac_exeext conftest.$ac_ext
 12200 fi
 12201 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
 12202 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
 12203 if test $ac_cv_func_glGenFramebuffers = yes; then
 12205 cat >>confdefs.h <<\_ACEOF
 12206 #define HAVE_OPENGL_FBO 1
 12207 _ACEOF
 12209 fi
 12211 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
 12212 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
 12213 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
 12214   echo $ECHO_N "(cached) $ECHO_C" >&6
 12215 else
 12216   cat >conftest.$ac_ext <<_ACEOF
 12217 /* confdefs.h.  */
 12218 _ACEOF
 12219 cat confdefs.h >>conftest.$ac_ext
 12220 cat >>conftest.$ac_ext <<_ACEOF
 12221 /* end confdefs.h.  */
 12222 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
 12223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12224 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
 12226 /* System header to define __stub macros and hopefully few prototypes,
 12227     which can conflict with char glGenFramebuffersEXT (); below.
 12228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12229     <limits.h> exists even on freestanding compilers.  */
 12231 #ifdef __STDC__
 12232 # include <limits.h>
 12233 #else
 12234 # include <assert.h>
 12235 #endif
 12237 #undef glGenFramebuffersEXT
 12239 /* Override any GCC internal prototype to avoid an error.
 12240    Use char because int might match the return type of a GCC
 12241    builtin and then its argument prototype would still apply.  */
 12242 #ifdef __cplusplus
 12243 extern "C"
 12244 #endif
 12245 char glGenFramebuffersEXT ();
 12246 /* The GNU C library defines this for functions which it implements
 12247     to always fail with ENOSYS.  Some functions are actually named
 12248     something starting with __ and the normal name is an alias.  */
 12249 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
 12250 choke me
 12251 #endif
 12253 int
 12254 main ()
 12256 return glGenFramebuffersEXT ();
 12258   return 0;
 12260 _ACEOF
 12261 rm -f conftest.$ac_objext conftest$ac_exeext
 12262 if { (ac_try="$ac_link"
 12263 case "(($ac_try" in
 12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12265   *) ac_try_echo=$ac_try;;
 12266 esac
 12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12268   (eval "$ac_link") 2>conftest.er1
 12269   ac_status=$?
 12270   grep -v '^ *+' conftest.er1 >conftest.err
 12271   rm -f conftest.er1
 12272   cat conftest.err >&5
 12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12274   (exit $ac_status); } && {
 12275 	 test -z "$ac_c_werror_flag" ||
 12276 	 test ! -s conftest.err
 12277        } && test -s conftest$ac_exeext &&
 12278        $as_test_x conftest$ac_exeext; then
 12279   ac_cv_func_glGenFramebuffersEXT=yes
 12280 else
 12281   echo "$as_me: failed program was:" >&5
 12282 sed 's/^/| /' conftest.$ac_ext >&5
 12284 	ac_cv_func_glGenFramebuffersEXT=no
 12285 fi
 12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12288       conftest$ac_exeext conftest.$ac_ext
 12289 fi
 12290 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
 12291 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
 12292 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
 12294 cat >>confdefs.h <<\_ACEOF
 12295 #define HAVE_OPENGL_FBO_EXT 1
 12296 _ACEOF
 12298 fi
 12300 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
 12301 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
 12302 if test "${ac_cv_func_glCreateShader+set}" = set; then
 12303   echo $ECHO_N "(cached) $ECHO_C" >&6
 12304 else
 12305   cat >conftest.$ac_ext <<_ACEOF
 12306 /* confdefs.h.  */
 12307 _ACEOF
 12308 cat confdefs.h >>conftest.$ac_ext
 12309 cat >>conftest.$ac_ext <<_ACEOF
 12310 /* end confdefs.h.  */
 12311 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
 12312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12313 #define glCreateShader innocuous_glCreateShader
 12315 /* System header to define __stub macros and hopefully few prototypes,
 12316     which can conflict with char glCreateShader (); below.
 12317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12318     <limits.h> exists even on freestanding compilers.  */
 12320 #ifdef __STDC__
 12321 # include <limits.h>
 12322 #else
 12323 # include <assert.h>
 12324 #endif
 12326 #undef glCreateShader
 12328 /* Override any GCC internal prototype to avoid an error.
 12329    Use char because int might match the return type of a GCC
 12330    builtin and then its argument prototype would still apply.  */
 12331 #ifdef __cplusplus
 12332 extern "C"
 12333 #endif
 12334 char glCreateShader ();
 12335 /* The GNU C library defines this for functions which it implements
 12336     to always fail with ENOSYS.  Some functions are actually named
 12337     something starting with __ and the normal name is an alias.  */
 12338 #if defined __stub_glCreateShader || defined __stub___glCreateShader
 12339 choke me
 12340 #endif
 12342 int
 12343 main ()
 12345 return glCreateShader ();
 12347   return 0;
 12349 _ACEOF
 12350 rm -f conftest.$ac_objext conftest$ac_exeext
 12351 if { (ac_try="$ac_link"
 12352 case "(($ac_try" in
 12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12354   *) ac_try_echo=$ac_try;;
 12355 esac
 12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12357   (eval "$ac_link") 2>conftest.er1
 12358   ac_status=$?
 12359   grep -v '^ *+' conftest.er1 >conftest.err
 12360   rm -f conftest.er1
 12361   cat conftest.err >&5
 12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12363   (exit $ac_status); } && {
 12364 	 test -z "$ac_c_werror_flag" ||
 12365 	 test ! -s conftest.err
 12366        } && test -s conftest$ac_exeext &&
 12367        $as_test_x conftest$ac_exeext; then
 12368   ac_cv_func_glCreateShader=yes
 12369 else
 12370   echo "$as_me: failed program was:" >&5
 12371 sed 's/^/| /' conftest.$ac_ext >&5
 12373 	ac_cv_func_glCreateShader=no
 12374 fi
 12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12377       conftest$ac_exeext conftest.$ac_ext
 12378 fi
 12379 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
 12380 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
 12381 if test $ac_cv_func_glCreateShader = yes; then
 12383 cat >>confdefs.h <<\_ACEOF
 12384 #define HAVE_OPENGL_SHADER 1
 12385 _ACEOF
 12387 fi
 12389 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
 12390 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
 12391 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
 12392   echo $ECHO_N "(cached) $ECHO_C" >&6
 12393 else
 12394   cat >conftest.$ac_ext <<_ACEOF
 12395 /* confdefs.h.  */
 12396 _ACEOF
 12397 cat confdefs.h >>conftest.$ac_ext
 12398 cat >>conftest.$ac_ext <<_ACEOF
 12399 /* end confdefs.h.  */
 12400 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
 12401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12402 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
 12404 /* System header to define __stub macros and hopefully few prototypes,
 12405     which can conflict with char glCreateShaderObjectARB (); below.
 12406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12407     <limits.h> exists even on freestanding compilers.  */
 12409 #ifdef __STDC__
 12410 # include <limits.h>
 12411 #else
 12412 # include <assert.h>
 12413 #endif
 12415 #undef glCreateShaderObjectARB
 12417 /* Override any GCC internal prototype to avoid an error.
 12418    Use char because int might match the return type of a GCC
 12419    builtin and then its argument prototype would still apply.  */
 12420 #ifdef __cplusplus
 12421 extern "C"
 12422 #endif
 12423 char glCreateShaderObjectARB ();
 12424 /* The GNU C library defines this for functions which it implements
 12425     to always fail with ENOSYS.  Some functions are actually named
 12426     something starting with __ and the normal name is an alias.  */
 12427 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
 12428 choke me
 12429 #endif
 12431 int
 12432 main ()
 12434 return glCreateShaderObjectARB ();
 12436   return 0;
 12438 _ACEOF
 12439 rm -f conftest.$ac_objext conftest$ac_exeext
 12440 if { (ac_try="$ac_link"
 12441 case "(($ac_try" in
 12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12443   *) ac_try_echo=$ac_try;;
 12444 esac
 12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12446   (eval "$ac_link") 2>conftest.er1
 12447   ac_status=$?
 12448   grep -v '^ *+' conftest.er1 >conftest.err
 12449   rm -f conftest.er1
 12450   cat conftest.err >&5
 12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12452   (exit $ac_status); } && {
 12453 	 test -z "$ac_c_werror_flag" ||
 12454 	 test ! -s conftest.err
 12455        } && test -s conftest$ac_exeext &&
 12456        $as_test_x conftest$ac_exeext; then
 12457   ac_cv_func_glCreateShaderObjectARB=yes
 12458 else
 12459   echo "$as_me: failed program was:" >&5
 12460 sed 's/^/| /' conftest.$ac_ext >&5
 12462 	ac_cv_func_glCreateShaderObjectARB=no
 12463 fi
 12465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12466       conftest$ac_exeext conftest.$ac_ext
 12467 fi
 12468 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
 12469 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
 12470 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
 12472 cat >>confdefs.h <<\_ACEOF
 12473 #define HAVE_OPENGL_SHADER_ARB 1
 12474 _ACEOF
 12476 fi
 12478 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
 12479 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
 12480 if test "${ac_cv_func_glClampColorARB+set}" = set; then
 12481   echo $ECHO_N "(cached) $ECHO_C" >&6
 12482 else
 12483   cat >conftest.$ac_ext <<_ACEOF
 12484 /* confdefs.h.  */
 12485 _ACEOF
 12486 cat confdefs.h >>conftest.$ac_ext
 12487 cat >>conftest.$ac_ext <<_ACEOF
 12488 /* end confdefs.h.  */
 12489 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
 12490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12491 #define glClampColorARB innocuous_glClampColorARB
 12493 /* System header to define __stub macros and hopefully few prototypes,
 12494     which can conflict with char glClampColorARB (); below.
 12495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12496     <limits.h> exists even on freestanding compilers.  */
 12498 #ifdef __STDC__
 12499 # include <limits.h>
 12500 #else
 12501 # include <assert.h>
 12502 #endif
 12504 #undef glClampColorARB
 12506 /* Override any GCC internal prototype to avoid an error.
 12507    Use char because int might match the return type of a GCC
 12508    builtin and then its argument prototype would still apply.  */
 12509 #ifdef __cplusplus
 12510 extern "C"
 12511 #endif
 12512 char glClampColorARB ();
 12513 /* The GNU C library defines this for functions which it implements
 12514     to always fail with ENOSYS.  Some functions are actually named
 12515     something starting with __ and the normal name is an alias.  */
 12516 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
 12517 choke me
 12518 #endif
 12520 int
 12521 main ()
 12523 return glClampColorARB ();
 12525   return 0;
 12527 _ACEOF
 12528 rm -f conftest.$ac_objext conftest$ac_exeext
 12529 if { (ac_try="$ac_link"
 12530 case "(($ac_try" in
 12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12532   *) ac_try_echo=$ac_try;;
 12533 esac
 12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12535   (eval "$ac_link") 2>conftest.er1
 12536   ac_status=$?
 12537   grep -v '^ *+' conftest.er1 >conftest.err
 12538   rm -f conftest.er1
 12539   cat conftest.err >&5
 12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12541   (exit $ac_status); } && {
 12542 	 test -z "$ac_c_werror_flag" ||
 12543 	 test ! -s conftest.err
 12544        } && test -s conftest$ac_exeext &&
 12545        $as_test_x conftest$ac_exeext; then
 12546   ac_cv_func_glClampColorARB=yes
 12547 else
 12548   echo "$as_me: failed program was:" >&5
 12549 sed 's/^/| /' conftest.$ac_ext >&5
 12551 	ac_cv_func_glClampColorARB=no
 12552 fi
 12554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12555       conftest$ac_exeext conftest.$ac_ext
 12556 fi
 12557 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
 12558 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
 12559 if test $ac_cv_func_glClampColorARB = yes; then
 12561 cat >>confdefs.h <<\_ACEOF
 12562 #define HAVE_OPENGL_CLAMP_COLOR 1
 12563 _ACEOF
 12565 fi
 12567 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
 12568 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
 12569 if test "${ac_cv_func_glClearDepthf+set}" = set; then
 12570   echo $ECHO_N "(cached) $ECHO_C" >&6
 12571 else
 12572   cat >conftest.$ac_ext <<_ACEOF
 12573 /* confdefs.h.  */
 12574 _ACEOF
 12575 cat confdefs.h >>conftest.$ac_ext
 12576 cat >>conftest.$ac_ext <<_ACEOF
 12577 /* end confdefs.h.  */
 12578 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
 12579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12580 #define glClearDepthf innocuous_glClearDepthf
 12582 /* System header to define __stub macros and hopefully few prototypes,
 12583     which can conflict with char glClearDepthf (); below.
 12584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12585     <limits.h> exists even on freestanding compilers.  */
 12587 #ifdef __STDC__
 12588 # include <limits.h>
 12589 #else
 12590 # include <assert.h>
 12591 #endif
 12593 #undef glClearDepthf
 12595 /* Override any GCC internal prototype to avoid an error.
 12596    Use char because int might match the return type of a GCC
 12597    builtin and then its argument prototype would still apply.  */
 12598 #ifdef __cplusplus
 12599 extern "C"
 12600 #endif
 12601 char glClearDepthf ();
 12602 /* The GNU C library defines this for functions which it implements
 12603     to always fail with ENOSYS.  Some functions are actually named
 12604     something starting with __ and the normal name is an alias.  */
 12605 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
 12606 choke me
 12607 #endif
 12609 int
 12610 main ()
 12612 return glClearDepthf ();
 12614   return 0;
 12616 _ACEOF
 12617 rm -f conftest.$ac_objext conftest$ac_exeext
 12618 if { (ac_try="$ac_link"
 12619 case "(($ac_try" in
 12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12621   *) ac_try_echo=$ac_try;;
 12622 esac
 12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12624   (eval "$ac_link") 2>conftest.er1
 12625   ac_status=$?
 12626   grep -v '^ *+' conftest.er1 >conftest.err
 12627   rm -f conftest.er1
 12628   cat conftest.err >&5
 12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12630   (exit $ac_status); } && {
 12631 	 test -z "$ac_c_werror_flag" ||
 12632 	 test ! -s conftest.err
 12633        } && test -s conftest$ac_exeext &&
 12634        $as_test_x conftest$ac_exeext; then
 12635   ac_cv_func_glClearDepthf=yes
 12636 else
 12637   echo "$as_me: failed program was:" >&5
 12638 sed 's/^/| /' conftest.$ac_ext >&5
 12640 	ac_cv_func_glClearDepthf=no
 12641 fi
 12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12644       conftest$ac_exeext conftest.$ac_ext
 12645 fi
 12646 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
 12647 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
 12648 if test $ac_cv_func_glClearDepthf = yes; then
 12650 cat >>confdefs.h <<\_ACEOF
 12651 #define HAVE_OPENGL_CLEAR_DEPTHF 1
 12652 _ACEOF
 12654 fi
 12656 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
 12657 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
 12658 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
 12659   echo $ECHO_N "(cached) $ECHO_C" >&6
 12660 else
 12661   cat >conftest.$ac_ext <<_ACEOF
 12662 /* confdefs.h.  */
 12663 _ACEOF
 12664 cat confdefs.h >>conftest.$ac_ext
 12665 cat >>conftest.$ac_ext <<_ACEOF
 12666 /* end confdefs.h.  */
 12667 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
 12668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12669 #define glAreTexturesResident innocuous_glAreTexturesResident
 12671 /* System header to define __stub macros and hopefully few prototypes,
 12672     which can conflict with char glAreTexturesResident (); below.
 12673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12674     <limits.h> exists even on freestanding compilers.  */
 12676 #ifdef __STDC__
 12677 # include <limits.h>
 12678 #else
 12679 # include <assert.h>
 12680 #endif
 12682 #undef glAreTexturesResident
 12684 /* Override any GCC internal prototype to avoid an error.
 12685    Use char because int might match the return type of a GCC
 12686    builtin and then its argument prototype would still apply.  */
 12687 #ifdef __cplusplus
 12688 extern "C"
 12689 #endif
 12690 char glAreTexturesResident ();
 12691 /* The GNU C library defines this for functions which it implements
 12692     to always fail with ENOSYS.  Some functions are actually named
 12693     something starting with __ and the normal name is an alias.  */
 12694 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
 12695 choke me
 12696 #endif
 12698 int
 12699 main ()
 12701 return glAreTexturesResident ();
 12703   return 0;
 12705 _ACEOF
 12706 rm -f conftest.$ac_objext conftest$ac_exeext
 12707 if { (ac_try="$ac_link"
 12708 case "(($ac_try" in
 12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12710   *) ac_try_echo=$ac_try;;
 12711 esac
 12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12713   (eval "$ac_link") 2>conftest.er1
 12714   ac_status=$?
 12715   grep -v '^ *+' conftest.er1 >conftest.err
 12716   rm -f conftest.er1
 12717   cat conftest.err >&5
 12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12719   (exit $ac_status); } && {
 12720 	 test -z "$ac_c_werror_flag" ||
 12721 	 test ! -s conftest.err
 12722        } && test -s conftest$ac_exeext &&
 12723        $as_test_x conftest$ac_exeext; then
 12724   ac_cv_func_glAreTexturesResident=yes
 12725 else
 12726   echo "$as_me: failed program was:" >&5
 12727 sed 's/^/| /' conftest.$ac_ext >&5
 12729 	ac_cv_func_glAreTexturesResident=no
 12730 fi
 12732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12733       conftest$ac_exeext conftest.$ac_ext
 12734 fi
 12735 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
 12736 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
 12737 if test $ac_cv_func_glAreTexturesResident = yes; then
 12739 cat >>confdefs.h <<\_ACEOF
 12740 #define HAVE_OPENGL_TEX_RESIDENT 1
 12741 _ACEOF
 12743 fi
 12745 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
 12746 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
 12747 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
 12748   echo $ECHO_N "(cached) $ECHO_C" >&6
 12749 else
 12750   cat >conftest.$ac_ext <<_ACEOF
 12751 /* confdefs.h.  */
 12752 _ACEOF
 12753 cat confdefs.h >>conftest.$ac_ext
 12754 cat >>conftest.$ac_ext <<_ACEOF
 12755 /* end confdefs.h.  */
 12756 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
 12757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12758 #define glDrawBuffer innocuous_glDrawBuffer
 12760 /* System header to define __stub macros and hopefully few prototypes,
 12761     which can conflict with char glDrawBuffer (); below.
 12762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12763     <limits.h> exists even on freestanding compilers.  */
 12765 #ifdef __STDC__
 12766 # include <limits.h>
 12767 #else
 12768 # include <assert.h>
 12769 #endif
 12771 #undef glDrawBuffer
 12773 /* Override any GCC internal prototype to avoid an error.
 12774    Use char because int might match the return type of a GCC
 12775    builtin and then its argument prototype would still apply.  */
 12776 #ifdef __cplusplus
 12777 extern "C"
 12778 #endif
 12779 char glDrawBuffer ();
 12780 /* The GNU C library defines this for functions which it implements
 12781     to always fail with ENOSYS.  Some functions are actually named
 12782     something starting with __ and the normal name is an alias.  */
 12783 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
 12784 choke me
 12785 #endif
 12787 int
 12788 main ()
 12790 return glDrawBuffer ();
 12792   return 0;
 12794 _ACEOF
 12795 rm -f conftest.$ac_objext conftest$ac_exeext
 12796 if { (ac_try="$ac_link"
 12797 case "(($ac_try" in
 12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12799   *) ac_try_echo=$ac_try;;
 12800 esac
 12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12802   (eval "$ac_link") 2>conftest.er1
 12803   ac_status=$?
 12804   grep -v '^ *+' conftest.er1 >conftest.err
 12805   rm -f conftest.er1
 12806   cat conftest.err >&5
 12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12808   (exit $ac_status); } && {
 12809 	 test -z "$ac_c_werror_flag" ||
 12810 	 test ! -s conftest.err
 12811        } && test -s conftest$ac_exeext &&
 12812        $as_test_x conftest$ac_exeext; then
 12813   ac_cv_func_glDrawBuffer=yes
 12814 else
 12815   echo "$as_me: failed program was:" >&5
 12816 sed 's/^/| /' conftest.$ac_ext >&5
 12818 	ac_cv_func_glDrawBuffer=no
 12819 fi
 12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12822       conftest$ac_exeext conftest.$ac_ext
 12823 fi
 12824 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
 12825 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
 12826 if test $ac_cv_func_glDrawBuffer = yes; then
 12828 cat >>confdefs.h <<\_ACEOF
 12829 #define HAVE_OPENGL_DRAW_BUFFER 1
 12830 _ACEOF
 12832 fi
 12834 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
 12835 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
 12836 if test "${ac_cv_func_glTexEnvi+set}" = set; then
 12837   echo $ECHO_N "(cached) $ECHO_C" >&6
 12838 else
 12839   cat >conftest.$ac_ext <<_ACEOF
 12840 /* confdefs.h.  */
 12841 _ACEOF
 12842 cat confdefs.h >>conftest.$ac_ext
 12843 cat >>conftest.$ac_ext <<_ACEOF
 12844 /* end confdefs.h.  */
 12845 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
 12846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12847 #define glTexEnvi innocuous_glTexEnvi
 12849 /* System header to define __stub macros and hopefully few prototypes,
 12850     which can conflict with char glTexEnvi (); below.
 12851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12852     <limits.h> exists even on freestanding compilers.  */
 12854 #ifdef __STDC__
 12855 # include <limits.h>
 12856 #else
 12857 # include <assert.h>
 12858 #endif
 12860 #undef glTexEnvi
 12862 /* Override any GCC internal prototype to avoid an error.
 12863    Use char because int might match the return type of a GCC
 12864    builtin and then its argument prototype would still apply.  */
 12865 #ifdef __cplusplus
 12866 extern "C"
 12867 #endif
 12868 char glTexEnvi ();
 12869 /* The GNU C library defines this for functions which it implements
 12870     to always fail with ENOSYS.  Some functions are actually named
 12871     something starting with __ and the normal name is an alias.  */
 12872 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
 12873 choke me
 12874 #endif
 12876 int
 12877 main ()
 12879 return glTexEnvi ();
 12881   return 0;
 12883 _ACEOF
 12884 rm -f conftest.$ac_objext conftest$ac_exeext
 12885 if { (ac_try="$ac_link"
 12886 case "(($ac_try" in
 12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12888   *) ac_try_echo=$ac_try;;
 12889 esac
 12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12891   (eval "$ac_link") 2>conftest.er1
 12892   ac_status=$?
 12893   grep -v '^ *+' conftest.er1 >conftest.err
 12894   rm -f conftest.er1
 12895   cat conftest.err >&5
 12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12897   (exit $ac_status); } && {
 12898 	 test -z "$ac_c_werror_flag" ||
 12899 	 test ! -s conftest.err
 12900        } && test -s conftest$ac_exeext &&
 12901        $as_test_x conftest$ac_exeext; then
 12902   ac_cv_func_glTexEnvi=yes
 12903 else
 12904   echo "$as_me: failed program was:" >&5
 12905 sed 's/^/| /' conftest.$ac_ext >&5
 12907 	ac_cv_func_glTexEnvi=no
 12908 fi
 12910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12911       conftest$ac_exeext conftest.$ac_ext
 12912 fi
 12913 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
 12914 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
 12915 if test $ac_cv_func_glTexEnvi = yes; then
 12917 cat >>confdefs.h <<\_ACEOF
 12918 #define HAVE_OPENGL_FIXEDFUNC 1
 12919 _ACEOF
 12921 fi
 12924 if test "x$enable_translator" != "xno"; then
 12925     case $host_cpu in
 12926         i386|i486|i586|i686|x86_64)
 12927 	    SH4_TRANSLATOR="x86"
 12929 cat >>confdefs.h <<_ACEOF
 12930 #define SH4_TRANSLATOR TARGET_X86
 12931 _ACEOF
 12932 ;;
 12933     esac
 12934 fi
 12937 if test "$SH4_TRANSLATOR" = "x86"; then
 12938   BUILD_SH4X86_TRUE=
 12939   BUILD_SH4X86_FALSE='#'
 12940 else
 12941   BUILD_SH4X86_TRUE='#'
 12942   BUILD_SH4X86_FALSE=
 12943 fi
 12946 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12947   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 12948 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 12949 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 12950   echo $ECHO_N "(cached) $ECHO_C" >&6
 12951 fi
 12952 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 12953 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 12954 else
 12955   # Is the header compilable?
 12956 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
 12957 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
 12958 cat >conftest.$ac_ext <<_ACEOF
 12959 /* confdefs.h.  */
 12960 _ACEOF
 12961 cat confdefs.h >>conftest.$ac_ext
 12962 cat >>conftest.$ac_ext <<_ACEOF
 12963 /* end confdefs.h.  */
 12964 $ac_includes_default
 12965 #include <CoreAudio/CoreAudio.h>
 12966 _ACEOF
 12967 rm -f conftest.$ac_objext
 12968 if { (ac_try="$ac_compile"
 12969 case "(($ac_try" in
 12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12971   *) ac_try_echo=$ac_try;;
 12972 esac
 12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 12974   (eval "$ac_compile") 2>conftest.er1
 12975   ac_status=$?
 12976   grep -v '^ *+' conftest.er1 >conftest.err
 12977   rm -f conftest.er1
 12978   cat conftest.err >&5
 12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12980   (exit $ac_status); } && {
 12981 	 test -z "$ac_c_werror_flag" ||
 12982 	 test ! -s conftest.err
 12983        } && test -s conftest.$ac_objext; then
 12984   ac_header_compiler=yes
 12985 else
 12986   echo "$as_me: failed program was:" >&5
 12987 sed 's/^/| /' conftest.$ac_ext >&5
 12989 	ac_header_compiler=no
 12990 fi
 12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 12994 echo "${ECHO_T}$ac_header_compiler" >&6; }
 12996 # Is the header present?
 12997 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
 12998 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
 12999 cat >conftest.$ac_ext <<_ACEOF
 13000 /* confdefs.h.  */
 13001 _ACEOF
 13002 cat confdefs.h >>conftest.$ac_ext
 13003 cat >>conftest.$ac_ext <<_ACEOF
 13004 /* end confdefs.h.  */
 13005 #include <CoreAudio/CoreAudio.h>
 13006 _ACEOF
 13007 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13008 case "(($ac_try" in
 13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13010   *) ac_try_echo=$ac_try;;
 13011 esac
 13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13014   ac_status=$?
 13015   grep -v '^ *+' conftest.er1 >conftest.err
 13016   rm -f conftest.er1
 13017   cat conftest.err >&5
 13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13019   (exit $ac_status); } >/dev/null && {
 13020 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13021 	 test ! -s conftest.err
 13022        }; then
 13023   ac_header_preproc=yes
 13024 else
 13025   echo "$as_me: failed program was:" >&5
 13026 sed 's/^/| /' conftest.$ac_ext >&5
 13028   ac_header_preproc=no
 13029 fi
 13031 rm -f conftest.err conftest.$ac_ext
 13032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13033 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13035 # So?  What about this header?
 13036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13037   yes:no: )
 13038     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13039 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13040     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
 13041 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
 13042     ac_header_preproc=yes
 13043     ;;
 13044   no:yes:* )
 13045     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
 13046 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
 13047     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
 13048 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
 13049     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
 13050 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
 13051     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 13052 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13053     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
 13054 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
 13055     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
 13056 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
 13058     ;;
 13059 esac
 13060 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
 13061 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
 13062 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
 13063   echo $ECHO_N "(cached) $ECHO_C" >&6
 13064 else
 13065   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
 13066 fi
 13067 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
 13068 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
 13070 fi
 13071 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
 13073      HAVE_CORE_AUDIO=yes
 13074      LIBS="$LIBS -framework CoreAudio"
 13075      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
 13077 cat >>confdefs.h <<\_ACEOF
 13078 #define HAVE_CORE_AUDIO 1
 13079 _ACEOF
 13081 else
 13082   true
 13083 fi
 13088 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
 13089   AUDIO_OSX_TRUE=
 13090   AUDIO_OSX_FALSE='#'
 13091 else
 13092   AUDIO_OSX_TRUE='#'
 13093   AUDIO_OSX_FALSE=
 13094 fi
 13097 if test "x$with_sdl" != "xno"; then
 13099 pkg_failed=no
 13100 { echo "$as_me:$LINENO: checking for SDL" >&5
 13101 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
 13103 if test -n "$SDL_CFLAGS"; then
 13104     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
 13105  elif test -n "$PKG_CONFIG"; then
 13106     if test -n "$PKG_CONFIG" && \
 13107     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13108   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13109   ac_status=$?
 13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13111   (exit $ac_status); }; then
 13112   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
 13113 else
 13114   pkg_failed=yes
 13115 fi
 13116  else
 13117     pkg_failed=untried
 13118 fi
 13119 if test -n "$SDL_LIBS"; then
 13120     pkg_cv_SDL_LIBS="$SDL_LIBS"
 13121  elif test -n "$PKG_CONFIG"; then
 13122     if test -n "$PKG_CONFIG" && \
 13123     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
 13124   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
 13125   ac_status=$?
 13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13127   (exit $ac_status); }; then
 13128   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
 13129 else
 13130   pkg_failed=yes
 13131 fi
 13132  else
 13133     pkg_failed=untried
 13134 fi
 13138 if test $pkg_failed = yes; then
 13140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13141         _pkg_short_errors_supported=yes
 13142 else
 13143         _pkg_short_errors_supported=no
 13144 fi
 13145         if test $_pkg_short_errors_supported = yes; then
 13146 	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
 13147         else
 13148 	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
 13149         fi
 13150 	# Put the nasty error message in config.log where it belongs
 13151 	echo "$SDL_PKG_ERRORS" >&5
 13153 	{ echo "$as_me:$LINENO: result: no" >&5
 13154 echo "${ECHO_T}no" >&6; }
 13156       if test "x$with_sdl" = "xyes"; then
 13157          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13158 See \`config.log' for more details." >&5
 13159 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13160 See \`config.log' for more details." >&2;}
 13161    { (exit 1); exit 1; }; }
 13162       fi
 13164 elif test $pkg_failed = untried; then
 13166       if test "x$with_sdl" = "xyes"; then
 13167          { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
 13168 See \`config.log' for more details." >&5
 13169 echo "$as_me: error: \"SDL libraries could not be found (but were required)
 13170 See \`config.log' for more details." >&2;}
 13171    { (exit 1); exit 1; }; }
 13172       fi
 13174 else
 13175 	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
 13176 	SDL_LIBS=$pkg_cv_SDL_LIBS
 13177         { echo "$as_me:$LINENO: result: yes" >&5
 13178 echo "${ECHO_T}yes" >&6; }
 13180        HAVE_SDL='yes'
 13181        AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
 13183 cat >>confdefs.h <<\_ACEOF
 13184 #define HAVE_SDL 1
 13185 _ACEOF
 13188 fi
 13189 fi
 13192 if test "$HAVE_SDL" = 'yes' ; then
 13193   AUDIO_SDL_TRUE=
 13194   AUDIO_SDL_FALSE='#'
 13195 else
 13196   AUDIO_SDL_TRUE='#'
 13197   AUDIO_SDL_FALSE=
 13198 fi
 13201 if test "x$with_pulse" != "xno"; then
 13203 pkg_failed=no
 13204 { echo "$as_me:$LINENO: checking for PULSE" >&5
 13205 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
 13207 if test -n "$PULSE_CFLAGS"; then
 13208     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
 13209  elif test -n "$PKG_CONFIG"; then
 13210     if test -n "$PKG_CONFIG" && \
 13211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13212   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13213   ac_status=$?
 13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13215   (exit $ac_status); }; then
 13216   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
 13217 else
 13218   pkg_failed=yes
 13219 fi
 13220  else
 13221     pkg_failed=untried
 13222 fi
 13223 if test -n "$PULSE_LIBS"; then
 13224     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
 13225  elif test -n "$PKG_CONFIG"; then
 13226     if test -n "$PKG_CONFIG" && \
 13227     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
 13228   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
 13229   ac_status=$?
 13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13231   (exit $ac_status); }; then
 13232   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
 13233 else
 13234   pkg_failed=yes
 13235 fi
 13236  else
 13237     pkg_failed=untried
 13238 fi
 13242 if test $pkg_failed = yes; then
 13244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13245         _pkg_short_errors_supported=yes
 13246 else
 13247         _pkg_short_errors_supported=no
 13248 fi
 13249         if test $_pkg_short_errors_supported = yes; then
 13250 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 13251         else
 13252 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 13253         fi
 13254 	# Put the nasty error message in config.log where it belongs
 13255 	echo "$PULSE_PKG_ERRORS" >&5
 13257 	{ echo "$as_me:$LINENO: result: no" >&5
 13258 echo "${ECHO_T}no" >&6; }
 13260        if test "x$with_pulse" = "xyes"; then
 13261           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13262 See \`config.log' for more details." >&5
 13263 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13264 See \`config.log' for more details." >&2;}
 13265    { (exit 1); exit 1; }; }
 13266        fi
 13268 elif test $pkg_failed = untried; then
 13270        if test "x$with_pulse" = "xyes"; then
 13271           { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 13272 See \`config.log' for more details." >&5
 13273 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 13274 See \`config.log' for more details." >&2;}
 13275    { (exit 1); exit 1; }; }
 13276        fi
 13278 else
 13279 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 13280 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 13281         { echo "$as_me:$LINENO: result: yes" >&5
 13282 echo "${ECHO_T}yes" >&6; }
 13284        HAVE_PULSE='yes'
 13285        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 13287 cat >>confdefs.h <<\_ACEOF
 13288 #define HAVE_PULSE 1
 13289 _ACEOF
 13292 fi
 13293 fi
 13296 if test "$HAVE_PULSE" = 'yes' ; then
 13297   AUDIO_PULSE_TRUE=
 13298   AUDIO_PULSE_FALSE='#'
 13299 else
 13300   AUDIO_PULSE_TRUE='#'
 13301   AUDIO_PULSE_FALSE=
 13302 fi
 13305 if test "x$with_esd" != "xno"; then
 13307 pkg_failed=no
 13308 { echo "$as_me:$LINENO: checking for ESOUND" >&5
 13309 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
 13311 if test -n "$ESOUND_CFLAGS"; then
 13312     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 13313  elif test -n "$PKG_CONFIG"; then
 13314     if test -n "$PKG_CONFIG" && \
 13315     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13316   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13317   ac_status=$?
 13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13319   (exit $ac_status); }; then
 13320   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 13321 else
 13322   pkg_failed=yes
 13323 fi
 13324  else
 13325     pkg_failed=untried
 13326 fi
 13327 if test -n "$ESOUND_LIBS"; then
 13328     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 13329  elif test -n "$PKG_CONFIG"; then
 13330     if test -n "$PKG_CONFIG" && \
 13331     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 13332   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 13333   ac_status=$?
 13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13335   (exit $ac_status); }; then
 13336   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 13337 else
 13338   pkg_failed=yes
 13339 fi
 13340  else
 13341     pkg_failed=untried
 13342 fi
 13346 if test $pkg_failed = yes; then
 13348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13349         _pkg_short_errors_supported=yes
 13350 else
 13351         _pkg_short_errors_supported=no
 13352 fi
 13353         if test $_pkg_short_errors_supported = yes; then
 13354 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 13355         else
 13356 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 13357         fi
 13358 	# Put the nasty error message in config.log where it belongs
 13359 	echo "$ESOUND_PKG_ERRORS" >&5
 13361 	{ echo "$as_me:$LINENO: result: no" >&5
 13362 echo "${ECHO_T}no" >&6; }
 13364        if test "x$with_esd" = "xyes"; then
 13365           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13366 See \`config.log' for more details." >&5
 13367 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13368 See \`config.log' for more details." >&2;}
 13369    { (exit 1); exit 1; }; }
 13370        fi
 13372 elif test $pkg_failed = untried; then
 13374        if test "x$with_esd" = "xyes"; then
 13375           { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 13376 See \`config.log' for more details." >&5
 13377 echo "$as_me: error: ESounD audio package could not be found (but was required)
 13378 See \`config.log' for more details." >&2;}
 13379    { (exit 1); exit 1; }; }
 13380        fi
 13382 else
 13383 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 13384 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 13385         { echo "$as_me:$LINENO: result: yes" >&5
 13386 echo "${ECHO_T}yes" >&6; }
 13388        HAVE_ESOUND='yes'
 13389        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 13391 cat >>confdefs.h <<\_ACEOF
 13392 #define HAVE_ESOUND 1
 13393 _ACEOF
 13396 fi
 13397 fi
 13400 if test "$HAVE_ESOUND" = 'yes' ; then
 13401   AUDIO_ESOUND_TRUE=
 13402   AUDIO_ESOUND_FALSE='#'
 13403 else
 13404   AUDIO_ESOUND_TRUE='#'
 13405   AUDIO_ESOUND_FALSE=
 13406 fi
 13410 pkg_failed=no
 13411 { echo "$as_me:$LINENO: checking for ALSA" >&5
 13412 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
 13414 if test -n "$ALSA_CFLAGS"; then
 13415     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 13416  elif test -n "$PKG_CONFIG"; then
 13417     if test -n "$PKG_CONFIG" && \
 13418     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13419   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13420   ac_status=$?
 13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13422   (exit $ac_status); }; then
 13423   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 13424 else
 13425   pkg_failed=yes
 13426 fi
 13427  else
 13428     pkg_failed=untried
 13429 fi
 13430 if test -n "$ALSA_LIBS"; then
 13431     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 13432  elif test -n "$PKG_CONFIG"; then
 13433     if test -n "$PKG_CONFIG" && \
 13434     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 13435   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 13436   ac_status=$?
 13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13438   (exit $ac_status); }; then
 13439   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 13440 else
 13441   pkg_failed=yes
 13442 fi
 13443  else
 13444     pkg_failed=untried
 13445 fi
 13449 if test $pkg_failed = yes; then
 13451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 13452         _pkg_short_errors_supported=yes
 13453 else
 13454         _pkg_short_errors_supported=no
 13455 fi
 13456         if test $_pkg_short_errors_supported = yes; then
 13457 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 13458         else
 13459 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 13460         fi
 13461 	# Put the nasty error message in config.log where it belongs
 13462 	echo "$ALSA_PKG_ERRORS" >&5
 13464 	{ echo "$as_me:$LINENO: result: no" >&5
 13465 echo "${ECHO_T}no" >&6; }
 13466                 true
 13467 elif test $pkg_failed = untried; then
 13468 	true
 13469 else
 13470 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 13471 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 13472         { echo "$as_me:$LINENO: result: yes" >&5
 13473 echo "${ECHO_T}yes" >&6; }
 13475      HAVE_ALSA='yes'
 13476      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 13478 cat >>confdefs.h <<\_ACEOF
 13479 #define HAVE_ALSA 1
 13480 _ACEOF
 13482 fi
 13485 if test "$HAVE_ALSA" = 'yes' ; then
 13486   AUDIO_ALSA_TRUE=
 13487   AUDIO_ALSA_FALSE='#'
 13488 else
 13489   AUDIO_ALSA_TRUE='#'
 13490   AUDIO_ALSA_FALSE=
 13491 fi
 13495 if test "$ANDROID_BUILD" != "yes"; then
 13496   if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13497   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13498 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13499 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13500   echo $ECHO_N "(cached) $ECHO_C" >&6
 13501 fi
 13502 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13503 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13504 else
 13505   # Is the header compilable?
 13506 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 13507 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
 13508 cat >conftest.$ac_ext <<_ACEOF
 13509 /* confdefs.h.  */
 13510 _ACEOF
 13511 cat confdefs.h >>conftest.$ac_ext
 13512 cat >>conftest.$ac_ext <<_ACEOF
 13513 /* end confdefs.h.  */
 13514 $ac_includes_default
 13515 #include <linux/cdrom.h>
 13516 _ACEOF
 13517 rm -f conftest.$ac_objext
 13518 if { (ac_try="$ac_compile"
 13519 case "(($ac_try" in
 13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13521   *) ac_try_echo=$ac_try;;
 13522 esac
 13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13524   (eval "$ac_compile") 2>conftest.er1
 13525   ac_status=$?
 13526   grep -v '^ *+' conftest.er1 >conftest.err
 13527   rm -f conftest.er1
 13528   cat conftest.err >&5
 13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13530   (exit $ac_status); } && {
 13531 	 test -z "$ac_c_werror_flag" ||
 13532 	 test ! -s conftest.err
 13533        } && test -s conftest.$ac_objext; then
 13534   ac_header_compiler=yes
 13535 else
 13536   echo "$as_me: failed program was:" >&5
 13537 sed 's/^/| /' conftest.$ac_ext >&5
 13539 	ac_header_compiler=no
 13540 fi
 13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13544 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13546 # Is the header present?
 13547 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 13548 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
 13549 cat >conftest.$ac_ext <<_ACEOF
 13550 /* confdefs.h.  */
 13551 _ACEOF
 13552 cat confdefs.h >>conftest.$ac_ext
 13553 cat >>conftest.$ac_ext <<_ACEOF
 13554 /* end confdefs.h.  */
 13555 #include <linux/cdrom.h>
 13556 _ACEOF
 13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13558 case "(($ac_try" in
 13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13560   *) ac_try_echo=$ac_try;;
 13561 esac
 13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13564   ac_status=$?
 13565   grep -v '^ *+' conftest.er1 >conftest.err
 13566   rm -f conftest.er1
 13567   cat conftest.err >&5
 13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13569   (exit $ac_status); } >/dev/null && {
 13570 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13571 	 test ! -s conftest.err
 13572        }; then
 13573   ac_header_preproc=yes
 13574 else
 13575   echo "$as_me: failed program was:" >&5
 13576 sed 's/^/| /' conftest.$ac_ext >&5
 13578   ac_header_preproc=no
 13579 fi
 13581 rm -f conftest.err conftest.$ac_ext
 13582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13583 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13585 # So?  What about this header?
 13586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13587   yes:no: )
 13588     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13589 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13590     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 13591 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 13592     ac_header_preproc=yes
 13593     ;;
 13594   no:yes:* )
 13595     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 13596 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 13597     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 13598 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 13599     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 13600 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 13601     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 13602 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13603     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 13604 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 13605     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 13606 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 13608     ;;
 13609 esac
 13610 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 13611 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
 13612 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 13613   echo $ECHO_N "(cached) $ECHO_C" >&6
 13614 else
 13615   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 13616 fi
 13617 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 13618 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
 13620 fi
 13621 if test $ac_cv_header_linux_cdrom_h = yes; then
 13623      CDROM_DRIVER=linux
 13624           { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
 13625 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
 13626      old_CFLAGS="$CFLAGS"
 13627      CFLAGS="$CFLAGS $STDCFLAG"
 13628      cat >conftest.$ac_ext <<_ACEOF
 13629 /* confdefs.h.  */
 13630 _ACEOF
 13631 cat confdefs.h >>conftest.$ac_ext
 13632 cat >>conftest.$ac_ext <<_ACEOF
 13633 /* end confdefs.h.  */
 13634 #include <linux/cdrom.h>
 13635 int
 13636 main ()
 13640   return 0;
 13642 _ACEOF
 13643 rm -f conftest.$ac_objext
 13644 if { (ac_try="$ac_compile"
 13645 case "(($ac_try" in
 13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13647   *) ac_try_echo=$ac_try;;
 13648 esac
 13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13650   (eval "$ac_compile") 2>conftest.er1
 13651   ac_status=$?
 13652   grep -v '^ *+' conftest.er1 >conftest.err
 13653   rm -f conftest.er1
 13654   cat conftest.err >&5
 13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13656   (exit $ac_status); } && {
 13657 	 test -z "$ac_c_werror_flag" ||
 13658 	 test ! -s conftest.err
 13659        } && test -s conftest.$ac_objext; then
 13660   { echo "$as_me:$LINENO: result: Yes" >&5
 13661 echo "${ECHO_T}Yes" >&6; }
 13662 else
 13663   echo "$as_me: failed program was:" >&5
 13664 sed 's/^/| /' conftest.$ac_ext >&5
 13667         { echo "$as_me:$LINENO: result: No" >&5
 13668 echo "${ECHO_T}No" >&6; }
 13669         STDCFLAG="-std=gnu99"
 13670 fi
 13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13673      CFLAGS="$old_CFLAGS"
 13675 else
 13676   true
 13677 fi
 13680   if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13681   { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13682 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13683 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13684   echo $ECHO_N "(cached) $ECHO_C" >&6
 13685 fi
 13686 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13687 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13688 else
 13689   # Is the header compilable?
 13690 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 13691 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
 13692 cat >conftest.$ac_ext <<_ACEOF
 13693 /* confdefs.h.  */
 13694 _ACEOF
 13695 cat confdefs.h >>conftest.$ac_ext
 13696 cat >>conftest.$ac_ext <<_ACEOF
 13697 /* end confdefs.h.  */
 13698 $ac_includes_default
 13699 #include <IOKit/IOKitLib.h>
 13700 _ACEOF
 13701 rm -f conftest.$ac_objext
 13702 if { (ac_try="$ac_compile"
 13703 case "(($ac_try" in
 13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13705   *) ac_try_echo=$ac_try;;
 13706 esac
 13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13708   (eval "$ac_compile") 2>conftest.er1
 13709   ac_status=$?
 13710   grep -v '^ *+' conftest.er1 >conftest.err
 13711   rm -f conftest.er1
 13712   cat conftest.err >&5
 13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13714   (exit $ac_status); } && {
 13715 	 test -z "$ac_c_werror_flag" ||
 13716 	 test ! -s conftest.err
 13717        } && test -s conftest.$ac_objext; then
 13718   ac_header_compiler=yes
 13719 else
 13720   echo "$as_me: failed program was:" >&5
 13721 sed 's/^/| /' conftest.$ac_ext >&5
 13723 	ac_header_compiler=no
 13724 fi
 13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13728 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13730 # Is the header present?
 13731 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 13732 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
 13733 cat >conftest.$ac_ext <<_ACEOF
 13734 /* confdefs.h.  */
 13735 _ACEOF
 13736 cat confdefs.h >>conftest.$ac_ext
 13737 cat >>conftest.$ac_ext <<_ACEOF
 13738 /* end confdefs.h.  */
 13739 #include <IOKit/IOKitLib.h>
 13740 _ACEOF
 13741 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13742 case "(($ac_try" in
 13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13744   *) ac_try_echo=$ac_try;;
 13745 esac
 13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13748   ac_status=$?
 13749   grep -v '^ *+' conftest.er1 >conftest.err
 13750   rm -f conftest.er1
 13751   cat conftest.err >&5
 13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13753   (exit $ac_status); } >/dev/null && {
 13754 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13755 	 test ! -s conftest.err
 13756        }; then
 13757   ac_header_preproc=yes
 13758 else
 13759   echo "$as_me: failed program was:" >&5
 13760 sed 's/^/| /' conftest.$ac_ext >&5
 13762   ac_header_preproc=no
 13763 fi
 13765 rm -f conftest.err conftest.$ac_ext
 13766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13767 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13769 # So?  What about this header?
 13770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13771   yes:no: )
 13772     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13773 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13774     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 13775 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 13776     ac_header_preproc=yes
 13777     ;;
 13778   no:yes:* )
 13779     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 13780 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 13781     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 13782 echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 13783     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 13784 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 13785     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 13786 echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13787     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 13788 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 13789     { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 13790 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 13792     ;;
 13793 esac
 13794 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 13795 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
 13796 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 13797   echo $ECHO_N "(cached) $ECHO_C" >&6
 13798 else
 13799   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 13800 fi
 13801 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 13802 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 13804 fi
 13805 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 13807        CDROM_DRIVER=osx
 13808        LIBS="$LIBS -framework IOKit"
 13809 else
 13810   true
 13811 fi
 13814 fi
 13817 if test "x$CDROM_DRIVER" = "xlinux"; then
 13818   CDROM_LINUX_TRUE=
 13819   CDROM_LINUX_FALSE='#'
 13820 else
 13821   CDROM_LINUX_TRUE='#'
 13822   CDROM_LINUX_FALSE=
 13823 fi
 13827 if test "x$CDROM_DRIVER" = "xosx"; then
 13828   CDROM_OSX_TRUE=
 13829   CDROM_OSX_FALSE='#'
 13830 else
 13831   CDROM_OSX_TRUE='#'
 13832   CDROM_OSX_FALSE=
 13833 fi
 13837 if test "x$CDROM_DRIVER" = "x"; then
 13838   CDROM_NONE_TRUE=
 13839   CDROM_NONE_FALSE='#'
 13840 else
 13841   CDROM_NONE_TRUE='#'
 13842   CDROM_NONE_FALSE=
 13843 fi
 13845 if test "x$CDROM_DRIVER" = "xlinux"; then
 13847 cat >>confdefs.h <<\_ACEOF
 13848 #define HAVE_LINUX_CDROM 1
 13849 _ACEOF
 13851 fi
 13853 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13854   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13855 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13856 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13857   echo $ECHO_N "(cached) $ECHO_C" >&6
 13858 fi
 13859 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13860 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13861 else
 13862   # Is the header compilable?
 13863 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 13864 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
 13865 cat >conftest.$ac_ext <<_ACEOF
 13866 /* confdefs.h.  */
 13867 _ACEOF
 13868 cat confdefs.h >>conftest.$ac_ext
 13869 cat >>conftest.$ac_ext <<_ACEOF
 13870 /* end confdefs.h.  */
 13871 $ac_includes_default
 13872 #include <linux/joystick.h>
 13873 _ACEOF
 13874 rm -f conftest.$ac_objext
 13875 if { (ac_try="$ac_compile"
 13876 case "(($ac_try" in
 13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13878   *) ac_try_echo=$ac_try;;
 13879 esac
 13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13881   (eval "$ac_compile") 2>conftest.er1
 13882   ac_status=$?
 13883   grep -v '^ *+' conftest.er1 >conftest.err
 13884   rm -f conftest.er1
 13885   cat conftest.err >&5
 13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13887   (exit $ac_status); } && {
 13888 	 test -z "$ac_c_werror_flag" ||
 13889 	 test ! -s conftest.err
 13890        } && test -s conftest.$ac_objext; then
 13891   ac_header_compiler=yes
 13892 else
 13893   echo "$as_me: failed program was:" >&5
 13894 sed 's/^/| /' conftest.$ac_ext >&5
 13896 	ac_header_compiler=no
 13897 fi
 13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 13901 echo "${ECHO_T}$ac_header_compiler" >&6; }
 13903 # Is the header present?
 13904 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 13905 echo $ECHO_N "checking linux/joystick.h presence... $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 #include <linux/joystick.h>
 13913 _ACEOF
 13914 if { (ac_try="$ac_cpp conftest.$ac_ext"
 13915 case "(($ac_try" in
 13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 13917   *) ac_try_echo=$ac_try;;
 13918 esac
 13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 13920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 13921   ac_status=$?
 13922   grep -v '^ *+' conftest.er1 >conftest.err
 13923   rm -f conftest.er1
 13924   cat conftest.err >&5
 13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 13926   (exit $ac_status); } >/dev/null && {
 13927 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 13928 	 test ! -s conftest.err
 13929        }; then
 13930   ac_header_preproc=yes
 13931 else
 13932   echo "$as_me: failed program was:" >&5
 13933 sed 's/^/| /' conftest.$ac_ext >&5
 13935   ac_header_preproc=no
 13936 fi
 13938 rm -f conftest.err conftest.$ac_ext
 13939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 13940 echo "${ECHO_T}$ac_header_preproc" >&6; }
 13942 # So?  What about this header?
 13943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 13944   yes:no: )
 13945     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 13946 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 13947     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 13948 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 13949     ac_header_preproc=yes
 13950     ;;
 13951   no:yes:* )
 13952     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 13953 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 13954     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 13955 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 13956     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 13957 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 13958     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 13959 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 13960     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 13961 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 13962     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 13963 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 13965     ;;
 13966 esac
 13967 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 13968 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
 13969 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 13970   echo $ECHO_N "(cached) $ECHO_C" >&6
 13971 else
 13972   ac_cv_header_linux_joystick_h=$ac_header_preproc
 13973 fi
 13974 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 13975 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
 13977 fi
 13978 if test $ac_cv_header_linux_joystick_h = yes; then
 13980     HAVE_LINUX_JOYSTICK_H=yes
 13982 cat >>confdefs.h <<\_ACEOF
 13983 #define HAVE_LINUX_JOYSTICK 1
 13984 _ACEOF
 13986     INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
 13987 else
 13988    echo "Linux Joystick support not found, building without it."
 13989 fi
 13994 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 13995   JOY_LINUX_TRUE=
 13996   JOY_LINUX_FALSE='#'
 13997 else
 13998   JOY_LINUX_TRUE='#'
 13999   JOY_LINUX_FALSE=
 14000 fi
 14003 if test "x$with_lirc" != "xno"; then
 14004     if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14005   { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14006 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14007 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14008   echo $ECHO_N "(cached) $ECHO_C" >&6
 14009 fi
 14010 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14011 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14012 else
 14013   # Is the header compilable?
 14014 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
 14015 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
 14016 cat >conftest.$ac_ext <<_ACEOF
 14017 /* confdefs.h.  */
 14018 _ACEOF
 14019 cat confdefs.h >>conftest.$ac_ext
 14020 cat >>conftest.$ac_ext <<_ACEOF
 14021 /* end confdefs.h.  */
 14022 $ac_includes_default
 14023 #include <lirc/lirc_client.h>
 14024 _ACEOF
 14025 rm -f conftest.$ac_objext
 14026 if { (ac_try="$ac_compile"
 14027 case "(($ac_try" in
 14028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14029   *) ac_try_echo=$ac_try;;
 14030 esac
 14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14032   (eval "$ac_compile") 2>conftest.er1
 14033   ac_status=$?
 14034   grep -v '^ *+' conftest.er1 >conftest.err
 14035   rm -f conftest.er1
 14036   cat conftest.err >&5
 14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14038   (exit $ac_status); } && {
 14039 	 test -z "$ac_c_werror_flag" ||
 14040 	 test ! -s conftest.err
 14041        } && test -s conftest.$ac_objext; then
 14042   ac_header_compiler=yes
 14043 else
 14044   echo "$as_me: failed program was:" >&5
 14045 sed 's/^/| /' conftest.$ac_ext >&5
 14047 	ac_header_compiler=no
 14048 fi
 14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14054 # Is the header present?
 14055 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
 14056 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
 14057 cat >conftest.$ac_ext <<_ACEOF
 14058 /* confdefs.h.  */
 14059 _ACEOF
 14060 cat confdefs.h >>conftest.$ac_ext
 14061 cat >>conftest.$ac_ext <<_ACEOF
 14062 /* end confdefs.h.  */
 14063 #include <lirc/lirc_client.h>
 14064 _ACEOF
 14065 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14066 case "(($ac_try" in
 14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14068   *) ac_try_echo=$ac_try;;
 14069 esac
 14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14072   ac_status=$?
 14073   grep -v '^ *+' conftest.er1 >conftest.err
 14074   rm -f conftest.er1
 14075   cat conftest.err >&5
 14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14077   (exit $ac_status); } >/dev/null && {
 14078 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14079 	 test ! -s conftest.err
 14080        }; then
 14081   ac_header_preproc=yes
 14082 else
 14083   echo "$as_me: failed program was:" >&5
 14084 sed 's/^/| /' conftest.$ac_ext >&5
 14086   ac_header_preproc=no
 14087 fi
 14089 rm -f conftest.err conftest.$ac_ext
 14090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14091 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14093 # So?  What about this header?
 14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14095   yes:no: )
 14096     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14097 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14098     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
 14099 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
 14100     ac_header_preproc=yes
 14101     ;;
 14102   no:yes:* )
 14103     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
 14104 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
 14105     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&5
 14106 echo "$as_me: WARNING: lirc/lirc_client.h:     check for missing prerequisite headers?" >&2;}
 14107     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
 14108 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
 14109     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 14110 echo "$as_me: WARNING: lirc/lirc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14111     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
 14112 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
 14113     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
 14114 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
 14116     ;;
 14117 esac
 14118 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
 14119 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
 14120 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
 14121   echo $ECHO_N "(cached) $ECHO_C" >&6
 14122 else
 14123   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
 14124 fi
 14125 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
 14126 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
 14128 fi
 14129 if test $ac_cv_header_lirc_lirc_client_h = yes; then
 14131         HAVE_LIRC_CLIENT_H=yes
 14133 cat >>confdefs.h <<\_ACEOF
 14134 #define HAVE_LIRC 1
 14135 _ACEOF
 14137         INPUT_DRIVERS="$INPUT_DRIVERS lirc"
 14139 else
 14140    echo "LIRC support not found, building without it."
 14141 fi
 14144 fi
 14147 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
 14148   INPUT_LIRC_TRUE=
 14149   INPUT_LIRC_FALSE='#'
 14150 else
 14151   INPUT_LIRC_TRUE='#'
 14152   INPUT_LIRC_FALSE=
 14153 fi
 14156 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 14157 set dummy sh-elf-gcc; ac_word=$2
 14158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14160 if test "${ac_cv_path_SHCC+set}" = set; then
 14161   echo $ECHO_N "(cached) $ECHO_C" >&6
 14162 else
 14163   case $SHCC in
 14164   [\\/]* | ?:[\\/]*)
 14165   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 14166   ;;
 14167   *)
 14168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14169 for as_dir in $PATH
 14170 do
 14171   IFS=$as_save_IFS
 14172   test -z "$as_dir" && as_dir=.
 14173   for ac_exec_ext in '' $ac_executable_extensions; do
 14174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14175     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 14176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14177     break 2
 14178   fi
 14179 done
 14180 done
 14181 IFS=$as_save_IFS
 14183   ;;
 14184 esac
 14185 fi
 14186 SHCC=$ac_cv_path_SHCC
 14187 if test -n "$SHCC"; then
 14188   { echo "$as_me:$LINENO: result: $SHCC" >&5
 14189 echo "${ECHO_T}$SHCC" >&6; }
 14190 else
 14191   { echo "$as_me:$LINENO: result: no" >&5
 14192 echo "${ECHO_T}no" >&6; }
 14193 fi
 14196 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 14197 set dummy sh-elf-ld; ac_word=$2
 14198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14200 if test "${ac_cv_path_SHLD+set}" = set; then
 14201   echo $ECHO_N "(cached) $ECHO_C" >&6
 14202 else
 14203   case $SHLD in
 14204   [\\/]* | ?:[\\/]*)
 14205   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 14206   ;;
 14207   *)
 14208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14209 for as_dir in $PATH
 14210 do
 14211   IFS=$as_save_IFS
 14212   test -z "$as_dir" && as_dir=.
 14213   for ac_exec_ext in '' $ac_executable_extensions; do
 14214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14215     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 14216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14217     break 2
 14218   fi
 14219 done
 14220 done
 14221 IFS=$as_save_IFS
 14223   ;;
 14224 esac
 14225 fi
 14226 SHLD=$ac_cv_path_SHLD
 14227 if test -n "$SHLD"; then
 14228   { echo "$as_me:$LINENO: result: $SHLD" >&5
 14229 echo "${ECHO_T}$SHLD" >&6; }
 14230 else
 14231   { echo "$as_me:$LINENO: result: no" >&5
 14232 echo "${ECHO_T}no" >&6; }
 14233 fi
 14236 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 14237 set dummy sh-elf-objcopy; ac_word=$2
 14238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14240 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 14241   echo $ECHO_N "(cached) $ECHO_C" >&6
 14242 else
 14243   case $SHOBJCOPY in
 14244   [\\/]* | ?:[\\/]*)
 14245   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 14246   ;;
 14247   *)
 14248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14249 for as_dir in $PATH
 14250 do
 14251   IFS=$as_save_IFS
 14252   test -z "$as_dir" && as_dir=.
 14253   for ac_exec_ext in '' $ac_executable_extensions; do
 14254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14255     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14257     break 2
 14258   fi
 14259 done
 14260 done
 14261 IFS=$as_save_IFS
 14263   ;;
 14264 esac
 14265 fi
 14266 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 14267 if test -n "$SHOBJCOPY"; then
 14268   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 14269 echo "${ECHO_T}$SHOBJCOPY" >&6; }
 14270 else
 14271   { echo "$as_me:$LINENO: result: no" >&5
 14272 echo "${ECHO_T}no" >&6; }
 14273 fi
 14276 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 14277 set dummy arm-elf-gcc; ac_word=$2
 14278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14280 if test "${ac_cv_path_ARMCC+set}" = set; then
 14281   echo $ECHO_N "(cached) $ECHO_C" >&6
 14282 else
 14283   case $ARMCC in
 14284   [\\/]* | ?:[\\/]*)
 14285   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 14286   ;;
 14287   *)
 14288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14289 for as_dir in $PATH
 14290 do
 14291   IFS=$as_save_IFS
 14292   test -z "$as_dir" && as_dir=.
 14293   for ac_exec_ext in '' $ac_executable_extensions; do
 14294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14295     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 14296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14297     break 2
 14298   fi
 14299 done
 14300 done
 14301 IFS=$as_save_IFS
 14303   ;;
 14304 esac
 14305 fi
 14306 ARMCC=$ac_cv_path_ARMCC
 14307 if test -n "$ARMCC"; then
 14308   { echo "$as_me:$LINENO: result: $ARMCC" >&5
 14309 echo "${ECHO_T}$ARMCC" >&6; }
 14310 else
 14311   { echo "$as_me:$LINENO: result: no" >&5
 14312 echo "${ECHO_T}no" >&6; }
 14313 fi
 14316 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 14317 set dummy arm-elf-ld; ac_word=$2
 14318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14320 if test "${ac_cv_path_ARMLD+set}" = set; then
 14321   echo $ECHO_N "(cached) $ECHO_C" >&6
 14322 else
 14323   case $ARMLD in
 14324   [\\/]* | ?:[\\/]*)
 14325   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 14326   ;;
 14327   *)
 14328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14329 for as_dir in $PATH
 14330 do
 14331   IFS=$as_save_IFS
 14332   test -z "$as_dir" && as_dir=.
 14333   for ac_exec_ext in '' $ac_executable_extensions; do
 14334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14335     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 14336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14337     break 2
 14338   fi
 14339 done
 14340 done
 14341 IFS=$as_save_IFS
 14343   ;;
 14344 esac
 14345 fi
 14346 ARMLD=$ac_cv_path_ARMLD
 14347 if test -n "$ARMLD"; then
 14348   { echo "$as_me:$LINENO: result: $ARMLD" >&5
 14349 echo "${ECHO_T}$ARMLD" >&6; }
 14350 else
 14351   { echo "$as_me:$LINENO: result: no" >&5
 14352 echo "${ECHO_T}no" >&6; }
 14353 fi
 14356 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 14357 set dummy arm-elf-objcopy; ac_word=$2
 14358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 14359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 14360 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 14361   echo $ECHO_N "(cached) $ECHO_C" >&6
 14362 else
 14363   case $ARMOBJCOPY in
 14364   [\\/]* | ?:[\\/]*)
 14365   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 14366   ;;
 14367   *)
 14368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14369 for as_dir in $PATH
 14370 do
 14371   IFS=$as_save_IFS
 14372   test -z "$as_dir" && as_dir=.
 14373   for ac_exec_ext in '' $ac_executable_extensions; do
 14374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 14375     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 14376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 14377     break 2
 14378   fi
 14379 done
 14380 done
 14381 IFS=$as_save_IFS
 14383   ;;
 14384 esac
 14385 fi
 14386 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 14387 if test -n "$ARMOBJCOPY"; then
 14388   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 14389 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
 14390 else
 14391   { echo "$as_me:$LINENO: result: no" >&5
 14392 echo "${ECHO_T}no" >&6; }
 14393 fi
 14397 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 14398   BUILD_SH="no"
 14399   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 14400 else
 14401   BUILD_SH="yes"
 14402 fi
 14403 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 14404   BUILD_ARM="no"
 14405   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 14406 else
 14407   BUILD_ARM="yes"
 14408 fi
 14411 if test "$BUILD_SH" = "yes"; then
 14412   BUILD_SYSTEST_TRUE=
 14413   BUILD_SYSTEST_FALSE='#'
 14414 else
 14415   BUILD_SYSTEST_TRUE='#'
 14416   BUILD_SYSTEST_FALSE=
 14417 fi
 14421 if test "$BUILD_ARM" = "yes"; then
 14422   BUILD_ARMTEST_TRUE=
 14423   BUILD_ARMTEST_FALSE='#'
 14424 else
 14425   BUILD_ARMTEST_TRUE='#'
 14426   BUILD_ARMTEST_FALSE=
 14427 fi
 14430 CFLAGS="$CFLAGS $STDCFLAG"
 14432 GETTEXT_PACKAGE=lxdream
 14433 LXDREAM_LIBS="$LIBS"
 14434 LIBS=""
 14438 cat >>confdefs.h <<_ACEOF
 14439 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 14440 _ACEOF
 14443 ALL_LINGUAS="de es it nl pt_BR"
 14446 for ac_header in locale.h
 14447 do
 14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14450   { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14453   echo $ECHO_N "(cached) $ECHO_C" >&6
 14454 fi
 14455 ac_res=`eval echo '${'$as_ac_Header'}'`
 14456 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14457 echo "${ECHO_T}$ac_res" >&6; }
 14458 else
 14459   # Is the header compilable?
 14460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
 14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 14462 cat >conftest.$ac_ext <<_ACEOF
 14463 /* confdefs.h.  */
 14464 _ACEOF
 14465 cat confdefs.h >>conftest.$ac_ext
 14466 cat >>conftest.$ac_ext <<_ACEOF
 14467 /* end confdefs.h.  */
 14468 $ac_includes_default
 14469 #include <$ac_header>
 14470 _ACEOF
 14471 rm -f conftest.$ac_objext
 14472 if { (ac_try="$ac_compile"
 14473 case "(($ac_try" in
 14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14475   *) ac_try_echo=$ac_try;;
 14476 esac
 14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14478   (eval "$ac_compile") 2>conftest.er1
 14479   ac_status=$?
 14480   grep -v '^ *+' conftest.er1 >conftest.err
 14481   rm -f conftest.er1
 14482   cat conftest.err >&5
 14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14484   (exit $ac_status); } && {
 14485 	 test -z "$ac_c_werror_flag" ||
 14486 	 test ! -s conftest.err
 14487        } && test -s conftest.$ac_objext; then
 14488   ac_header_compiler=yes
 14489 else
 14490   echo "$as_me: failed program was:" >&5
 14491 sed 's/^/| /' conftest.$ac_ext >&5
 14493 	ac_header_compiler=no
 14494 fi
 14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14498 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14500 # Is the header present?
 14501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
 14502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 14503 cat >conftest.$ac_ext <<_ACEOF
 14504 /* confdefs.h.  */
 14505 _ACEOF
 14506 cat confdefs.h >>conftest.$ac_ext
 14507 cat >>conftest.$ac_ext <<_ACEOF
 14508 /* end confdefs.h.  */
 14509 #include <$ac_header>
 14510 _ACEOF
 14511 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14512 case "(($ac_try" in
 14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14514   *) ac_try_echo=$ac_try;;
 14515 esac
 14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14518   ac_status=$?
 14519   grep -v '^ *+' conftest.er1 >conftest.err
 14520   rm -f conftest.er1
 14521   cat conftest.err >&5
 14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14523   (exit $ac_status); } >/dev/null && {
 14524 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14525 	 test ! -s conftest.err
 14526        }; then
 14527   ac_header_preproc=yes
 14528 else
 14529   echo "$as_me: failed program was:" >&5
 14530 sed 's/^/| /' conftest.$ac_ext >&5
 14532   ac_header_preproc=no
 14533 fi
 14535 rm -f conftest.err conftest.$ac_ext
 14536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14537 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14539 # So?  What about this header?
 14540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14541   yes:no: )
 14542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 14543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 14545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 14546     ac_header_preproc=yes
 14547     ;;
 14548   no:yes:* )
 14549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 14550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 14551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 14552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 14553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 14554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 14555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 14556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 14557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 14558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 14559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 14560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 14562     ;;
 14563 esac
 14564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 14565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 14566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 14567   echo $ECHO_N "(cached) $ECHO_C" >&6
 14568 else
 14569   eval "$as_ac_Header=\$ac_header_preproc"
 14570 fi
 14571 ac_res=`eval echo '${'$as_ac_Header'}'`
 14572 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14573 echo "${ECHO_T}$ac_res" >&6; }
 14575 fi
 14576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 14577   cat >>confdefs.h <<_ACEOF
 14578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 14579 _ACEOF
 14581 fi
 14583 done
 14585     if test $ac_cv_header_locale_h = yes; then
 14586     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 14587 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 14588 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 14589   echo $ECHO_N "(cached) $ECHO_C" >&6
 14590 else
 14591   cat >conftest.$ac_ext <<_ACEOF
 14592 /* confdefs.h.  */
 14593 _ACEOF
 14594 cat confdefs.h >>conftest.$ac_ext
 14595 cat >>conftest.$ac_ext <<_ACEOF
 14596 /* end confdefs.h.  */
 14597 #include <locale.h>
 14598 int
 14599 main ()
 14601 return LC_MESSAGES
 14603   return 0;
 14605 _ACEOF
 14606 rm -f conftest.$ac_objext conftest$ac_exeext
 14607 if { (ac_try="$ac_link"
 14608 case "(($ac_try" in
 14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14610   *) ac_try_echo=$ac_try;;
 14611 esac
 14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14613   (eval "$ac_link") 2>conftest.er1
 14614   ac_status=$?
 14615   grep -v '^ *+' conftest.er1 >conftest.err
 14616   rm -f conftest.er1
 14617   cat conftest.err >&5
 14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14619   (exit $ac_status); } && {
 14620 	 test -z "$ac_c_werror_flag" ||
 14621 	 test ! -s conftest.err
 14622        } && test -s conftest$ac_exeext &&
 14623        $as_test_x conftest$ac_exeext; then
 14624   am_cv_val_LC_MESSAGES=yes
 14625 else
 14626   echo "$as_me: failed program was:" >&5
 14627 sed 's/^/| /' conftest.$ac_ext >&5
 14629 	am_cv_val_LC_MESSAGES=no
 14630 fi
 14632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14633       conftest$ac_exeext conftest.$ac_ext
 14634 fi
 14635 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 14636 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 14637     if test $am_cv_val_LC_MESSAGES = yes; then
 14639 cat >>confdefs.h <<\_ACEOF
 14640 #define HAVE_LC_MESSAGES 1
 14641 _ACEOF
 14643     fi
 14644   fi
 14645      USE_NLS=yes
 14648     gt_cv_have_gettext=no
 14650     CATOBJEXT=NONE
 14651     XGETTEXT=:
 14652     INTLLIBS=
 14654     if test "${ac_cv_header_libintl_h+set}" = set; then
 14655   { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14656 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14657 if test "${ac_cv_header_libintl_h+set}" = set; then
 14658   echo $ECHO_N "(cached) $ECHO_C" >&6
 14659 fi
 14660 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14661 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14662 else
 14663   # Is the header compilable?
 14664 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
 14665 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 14666 cat >conftest.$ac_ext <<_ACEOF
 14667 /* confdefs.h.  */
 14668 _ACEOF
 14669 cat confdefs.h >>conftest.$ac_ext
 14670 cat >>conftest.$ac_ext <<_ACEOF
 14671 /* end confdefs.h.  */
 14672 $ac_includes_default
 14673 #include <libintl.h>
 14674 _ACEOF
 14675 rm -f conftest.$ac_objext
 14676 if { (ac_try="$ac_compile"
 14677 case "(($ac_try" in
 14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14679   *) ac_try_echo=$ac_try;;
 14680 esac
 14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14682   (eval "$ac_compile") 2>conftest.er1
 14683   ac_status=$?
 14684   grep -v '^ *+' conftest.er1 >conftest.err
 14685   rm -f conftest.er1
 14686   cat conftest.err >&5
 14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14688   (exit $ac_status); } && {
 14689 	 test -z "$ac_c_werror_flag" ||
 14690 	 test ! -s conftest.err
 14691        } && test -s conftest.$ac_objext; then
 14692   ac_header_compiler=yes
 14693 else
 14694   echo "$as_me: failed program was:" >&5
 14695 sed 's/^/| /' conftest.$ac_ext >&5
 14697 	ac_header_compiler=no
 14698 fi
 14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 14701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 14702 echo "${ECHO_T}$ac_header_compiler" >&6; }
 14704 # Is the header present?
 14705 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
 14706 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 14707 cat >conftest.$ac_ext <<_ACEOF
 14708 /* confdefs.h.  */
 14709 _ACEOF
 14710 cat confdefs.h >>conftest.$ac_ext
 14711 cat >>conftest.$ac_ext <<_ACEOF
 14712 /* end confdefs.h.  */
 14713 #include <libintl.h>
 14714 _ACEOF
 14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
 14716 case "(($ac_try" in
 14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14718   *) ac_try_echo=$ac_try;;
 14719 esac
 14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 14722   ac_status=$?
 14723   grep -v '^ *+' conftest.er1 >conftest.err
 14724   rm -f conftest.er1
 14725   cat conftest.err >&5
 14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14727   (exit $ac_status); } >/dev/null && {
 14728 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 14729 	 test ! -s conftest.err
 14730        }; then
 14731   ac_header_preproc=yes
 14732 else
 14733   echo "$as_me: failed program was:" >&5
 14734 sed 's/^/| /' conftest.$ac_ext >&5
 14736   ac_header_preproc=no
 14737 fi
 14739 rm -f conftest.err conftest.$ac_ext
 14740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 14741 echo "${ECHO_T}$ac_header_preproc" >&6; }
 14743 # So?  What about this header?
 14744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 14745   yes:no: )
 14746     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 14747 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 14748     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 14749 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 14750     ac_header_preproc=yes
 14751     ;;
 14752   no:yes:* )
 14753     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 14754 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 14755     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 14756 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 14757     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 14758 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 14759     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 14760 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 14761     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 14762 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 14763     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 14764 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 14766     ;;
 14767 esac
 14768 { echo "$as_me:$LINENO: checking for libintl.h" >&5
 14769 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 14770 if test "${ac_cv_header_libintl_h+set}" = set; then
 14771   echo $ECHO_N "(cached) $ECHO_C" >&6
 14772 else
 14773   ac_cv_header_libintl_h=$ac_header_preproc
 14774 fi
 14775 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 14776 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 14778 fi
 14779 if test $ac_cv_header_libintl_h = yes; then
 14780   gt_cv_func_dgettext_libintl="no"
 14781       libintl_extra_libs=""
 14784       # First check in libc
 14786       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 14787 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 14788 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 14789   echo $ECHO_N "(cached) $ECHO_C" >&6
 14790 else
 14791   cat >conftest.$ac_ext <<_ACEOF
 14792 /* confdefs.h.  */
 14793 _ACEOF
 14794 cat confdefs.h >>conftest.$ac_ext
 14795 cat >>conftest.$ac_ext <<_ACEOF
 14796 /* end confdefs.h.  */
 14798 #include <libintl.h>
 14800 int
 14801 main ()
 14803 return !ngettext ("","", 1)
 14805   return 0;
 14807 _ACEOF
 14808 rm -f conftest.$ac_objext conftest$ac_exeext
 14809 if { (ac_try="$ac_link"
 14810 case "(($ac_try" in
 14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14812   *) ac_try_echo=$ac_try;;
 14813 esac
 14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14815   (eval "$ac_link") 2>conftest.er1
 14816   ac_status=$?
 14817   grep -v '^ *+' conftest.er1 >conftest.err
 14818   rm -f conftest.er1
 14819   cat conftest.err >&5
 14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14821   (exit $ac_status); } && {
 14822 	 test -z "$ac_c_werror_flag" ||
 14823 	 test ! -s conftest.err
 14824        } && test -s conftest$ac_exeext &&
 14825        $as_test_x conftest$ac_exeext; then
 14826   gt_cv_func_ngettext_libc=yes
 14827 else
 14828   echo "$as_me: failed program was:" >&5
 14829 sed 's/^/| /' conftest.$ac_ext >&5
 14831 	gt_cv_func_ngettext_libc=no
 14832 fi
 14834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14835       conftest$ac_exeext conftest.$ac_ext
 14837 fi
 14838 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 14839 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 14841       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14842 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 14843 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 14844 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 14845   echo $ECHO_N "(cached) $ECHO_C" >&6
 14846 else
 14847   cat >conftest.$ac_ext <<_ACEOF
 14848 /* confdefs.h.  */
 14849 _ACEOF
 14850 cat confdefs.h >>conftest.$ac_ext
 14851 cat >>conftest.$ac_ext <<_ACEOF
 14852 /* end confdefs.h.  */
 14854 #include <libintl.h>
 14856 int
 14857 main ()
 14859 return !dgettext ("","")
 14861   return 0;
 14863 _ACEOF
 14864 rm -f conftest.$ac_objext conftest$ac_exeext
 14865 if { (ac_try="$ac_link"
 14866 case "(($ac_try" in
 14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14868   *) ac_try_echo=$ac_try;;
 14869 esac
 14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14871   (eval "$ac_link") 2>conftest.er1
 14872   ac_status=$?
 14873   grep -v '^ *+' conftest.er1 >conftest.err
 14874   rm -f conftest.er1
 14875   cat conftest.err >&5
 14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14877   (exit $ac_status); } && {
 14878 	 test -z "$ac_c_werror_flag" ||
 14879 	 test ! -s conftest.err
 14880        } && test -s conftest$ac_exeext &&
 14881        $as_test_x conftest$ac_exeext; then
 14882   gt_cv_func_dgettext_libc=yes
 14883 else
 14884   echo "$as_me: failed program was:" >&5
 14885 sed 's/^/| /' conftest.$ac_ext >&5
 14887 	gt_cv_func_dgettext_libc=no
 14888 fi
 14890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14891       conftest$ac_exeext conftest.$ac_ext
 14893 fi
 14894 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 14895 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 14896       fi
 14898       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 14900 for ac_func in bind_textdomain_codeset
 14901 do
 14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 14906   echo $ECHO_N "(cached) $ECHO_C" >&6
 14907 else
 14908   cat >conftest.$ac_ext <<_ACEOF
 14909 /* confdefs.h.  */
 14910 _ACEOF
 14911 cat confdefs.h >>conftest.$ac_ext
 14912 cat >>conftest.$ac_ext <<_ACEOF
 14913 /* end confdefs.h.  */
 14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 14915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 14916 #define $ac_func innocuous_$ac_func
 14918 /* System header to define __stub macros and hopefully few prototypes,
 14919     which can conflict with char $ac_func (); below.
 14920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 14921     <limits.h> exists even on freestanding compilers.  */
 14923 #ifdef __STDC__
 14924 # include <limits.h>
 14925 #else
 14926 # include <assert.h>
 14927 #endif
 14929 #undef $ac_func
 14931 /* Override any GCC internal prototype to avoid an error.
 14932    Use char because int might match the return type of a GCC
 14933    builtin and then its argument prototype would still apply.  */
 14934 #ifdef __cplusplus
 14935 extern "C"
 14936 #endif
 14937 char $ac_func ();
 14938 /* The GNU C library defines this for functions which it implements
 14939     to always fail with ENOSYS.  Some functions are actually named
 14940     something starting with __ and the normal name is an alias.  */
 14941 #if defined __stub_$ac_func || defined __stub___$ac_func
 14942 choke me
 14943 #endif
 14945 int
 14946 main ()
 14948 return $ac_func ();
 14950   return 0;
 14952 _ACEOF
 14953 rm -f conftest.$ac_objext conftest$ac_exeext
 14954 if { (ac_try="$ac_link"
 14955 case "(($ac_try" in
 14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 14957   *) ac_try_echo=$ac_try;;
 14958 esac
 14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 14960   (eval "$ac_link") 2>conftest.er1
 14961   ac_status=$?
 14962   grep -v '^ *+' conftest.er1 >conftest.err
 14963   rm -f conftest.er1
 14964   cat conftest.err >&5
 14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 14966   (exit $ac_status); } && {
 14967 	 test -z "$ac_c_werror_flag" ||
 14968 	 test ! -s conftest.err
 14969        } && test -s conftest$ac_exeext &&
 14970        $as_test_x conftest$ac_exeext; then
 14971   eval "$as_ac_var=yes"
 14972 else
 14973   echo "$as_me: failed program was:" >&5
 14974 sed 's/^/| /' conftest.$ac_ext >&5
 14976 	eval "$as_ac_var=no"
 14977 fi
 14979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 14980       conftest$ac_exeext conftest.$ac_ext
 14981 fi
 14982 ac_res=`eval echo '${'$as_ac_var'}'`
 14983 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 14984 echo "${ECHO_T}$ac_res" >&6; }
 14985 if test `eval echo '${'$as_ac_var'}'` = yes; then
 14986   cat >>confdefs.h <<_ACEOF
 14987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 14988 _ACEOF
 14990 fi
 14991 done
 14993       fi
 14996       # If we don't have everything we want, check in libintl
 14998       if test "$gt_cv_func_dgettext_libc" != "yes" \
 14999 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 15000          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 15002         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 15003 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 15004 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 15005   echo $ECHO_N "(cached) $ECHO_C" >&6
 15006 else
 15007   ac_check_lib_save_LIBS=$LIBS
 15008 LIBS="-lintl  $LIBS"
 15009 cat >conftest.$ac_ext <<_ACEOF
 15010 /* confdefs.h.  */
 15011 _ACEOF
 15012 cat confdefs.h >>conftest.$ac_ext
 15013 cat >>conftest.$ac_ext <<_ACEOF
 15014 /* end confdefs.h.  */
 15016 /* Override any GCC internal prototype to avoid an error.
 15017    Use char because int might match the return type of a GCC
 15018    builtin and then its argument prototype would still apply.  */
 15019 #ifdef __cplusplus
 15020 extern "C"
 15021 #endif
 15022 char bindtextdomain ();
 15023 int
 15024 main ()
 15026 return bindtextdomain ();
 15028   return 0;
 15030 _ACEOF
 15031 rm -f conftest.$ac_objext conftest$ac_exeext
 15032 if { (ac_try="$ac_link"
 15033 case "(($ac_try" in
 15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15035   *) ac_try_echo=$ac_try;;
 15036 esac
 15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15038   (eval "$ac_link") 2>conftest.er1
 15039   ac_status=$?
 15040   grep -v '^ *+' conftest.er1 >conftest.err
 15041   rm -f conftest.er1
 15042   cat conftest.err >&5
 15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15044   (exit $ac_status); } && {
 15045 	 test -z "$ac_c_werror_flag" ||
 15046 	 test ! -s conftest.err
 15047        } && test -s conftest$ac_exeext &&
 15048        $as_test_x conftest$ac_exeext; then
 15049   ac_cv_lib_intl_bindtextdomain=yes
 15050 else
 15051   echo "$as_me: failed program was:" >&5
 15052 sed 's/^/| /' conftest.$ac_ext >&5
 15054 	ac_cv_lib_intl_bindtextdomain=no
 15055 fi
 15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15058       conftest$ac_exeext conftest.$ac_ext
 15059 LIBS=$ac_check_lib_save_LIBS
 15060 fi
 15061 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 15062 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 15063 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 15064   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15065 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15066 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15067   echo $ECHO_N "(cached) $ECHO_C" >&6
 15068 else
 15069   ac_check_lib_save_LIBS=$LIBS
 15070 LIBS="-lintl  $LIBS"
 15071 cat >conftest.$ac_ext <<_ACEOF
 15072 /* confdefs.h.  */
 15073 _ACEOF
 15074 cat confdefs.h >>conftest.$ac_ext
 15075 cat >>conftest.$ac_ext <<_ACEOF
 15076 /* end confdefs.h.  */
 15078 /* Override any GCC internal prototype to avoid an error.
 15079    Use char because int might match the return type of a GCC
 15080    builtin and then its argument prototype would still apply.  */
 15081 #ifdef __cplusplus
 15082 extern "C"
 15083 #endif
 15084 char ngettext ();
 15085 int
 15086 main ()
 15088 return ngettext ();
 15090   return 0;
 15092 _ACEOF
 15093 rm -f conftest.$ac_objext conftest$ac_exeext
 15094 if { (ac_try="$ac_link"
 15095 case "(($ac_try" in
 15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15097   *) ac_try_echo=$ac_try;;
 15098 esac
 15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15100   (eval "$ac_link") 2>conftest.er1
 15101   ac_status=$?
 15102   grep -v '^ *+' conftest.er1 >conftest.err
 15103   rm -f conftest.er1
 15104   cat conftest.err >&5
 15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15106   (exit $ac_status); } && {
 15107 	 test -z "$ac_c_werror_flag" ||
 15108 	 test ! -s conftest.err
 15109        } && test -s conftest$ac_exeext &&
 15110        $as_test_x conftest$ac_exeext; then
 15111   ac_cv_lib_intl_ngettext=yes
 15112 else
 15113   echo "$as_me: failed program was:" >&5
 15114 sed 's/^/| /' conftest.$ac_ext >&5
 15116 	ac_cv_lib_intl_ngettext=no
 15117 fi
 15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15120       conftest$ac_exeext conftest.$ac_ext
 15121 LIBS=$ac_check_lib_save_LIBS
 15122 fi
 15123 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15124 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15125 if test $ac_cv_lib_intl_ngettext = yes; then
 15126   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 15127 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 15128 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 15129   echo $ECHO_N "(cached) $ECHO_C" >&6
 15130 else
 15131   ac_check_lib_save_LIBS=$LIBS
 15132 LIBS="-lintl  $LIBS"
 15133 cat >conftest.$ac_ext <<_ACEOF
 15134 /* confdefs.h.  */
 15135 _ACEOF
 15136 cat confdefs.h >>conftest.$ac_ext
 15137 cat >>conftest.$ac_ext <<_ACEOF
 15138 /* end confdefs.h.  */
 15140 /* Override any GCC internal prototype to avoid an error.
 15141    Use char because int might match the return type of a GCC
 15142    builtin and then its argument prototype would still apply.  */
 15143 #ifdef __cplusplus
 15144 extern "C"
 15145 #endif
 15146 char dgettext ();
 15147 int
 15148 main ()
 15150 return dgettext ();
 15152   return 0;
 15154 _ACEOF
 15155 rm -f conftest.$ac_objext conftest$ac_exeext
 15156 if { (ac_try="$ac_link"
 15157 case "(($ac_try" in
 15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15159   *) ac_try_echo=$ac_try;;
 15160 esac
 15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15162   (eval "$ac_link") 2>conftest.er1
 15163   ac_status=$?
 15164   grep -v '^ *+' conftest.er1 >conftest.err
 15165   rm -f conftest.er1
 15166   cat conftest.err >&5
 15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15168   (exit $ac_status); } && {
 15169 	 test -z "$ac_c_werror_flag" ||
 15170 	 test ! -s conftest.err
 15171        } && test -s conftest$ac_exeext &&
 15172        $as_test_x conftest$ac_exeext; then
 15173   ac_cv_lib_intl_dgettext=yes
 15174 else
 15175   echo "$as_me: failed program was:" >&5
 15176 sed 's/^/| /' conftest.$ac_ext >&5
 15178 	ac_cv_lib_intl_dgettext=no
 15179 fi
 15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15182       conftest$ac_exeext conftest.$ac_ext
 15183 LIBS=$ac_check_lib_save_LIBS
 15184 fi
 15185 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 15186 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 15187 if test $ac_cv_lib_intl_dgettext = yes; then
 15188   gt_cv_func_dgettext_libintl=yes
 15189 fi
 15191 fi
 15193 fi
 15196 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 15197 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 15198 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 15199 	  { echo "$as_me:$LINENO: result: " >&5
 15200 echo "${ECHO_T}" >&6; }
 15201   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 15202 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 15203 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 15204   echo $ECHO_N "(cached) $ECHO_C" >&6
 15205 else
 15206   ac_check_lib_save_LIBS=$LIBS
 15207 LIBS="-lintl -liconv $LIBS"
 15208 cat >conftest.$ac_ext <<_ACEOF
 15209 /* confdefs.h.  */
 15210 _ACEOF
 15211 cat confdefs.h >>conftest.$ac_ext
 15212 cat >>conftest.$ac_ext <<_ACEOF
 15213 /* end confdefs.h.  */
 15215 /* Override any GCC internal prototype to avoid an error.
 15216    Use char because int might match the return type of a GCC
 15217    builtin and then its argument prototype would still apply.  */
 15218 #ifdef __cplusplus
 15219 extern "C"
 15220 #endif
 15221 char ngettext ();
 15222 int
 15223 main ()
 15225 return ngettext ();
 15227   return 0;
 15229 _ACEOF
 15230 rm -f conftest.$ac_objext conftest$ac_exeext
 15231 if { (ac_try="$ac_link"
 15232 case "(($ac_try" in
 15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15234   *) ac_try_echo=$ac_try;;
 15235 esac
 15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15237   (eval "$ac_link") 2>conftest.er1
 15238   ac_status=$?
 15239   grep -v '^ *+' conftest.er1 >conftest.err
 15240   rm -f conftest.er1
 15241   cat conftest.err >&5
 15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15243   (exit $ac_status); } && {
 15244 	 test -z "$ac_c_werror_flag" ||
 15245 	 test ! -s conftest.err
 15246        } && test -s conftest$ac_exeext &&
 15247        $as_test_x conftest$ac_exeext; then
 15248   ac_cv_lib_intl_ngettext=yes
 15249 else
 15250   echo "$as_me: failed program was:" >&5
 15251 sed 's/^/| /' conftest.$ac_ext >&5
 15253 	ac_cv_lib_intl_ngettext=no
 15254 fi
 15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15257       conftest$ac_exeext conftest.$ac_ext
 15258 LIBS=$ac_check_lib_save_LIBS
 15259 fi
 15260 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 15261 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 15262 if test $ac_cv_lib_intl_ngettext = yes; then
 15263   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 15264 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 15265 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 15266   echo $ECHO_N "(cached) $ECHO_C" >&6
 15267 else
 15268   ac_check_lib_save_LIBS=$LIBS
 15269 LIBS="-lintl -liconv $LIBS"
 15270 cat >conftest.$ac_ext <<_ACEOF
 15271 /* confdefs.h.  */
 15272 _ACEOF
 15273 cat confdefs.h >>conftest.$ac_ext
 15274 cat >>conftest.$ac_ext <<_ACEOF
 15275 /* end confdefs.h.  */
 15277 /* Override any GCC internal prototype to avoid an error.
 15278    Use char because int might match the return type of a GCC
 15279    builtin and then its argument prototype would still apply.  */
 15280 #ifdef __cplusplus
 15281 extern "C"
 15282 #endif
 15283 char dcgettext ();
 15284 int
 15285 main ()
 15287 return dcgettext ();
 15289   return 0;
 15291 _ACEOF
 15292 rm -f conftest.$ac_objext conftest$ac_exeext
 15293 if { (ac_try="$ac_link"
 15294 case "(($ac_try" in
 15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15296   *) ac_try_echo=$ac_try;;
 15297 esac
 15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15299   (eval "$ac_link") 2>conftest.er1
 15300   ac_status=$?
 15301   grep -v '^ *+' conftest.er1 >conftest.err
 15302   rm -f conftest.er1
 15303   cat conftest.err >&5
 15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15305   (exit $ac_status); } && {
 15306 	 test -z "$ac_c_werror_flag" ||
 15307 	 test ! -s conftest.err
 15308        } && test -s conftest$ac_exeext &&
 15309        $as_test_x conftest$ac_exeext; then
 15310   ac_cv_lib_intl_dcgettext=yes
 15311 else
 15312   echo "$as_me: failed program was:" >&5
 15313 sed 's/^/| /' conftest.$ac_ext >&5
 15315 	ac_cv_lib_intl_dcgettext=no
 15316 fi
 15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15319       conftest$ac_exeext conftest.$ac_ext
 15320 LIBS=$ac_check_lib_save_LIBS
 15321 fi
 15322 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 15323 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 15324 if test $ac_cv_lib_intl_dcgettext = yes; then
 15325   gt_cv_func_dgettext_libintl=yes
 15326 			libintl_extra_libs=-liconv
 15327 else
 15329 fi
 15331 else
 15333 fi
 15335         fi
 15338         # If we found libintl, then check in it for bind_textdomain_codeset();
 15339         # we'll prefer libc if neither have bind_textdomain_codeset(),
 15340         # and both have dgettext and ngettext
 15342         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 15343           glib_save_LIBS="$LIBS"
 15344           LIBS="$LIBS -lintl $libintl_extra_libs"
 15345           unset ac_cv_func_bind_textdomain_codeset
 15347 for ac_func in bind_textdomain_codeset
 15348 do
 15349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15353   echo $ECHO_N "(cached) $ECHO_C" >&6
 15354 else
 15355   cat >conftest.$ac_ext <<_ACEOF
 15356 /* confdefs.h.  */
 15357 _ACEOF
 15358 cat confdefs.h >>conftest.$ac_ext
 15359 cat >>conftest.$ac_ext <<_ACEOF
 15360 /* end confdefs.h.  */
 15361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15363 #define $ac_func innocuous_$ac_func
 15365 /* System header to define __stub macros and hopefully few prototypes,
 15366     which can conflict with char $ac_func (); below.
 15367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15368     <limits.h> exists even on freestanding compilers.  */
 15370 #ifdef __STDC__
 15371 # include <limits.h>
 15372 #else
 15373 # include <assert.h>
 15374 #endif
 15376 #undef $ac_func
 15378 /* Override any GCC internal prototype to avoid an error.
 15379    Use char because int might match the return type of a GCC
 15380    builtin and then its argument prototype would still apply.  */
 15381 #ifdef __cplusplus
 15382 extern "C"
 15383 #endif
 15384 char $ac_func ();
 15385 /* The GNU C library defines this for functions which it implements
 15386     to always fail with ENOSYS.  Some functions are actually named
 15387     something starting with __ and the normal name is an alias.  */
 15388 #if defined __stub_$ac_func || defined __stub___$ac_func
 15389 choke me
 15390 #endif
 15392 int
 15393 main ()
 15395 return $ac_func ();
 15397   return 0;
 15399 _ACEOF
 15400 rm -f conftest.$ac_objext conftest$ac_exeext
 15401 if { (ac_try="$ac_link"
 15402 case "(($ac_try" in
 15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15404   *) ac_try_echo=$ac_try;;
 15405 esac
 15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15407   (eval "$ac_link") 2>conftest.er1
 15408   ac_status=$?
 15409   grep -v '^ *+' conftest.er1 >conftest.err
 15410   rm -f conftest.er1
 15411   cat conftest.err >&5
 15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15413   (exit $ac_status); } && {
 15414 	 test -z "$ac_c_werror_flag" ||
 15415 	 test ! -s conftest.err
 15416        } && test -s conftest$ac_exeext &&
 15417        $as_test_x conftest$ac_exeext; then
 15418   eval "$as_ac_var=yes"
 15419 else
 15420   echo "$as_me: failed program was:" >&5
 15421 sed 's/^/| /' conftest.$ac_ext >&5
 15423 	eval "$as_ac_var=no"
 15424 fi
 15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15427       conftest$ac_exeext conftest.$ac_ext
 15428 fi
 15429 ac_res=`eval echo '${'$as_ac_var'}'`
 15430 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15431 echo "${ECHO_T}$ac_res" >&6; }
 15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15433   cat >>confdefs.h <<_ACEOF
 15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15435 _ACEOF
 15437 fi
 15438 done
 15440           LIBS="$glib_save_LIBS"
 15442           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 15443             gt_cv_func_dgettext_libc=no
 15444           else
 15445             if test "$gt_cv_func_dgettext_libc" = "yes" \
 15446 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 15447               gt_cv_func_dgettext_libintl=no
 15448             fi
 15449           fi
 15450         fi
 15451       fi
 15453       if test "$gt_cv_func_dgettext_libc" = "yes" \
 15454 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15455         gt_cv_have_gettext=yes
 15456       fi
 15458       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 15459         INTLLIBS="-lintl $libintl_extra_libs"
 15460       fi
 15462       if test "$gt_cv_have_gettext" = "yes"; then
 15464 cat >>confdefs.h <<\_ACEOF
 15465 #define HAVE_GETTEXT 1
 15466 _ACEOF
 15468 	# Extract the first word of "msgfmt", so it can be a program name with args.
 15469 set dummy msgfmt; ac_word=$2
 15470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15472 if test "${ac_cv_path_MSGFMT+set}" = set; then
 15473   echo $ECHO_N "(cached) $ECHO_C" >&6
 15474 else
 15475   case "$MSGFMT" in
 15476   /*)
 15477   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 15478   ;;
 15479   *)
 15480   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15481   for ac_dir in $PATH; do
 15482     test -z "$ac_dir" && ac_dir=.
 15483     if test -f $ac_dir/$ac_word; then
 15484       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 15485 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 15486 	break
 15487       fi
 15488     fi
 15489   done
 15490   IFS="$ac_save_ifs"
 15491   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 15492   ;;
 15493 esac
 15494 fi
 15495 MSGFMT="$ac_cv_path_MSGFMT"
 15496 if test "$MSGFMT" != "no"; then
 15497   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 15498 echo "${ECHO_T}$MSGFMT" >&6; }
 15499 else
 15500   { echo "$as_me:$LINENO: result: no" >&5
 15501 echo "${ECHO_T}no" >&6; }
 15502 fi
 15503 	if test "$MSGFMT" != "no"; then
 15504           glib_save_LIBS="$LIBS"
 15505           LIBS="$LIBS $INTLLIBS"
 15507 for ac_func in dcgettext
 15508 do
 15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 15510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 15512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 15513   echo $ECHO_N "(cached) $ECHO_C" >&6
 15514 else
 15515   cat >conftest.$ac_ext <<_ACEOF
 15516 /* confdefs.h.  */
 15517 _ACEOF
 15518 cat confdefs.h >>conftest.$ac_ext
 15519 cat >>conftest.$ac_ext <<_ACEOF
 15520 /* end confdefs.h.  */
 15521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 15522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15523 #define $ac_func innocuous_$ac_func
 15525 /* System header to define __stub macros and hopefully few prototypes,
 15526     which can conflict with char $ac_func (); below.
 15527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15528     <limits.h> exists even on freestanding compilers.  */
 15530 #ifdef __STDC__
 15531 # include <limits.h>
 15532 #else
 15533 # include <assert.h>
 15534 #endif
 15536 #undef $ac_func
 15538 /* Override any GCC internal prototype to avoid an error.
 15539    Use char because int might match the return type of a GCC
 15540    builtin and then its argument prototype would still apply.  */
 15541 #ifdef __cplusplus
 15542 extern "C"
 15543 #endif
 15544 char $ac_func ();
 15545 /* The GNU C library defines this for functions which it implements
 15546     to always fail with ENOSYS.  Some functions are actually named
 15547     something starting with __ and the normal name is an alias.  */
 15548 #if defined __stub_$ac_func || defined __stub___$ac_func
 15549 choke me
 15550 #endif
 15552 int
 15553 main ()
 15555 return $ac_func ();
 15557   return 0;
 15559 _ACEOF
 15560 rm -f conftest.$ac_objext conftest$ac_exeext
 15561 if { (ac_try="$ac_link"
 15562 case "(($ac_try" in
 15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15564   *) ac_try_echo=$ac_try;;
 15565 esac
 15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15567   (eval "$ac_link") 2>conftest.er1
 15568   ac_status=$?
 15569   grep -v '^ *+' conftest.er1 >conftest.err
 15570   rm -f conftest.er1
 15571   cat conftest.err >&5
 15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15573   (exit $ac_status); } && {
 15574 	 test -z "$ac_c_werror_flag" ||
 15575 	 test ! -s conftest.err
 15576        } && test -s conftest$ac_exeext &&
 15577        $as_test_x conftest$ac_exeext; then
 15578   eval "$as_ac_var=yes"
 15579 else
 15580   echo "$as_me: failed program was:" >&5
 15581 sed 's/^/| /' conftest.$ac_ext >&5
 15583 	eval "$as_ac_var=no"
 15584 fi
 15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15587       conftest$ac_exeext conftest.$ac_ext
 15588 fi
 15589 ac_res=`eval echo '${'$as_ac_var'}'`
 15590 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 15591 echo "${ECHO_T}$ac_res" >&6; }
 15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
 15593   cat >>confdefs.h <<_ACEOF
 15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 15595 _ACEOF
 15597 fi
 15598 done
 15600 	  MSGFMT_OPTS=
 15601 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 15602 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 15603 	  cat >conftest.foo <<_ACEOF
 15605 msgid ""
 15606 msgstr ""
 15607 "Content-Type: text/plain; charset=UTF-8\n"
 15608 "Project-Id-Version: test 1.0\n"
 15609 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 15610 "Last-Translator: test <foo@bar.xx>\n"
 15611 "Language-Team: C <LL@li.org>\n"
 15612 "MIME-Version: 1.0\n"
 15613 "Content-Transfer-Encoding: 8bit\n"
 15615 _ACEOF
 15616 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 15617   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 15618   ac_status=$?
 15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15620   (exit $ac_status); }; then
 15621   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 15622 echo "${ECHO_T}yes" >&6; }
 15623 else { echo "$as_me:$LINENO: result: no" >&5
 15624 echo "${ECHO_T}no" >&6; }
 15625 echo "$as_me: failed input was:" >&5
 15626 sed 's/^/| /' conftest.foo >&5
 15627 fi
 15629 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 15630 set dummy gmsgfmt; ac_word=$2
 15631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15633 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 15634   echo $ECHO_N "(cached) $ECHO_C" >&6
 15635 else
 15636   case $GMSGFMT in
 15637   [\\/]* | ?:[\\/]*)
 15638   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 15639   ;;
 15640   *)
 15641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15642 for as_dir in $PATH
 15643 do
 15644   IFS=$as_save_IFS
 15645   test -z "$as_dir" && as_dir=.
 15646   for ac_exec_ext in '' $ac_executable_extensions; do
 15647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 15648     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 15649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 15650     break 2
 15651   fi
 15652 done
 15653 done
 15654 IFS=$as_save_IFS
 15656   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 15657   ;;
 15658 esac
 15659 fi
 15660 GMSGFMT=$ac_cv_path_GMSGFMT
 15661 if test -n "$GMSGFMT"; then
 15662   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 15663 echo "${ECHO_T}$GMSGFMT" >&6; }
 15664 else
 15665   { echo "$as_me:$LINENO: result: no" >&5
 15666 echo "${ECHO_T}no" >&6; }
 15667 fi
 15670 	  # Extract the first word of "xgettext", so it can be a program name with args.
 15671 set dummy xgettext; ac_word=$2
 15672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 15673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 15674 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 15675   echo $ECHO_N "(cached) $ECHO_C" >&6
 15676 else
 15677   case "$XGETTEXT" in
 15678   /*)
 15679   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 15680   ;;
 15681   *)
 15682   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 15683   for ac_dir in $PATH; do
 15684     test -z "$ac_dir" && ac_dir=.
 15685     if test -f $ac_dir/$ac_word; then
 15686       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 15687 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 15688 	break
 15689       fi
 15690     fi
 15691   done
 15692   IFS="$ac_save_ifs"
 15693   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 15694   ;;
 15695 esac
 15696 fi
 15697 XGETTEXT="$ac_cv_path_XGETTEXT"
 15698 if test "$XGETTEXT" != ":"; then
 15699   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 15700 echo "${ECHO_T}$XGETTEXT" >&6; }
 15701 else
 15702   { echo "$as_me:$LINENO: result: no" >&5
 15703 echo "${ECHO_T}no" >&6; }
 15704 fi
 15706 	  cat >conftest.$ac_ext <<_ACEOF
 15707 /* confdefs.h.  */
 15708 _ACEOF
 15709 cat confdefs.h >>conftest.$ac_ext
 15710 cat >>conftest.$ac_ext <<_ACEOF
 15711 /* end confdefs.h.  */
 15713 int
 15714 main ()
 15716 extern int _nl_msg_cat_cntr;
 15717 			 return _nl_msg_cat_cntr
 15719   return 0;
 15721 _ACEOF
 15722 rm -f conftest.$ac_objext conftest$ac_exeext
 15723 if { (ac_try="$ac_link"
 15724 case "(($ac_try" in
 15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15726   *) ac_try_echo=$ac_try;;
 15727 esac
 15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15729   (eval "$ac_link") 2>conftest.er1
 15730   ac_status=$?
 15731   grep -v '^ *+' conftest.er1 >conftest.err
 15732   rm -f conftest.er1
 15733   cat conftest.err >&5
 15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15735   (exit $ac_status); } && {
 15736 	 test -z "$ac_c_werror_flag" ||
 15737 	 test ! -s conftest.err
 15738        } && test -s conftest$ac_exeext &&
 15739        $as_test_x conftest$ac_exeext; then
 15740   CATOBJEXT=.gmo
 15741              DATADIRNAME=share
 15742 else
 15743   echo "$as_me: failed program was:" >&5
 15744 sed 's/^/| /' conftest.$ac_ext >&5
 15746 	case $host in
 15747 	    *-*-solaris*)
 15748 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 15749 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 15750 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 15751   echo $ECHO_N "(cached) $ECHO_C" >&6
 15752 else
 15753   cat >conftest.$ac_ext <<_ACEOF
 15754 /* confdefs.h.  */
 15755 _ACEOF
 15756 cat confdefs.h >>conftest.$ac_ext
 15757 cat >>conftest.$ac_ext <<_ACEOF
 15758 /* end confdefs.h.  */
 15759 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 15760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 15761 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 15763 /* System header to define __stub macros and hopefully few prototypes,
 15764     which can conflict with char bind_textdomain_codeset (); below.
 15765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 15766     <limits.h> exists even on freestanding compilers.  */
 15768 #ifdef __STDC__
 15769 # include <limits.h>
 15770 #else
 15771 # include <assert.h>
 15772 #endif
 15774 #undef bind_textdomain_codeset
 15776 /* Override any GCC internal prototype to avoid an error.
 15777    Use char because int might match the return type of a GCC
 15778    builtin and then its argument prototype would still apply.  */
 15779 #ifdef __cplusplus
 15780 extern "C"
 15781 #endif
 15782 char bind_textdomain_codeset ();
 15783 /* The GNU C library defines this for functions which it implements
 15784     to always fail with ENOSYS.  Some functions are actually named
 15785     something starting with __ and the normal name is an alias.  */
 15786 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 15787 choke me
 15788 #endif
 15790 int
 15791 main ()
 15793 return bind_textdomain_codeset ();
 15795   return 0;
 15797 _ACEOF
 15798 rm -f conftest.$ac_objext conftest$ac_exeext
 15799 if { (ac_try="$ac_link"
 15800 case "(($ac_try" in
 15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 15802   *) ac_try_echo=$ac_try;;
 15803 esac
 15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 15805   (eval "$ac_link") 2>conftest.er1
 15806   ac_status=$?
 15807   grep -v '^ *+' conftest.er1 >conftest.err
 15808   rm -f conftest.er1
 15809   cat conftest.err >&5
 15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 15811   (exit $ac_status); } && {
 15812 	 test -z "$ac_c_werror_flag" ||
 15813 	 test ! -s conftest.err
 15814        } && test -s conftest$ac_exeext &&
 15815        $as_test_x conftest$ac_exeext; then
 15816   ac_cv_func_bind_textdomain_codeset=yes
 15817 else
 15818   echo "$as_me: failed program was:" >&5
 15819 sed 's/^/| /' conftest.$ac_ext >&5
 15821 	ac_cv_func_bind_textdomain_codeset=no
 15822 fi
 15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15825       conftest$ac_exeext conftest.$ac_ext
 15826 fi
 15827 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 15828 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 15829 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 15830   CATOBJEXT=.gmo
 15831                DATADIRNAME=share
 15832 else
 15833   CATOBJEXT=.mo
 15834                DATADIRNAME=lib
 15835 fi
 15837 	    ;;
 15838 	    *)
 15839 	    CATOBJEXT=.mo
 15840             DATADIRNAME=lib
 15841 	    ;;
 15842 	    esac
 15843 fi
 15845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 15846       conftest$ac_exeext conftest.$ac_ext
 15847           LIBS="$glib_save_LIBS"
 15848 	  INSTOBJEXT=.mo
 15849 	else
 15850 	  gt_cv_have_gettext=no
 15851 	fi
 15852       fi
 15854 fi
 15858     if test "$gt_cv_have_gettext" = "yes" ; then
 15860 cat >>confdefs.h <<\_ACEOF
 15861 #define ENABLE_NLS 1
 15862 _ACEOF
 15864     fi
 15866         if test "$XGETTEXT" != ":"; then
 15867                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 15868         : ;
 15869       else
 15870         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 15871 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 15872         XGETTEXT=":"
 15873       fi
 15874     fi
 15876     # We need to process the po/ directory.
 15877     POSUB=po
 15879     ac_config_commands="$ac_config_commands default-1"
 15882                 for lang in $ALL_LINGUAS; do
 15883       GMOFILES="$GMOFILES $lang.gmo"
 15884       POFILES="$POFILES $lang.po"
 15885     done
 15899    if test "$gt_cv_have_gettext" = "yes"; then
 15900      if test "x$ALL_LINGUAS" = "x"; then
 15901        LINGUAS=
 15902      else
 15903        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 15904 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 15905        NEW_LINGUAS=
 15906        for presentlang in $ALL_LINGUAS; do
 15907          useit=no
 15908          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 15909            desiredlanguages="$LINGUAS"
 15910          else
 15911            desiredlanguages="$ALL_LINGUAS"
 15912          fi
 15913          for desiredlang in $desiredlanguages; do
 15914  	   # Use the presentlang catalog if desiredlang is
 15915            #   a. equal to presentlang, or
 15916            #   b. a variant of presentlang (because in this case,
 15917            #      presentlang can be used as a fallback for messages
 15918            #      which are not translated in the desiredlang catalog).
 15919            case "$desiredlang" in
 15920              "$presentlang"*) useit=yes;;
 15921            esac
 15922          done
 15923          if test $useit = yes; then
 15924            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 15925          fi
 15926        done
 15927        LINGUAS=$NEW_LINGUAS
 15928        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 15929 echo "${ECHO_T}$LINGUAS" >&6; }
 15930      fi
 15932           if test -n "$LINGUAS"; then
 15933        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 15934      fi
 15935    fi
 15937             MKINSTALLDIRS=
 15938    if test -n "$ac_aux_dir"; then
 15939      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 15940    fi
 15941    if test -z "$MKINSTALLDIRS"; then
 15942      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 15943    fi
 15946          test -d po || mkdir po
 15947    if test "x$srcdir" != "x."; then
 15948      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 15949        posrcprefix="$srcdir/"
 15950      else
 15951        posrcprefix="../$srcdir/"
 15952      fi
 15953    else
 15954      posrcprefix="../"
 15955    fi
 15956    rm -f po/POTFILES
 15957    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 15958 	< $srcdir/po/POTFILES.in > po/POTFILES
 15961 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
 15963 cat >confcache <<\_ACEOF
 15964 # This file is a shell script that caches the results of configure
 15965 # tests run on this system so they can be shared between configure
 15966 # scripts and configure runs, see configure's option --config-cache.
 15967 # It is not useful on other systems.  If it contains results you don't
 15968 # want to keep, you may remove or edit it.
 15970 # config.status only pays attention to the cache file if you give it
 15971 # the --recheck option to rerun configure.
 15973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 15974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 15975 # following values.
 15977 _ACEOF
 15979 # The following way of writing the cache mishandles newlines in values,
 15980 # but we know of no workaround that is simple, portable, and efficient.
 15981 # So, we kill variables containing newlines.
 15982 # Ultrix sh set writes to stderr and can't be redirected directly,
 15983 # and sets the high bit in the cache file unless we assign to the vars.
 15985   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 15986     eval ac_val=\$$ac_var
 15987     case $ac_val in #(
 15988     *${as_nl}*)
 15989       case $ac_var in #(
 15990       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 15991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 15992       esac
 15993       case $ac_var in #(
 15994       _ | IFS | as_nl) ;; #(
 15995       *) $as_unset $ac_var ;;
 15996       esac ;;
 15997     esac
 15998   done
 16000   (set) 2>&1 |
 16001     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 16002     *${as_nl}ac_space=\ *)
 16003       # `set' does not quote correctly, so add quotes (double-quote
 16004       # substitution turns \\\\ into \\, and sed turns \\ into \).
 16005       sed -n \
 16006 	"s/'/'\\\\''/g;
 16007 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 16008       ;; #(
 16009     *)
 16010       # `set' quotes correctly as required by POSIX, so do not add quotes.
 16011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 16012       ;;
 16013     esac |
 16014     sort
 16015 ) |
 16016   sed '
 16017      /^ac_cv_env_/b end
 16018      t clear
 16019      :clear
 16020      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 16021      t end
 16022      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 16023      :end' >>confcache
 16024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 16025   if test -w "$cache_file"; then
 16026     test "x$cache_file" != "x/dev/null" &&
 16027       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 16028 echo "$as_me: updating cache $cache_file" >&6;}
 16029     cat confcache >$cache_file
 16030   else
 16031     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 16032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 16033   fi
 16034 fi
 16035 rm -f confcache
 16037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 16038 # Let make expand exec_prefix.
 16039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 16041 DEFS=-DHAVE_CONFIG_H
 16043 ac_libobjs=
 16044 ac_ltlibobjs=
 16045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 16046   # 1. Remove the extension, and $U if already installed.
 16047   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 16048   ac_i=`echo "$ac_i" | sed "$ac_script"`
 16049   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 16050   #    will be set to the directory where LIBOBJS objects are built.
 16051   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 16052   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 16053 done
 16054 LIBOBJS=$ac_libobjs
 16056 LTLIBOBJS=$ac_ltlibobjs
 16059 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 16060   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 16061 Usually this means the macro was only invoked conditionally." >&5
 16062 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 16063 Usually this means the macro was only invoked conditionally." >&2;}
 16064    { (exit 1); exit 1; }; }
 16065 fi
 16066 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
 16067   { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
 16068 Usually this means the macro was only invoked conditionally." >&5
 16069 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
 16070 Usually this means the macro was only invoked conditionally." >&2;}
 16071    { (exit 1); exit 1; }; }
 16072 fi
 16073 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 16074   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 16075 Usually this means the macro was only invoked conditionally." >&5
 16076 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 16077 Usually this means the macro was only invoked conditionally." >&2;}
 16078    { (exit 1); exit 1; }; }
 16079 fi
 16080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16081   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16082 Usually this means the macro was only invoked conditionally." >&5
 16083 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16084 Usually this means the macro was only invoked conditionally." >&2;}
 16085    { (exit 1); exit 1; }; }
 16086 fi
 16087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16088   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16089 Usually this means the macro was only invoked conditionally." >&5
 16090 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16091 Usually this means the macro was only invoked conditionally." >&2;}
 16092    { (exit 1); exit 1; }; }
 16093 fi
 16094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16095   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16096 Usually this means the macro was only invoked conditionally." >&5
 16097 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16098 Usually this means the macro was only invoked conditionally." >&2;}
 16099    { (exit 1); exit 1; }; }
 16100 fi
 16101 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
 16102   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16103 Usually this means the macro was only invoked conditionally." >&5
 16104 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
 16105 Usually this means the macro was only invoked conditionally." >&2;}
 16106    { (exit 1); exit 1; }; }
 16107 fi
 16108 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 16109   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 16110 Usually this means the macro was only invoked conditionally." >&5
 16111 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 16112 Usually this means the macro was only invoked conditionally." >&2;}
 16113    { (exit 1); exit 1; }; }
 16114 fi
 16115 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 16116   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 16117 Usually this means the macro was only invoked conditionally." >&5
 16118 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 16119 Usually this means the macro was only invoked conditionally." >&2;}
 16120    { (exit 1); exit 1; }; }
 16121 fi
 16122 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
 16123   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
 16124 Usually this means the macro was only invoked conditionally." >&5
 16125 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
 16126 Usually this means the macro was only invoked conditionally." >&2;}
 16127    { (exit 1); exit 1; }; }
 16128 fi
 16129 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 16130   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 16131 Usually this means the macro was only invoked conditionally." >&5
 16132 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 16133 Usually this means the macro was only invoked conditionally." >&2;}
 16134    { (exit 1); exit 1; }; }
 16135 fi
 16136 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 16137   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 16138 Usually this means the macro was only invoked conditionally." >&5
 16139 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 16140 Usually this means the macro was only invoked conditionally." >&2;}
 16141    { (exit 1); exit 1; }; }
 16142 fi
 16143 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 16144   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 16145 Usually this means the macro was only invoked conditionally." >&5
 16146 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 16147 Usually this means the macro was only invoked conditionally." >&2;}
 16148    { (exit 1); exit 1; }; }
 16149 fi
 16150 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 16151   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 16152 Usually this means the macro was only invoked conditionally." >&5
 16153 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 16154 Usually this means the macro was only invoked conditionally." >&2;}
 16155    { (exit 1); exit 1; }; }
 16156 fi
 16157 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 16158   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 16159 Usually this means the macro was only invoked conditionally." >&5
 16160 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 16161 Usually this means the macro was only invoked conditionally." >&2;}
 16162    { (exit 1); exit 1; }; }
 16163 fi
 16164 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 16165   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 16166 Usually this means the macro was only invoked conditionally." >&5
 16167 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 16168 Usually this means the macro was only invoked conditionally." >&2;}
 16169    { (exit 1); exit 1; }; }
 16170 fi
 16171 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
 16172   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
 16173 Usually this means the macro was only invoked conditionally." >&5
 16174 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
 16175 Usually this means the macro was only invoked conditionally." >&2;}
 16176    { (exit 1); exit 1; }; }
 16177 fi
 16178 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 16179   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 16180 Usually this means the macro was only invoked conditionally." >&5
 16181 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 16182 Usually this means the macro was only invoked conditionally." >&2;}
 16183    { (exit 1); exit 1; }; }
 16184 fi
 16185 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 16186   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 16187 Usually this means the macro was only invoked conditionally." >&5
 16188 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 16189 Usually this means the macro was only invoked conditionally." >&2;}
 16190    { (exit 1); exit 1; }; }
 16191 fi
 16192 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 16193   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 16194 Usually this means the macro was only invoked conditionally." >&5
 16195 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 16196 Usually this means the macro was only invoked conditionally." >&2;}
 16197    { (exit 1); exit 1; }; }
 16198 fi
 16199 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 16200   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 16201 Usually this means the macro was only invoked conditionally." >&5
 16202 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 16203 Usually this means the macro was only invoked conditionally." >&2;}
 16204    { (exit 1); exit 1; }; }
 16205 fi
 16206 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 16207   { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 16208 Usually this means the macro was only invoked conditionally." >&5
 16209 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 16210 Usually this means the macro was only invoked conditionally." >&2;}
 16211    { (exit 1); exit 1; }; }
 16212 fi
 16213 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 16214   { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 16215 Usually this means the macro was only invoked conditionally." >&5
 16216 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 16217 Usually this means the macro was only invoked conditionally." >&2;}
 16218    { (exit 1); exit 1; }; }
 16219 fi
 16220 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 16221   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 16222 Usually this means the macro was only invoked conditionally." >&5
 16223 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 16224 Usually this means the macro was only invoked conditionally." >&2;}
 16225    { (exit 1); exit 1; }; }
 16226 fi
 16227 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
 16228   { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
 16229 Usually this means the macro was only invoked conditionally." >&5
 16230 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
 16231 Usually this means the macro was only invoked conditionally." >&2;}
 16232    { (exit 1); exit 1; }; }
 16233 fi
 16234 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 16235   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 16236 Usually this means the macro was only invoked conditionally." >&5
 16237 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 16238 Usually this means the macro was only invoked conditionally." >&2;}
 16239    { (exit 1); exit 1; }; }
 16240 fi
 16241 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 16242   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 16243 Usually this means the macro was only invoked conditionally." >&5
 16244 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 16245 Usually this means the macro was only invoked conditionally." >&2;}
 16246    { (exit 1); exit 1; }; }
 16247 fi
 16249 : ${CONFIG_STATUS=./config.status}
 16250 ac_clean_files_save=$ac_clean_files
 16251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16254 cat >$CONFIG_STATUS <<_ACEOF
 16255 #! $SHELL
 16256 # Generated by $as_me.
 16257 # Run this file to recreate the current configuration.
 16258 # Compiler output produced by configure, useful for debugging
 16259 # configure, is in config.log if it exists.
 16261 debug=false
 16262 ac_cs_recheck=false
 16263 ac_cs_silent=false
 16264 SHELL=\${CONFIG_SHELL-$SHELL}
 16265 _ACEOF
 16267 cat >>$CONFIG_STATUS <<\_ACEOF
 16268 ## --------------------- ##
 16269 ## M4sh Initialization.  ##
 16270 ## --------------------- ##
 16272 # Be more Bourne compatible
 16273 DUALCASE=1; export DUALCASE # for MKS sh
 16274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16275   emulate sh
 16276   NULLCMD=:
 16277   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16278   # is contrary to our usage.  Disable this feature.
 16279   alias -g '${1+"$@"}'='"$@"'
 16280   setopt NO_GLOB_SUBST
 16281 else
 16282   case `(set -o) 2>/dev/null` in
 16283   *posix*) set -o posix ;;
 16284 esac
 16286 fi
 16291 # PATH needs CR
 16292 # Avoid depending upon Character Ranges.
 16293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16296 as_cr_digits='0123456789'
 16297 as_cr_alnum=$as_cr_Letters$as_cr_digits
 16299 # The user is always right.
 16300 if test "${PATH_SEPARATOR+set}" != set; then
 16301   echo "#! /bin/sh" >conf$$.sh
 16302   echo  "exit 0"   >>conf$$.sh
 16303   chmod +x conf$$.sh
 16304   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16305     PATH_SEPARATOR=';'
 16306   else
 16307     PATH_SEPARATOR=:
 16308   fi
 16309   rm -f conf$$.sh
 16310 fi
 16312 # Support unset when possible.
 16313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16314   as_unset=unset
 16315 else
 16316   as_unset=false
 16317 fi
 16320 # IFS
 16321 # We need space, tab and new line, in precisely that order.  Quoting is
 16322 # there to prevent editors from complaining about space-tab.
 16323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 16324 # splitting by setting IFS to empty value.)
 16325 as_nl='
 16327 IFS=" ""	$as_nl"
 16329 # Find who we are.  Look in the path if we contain no directory separator.
 16330 case $0 in
 16331   *[\\/]* ) as_myself=$0 ;;
 16332   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16333 for as_dir in $PATH
 16334 do
 16335   IFS=$as_save_IFS
 16336   test -z "$as_dir" && as_dir=.
 16337   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16338 done
 16339 IFS=$as_save_IFS
 16341      ;;
 16342 esac
 16343 # We did not find ourselves, most probably we were run as `sh COMMAND'
 16344 # in which case we are not to be found in the path.
 16345 if test "x$as_myself" = x; then
 16346   as_myself=$0
 16347 fi
 16348 if test ! -f "$as_myself"; then
 16349   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 16350   { (exit 1); exit 1; }
 16351 fi
 16353 # Work around bugs in pre-3.0 UWIN ksh.
 16354 for as_var in ENV MAIL MAILPATH
 16355 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16356 done
 16357 PS1='$ '
 16358 PS2='> '
 16359 PS4='+ '
 16361 # NLS nuisances.
 16362 for as_var in \
 16363   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16364   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16365   LC_TELEPHONE LC_TIME
 16366 do
 16367   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16368     eval $as_var=C; export $as_var
 16369   else
 16370     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 16371   fi
 16372 done
 16374 # Required to use basename.
 16375 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16377   as_expr=expr
 16378 else
 16379   as_expr=false
 16380 fi
 16382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 16383   as_basename=basename
 16384 else
 16385   as_basename=false
 16386 fi
 16389 # Name of the executable.
 16390 as_me=`$as_basename -- "$0" ||
 16391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16392 	 X"$0" : 'X\(//\)$' \| \
 16393 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 16394 echo X/"$0" |
 16395     sed '/^.*\/\([^/][^/]*\)\/*$/{
 16396 	    s//\1/
 16399 	  /^X\/\(\/\/\)$/{
 16400 	    s//\1/
 16403 	  /^X\/\(\/\).*/{
 16404 	    s//\1/
 16407 	  s/.*/./; q'`
 16409 # CDPATH.
 16410 $as_unset CDPATH
 16414   as_lineno_1=$LINENO
 16415   as_lineno_2=$LINENO
 16416   test "x$as_lineno_1" != "x$as_lineno_2" &&
 16417   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 16419   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16420   # uniformly replaced by the line number.  The first 'sed' inserts a
 16421   # line-number line after each line using $LINENO; the second 'sed'
 16422   # does the real work.  The second script uses 'N' to pair each
 16423   # line-number line with the line containing $LINENO, and appends
 16424   # trailing '-' during substitution so that $LINENO is not a special
 16425   # case at line end.
 16426   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16427   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 16428   # E. McMahon (1931-1989) for sed's syntax.  :-)
 16429   sed -n '
 16431     /[$]LINENO/=
 16432   ' <$as_myself |
 16433     sed '
 16434       s/[$]LINENO.*/&-/
 16435       t lineno
 16437       :lineno
 16439       :loop
 16440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 16441       t loop
 16442       s/-\n.*//
 16443     ' >$as_me.lineno &&
 16444   chmod +x "$as_me.lineno" ||
 16445     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 16446    { (exit 1); exit 1; }; }
 16448   # Don't try to exec as it changes $[0], causing all sort of problems
 16449   # (the dirname of $[0] is not the place where we might find the
 16450   # original and so on.  Autoconf is especially sensitive to this).
 16451   . "./$as_me.lineno"
 16452   # Exit status is that of the last command.
 16453   exit
 16457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 16458   as_dirname=dirname
 16459 else
 16460   as_dirname=false
 16461 fi
 16463 ECHO_C= ECHO_N= ECHO_T=
 16464 case `echo -n x` in
 16465 -n*)
 16466   case `echo 'x\c'` in
 16467   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 16468   *)   ECHO_C='\c';;
 16469   esac;;
 16470 *)
 16471   ECHO_N='-n';;
 16472 esac
 16474 if expr a : '\(a\)' >/dev/null 2>&1 &&
 16475    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 16476   as_expr=expr
 16477 else
 16478   as_expr=false
 16479 fi
 16481 rm -f conf$$ conf$$.exe conf$$.file
 16482 if test -d conf$$.dir; then
 16483   rm -f conf$$.dir/conf$$.file
 16484 else
 16485   rm -f conf$$.dir
 16486   mkdir conf$$.dir
 16487 fi
 16488 echo >conf$$.file
 16489 if ln -s conf$$.file conf$$ 2>/dev/null; then
 16490   as_ln_s='ln -s'
 16491   # ... but there are two gotchas:
 16492   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 16493   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 16494   # In both cases, we have to default to `cp -p'.
 16495   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 16496     as_ln_s='cp -p'
 16497 elif ln conf$$.file conf$$ 2>/dev/null; then
 16498   as_ln_s=ln
 16499 else
 16500   as_ln_s='cp -p'
 16501 fi
 16502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 16503 rmdir conf$$.dir 2>/dev/null
 16505 if mkdir -p . 2>/dev/null; then
 16506   as_mkdir_p=:
 16507 else
 16508   test -d ./-p && rmdir ./-p
 16509   as_mkdir_p=false
 16510 fi
 16512 if test -x / >/dev/null 2>&1; then
 16513   as_test_x='test -x'
 16514 else
 16515   if ls -dL / >/dev/null 2>&1; then
 16516     as_ls_L_option=L
 16517   else
 16518     as_ls_L_option=
 16519   fi
 16520   as_test_x='
 16521     eval sh -c '\''
 16522       if test -d "$1"; then
 16523         test -d "$1/.";
 16524       else
 16525 	case $1 in
 16526         -*)set "./$1";;
 16527 	esac;
 16528 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 16529 	???[sx]*):;;*)false;;esac;fi
 16530     '\'' sh
 16532 fi
 16533 as_executable_p=$as_test_x
 16535 # Sed expression to map a string onto a valid CPP name.
 16536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16538 # Sed expression to map a string onto a valid variable name.
 16539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16542 exec 6>&1
 16544 # Save the log message, to keep $[0] and so on meaningful, and to
 16545 # report actual input values of CONFIG_FILES etc. instead of their
 16546 # values after options handling.
 16547 ac_log="
 16548 This file was extended by $as_me, which was
 16549 generated by GNU Autoconf 2.61.  Invocation command line was
 16551   CONFIG_FILES    = $CONFIG_FILES
 16552   CONFIG_HEADERS  = $CONFIG_HEADERS
 16553   CONFIG_LINKS    = $CONFIG_LINKS
 16554   CONFIG_COMMANDS = $CONFIG_COMMANDS
 16555   $ $0 $@
 16557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 16560 _ACEOF
 16562 cat >>$CONFIG_STATUS <<_ACEOF
 16563 # Files that config.status was made for.
 16564 config_files="$ac_config_files"
 16565 config_headers="$ac_config_headers"
 16566 config_commands="$ac_config_commands"
 16568 _ACEOF
 16570 cat >>$CONFIG_STATUS <<\_ACEOF
 16571 ac_cs_usage="\
 16572 \`$as_me' instantiates files from templates according to the
 16573 current configuration.
 16575 Usage: $0 [OPTIONS] [FILE]...
 16577   -h, --help       print this help, then exit
 16578   -V, --version    print version number and configuration settings, then exit
 16579   -q, --quiet      do not print progress messages
 16580   -d, --debug      don't remove temporary files
 16581       --recheck    update $as_me by reconfiguring in the same conditions
 16582   --file=FILE[:TEMPLATE]
 16583 		   instantiate the configuration file FILE
 16584   --header=FILE[:TEMPLATE]
 16585 		   instantiate the configuration header FILE
 16587 Configuration files:
 16588 $config_files
 16590 Configuration headers:
 16591 $config_headers
 16593 Configuration commands:
 16594 $config_commands
 16596 Report bugs to <bug-autoconf@gnu.org>."
 16598 _ACEOF
 16599 cat >>$CONFIG_STATUS <<_ACEOF
 16600 ac_cs_version="\\
 16601 config.status
 16602 configured by $0, generated by GNU Autoconf 2.61,
 16603   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 16605 Copyright (C) 2006 Free Software Foundation, Inc.
 16606 This config.status script is free software; the Free Software Foundation
 16607 gives unlimited permission to copy, distribute and modify it."
 16609 ac_pwd='$ac_pwd'
 16610 srcdir='$srcdir'
 16611 INSTALL='$INSTALL'
 16612 _ACEOF
 16614 cat >>$CONFIG_STATUS <<\_ACEOF
 16615 # If no file are specified by the user, then we need to provide default
 16616 # value.  By we need to know if files were specified by the user.
 16617 ac_need_defaults=:
 16618 while test $# != 0
 16619 do
 16620   case $1 in
 16621   --*=*)
 16622     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 16623     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 16624     ac_shift=:
 16625     ;;
 16626   *)
 16627     ac_option=$1
 16628     ac_optarg=$2
 16629     ac_shift=shift
 16630     ;;
 16631   esac
 16633   case $ac_option in
 16634   # Handling of the options.
 16635   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16636     ac_cs_recheck=: ;;
 16637   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 16638     echo "$ac_cs_version"; exit ;;
 16639   --debug | --debu | --deb | --de | --d | -d )
 16640     debug=: ;;
 16641   --file | --fil | --fi | --f )
 16642     $ac_shift
 16643     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16644     ac_need_defaults=false;;
 16645   --header | --heade | --head | --hea )
 16646     $ac_shift
 16647     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16648     ac_need_defaults=false;;
 16649   --he | --h)
 16650     # Conflict between --help and --header
 16651     { echo "$as_me: error: ambiguous option: $1
 16652 Try \`$0 --help' for more information." >&2
 16653    { (exit 1); exit 1; }; };;
 16654   --help | --hel | -h )
 16655     echo "$ac_cs_usage"; exit ;;
 16656   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16657   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16658     ac_cs_silent=: ;;
 16660   # This is an error.
 16661   -*) { echo "$as_me: error: unrecognized option: $1
 16662 Try \`$0 --help' for more information." >&2
 16663    { (exit 1); exit 1; }; } ;;
 16665   *) ac_config_targets="$ac_config_targets $1"
 16666      ac_need_defaults=false ;;
 16668   esac
 16669   shift
 16670 done
 16672 ac_configure_extra_args=
 16674 if $ac_cs_silent; then
 16675   exec 6>/dev/null
 16676   ac_configure_extra_args="$ac_configure_extra_args --silent"
 16677 fi
 16679 _ACEOF
 16680 cat >>$CONFIG_STATUS <<_ACEOF
 16681 if \$ac_cs_recheck; then
 16682   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16683   CONFIG_SHELL=$SHELL
 16684   export CONFIG_SHELL
 16685   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16686 fi
 16688 _ACEOF
 16689 cat >>$CONFIG_STATUS <<\_ACEOF
 16690 exec 5>>config.log
 16692   echo
 16693   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16694 ## Running $as_me. ##
 16695 _ASBOX
 16696   echo "$ac_log"
 16697 } >&5
 16699 _ACEOF
 16700 cat >>$CONFIG_STATUS <<_ACEOF
 16702 # INIT-COMMANDS
 16704 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16707 _ACEOF
 16709 cat >>$CONFIG_STATUS <<\_ACEOF
 16711 # Handling of arguments.
 16712 for ac_config_target in $ac_config_targets
 16713 do
 16714   case $ac_config_target in
 16715     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 16716     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16717     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 16718     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16719     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 16720     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 16721     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 16722     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 16723     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 16725   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16727    { (exit 1); exit 1; }; };;
 16728   esac
 16729 done
 16732 # If the user did not use the arguments to specify the items to instantiate,
 16733 # then the envvar interface is used.  Set only those that are not.
 16734 # We use the long form for the default assignment because of an extremely
 16735 # bizarre bug on SunOS 4.1.3.
 16736 if $ac_need_defaults; then
 16737   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16738   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 16739   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16740 fi
 16742 # Have a temporary directory for convenience.  Make it in the build tree
 16743 # simply because there is no reason against having it here, and in addition,
 16744 # creating and moving files from /tmp can sometimes cause problems.
 16745 # Hook for its removal unless debugging.
 16746 # Note that there is a small window in which the directory will not be cleaned:
 16747 # after its creation but before its name has been assigned to `$tmp'.
 16748 $debug ||
 16750   tmp=
 16751   trap 'exit_status=$?
 16752   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 16753 ' 0
 16754   trap '{ (exit 1); exit 1; }' 1 2 13 15
 16756 # Create a (secure) tmp directory for tmp files.
 16759   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 16760   test -n "$tmp" && test -d "$tmp"
 16761 }  ||
 16763   tmp=./conf$$-$RANDOM
 16764   (umask 077 && mkdir "$tmp")
 16765 } ||
 16767    echo "$me: cannot create a temporary directory in ." >&2
 16768    { (exit 1); exit 1; }
 16772 # Set up the sed scripts for CONFIG_FILES section.
 16775 # No need to generate the scripts if there are no CONFIG_FILES.
 16776 # This happens for instance when ./config.status config.h
 16777 if test -n "$CONFIG_FILES"; then
 16779 _ACEOF
 16783 ac_delim='%!_!# '
 16784 for ac_last_try in false false false false false :; do
 16785   cat >conf$$subs.sed <<_ACEOF
 16786 SHELL!$SHELL$ac_delim
 16787 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 16788 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 16789 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 16790 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 16791 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 16792 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 16793 exec_prefix!$exec_prefix$ac_delim
 16794 prefix!$prefix$ac_delim
 16795 program_transform_name!$program_transform_name$ac_delim
 16796 bindir!$bindir$ac_delim
 16797 sbindir!$sbindir$ac_delim
 16798 libexecdir!$libexecdir$ac_delim
 16799 datarootdir!$datarootdir$ac_delim
 16800 datadir!$datadir$ac_delim
 16801 sysconfdir!$sysconfdir$ac_delim
 16802 sharedstatedir!$sharedstatedir$ac_delim
 16803 localstatedir!$localstatedir$ac_delim
 16804 includedir!$includedir$ac_delim
 16805 oldincludedir!$oldincludedir$ac_delim
 16806 docdir!$docdir$ac_delim
 16807 infodir!$infodir$ac_delim
 16808 htmldir!$htmldir$ac_delim
 16809 dvidir!$dvidir$ac_delim
 16810 pdfdir!$pdfdir$ac_delim
 16811 psdir!$psdir$ac_delim
 16812 libdir!$libdir$ac_delim
 16813 localedir!$localedir$ac_delim
 16814 mandir!$mandir$ac_delim
 16815 DEFS!$DEFS$ac_delim
 16816 ECHO_C!$ECHO_C$ac_delim
 16817 ECHO_N!$ECHO_N$ac_delim
 16818 ECHO_T!$ECHO_T$ac_delim
 16819 LIBS!$LIBS$ac_delim
 16820 build_alias!$build_alias$ac_delim
 16821 host_alias!$host_alias$ac_delim
 16822 target_alias!$target_alias$ac_delim
 16823 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 16824 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 16825 INSTALL_DATA!$INSTALL_DATA$ac_delim
 16826 CYGPATH_W!$CYGPATH_W$ac_delim
 16827 PACKAGE!$PACKAGE$ac_delim
 16828 VERSION!$VERSION$ac_delim
 16829 ACLOCAL!$ACLOCAL$ac_delim
 16830 AUTOCONF!$AUTOCONF$ac_delim
 16831 AUTOMAKE!$AUTOMAKE$ac_delim
 16832 AUTOHEADER!$AUTOHEADER$ac_delim
 16833 MAKEINFO!$MAKEINFO$ac_delim
 16834 install_sh!$install_sh$ac_delim
 16835 STRIP!$STRIP$ac_delim
 16836 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 16837 mkdir_p!$mkdir_p$ac_delim
 16838 AWK!$AWK$ac_delim
 16839 SET_MAKE!$SET_MAKE$ac_delim
 16840 am__leading_dot!$am__leading_dot$ac_delim
 16841 AMTAR!$AMTAR$ac_delim
 16842 am__tar!$am__tar$ac_delim
 16843 am__untar!$am__untar$ac_delim
 16844 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 16845 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 16846 MAINT!$MAINT$ac_delim
 16847 build!$build$ac_delim
 16848 build_cpu!$build_cpu$ac_delim
 16849 build_vendor!$build_vendor$ac_delim
 16850 build_os!$build_os$ac_delim
 16851 host!$host$ac_delim
 16852 host_cpu!$host_cpu$ac_delim
 16853 host_vendor!$host_vendor$ac_delim
 16854 host_os!$host_os$ac_delim
 16855 ANT!$ANT$ac_delim
 16856 ANDROID_ABI!$ANDROID_ABI$ac_delim
 16857 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
 16858 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
 16859 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
 16860 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
 16861 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
 16862 GDB!$GDB$ac_delim
 16863 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
 16864 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
 16865 CC!$CC$ac_delim
 16866 CFLAGS!$CFLAGS$ac_delim
 16867 LDFLAGS!$LDFLAGS$ac_delim
 16868 CPPFLAGS!$CPPFLAGS$ac_delim
 16869 ac_ct_CC!$ac_ct_CC$ac_delim
 16870 EXEEXT!$EXEEXT$ac_delim
 16871 OBJEXT!$OBJEXT$ac_delim
 16872 DEPDIR!$DEPDIR$ac_delim
 16873 am__include!$am__include$ac_delim
 16874 am__quote!$am__quote$ac_delim
 16875 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 16876 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 16877 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 16878 CCDEPMODE!$CCDEPMODE$ac_delim
 16879 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 16880 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 16881 CPP!$CPP$ac_delim
 16882 CC!$CC$ac_delim
 16883 _ACEOF
 16885   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 16886     break
 16887   elif $ac_last_try; then
 16888     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 16889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 16890    { (exit 1); exit 1; }; }
 16891   else
 16892     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 16893   fi
 16894 done
 16896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 16897 if test -n "$ac_eof"; then
 16898   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 16899   ac_eof=`expr $ac_eof + 1`
 16900 fi
 16902 cat >>$CONFIG_STATUS <<_ACEOF
 16903 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 16904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16905 _ACEOF
 16906 sed '
 16907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 16908 s/^/s,@/; s/!/@,|#_!!_#|/
 16909 :n
 16910 t n
 16911 s/'"$ac_delim"'$/,g/; t
 16912 s/$/\\/; p
 16913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 16914 ' >>$CONFIG_STATUS <conf$$subs.sed
 16915 rm -f conf$$subs.sed
 16916 cat >>$CONFIG_STATUS <<_ACEOF
 16917 CEOF$ac_eof
 16918 _ACEOF
 16921 ac_delim='%!_!# '
 16922 for ac_last_try in false false false false false :; do
 16923   cat >conf$$subs.sed <<_ACEOF
 16924 CFLAGS!$CFLAGS$ac_delim
 16925 CPPFLAGS!$CPPFLAGS$ac_delim
 16926 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 16927 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
 16928 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
 16929 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
 16930 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
 16931 CPP!$CPP$ac_delim
 16932 CPPFLAGS!$CPPFLAGS$ac_delim
 16933 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
 16934 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
 16935 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
 16936 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
 16937 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
 16938 OBJC!$OBJC$ac_delim
 16939 OBJCFLAGS!$OBJCFLAGS$ac_delim
 16940 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
 16941 SED!$SED$ac_delim
 16942 CCAS!$CCAS$ac_delim
 16943 CCASFLAGS!$CCASFLAGS$ac_delim
 16944 RANLIB!$RANLIB$ac_delim
 16945 GREP!$GREP$ac_delim
 16946 EGREP!$EGREP$ac_delim
 16947 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
 16948 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
 16949 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
 16950 POD2MAN!$POD2MAN$ac_delim
 16951 POD2HTML!$POD2HTML$ac_delim
 16952 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 16953 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 16954 SOEXT!$SOEXT$ac_delim
 16955 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
 16956 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
 16957 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
 16958 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
 16959 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
 16960 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
 16961 PKG_CONFIG!$PKG_CONFIG$ac_delim
 16962 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 16963 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 16964 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
 16965 GLIB_LIBS!$GLIB_LIBS$ac_delim
 16966 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 16967 GTK_LIBS!$GTK_LIBS$ac_delim
 16968 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
 16969 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
 16970 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 16971 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 16972 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
 16973 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
 16974 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
 16975 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
 16976 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 16977 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 16978 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 16979 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 16980 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 16981 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 16982 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 16983 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 16984 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
 16985 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
 16986 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 16987 SDL_LIBS!$SDL_LIBS$ac_delim
 16988 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
 16989 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
 16990 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 16991 PULSE_LIBS!$PULSE_LIBS$ac_delim
 16992 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 16993 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 16994 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 16995 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 16996 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 16997 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 16998 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 16999 ALSA_LIBS!$ALSA_LIBS$ac_delim
 17000 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 17001 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 17002 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 17003 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 17004 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
 17005 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
 17006 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
 17007 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
 17008 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 17009 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 17010 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
 17011 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
 17012 SHCC!$SHCC$ac_delim
 17013 SHLD!$SHLD$ac_delim
 17014 SHOBJCOPY!$SHOBJCOPY$ac_delim
 17015 ARMCC!$ARMCC$ac_delim
 17016 ARMLD!$ARMLD$ac_delim
 17017 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 17018 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 17019 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 17020 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 17021 _ACEOF
 17023   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 17024     break
 17025   elif $ac_last_try; then
 17026     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17027 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17028    { (exit 1); exit 1; }; }
 17029   else
 17030     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17031   fi
 17032 done
 17034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17035 if test -n "$ac_eof"; then
 17036   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17037   ac_eof=`expr $ac_eof + 1`
 17038 fi
 17040 cat >>$CONFIG_STATUS <<_ACEOF
 17041 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 17042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17043 _ACEOF
 17044 sed '
 17045 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17046 s/^/s,@/; s/!/@,|#_!!_#|/
 17047 :n
 17048 t n
 17049 s/'"$ac_delim"'$/,g/; t
 17050 s/$/\\/; p
 17051 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17052 ' >>$CONFIG_STATUS <conf$$subs.sed
 17053 rm -f conf$$subs.sed
 17054 cat >>$CONFIG_STATUS <<_ACEOF
 17055 CEOF$ac_eof
 17056 _ACEOF
 17059 ac_delim='%!_!# '
 17060 for ac_last_try in false false false false false :; do
 17061   cat >conf$$subs.sed <<_ACEOF
 17062 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 17063 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
 17064 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 17065 USE_NLS!$USE_NLS$ac_delim
 17066 MSGFMT!$MSGFMT$ac_delim
 17067 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 17068 GMSGFMT!$GMSGFMT$ac_delim
 17069 XGETTEXT!$XGETTEXT$ac_delim
 17070 CATALOGS!$CATALOGS$ac_delim
 17071 CATOBJEXT!$CATOBJEXT$ac_delim
 17072 DATADIRNAME!$DATADIRNAME$ac_delim
 17073 GMOFILES!$GMOFILES$ac_delim
 17074 INSTOBJEXT!$INSTOBJEXT$ac_delim
 17075 INTLLIBS!$INTLLIBS$ac_delim
 17076 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 17077 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 17078 POFILES!$POFILES$ac_delim
 17079 POSUB!$POSUB$ac_delim
 17080 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 17081 LIBOBJS!$LIBOBJS$ac_delim
 17082 LTLIBOBJS!$LTLIBOBJS$ac_delim
 17083 _ACEOF
 17085   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
 17086     break
 17087   elif $ac_last_try; then
 17088     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 17089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 17090    { (exit 1); exit 1; }; }
 17091   else
 17092     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 17093   fi
 17094 done
 17096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 17097 if test -n "$ac_eof"; then
 17098   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 17099   ac_eof=`expr $ac_eof + 1`
 17100 fi
 17102 cat >>$CONFIG_STATUS <<_ACEOF
 17103 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 17104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 17105 _ACEOF
 17106 sed '
 17107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 17108 s/^/s,@/; s/!/@,|#_!!_#|/
 17109 :n
 17110 t n
 17111 s/'"$ac_delim"'$/,g/; t
 17112 s/$/\\/; p
 17113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 17114 ' >>$CONFIG_STATUS <conf$$subs.sed
 17115 rm -f conf$$subs.sed
 17116 cat >>$CONFIG_STATUS <<_ACEOF
 17117 :end
 17118 s/|#_!!_#|//g
 17119 CEOF$ac_eof
 17120 _ACEOF
 17123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 17124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 17125 # trailing colons and then remove the whole line if VPATH becomes empty
 17126 # (actually we leave an empty line to preserve line numbers).
 17127 if test "x$srcdir" = x.; then
 17128   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 17129 s/:*\$(srcdir):*/:/
 17130 s/:*\${srcdir}:*/:/
 17131 s/:*@srcdir@:*/:/
 17132 s/^\([^=]*=[	 ]*\):*/\1/
 17133 s/:*$//
 17134 s/^[^=]*=[	 ]*$//
 17135 }'
 17136 fi
 17138 cat >>$CONFIG_STATUS <<\_ACEOF
 17139 fi # test -n "$CONFIG_FILES"
 17142 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 17143 do
 17144   case $ac_tag in
 17145   :[FHLC]) ac_mode=$ac_tag; continue;;
 17146   esac
 17147   case $ac_mode$ac_tag in
 17148   :[FHL]*:*);;
 17149   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 17150 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 17151    { (exit 1); exit 1; }; };;
 17152   :[FH]-) ac_tag=-:-;;
 17153   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 17154   esac
 17155   ac_save_IFS=$IFS
 17156   IFS=:
 17157   set x $ac_tag
 17158   IFS=$ac_save_IFS
 17159   shift
 17160   ac_file=$1
 17161   shift
 17163   case $ac_mode in
 17164   :L) ac_source=$1;;
 17165   :[FH])
 17166     ac_file_inputs=
 17167     for ac_f
 17168     do
 17169       case $ac_f in
 17170       -) ac_f="$tmp/stdin";;
 17171       *) # Look for the file first in the build tree, then in the source tree
 17172 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 17173 	 # because $ac_f cannot contain `:'.
 17174 	 test -f "$ac_f" ||
 17175 	   case $ac_f in
 17176 	   [\\/$]*) false;;
 17177 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 17178 	   esac ||
 17179 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 17180 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 17181    { (exit 1); exit 1; }; };;
 17182       esac
 17183       ac_file_inputs="$ac_file_inputs $ac_f"
 17184     done
 17186     # Let's still pretend it is `configure' which instantiates (i.e., don't
 17187     # use $as_me), people would be surprised to read:
 17188     #    /* config.h.  Generated by config.status.  */
 17189     configure_input="Generated from "`IFS=:
 17190 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 17191     if test x"$ac_file" != x-; then
 17192       configure_input="$ac_file.  $configure_input"
 17193       { echo "$as_me:$LINENO: creating $ac_file" >&5
 17194 echo "$as_me: creating $ac_file" >&6;}
 17195     fi
 17197     case $ac_tag in
 17198     *:-:* | *:-) cat >"$tmp/stdin";;
 17199     esac
 17200     ;;
 17201   esac
 17203   ac_dir=`$as_dirname -- "$ac_file" ||
 17204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17205 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 17206 	 X"$ac_file" : 'X\(//\)$' \| \
 17207 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 17208 echo X"$ac_file" |
 17209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17210 	    s//\1/
 17213 	  /^X\(\/\/\)[^/].*/{
 17214 	    s//\1/
 17217 	  /^X\(\/\/\)$/{
 17218 	    s//\1/
 17221 	  /^X\(\/\).*/{
 17222 	    s//\1/
 17225 	  s/.*/./; q'`
 17226   { as_dir="$ac_dir"
 17227   case $as_dir in #(
 17228   -*) as_dir=./$as_dir;;
 17229   esac
 17230   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17231     as_dirs=
 17232     while :; do
 17233       case $as_dir in #(
 17234       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17235       *) as_qdir=$as_dir;;
 17236       esac
 17237       as_dirs="'$as_qdir' $as_dirs"
 17238       as_dir=`$as_dirname -- "$as_dir" ||
 17239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17240 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17241 	 X"$as_dir" : 'X\(//\)$' \| \
 17242 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17243 echo X"$as_dir" |
 17244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17245 	    s//\1/
 17248 	  /^X\(\/\/\)[^/].*/{
 17249 	    s//\1/
 17252 	  /^X\(\/\/\)$/{
 17253 	    s//\1/
 17256 	  /^X\(\/\).*/{
 17257 	    s//\1/
 17260 	  s/.*/./; q'`
 17261       test -d "$as_dir" && break
 17262     done
 17263     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17264   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17266    { (exit 1); exit 1; }; }; }
 17267   ac_builddir=.
 17269 case "$ac_dir" in
 17270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17271 *)
 17272   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 17273   # A ".." for each directory in $ac_dir_suffix.
 17274   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 17275   case $ac_top_builddir_sub in
 17276   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 17277   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 17278   esac ;;
 17279 esac
 17280 ac_abs_top_builddir=$ac_pwd
 17281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 17282 # for backward compatibility:
 17283 ac_top_builddir=$ac_top_build_prefix
 17285 case $srcdir in
 17286   .)  # We are building in place.
 17287     ac_srcdir=.
 17288     ac_top_srcdir=$ac_top_builddir_sub
 17289     ac_abs_top_srcdir=$ac_pwd ;;
 17290   [\\/]* | ?:[\\/]* )  # Absolute name.
 17291     ac_srcdir=$srcdir$ac_dir_suffix;
 17292     ac_top_srcdir=$srcdir
 17293     ac_abs_top_srcdir=$srcdir ;;
 17294   *) # Relative name.
 17295     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 17296     ac_top_srcdir=$ac_top_build_prefix$srcdir
 17297     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 17298 esac
 17299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 17302   case $ac_mode in
 17303   :F)
 17305   # CONFIG_FILE
 17308   case $INSTALL in
 17309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 17310   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 17311   esac
 17312 _ACEOF
 17314 cat >>$CONFIG_STATUS <<\_ACEOF
 17315 # If the template does not know about datarootdir, expand it.
 17316 # FIXME: This hack should be removed a few years after 2.60.
 17317 ac_datarootdir_hack=; ac_datarootdir_seen=
 17319 case `sed -n '/datarootdir/ {
 17323 /@datadir@/p
 17324 /@docdir@/p
 17325 /@infodir@/p
 17326 /@localedir@/p
 17327 /@mandir@/p
 17328 ' $ac_file_inputs` in
 17329 *datarootdir*) ac_datarootdir_seen=yes;;
 17330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 17331   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 17332 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 17333 _ACEOF
 17334 cat >>$CONFIG_STATUS <<_ACEOF
 17335   ac_datarootdir_hack='
 17336   s&@datadir@&$datadir&g
 17337   s&@docdir@&$docdir&g
 17338   s&@infodir@&$infodir&g
 17339   s&@localedir@&$localedir&g
 17340   s&@mandir@&$mandir&g
 17341     s&\\\${datarootdir}&$datarootdir&g' ;;
 17342 esac
 17343 _ACEOF
 17345 # Neutralize VPATH when `$srcdir' = `.'.
 17346 # Shell code in configure.ac might set extrasub.
 17347 # FIXME: do we really want to maintain this feature?
 17348 cat >>$CONFIG_STATUS <<_ACEOF
 17349   sed "$ac_vpsub
 17350 $extrasub
 17351 _ACEOF
 17352 cat >>$CONFIG_STATUS <<\_ACEOF
 17353 :t
 17354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 17355 s&@configure_input@&$configure_input&;t t
 17356 s&@top_builddir@&$ac_top_builddir_sub&;t t
 17357 s&@srcdir@&$ac_srcdir&;t t
 17358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 17359 s&@top_srcdir@&$ac_top_srcdir&;t t
 17360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 17361 s&@builddir@&$ac_builddir&;t t
 17362 s&@abs_builddir@&$ac_abs_builddir&;t t
 17363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 17364 s&@INSTALL@&$ac_INSTALL&;t t
 17365 $ac_datarootdir_hack
 17366 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 17368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 17369   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 17370   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 17371   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17372 which seems to be undefined.  Please make sure it is defined." >&5
 17373 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 17374 which seems to be undefined.  Please make sure it is defined." >&2;}
 17376   rm -f "$tmp/stdin"
 17377   case $ac_file in
 17378   -) cat "$tmp/out"; rm -f "$tmp/out";;
 17379   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 17380   esac
 17381  ;;
 17382   :H)
 17384   # CONFIG_HEADER
 17386 _ACEOF
 17388 # Transform confdefs.h into a sed script `conftest.defines', that
 17389 # substitutes the proper values into config.h.in to produce config.h.
 17390 rm -f conftest.defines conftest.tail
 17391 # First, append a space to every undef/define line, to ease matching.
 17392 echo 's/$/ /' >conftest.defines
 17393 # Then, protect against being on the right side of a sed subst, or in
 17394 # an unquoted here document, in config.status.  If some macros were
 17395 # called several times there might be several #defines for the same
 17396 # symbol, which is useless.  But do not sort them, since the last
 17397 # AC_DEFINE must be honored.
 17398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 17399 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 17400 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 17401 # PARAMS is the parameter list in the macro definition--in most cases, it's
 17402 # just an empty string.
 17403 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 17404 ac_dB='\\)[	 (].*,\\1define\\2'
 17405 ac_dC=' '
 17406 ac_dD=' ,'
 17408 uniq confdefs.h |
 17409   sed -n '
 17410 	t rset
 17411 	:rset
 17412 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 17413 	t ok
 17415 	:ok
 17416 	s/[\\&,]/\\&/g
 17417 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 17418 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 17419   ' >>conftest.defines
 17421 # Remove the space that was appended to ease matching.
 17422 # Then replace #undef with comments.  This is necessary, for
 17423 # example, in the case of _POSIX_SOURCE, which is predefined and required
 17424 # on some systems where configure will not decide to define it.
 17425 # (The regexp can be short, since the line contains either #define or #undef.)
 17426 echo 's/ $//
 17427 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 17429 # Break up conftest.defines:
 17430 ac_max_sed_lines=50
 17432 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 17433 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 17434 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 17435 # et cetera.
 17436 ac_in='$ac_file_inputs'
 17437 ac_out='"$tmp/out1"'
 17438 ac_nxt='"$tmp/out2"'
 17440 while :
 17441 do
 17442   # Write a here document:
 17443     cat >>$CONFIG_STATUS <<_ACEOF
 17444     # First, check the format of the line:
 17445     cat >"\$tmp/defines.sed" <<\\CEOF
 17446 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 17447 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 17449 :def
 17450 _ACEOF
 17451   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 17452   echo 'CEOF
 17453     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 17454   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 17455   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 17456   grep . conftest.tail >/dev/null || break
 17457   rm -f conftest.defines
 17458   mv conftest.tail conftest.defines
 17459 done
 17460 rm -f conftest.defines conftest.tail
 17462 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 17463 cat >>$CONFIG_STATUS <<\_ACEOF
 17464   if test x"$ac_file" != x-; then
 17465     echo "/* $configure_input  */" >"$tmp/config.h"
 17466     cat "$ac_result" >>"$tmp/config.h"
 17467     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 17468       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 17469 echo "$as_me: $ac_file is unchanged" >&6;}
 17470     else
 17471       rm -f $ac_file
 17472       mv "$tmp/config.h" $ac_file
 17473     fi
 17474   else
 17475     echo "/* $configure_input  */"
 17476     cat "$ac_result"
 17477   fi
 17478   rm -f "$tmp/out12"
 17479 # Compute $ac_file's index in $config_headers.
 17480 _am_stamp_count=1
 17481 for _am_header in $config_headers :; do
 17482   case $_am_header in
 17483     $ac_file | $ac_file:* )
 17484       break ;;
 17485     * )
 17486       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 17487   esac
 17488 done
 17489 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 17490 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17491 	 X$ac_file : 'X\(//\)[^/]' \| \
 17492 	 X$ac_file : 'X\(//\)$' \| \
 17493 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 17494 echo X$ac_file |
 17495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17496 	    s//\1/
 17499 	  /^X\(\/\/\)[^/].*/{
 17500 	    s//\1/
 17503 	  /^X\(\/\/\)$/{
 17504 	    s//\1/
 17507 	  /^X\(\/\).*/{
 17508 	    s//\1/
 17511 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 17512  ;;
 17514   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 17515 echo "$as_me: executing $ac_file commands" >&6;}
 17516  ;;
 17517   esac
 17520   case $ac_file$ac_mode in
 17521     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 17522   # Strip MF so we end up with the name of the file.
 17523   mf=`echo "$mf" | sed -e 's/:.*$//'`
 17524   # Check whether this is an Automake generated Makefile or not.
 17525   # We used to match only the files named `Makefile.in', but
 17526   # some people rename them; so instead we look at the file content.
 17527   # Grep'ing the first line is not enough: some people post-process
 17528   # each Makefile.in and add a new line on top of each file to say so.
 17529   # So let's grep whole file.
 17530   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 17531     dirpart=`$as_dirname -- "$mf" ||
 17532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17533 	 X"$mf" : 'X\(//\)[^/]' \| \
 17534 	 X"$mf" : 'X\(//\)$' \| \
 17535 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 17536 echo X"$mf" |
 17537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17538 	    s//\1/
 17541 	  /^X\(\/\/\)[^/].*/{
 17542 	    s//\1/
 17545 	  /^X\(\/\/\)$/{
 17546 	    s//\1/
 17549 	  /^X\(\/\).*/{
 17550 	    s//\1/
 17553 	  s/.*/./; q'`
 17554   else
 17555     continue
 17556   fi
 17557   # Extract the definition of DEPDIR, am__include, and am__quote
 17558   # from the Makefile without running `make'.
 17559   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 17560   test -z "$DEPDIR" && continue
 17561   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 17562   test -z "am__include" && continue
 17563   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 17564   # When using ansi2knr, U may be empty or an underscore; expand it
 17565   U=`sed -n 's/^U = //p' < "$mf"`
 17566   # Find all dependency output files, they are included files with
 17567   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 17568   # simplest approach to changing $(DEPDIR) to its actual value in the
 17569   # expansion.
 17570   for file in `sed -n "
 17571     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 17572        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 17573     # Make sure the directory exists.
 17574     test -f "$dirpart/$file" && continue
 17575     fdir=`$as_dirname -- "$file" ||
 17576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17577 	 X"$file" : 'X\(//\)[^/]' \| \
 17578 	 X"$file" : 'X\(//\)$' \| \
 17579 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 17580 echo X"$file" |
 17581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17582 	    s//\1/
 17585 	  /^X\(\/\/\)[^/].*/{
 17586 	    s//\1/
 17589 	  /^X\(\/\/\)$/{
 17590 	    s//\1/
 17593 	  /^X\(\/\).*/{
 17594 	    s//\1/
 17597 	  s/.*/./; q'`
 17598     { as_dir=$dirpart/$fdir
 17599   case $as_dir in #(
 17600   -*) as_dir=./$as_dir;;
 17601   esac
 17602   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17603     as_dirs=
 17604     while :; do
 17605       case $as_dir in #(
 17606       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17607       *) as_qdir=$as_dir;;
 17608       esac
 17609       as_dirs="'$as_qdir' $as_dirs"
 17610       as_dir=`$as_dirname -- "$as_dir" ||
 17611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17612 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17613 	 X"$as_dir" : 'X\(//\)$' \| \
 17614 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17615 echo X"$as_dir" |
 17616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17617 	    s//\1/
 17620 	  /^X\(\/\/\)[^/].*/{
 17621 	    s//\1/
 17624 	  /^X\(\/\/\)$/{
 17625 	    s//\1/
 17628 	  /^X\(\/\).*/{
 17629 	    s//\1/
 17632 	  s/.*/./; q'`
 17633       test -d "$as_dir" && break
 17634     done
 17635     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17636   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17637 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17638    { (exit 1); exit 1; }; }; }
 17639     # echo "creating $dirpart/$file"
 17640     echo '# dummy' > "$dirpart/$file"
 17641   done
 17642 done
 17643  ;;
 17644     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 17645         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 17646       esac ;;
 17648   esac
 17649 done # for ac_tag
 17652 { (exit 0); exit 0; }
 17653 _ACEOF
 17654 chmod +x $CONFIG_STATUS
 17655 ac_clean_files=$ac_clean_files_save
 17658 # configure is writing to config.log, and then calls config.status.
 17659 # config.status does its own redirection, appending to config.log.
 17660 # Unfortunately, on DOS this fails, as config.log is still kept open
 17661 # by configure, so config.status won't be able to write to it; its
 17662 # output is simply discarded.  So we exec the FD to /dev/null,
 17663 # effectively closing config.log, so it can be properly (re)opened and
 17664 # appended to by config.status.  When coming back to configure, we
 17665 # need to make the FD available again.
 17666 if test "$no_create" != yes; then
 17667   ac_cs_success=:
 17668   ac_config_status_args=
 17669   test "$silent" = yes &&
 17670     ac_config_status_args="$ac_config_status_args --quiet"
 17671   exec 5>/dev/null
 17672   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 17673   exec 5>>config.log
 17674   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 17675   # would make configure fail if this is the last instruction.
 17676   $ac_cs_success || { (exit 1); exit 1; }
 17677 fi
 17679 { as_dir=test/sh4
 17680   case $as_dir in #(
 17681   -*) as_dir=./$as_dir;;
 17682   esac
 17683   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 17684     as_dirs=
 17685     while :; do
 17686       case $as_dir in #(
 17687       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 17688       *) as_qdir=$as_dir;;
 17689       esac
 17690       as_dirs="'$as_qdir' $as_dirs"
 17691       as_dir=`$as_dirname -- "$as_dir" ||
 17692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 17693 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 17694 	 X"$as_dir" : 'X\(//\)$' \| \
 17695 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 17696 echo X"$as_dir" |
 17697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 17698 	    s//\1/
 17701 	  /^X\(\/\/\)[^/].*/{
 17702 	    s//\1/
 17705 	  /^X\(\/\/\)$/{
 17706 	    s//\1/
 17709 	  /^X\(\/\).*/{
 17710 	    s//\1/
 17713 	  s/.*/./; q'`
 17714       test -d "$as_dir" && break
 17715     done
 17716     test -z "$as_dirs" || eval "mkdir $as_dirs"
 17717   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 17718 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 17719    { (exit 1); exit 1; }; }; }
 17722 echo
 17723 echo "Configuration complete"
 17724 echo
 17726 if test "x$UI_DRIVER" = x; then
 17727   echo "  User interface: none"
 17728 else
 17729   echo "  User interface: $UI_DRIVER"
 17730 fi
 17732 if test "x$SH4_TRANSLATOR" = "x"; then
 17733   echo "  SH4 translator: none (emulation core only)"
 17734 else
 17735   echo "  SH4 translator: $SH4_TRANSLATOR"
 17736 fi
 17738 if test "x$VIDEO_DRIVERS" = "x"; then
 17739    echo "  Video drivers: none (no supported GL found)"
 17740 else
 17741    echo "  Video drivers: $VIDEO_DRIVERS"
 17742 fi
 17744 if test "x$AUDIO_DRIVERS" = "x"; then
 17745    echo "  Audio drivers: none (no supported output devices found)"
 17746 else
 17747    echo "  Audio drivers: $AUDIO_DRIVERS"
 17748 fi
 17750 if test "x$INPUT_DRIVERS" = "x"; then
 17751    echo "  Input drivers: none (no supported input devices found)"
 17752 else
 17753    echo "  Input drivers: $INPUT_DRIVERS"
 17754 fi
 17756 if test "x$CDROM_DRIVER" = "x"; then
 17757    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 17758 else
 17759    echo "  CD-ROM driver:  $CDROM_DRIVER"
 17760 fi
.