Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 927:17b6b9e245d8
prev924:195577c0445c
next964:f2f3c7612d06
author nkeynes
date Sat Dec 27 02:59:35 2008 +0000 (15 years ago)
branchlxdream-mem
permissions -rwxr-xr-x
last change Replace fpscr_mask/fpscr flags in xlat_cache_block with a single xlat_sh4_mode,
which tracks the field of the same name in sh4r - actually a little faster this way.
Now depends on SR.MD, FPSCR.PR and FPSCR.SZ (although it doesn't benefit from the SR
flag yet).

Also fixed the failure to check the flags in the common case (code address returned
by previous block) which took away the performance benefits, but oh well.
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.62.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
    41 '
    42 export as_nl
    43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
    44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    48   as_echo='printf %s\n'
    49   as_echo_n='printf %s'
    50 else
    51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    53     as_echo_n='/usr/ucb/echo -n'
    54   else
    55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    56     as_echo_n_body='eval
    57       arg=$1;
    58       case $arg in
    59       *"$as_nl"*)
    60 	expr "X$arg" : "X\\(.*\\)$as_nl";
    61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    62       esac;
    63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    64     '
    65     export as_echo_n_body
    66     as_echo_n='sh -c $as_echo_n_body as_echo'
    67   fi
    68   export as_echo_body
    69   as_echo='sh -c $as_echo_body as_echo'
    70 fi
    72 # The user is always right.
    73 if test "${PATH_SEPARATOR+set}" != set; then
    74   PATH_SEPARATOR=:
    75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
    77       PATH_SEPARATOR=';'
    78   }
    79 fi
    81 # Support unset when possible.
    82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    83   as_unset=unset
    84 else
    85   as_unset=false
    86 fi
    89 # IFS
    90 # We need space, tab and new line, in precisely that order.  Quoting is
    91 # there to prevent editors from complaining about space-tab.
    92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    93 # splitting by setting IFS to empty value.)
    94 IFS=" ""	$as_nl"
    96 # Find who we are.  Look in the path if we contain no directory separator.
    97 case $0 in
    98   *[\\/]* ) as_myself=$0 ;;
    99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   100 for as_dir in $PATH
   101 do
   102   IFS=$as_save_IFS
   103   test -z "$as_dir" && as_dir=.
   104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   105 done
   106 IFS=$as_save_IFS
   108      ;;
   109 esac
   110 # We did not find ourselves, most probably we were run as `sh COMMAND'
   111 # in which case we are not to be found in the path.
   112 if test "x$as_myself" = x; then
   113   as_myself=$0
   114 fi
   115 if test ! -f "$as_myself"; then
   116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   117   { (exit 1); exit 1; }
   118 fi
   120 # Work around bugs in pre-3.0 UWIN ksh.
   121 for as_var in ENV MAIL MAILPATH
   122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   123 done
   124 PS1='$ '
   125 PS2='> '
   126 PS4='+ '
   128 # NLS nuisances.
   129 LC_ALL=C
   130 export LC_ALL
   131 LANGUAGE=C
   132 export LANGUAGE
   134 # Required to use basename.
   135 if expr a : '\(a\)' >/dev/null 2>&1 &&
   136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   137   as_expr=expr
   138 else
   139   as_expr=false
   140 fi
   142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   143   as_basename=basename
   144 else
   145   as_basename=false
   146 fi
   149 # Name of the executable.
   150 as_me=`$as_basename -- "$0" ||
   151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   152 	 X"$0" : 'X\(//\)$' \| \
   153 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   154 $as_echo X/"$0" |
   155     sed '/^.*\/\([^/][^/]*\)\/*$/{
   156 	    s//\1/
   157 	    q
   158 	  }
   159 	  /^X\/\(\/\/\)$/{
   160 	    s//\1/
   161 	    q
   162 	  }
   163 	  /^X\/\(\/\).*/{
   164 	    s//\1/
   165 	    q
   166 	  }
   167 	  s/.*/./; q'`
   169 # CDPATH.
   170 $as_unset CDPATH
   173 if test "x$CONFIG_SHELL" = x; then
   174   if (eval ":") 2>/dev/null; then
   175   as_have_required=yes
   176 else
   177   as_have_required=no
   178 fi
   180   if test $as_have_required = yes &&	 (eval ":
   181 (as_func_return () {
   182   (exit \$1)
   183 }
   184 as_func_success () {
   185   as_func_return 0
   186 }
   187 as_func_failure () {
   188   as_func_return 1
   189 }
   190 as_func_ret_success () {
   191   return 0
   192 }
   193 as_func_ret_failure () {
   194   return 1
   195 }
   197 exitcode=0
   198 if as_func_success; then
   199   :
   200 else
   201   exitcode=1
   202   echo as_func_success failed.
   203 fi
   205 if as_func_failure; then
   206   exitcode=1
   207   echo as_func_failure succeeded.
   208 fi
   210 if as_func_ret_success; then
   211   :
   212 else
   213   exitcode=1
   214   echo as_func_ret_success failed.
   215 fi
   217 if as_func_ret_failure; then
   218   exitcode=1
   219   echo as_func_ret_failure succeeded.
   220 fi
   222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   223   :
   224 else
   225   exitcode=1
   226   echo positional parameters were not saved.
   227 fi
   229 test \$exitcode = 0) || { (exit 1); exit 1; }
   231 (
   232   as_lineno_1=\$LINENO
   233   as_lineno_2=\$LINENO
   234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   236 ") 2> /dev/null; then
   237   :
   238 else
   239   as_candidate_shells=
   240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   242 do
   243   IFS=$as_save_IFS
   244   test -z "$as_dir" && as_dir=.
   245   case $as_dir in
   246 	 /*)
   247 	   for as_base in sh bash ksh sh5; do
   248 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   249 	   done;;
   250        esac
   251 done
   252 IFS=$as_save_IFS
   255       for as_shell in $as_candidate_shells $SHELL; do
   256 	 # Try only shells that exist, to save several forks.
   257 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   258 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   260   emulate sh
   261   NULLCMD=:
   262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   263   # is contrary to our usage.  Disable this feature.
   264   alias -g '${1+"$@"}'='"$@"'
   265   setopt NO_GLOB_SUBST
   266 else
   267   case `(set -o) 2>/dev/null` in
   268   *posix*) set -o posix ;;
   269 esac
   271 fi
   274 :
   275 _ASEOF
   276 }; then
   277   CONFIG_SHELL=$as_shell
   278 	       as_have_required=yes
   279 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   281   emulate sh
   282   NULLCMD=:
   283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   284   # is contrary to our usage.  Disable this feature.
   285   alias -g '${1+"$@"}'='"$@"'
   286   setopt NO_GLOB_SUBST
   287 else
   288   case `(set -o) 2>/dev/null` in
   289   *posix*) set -o posix ;;
   290 esac
   292 fi
   295 :
   296 (as_func_return () {
   297   (exit $1)
   298 }
   299 as_func_success () {
   300   as_func_return 0
   301 }
   302 as_func_failure () {
   303   as_func_return 1
   304 }
   305 as_func_ret_success () {
   306   return 0
   307 }
   308 as_func_ret_failure () {
   309   return 1
   310 }
   312 exitcode=0
   313 if as_func_success; then
   314   :
   315 else
   316   exitcode=1
   317   echo as_func_success failed.
   318 fi
   320 if as_func_failure; then
   321   exitcode=1
   322   echo as_func_failure succeeded.
   323 fi
   325 if as_func_ret_success; then
   326   :
   327 else
   328   exitcode=1
   329   echo as_func_ret_success failed.
   330 fi
   332 if as_func_ret_failure; then
   333   exitcode=1
   334   echo as_func_ret_failure succeeded.
   335 fi
   337 if ( set x; as_func_ret_success y && test x = "$1" ); then
   338   :
   339 else
   340   exitcode=1
   341   echo positional parameters were not saved.
   342 fi
   344 test $exitcode = 0) || { (exit 1); exit 1; }
   346 (
   347   as_lineno_1=$LINENO
   348   as_lineno_2=$LINENO
   349   test "x$as_lineno_1" != "x$as_lineno_2" &&
   350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   352 _ASEOF
   353 }; then
   354   break
   355 fi
   357 fi
   359       done
   361       if test "x$CONFIG_SHELL" != x; then
   362   for as_var in BASH_ENV ENV
   363 	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   364 	done
   365 	export CONFIG_SHELL
   366 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   367 fi
   370     if test $as_have_required = no; then
   371   echo This script requires a shell more modern than all the
   372       echo shells that I found on your system.  Please install a
   373       echo modern shell, or manually run the script under such a
   374       echo shell if you do have one.
   375       { (exit 1); exit 1; }
   376 fi
   379 fi
   381 fi
   385 (eval "as_func_return () {
   386   (exit \$1)
   387 }
   388 as_func_success () {
   389   as_func_return 0
   390 }
   391 as_func_failure () {
   392   as_func_return 1
   393 }
   394 as_func_ret_success () {
   395   return 0
   396 }
   397 as_func_ret_failure () {
   398   return 1
   399 }
   401 exitcode=0
   402 if as_func_success; then
   403   :
   404 else
   405   exitcode=1
   406   echo as_func_success failed.
   407 fi
   409 if as_func_failure; then
   410   exitcode=1
   411   echo as_func_failure succeeded.
   412 fi
   414 if as_func_ret_success; then
   415   :
   416 else
   417   exitcode=1
   418   echo as_func_ret_success failed.
   419 fi
   421 if as_func_ret_failure; then
   422   exitcode=1
   423   echo as_func_ret_failure succeeded.
   424 fi
   426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   427   :
   428 else
   429   exitcode=1
   430   echo positional parameters were not saved.
   431 fi
   433 test \$exitcode = 0") || {
   434   echo No shell found that supports shell functions.
   435   echo Please tell bug-autoconf@gnu.org about your system,
   436   echo including any error possibly output before this message.
   437   echo This can help us improve future autoconf versions.
   438   echo Configuration will now proceed without shell functions.
   439 }
   443   as_lineno_1=$LINENO
   444   as_lineno_2=$LINENO
   445   test "x$as_lineno_1" != "x$as_lineno_2" &&
   446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   449   # uniformly replaced by the line number.  The first 'sed' inserts a
   450   # line-number line after each line using $LINENO; the second 'sed'
   451   # does the real work.  The second script uses 'N' to pair each
   452   # line-number line with the line containing $LINENO, and appends
   453   # trailing '-' during substitution so that $LINENO is not a special
   454   # case at line end.
   455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   457   # E. McMahon (1931-1989) for sed's syntax.  :-)
   458   sed -n '
   459     p
   460     /[$]LINENO/=
   461   ' <$as_myself |
   462     sed '
   463       s/[$]LINENO.*/&-/
   464       t lineno
   465       b
   466       :lineno
   467       N
   468       :loop
   469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   470       t loop
   471       s/-\n.*//
   472     ' >$as_me.lineno &&
   473   chmod +x "$as_me.lineno" ||
   474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   475    { (exit 1); exit 1; }; }
   477   # Don't try to exec as it changes $[0], causing all sort of problems
   478   # (the dirname of $[0] is not the place where we might find the
   479   # original and so on.  Autoconf is especially sensitive to this).
   480   . "./$as_me.lineno"
   481   # Exit status is that of the last command.
   482   exit
   483 }
   486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   487   as_dirname=dirname
   488 else
   489   as_dirname=false
   490 fi
   492 ECHO_C= ECHO_N= ECHO_T=
   493 case `echo -n x` in
   494 -n*)
   495   case `echo 'x\c'` in
   496   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   497   *)   ECHO_C='\c';;
   498   esac;;
   499 *)
   500   ECHO_N='-n';;
   501 esac
   502 if expr a : '\(a\)' >/dev/null 2>&1 &&
   503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   504   as_expr=expr
   505 else
   506   as_expr=false
   507 fi
   509 rm -f conf$$ conf$$.exe conf$$.file
   510 if test -d conf$$.dir; then
   511   rm -f conf$$.dir/conf$$.file
   512 else
   513   rm -f conf$$.dir
   514   mkdir conf$$.dir 2>/dev/null
   515 fi
   516 if (echo >conf$$.file) 2>/dev/null; then
   517   if ln -s conf$$.file conf$$ 2>/dev/null; then
   518     as_ln_s='ln -s'
   519     # ... but there are two gotchas:
   520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   522     # In both cases, we have to default to `cp -p'.
   523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   524       as_ln_s='cp -p'
   525   elif ln conf$$.file conf$$ 2>/dev/null; then
   526     as_ln_s=ln
   527   else
   528     as_ln_s='cp -p'
   529   fi
   530 else
   531   as_ln_s='cp -p'
   532 fi
   533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   534 rmdir conf$$.dir 2>/dev/null
   536 if mkdir -p . 2>/dev/null; then
   537   as_mkdir_p=:
   538 else
   539   test -d ./-p && rmdir ./-p
   540   as_mkdir_p=false
   541 fi
   543 if test -x / >/dev/null 2>&1; then
   544   as_test_x='test -x'
   545 else
   546   if ls -dL / >/dev/null 2>&1; then
   547     as_ls_L_option=L
   548   else
   549     as_ls_L_option=
   550   fi
   551   as_test_x='
   552     eval sh -c '\''
   553       if test -d "$1"; then
   554 	test -d "$1/.";
   555       else
   556 	case $1 in
   557 	-*)set "./$1";;
   558 	esac;
   559 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   560 	???[sx]*):;;*)false;;esac;fi
   561     '\'' sh
   562   '
   563 fi
   564 as_executable_p=$as_test_x
   566 # Sed expression to map a string onto a valid CPP name.
   567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   569 # Sed expression to map a string onto a valid variable name.
   570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   574 exec 7<&0 </dev/null 6>&1
   576 # Name of the host.
   577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   578 # so uname gets run too.
   579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   581 #
   582 # Initializations.
   583 #
   584 ac_default_prefix=/usr/local
   585 ac_clean_files=
   586 ac_config_libobj_dir=.
   587 LIBOBJS=
   588 cross_compiling=no
   589 subdirs=
   590 MFLAGS=
   591 MAKEFLAGS=
   592 SHELL=${CONFIG_SHELL-/bin/sh}
   594 # Identity of this package.
   595 PACKAGE_NAME=
   596 PACKAGE_TARNAME=
   597 PACKAGE_VERSION=
   598 PACKAGE_STRING=
   599 PACKAGE_BUGREPORT=
   601 ac_unique_file="configure.in"
   602 # Factoring default headers for most tests.
   603 ac_includes_default="\
   604 #include <stdio.h>
   605 #ifdef HAVE_SYS_TYPES_H
   606 # include <sys/types.h>
   607 #endif
   608 #ifdef HAVE_SYS_STAT_H
   609 # include <sys/stat.h>
   610 #endif
   611 #ifdef STDC_HEADERS
   612 # include <stdlib.h>
   613 # include <stddef.h>
   614 #else
   615 # ifdef HAVE_STDLIB_H
   616 #  include <stdlib.h>
   617 # endif
   618 #endif
   619 #ifdef HAVE_STRING_H
   620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   621 #  include <memory.h>
   622 # endif
   623 # include <string.h>
   624 #endif
   625 #ifdef HAVE_STRINGS_H
   626 # include <strings.h>
   627 #endif
   628 #ifdef HAVE_INTTYPES_H
   629 # include <inttypes.h>
   630 #endif
   631 #ifdef HAVE_STDINT_H
   632 # include <stdint.h>
   633 #endif
   634 #ifdef HAVE_UNISTD_H
   635 # include <unistd.h>
   636 #endif"
   638 ac_subst_vars='SHELL
   639 PATH_SEPARATOR
   640 PACKAGE_NAME
   641 PACKAGE_TARNAME
   642 PACKAGE_VERSION
   643 PACKAGE_STRING
   644 PACKAGE_BUGREPORT
   645 exec_prefix
   646 prefix
   647 program_transform_name
   648 bindir
   649 sbindir
   650 libexecdir
   651 datarootdir
   652 datadir
   653 sysconfdir
   654 sharedstatedir
   655 localstatedir
   656 includedir
   657 oldincludedir
   658 docdir
   659 infodir
   660 htmldir
   661 dvidir
   662 pdfdir
   663 psdir
   664 libdir
   665 localedir
   666 mandir
   667 DEFS
   668 ECHO_C
   669 ECHO_N
   670 ECHO_T
   671 LIBS
   672 build_alias
   673 host_alias
   674 target_alias
   675 INSTALL_PROGRAM
   676 INSTALL_SCRIPT
   677 INSTALL_DATA
   678 CYGPATH_W
   679 PACKAGE
   680 VERSION
   681 ACLOCAL
   682 AUTOCONF
   683 AUTOMAKE
   684 AUTOHEADER
   685 MAKEINFO
   686 install_sh
   687 STRIP
   688 INSTALL_STRIP_PROGRAM
   689 mkdir_p
   690 AWK
   691 SET_MAKE
   692 am__leading_dot
   693 AMTAR
   694 am__tar
   695 am__untar
   696 MAINTAINER_MODE_TRUE
   697 MAINTAINER_MODE_FALSE
   698 MAINT
   699 CC
   700 CFLAGS
   701 LDFLAGS
   702 CPPFLAGS
   703 ac_ct_CC
   704 EXEEXT
   705 OBJEXT
   706 DEPDIR
   707 am__include
   708 am__quote
   709 AMDEP_TRUE
   710 AMDEP_FALSE
   711 AMDEPBACKSLASH
   712 CCDEPMODE
   713 am__fastdepCC_TRUE
   714 am__fastdepCC_FALSE
   715 CCAS
   716 CCASFLAGS
   717 CPP
   718 GREP
   719 EGREP
   720 build
   721 build_cpu
   722 build_vendor
   723 build_os
   724 host
   725 host_cpu
   726 host_vendor
   727 host_os
   728 POD2MAN
   729 POD2HTML
   730 GUI_COCOA_TRUE
   731 GUI_COCOA_FALSE
   732 PKG_CONFIG
   733 LIBPNG_CFLAGS
   734 LIBPNG_LIBS
   735 GLIB_CFLAGS
   736 GLIB_LIBS
   737 GTK_CFLAGS
   738 GTK_LIBS
   739 GUI_GTK_TRUE
   740 GUI_GTK_FALSE
   741 VIDEO_OSMESA_TRUE
   742 VIDEO_OSMESA_FALSE
   743 VIDEO_GLX_TRUE
   744 VIDEO_GLX_FALSE
   745 VIDEO_NSGL_TRUE
   746 VIDEO_NSGL_FALSE
   747 BUILD_SH4X86_TRUE
   748 BUILD_SH4X86_FALSE
   749 AUDIO_OSX_TRUE
   750 AUDIO_OSX_FALSE
   751 PULSE_CFLAGS
   752 PULSE_LIBS
   753 AUDIO_PULSE_TRUE
   754 AUDIO_PULSE_FALSE
   755 ESOUND_CFLAGS
   756 ESOUND_LIBS
   757 AUDIO_ESOUND_TRUE
   758 AUDIO_ESOUND_FALSE
   759 ALSA_CFLAGS
   760 ALSA_LIBS
   761 AUDIO_ALSA_TRUE
   762 AUDIO_ALSA_FALSE
   763 CDROM_LINUX_TRUE
   764 CDROM_LINUX_FALSE
   765 CDROM_OSX_TRUE
   766 CDROM_OSX_FALSE
   767 CDROM_NONE_TRUE
   768 CDROM_NONE_FALSE
   769 JOY_LINUX_TRUE
   770 JOY_LINUX_FALSE
   771 SHCC
   772 SHLD
   773 SHOBJCOPY
   774 ARMCC
   775 ARMLD
   776 ARMOBJCOPY
   777 BUILD_SYSTEST_TRUE
   778 BUILD_SYSTEST_FALSE
   779 BUILD_ARMTEST_TRUE
   780 BUILD_ARMTEST_FALSE
   781 GETTEXT_PACKAGE
   782 USE_NLS
   783 MSGFMT
   784 MSGFMT_OPTS
   785 GMSGFMT
   786 XGETTEXT
   787 CATALOGS
   788 CATOBJEXT
   789 DATADIRNAME
   790 GMOFILES
   791 INSTOBJEXT
   792 INTLLIBS
   793 PO_IN_DATADIR_TRUE
   794 PO_IN_DATADIR_FALSE
   795 POFILES
   796 POSUB
   797 MKINSTALLDIRS
   798 LIBOBJS
   799 LTLIBOBJS'
   800 ac_subst_files=''
   801 ac_user_opts='
   802 enable_option_checking
   803 enable_maintainer_mode
   804 enable_dependency_tracking
   805 enable_strict_warn
   806 enable_translator
   807 enable_optimized
   808 enable_profiled
   809 enable_trace
   810 enable_watch
   811 enable_sh4stats
   812 with_osmesa
   813 with_gtk
   814 with_esd
   815 with_pulse
   816 '
   817       ac_precious_vars='build_alias
   818 host_alias
   819 target_alias
   820 CC
   821 CFLAGS
   822 LDFLAGS
   823 LIBS
   824 CPPFLAGS
   825 CCAS
   826 CCASFLAGS
   827 CPP
   828 PKG_CONFIG
   829 LIBPNG_CFLAGS
   830 LIBPNG_LIBS
   831 GLIB_CFLAGS
   832 GLIB_LIBS
   833 GTK_CFLAGS
   834 GTK_LIBS
   835 PULSE_CFLAGS
   836 PULSE_LIBS
   837 ESOUND_CFLAGS
   838 ESOUND_LIBS
   839 ALSA_CFLAGS
   840 ALSA_LIBS'
   843 # Initialize some variables set by options.
   844 ac_init_help=
   845 ac_init_version=false
   846 ac_unrecognized_opts=
   847 ac_unrecognized_sep=
   848 # The variables have the same names as the options, with
   849 # dashes changed to underlines.
   850 cache_file=/dev/null
   851 exec_prefix=NONE
   852 no_create=
   853 no_recursion=
   854 prefix=NONE
   855 program_prefix=NONE
   856 program_suffix=NONE
   857 program_transform_name=s,x,x,
   858 silent=
   859 site=
   860 srcdir=
   861 verbose=
   862 x_includes=NONE
   863 x_libraries=NONE
   865 # Installation directory options.
   866 # These are left unexpanded so users can "make install exec_prefix=/foo"
   867 # and all the variables that are supposed to be based on exec_prefix
   868 # by default will actually change.
   869 # Use braces instead of parens because sh, perl, etc. also accept them.
   870 # (The list follows the same order as the GNU Coding Standards.)
   871 bindir='${exec_prefix}/bin'
   872 sbindir='${exec_prefix}/sbin'
   873 libexecdir='${exec_prefix}/libexec'
   874 datarootdir='${prefix}/share'
   875 datadir='${datarootdir}'
   876 sysconfdir='${prefix}/etc'
   877 sharedstatedir='${prefix}/com'
   878 localstatedir='${prefix}/var'
   879 includedir='${prefix}/include'
   880 oldincludedir='/usr/include'
   881 docdir='${datarootdir}/doc/${PACKAGE}'
   882 infodir='${datarootdir}/info'
   883 htmldir='${docdir}'
   884 dvidir='${docdir}'
   885 pdfdir='${docdir}'
   886 psdir='${docdir}'
   887 libdir='${exec_prefix}/lib'
   888 localedir='${datarootdir}/locale'
   889 mandir='${datarootdir}/man'
   891 ac_prev=
   892 ac_dashdash=
   893 for ac_option
   894 do
   895   # If the previous option needs an argument, assign it.
   896   if test -n "$ac_prev"; then
   897     eval $ac_prev=\$ac_option
   898     ac_prev=
   899     continue
   900   fi
   902   case $ac_option in
   903   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   904   *)	ac_optarg=yes ;;
   905   esac
   907   # Accept the important Cygnus configure options, so we can diagnose typos.
   909   case $ac_dashdash$ac_option in
   910   --)
   911     ac_dashdash=yes ;;
   913   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   914     ac_prev=bindir ;;
   915   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   916     bindir=$ac_optarg ;;
   918   -build | --build | --buil | --bui | --bu)
   919     ac_prev=build_alias ;;
   920   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   921     build_alias=$ac_optarg ;;
   923   -cache-file | --cache-file | --cache-fil | --cache-fi \
   924   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   925     ac_prev=cache_file ;;
   926   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   927   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   928     cache_file=$ac_optarg ;;
   930   --config-cache | -C)
   931     cache_file=config.cache ;;
   933   -datadir | --datadir | --datadi | --datad)
   934     ac_prev=datadir ;;
   935   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   936     datadir=$ac_optarg ;;
   938   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   939   | --dataroo | --dataro | --datar)
   940     ac_prev=datarootdir ;;
   941   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   942   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   943     datarootdir=$ac_optarg ;;
   945   -disable-* | --disable-*)
   946     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   947     # Reject names that are not valid shell variable names.
   948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   949       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   950    { (exit 1); exit 1; }; }
   951     ac_useropt_orig=$ac_useropt
   952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   953     case $ac_user_opts in
   954       *"
   955 "enable_$ac_useropt"
   956 "*) ;;
   957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   958 	 ac_unrecognized_sep=', ';;
   959     esac
   960     eval enable_$ac_useropt=no ;;
   962   -docdir | --docdir | --docdi | --doc | --do)
   963     ac_prev=docdir ;;
   964   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   965     docdir=$ac_optarg ;;
   967   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   968     ac_prev=dvidir ;;
   969   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   970     dvidir=$ac_optarg ;;
   972   -enable-* | --enable-*)
   973     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   974     # Reject names that are not valid shell variable names.
   975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   976       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   977    { (exit 1); exit 1; }; }
   978     ac_useropt_orig=$ac_useropt
   979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   980     case $ac_user_opts in
   981       *"
   982 "enable_$ac_useropt"
   983 "*) ;;
   984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   985 	 ac_unrecognized_sep=', ';;
   986     esac
   987     eval enable_$ac_useropt=\$ac_optarg ;;
   989   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   990   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   991   | --exec | --exe | --ex)
   992     ac_prev=exec_prefix ;;
   993   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   994   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   995   | --exec=* | --exe=* | --ex=*)
   996     exec_prefix=$ac_optarg ;;
   998   -gas | --gas | --ga | --g)
   999     # Obsolete; use --with-gas.
  1000     with_gas=yes ;;
  1002   -help | --help | --hel | --he | -h)
  1003     ac_init_help=long ;;
  1004   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1005     ac_init_help=recursive ;;
  1006   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1007     ac_init_help=short ;;
  1009   -host | --host | --hos | --ho)
  1010     ac_prev=host_alias ;;
  1011   -host=* | --host=* | --hos=* | --ho=*)
  1012     host_alias=$ac_optarg ;;
  1014   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1015     ac_prev=htmldir ;;
  1016   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1017   | --ht=*)
  1018     htmldir=$ac_optarg ;;
  1020   -includedir | --includedir | --includedi | --included | --include \
  1021   | --includ | --inclu | --incl | --inc)
  1022     ac_prev=includedir ;;
  1023   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1024   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1025     includedir=$ac_optarg ;;
  1027   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1028     ac_prev=infodir ;;
  1029   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1030     infodir=$ac_optarg ;;
  1032   -libdir | --libdir | --libdi | --libd)
  1033     ac_prev=libdir ;;
  1034   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1035     libdir=$ac_optarg ;;
  1037   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1038   | --libexe | --libex | --libe)
  1039     ac_prev=libexecdir ;;
  1040   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1041   | --libexe=* | --libex=* | --libe=*)
  1042     libexecdir=$ac_optarg ;;
  1044   -localedir | --localedir | --localedi | --localed | --locale)
  1045     ac_prev=localedir ;;
  1046   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1047     localedir=$ac_optarg ;;
  1049   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1050   | --localstate | --localstat | --localsta | --localst | --locals)
  1051     ac_prev=localstatedir ;;
  1052   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1053   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1054     localstatedir=$ac_optarg ;;
  1056   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1057     ac_prev=mandir ;;
  1058   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1059     mandir=$ac_optarg ;;
  1061   -nfp | --nfp | --nf)
  1062     # Obsolete; use --without-fp.
  1063     with_fp=no ;;
  1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1066   | --no-cr | --no-c | -n)
  1067     no_create=yes ;;
  1069   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1070   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1071     no_recursion=yes ;;
  1073   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1074   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1075   | --oldin | --oldi | --old | --ol | --o)
  1076     ac_prev=oldincludedir ;;
  1077   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1078   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1079   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1080     oldincludedir=$ac_optarg ;;
  1082   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1083     ac_prev=prefix ;;
  1084   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1085     prefix=$ac_optarg ;;
  1087   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1088   | --program-pre | --program-pr | --program-p)
  1089     ac_prev=program_prefix ;;
  1090   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1091   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1092     program_prefix=$ac_optarg ;;
  1094   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1095   | --program-suf | --program-su | --program-s)
  1096     ac_prev=program_suffix ;;
  1097   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1098   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1099     program_suffix=$ac_optarg ;;
  1101   -program-transform-name | --program-transform-name \
  1102   | --program-transform-nam | --program-transform-na \
  1103   | --program-transform-n | --program-transform- \
  1104   | --program-transform | --program-transfor \
  1105   | --program-transfo | --program-transf \
  1106   | --program-trans | --program-tran \
  1107   | --progr-tra | --program-tr | --program-t)
  1108     ac_prev=program_transform_name ;;
  1109   -program-transform-name=* | --program-transform-name=* \
  1110   | --program-transform-nam=* | --program-transform-na=* \
  1111   | --program-transform-n=* | --program-transform-=* \
  1112   | --program-transform=* | --program-transfor=* \
  1113   | --program-transfo=* | --program-transf=* \
  1114   | --program-trans=* | --program-tran=* \
  1115   | --progr-tra=* | --program-tr=* | --program-t=*)
  1116     program_transform_name=$ac_optarg ;;
  1118   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1119     ac_prev=pdfdir ;;
  1120   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1121     pdfdir=$ac_optarg ;;
  1123   -psdir | --psdir | --psdi | --psd | --ps)
  1124     ac_prev=psdir ;;
  1125   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1126     psdir=$ac_optarg ;;
  1128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1129   | -silent | --silent | --silen | --sile | --sil)
  1130     silent=yes ;;
  1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1133     ac_prev=sbindir ;;
  1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1135   | --sbi=* | --sb=*)
  1136     sbindir=$ac_optarg ;;
  1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1140   | --sharedst | --shareds | --shared | --share | --shar \
  1141   | --sha | --sh)
  1142     ac_prev=sharedstatedir ;;
  1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1146   | --sha=* | --sh=*)
  1147     sharedstatedir=$ac_optarg ;;
  1149   -site | --site | --sit)
  1150     ac_prev=site ;;
  1151   -site=* | --site=* | --sit=*)
  1152     site=$ac_optarg ;;
  1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1155     ac_prev=srcdir ;;
  1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1157     srcdir=$ac_optarg ;;
  1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1160   | --syscon | --sysco | --sysc | --sys | --sy)
  1161     ac_prev=sysconfdir ;;
  1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1164     sysconfdir=$ac_optarg ;;
  1166   -target | --target | --targe | --targ | --tar | --ta | --t)
  1167     ac_prev=target_alias ;;
  1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1169     target_alias=$ac_optarg ;;
  1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1172     verbose=yes ;;
  1174   -version | --version | --versio | --versi | --vers | -V)
  1175     ac_init_version=: ;;
  1177   -with-* | --with-*)
  1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1179     # Reject names that are not valid shell variable names.
  1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1181       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1182    { (exit 1); exit 1; }; }
  1183     ac_useropt_orig=$ac_useropt
  1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1185     case $ac_user_opts in
  1186       *"
  1187 "with_$ac_useropt"
  1188 "*) ;;
  1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1190 	 ac_unrecognized_sep=', ';;
  1191     esac
  1192     eval with_$ac_useropt=\$ac_optarg ;;
  1194   -without-* | --without-*)
  1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196     # Reject names that are not valid shell variable names.
  1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1199    { (exit 1); exit 1; }; }
  1200     ac_useropt_orig=$ac_useropt
  1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202     case $ac_user_opts in
  1203       *"
  1204 "with_$ac_useropt"
  1205 "*) ;;
  1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1207 	 ac_unrecognized_sep=', ';;
  1208     esac
  1209     eval with_$ac_useropt=no ;;
  1211   --x)
  1212     # Obsolete; use --with-x.
  1213     with_x=yes ;;
  1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1216   | --x-incl | --x-inc | --x-in | --x-i)
  1217     ac_prev=x_includes ;;
  1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1220     x_includes=$ac_optarg ;;
  1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1224     ac_prev=x_libraries ;;
  1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1227     x_libraries=$ac_optarg ;;
  1229   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1230 Try \`$0 --help' for more information." >&2
  1231    { (exit 1); exit 1; }; }
  1232     ;;
  1234   *=*)
  1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1236     # Reject names that are not valid shell variable names.
  1237     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1238       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1239    { (exit 1); exit 1; }; }
  1240     eval $ac_envvar=\$ac_optarg
  1241     export $ac_envvar ;;
  1243   *)
  1244     # FIXME: should be removed in autoconf 3.0.
  1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1248     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1249     ;;
  1251   esac
  1252 done
  1254 if test -n "$ac_prev"; then
  1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1256   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1257    { (exit 1); exit 1; }; }
  1258 fi
  1260 if test -n "$ac_unrecognized_opts"; then
  1261   case $enable_option_checking in
  1262     no) ;;
  1263     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1264    { (exit 1); exit 1; }; } ;;
  1265     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1266   esac
  1267 fi
  1269 # Check all directory arguments for consistency.
  1270 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1271 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1272 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1273 		libdir localedir mandir
  1274 do
  1275   eval ac_val=\$$ac_var
  1276   # Remove trailing slashes.
  1277   case $ac_val in
  1278     */ )
  1279       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1280       eval $ac_var=\$ac_val;;
  1281   esac
  1282   # Be sure to have absolute directory names.
  1283   case $ac_val in
  1284     [\\/$]* | ?:[\\/]* )  continue;;
  1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1286   esac
  1287   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1288    { (exit 1); exit 1; }; }
  1289 done
  1291 # There might be people who depend on the old broken behavior: `$host'
  1292 # used to hold the argument of --host etc.
  1293 # FIXME: To remove some day.
  1294 build=$build_alias
  1295 host=$host_alias
  1296 target=$target_alias
  1298 # FIXME: To remove some day.
  1299 if test "x$host_alias" != x; then
  1300   if test "x$build_alias" = x; then
  1301     cross_compiling=maybe
  1302     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1303     If a cross compiler is detected then cross compile mode will be used." >&2
  1304   elif test "x$build_alias" != "x$host_alias"; then
  1305     cross_compiling=yes
  1306   fi
  1307 fi
  1309 ac_tool_prefix=
  1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1312 test "$silent" = yes && exec 6>/dev/null
  1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1316 ac_ls_di=`ls -di .` &&
  1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1318   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1319    { (exit 1); exit 1; }; }
  1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1321   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1322    { (exit 1); exit 1; }; }
  1325 # Find the source files, if location was not specified.
  1326 if test -z "$srcdir"; then
  1327   ac_srcdir_defaulted=yes
  1328   # Try the directory containing this script, then the parent directory.
  1329   ac_confdir=`$as_dirname -- "$as_myself" ||
  1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1331 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1332 	 X"$as_myself" : 'X\(//\)$' \| \
  1333 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1334 $as_echo X"$as_myself" |
  1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1336 	    s//\1/
  1339 	  /^X\(\/\/\)[^/].*/{
  1340 	    s//\1/
  1343 	  /^X\(\/\/\)$/{
  1344 	    s//\1/
  1347 	  /^X\(\/\).*/{
  1348 	    s//\1/
  1351 	  s/.*/./; q'`
  1352   srcdir=$ac_confdir
  1353   if test ! -r "$srcdir/$ac_unique_file"; then
  1354     srcdir=..
  1355   fi
  1356 else
  1357   ac_srcdir_defaulted=no
  1358 fi
  1359 if test ! -r "$srcdir/$ac_unique_file"; then
  1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1361   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1362    { (exit 1); exit 1; }; }
  1363 fi
  1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1365 ac_abs_confdir=`(
  1366 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1367    { (exit 1); exit 1; }; }
  1368 	pwd)`
  1369 # When building in place, set srcdir=.
  1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1371   srcdir=.
  1372 fi
  1373 # Remove unnecessary trailing slashes from srcdir.
  1374 # Double slashes in file names in object file debugging info
  1375 # mess up M-x gdb in Emacs.
  1376 case $srcdir in
  1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1378 esac
  1379 for ac_var in $ac_precious_vars; do
  1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1381   eval ac_env_${ac_var}_value=\$${ac_var}
  1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1384 done
  1387 # Report the --help message.
  1389 if test "$ac_init_help" = "long"; then
  1390   # Omit some internal or obsolete options to make the list less imposing.
  1391   # This message is too long to be a string in the A/UX 3.1 sh.
  1392   cat <<_ACEOF
  1393 \`configure' configures this package to adapt to many kinds of systems.
  1395 Usage: $0 [OPTION]... [VAR=VALUE]...
  1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1400 Defaults for the options are specified in brackets.
  1402 Configuration:
  1403   -h, --help              display this help and exit
  1404       --help=short        display options specific to this package
  1405       --help=recursive    display the short help of all the included packages
  1406   -V, --version           display version information and exit
  1407   -q, --quiet, --silent   do not print \`checking...' messages
  1408       --cache-file=FILE   cache test results in FILE [disabled]
  1409   -C, --config-cache      alias for \`--cache-file=config.cache'
  1410   -n, --no-create         do not create output files
  1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1413 Installation directories:
  1414   --prefix=PREFIX         install architecture-independent files in PREFIX
  1415                           [$ac_default_prefix]
  1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1417                           [PREFIX]
  1419 By default, \`make install' will install all the files in
  1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1422 for instance \`--prefix=\$HOME'.
  1424 For better control, use the options below.
  1426 Fine tuning of the installation directories:
  1427   --bindir=DIR            user executables [EPREFIX/bin]
  1428   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1429   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1430   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1431   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1432   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1433   --libdir=DIR            object code libraries [EPREFIX/lib]
  1434   --includedir=DIR        C header files [PREFIX/include]
  1435   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1436   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1437   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1438   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1439   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1440   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1441   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1442   --htmldir=DIR           html documentation [DOCDIR]
  1443   --dvidir=DIR            dvi documentation [DOCDIR]
  1444   --pdfdir=DIR            pdf documentation [DOCDIR]
  1445   --psdir=DIR             ps documentation [DOCDIR]
  1446 _ACEOF
  1448   cat <<\_ACEOF
  1450 Program names:
  1451   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1452   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1455 System types:
  1456   --build=BUILD     configure for building on BUILD [guessed]
  1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1458 _ACEOF
  1459 fi
  1461 if test -n "$ac_init_help"; then
  1463   cat <<\_ACEOF
  1465 Optional Features:
  1466   --disable-option-checking  ignore unrecognized --enable/--with options
  1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1469   --enable-maintainer-mode  enable make rules and dependencies not useful
  1470 			  (and sometimes confusing) to the casual installer
  1471   --disable-dependency-tracking  speeds up one-time build
  1472   --enable-dependency-tracking   do not reject slow dependency extractors
  1473   --enable-strict-warn    Enable strict compilation warnings
  1474   --disable-translator    Disable the SH4 translator (Enabled by default)
  1475   --disable-optimized     Disable compile-time optimizations (Enabled by
  1476                           default)
  1477   --enable-profiled       Enable profiling build
  1478   --enable-trace          Enable generation of IO traces (warning: hurts
  1479                           performance)
  1480   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1481                           performance)
  1482   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1484 Optional Packages:
  1485   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1486   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1487   --with-osmesa           Build with the osmesa GL library (software
  1488                           rendering)
  1489   --with-gtk              Build with the GTK UI. Default on X11 systems
  1490   --with-esd              Build with support for the ESounD audio system
  1491   --with-pulse            Build with support for the PulseAudio audio system
  1493 Some influential environment variables:
  1494   CC          C compiler command
  1495   CFLAGS      C compiler flags
  1496   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1497               nonstandard directory <lib dir>
  1498   LIBS        libraries to pass to the linker, e.g. -l<library>
  1499   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1500               you have headers in a nonstandard directory <include dir>
  1501   CCAS        assembler compiler command (defaults to CC)
  1502   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1503   CPP         C preprocessor
  1504   PKG_CONFIG  path to pkg-config utility
  1505   LIBPNG_CFLAGS
  1506               C compiler flags for LIBPNG, overriding pkg-config
  1507   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1508   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1509   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1510   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1511   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1512   PULSE_CFLAGS
  1513               C compiler flags for PULSE, overriding pkg-config
  1514   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1515   ESOUND_CFLAGS
  1516               C compiler flags for ESOUND, overriding pkg-config
  1517   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1518   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1519   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1521 Use these variables to override the choices made by `configure' or to help
  1522 it to find libraries and programs with nonstandard names/locations.
  1524 _ACEOF
  1525 ac_status=$?
  1526 fi
  1528 if test "$ac_init_help" = "recursive"; then
  1529   # If there are subdirs, report their specific --help.
  1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1531     test -d "$ac_dir" ||
  1532       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1533       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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1540   # A ".." for each directory in $ac_dir_suffix.
  1541   ac_top_builddir_sub=`$as_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       $as_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.62
  1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1590 2002, 2003, 2004, 2005, 2006, 2007, 2008 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.62.  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   $as_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=`$as_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_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1725 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1726       esac
  1727       case $ac_var in #(
  1728       _ | IFS | as_nl) ;; #(
  1729       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1730       *) $as_unset $ac_var ;;
  1731       esac ;;
  1732     esac
  1733   done
  1734   (set) 2>&1 |
  1735     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1736     *${as_nl}ac_space=\ *)
  1737       sed -n \
  1738 	"s/'\''/'\''\\\\'\'''\''/g;
  1739 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1740       ;; #(
  1741     *)
  1742       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1743       ;;
  1744     esac |
  1745     sort
  1747     echo
  1749     cat <<\_ASBOX
  1750 ## ----------------- ##
  1751 ## Output variables. ##
  1752 ## ----------------- ##
  1753 _ASBOX
  1754     echo
  1755     for ac_var in $ac_subst_vars
  1756     do
  1757       eval ac_val=\$$ac_var
  1758       case $ac_val in
  1759       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1760       esac
  1761       $as_echo "$ac_var='\''$ac_val'\''"
  1762     done | sort
  1763     echo
  1765     if test -n "$ac_subst_files"; then
  1766       cat <<\_ASBOX
  1767 ## ------------------- ##
  1768 ## File substitutions. ##
  1769 ## ------------------- ##
  1770 _ASBOX
  1771       echo
  1772       for ac_var in $ac_subst_files
  1773       do
  1774 	eval ac_val=\$$ac_var
  1775 	case $ac_val in
  1776 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1777 	esac
  1778 	$as_echo "$ac_var='\''$ac_val'\''"
  1779       done | sort
  1780       echo
  1781     fi
  1783     if test -s confdefs.h; then
  1784       cat <<\_ASBOX
  1785 ## ----------- ##
  1786 ## confdefs.h. ##
  1787 ## ----------- ##
  1788 _ASBOX
  1789       echo
  1790       cat confdefs.h
  1791       echo
  1792     fi
  1793     test "$ac_signal" != 0 &&
  1794       $as_echo "$as_me: caught signal $ac_signal"
  1795     $as_echo "$as_me: exit $exit_status"
  1796   } >&5
  1797   rm -f core *.core core.conftest.* &&
  1798     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1799     exit $exit_status
  1800 ' 0
  1801 for ac_signal in 1 2 13 15; do
  1802   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1803 done
  1804 ac_signal=0
  1806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1807 rm -f -r conftest* confdefs.h
  1809 # Predefined preprocessor variables.
  1811 cat >>confdefs.h <<_ACEOF
  1812 #define PACKAGE_NAME "$PACKAGE_NAME"
  1813 _ACEOF
  1816 cat >>confdefs.h <<_ACEOF
  1817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1818 _ACEOF
  1821 cat >>confdefs.h <<_ACEOF
  1822 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1823 _ACEOF
  1826 cat >>confdefs.h <<_ACEOF
  1827 #define PACKAGE_STRING "$PACKAGE_STRING"
  1828 _ACEOF
  1831 cat >>confdefs.h <<_ACEOF
  1832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1833 _ACEOF
  1836 # Let the site file select an alternate cache file if it wants to.
  1837 # Prefer an explicitly selected file to automatically selected ones.
  1838 ac_site_file1=NONE
  1839 ac_site_file2=NONE
  1840 if test -n "$CONFIG_SITE"; then
  1841   ac_site_file1=$CONFIG_SITE
  1842 elif test "x$prefix" != xNONE; then
  1843   ac_site_file1=$prefix/share/config.site
  1844   ac_site_file2=$prefix/etc/config.site
  1845 else
  1846   ac_site_file1=$ac_default_prefix/share/config.site
  1847   ac_site_file2=$ac_default_prefix/etc/config.site
  1848 fi
  1849 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1850 do
  1851   test "x$ac_site_file" = xNONE && continue
  1852   if test -r "$ac_site_file"; then
  1853     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1854 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1855     sed 's/^/| /' "$ac_site_file" >&5
  1856     . "$ac_site_file"
  1857   fi
  1858 done
  1860 if test -r "$cache_file"; then
  1861   # Some versions of bash will fail to source /dev/null (special
  1862   # files actually), so we avoid doing that.
  1863   if test -f "$cache_file"; then
  1864     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1865 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1866     case $cache_file in
  1867       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1868       *)                      . "./$cache_file";;
  1869     esac
  1870   fi
  1871 else
  1872   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1873 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1874   >$cache_file
  1875 fi
  1877 # Check that the precious variables saved in the cache have kept the same
  1878 # value.
  1879 ac_cache_corrupted=false
  1880 for ac_var in $ac_precious_vars; do
  1881   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1882   eval ac_new_set=\$ac_env_${ac_var}_set
  1883   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1884   eval ac_new_val=\$ac_env_${ac_var}_value
  1885   case $ac_old_set,$ac_new_set in
  1886     set,)
  1887       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1889       ac_cache_corrupted=: ;;
  1890     ,set)
  1891       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1893       ac_cache_corrupted=: ;;
  1894     ,);;
  1895     *)
  1896       if test "x$ac_old_val" != "x$ac_new_val"; then
  1897 	# differences in whitespace do not lead to failure.
  1898 	ac_old_val_w=`echo x $ac_old_val`
  1899 	ac_new_val_w=`echo x $ac_new_val`
  1900 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1901 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1903 	  ac_cache_corrupted=:
  1904 	else
  1905 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1907 	  eval $ac_var=\$ac_old_val
  1908 	fi
  1909 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1910 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1911 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1912 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1913       fi;;
  1914   esac
  1915   # Pass precious variables to config.status.
  1916   if test "$ac_new_set" = set; then
  1917     case $ac_new_val in
  1918     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1919     *) ac_arg=$ac_var=$ac_new_val ;;
  1920     esac
  1921     case " $ac_configure_args " in
  1922       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1923       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1924     esac
  1925   fi
  1926 done
  1927 if $ac_cache_corrupted; then
  1928   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1930   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1932    { (exit 1); exit 1; }; }
  1933 fi
  1951 ac_ext=c
  1952 ac_cpp='$CPP $CPPFLAGS'
  1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1958 am__api_version="1.9"
  1959 ac_aux_dir=
  1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1961   if test -f "$ac_dir/install-sh"; then
  1962     ac_aux_dir=$ac_dir
  1963     ac_install_sh="$ac_aux_dir/install-sh -c"
  1964     break
  1965   elif test -f "$ac_dir/install.sh"; then
  1966     ac_aux_dir=$ac_dir
  1967     ac_install_sh="$ac_aux_dir/install.sh -c"
  1968     break
  1969   elif test -f "$ac_dir/shtool"; then
  1970     ac_aux_dir=$ac_dir
  1971     ac_install_sh="$ac_aux_dir/shtool install -c"
  1972     break
  1973   fi
  1974 done
  1975 if test -z "$ac_aux_dir"; then
  1976   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1977 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1978    { (exit 1); exit 1; }; }
  1979 fi
  1981 # These three variables are undocumented and unsupported,
  1982 # and are intended to be withdrawn in a future Autoconf release.
  1983 # They can cause serious problems if a builder's source tree is in a directory
  1984 # whose full name contains unusual characters.
  1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1987 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1990 # Find a good install program.  We prefer a C program (faster),
  1991 # so one script is as good as another.  But avoid the broken or
  1992 # incompatible versions:
  1993 # SysV /etc/install, /usr/sbin/install
  1994 # SunOS /usr/etc/install
  1995 # IRIX /sbin/install
  1996 # AIX /bin/install
  1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2001 # OS/2's system install, which has a completely different semantic
  2002 # ./install, which can be erroneously created by make from ./install.sh.
  2003 # Reject install programs that cannot install multiple files.
  2004 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2005 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2006 if test -z "$INSTALL"; then
  2007 if test "${ac_cv_path_install+set}" = set; then
  2008   $as_echo_n "(cached) " >&6
  2009 else
  2010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2011 for as_dir in $PATH
  2012 do
  2013   IFS=$as_save_IFS
  2014   test -z "$as_dir" && as_dir=.
  2015   # Account for people who put trailing slashes in PATH elements.
  2016 case $as_dir/ in
  2017   ./ | .// | /cC/* | \
  2018   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2019   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2020   /usr/ucb/* ) ;;
  2021   *)
  2022     # OSF1 and SCO ODT 3.0 have their own names for install.
  2023     # Don't use installbsd from OSF since it installs stuff as root
  2024     # by default.
  2025     for ac_prog in ginstall scoinst install; do
  2026       for ac_exec_ext in '' $ac_executable_extensions; do
  2027 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2028 	  if test $ac_prog = install &&
  2029 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2030 	    # AIX install.  It has an incompatible calling convention.
  2032 	  elif test $ac_prog = install &&
  2033 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2034 	    # program-specific install script used by HP pwplus--don't use.
  2036 	  else
  2037 	    rm -rf conftest.one conftest.two conftest.dir
  2038 	    echo one > conftest.one
  2039 	    echo two > conftest.two
  2040 	    mkdir conftest.dir
  2041 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2042 	      test -s conftest.one && test -s conftest.two &&
  2043 	      test -s conftest.dir/conftest.one &&
  2044 	      test -s conftest.dir/conftest.two
  2045 	    then
  2046 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2047 	      break 3
  2048 	    fi
  2049 	  fi
  2050 	fi
  2051       done
  2052     done
  2053     ;;
  2054 esac
  2056 done
  2057 IFS=$as_save_IFS
  2059 rm -rf conftest.one conftest.two conftest.dir
  2061 fi
  2062   if test "${ac_cv_path_install+set}" = set; then
  2063     INSTALL=$ac_cv_path_install
  2064   else
  2065     # As a last resort, use the slow shell script.  Don't cache a
  2066     # value for INSTALL within a source directory, because that will
  2067     # break other packages using the cache if that directory is
  2068     # removed, or if the value is a relative name.
  2069     INSTALL=$ac_install_sh
  2070   fi
  2071 fi
  2072 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2073 $as_echo "$INSTALL" >&6; }
  2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2076 # It thinks the first close brace ends the variable substitution.
  2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2083 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2084 $as_echo_n "checking whether build environment is sane... " >&6; }
  2085 # Just in case
  2086 sleep 1
  2087 echo timestamp > conftest.file
  2088 # Do `set' in a subshell so we don't clobber the current shell's
  2089 # arguments.  Must try -L first in case configure is actually a
  2090 # symlink; some systems play weird games with the mod time of symlinks
  2091 # (eg FreeBSD returns the mod time of the symlink's containing
  2092 # directory).
  2093 if (
  2094    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2095    if test "$*" = "X"; then
  2096       # -L didn't work.
  2097       set X `ls -t $srcdir/configure conftest.file`
  2098    fi
  2099    rm -f conftest.file
  2100    if test "$*" != "X $srcdir/configure conftest.file" \
  2101       && test "$*" != "X conftest.file $srcdir/configure"; then
  2103       # If neither matched, then we have a broken ls.  This can happen
  2104       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2105       # broken ls alias from the environment.  This has actually
  2106       # happened.  Such a system could not be considered "sane".
  2107       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2108 alias in your environment" >&5
  2109 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2110 alias in your environment" >&2;}
  2111    { (exit 1); exit 1; }; }
  2112    fi
  2114    test "$2" = conftest.file
  2116 then
  2117    # Ok.
  2119 else
  2120    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2121 Check your system clock" >&5
  2122 $as_echo "$as_me: error: newly created file is older than distributed files!
  2123 Check your system clock" >&2;}
  2124    { (exit 1); exit 1; }; }
  2125 fi
  2126 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2127 $as_echo "yes" >&6; }
  2128 test "$program_prefix" != NONE &&
  2129   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2130 # Use a double $ so make ignores it.
  2131 test "$program_suffix" != NONE &&
  2132   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2133 # Double any \ or $.
  2134 # By default was `s,x,x', remove it if useless.
  2135 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2136 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2138 # expand $ac_aux_dir to an absolute path
  2139 am_aux_dir=`cd $ac_aux_dir && pwd`
  2141 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2142 # Use eval to expand $SHELL
  2143 if eval "$MISSING --run true"; then
  2144   am_missing_run="$MISSING --run "
  2145 else
  2146   am_missing_run=
  2147   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2148 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2149 fi
  2151 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2152   # We used to keeping the `.' as first argument, in order to
  2153   # allow $(mkdir_p) to be used without argument.  As in
  2154   #   $(mkdir_p) $(somedir)
  2155   # where $(somedir) is conditionally defined.  However this is wrong
  2156   # for two reasons:
  2157   #  1. if the package is installed by a user who cannot write `.'
  2158   #     make install will fail,
  2159   #  2. the above comment should most certainly read
  2160   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2161   #     so it does not work when $(somedir) is undefined and
  2162   #     $(DESTDIR) is not.
  2163   #  To support the latter case, we have to write
  2164   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2165   #  so the `.' trick is pointless.
  2166   mkdir_p='mkdir -p --'
  2167 else
  2168   # On NextStep and OpenStep, the `mkdir' command does not
  2169   # recognize any option.  It will interpret all options as
  2170   # directories to create, and then abort because `.' already
  2171   # exists.
  2172   for d in ./-p ./--version;
  2173   do
  2174     test -d $d && rmdir $d
  2175   done
  2176   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2177   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2178     mkdir_p='$(mkinstalldirs)'
  2179   else
  2180     mkdir_p='$(install_sh) -d'
  2181   fi
  2182 fi
  2184 for ac_prog in gawk mawk nawk awk
  2185 do
  2186   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2187 set dummy $ac_prog; ac_word=$2
  2188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2189 $as_echo_n "checking for $ac_word... " >&6; }
  2190 if test "${ac_cv_prog_AWK+set}" = set; then
  2191   $as_echo_n "(cached) " >&6
  2192 else
  2193   if test -n "$AWK"; then
  2194   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2195 else
  2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2197 for as_dir in $PATH
  2198 do
  2199   IFS=$as_save_IFS
  2200   test -z "$as_dir" && as_dir=.
  2201   for ac_exec_ext in '' $ac_executable_extensions; do
  2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2203     ac_cv_prog_AWK="$ac_prog"
  2204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2205     break 2
  2206   fi
  2207 done
  2208 done
  2209 IFS=$as_save_IFS
  2211 fi
  2212 fi
  2213 AWK=$ac_cv_prog_AWK
  2214 if test -n "$AWK"; then
  2215   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2216 $as_echo "$AWK" >&6; }
  2217 else
  2218   { $as_echo "$as_me:$LINENO: result: no" >&5
  2219 $as_echo "no" >&6; }
  2220 fi
  2223   test -n "$AWK" && break
  2224 done
  2226 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2227 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2228 set x ${MAKE-make}
  2229 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2230 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2231   $as_echo_n "(cached) " >&6
  2232 else
  2233   cat >conftest.make <<\_ACEOF
  2234 SHELL = /bin/sh
  2235 all:
  2236 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2237 _ACEOF
  2238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2240   *@@@%%%=?*=@@@%%%*)
  2241     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2242   *)
  2243     eval ac_cv_prog_make_${ac_make}_set=no;;
  2244 esac
  2245 rm -f conftest.make
  2246 fi
  2247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2248   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2249 $as_echo "yes" >&6; }
  2250   SET_MAKE=
  2251 else
  2252   { $as_echo "$as_me:$LINENO: result: no" >&5
  2253 $as_echo "no" >&6; }
  2254   SET_MAKE="MAKE=${MAKE-make}"
  2255 fi
  2257 rm -rf .tst 2>/dev/null
  2258 mkdir .tst 2>/dev/null
  2259 if test -d .tst; then
  2260   am__leading_dot=.
  2261 else
  2262   am__leading_dot=_
  2263 fi
  2264 rmdir .tst 2>/dev/null
  2266 # test to see if srcdir already configured
  2267 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2268    test -f $srcdir/config.status; then
  2269   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2270 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2271    { (exit 1); exit 1; }; }
  2272 fi
  2274 # test whether we have cygpath
  2275 if test -z "$CYGPATH_W"; then
  2276   if (cygpath --version) >/dev/null 2>/dev/null; then
  2277     CYGPATH_W='cygpath -w'
  2278   else
  2279     CYGPATH_W=echo
  2280   fi
  2281 fi
  2284 # Define the identity of the package.
  2285  PACKAGE=lxdream
  2286  VERSION=0.9
  2289 cat >>confdefs.h <<_ACEOF
  2290 #define PACKAGE "$PACKAGE"
  2291 _ACEOF
  2294 cat >>confdefs.h <<_ACEOF
  2295 #define VERSION "$VERSION"
  2296 _ACEOF
  2298 # Some tools Automake needs.
  2300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2314 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2316 # Installed binaries are usually stripped using `strip' when the user
  2317 # run `make install-strip'.  However `strip' might not be the right
  2318 # tool to use in cross-compilation environments, therefore Automake
  2319 # will honor the `STRIP' environment variable to overrule this program.
  2320 if test "$cross_compiling" != no; then
  2321   if test -n "$ac_tool_prefix"; then
  2322   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2325 $as_echo_n "checking for $ac_word... " >&6; }
  2326 if test "${ac_cv_prog_STRIP+set}" = set; then
  2327   $as_echo_n "(cached) " >&6
  2328 else
  2329   if test -n "$STRIP"; then
  2330   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2331 else
  2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333 for as_dir in $PATH
  2334 do
  2335   IFS=$as_save_IFS
  2336   test -z "$as_dir" && as_dir=.
  2337   for ac_exec_ext in '' $ac_executable_extensions; do
  2338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2339     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341     break 2
  2342   fi
  2343 done
  2344 done
  2345 IFS=$as_save_IFS
  2347 fi
  2348 fi
  2349 STRIP=$ac_cv_prog_STRIP
  2350 if test -n "$STRIP"; then
  2351   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2352 $as_echo "$STRIP" >&6; }
  2353 else
  2354   { $as_echo "$as_me:$LINENO: result: no" >&5
  2355 $as_echo "no" >&6; }
  2356 fi
  2359 fi
  2360 if test -z "$ac_cv_prog_STRIP"; then
  2361   ac_ct_STRIP=$STRIP
  2362   # Extract the first word of "strip", so it can be a program name with args.
  2363 set dummy strip; ac_word=$2
  2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2365 $as_echo_n "checking for $ac_word... " >&6; }
  2366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2367   $as_echo_n "(cached) " >&6
  2368 else
  2369   if test -n "$ac_ct_STRIP"; then
  2370   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2371 else
  2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2373 for as_dir in $PATH
  2374 do
  2375   IFS=$as_save_IFS
  2376   test -z "$as_dir" && as_dir=.
  2377   for ac_exec_ext in '' $ac_executable_extensions; do
  2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2379     ac_cv_prog_ac_ct_STRIP="strip"
  2380     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2381     break 2
  2382   fi
  2383 done
  2384 done
  2385 IFS=$as_save_IFS
  2387 fi
  2388 fi
  2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2390 if test -n "$ac_ct_STRIP"; then
  2391   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2392 $as_echo "$ac_ct_STRIP" >&6; }
  2393 else
  2394   { $as_echo "$as_me:$LINENO: result: no" >&5
  2395 $as_echo "no" >&6; }
  2396 fi
  2398   if test "x$ac_ct_STRIP" = x; then
  2399     STRIP=":"
  2400   else
  2401     case $cross_compiling:$ac_tool_warned in
  2402 yes:)
  2403 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2404 whose name does not start with the host triplet.  If you think this
  2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2406 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2407 whose name does not start with the host triplet.  If you think this
  2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2409 ac_tool_warned=yes ;;
  2410 esac
  2411     STRIP=$ac_ct_STRIP
  2412   fi
  2413 else
  2414   STRIP="$ac_cv_prog_STRIP"
  2415 fi
  2417 fi
  2418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2420 # We need awk for the "check" target.  The system "awk" is bad on
  2421 # some platforms.
  2422 # Always define AMTAR for backward compatibility.
  2424 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2432 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2433 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2434     # Check whether --enable-maintainer-mode was given.
  2435 if test "${enable_maintainer_mode+set}" = set; then
  2436   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2437 else
  2438   USE_MAINTAINER_MODE=no
  2439 fi
  2441   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2442 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2445 if test $USE_MAINTAINER_MODE = yes; then
  2446   MAINTAINER_MODE_TRUE=
  2447   MAINTAINER_MODE_FALSE='#'
  2448 else
  2449   MAINTAINER_MODE_TRUE='#'
  2450   MAINTAINER_MODE_FALSE=
  2451 fi
  2453   MAINT=$MAINTAINER_MODE_TRUE
  2456 ac_config_headers="$ac_config_headers config.h"
  2459 DEPDIR="${am__leading_dot}deps"
  2461 ac_config_commands="$ac_config_commands depfiles"
  2464 am_make=${MAKE-make}
  2465 cat > confinc << 'END'
  2466 am__doit:
  2467 	@echo done
  2468 .PHONY: am__doit
  2469 END
  2470 # If we don't find an include directive, just comment out the code.
  2471 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2472 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2473 am__include="#"
  2474 am__quote=
  2475 _am_result=none
  2476 # First try GNU make style include.
  2477 echo "include confinc" > confmf
  2478 # We grep out `Entering directory' and `Leaving directory'
  2479 # messages which can occur if `w' ends up in MAKEFLAGS.
  2480 # In particular we don't look at `^make:' because GNU make might
  2481 # be invoked under some other name (usually "gmake"), in which
  2482 # case it prints its new name instead of `make'.
  2483 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2484    am__include=include
  2485    am__quote=
  2486    _am_result=GNU
  2487 fi
  2488 # Now try BSD make style include.
  2489 if test "$am__include" = "#"; then
  2490    echo '.include "confinc"' > confmf
  2491    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2492       am__include=.include
  2493       am__quote="\""
  2494       _am_result=BSD
  2495    fi
  2496 fi
  2499 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2500 $as_echo "$_am_result" >&6; }
  2501 rm -f confinc confmf
  2503 # Check whether --enable-dependency-tracking was given.
  2504 if test "${enable_dependency_tracking+set}" = set; then
  2505   enableval=$enable_dependency_tracking;
  2506 fi
  2508 if test "x$enable_dependency_tracking" != xno; then
  2509   am_depcomp="$ac_aux_dir/depcomp"
  2510   AMDEPBACKSLASH='\'
  2511 fi
  2514 if test "x$enable_dependency_tracking" != xno; then
  2515   AMDEP_TRUE=
  2516   AMDEP_FALSE='#'
  2517 else
  2518   AMDEP_TRUE='#'
  2519   AMDEP_FALSE=
  2520 fi
  2524 ac_ext=c
  2525 ac_cpp='$CPP $CPPFLAGS'
  2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2529 if test -n "$ac_tool_prefix"; then
  2530   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2533 $as_echo_n "checking for $ac_word... " >&6; }
  2534 if test "${ac_cv_prog_CC+set}" = set; then
  2535   $as_echo_n "(cached) " >&6
  2536 else
  2537   if test -n "$CC"; then
  2538   ac_cv_prog_CC="$CC" # Let the user override the test.
  2539 else
  2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2541 for as_dir in $PATH
  2542 do
  2543   IFS=$as_save_IFS
  2544   test -z "$as_dir" && as_dir=.
  2545   for ac_exec_ext in '' $ac_executable_extensions; do
  2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2547     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2549     break 2
  2550   fi
  2551 done
  2552 done
  2553 IFS=$as_save_IFS
  2555 fi
  2556 fi
  2557 CC=$ac_cv_prog_CC
  2558 if test -n "$CC"; then
  2559   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2560 $as_echo "$CC" >&6; }
  2561 else
  2562   { $as_echo "$as_me:$LINENO: result: no" >&5
  2563 $as_echo "no" >&6; }
  2564 fi
  2567 fi
  2568 if test -z "$ac_cv_prog_CC"; then
  2569   ac_ct_CC=$CC
  2570   # Extract the first word of "gcc", so it can be a program name with args.
  2571 set dummy gcc; ac_word=$2
  2572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2573 $as_echo_n "checking for $ac_word... " >&6; }
  2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2575   $as_echo_n "(cached) " >&6
  2576 else
  2577   if test -n "$ac_ct_CC"; then
  2578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2579 else
  2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581 for as_dir in $PATH
  2582 do
  2583   IFS=$as_save_IFS
  2584   test -z "$as_dir" && as_dir=.
  2585   for ac_exec_ext in '' $ac_executable_extensions; do
  2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2587     ac_cv_prog_ac_ct_CC="gcc"
  2588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589     break 2
  2590   fi
  2591 done
  2592 done
  2593 IFS=$as_save_IFS
  2595 fi
  2596 fi
  2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2598 if test -n "$ac_ct_CC"; then
  2599   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2600 $as_echo "$ac_ct_CC" >&6; }
  2601 else
  2602   { $as_echo "$as_me:$LINENO: result: no" >&5
  2603 $as_echo "no" >&6; }
  2604 fi
  2606   if test "x$ac_ct_CC" = x; then
  2607     CC=""
  2608   else
  2609     case $cross_compiling:$ac_tool_warned in
  2610 yes:)
  2611 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2612 whose name does not start with the host triplet.  If you think this
  2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2614 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2615 whose name does not start with the host triplet.  If you think this
  2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2617 ac_tool_warned=yes ;;
  2618 esac
  2619     CC=$ac_ct_CC
  2620   fi
  2621 else
  2622   CC="$ac_cv_prog_CC"
  2623 fi
  2625 if test -z "$CC"; then
  2626           if test -n "$ac_tool_prefix"; then
  2627     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2628 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2630 $as_echo_n "checking for $ac_word... " >&6; }
  2631 if test "${ac_cv_prog_CC+set}" = set; then
  2632   $as_echo_n "(cached) " >&6
  2633 else
  2634   if test -n "$CC"; then
  2635   ac_cv_prog_CC="$CC" # Let the user override the test.
  2636 else
  2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638 for as_dir in $PATH
  2639 do
  2640   IFS=$as_save_IFS
  2641   test -z "$as_dir" && as_dir=.
  2642   for ac_exec_ext in '' $ac_executable_extensions; do
  2643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2644     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2645     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646     break 2
  2647   fi
  2648 done
  2649 done
  2650 IFS=$as_save_IFS
  2652 fi
  2653 fi
  2654 CC=$ac_cv_prog_CC
  2655 if test -n "$CC"; then
  2656   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2657 $as_echo "$CC" >&6; }
  2658 else
  2659   { $as_echo "$as_me:$LINENO: result: no" >&5
  2660 $as_echo "no" >&6; }
  2661 fi
  2664   fi
  2665 fi
  2666 if test -z "$CC"; then
  2667   # Extract the first word of "cc", so it can be a program name with args.
  2668 set dummy cc; ac_word=$2
  2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2670 $as_echo_n "checking for $ac_word... " >&6; }
  2671 if test "${ac_cv_prog_CC+set}" = set; then
  2672   $as_echo_n "(cached) " >&6
  2673 else
  2674   if test -n "$CC"; then
  2675   ac_cv_prog_CC="$CC" # Let the user override the test.
  2676 else
  2677   ac_prog_rejected=no
  2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2679 for as_dir in $PATH
  2680 do
  2681   IFS=$as_save_IFS
  2682   test -z "$as_dir" && as_dir=.
  2683   for ac_exec_ext in '' $ac_executable_extensions; do
  2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2685     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2686        ac_prog_rejected=yes
  2687        continue
  2688      fi
  2689     ac_cv_prog_CC="cc"
  2690     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2691     break 2
  2692   fi
  2693 done
  2694 done
  2695 IFS=$as_save_IFS
  2697 if test $ac_prog_rejected = yes; then
  2698   # We found a bogon in the path, so make sure we never use it.
  2699   set dummy $ac_cv_prog_CC
  2700   shift
  2701   if test $# != 0; then
  2702     # We chose a different compiler from the bogus one.
  2703     # However, it has the same basename, so the bogon will be chosen
  2704     # first if we set CC to just the basename; use the full file name.
  2705     shift
  2706     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2707   fi
  2708 fi
  2709 fi
  2710 fi
  2711 CC=$ac_cv_prog_CC
  2712 if test -n "$CC"; then
  2713   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2714 $as_echo "$CC" >&6; }
  2715 else
  2716   { $as_echo "$as_me:$LINENO: result: no" >&5
  2717 $as_echo "no" >&6; }
  2718 fi
  2721 fi
  2722 if test -z "$CC"; then
  2723   if test -n "$ac_tool_prefix"; then
  2724   for ac_prog in cl.exe
  2725   do
  2726     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2729 $as_echo_n "checking for $ac_word... " >&6; }
  2730 if test "${ac_cv_prog_CC+set}" = set; then
  2731   $as_echo_n "(cached) " >&6
  2732 else
  2733   if test -n "$CC"; then
  2734   ac_cv_prog_CC="$CC" # Let the user override the test.
  2735 else
  2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737 for as_dir in $PATH
  2738 do
  2739   IFS=$as_save_IFS
  2740   test -z "$as_dir" && as_dir=.
  2741   for ac_exec_ext in '' $ac_executable_extensions; do
  2742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2743     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745     break 2
  2746   fi
  2747 done
  2748 done
  2749 IFS=$as_save_IFS
  2751 fi
  2752 fi
  2753 CC=$ac_cv_prog_CC
  2754 if test -n "$CC"; then
  2755   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2756 $as_echo "$CC" >&6; }
  2757 else
  2758   { $as_echo "$as_me:$LINENO: result: no" >&5
  2759 $as_echo "no" >&6; }
  2760 fi
  2763     test -n "$CC" && break
  2764   done
  2765 fi
  2766 if test -z "$CC"; then
  2767   ac_ct_CC=$CC
  2768   for ac_prog in cl.exe
  2769 do
  2770   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2771 set dummy $ac_prog; ac_word=$2
  2772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2773 $as_echo_n "checking for $ac_word... " >&6; }
  2774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2775   $as_echo_n "(cached) " >&6
  2776 else
  2777   if test -n "$ac_ct_CC"; then
  2778   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2779 else
  2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781 for as_dir in $PATH
  2782 do
  2783   IFS=$as_save_IFS
  2784   test -z "$as_dir" && as_dir=.
  2785   for ac_exec_ext in '' $ac_executable_extensions; do
  2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2787     ac_cv_prog_ac_ct_CC="$ac_prog"
  2788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789     break 2
  2790   fi
  2791 done
  2792 done
  2793 IFS=$as_save_IFS
  2795 fi
  2796 fi
  2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2798 if test -n "$ac_ct_CC"; then
  2799   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2800 $as_echo "$ac_ct_CC" >&6; }
  2801 else
  2802   { $as_echo "$as_me:$LINENO: result: no" >&5
  2803 $as_echo "no" >&6; }
  2804 fi
  2807   test -n "$ac_ct_CC" && break
  2808 done
  2810   if test "x$ac_ct_CC" = x; then
  2811     CC=""
  2812   else
  2813     case $cross_compiling:$ac_tool_warned in
  2814 yes:)
  2815 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2816 whose name does not start with the host triplet.  If you think this
  2817 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2818 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2819 whose name does not start with the host triplet.  If you think this
  2820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2821 ac_tool_warned=yes ;;
  2822 esac
  2823     CC=$ac_ct_CC
  2824   fi
  2825 fi
  2827 fi
  2830 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2831 See \`config.log' for more details." >&5
  2832 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2833 See \`config.log' for more details." >&2;}
  2834    { (exit 1); exit 1; }; }
  2836 # Provide some information about the compiler.
  2837 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2838 set X $ac_compile
  2839 ac_compiler=$2
  2840 { (ac_try="$ac_compiler --version >&5"
  2841 case "(($ac_try" in
  2842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843   *) ac_try_echo=$ac_try;;
  2844 esac
  2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2846 $as_echo "$ac_try_echo") >&5
  2847   (eval "$ac_compiler --version >&5") 2>&5
  2848   ac_status=$?
  2849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850   (exit $ac_status); }
  2851 { (ac_try="$ac_compiler -v >&5"
  2852 case "(($ac_try" in
  2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854   *) ac_try_echo=$ac_try;;
  2855 esac
  2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2857 $as_echo "$ac_try_echo") >&5
  2858   (eval "$ac_compiler -v >&5") 2>&5
  2859   ac_status=$?
  2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861   (exit $ac_status); }
  2862 { (ac_try="$ac_compiler -V >&5"
  2863 case "(($ac_try" in
  2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2865   *) ac_try_echo=$ac_try;;
  2866 esac
  2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2868 $as_echo "$ac_try_echo") >&5
  2869   (eval "$ac_compiler -V >&5") 2>&5
  2870   ac_status=$?
  2871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872   (exit $ac_status); }
  2874 cat >conftest.$ac_ext <<_ACEOF
  2875 /* confdefs.h.  */
  2876 _ACEOF
  2877 cat confdefs.h >>conftest.$ac_ext
  2878 cat >>conftest.$ac_ext <<_ACEOF
  2879 /* end confdefs.h.  */
  2881 int
  2882 main ()
  2886   return 0;
  2888 _ACEOF
  2889 ac_clean_files_save=$ac_clean_files
  2890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2891 # Try to create an executable without -o first, disregard a.out.
  2892 # It will help us diagnose broken compilers, and finding out an intuition
  2893 # of exeext.
  2894 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2898 # The possible output files:
  2899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2901 ac_rmfiles=
  2902 for ac_file in $ac_files
  2903 do
  2904   case $ac_file in
  2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2906     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2907   esac
  2908 done
  2909 rm -f $ac_rmfiles
  2911 if { (ac_try="$ac_link_default"
  2912 case "(($ac_try" in
  2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914   *) ac_try_echo=$ac_try;;
  2915 esac
  2916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2917 $as_echo "$ac_try_echo") >&5
  2918   (eval "$ac_link_default") 2>&5
  2919   ac_status=$?
  2920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921   (exit $ac_status); }; then
  2922   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2924 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2925 # so that the user can short-circuit this test for compilers unknown to
  2926 # Autoconf.
  2927 for ac_file in $ac_files ''
  2928 do
  2929   test -f "$ac_file" || continue
  2930   case $ac_file in
  2931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2932 	;;
  2933     [ab].out )
  2934 	# We found the default executable, but exeext='' is most
  2935 	# certainly right.
  2936 	break;;
  2937     *.* )
  2938         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2939 	then :; else
  2940 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2941 	fi
  2942 	# We set ac_cv_exeext here because the later test for it is not
  2943 	# safe: cross compilers may not add the suffix if given an `-o'
  2944 	# argument, so we may need to know it at that point already.
  2945 	# Even if this section looks crufty: it has the advantage of
  2946 	# actually working.
  2947 	break;;
  2948     * )
  2949 	break;;
  2950   esac
  2951 done
  2952 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2954 else
  2955   ac_file=''
  2956 fi
  2958 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2959 $as_echo "$ac_file" >&6; }
  2960 if test -z "$ac_file"; then
  2961   $as_echo "$as_me: failed program was:" >&5
  2962 sed 's/^/| /' conftest.$ac_ext >&5
  2964 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2965 See \`config.log' for more details." >&5
  2966 $as_echo "$as_me: error: C compiler cannot create executables
  2967 See \`config.log' for more details." >&2;}
  2968    { (exit 77); exit 77; }; }
  2969 fi
  2971 ac_exeext=$ac_cv_exeext
  2973 # Check that the compiler produces executables we can run.  If not, either
  2974 # the compiler is broken, or we cross compile.
  2975 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2976 $as_echo_n "checking whether the C compiler works... " >&6; }
  2977 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2978 # If not cross compiling, check that we can run a simple program.
  2979 if test "$cross_compiling" != yes; then
  2980   if { ac_try='./$ac_file'
  2981   { (case "(($ac_try" in
  2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983   *) ac_try_echo=$ac_try;;
  2984 esac
  2985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2986 $as_echo "$ac_try_echo") >&5
  2987   (eval "$ac_try") 2>&5
  2988   ac_status=$?
  2989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2990   (exit $ac_status); }; }; then
  2991     cross_compiling=no
  2992   else
  2993     if test "$cross_compiling" = maybe; then
  2994 	cross_compiling=yes
  2995     else
  2996 	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2997 If you meant to cross compile, use \`--host'.
  2998 See \`config.log' for more details." >&5
  2999 $as_echo "$as_me: error: cannot run C compiled programs.
  3000 If you meant to cross compile, use \`--host'.
  3001 See \`config.log' for more details." >&2;}
  3002    { (exit 1); exit 1; }; }
  3003     fi
  3004   fi
  3005 fi
  3006 { $as_echo "$as_me:$LINENO: result: yes" >&5
  3007 $as_echo "yes" >&6; }
  3009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3010 ac_clean_files=$ac_clean_files_save
  3011 # Check that the compiler produces executables we can run.  If not, either
  3012 # the compiler is broken, or we cross compile.
  3013 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3014 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3015 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3016 $as_echo "$cross_compiling" >&6; }
  3018 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3019 $as_echo_n "checking for suffix of executables... " >&6; }
  3020 if { (ac_try="$ac_link"
  3021 case "(($ac_try" in
  3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023   *) ac_try_echo=$ac_try;;
  3024 esac
  3025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3026 $as_echo "$ac_try_echo") >&5
  3027   (eval "$ac_link") 2>&5
  3028   ac_status=$?
  3029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3030   (exit $ac_status); }; then
  3031   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3032 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3033 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3034 # `rm'.
  3035 for ac_file in conftest.exe conftest conftest.*; do
  3036   test -f "$ac_file" || continue
  3037   case $ac_file in
  3038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3039     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3040 	  break;;
  3041     * ) break;;
  3042   esac
  3043 done
  3044 else
  3045   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3046 See \`config.log' for more details." >&5
  3047 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3048 See \`config.log' for more details." >&2;}
  3049    { (exit 1); exit 1; }; }
  3050 fi
  3052 rm -f conftest$ac_cv_exeext
  3053 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3054 $as_echo "$ac_cv_exeext" >&6; }
  3056 rm -f conftest.$ac_ext
  3057 EXEEXT=$ac_cv_exeext
  3058 ac_exeext=$EXEEXT
  3059 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3060 $as_echo_n "checking for suffix of object files... " >&6; }
  3061 if test "${ac_cv_objext+set}" = set; then
  3062   $as_echo_n "(cached) " >&6
  3063 else
  3064   cat >conftest.$ac_ext <<_ACEOF
  3065 /* confdefs.h.  */
  3066 _ACEOF
  3067 cat confdefs.h >>conftest.$ac_ext
  3068 cat >>conftest.$ac_ext <<_ACEOF
  3069 /* end confdefs.h.  */
  3071 int
  3072 main ()
  3076   return 0;
  3078 _ACEOF
  3079 rm -f conftest.o conftest.obj
  3080 if { (ac_try="$ac_compile"
  3081 case "(($ac_try" in
  3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083   *) ac_try_echo=$ac_try;;
  3084 esac
  3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3086 $as_echo "$ac_try_echo") >&5
  3087   (eval "$ac_compile") 2>&5
  3088   ac_status=$?
  3089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090   (exit $ac_status); }; then
  3091   for ac_file in conftest.o conftest.obj conftest.*; do
  3092   test -f "$ac_file" || continue;
  3093   case $ac_file in
  3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3095     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3096        break;;
  3097   esac
  3098 done
  3099 else
  3100   $as_echo "$as_me: failed program was:" >&5
  3101 sed 's/^/| /' conftest.$ac_ext >&5
  3103 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3104 See \`config.log' for more details." >&5
  3105 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3106 See \`config.log' for more details." >&2;}
  3107    { (exit 1); exit 1; }; }
  3108 fi
  3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3111 fi
  3112 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3113 $as_echo "$ac_cv_objext" >&6; }
  3114 OBJEXT=$ac_cv_objext
  3115 ac_objext=$OBJEXT
  3116 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3119   $as_echo_n "(cached) " >&6
  3120 else
  3121   cat >conftest.$ac_ext <<_ACEOF
  3122 /* confdefs.h.  */
  3123 _ACEOF
  3124 cat confdefs.h >>conftest.$ac_ext
  3125 cat >>conftest.$ac_ext <<_ACEOF
  3126 /* end confdefs.h.  */
  3128 int
  3129 main ()
  3131 #ifndef __GNUC__
  3132        choke me
  3133 #endif
  3136   return 0;
  3138 _ACEOF
  3139 rm -f conftest.$ac_objext
  3140 if { (ac_try="$ac_compile"
  3141 case "(($ac_try" in
  3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3143   *) ac_try_echo=$ac_try;;
  3144 esac
  3145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3146 $as_echo "$ac_try_echo") >&5
  3147   (eval "$ac_compile") 2>conftest.er1
  3148   ac_status=$?
  3149   grep -v '^ *+' conftest.er1 >conftest.err
  3150   rm -f conftest.er1
  3151   cat conftest.err >&5
  3152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3153   (exit $ac_status); } && {
  3154 	 test -z "$ac_c_werror_flag" ||
  3155 	 test ! -s conftest.err
  3156        } && test -s conftest.$ac_objext; then
  3157   ac_compiler_gnu=yes
  3158 else
  3159   $as_echo "$as_me: failed program was:" >&5
  3160 sed 's/^/| /' conftest.$ac_ext >&5
  3162 	ac_compiler_gnu=no
  3163 fi
  3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3168 fi
  3169 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3170 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3171 if test $ac_compiler_gnu = yes; then
  3172   GCC=yes
  3173 else
  3174   GCC=
  3175 fi
  3176 ac_test_CFLAGS=${CFLAGS+set}
  3177 ac_save_CFLAGS=$CFLAGS
  3178 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3179 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3180 if test "${ac_cv_prog_cc_g+set}" = set; then
  3181   $as_echo_n "(cached) " >&6
  3182 else
  3183   ac_save_c_werror_flag=$ac_c_werror_flag
  3184    ac_c_werror_flag=yes
  3185    ac_cv_prog_cc_g=no
  3186    CFLAGS="-g"
  3187    cat >conftest.$ac_ext <<_ACEOF
  3188 /* confdefs.h.  */
  3189 _ACEOF
  3190 cat confdefs.h >>conftest.$ac_ext
  3191 cat >>conftest.$ac_ext <<_ACEOF
  3192 /* end confdefs.h.  */
  3194 int
  3195 main ()
  3199   return 0;
  3201 _ACEOF
  3202 rm -f conftest.$ac_objext
  3203 if { (ac_try="$ac_compile"
  3204 case "(($ac_try" in
  3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3206   *) ac_try_echo=$ac_try;;
  3207 esac
  3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3209 $as_echo "$ac_try_echo") >&5
  3210   (eval "$ac_compile") 2>conftest.er1
  3211   ac_status=$?
  3212   grep -v '^ *+' conftest.er1 >conftest.err
  3213   rm -f conftest.er1
  3214   cat conftest.err >&5
  3215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3216   (exit $ac_status); } && {
  3217 	 test -z "$ac_c_werror_flag" ||
  3218 	 test ! -s conftest.err
  3219        } && test -s conftest.$ac_objext; then
  3220   ac_cv_prog_cc_g=yes
  3221 else
  3222   $as_echo "$as_me: failed program was:" >&5
  3223 sed 's/^/| /' conftest.$ac_ext >&5
  3225 	CFLAGS=""
  3226       cat >conftest.$ac_ext <<_ACEOF
  3227 /* confdefs.h.  */
  3228 _ACEOF
  3229 cat confdefs.h >>conftest.$ac_ext
  3230 cat >>conftest.$ac_ext <<_ACEOF
  3231 /* end confdefs.h.  */
  3233 int
  3234 main ()
  3238   return 0;
  3240 _ACEOF
  3241 rm -f conftest.$ac_objext
  3242 if { (ac_try="$ac_compile"
  3243 case "(($ac_try" in
  3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245   *) ac_try_echo=$ac_try;;
  3246 esac
  3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3248 $as_echo "$ac_try_echo") >&5
  3249   (eval "$ac_compile") 2>conftest.er1
  3250   ac_status=$?
  3251   grep -v '^ *+' conftest.er1 >conftest.err
  3252   rm -f conftest.er1
  3253   cat conftest.err >&5
  3254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3255   (exit $ac_status); } && {
  3256 	 test -z "$ac_c_werror_flag" ||
  3257 	 test ! -s conftest.err
  3258        } && test -s conftest.$ac_objext; then
  3260 else
  3261   $as_echo "$as_me: failed program was:" >&5
  3262 sed 's/^/| /' conftest.$ac_ext >&5
  3264 	ac_c_werror_flag=$ac_save_c_werror_flag
  3265 	 CFLAGS="-g"
  3266 	 cat >conftest.$ac_ext <<_ACEOF
  3267 /* confdefs.h.  */
  3268 _ACEOF
  3269 cat confdefs.h >>conftest.$ac_ext
  3270 cat >>conftest.$ac_ext <<_ACEOF
  3271 /* end confdefs.h.  */
  3273 int
  3274 main ()
  3278   return 0;
  3280 _ACEOF
  3281 rm -f conftest.$ac_objext
  3282 if { (ac_try="$ac_compile"
  3283 case "(($ac_try" in
  3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3285   *) ac_try_echo=$ac_try;;
  3286 esac
  3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3288 $as_echo "$ac_try_echo") >&5
  3289   (eval "$ac_compile") 2>conftest.er1
  3290   ac_status=$?
  3291   grep -v '^ *+' conftest.er1 >conftest.err
  3292   rm -f conftest.er1
  3293   cat conftest.err >&5
  3294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295   (exit $ac_status); } && {
  3296 	 test -z "$ac_c_werror_flag" ||
  3297 	 test ! -s conftest.err
  3298        } && test -s conftest.$ac_objext; then
  3299   ac_cv_prog_cc_g=yes
  3300 else
  3301   $as_echo "$as_me: failed program was:" >&5
  3302 sed 's/^/| /' conftest.$ac_ext >&5
  3305 fi
  3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3308 fi
  3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3311 fi
  3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3314    ac_c_werror_flag=$ac_save_c_werror_flag
  3315 fi
  3316 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3317 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3318 if test "$ac_test_CFLAGS" = set; then
  3319   CFLAGS=$ac_save_CFLAGS
  3320 elif test $ac_cv_prog_cc_g = yes; then
  3321   if test "$GCC" = yes; then
  3322     CFLAGS="-g -O2"
  3323   else
  3324     CFLAGS="-g"
  3325   fi
  3326 else
  3327   if test "$GCC" = yes; then
  3328     CFLAGS="-O2"
  3329   else
  3330     CFLAGS=
  3331   fi
  3332 fi
  3333 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3334 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3335 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3336   $as_echo_n "(cached) " >&6
  3337 else
  3338   ac_cv_prog_cc_c89=no
  3339 ac_save_CC=$CC
  3340 cat >conftest.$ac_ext <<_ACEOF
  3341 /* confdefs.h.  */
  3342 _ACEOF
  3343 cat confdefs.h >>conftest.$ac_ext
  3344 cat >>conftest.$ac_ext <<_ACEOF
  3345 /* end confdefs.h.  */
  3346 #include <stdarg.h>
  3347 #include <stdio.h>
  3348 #include <sys/types.h>
  3349 #include <sys/stat.h>
  3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3351 struct buf { int x; };
  3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3353 static char *e (p, i)
  3354      char **p;
  3355      int i;
  3357   return p[i];
  3359 static char *f (char * (*g) (char **, int), char **p, ...)
  3361   char *s;
  3362   va_list v;
  3363   va_start (v,p);
  3364   s = g (p, va_arg (v,int));
  3365   va_end (v);
  3366   return s;
  3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3370    function prototypes and stuff, but not '\xHH' hex character constants.
  3371    These don't provoke an error unfortunately, instead are silently treated
  3372    as 'x'.  The following induces an error, until -std is added to get
  3373    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3374    array size at least.  It's necessary to write '\x00'==0 to get something
  3375    that's true only with -std.  */
  3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3379    inside strings and character constants.  */
  3380 #define FOO(x) 'x'
  3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3383 int test (int i, double x);
  3384 struct s1 {int (*f) (int a);};
  3385 struct s2 {int (*f) (double a);};
  3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3387 int argc;
  3388 char **argv;
  3389 int
  3390 main ()
  3392 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3394   return 0;
  3396 _ACEOF
  3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3398 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3399 do
  3400   CC="$ac_save_CC $ac_arg"
  3401   rm -f conftest.$ac_objext
  3402 if { (ac_try="$ac_compile"
  3403 case "(($ac_try" in
  3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405   *) ac_try_echo=$ac_try;;
  3406 esac
  3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3408 $as_echo "$ac_try_echo") >&5
  3409   (eval "$ac_compile") 2>conftest.er1
  3410   ac_status=$?
  3411   grep -v '^ *+' conftest.er1 >conftest.err
  3412   rm -f conftest.er1
  3413   cat conftest.err >&5
  3414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3415   (exit $ac_status); } && {
  3416 	 test -z "$ac_c_werror_flag" ||
  3417 	 test ! -s conftest.err
  3418        } && test -s conftest.$ac_objext; then
  3419   ac_cv_prog_cc_c89=$ac_arg
  3420 else
  3421   $as_echo "$as_me: failed program was:" >&5
  3422 sed 's/^/| /' conftest.$ac_ext >&5
  3425 fi
  3427 rm -f core conftest.err conftest.$ac_objext
  3428   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3429 done
  3430 rm -f conftest.$ac_ext
  3431 CC=$ac_save_CC
  3433 fi
  3434 # AC_CACHE_VAL
  3435 case "x$ac_cv_prog_cc_c89" in
  3436   x)
  3437     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3438 $as_echo "none needed" >&6; } ;;
  3439   xno)
  3440     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3441 $as_echo "unsupported" >&6; } ;;
  3442   *)
  3443     CC="$CC $ac_cv_prog_cc_c89"
  3444     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3446 esac
  3449 ac_ext=c
  3450 ac_cpp='$CPP $CPPFLAGS'
  3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3455 depcc="$CC"   am_compiler_list=
  3457 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3458 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3460   $as_echo_n "(cached) " >&6
  3461 else
  3462   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3463   # We make a subdir and do the tests there.  Otherwise we can end up
  3464   # making bogus files that we don't know about and never remove.  For
  3465   # instance it was reported that on HP-UX the gcc test will end up
  3466   # making a dummy file named `D' -- because `-MD' means `put the output
  3467   # in D'.
  3468   mkdir conftest.dir
  3469   # Copy depcomp to subdir because otherwise we won't find it if we're
  3470   # using a relative directory.
  3471   cp "$am_depcomp" conftest.dir
  3472   cd conftest.dir
  3473   # We will build objects and dependencies in a subdirectory because
  3474   # it helps to detect inapplicable dependency modes.  For instance
  3475   # both Tru64's cc and ICC support -MD to output dependencies as a
  3476   # side effect of compilation, but ICC will put the dependencies in
  3477   # the current directory while Tru64 will put them in the object
  3478   # directory.
  3479   mkdir sub
  3481   am_cv_CC_dependencies_compiler_type=none
  3482   if test "$am_compiler_list" = ""; then
  3483      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3484   fi
  3485   for depmode in $am_compiler_list; do
  3486     # Setup a source with many dependencies, because some compilers
  3487     # like to wrap large dependency lists on column 80 (with \), and
  3488     # we should not choose a depcomp mode which is confused by this.
  3490     # We need to recreate these files for each test, as the compiler may
  3491     # overwrite some of them when testing with obscure command lines.
  3492     # This happens at least with the AIX C compiler.
  3493     : > sub/conftest.c
  3494     for i in 1 2 3 4 5 6; do
  3495       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3496       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3497       # Solaris 8's {/usr,}/bin/sh.
  3498       touch sub/conftst$i.h
  3499     done
  3500     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3502     case $depmode in
  3503     nosideeffect)
  3504       # after this tag, mechanisms are not by side-effect, so they'll
  3505       # only be used when explicitly requested
  3506       if test "x$enable_dependency_tracking" = xyes; then
  3507 	continue
  3508       else
  3509 	break
  3510       fi
  3511       ;;
  3512     none) break ;;
  3513     esac
  3514     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3515     # mode.  It turns out that the SunPro C++ compiler does not properly
  3516     # handle `-M -o', and we need to detect this.
  3517     if depmode=$depmode \
  3518        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3519        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3520        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3521          >/dev/null 2>conftest.err &&
  3522        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3523        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3524        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3525       # icc doesn't choke on unknown options, it will just issue warnings
  3526       # or remarks (even with -Werror).  So we grep stderr for any message
  3527       # that says an option was ignored or not supported.
  3528       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3529       #   icc: Command line warning: ignoring option '-M'; no argument required
  3530       # The diagnosis changed in icc 8.0:
  3531       #   icc: Command line remark: option '-MP' not supported
  3532       if (grep 'ignoring option' conftest.err ||
  3533           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3534         am_cv_CC_dependencies_compiler_type=$depmode
  3535         break
  3536       fi
  3537     fi
  3538   done
  3540   cd ..
  3541   rm -rf conftest.dir
  3542 else
  3543   am_cv_CC_dependencies_compiler_type=none
  3544 fi
  3546 fi
  3547 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3548 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3549 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3553 if
  3554   test "x$enable_dependency_tracking" != xno \
  3555   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3556   am__fastdepCC_TRUE=
  3557   am__fastdepCC_FALSE='#'
  3558 else
  3559   am__fastdepCC_TRUE='#'
  3560   am__fastdepCC_FALSE=
  3561 fi
  3566         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3567 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3568 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3569   $as_echo_n "(cached) " >&6
  3570 else
  3571   ac_check_lib_save_LIBS=$LIBS
  3572 LIBS="-lcposix  $LIBS"
  3573 cat >conftest.$ac_ext <<_ACEOF
  3574 /* confdefs.h.  */
  3575 _ACEOF
  3576 cat confdefs.h >>conftest.$ac_ext
  3577 cat >>conftest.$ac_ext <<_ACEOF
  3578 /* end confdefs.h.  */
  3580 /* Override any GCC internal prototype to avoid an error.
  3581    Use char because int might match the return type of a GCC
  3582    builtin and then its argument prototype would still apply.  */
  3583 #ifdef __cplusplus
  3584 extern "C"
  3585 #endif
  3586 char strerror ();
  3587 int
  3588 main ()
  3590 return strerror ();
  3592   return 0;
  3594 _ACEOF
  3595 rm -f conftest.$ac_objext conftest$ac_exeext
  3596 if { (ac_try="$ac_link"
  3597 case "(($ac_try" in
  3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3599   *) ac_try_echo=$ac_try;;
  3600 esac
  3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3602 $as_echo "$ac_try_echo") >&5
  3603   (eval "$ac_link") 2>conftest.er1
  3604   ac_status=$?
  3605   grep -v '^ *+' conftest.er1 >conftest.err
  3606   rm -f conftest.er1
  3607   cat conftest.err >&5
  3608   $as_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_exeext && {
  3613 	 test "$cross_compiling" = yes ||
  3614 	 $as_test_x conftest$ac_exeext
  3615        }; then
  3616   ac_cv_lib_cposix_strerror=yes
  3617 else
  3618   $as_echo "$as_me: failed program was:" >&5
  3619 sed 's/^/| /' conftest.$ac_ext >&5
  3621 	ac_cv_lib_cposix_strerror=no
  3622 fi
  3624 rm -rf conftest.dSYM
  3625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3626       conftest$ac_exeext conftest.$ac_ext
  3627 LIBS=$ac_check_lib_save_LIBS
  3628 fi
  3629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3630 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3631 if test $ac_cv_lib_cposix_strerror = yes; then
  3632   LIBS="$LIBS -lcposix"
  3633 fi
  3637 ac_ext=c
  3638 ac_cpp='$CPP $CPPFLAGS'
  3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3642 if test -n "$ac_tool_prefix"; then
  3643   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3646 $as_echo_n "checking for $ac_word... " >&6; }
  3647 if test "${ac_cv_prog_CC+set}" = set; then
  3648   $as_echo_n "(cached) " >&6
  3649 else
  3650   if test -n "$CC"; then
  3651   ac_cv_prog_CC="$CC" # Let the user override the test.
  3652 else
  3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3654 for as_dir in $PATH
  3655 do
  3656   IFS=$as_save_IFS
  3657   test -z "$as_dir" && as_dir=.
  3658   for ac_exec_ext in '' $ac_executable_extensions; do
  3659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3660     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3662     break 2
  3663   fi
  3664 done
  3665 done
  3666 IFS=$as_save_IFS
  3668 fi
  3669 fi
  3670 CC=$ac_cv_prog_CC
  3671 if test -n "$CC"; then
  3672   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3673 $as_echo "$CC" >&6; }
  3674 else
  3675   { $as_echo "$as_me:$LINENO: result: no" >&5
  3676 $as_echo "no" >&6; }
  3677 fi
  3680 fi
  3681 if test -z "$ac_cv_prog_CC"; then
  3682   ac_ct_CC=$CC
  3683   # Extract the first word of "gcc", so it can be a program name with args.
  3684 set dummy gcc; ac_word=$2
  3685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3686 $as_echo_n "checking for $ac_word... " >&6; }
  3687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3688   $as_echo_n "(cached) " >&6
  3689 else
  3690   if test -n "$ac_ct_CC"; then
  3691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3692 else
  3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694 for as_dir in $PATH
  3695 do
  3696   IFS=$as_save_IFS
  3697   test -z "$as_dir" && as_dir=.
  3698   for ac_exec_ext in '' $ac_executable_extensions; do
  3699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3700     ac_cv_prog_ac_ct_CC="gcc"
  3701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3702     break 2
  3703   fi
  3704 done
  3705 done
  3706 IFS=$as_save_IFS
  3708 fi
  3709 fi
  3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3711 if test -n "$ac_ct_CC"; then
  3712   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3713 $as_echo "$ac_ct_CC" >&6; }
  3714 else
  3715   { $as_echo "$as_me:$LINENO: result: no" >&5
  3716 $as_echo "no" >&6; }
  3717 fi
  3719   if test "x$ac_ct_CC" = x; then
  3720     CC=""
  3721   else
  3722     case $cross_compiling:$ac_tool_warned in
  3723 yes:)
  3724 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3725 whose name does not start with the host triplet.  If you think this
  3726 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3727 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3728 whose name does not start with the host triplet.  If you think this
  3729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3730 ac_tool_warned=yes ;;
  3731 esac
  3732     CC=$ac_ct_CC
  3733   fi
  3734 else
  3735   CC="$ac_cv_prog_CC"
  3736 fi
  3738 if test -z "$CC"; then
  3739           if test -n "$ac_tool_prefix"; then
  3740     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3741 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3743 $as_echo_n "checking for $ac_word... " >&6; }
  3744 if test "${ac_cv_prog_CC+set}" = set; then
  3745   $as_echo_n "(cached) " >&6
  3746 else
  3747   if test -n "$CC"; then
  3748   ac_cv_prog_CC="$CC" # Let the user override the test.
  3749 else
  3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751 for as_dir in $PATH
  3752 do
  3753   IFS=$as_save_IFS
  3754   test -z "$as_dir" && as_dir=.
  3755   for ac_exec_ext in '' $ac_executable_extensions; do
  3756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3757     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759     break 2
  3760   fi
  3761 done
  3762 done
  3763 IFS=$as_save_IFS
  3765 fi
  3766 fi
  3767 CC=$ac_cv_prog_CC
  3768 if test -n "$CC"; then
  3769   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3770 $as_echo "$CC" >&6; }
  3771 else
  3772   { $as_echo "$as_me:$LINENO: result: no" >&5
  3773 $as_echo "no" >&6; }
  3774 fi
  3777   fi
  3778 fi
  3779 if test -z "$CC"; then
  3780   # Extract the first word of "cc", so it can be a program name with args.
  3781 set dummy cc; ac_word=$2
  3782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3783 $as_echo_n "checking for $ac_word... " >&6; }
  3784 if test "${ac_cv_prog_CC+set}" = set; then
  3785   $as_echo_n "(cached) " >&6
  3786 else
  3787   if test -n "$CC"; then
  3788   ac_cv_prog_CC="$CC" # Let the user override the test.
  3789 else
  3790   ac_prog_rejected=no
  3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3792 for as_dir in $PATH
  3793 do
  3794   IFS=$as_save_IFS
  3795   test -z "$as_dir" && as_dir=.
  3796   for ac_exec_ext in '' $ac_executable_extensions; do
  3797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3798     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3799        ac_prog_rejected=yes
  3800        continue
  3801      fi
  3802     ac_cv_prog_CC="cc"
  3803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3804     break 2
  3805   fi
  3806 done
  3807 done
  3808 IFS=$as_save_IFS
  3810 if test $ac_prog_rejected = yes; then
  3811   # We found a bogon in the path, so make sure we never use it.
  3812   set dummy $ac_cv_prog_CC
  3813   shift
  3814   if test $# != 0; then
  3815     # We chose a different compiler from the bogus one.
  3816     # However, it has the same basename, so the bogon will be chosen
  3817     # first if we set CC to just the basename; use the full file name.
  3818     shift
  3819     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3820   fi
  3821 fi
  3822 fi
  3823 fi
  3824 CC=$ac_cv_prog_CC
  3825 if test -n "$CC"; then
  3826   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3827 $as_echo "$CC" >&6; }
  3828 else
  3829   { $as_echo "$as_me:$LINENO: result: no" >&5
  3830 $as_echo "no" >&6; }
  3831 fi
  3834 fi
  3835 if test -z "$CC"; then
  3836   if test -n "$ac_tool_prefix"; then
  3837   for ac_prog in cl.exe
  3838   do
  3839     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3842 $as_echo_n "checking for $ac_word... " >&6; }
  3843 if test "${ac_cv_prog_CC+set}" = set; then
  3844   $as_echo_n "(cached) " >&6
  3845 else
  3846   if test -n "$CC"; then
  3847   ac_cv_prog_CC="$CC" # Let the user override the test.
  3848 else
  3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3850 for as_dir in $PATH
  3851 do
  3852   IFS=$as_save_IFS
  3853   test -z "$as_dir" && as_dir=.
  3854   for ac_exec_ext in '' $ac_executable_extensions; do
  3855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3856     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3857     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3858     break 2
  3859   fi
  3860 done
  3861 done
  3862 IFS=$as_save_IFS
  3864 fi
  3865 fi
  3866 CC=$ac_cv_prog_CC
  3867 if test -n "$CC"; then
  3868   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3869 $as_echo "$CC" >&6; }
  3870 else
  3871   { $as_echo "$as_me:$LINENO: result: no" >&5
  3872 $as_echo "no" >&6; }
  3873 fi
  3876     test -n "$CC" && break
  3877   done
  3878 fi
  3879 if test -z "$CC"; then
  3880   ac_ct_CC=$CC
  3881   for ac_prog in cl.exe
  3882 do
  3883   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3884 set dummy $ac_prog; ac_word=$2
  3885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3886 $as_echo_n "checking for $ac_word... " >&6; }
  3887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3888   $as_echo_n "(cached) " >&6
  3889 else
  3890   if test -n "$ac_ct_CC"; then
  3891   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3892 else
  3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3894 for as_dir in $PATH
  3895 do
  3896   IFS=$as_save_IFS
  3897   test -z "$as_dir" && as_dir=.
  3898   for ac_exec_ext in '' $ac_executable_extensions; do
  3899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3900     ac_cv_prog_ac_ct_CC="$ac_prog"
  3901     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3902     break 2
  3903   fi
  3904 done
  3905 done
  3906 IFS=$as_save_IFS
  3908 fi
  3909 fi
  3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3911 if test -n "$ac_ct_CC"; then
  3912   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3913 $as_echo "$ac_ct_CC" >&6; }
  3914 else
  3915   { $as_echo "$as_me:$LINENO: result: no" >&5
  3916 $as_echo "no" >&6; }
  3917 fi
  3920   test -n "$ac_ct_CC" && break
  3921 done
  3923   if test "x$ac_ct_CC" = x; then
  3924     CC=""
  3925   else
  3926     case $cross_compiling:$ac_tool_warned in
  3927 yes:)
  3928 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3929 whose name does not start with the host triplet.  If you think this
  3930 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3931 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3932 whose name does not start with the host triplet.  If you think this
  3933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3934 ac_tool_warned=yes ;;
  3935 esac
  3936     CC=$ac_ct_CC
  3937   fi
  3938 fi
  3940 fi
  3943 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3944 See \`config.log' for more details." >&5
  3945 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3946 See \`config.log' for more details." >&2;}
  3947    { (exit 1); exit 1; }; }
  3949 # Provide some information about the compiler.
  3950 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3951 set X $ac_compile
  3952 ac_compiler=$2
  3953 { (ac_try="$ac_compiler --version >&5"
  3954 case "(($ac_try" in
  3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3956   *) ac_try_echo=$ac_try;;
  3957 esac
  3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3959 $as_echo "$ac_try_echo") >&5
  3960   (eval "$ac_compiler --version >&5") 2>&5
  3961   ac_status=$?
  3962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963   (exit $ac_status); }
  3964 { (ac_try="$ac_compiler -v >&5"
  3965 case "(($ac_try" in
  3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3967   *) ac_try_echo=$ac_try;;
  3968 esac
  3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3970 $as_echo "$ac_try_echo") >&5
  3971   (eval "$ac_compiler -v >&5") 2>&5
  3972   ac_status=$?
  3973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974   (exit $ac_status); }
  3975 { (ac_try="$ac_compiler -V >&5"
  3976 case "(($ac_try" in
  3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3978   *) ac_try_echo=$ac_try;;
  3979 esac
  3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3981 $as_echo "$ac_try_echo") >&5
  3982   (eval "$ac_compiler -V >&5") 2>&5
  3983   ac_status=$?
  3984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985   (exit $ac_status); }
  3987 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3988 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3990   $as_echo_n "(cached) " >&6
  3991 else
  3992   cat >conftest.$ac_ext <<_ACEOF
  3993 /* confdefs.h.  */
  3994 _ACEOF
  3995 cat confdefs.h >>conftest.$ac_ext
  3996 cat >>conftest.$ac_ext <<_ACEOF
  3997 /* end confdefs.h.  */
  3999 int
  4000 main ()
  4002 #ifndef __GNUC__
  4003        choke me
  4004 #endif
  4007   return 0;
  4009 _ACEOF
  4010 rm -f conftest.$ac_objext
  4011 if { (ac_try="$ac_compile"
  4012 case "(($ac_try" in
  4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4014   *) ac_try_echo=$ac_try;;
  4015 esac
  4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4017 $as_echo "$ac_try_echo") >&5
  4018   (eval "$ac_compile") 2>conftest.er1
  4019   ac_status=$?
  4020   grep -v '^ *+' conftest.er1 >conftest.err
  4021   rm -f conftest.er1
  4022   cat conftest.err >&5
  4023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024   (exit $ac_status); } && {
  4025 	 test -z "$ac_c_werror_flag" ||
  4026 	 test ! -s conftest.err
  4027        } && test -s conftest.$ac_objext; then
  4028   ac_compiler_gnu=yes
  4029 else
  4030   $as_echo "$as_me: failed program was:" >&5
  4031 sed 's/^/| /' conftest.$ac_ext >&5
  4033 	ac_compiler_gnu=no
  4034 fi
  4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4039 fi
  4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4042 if test $ac_compiler_gnu = yes; then
  4043   GCC=yes
  4044 else
  4045   GCC=
  4046 fi
  4047 ac_test_CFLAGS=${CFLAGS+set}
  4048 ac_save_CFLAGS=$CFLAGS
  4049 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4051 if test "${ac_cv_prog_cc_g+set}" = set; then
  4052   $as_echo_n "(cached) " >&6
  4053 else
  4054   ac_save_c_werror_flag=$ac_c_werror_flag
  4055    ac_c_werror_flag=yes
  4056    ac_cv_prog_cc_g=no
  4057    CFLAGS="-g"
  4058    cat >conftest.$ac_ext <<_ACEOF
  4059 /* confdefs.h.  */
  4060 _ACEOF
  4061 cat confdefs.h >>conftest.$ac_ext
  4062 cat >>conftest.$ac_ext <<_ACEOF
  4063 /* end confdefs.h.  */
  4065 int
  4066 main ()
  4070   return 0;
  4072 _ACEOF
  4073 rm -f conftest.$ac_objext
  4074 if { (ac_try="$ac_compile"
  4075 case "(($ac_try" in
  4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4077   *) ac_try_echo=$ac_try;;
  4078 esac
  4079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4080 $as_echo "$ac_try_echo") >&5
  4081   (eval "$ac_compile") 2>conftest.er1
  4082   ac_status=$?
  4083   grep -v '^ *+' conftest.er1 >conftest.err
  4084   rm -f conftest.er1
  4085   cat conftest.err >&5
  4086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087   (exit $ac_status); } && {
  4088 	 test -z "$ac_c_werror_flag" ||
  4089 	 test ! -s conftest.err
  4090        } && test -s conftest.$ac_objext; then
  4091   ac_cv_prog_cc_g=yes
  4092 else
  4093   $as_echo "$as_me: failed program was:" >&5
  4094 sed 's/^/| /' conftest.$ac_ext >&5
  4096 	CFLAGS=""
  4097       cat >conftest.$ac_ext <<_ACEOF
  4098 /* confdefs.h.  */
  4099 _ACEOF
  4100 cat confdefs.h >>conftest.$ac_ext
  4101 cat >>conftest.$ac_ext <<_ACEOF
  4102 /* end confdefs.h.  */
  4104 int
  4105 main ()
  4109   return 0;
  4111 _ACEOF
  4112 rm -f conftest.$ac_objext
  4113 if { (ac_try="$ac_compile"
  4114 case "(($ac_try" in
  4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4116   *) ac_try_echo=$ac_try;;
  4117 esac
  4118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4119 $as_echo "$ac_try_echo") >&5
  4120   (eval "$ac_compile") 2>conftest.er1
  4121   ac_status=$?
  4122   grep -v '^ *+' conftest.er1 >conftest.err
  4123   rm -f conftest.er1
  4124   cat conftest.err >&5
  4125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126   (exit $ac_status); } && {
  4127 	 test -z "$ac_c_werror_flag" ||
  4128 	 test ! -s conftest.err
  4129        } && test -s conftest.$ac_objext; then
  4131 else
  4132   $as_echo "$as_me: failed program was:" >&5
  4133 sed 's/^/| /' conftest.$ac_ext >&5
  4135 	ac_c_werror_flag=$ac_save_c_werror_flag
  4136 	 CFLAGS="-g"
  4137 	 cat >conftest.$ac_ext <<_ACEOF
  4138 /* confdefs.h.  */
  4139 _ACEOF
  4140 cat confdefs.h >>conftest.$ac_ext
  4141 cat >>conftest.$ac_ext <<_ACEOF
  4142 /* end confdefs.h.  */
  4144 int
  4145 main ()
  4149   return 0;
  4151 _ACEOF
  4152 rm -f conftest.$ac_objext
  4153 if { (ac_try="$ac_compile"
  4154 case "(($ac_try" in
  4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4156   *) ac_try_echo=$ac_try;;
  4157 esac
  4158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4159 $as_echo "$ac_try_echo") >&5
  4160   (eval "$ac_compile") 2>conftest.er1
  4161   ac_status=$?
  4162   grep -v '^ *+' conftest.er1 >conftest.err
  4163   rm -f conftest.er1
  4164   cat conftest.err >&5
  4165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4166   (exit $ac_status); } && {
  4167 	 test -z "$ac_c_werror_flag" ||
  4168 	 test ! -s conftest.err
  4169        } && test -s conftest.$ac_objext; then
  4170   ac_cv_prog_cc_g=yes
  4171 else
  4172   $as_echo "$as_me: failed program was:" >&5
  4173 sed 's/^/| /' conftest.$ac_ext >&5
  4176 fi
  4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4179 fi
  4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4182 fi
  4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4185    ac_c_werror_flag=$ac_save_c_werror_flag
  4186 fi
  4187 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4188 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4189 if test "$ac_test_CFLAGS" = set; then
  4190   CFLAGS=$ac_save_CFLAGS
  4191 elif test $ac_cv_prog_cc_g = yes; then
  4192   if test "$GCC" = yes; then
  4193     CFLAGS="-g -O2"
  4194   else
  4195     CFLAGS="-g"
  4196   fi
  4197 else
  4198   if test "$GCC" = yes; then
  4199     CFLAGS="-O2"
  4200   else
  4201     CFLAGS=
  4202   fi
  4203 fi
  4204 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4206 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4207   $as_echo_n "(cached) " >&6
  4208 else
  4209   ac_cv_prog_cc_c89=no
  4210 ac_save_CC=$CC
  4211 cat >conftest.$ac_ext <<_ACEOF
  4212 /* confdefs.h.  */
  4213 _ACEOF
  4214 cat confdefs.h >>conftest.$ac_ext
  4215 cat >>conftest.$ac_ext <<_ACEOF
  4216 /* end confdefs.h.  */
  4217 #include <stdarg.h>
  4218 #include <stdio.h>
  4219 #include <sys/types.h>
  4220 #include <sys/stat.h>
  4221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4222 struct buf { int x; };
  4223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4224 static char *e (p, i)
  4225      char **p;
  4226      int i;
  4228   return p[i];
  4230 static char *f (char * (*g) (char **, int), char **p, ...)
  4232   char *s;
  4233   va_list v;
  4234   va_start (v,p);
  4235   s = g (p, va_arg (v,int));
  4236   va_end (v);
  4237   return s;
  4240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4241    function prototypes and stuff, but not '\xHH' hex character constants.
  4242    These don't provoke an error unfortunately, instead are silently treated
  4243    as 'x'.  The following induces an error, until -std is added to get
  4244    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4245    array size at least.  It's necessary to write '\x00'==0 to get something
  4246    that's true only with -std.  */
  4247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4250    inside strings and character constants.  */
  4251 #define FOO(x) 'x'
  4252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4254 int test (int i, double x);
  4255 struct s1 {int (*f) (int a);};
  4256 struct s2 {int (*f) (double a);};
  4257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4258 int argc;
  4259 char **argv;
  4260 int
  4261 main ()
  4263 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4265   return 0;
  4267 _ACEOF
  4268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4269 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4270 do
  4271   CC="$ac_save_CC $ac_arg"
  4272   rm -f conftest.$ac_objext
  4273 if { (ac_try="$ac_compile"
  4274 case "(($ac_try" in
  4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4276   *) ac_try_echo=$ac_try;;
  4277 esac
  4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4279 $as_echo "$ac_try_echo") >&5
  4280   (eval "$ac_compile") 2>conftest.er1
  4281   ac_status=$?
  4282   grep -v '^ *+' conftest.er1 >conftest.err
  4283   rm -f conftest.er1
  4284   cat conftest.err >&5
  4285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4286   (exit $ac_status); } && {
  4287 	 test -z "$ac_c_werror_flag" ||
  4288 	 test ! -s conftest.err
  4289        } && test -s conftest.$ac_objext; then
  4290   ac_cv_prog_cc_c89=$ac_arg
  4291 else
  4292   $as_echo "$as_me: failed program was:" >&5
  4293 sed 's/^/| /' conftest.$ac_ext >&5
  4296 fi
  4298 rm -f core conftest.err conftest.$ac_objext
  4299   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4300 done
  4301 rm -f conftest.$ac_ext
  4302 CC=$ac_save_CC
  4304 fi
  4305 # AC_CACHE_VAL
  4306 case "x$ac_cv_prog_cc_c89" in
  4307   x)
  4308     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4309 $as_echo "none needed" >&6; } ;;
  4310   xno)
  4311     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4312 $as_echo "unsupported" >&6; } ;;
  4313   *)
  4314     CC="$CC $ac_cv_prog_cc_c89"
  4315     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4317 esac
  4320 ac_ext=c
  4321 ac_cpp='$CPP $CPPFLAGS'
  4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326 depcc="$CC"   am_compiler_list=
  4328 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4329 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4330 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4331   $as_echo_n "(cached) " >&6
  4332 else
  4333   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4334   # We make a subdir and do the tests there.  Otherwise we can end up
  4335   # making bogus files that we don't know about and never remove.  For
  4336   # instance it was reported that on HP-UX the gcc test will end up
  4337   # making a dummy file named `D' -- because `-MD' means `put the output
  4338   # in D'.
  4339   mkdir conftest.dir
  4340   # Copy depcomp to subdir because otherwise we won't find it if we're
  4341   # using a relative directory.
  4342   cp "$am_depcomp" conftest.dir
  4343   cd conftest.dir
  4344   # We will build objects and dependencies in a subdirectory because
  4345   # it helps to detect inapplicable dependency modes.  For instance
  4346   # both Tru64's cc and ICC support -MD to output dependencies as a
  4347   # side effect of compilation, but ICC will put the dependencies in
  4348   # the current directory while Tru64 will put them in the object
  4349   # directory.
  4350   mkdir sub
  4352   am_cv_CC_dependencies_compiler_type=none
  4353   if test "$am_compiler_list" = ""; then
  4354      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4355   fi
  4356   for depmode in $am_compiler_list; do
  4357     # Setup a source with many dependencies, because some compilers
  4358     # like to wrap large dependency lists on column 80 (with \), and
  4359     # we should not choose a depcomp mode which is confused by this.
  4361     # We need to recreate these files for each test, as the compiler may
  4362     # overwrite some of them when testing with obscure command lines.
  4363     # This happens at least with the AIX C compiler.
  4364     : > sub/conftest.c
  4365     for i in 1 2 3 4 5 6; do
  4366       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4367       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4368       # Solaris 8's {/usr,}/bin/sh.
  4369       touch sub/conftst$i.h
  4370     done
  4371     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4373     case $depmode in
  4374     nosideeffect)
  4375       # after this tag, mechanisms are not by side-effect, so they'll
  4376       # only be used when explicitly requested
  4377       if test "x$enable_dependency_tracking" = xyes; then
  4378 	continue
  4379       else
  4380 	break
  4381       fi
  4382       ;;
  4383     none) break ;;
  4384     esac
  4385     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4386     # mode.  It turns out that the SunPro C++ compiler does not properly
  4387     # handle `-M -o', and we need to detect this.
  4388     if depmode=$depmode \
  4389        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4390        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4391        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4392          >/dev/null 2>conftest.err &&
  4393        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4394        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4395        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4396       # icc doesn't choke on unknown options, it will just issue warnings
  4397       # or remarks (even with -Werror).  So we grep stderr for any message
  4398       # that says an option was ignored or not supported.
  4399       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4400       #   icc: Command line warning: ignoring option '-M'; no argument required
  4401       # The diagnosis changed in icc 8.0:
  4402       #   icc: Command line remark: option '-MP' not supported
  4403       if (grep 'ignoring option' conftest.err ||
  4404           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4405         am_cv_CC_dependencies_compiler_type=$depmode
  4406         break
  4407       fi
  4408     fi
  4409   done
  4411   cd ..
  4412   rm -rf conftest.dir
  4413 else
  4414   am_cv_CC_dependencies_compiler_type=none
  4415 fi
  4417 fi
  4418 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4419 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4424 if
  4425   test "x$enable_dependency_tracking" != xno \
  4426   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4427   am__fastdepCC_TRUE=
  4428   am__fastdepCC_FALSE='#'
  4429 else
  4430   am__fastdepCC_TRUE='#'
  4431   am__fastdepCC_FALSE=
  4432 fi
  4435 ac_ext=c
  4436 ac_cpp='$CPP $CPPFLAGS'
  4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4440 if test -n "$ac_tool_prefix"; then
  4441   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4444 $as_echo_n "checking for $ac_word... " >&6; }
  4445 if test "${ac_cv_prog_CC+set}" = set; then
  4446   $as_echo_n "(cached) " >&6
  4447 else
  4448   if test -n "$CC"; then
  4449   ac_cv_prog_CC="$CC" # Let the user override the test.
  4450 else
  4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452 for as_dir in $PATH
  4453 do
  4454   IFS=$as_save_IFS
  4455   test -z "$as_dir" && as_dir=.
  4456   for ac_exec_ext in '' $ac_executable_extensions; do
  4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460     break 2
  4461   fi
  4462 done
  4463 done
  4464 IFS=$as_save_IFS
  4466 fi
  4467 fi
  4468 CC=$ac_cv_prog_CC
  4469 if test -n "$CC"; then
  4470   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4471 $as_echo "$CC" >&6; }
  4472 else
  4473   { $as_echo "$as_me:$LINENO: result: no" >&5
  4474 $as_echo "no" >&6; }
  4475 fi
  4478 fi
  4479 if test -z "$ac_cv_prog_CC"; then
  4480   ac_ct_CC=$CC
  4481   # Extract the first word of "gcc", so it can be a program name with args.
  4482 set dummy gcc; ac_word=$2
  4483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4484 $as_echo_n "checking for $ac_word... " >&6; }
  4485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4486   $as_echo_n "(cached) " >&6
  4487 else
  4488   if test -n "$ac_ct_CC"; then
  4489   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4490 else
  4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4492 for as_dir in $PATH
  4493 do
  4494   IFS=$as_save_IFS
  4495   test -z "$as_dir" && as_dir=.
  4496   for ac_exec_ext in '' $ac_executable_extensions; do
  4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4498     ac_cv_prog_ac_ct_CC="gcc"
  4499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4500     break 2
  4501   fi
  4502 done
  4503 done
  4504 IFS=$as_save_IFS
  4506 fi
  4507 fi
  4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4509 if test -n "$ac_ct_CC"; then
  4510   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4511 $as_echo "$ac_ct_CC" >&6; }
  4512 else
  4513   { $as_echo "$as_me:$LINENO: result: no" >&5
  4514 $as_echo "no" >&6; }
  4515 fi
  4517   if test "x$ac_ct_CC" = x; then
  4518     CC=""
  4519   else
  4520     case $cross_compiling:$ac_tool_warned in
  4521 yes:)
  4522 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4523 whose name does not start with the host triplet.  If you think this
  4524 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4525 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4526 whose name does not start with the host triplet.  If you think this
  4527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4528 ac_tool_warned=yes ;;
  4529 esac
  4530     CC=$ac_ct_CC
  4531   fi
  4532 else
  4533   CC="$ac_cv_prog_CC"
  4534 fi
  4536 if test -z "$CC"; then
  4537           if test -n "$ac_tool_prefix"; then
  4538     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4539 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4541 $as_echo_n "checking for $ac_word... " >&6; }
  4542 if test "${ac_cv_prog_CC+set}" = set; then
  4543   $as_echo_n "(cached) " >&6
  4544 else
  4545   if test -n "$CC"; then
  4546   ac_cv_prog_CC="$CC" # Let the user override the test.
  4547 else
  4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549 for as_dir in $PATH
  4550 do
  4551   IFS=$as_save_IFS
  4552   test -z "$as_dir" && as_dir=.
  4553   for ac_exec_ext in '' $ac_executable_extensions; do
  4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4555     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4557     break 2
  4558   fi
  4559 done
  4560 done
  4561 IFS=$as_save_IFS
  4563 fi
  4564 fi
  4565 CC=$ac_cv_prog_CC
  4566 if test -n "$CC"; then
  4567   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4568 $as_echo "$CC" >&6; }
  4569 else
  4570   { $as_echo "$as_me:$LINENO: result: no" >&5
  4571 $as_echo "no" >&6; }
  4572 fi
  4575   fi
  4576 fi
  4577 if test -z "$CC"; then
  4578   # Extract the first word of "cc", so it can be a program name with args.
  4579 set dummy cc; ac_word=$2
  4580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4581 $as_echo_n "checking for $ac_word... " >&6; }
  4582 if test "${ac_cv_prog_CC+set}" = set; then
  4583   $as_echo_n "(cached) " >&6
  4584 else
  4585   if test -n "$CC"; then
  4586   ac_cv_prog_CC="$CC" # Let the user override the test.
  4587 else
  4588   ac_prog_rejected=no
  4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4590 for as_dir in $PATH
  4591 do
  4592   IFS=$as_save_IFS
  4593   test -z "$as_dir" && as_dir=.
  4594   for ac_exec_ext in '' $ac_executable_extensions; do
  4595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4596     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4597        ac_prog_rejected=yes
  4598        continue
  4599      fi
  4600     ac_cv_prog_CC="cc"
  4601     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4602     break 2
  4603   fi
  4604 done
  4605 done
  4606 IFS=$as_save_IFS
  4608 if test $ac_prog_rejected = yes; then
  4609   # We found a bogon in the path, so make sure we never use it.
  4610   set dummy $ac_cv_prog_CC
  4611   shift
  4612   if test $# != 0; then
  4613     # We chose a different compiler from the bogus one.
  4614     # However, it has the same basename, so the bogon will be chosen
  4615     # first if we set CC to just the basename; use the full file name.
  4616     shift
  4617     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4618   fi
  4619 fi
  4620 fi
  4621 fi
  4622 CC=$ac_cv_prog_CC
  4623 if test -n "$CC"; then
  4624   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4625 $as_echo "$CC" >&6; }
  4626 else
  4627   { $as_echo "$as_me:$LINENO: result: no" >&5
  4628 $as_echo "no" >&6; }
  4629 fi
  4632 fi
  4633 if test -z "$CC"; then
  4634   if test -n "$ac_tool_prefix"; then
  4635   for ac_prog in cl.exe
  4636   do
  4637     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4640 $as_echo_n "checking for $ac_word... " >&6; }
  4641 if test "${ac_cv_prog_CC+set}" = set; then
  4642   $as_echo_n "(cached) " >&6
  4643 else
  4644   if test -n "$CC"; then
  4645   ac_cv_prog_CC="$CC" # Let the user override the test.
  4646 else
  4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4648 for as_dir in $PATH
  4649 do
  4650   IFS=$as_save_IFS
  4651   test -z "$as_dir" && as_dir=.
  4652   for ac_exec_ext in '' $ac_executable_extensions; do
  4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4654     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4656     break 2
  4657   fi
  4658 done
  4659 done
  4660 IFS=$as_save_IFS
  4662 fi
  4663 fi
  4664 CC=$ac_cv_prog_CC
  4665 if test -n "$CC"; then
  4666   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4667 $as_echo "$CC" >&6; }
  4668 else
  4669   { $as_echo "$as_me:$LINENO: result: no" >&5
  4670 $as_echo "no" >&6; }
  4671 fi
  4674     test -n "$CC" && break
  4675   done
  4676 fi
  4677 if test -z "$CC"; then
  4678   ac_ct_CC=$CC
  4679   for ac_prog in cl.exe
  4680 do
  4681   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4682 set dummy $ac_prog; ac_word=$2
  4683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4684 $as_echo_n "checking for $ac_word... " >&6; }
  4685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4686   $as_echo_n "(cached) " >&6
  4687 else
  4688   if test -n "$ac_ct_CC"; then
  4689   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4690 else
  4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4692 for as_dir in $PATH
  4693 do
  4694   IFS=$as_save_IFS
  4695   test -z "$as_dir" && as_dir=.
  4696   for ac_exec_ext in '' $ac_executable_extensions; do
  4697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4698     ac_cv_prog_ac_ct_CC="$ac_prog"
  4699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4700     break 2
  4701   fi
  4702 done
  4703 done
  4704 IFS=$as_save_IFS
  4706 fi
  4707 fi
  4708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4709 if test -n "$ac_ct_CC"; then
  4710   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4711 $as_echo "$ac_ct_CC" >&6; }
  4712 else
  4713   { $as_echo "$as_me:$LINENO: result: no" >&5
  4714 $as_echo "no" >&6; }
  4715 fi
  4718   test -n "$ac_ct_CC" && break
  4719 done
  4721   if test "x$ac_ct_CC" = x; then
  4722     CC=""
  4723   else
  4724     case $cross_compiling:$ac_tool_warned in
  4725 yes:)
  4726 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4727 whose name does not start with the host triplet.  If you think this
  4728 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4729 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4730 whose name does not start with the host triplet.  If you think this
  4731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4732 ac_tool_warned=yes ;;
  4733 esac
  4734     CC=$ac_ct_CC
  4735   fi
  4736 fi
  4738 fi
  4741 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4742 See \`config.log' for more details." >&5
  4743 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4744 See \`config.log' for more details." >&2;}
  4745    { (exit 1); exit 1; }; }
  4747 # Provide some information about the compiler.
  4748 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4749 set X $ac_compile
  4750 ac_compiler=$2
  4751 { (ac_try="$ac_compiler --version >&5"
  4752 case "(($ac_try" in
  4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4754   *) ac_try_echo=$ac_try;;
  4755 esac
  4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4757 $as_echo "$ac_try_echo") >&5
  4758   (eval "$ac_compiler --version >&5") 2>&5
  4759   ac_status=$?
  4760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4761   (exit $ac_status); }
  4762 { (ac_try="$ac_compiler -v >&5"
  4763 case "(($ac_try" in
  4764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4765   *) ac_try_echo=$ac_try;;
  4766 esac
  4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4768 $as_echo "$ac_try_echo") >&5
  4769   (eval "$ac_compiler -v >&5") 2>&5
  4770   ac_status=$?
  4771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772   (exit $ac_status); }
  4773 { (ac_try="$ac_compiler -V >&5"
  4774 case "(($ac_try" in
  4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4776   *) ac_try_echo=$ac_try;;
  4777 esac
  4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4779 $as_echo "$ac_try_echo") >&5
  4780   (eval "$ac_compiler -V >&5") 2>&5
  4781   ac_status=$?
  4782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783   (exit $ac_status); }
  4785 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4787 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4788   $as_echo_n "(cached) " >&6
  4789 else
  4790   cat >conftest.$ac_ext <<_ACEOF
  4791 /* confdefs.h.  */
  4792 _ACEOF
  4793 cat confdefs.h >>conftest.$ac_ext
  4794 cat >>conftest.$ac_ext <<_ACEOF
  4795 /* end confdefs.h.  */
  4797 int
  4798 main ()
  4800 #ifndef __GNUC__
  4801        choke me
  4802 #endif
  4805   return 0;
  4807 _ACEOF
  4808 rm -f conftest.$ac_objext
  4809 if { (ac_try="$ac_compile"
  4810 case "(($ac_try" in
  4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4812   *) ac_try_echo=$ac_try;;
  4813 esac
  4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4815 $as_echo "$ac_try_echo") >&5
  4816   (eval "$ac_compile") 2>conftest.er1
  4817   ac_status=$?
  4818   grep -v '^ *+' conftest.er1 >conftest.err
  4819   rm -f conftest.er1
  4820   cat conftest.err >&5
  4821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4822   (exit $ac_status); } && {
  4823 	 test -z "$ac_c_werror_flag" ||
  4824 	 test ! -s conftest.err
  4825        } && test -s conftest.$ac_objext; then
  4826   ac_compiler_gnu=yes
  4827 else
  4828   $as_echo "$as_me: failed program was:" >&5
  4829 sed 's/^/| /' conftest.$ac_ext >&5
  4831 	ac_compiler_gnu=no
  4832 fi
  4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4837 fi
  4838 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4840 if test $ac_compiler_gnu = yes; then
  4841   GCC=yes
  4842 else
  4843   GCC=
  4844 fi
  4845 ac_test_CFLAGS=${CFLAGS+set}
  4846 ac_save_CFLAGS=$CFLAGS
  4847 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4849 if test "${ac_cv_prog_cc_g+set}" = set; then
  4850   $as_echo_n "(cached) " >&6
  4851 else
  4852   ac_save_c_werror_flag=$ac_c_werror_flag
  4853    ac_c_werror_flag=yes
  4854    ac_cv_prog_cc_g=no
  4855    CFLAGS="-g"
  4856    cat >conftest.$ac_ext <<_ACEOF
  4857 /* confdefs.h.  */
  4858 _ACEOF
  4859 cat confdefs.h >>conftest.$ac_ext
  4860 cat >>conftest.$ac_ext <<_ACEOF
  4861 /* end confdefs.h.  */
  4863 int
  4864 main ()
  4868   return 0;
  4870 _ACEOF
  4871 rm -f conftest.$ac_objext
  4872 if { (ac_try="$ac_compile"
  4873 case "(($ac_try" in
  4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4875   *) ac_try_echo=$ac_try;;
  4876 esac
  4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4878 $as_echo "$ac_try_echo") >&5
  4879   (eval "$ac_compile") 2>conftest.er1
  4880   ac_status=$?
  4881   grep -v '^ *+' conftest.er1 >conftest.err
  4882   rm -f conftest.er1
  4883   cat conftest.err >&5
  4884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4885   (exit $ac_status); } && {
  4886 	 test -z "$ac_c_werror_flag" ||
  4887 	 test ! -s conftest.err
  4888        } && test -s conftest.$ac_objext; then
  4889   ac_cv_prog_cc_g=yes
  4890 else
  4891   $as_echo "$as_me: failed program was:" >&5
  4892 sed 's/^/| /' conftest.$ac_ext >&5
  4894 	CFLAGS=""
  4895       cat >conftest.$ac_ext <<_ACEOF
  4896 /* confdefs.h.  */
  4897 _ACEOF
  4898 cat confdefs.h >>conftest.$ac_ext
  4899 cat >>conftest.$ac_ext <<_ACEOF
  4900 /* end confdefs.h.  */
  4902 int
  4903 main ()
  4907   return 0;
  4909 _ACEOF
  4910 rm -f conftest.$ac_objext
  4911 if { (ac_try="$ac_compile"
  4912 case "(($ac_try" in
  4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4914   *) ac_try_echo=$ac_try;;
  4915 esac
  4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4917 $as_echo "$ac_try_echo") >&5
  4918   (eval "$ac_compile") 2>conftest.er1
  4919   ac_status=$?
  4920   grep -v '^ *+' conftest.er1 >conftest.err
  4921   rm -f conftest.er1
  4922   cat conftest.err >&5
  4923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924   (exit $ac_status); } && {
  4925 	 test -z "$ac_c_werror_flag" ||
  4926 	 test ! -s conftest.err
  4927        } && test -s conftest.$ac_objext; then
  4929 else
  4930   $as_echo "$as_me: failed program was:" >&5
  4931 sed 's/^/| /' conftest.$ac_ext >&5
  4933 	ac_c_werror_flag=$ac_save_c_werror_flag
  4934 	 CFLAGS="-g"
  4935 	 cat >conftest.$ac_ext <<_ACEOF
  4936 /* confdefs.h.  */
  4937 _ACEOF
  4938 cat confdefs.h >>conftest.$ac_ext
  4939 cat >>conftest.$ac_ext <<_ACEOF
  4940 /* end confdefs.h.  */
  4942 int
  4943 main ()
  4947   return 0;
  4949 _ACEOF
  4950 rm -f conftest.$ac_objext
  4951 if { (ac_try="$ac_compile"
  4952 case "(($ac_try" in
  4953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4954   *) ac_try_echo=$ac_try;;
  4955 esac
  4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4957 $as_echo "$ac_try_echo") >&5
  4958   (eval "$ac_compile") 2>conftest.er1
  4959   ac_status=$?
  4960   grep -v '^ *+' conftest.er1 >conftest.err
  4961   rm -f conftest.er1
  4962   cat conftest.err >&5
  4963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4964   (exit $ac_status); } && {
  4965 	 test -z "$ac_c_werror_flag" ||
  4966 	 test ! -s conftest.err
  4967        } && test -s conftest.$ac_objext; then
  4968   ac_cv_prog_cc_g=yes
  4969 else
  4970   $as_echo "$as_me: failed program was:" >&5
  4971 sed 's/^/| /' conftest.$ac_ext >&5
  4974 fi
  4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4977 fi
  4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4980 fi
  4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4983    ac_c_werror_flag=$ac_save_c_werror_flag
  4984 fi
  4985 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4986 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4987 if test "$ac_test_CFLAGS" = set; then
  4988   CFLAGS=$ac_save_CFLAGS
  4989 elif test $ac_cv_prog_cc_g = yes; then
  4990   if test "$GCC" = yes; then
  4991     CFLAGS="-g -O2"
  4992   else
  4993     CFLAGS="-g"
  4994   fi
  4995 else
  4996   if test "$GCC" = yes; then
  4997     CFLAGS="-O2"
  4998   else
  4999     CFLAGS=
  5000   fi
  5001 fi
  5002 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5004 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5005   $as_echo_n "(cached) " >&6
  5006 else
  5007   ac_cv_prog_cc_c89=no
  5008 ac_save_CC=$CC
  5009 cat >conftest.$ac_ext <<_ACEOF
  5010 /* confdefs.h.  */
  5011 _ACEOF
  5012 cat confdefs.h >>conftest.$ac_ext
  5013 cat >>conftest.$ac_ext <<_ACEOF
  5014 /* end confdefs.h.  */
  5015 #include <stdarg.h>
  5016 #include <stdio.h>
  5017 #include <sys/types.h>
  5018 #include <sys/stat.h>
  5019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5020 struct buf { int x; };
  5021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5022 static char *e (p, i)
  5023      char **p;
  5024      int i;
  5026   return p[i];
  5028 static char *f (char * (*g) (char **, int), char **p, ...)
  5030   char *s;
  5031   va_list v;
  5032   va_start (v,p);
  5033   s = g (p, va_arg (v,int));
  5034   va_end (v);
  5035   return s;
  5038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5039    function prototypes and stuff, but not '\xHH' hex character constants.
  5040    These don't provoke an error unfortunately, instead are silently treated
  5041    as 'x'.  The following induces an error, until -std is added to get
  5042    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5043    array size at least.  It's necessary to write '\x00'==0 to get something
  5044    that's true only with -std.  */
  5045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5048    inside strings and character constants.  */
  5049 #define FOO(x) 'x'
  5050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5052 int test (int i, double x);
  5053 struct s1 {int (*f) (int a);};
  5054 struct s2 {int (*f) (double a);};
  5055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5056 int argc;
  5057 char **argv;
  5058 int
  5059 main ()
  5061 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5063   return 0;
  5065 _ACEOF
  5066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5067 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5068 do
  5069   CC="$ac_save_CC $ac_arg"
  5070   rm -f conftest.$ac_objext
  5071 if { (ac_try="$ac_compile"
  5072 case "(($ac_try" in
  5073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5074   *) ac_try_echo=$ac_try;;
  5075 esac
  5076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5077 $as_echo "$ac_try_echo") >&5
  5078   (eval "$ac_compile") 2>conftest.er1
  5079   ac_status=$?
  5080   grep -v '^ *+' conftest.er1 >conftest.err
  5081   rm -f conftest.er1
  5082   cat conftest.err >&5
  5083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084   (exit $ac_status); } && {
  5085 	 test -z "$ac_c_werror_flag" ||
  5086 	 test ! -s conftest.err
  5087        } && test -s conftest.$ac_objext; then
  5088   ac_cv_prog_cc_c89=$ac_arg
  5089 else
  5090   $as_echo "$as_me: failed program was:" >&5
  5091 sed 's/^/| /' conftest.$ac_ext >&5
  5094 fi
  5096 rm -f core conftest.err conftest.$ac_objext
  5097   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5098 done
  5099 rm -f conftest.$ac_ext
  5100 CC=$ac_save_CC
  5102 fi
  5103 # AC_CACHE_VAL
  5104 case "x$ac_cv_prog_cc_c89" in
  5105   x)
  5106     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5107 $as_echo "none needed" >&6; } ;;
  5108   xno)
  5109     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5110 $as_echo "unsupported" >&6; } ;;
  5111   *)
  5112     CC="$CC $ac_cv_prog_cc_c89"
  5113     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5114 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5115 esac
  5118 ac_ext=c
  5119 ac_cpp='$CPP $CPPFLAGS'
  5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5124 depcc="$CC"   am_compiler_list=
  5126 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5127 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5128 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5129   $as_echo_n "(cached) " >&6
  5130 else
  5131   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5132   # We make a subdir and do the tests there.  Otherwise we can end up
  5133   # making bogus files that we don't know about and never remove.  For
  5134   # instance it was reported that on HP-UX the gcc test will end up
  5135   # making a dummy file named `D' -- because `-MD' means `put the output
  5136   # in D'.
  5137   mkdir conftest.dir
  5138   # Copy depcomp to subdir because otherwise we won't find it if we're
  5139   # using a relative directory.
  5140   cp "$am_depcomp" conftest.dir
  5141   cd conftest.dir
  5142   # We will build objects and dependencies in a subdirectory because
  5143   # it helps to detect inapplicable dependency modes.  For instance
  5144   # both Tru64's cc and ICC support -MD to output dependencies as a
  5145   # side effect of compilation, but ICC will put the dependencies in
  5146   # the current directory while Tru64 will put them in the object
  5147   # directory.
  5148   mkdir sub
  5150   am_cv_CC_dependencies_compiler_type=none
  5151   if test "$am_compiler_list" = ""; then
  5152      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5153   fi
  5154   for depmode in $am_compiler_list; do
  5155     # Setup a source with many dependencies, because some compilers
  5156     # like to wrap large dependency lists on column 80 (with \), and
  5157     # we should not choose a depcomp mode which is confused by this.
  5159     # We need to recreate these files for each test, as the compiler may
  5160     # overwrite some of them when testing with obscure command lines.
  5161     # This happens at least with the AIX C compiler.
  5162     : > sub/conftest.c
  5163     for i in 1 2 3 4 5 6; do
  5164       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5165       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5166       # Solaris 8's {/usr,}/bin/sh.
  5167       touch sub/conftst$i.h
  5168     done
  5169     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5171     case $depmode in
  5172     nosideeffect)
  5173       # after this tag, mechanisms are not by side-effect, so they'll
  5174       # only be used when explicitly requested
  5175       if test "x$enable_dependency_tracking" = xyes; then
  5176 	continue
  5177       else
  5178 	break
  5179       fi
  5180       ;;
  5181     none) break ;;
  5182     esac
  5183     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5184     # mode.  It turns out that the SunPro C++ compiler does not properly
  5185     # handle `-M -o', and we need to detect this.
  5186     if depmode=$depmode \
  5187        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5188        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5189        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5190          >/dev/null 2>conftest.err &&
  5191        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5192        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5193        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5194       # icc doesn't choke on unknown options, it will just issue warnings
  5195       # or remarks (even with -Werror).  So we grep stderr for any message
  5196       # that says an option was ignored or not supported.
  5197       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5198       #   icc: Command line warning: ignoring option '-M'; no argument required
  5199       # The diagnosis changed in icc 8.0:
  5200       #   icc: Command line remark: option '-MP' not supported
  5201       if (grep 'ignoring option' conftest.err ||
  5202           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5203         am_cv_CC_dependencies_compiler_type=$depmode
  5204         break
  5205       fi
  5206     fi
  5207   done
  5209   cd ..
  5210   rm -rf conftest.dir
  5211 else
  5212   am_cv_CC_dependencies_compiler_type=none
  5213 fi
  5215 fi
  5216 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5217 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5218 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5222 if
  5223   test "x$enable_dependency_tracking" != xno \
  5224   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5225   am__fastdepCC_TRUE=
  5226   am__fastdepCC_FALSE='#'
  5227 else
  5228   am__fastdepCC_TRUE='#'
  5229   am__fastdepCC_FALSE=
  5230 fi
  5234 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5236 # By default we simply use the C compiler to build assembly code.
  5238 test "${CCAS+set}" = set || CCAS=$CC
  5239 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5243 ac_ext=c
  5244 ac_cpp='$CPP $CPPFLAGS'
  5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5248 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5250 # On Suns, sometimes $CPP names a directory.
  5251 if test -n "$CPP" && test -d "$CPP"; then
  5252   CPP=
  5253 fi
  5254 if test -z "$CPP"; then
  5255   if test "${ac_cv_prog_CPP+set}" = set; then
  5256   $as_echo_n "(cached) " >&6
  5257 else
  5258       # Double quotes because CPP needs to be expanded
  5259     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5260     do
  5261       ac_preproc_ok=false
  5262 for ac_c_preproc_warn_flag in '' yes
  5263 do
  5264   # Use a header file that comes with gcc, so configuring glibc
  5265   # with a fresh cross-compiler works.
  5266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5267   # <limits.h> exists even on freestanding compilers.
  5268   # On the NeXT, cc -E runs the code through the compiler's parser,
  5269   # not just through cpp. "Syntax error" is here to catch this case.
  5270   cat >conftest.$ac_ext <<_ACEOF
  5271 /* confdefs.h.  */
  5272 _ACEOF
  5273 cat confdefs.h >>conftest.$ac_ext
  5274 cat >>conftest.$ac_ext <<_ACEOF
  5275 /* end confdefs.h.  */
  5276 #ifdef __STDC__
  5277 # include <limits.h>
  5278 #else
  5279 # include <assert.h>
  5280 #endif
  5281 		     Syntax error
  5282 _ACEOF
  5283 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5284 case "(($ac_try" in
  5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5286   *) ac_try_echo=$ac_try;;
  5287 esac
  5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5289 $as_echo "$ac_try_echo") >&5
  5290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5291   ac_status=$?
  5292   grep -v '^ *+' conftest.er1 >conftest.err
  5293   rm -f conftest.er1
  5294   cat conftest.err >&5
  5295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5296   (exit $ac_status); } >/dev/null && {
  5297 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5298 	 test ! -s conftest.err
  5299        }; then
  5301 else
  5302   $as_echo "$as_me: failed program was:" >&5
  5303 sed 's/^/| /' conftest.$ac_ext >&5
  5305   # Broken: fails on valid input.
  5306 continue
  5307 fi
  5309 rm -f conftest.err conftest.$ac_ext
  5311   # OK, works on sane cases.  Now check whether nonexistent headers
  5312   # can be detected and how.
  5313   cat >conftest.$ac_ext <<_ACEOF
  5314 /* confdefs.h.  */
  5315 _ACEOF
  5316 cat confdefs.h >>conftest.$ac_ext
  5317 cat >>conftest.$ac_ext <<_ACEOF
  5318 /* end confdefs.h.  */
  5319 #include <ac_nonexistent.h>
  5320 _ACEOF
  5321 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5322 case "(($ac_try" in
  5323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5324   *) ac_try_echo=$ac_try;;
  5325 esac
  5326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5327 $as_echo "$ac_try_echo") >&5
  5328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5329   ac_status=$?
  5330   grep -v '^ *+' conftest.er1 >conftest.err
  5331   rm -f conftest.er1
  5332   cat conftest.err >&5
  5333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334   (exit $ac_status); } >/dev/null && {
  5335 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5336 	 test ! -s conftest.err
  5337        }; then
  5338   # Broken: success on invalid input.
  5339 continue
  5340 else
  5341   $as_echo "$as_me: failed program was:" >&5
  5342 sed 's/^/| /' conftest.$ac_ext >&5
  5344   # Passes both tests.
  5345 ac_preproc_ok=:
  5346 break
  5347 fi
  5349 rm -f conftest.err conftest.$ac_ext
  5351 done
  5352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5353 rm -f conftest.err conftest.$ac_ext
  5354 if $ac_preproc_ok; then
  5355   break
  5356 fi
  5358     done
  5359     ac_cv_prog_CPP=$CPP
  5361 fi
  5362   CPP=$ac_cv_prog_CPP
  5363 else
  5364   ac_cv_prog_CPP=$CPP
  5365 fi
  5366 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5367 $as_echo "$CPP" >&6; }
  5368 ac_preproc_ok=false
  5369 for ac_c_preproc_warn_flag in '' yes
  5370 do
  5371   # Use a header file that comes with gcc, so configuring glibc
  5372   # with a fresh cross-compiler works.
  5373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5374   # <limits.h> exists even on freestanding compilers.
  5375   # On the NeXT, cc -E runs the code through the compiler's parser,
  5376   # not just through cpp. "Syntax error" is here to catch this case.
  5377   cat >conftest.$ac_ext <<_ACEOF
  5378 /* confdefs.h.  */
  5379 _ACEOF
  5380 cat confdefs.h >>conftest.$ac_ext
  5381 cat >>conftest.$ac_ext <<_ACEOF
  5382 /* end confdefs.h.  */
  5383 #ifdef __STDC__
  5384 # include <limits.h>
  5385 #else
  5386 # include <assert.h>
  5387 #endif
  5388 		     Syntax error
  5389 _ACEOF
  5390 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5391 case "(($ac_try" in
  5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5393   *) ac_try_echo=$ac_try;;
  5394 esac
  5395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5396 $as_echo "$ac_try_echo") >&5
  5397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5398   ac_status=$?
  5399   grep -v '^ *+' conftest.er1 >conftest.err
  5400   rm -f conftest.er1
  5401   cat conftest.err >&5
  5402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5403   (exit $ac_status); } >/dev/null && {
  5404 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5405 	 test ! -s conftest.err
  5406        }; then
  5408 else
  5409   $as_echo "$as_me: failed program was:" >&5
  5410 sed 's/^/| /' conftest.$ac_ext >&5
  5412   # Broken: fails on valid input.
  5413 continue
  5414 fi
  5416 rm -f conftest.err conftest.$ac_ext
  5418   # OK, works on sane cases.  Now check whether nonexistent headers
  5419   # can be detected and how.
  5420   cat >conftest.$ac_ext <<_ACEOF
  5421 /* confdefs.h.  */
  5422 _ACEOF
  5423 cat confdefs.h >>conftest.$ac_ext
  5424 cat >>conftest.$ac_ext <<_ACEOF
  5425 /* end confdefs.h.  */
  5426 #include <ac_nonexistent.h>
  5427 _ACEOF
  5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5429 case "(($ac_try" in
  5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5431   *) ac_try_echo=$ac_try;;
  5432 esac
  5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5434 $as_echo "$ac_try_echo") >&5
  5435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5436   ac_status=$?
  5437   grep -v '^ *+' conftest.er1 >conftest.err
  5438   rm -f conftest.er1
  5439   cat conftest.err >&5
  5440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441   (exit $ac_status); } >/dev/null && {
  5442 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5443 	 test ! -s conftest.err
  5444        }; then
  5445   # Broken: success on invalid input.
  5446 continue
  5447 else
  5448   $as_echo "$as_me: failed program was:" >&5
  5449 sed 's/^/| /' conftest.$ac_ext >&5
  5451   # Passes both tests.
  5452 ac_preproc_ok=:
  5453 break
  5454 fi
  5456 rm -f conftest.err conftest.$ac_ext
  5458 done
  5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5460 rm -f conftest.err conftest.$ac_ext
  5461 if $ac_preproc_ok; then
  5463 else
  5464   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5465 See \`config.log' for more details." >&5
  5466 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5467 See \`config.log' for more details." >&2;}
  5468    { (exit 1); exit 1; }; }
  5469 fi
  5471 ac_ext=c
  5472 ac_cpp='$CPP $CPPFLAGS'
  5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5478 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5479 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5480 if test "${ac_cv_path_GREP+set}" = set; then
  5481   $as_echo_n "(cached) " >&6
  5482 else
  5483   if test -z "$GREP"; then
  5484   ac_path_GREP_found=false
  5485   # Loop through the user's path and test for each of PROGNAME-LIST
  5486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5488 do
  5489   IFS=$as_save_IFS
  5490   test -z "$as_dir" && as_dir=.
  5491   for ac_prog in grep ggrep; do
  5492     for ac_exec_ext in '' $ac_executable_extensions; do
  5493       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5494       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5495 # Check for GNU ac_path_GREP and select it if it is found.
  5496   # Check for GNU $ac_path_GREP
  5497 case `"$ac_path_GREP" --version 2>&1` in
  5498 *GNU*)
  5499   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5500 *)
  5501   ac_count=0
  5502   $as_echo_n 0123456789 >"conftest.in"
  5503   while :
  5504   do
  5505     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5506     mv "conftest.tmp" "conftest.in"
  5507     cp "conftest.in" "conftest.nl"
  5508     $as_echo 'GREP' >> "conftest.nl"
  5509     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5510     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5511     ac_count=`expr $ac_count + 1`
  5512     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5513       # Best one so far, save it but keep looking for a better one
  5514       ac_cv_path_GREP="$ac_path_GREP"
  5515       ac_path_GREP_max=$ac_count
  5516     fi
  5517     # 10*(2^10) chars as input seems more than enough
  5518     test $ac_count -gt 10 && break
  5519   done
  5520   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5521 esac
  5523       $ac_path_GREP_found && break 3
  5524     done
  5525   done
  5526 done
  5527 IFS=$as_save_IFS
  5528   if test -z "$ac_cv_path_GREP"; then
  5529     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5530 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5531    { (exit 1); exit 1; }; }
  5532   fi
  5533 else
  5534   ac_cv_path_GREP=$GREP
  5535 fi
  5537 fi
  5538 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5539 $as_echo "$ac_cv_path_GREP" >&6; }
  5540  GREP="$ac_cv_path_GREP"
  5543 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5544 $as_echo_n "checking for egrep... " >&6; }
  5545 if test "${ac_cv_path_EGREP+set}" = set; then
  5546   $as_echo_n "(cached) " >&6
  5547 else
  5548   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5549    then ac_cv_path_EGREP="$GREP -E"
  5550    else
  5551      if test -z "$EGREP"; then
  5552   ac_path_EGREP_found=false
  5553   # Loop through the user's path and test for each of PROGNAME-LIST
  5554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5556 do
  5557   IFS=$as_save_IFS
  5558   test -z "$as_dir" && as_dir=.
  5559   for ac_prog in egrep; do
  5560     for ac_exec_ext in '' $ac_executable_extensions; do
  5561       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5562       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5563 # Check for GNU ac_path_EGREP and select it if it is found.
  5564   # Check for GNU $ac_path_EGREP
  5565 case `"$ac_path_EGREP" --version 2>&1` in
  5566 *GNU*)
  5567   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5568 *)
  5569   ac_count=0
  5570   $as_echo_n 0123456789 >"conftest.in"
  5571   while :
  5572   do
  5573     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5574     mv "conftest.tmp" "conftest.in"
  5575     cp "conftest.in" "conftest.nl"
  5576     $as_echo 'EGREP' >> "conftest.nl"
  5577     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5578     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5579     ac_count=`expr $ac_count + 1`
  5580     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5581       # Best one so far, save it but keep looking for a better one
  5582       ac_cv_path_EGREP="$ac_path_EGREP"
  5583       ac_path_EGREP_max=$ac_count
  5584     fi
  5585     # 10*(2^10) chars as input seems more than enough
  5586     test $ac_count -gt 10 && break
  5587   done
  5588   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5589 esac
  5591       $ac_path_EGREP_found && break 3
  5592     done
  5593   done
  5594 done
  5595 IFS=$as_save_IFS
  5596   if test -z "$ac_cv_path_EGREP"; then
  5597     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5598 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5599    { (exit 1); exit 1; }; }
  5600   fi
  5601 else
  5602   ac_cv_path_EGREP=$EGREP
  5603 fi
  5605    fi
  5606 fi
  5607 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5608 $as_echo "$ac_cv_path_EGREP" >&6; }
  5609  EGREP="$ac_cv_path_EGREP"
  5612 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5613 $as_echo_n "checking for ANSI C header files... " >&6; }
  5614 if test "${ac_cv_header_stdc+set}" = set; then
  5615   $as_echo_n "(cached) " >&6
  5616 else
  5617   cat >conftest.$ac_ext <<_ACEOF
  5618 /* confdefs.h.  */
  5619 _ACEOF
  5620 cat confdefs.h >>conftest.$ac_ext
  5621 cat >>conftest.$ac_ext <<_ACEOF
  5622 /* end confdefs.h.  */
  5623 #include <stdlib.h>
  5624 #include <stdarg.h>
  5625 #include <string.h>
  5626 #include <float.h>
  5628 int
  5629 main ()
  5633   return 0;
  5635 _ACEOF
  5636 rm -f conftest.$ac_objext
  5637 if { (ac_try="$ac_compile"
  5638 case "(($ac_try" in
  5639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5640   *) ac_try_echo=$ac_try;;
  5641 esac
  5642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5643 $as_echo "$ac_try_echo") >&5
  5644   (eval "$ac_compile") 2>conftest.er1
  5645   ac_status=$?
  5646   grep -v '^ *+' conftest.er1 >conftest.err
  5647   rm -f conftest.er1
  5648   cat conftest.err >&5
  5649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5650   (exit $ac_status); } && {
  5651 	 test -z "$ac_c_werror_flag" ||
  5652 	 test ! -s conftest.err
  5653        } && test -s conftest.$ac_objext; then
  5654   ac_cv_header_stdc=yes
  5655 else
  5656   $as_echo "$as_me: failed program was:" >&5
  5657 sed 's/^/| /' conftest.$ac_ext >&5
  5659 	ac_cv_header_stdc=no
  5660 fi
  5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5664 if test $ac_cv_header_stdc = yes; then
  5665   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5666   cat >conftest.$ac_ext <<_ACEOF
  5667 /* confdefs.h.  */
  5668 _ACEOF
  5669 cat confdefs.h >>conftest.$ac_ext
  5670 cat >>conftest.$ac_ext <<_ACEOF
  5671 /* end confdefs.h.  */
  5672 #include <string.h>
  5674 _ACEOF
  5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5676   $EGREP "memchr" >/dev/null 2>&1; then
  5678 else
  5679   ac_cv_header_stdc=no
  5680 fi
  5681 rm -f conftest*
  5683 fi
  5685 if test $ac_cv_header_stdc = yes; then
  5686   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5687   cat >conftest.$ac_ext <<_ACEOF
  5688 /* confdefs.h.  */
  5689 _ACEOF
  5690 cat confdefs.h >>conftest.$ac_ext
  5691 cat >>conftest.$ac_ext <<_ACEOF
  5692 /* end confdefs.h.  */
  5693 #include <stdlib.h>
  5695 _ACEOF
  5696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5697   $EGREP "free" >/dev/null 2>&1; then
  5699 else
  5700   ac_cv_header_stdc=no
  5701 fi
  5702 rm -f conftest*
  5704 fi
  5706 if test $ac_cv_header_stdc = yes; then
  5707   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5708   if test "$cross_compiling" = yes; then
  5710 else
  5711   cat >conftest.$ac_ext <<_ACEOF
  5712 /* confdefs.h.  */
  5713 _ACEOF
  5714 cat confdefs.h >>conftest.$ac_ext
  5715 cat >>conftest.$ac_ext <<_ACEOF
  5716 /* end confdefs.h.  */
  5717 #include <ctype.h>
  5718 #include <stdlib.h>
  5719 #if ((' ' & 0x0FF) == 0x020)
  5720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5722 #else
  5723 # define ISLOWER(c) \
  5724 		   (('a' <= (c) && (c) <= 'i') \
  5725 		     || ('j' <= (c) && (c) <= 'r') \
  5726 		     || ('s' <= (c) && (c) <= 'z'))
  5727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5728 #endif
  5730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5731 int
  5732 main ()
  5734   int i;
  5735   for (i = 0; i < 256; i++)
  5736     if (XOR (islower (i), ISLOWER (i))
  5737 	|| toupper (i) != TOUPPER (i))
  5738       return 2;
  5739   return 0;
  5741 _ACEOF
  5742 rm -f conftest$ac_exeext
  5743 if { (ac_try="$ac_link"
  5744 case "(($ac_try" in
  5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5746   *) ac_try_echo=$ac_try;;
  5747 esac
  5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5749 $as_echo "$ac_try_echo") >&5
  5750   (eval "$ac_link") 2>&5
  5751   ac_status=$?
  5752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5754   { (case "(($ac_try" in
  5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5756   *) ac_try_echo=$ac_try;;
  5757 esac
  5758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5759 $as_echo "$ac_try_echo") >&5
  5760   (eval "$ac_try") 2>&5
  5761   ac_status=$?
  5762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763   (exit $ac_status); }; }; then
  5765 else
  5766   $as_echo "$as_me: program exited with status $ac_status" >&5
  5767 $as_echo "$as_me: failed program was:" >&5
  5768 sed 's/^/| /' conftest.$ac_ext >&5
  5770 ( exit $ac_status )
  5771 ac_cv_header_stdc=no
  5772 fi
  5773 rm -rf conftest.dSYM
  5774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5775 fi
  5778 fi
  5779 fi
  5780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5781 $as_echo "$ac_cv_header_stdc" >&6; }
  5782 if test $ac_cv_header_stdc = yes; then
  5784 cat >>confdefs.h <<\_ACEOF
  5785 #define STDC_HEADERS 1
  5786 _ACEOF
  5788 fi
  5790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5801 		  inttypes.h stdint.h unistd.h
  5802 do
  5803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5805 $as_echo_n "checking for $ac_header... " >&6; }
  5806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5807   $as_echo_n "(cached) " >&6
  5808 else
  5809   cat >conftest.$ac_ext <<_ACEOF
  5810 /* confdefs.h.  */
  5811 _ACEOF
  5812 cat confdefs.h >>conftest.$ac_ext
  5813 cat >>conftest.$ac_ext <<_ACEOF
  5814 /* end confdefs.h.  */
  5815 $ac_includes_default
  5817 #include <$ac_header>
  5818 _ACEOF
  5819 rm -f conftest.$ac_objext
  5820 if { (ac_try="$ac_compile"
  5821 case "(($ac_try" in
  5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5823   *) ac_try_echo=$ac_try;;
  5824 esac
  5825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5826 $as_echo "$ac_try_echo") >&5
  5827   (eval "$ac_compile") 2>conftest.er1
  5828   ac_status=$?
  5829   grep -v '^ *+' conftest.er1 >conftest.err
  5830   rm -f conftest.er1
  5831   cat conftest.err >&5
  5832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833   (exit $ac_status); } && {
  5834 	 test -z "$ac_c_werror_flag" ||
  5835 	 test ! -s conftest.err
  5836        } && test -s conftest.$ac_objext; then
  5837   eval "$as_ac_Header=yes"
  5838 else
  5839   $as_echo "$as_me: failed program was:" >&5
  5840 sed 's/^/| /' conftest.$ac_ext >&5
  5842 	eval "$as_ac_Header=no"
  5843 fi
  5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5846 fi
  5847 ac_res=`eval 'as_val=${'$as_ac_Header'}
  5848 		 $as_echo "$as_val"'`
  5849 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5850 $as_echo "$ac_res" >&6; }
  5851 if test `eval 'as_val=${'$as_ac_Header'}
  5852 		 $as_echo "$as_val"'` = yes; then
  5853   cat >>confdefs.h <<_ACEOF
  5854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5855 _ACEOF
  5857 fi
  5859 done
  5862 # The cast to long int works around a bug in the HP C Compiler
  5863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5865 # This bug is HP SR number 8606223364.
  5866 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  5867 $as_echo_n "checking size of void *... " >&6; }
  5868 if test "${ac_cv_sizeof_void_p+set}" = set; then
  5869   $as_echo_n "(cached) " >&6
  5870 else
  5871   if test "$cross_compiling" = yes; then
  5872   # Depending upon the size, compute the lo and hi bounds.
  5873 cat >conftest.$ac_ext <<_ACEOF
  5874 /* confdefs.h.  */
  5875 _ACEOF
  5876 cat confdefs.h >>conftest.$ac_ext
  5877 cat >>conftest.$ac_ext <<_ACEOF
  5878 /* end confdefs.h.  */
  5879 $ac_includes_default
  5880 int
  5881 main ()
  5883 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  5884 test_array [0] = 0
  5887   return 0;
  5889 _ACEOF
  5890 rm -f conftest.$ac_objext
  5891 if { (ac_try="$ac_compile"
  5892 case "(($ac_try" in
  5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5894   *) ac_try_echo=$ac_try;;
  5895 esac
  5896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5897 $as_echo "$ac_try_echo") >&5
  5898   (eval "$ac_compile") 2>conftest.er1
  5899   ac_status=$?
  5900   grep -v '^ *+' conftest.er1 >conftest.err
  5901   rm -f conftest.er1
  5902   cat conftest.err >&5
  5903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904   (exit $ac_status); } && {
  5905 	 test -z "$ac_c_werror_flag" ||
  5906 	 test ! -s conftest.err
  5907        } && test -s conftest.$ac_objext; then
  5908   ac_lo=0 ac_mid=0
  5909   while :; do
  5910     cat >conftest.$ac_ext <<_ACEOF
  5911 /* confdefs.h.  */
  5912 _ACEOF
  5913 cat confdefs.h >>conftest.$ac_ext
  5914 cat >>conftest.$ac_ext <<_ACEOF
  5915 /* end confdefs.h.  */
  5916 $ac_includes_default
  5917 int
  5918 main ()
  5920 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  5921 test_array [0] = 0
  5924   return 0;
  5926 _ACEOF
  5927 rm -f conftest.$ac_objext
  5928 if { (ac_try="$ac_compile"
  5929 case "(($ac_try" in
  5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5931   *) ac_try_echo=$ac_try;;
  5932 esac
  5933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5934 $as_echo "$ac_try_echo") >&5
  5935   (eval "$ac_compile") 2>conftest.er1
  5936   ac_status=$?
  5937   grep -v '^ *+' conftest.er1 >conftest.err
  5938   rm -f conftest.er1
  5939   cat conftest.err >&5
  5940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941   (exit $ac_status); } && {
  5942 	 test -z "$ac_c_werror_flag" ||
  5943 	 test ! -s conftest.err
  5944        } && test -s conftest.$ac_objext; then
  5945   ac_hi=$ac_mid; break
  5946 else
  5947   $as_echo "$as_me: failed program was:" >&5
  5948 sed 's/^/| /' conftest.$ac_ext >&5
  5950 	ac_lo=`expr $ac_mid + 1`
  5951 			if test $ac_lo -le $ac_mid; then
  5952 			  ac_lo= ac_hi=
  5953 			  break
  5954 			fi
  5955 			ac_mid=`expr 2 '*' $ac_mid + 1`
  5956 fi
  5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5959   done
  5960 else
  5961   $as_echo "$as_me: failed program was:" >&5
  5962 sed 's/^/| /' conftest.$ac_ext >&5
  5964 	cat >conftest.$ac_ext <<_ACEOF
  5965 /* confdefs.h.  */
  5966 _ACEOF
  5967 cat confdefs.h >>conftest.$ac_ext
  5968 cat >>conftest.$ac_ext <<_ACEOF
  5969 /* end confdefs.h.  */
  5970 $ac_includes_default
  5971 int
  5972 main ()
  5974 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  5975 test_array [0] = 0
  5978   return 0;
  5980 _ACEOF
  5981 rm -f conftest.$ac_objext
  5982 if { (ac_try="$ac_compile"
  5983 case "(($ac_try" in
  5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5985   *) ac_try_echo=$ac_try;;
  5986 esac
  5987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5988 $as_echo "$ac_try_echo") >&5
  5989   (eval "$ac_compile") 2>conftest.er1
  5990   ac_status=$?
  5991   grep -v '^ *+' conftest.er1 >conftest.err
  5992   rm -f conftest.er1
  5993   cat conftest.err >&5
  5994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5995   (exit $ac_status); } && {
  5996 	 test -z "$ac_c_werror_flag" ||
  5997 	 test ! -s conftest.err
  5998        } && test -s conftest.$ac_objext; then
  5999   ac_hi=-1 ac_mid=-1
  6000   while :; do
  6001     cat >conftest.$ac_ext <<_ACEOF
  6002 /* confdefs.h.  */
  6003 _ACEOF
  6004 cat confdefs.h >>conftest.$ac_ext
  6005 cat >>conftest.$ac_ext <<_ACEOF
  6006 /* end confdefs.h.  */
  6007 $ac_includes_default
  6008 int
  6009 main ()
  6011 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  6012 test_array [0] = 0
  6015   return 0;
  6017 _ACEOF
  6018 rm -f conftest.$ac_objext
  6019 if { (ac_try="$ac_compile"
  6020 case "(($ac_try" in
  6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6022   *) ac_try_echo=$ac_try;;
  6023 esac
  6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6025 $as_echo "$ac_try_echo") >&5
  6026   (eval "$ac_compile") 2>conftest.er1
  6027   ac_status=$?
  6028   grep -v '^ *+' conftest.er1 >conftest.err
  6029   rm -f conftest.er1
  6030   cat conftest.err >&5
  6031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032   (exit $ac_status); } && {
  6033 	 test -z "$ac_c_werror_flag" ||
  6034 	 test ! -s conftest.err
  6035        } && test -s conftest.$ac_objext; then
  6036   ac_lo=$ac_mid; break
  6037 else
  6038   $as_echo "$as_me: failed program was:" >&5
  6039 sed 's/^/| /' conftest.$ac_ext >&5
  6041 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6042 			if test $ac_mid -le $ac_hi; then
  6043 			  ac_lo= ac_hi=
  6044 			  break
  6045 			fi
  6046 			ac_mid=`expr 2 '*' $ac_mid`
  6047 fi
  6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6050   done
  6051 else
  6052   $as_echo "$as_me: failed program was:" >&5
  6053 sed 's/^/| /' conftest.$ac_ext >&5
  6055 	ac_lo= ac_hi=
  6056 fi
  6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6059 fi
  6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6062 # Binary search between lo and hi bounds.
  6063 while test "x$ac_lo" != "x$ac_hi"; do
  6064   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6065   cat >conftest.$ac_ext <<_ACEOF
  6066 /* confdefs.h.  */
  6067 _ACEOF
  6068 cat confdefs.h >>conftest.$ac_ext
  6069 cat >>conftest.$ac_ext <<_ACEOF
  6070 /* end confdefs.h.  */
  6071 $ac_includes_default
  6072 int
  6073 main ()
  6075 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6076 test_array [0] = 0
  6079   return 0;
  6081 _ACEOF
  6082 rm -f conftest.$ac_objext
  6083 if { (ac_try="$ac_compile"
  6084 case "(($ac_try" in
  6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6086   *) ac_try_echo=$ac_try;;
  6087 esac
  6088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6089 $as_echo "$ac_try_echo") >&5
  6090   (eval "$ac_compile") 2>conftest.er1
  6091   ac_status=$?
  6092   grep -v '^ *+' conftest.er1 >conftest.err
  6093   rm -f conftest.er1
  6094   cat conftest.err >&5
  6095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6096   (exit $ac_status); } && {
  6097 	 test -z "$ac_c_werror_flag" ||
  6098 	 test ! -s conftest.err
  6099        } && test -s conftest.$ac_objext; then
  6100   ac_hi=$ac_mid
  6101 else
  6102   $as_echo "$as_me: failed program was:" >&5
  6103 sed 's/^/| /' conftest.$ac_ext >&5
  6105 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6106 fi
  6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6109 done
  6110 case $ac_lo in
  6111 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6112 '') if test "$ac_cv_type_void_p" = yes; then
  6113      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6114 See \`config.log' for more details." >&5
  6115 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6116 See \`config.log' for more details." >&2;}
  6117    { (exit 77); exit 77; }; }
  6118    else
  6119      ac_cv_sizeof_void_p=0
  6120    fi ;;
  6121 esac
  6122 else
  6123   cat >conftest.$ac_ext <<_ACEOF
  6124 /* confdefs.h.  */
  6125 _ACEOF
  6126 cat confdefs.h >>conftest.$ac_ext
  6127 cat >>conftest.$ac_ext <<_ACEOF
  6128 /* end confdefs.h.  */
  6129 $ac_includes_default
  6130 static long int longval () { return (long int) (sizeof (void *)); }
  6131 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6132 #include <stdio.h>
  6133 #include <stdlib.h>
  6134 int
  6135 main ()
  6138   FILE *f = fopen ("conftest.val", "w");
  6139   if (! f)
  6140     return 1;
  6141   if (((long int) (sizeof (void *))) < 0)
  6143       long int i = longval ();
  6144       if (i != ((long int) (sizeof (void *))))
  6145 	return 1;
  6146       fprintf (f, "%ld", i);
  6148   else
  6150       unsigned long int i = ulongval ();
  6151       if (i != ((long int) (sizeof (void *))))
  6152 	return 1;
  6153       fprintf (f, "%lu", i);
  6155   /* Do not output a trailing newline, as this causes \r\n confusion
  6156      on some platforms.  */
  6157   return ferror (f) || fclose (f) != 0;
  6160   return 0;
  6162 _ACEOF
  6163 rm -f conftest$ac_exeext
  6164 if { (ac_try="$ac_link"
  6165 case "(($ac_try" in
  6166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6167   *) ac_try_echo=$ac_try;;
  6168 esac
  6169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6170 $as_echo "$ac_try_echo") >&5
  6171   (eval "$ac_link") 2>&5
  6172   ac_status=$?
  6173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6175   { (case "(($ac_try" in
  6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6177   *) ac_try_echo=$ac_try;;
  6178 esac
  6179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6180 $as_echo "$ac_try_echo") >&5
  6181   (eval "$ac_try") 2>&5
  6182   ac_status=$?
  6183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184   (exit $ac_status); }; }; then
  6185   ac_cv_sizeof_void_p=`cat conftest.val`
  6186 else
  6187   $as_echo "$as_me: program exited with status $ac_status" >&5
  6188 $as_echo "$as_me: failed program was:" >&5
  6189 sed 's/^/| /' conftest.$ac_ext >&5
  6191 ( exit $ac_status )
  6192 if test "$ac_cv_type_void_p" = yes; then
  6193      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6194 See \`config.log' for more details." >&5
  6195 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6196 See \`config.log' for more details." >&2;}
  6197    { (exit 77); exit 77; }; }
  6198    else
  6199      ac_cv_sizeof_void_p=0
  6200    fi
  6201 fi
  6202 rm -rf conftest.dSYM
  6203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6204 fi
  6205 rm -f conftest.val
  6206 fi
  6207 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6208 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6212 cat >>confdefs.h <<_ACEOF
  6213 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6214 _ACEOF
  6217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6218 $as_echo_n "checking for ANSI C header files... " >&6; }
  6219 if test "${ac_cv_header_stdc+set}" = set; then
  6220   $as_echo_n "(cached) " >&6
  6221 else
  6222   cat >conftest.$ac_ext <<_ACEOF
  6223 /* confdefs.h.  */
  6224 _ACEOF
  6225 cat confdefs.h >>conftest.$ac_ext
  6226 cat >>conftest.$ac_ext <<_ACEOF
  6227 /* end confdefs.h.  */
  6228 #include <stdlib.h>
  6229 #include <stdarg.h>
  6230 #include <string.h>
  6231 #include <float.h>
  6233 int
  6234 main ()
  6238   return 0;
  6240 _ACEOF
  6241 rm -f conftest.$ac_objext
  6242 if { (ac_try="$ac_compile"
  6243 case "(($ac_try" in
  6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6245   *) ac_try_echo=$ac_try;;
  6246 esac
  6247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6248 $as_echo "$ac_try_echo") >&5
  6249   (eval "$ac_compile") 2>conftest.er1
  6250   ac_status=$?
  6251   grep -v '^ *+' conftest.er1 >conftest.err
  6252   rm -f conftest.er1
  6253   cat conftest.err >&5
  6254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6255   (exit $ac_status); } && {
  6256 	 test -z "$ac_c_werror_flag" ||
  6257 	 test ! -s conftest.err
  6258        } && test -s conftest.$ac_objext; then
  6259   ac_cv_header_stdc=yes
  6260 else
  6261   $as_echo "$as_me: failed program was:" >&5
  6262 sed 's/^/| /' conftest.$ac_ext >&5
  6264 	ac_cv_header_stdc=no
  6265 fi
  6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6269 if test $ac_cv_header_stdc = yes; then
  6270   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6271   cat >conftest.$ac_ext <<_ACEOF
  6272 /* confdefs.h.  */
  6273 _ACEOF
  6274 cat confdefs.h >>conftest.$ac_ext
  6275 cat >>conftest.$ac_ext <<_ACEOF
  6276 /* end confdefs.h.  */
  6277 #include <string.h>
  6279 _ACEOF
  6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6281   $EGREP "memchr" >/dev/null 2>&1; then
  6283 else
  6284   ac_cv_header_stdc=no
  6285 fi
  6286 rm -f conftest*
  6288 fi
  6290 if test $ac_cv_header_stdc = yes; then
  6291   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6292   cat >conftest.$ac_ext <<_ACEOF
  6293 /* confdefs.h.  */
  6294 _ACEOF
  6295 cat confdefs.h >>conftest.$ac_ext
  6296 cat >>conftest.$ac_ext <<_ACEOF
  6297 /* end confdefs.h.  */
  6298 #include <stdlib.h>
  6300 _ACEOF
  6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6302   $EGREP "free" >/dev/null 2>&1; then
  6304 else
  6305   ac_cv_header_stdc=no
  6306 fi
  6307 rm -f conftest*
  6309 fi
  6311 if test $ac_cv_header_stdc = yes; then
  6312   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6313   if test "$cross_compiling" = yes; then
  6315 else
  6316   cat >conftest.$ac_ext <<_ACEOF
  6317 /* confdefs.h.  */
  6318 _ACEOF
  6319 cat confdefs.h >>conftest.$ac_ext
  6320 cat >>conftest.$ac_ext <<_ACEOF
  6321 /* end confdefs.h.  */
  6322 #include <ctype.h>
  6323 #include <stdlib.h>
  6324 #if ((' ' & 0x0FF) == 0x020)
  6325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6327 #else
  6328 # define ISLOWER(c) \
  6329 		   (('a' <= (c) && (c) <= 'i') \
  6330 		     || ('j' <= (c) && (c) <= 'r') \
  6331 		     || ('s' <= (c) && (c) <= 'z'))
  6332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6333 #endif
  6335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6336 int
  6337 main ()
  6339   int i;
  6340   for (i = 0; i < 256; i++)
  6341     if (XOR (islower (i), ISLOWER (i))
  6342 	|| toupper (i) != TOUPPER (i))
  6343       return 2;
  6344   return 0;
  6346 _ACEOF
  6347 rm -f conftest$ac_exeext
  6348 if { (ac_try="$ac_link"
  6349 case "(($ac_try" in
  6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6351   *) ac_try_echo=$ac_try;;
  6352 esac
  6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6354 $as_echo "$ac_try_echo") >&5
  6355   (eval "$ac_link") 2>&5
  6356   ac_status=$?
  6357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6359   { (case "(($ac_try" in
  6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6361   *) ac_try_echo=$ac_try;;
  6362 esac
  6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6364 $as_echo "$ac_try_echo") >&5
  6365   (eval "$ac_try") 2>&5
  6366   ac_status=$?
  6367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6368   (exit $ac_status); }; }; then
  6370 else
  6371   $as_echo "$as_me: program exited with status $ac_status" >&5
  6372 $as_echo "$as_me: failed program was:" >&5
  6373 sed 's/^/| /' conftest.$ac_ext >&5
  6375 ( exit $ac_status )
  6376 ac_cv_header_stdc=no
  6377 fi
  6378 rm -rf conftest.dSYM
  6379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6380 fi
  6383 fi
  6384 fi
  6385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6386 $as_echo "$ac_cv_header_stdc" >&6; }
  6387 if test $ac_cv_header_stdc = yes; then
  6389 cat >>confdefs.h <<\_ACEOF
  6390 #define STDC_HEADERS 1
  6391 _ACEOF
  6393 fi
  6395 # Make sure we can run config.sub.
  6396 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6397   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6398 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6399    { (exit 1); exit 1; }; }
  6401 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6402 $as_echo_n "checking build system type... " >&6; }
  6403 if test "${ac_cv_build+set}" = set; then
  6404   $as_echo_n "(cached) " >&6
  6405 else
  6406   ac_build_alias=$build_alias
  6407 test "x$ac_build_alias" = x &&
  6408   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6409 test "x$ac_build_alias" = x &&
  6410   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6411 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6412    { (exit 1); exit 1; }; }
  6413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6414   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6415 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6416    { (exit 1); exit 1; }; }
  6418 fi
  6419 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6420 $as_echo "$ac_cv_build" >&6; }
  6421 case $ac_cv_build in
  6422 *-*-*) ;;
  6423 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6424 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6425    { (exit 1); exit 1; }; };;
  6426 esac
  6427 build=$ac_cv_build
  6428 ac_save_IFS=$IFS; IFS='-'
  6429 set x $ac_cv_build
  6430 shift
  6431 build_cpu=$1
  6432 build_vendor=$2
  6433 shift; shift
  6434 # Remember, the first character of IFS is used to create $*,
  6435 # except with old shells:
  6436 build_os=$*
  6437 IFS=$ac_save_IFS
  6438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6441 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6442 $as_echo_n "checking host system type... " >&6; }
  6443 if test "${ac_cv_host+set}" = set; then
  6444   $as_echo_n "(cached) " >&6
  6445 else
  6446   if test "x$host_alias" = x; then
  6447   ac_cv_host=$ac_cv_build
  6448 else
  6449   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6450     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6451 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6452    { (exit 1); exit 1; }; }
  6453 fi
  6455 fi
  6456 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6457 $as_echo "$ac_cv_host" >&6; }
  6458 case $ac_cv_host in
  6459 *-*-*) ;;
  6460 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6461 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6462    { (exit 1); exit 1; }; };;
  6463 esac
  6464 host=$ac_cv_host
  6465 ac_save_IFS=$IFS; IFS='-'
  6466 set x $ac_cv_host
  6467 shift
  6468 host_cpu=$1
  6469 host_vendor=$2
  6470 shift; shift
  6471 # Remember, the first character of IFS is used to create $*,
  6472 # except with old shells:
  6473 host_os=$*
  6474 IFS=$ac_save_IFS
  6475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6479 # Extract the first word of "pod2man", so it can be a program name with args.
  6480 set dummy pod2man; ac_word=$2
  6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6482 $as_echo_n "checking for $ac_word... " >&6; }
  6483 if test "${ac_cv_path_POD2MAN+set}" = set; then
  6484   $as_echo_n "(cached) " >&6
  6485 else
  6486   case $POD2MAN in
  6487   [\\/]* | ?:[\\/]*)
  6488   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  6489   ;;
  6490   *)
  6491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6492 for as_dir in $PATH
  6493 do
  6494   IFS=$as_save_IFS
  6495   test -z "$as_dir" && as_dir=.
  6496   for ac_exec_ext in '' $ac_executable_extensions; do
  6497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6498     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  6499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6500     break 2
  6501   fi
  6502 done
  6503 done
  6504 IFS=$as_save_IFS
  6506   ;;
  6507 esac
  6508 fi
  6509 POD2MAN=$ac_cv_path_POD2MAN
  6510 if test -n "$POD2MAN"; then
  6511   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  6512 $as_echo "$POD2MAN" >&6; }
  6513 else
  6514   { $as_echo "$as_me:$LINENO: result: no" >&5
  6515 $as_echo "no" >&6; }
  6516 fi
  6519 # Extract the first word of "pod2html", so it can be a program name with args.
  6520 set dummy pod2html; ac_word=$2
  6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6522 $as_echo_n "checking for $ac_word... " >&6; }
  6523 if test "${ac_cv_path_POD2HTML+set}" = set; then
  6524   $as_echo_n "(cached) " >&6
  6525 else
  6526   case $POD2HTML in
  6527   [\\/]* | ?:[\\/]*)
  6528   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  6529   ;;
  6530   *)
  6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6532 for as_dir in $PATH
  6533 do
  6534   IFS=$as_save_IFS
  6535   test -z "$as_dir" && as_dir=.
  6536   for ac_exec_ext in '' $ac_executable_extensions; do
  6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6538     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  6539     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6540     break 2
  6541   fi
  6542 done
  6543 done
  6544 IFS=$as_save_IFS
  6546   ;;
  6547 esac
  6548 fi
  6549 POD2HTML=$ac_cv_path_POD2HTML
  6550 if test -n "$POD2HTML"; then
  6551   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  6552 $as_echo "$POD2HTML" >&6; }
  6553 else
  6554   { $as_echo "$as_me:$LINENO: result: no" >&5
  6555 $as_echo "no" >&6; }
  6556 fi
  6561 # Check whether --enable-strict-warn was given.
  6562 if test "${enable_strict_warn+set}" = set; then
  6563   enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
  6564 fi
  6566 # Check whether --enable-translator was given.
  6567 if test "${enable_translator+set}" = set; then
  6568   enableval=$enable_translator; true
  6569 else
  6570   enable_translator=yes
  6571 fi
  6573 # Check whether --enable-optimized was given.
  6574 if test "${enable_optimized+set}" = set; then
  6575   enableval=$enable_optimized; true
  6576 else
  6577   enable_optimized=yes
  6578 fi
  6580 # Check whether --enable-profiled was given.
  6581 if test "${enable_profiled+set}" = set; then
  6582   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  6583       enable_profiled=yes;
  6584     fi
  6585 fi
  6587 # Check whether --enable-trace was given.
  6588 if test "${enable_trace+set}" = set; then
  6589   enableval=$enable_trace; if test "$enableval" == "yes"; then
  6591 cat >>confdefs.h <<\_ACEOF
  6592 #define ENABLE_TRACE_IO 1
  6593 _ACEOF
  6595     fi
  6596 fi
  6598 # Check whether --enable-watch was given.
  6599 if test "${enable_watch+set}" = set; then
  6600   enableval=$enable_watch; if test "$enableval" == "yes"; then
  6602 cat >>confdefs.h <<\_ACEOF
  6603 #define ENABLE_WATCH 1
  6604 _ACEOF
  6606    fi
  6607 fi
  6609 # Check whether --enable-sh4stats was given.
  6610 if test "${enable_sh4stats+set}" = set; then
  6611   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  6613 cat >>confdefs.h <<\_ACEOF
  6614 #define ENABLE_SH4STATS 1
  6615 _ACEOF
  6617     fi
  6618 fi
  6621 # Check whether --with-osmesa was given.
  6622 if test "${with_osmesa+set}" = set; then
  6623   withval=$with_osmesa;
  6624 else
  6625   with_osmesa=no
  6626 fi
  6629 # Check whether --with-gtk was given.
  6630 if test "${with_gtk+set}" = set; then
  6631   withval=$with_gtk; with_gtk=yes
  6632 else
  6633   with_gtk=x11
  6634 fi
  6637 # Check whether --with-esd was given.
  6638 if test "${with_esd+set}" = set; then
  6639   withval=$with_esd;
  6640 fi
  6643 # Check whether --with-pulse was given.
  6644 if test "${with_pulse+set}" = set; then
  6645   withval=$with_pulse;
  6646 fi
  6650 if test "x$enable_optimized" = "xyes"; then
  6651    CFLAGS="-g -O2 -msse2 -mfpmath=sse"
  6652    if test "x$enable_profiled" != "xyes"; then
  6653               CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
  6655 cat >>confdefs.h <<\_ACEOF
  6656 #define HAVE_EXCEPTIONS 1
  6657 _ACEOF
  6659    fi
  6660 else
  6661    CFLAGS="-g3"
  6662 fi
  6664 if test "x$enable_profiled" = "xyes"; then
  6665    CFLAGS="$CFLAGS -pg"
  6666    LDFLAGS="$LDFLAGS -pg";
  6667 fi
  6669 if test "x$GCC" = "xyes"; then
  6670    CFLAGS="$CFLAGS -fno-strict-aliasing"
  6671 fi
  6674 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
  6675 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
  6676 if test "$cross_compiling" = yes; then
  6677   { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6678 See \`config.log' for more details." >&5
  6679 $as_echo "$as_me: error: cannot run test program while cross compiling
  6680 See \`config.log' for more details." >&2;}
  6681    { (exit 1); exit 1; }; }
  6682 else
  6683   cat >conftest.$ac_ext <<_ACEOF
  6685   /* confdefs.h.  */
  6686 _ACEOF
  6687 cat confdefs.h >>conftest.$ac_ext
  6688 cat >>conftest.$ac_ext <<_ACEOF
  6689 /* end confdefs.h.  */
  6691 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
  6693 int main(int argc, char *argv[])
  6695    return foo( 1, 2 ) == 3 ? 0 : 1;
  6697 _ACEOF
  6698 rm -f conftest$ac_exeext
  6699 if { (ac_try="$ac_link"
  6700 case "(($ac_try" in
  6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6702   *) ac_try_echo=$ac_try;;
  6703 esac
  6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6705 $as_echo "$ac_try_echo") >&5
  6706   (eval "$ac_link") 2>&5
  6707   ac_status=$?
  6708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6710   { (case "(($ac_try" in
  6711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6712   *) ac_try_echo=$ac_try;;
  6713 esac
  6714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6715 $as_echo "$ac_try_echo") >&5
  6716   (eval "$ac_try") 2>&5
  6717   ac_status=$?
  6718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719   (exit $ac_status); }; }; then
  6721    { $as_echo "$as_me:$LINENO: result: yes" >&5
  6722 $as_echo "yes" >&6; }
  6725 cat >>confdefs.h <<\_ACEOF
  6726 #define HAVE_FASTCALL 1
  6727 _ACEOF
  6730 else
  6731   $as_echo "$as_me: program exited with status $ac_status" >&5
  6732 $as_echo "$as_me: failed program was:" >&5
  6733 sed 's/^/| /' conftest.$ac_ext >&5
  6735 ( exit $ac_status )
  6737    { $as_echo "$as_me:$LINENO: result: no" >&5
  6738 $as_echo "no" >&6; }
  6740 fi
  6741 rm -rf conftest.dSYM
  6742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6743 fi
  6748 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
  6749 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
  6750 if test "$cross_compiling" = yes; then
  6751   { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6752 See \`config.log' for more details." >&5
  6753 $as_echo "$as_me: error: cannot run test program while cross compiling
  6754 See \`config.log' for more details." >&2;}
  6755    { (exit 1); exit 1; }; }
  6756 else
  6757   cat >conftest.$ac_ext <<_ACEOF
  6759   /* confdefs.h.  */
  6760 _ACEOF
  6761 cat confdefs.h >>conftest.$ac_ext
  6762 cat >>conftest.$ac_ext <<_ACEOF
  6763 /* end confdefs.h.  */
  6765 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
  6766 int __attribute__((noinline)) foo( int arg, void *exc )
  6768     if( arg < 2 ) {
  6769         *(((void **)__builtin_frame_address(0))+1) = exc;
  6771     return 0;
  6774 int main(int argc, char *argv[])
  6776    goto *first_arg(&&start, &&except);
  6778 start:
  6779    return foo( argc, &&except ) + 1;
  6781 except:
  6782    return 0;
  6784 _ACEOF
  6785 rm -f conftest$ac_exeext
  6786 if { (ac_try="$ac_link"
  6787 case "(($ac_try" in
  6788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6789   *) ac_try_echo=$ac_try;;
  6790 esac
  6791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6792 $as_echo "$ac_try_echo") >&5
  6793   (eval "$ac_link") 2>&5
  6794   ac_status=$?
  6795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6797   { (case "(($ac_try" in
  6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6799   *) ac_try_echo=$ac_try;;
  6800 esac
  6801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6802 $as_echo "$ac_try_echo") >&5
  6803   (eval "$ac_try") 2>&5
  6804   ac_status=$?
  6805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6806   (exit $ac_status); }; }; then
  6808    { $as_echo "$as_me:$LINENO: result: yes" >&5
  6809 $as_echo "yes" >&6; }
  6812 cat >>confdefs.h <<\_ACEOF
  6813 #define HAVE_FRAME_ADDRESS 1
  6814 _ACEOF
  6817 else
  6818   $as_echo "$as_me: program exited with status $ac_status" >&5
  6819 $as_echo "$as_me: failed program was:" >&5
  6820 sed 's/^/| /' conftest.$ac_ext >&5
  6822 ( exit $ac_status )
  6824    { $as_echo "$as_me:$LINENO: result: no" >&5
  6825 $as_echo "no" >&6; }
  6826     { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
  6827 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
  6828 fi
  6829 rm -rf conftest.dSYM
  6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6831 fi
  6838 lxdream_save_cppflags="$CPPFLAGS"
  6839 CPPFLAGS="$CPPFLAGS -x objective-c"
  6840 cat >conftest.$ac_ext <<_ACEOF
  6841 /* confdefs.h.  */
  6842 _ACEOF
  6843 cat confdefs.h >>conftest.$ac_ext
  6844 cat >>conftest.$ac_ext <<_ACEOF
  6845 /* end confdefs.h.  */
  6846 @interface Foo @end
  6847 int
  6848 main ()
  6852   return 0;
  6854 _ACEOF
  6855 rm -f conftest.$ac_objext
  6856 if { (ac_try="$ac_compile"
  6857 case "(($ac_try" in
  6858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6859   *) ac_try_echo=$ac_try;;
  6860 esac
  6861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6862 $as_echo "$ac_try_echo") >&5
  6863   (eval "$ac_compile") 2>conftest.er1
  6864   ac_status=$?
  6865   grep -v '^ *+' conftest.er1 >conftest.err
  6866   rm -f conftest.er1
  6867   cat conftest.err >&5
  6868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869   (exit $ac_status); } && {
  6870 	 test -z "$ac_c_werror_flag" ||
  6871 	 test ! -s conftest.err
  6872        } && test -s conftest.$ac_objext; then
  6875    if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6876   { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6877 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6878 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6879   $as_echo_n "(cached) " >&6
  6880 fi
  6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6882 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6883 else
  6884   # Is the header compilable?
  6885 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
  6886 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
  6887 cat >conftest.$ac_ext <<_ACEOF
  6888 /* confdefs.h.  */
  6889 _ACEOF
  6890 cat confdefs.h >>conftest.$ac_ext
  6891 cat >>conftest.$ac_ext <<_ACEOF
  6892 /* end confdefs.h.  */
  6893 $ac_includes_default
  6894 #include <Cocoa/Cocoa.h>
  6895 _ACEOF
  6896 rm -f conftest.$ac_objext
  6897 if { (ac_try="$ac_compile"
  6898 case "(($ac_try" in
  6899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6900   *) ac_try_echo=$ac_try;;
  6901 esac
  6902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6903 $as_echo "$ac_try_echo") >&5
  6904   (eval "$ac_compile") 2>conftest.er1
  6905   ac_status=$?
  6906   grep -v '^ *+' conftest.er1 >conftest.err
  6907   rm -f conftest.er1
  6908   cat conftest.err >&5
  6909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6910   (exit $ac_status); } && {
  6911 	 test -z "$ac_c_werror_flag" ||
  6912 	 test ! -s conftest.err
  6913        } && test -s conftest.$ac_objext; then
  6914   ac_header_compiler=yes
  6915 else
  6916   $as_echo "$as_me: failed program was:" >&5
  6917 sed 's/^/| /' conftest.$ac_ext >&5
  6919 	ac_header_compiler=no
  6920 fi
  6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6924 $as_echo "$ac_header_compiler" >&6; }
  6926 # Is the header present?
  6927 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
  6928 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
  6929 cat >conftest.$ac_ext <<_ACEOF
  6930 /* confdefs.h.  */
  6931 _ACEOF
  6932 cat confdefs.h >>conftest.$ac_ext
  6933 cat >>conftest.$ac_ext <<_ACEOF
  6934 /* end confdefs.h.  */
  6935 #include <Cocoa/Cocoa.h>
  6936 _ACEOF
  6937 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6938 case "(($ac_try" in
  6939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6940   *) ac_try_echo=$ac_try;;
  6941 esac
  6942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6943 $as_echo "$ac_try_echo") >&5
  6944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6945   ac_status=$?
  6946   grep -v '^ *+' conftest.er1 >conftest.err
  6947   rm -f conftest.er1
  6948   cat conftest.err >&5
  6949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6950   (exit $ac_status); } >/dev/null && {
  6951 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6952 	 test ! -s conftest.err
  6953        }; then
  6954   ac_header_preproc=yes
  6955 else
  6956   $as_echo "$as_me: failed program was:" >&5
  6957 sed 's/^/| /' conftest.$ac_ext >&5
  6959   ac_header_preproc=no
  6960 fi
  6962 rm -f conftest.err conftest.$ac_ext
  6963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6964 $as_echo "$ac_header_preproc" >&6; }
  6966 # So?  What about this header?
  6967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6968   yes:no: )
  6969     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6970 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6971     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
  6972 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
  6973     ac_header_preproc=yes
  6974     ;;
  6975   no:yes:* )
  6976     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
  6977 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
  6978     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&5
  6979 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&2;}
  6980     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
  6981 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
  6982     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6983 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6984     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
  6985 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
  6986     { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
  6987 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
  6989     ;;
  6990 esac
  6991 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6992 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  6993 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6994   $as_echo_n "(cached) " >&6
  6995 else
  6996   ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
  6997 fi
  6998 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6999 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  7001 fi
  7002 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  7004       HAVE_COCOA='yes'
  7005       APPLE_BUILD='yes'
  7006       LIBS="$LIBS -framework AppKit"
  7007       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"
  7008       CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  7009       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  7011 cat >>confdefs.h <<\_ACEOF
  7012 #define HAVE_COCOA 1
  7013 _ACEOF
  7016 cat >>confdefs.h <<\_ACEOF
  7017 #define APPLE_BUILD 1
  7018 _ACEOF
  7020       if test "x$with_gtk" = "xx11"; then
  7021         with_gtk=no
  7022       fi
  7024 fi
  7029 else
  7030   $as_echo "$as_me: failed program was:" >&5
  7031 sed 's/^/| /' conftest.$ac_ext >&5
  7033 	CPPFLAGS="$lxdream_save_cppflags"
  7034 fi
  7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7039 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  7040   GUI_COCOA_TRUE=
  7041   GUI_COCOA_FALSE='#'
  7042 else
  7043   GUI_COCOA_TRUE='#'
  7044   GUI_COCOA_FALSE=
  7045 fi
  7047 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  7049 cat >>confdefs.h <<\_ACEOF
  7050 #define OSX_BUNDLE 1
  7051 _ACEOF
  7053 fi
  7057 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  7058 	if test -n "$ac_tool_prefix"; then
  7059   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7060 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7061 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7062 $as_echo_n "checking for $ac_word... " >&6; }
  7063 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  7064   $as_echo_n "(cached) " >&6
  7065 else
  7066   case $PKG_CONFIG in
  7067   [\\/]* | ?:[\\/]*)
  7068   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7069   ;;
  7070   *)
  7071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7072 for as_dir in $PATH
  7073 do
  7074   IFS=$as_save_IFS
  7075   test -z "$as_dir" && as_dir=.
  7076   for ac_exec_ext in '' $ac_executable_extensions; do
  7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7078     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7079     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7080     break 2
  7081   fi
  7082 done
  7083 done
  7084 IFS=$as_save_IFS
  7086   ;;
  7087 esac
  7088 fi
  7089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7090 if test -n "$PKG_CONFIG"; then
  7091   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  7092 $as_echo "$PKG_CONFIG" >&6; }
  7093 else
  7094   { $as_echo "$as_me:$LINENO: result: no" >&5
  7095 $as_echo "no" >&6; }
  7096 fi
  7099 fi
  7100 if test -z "$ac_cv_path_PKG_CONFIG"; then
  7101   ac_pt_PKG_CONFIG=$PKG_CONFIG
  7102   # Extract the first word of "pkg-config", so it can be a program name with args.
  7103 set dummy pkg-config; ac_word=$2
  7104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7105 $as_echo_n "checking for $ac_word... " >&6; }
  7106 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  7107   $as_echo_n "(cached) " >&6
  7108 else
  7109   case $ac_pt_PKG_CONFIG in
  7110   [\\/]* | ?:[\\/]*)
  7111   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7112   ;;
  7113   *)
  7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115 for as_dir in $PATH
  7116 do
  7117   IFS=$as_save_IFS
  7118   test -z "$as_dir" && as_dir=.
  7119   for ac_exec_ext in '' $ac_executable_extensions; do
  7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7121     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123     break 2
  7124   fi
  7125 done
  7126 done
  7127 IFS=$as_save_IFS
  7129   ;;
  7130 esac
  7131 fi
  7132 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  7133 if test -n "$ac_pt_PKG_CONFIG"; then
  7134   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  7135 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  7136 else
  7137   { $as_echo "$as_me:$LINENO: result: no" >&5
  7138 $as_echo "no" >&6; }
  7139 fi
  7141   if test "x$ac_pt_PKG_CONFIG" = x; then
  7142     PKG_CONFIG=""
  7143   else
  7144     case $cross_compiling:$ac_tool_warned in
  7145 yes:)
  7146 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7147 whose name does not start with the host triplet.  If you think this
  7148 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7149 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7150 whose name does not start with the host triplet.  If you think this
  7151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7152 ac_tool_warned=yes ;;
  7153 esac
  7154     PKG_CONFIG=$ac_pt_PKG_CONFIG
  7155   fi
  7156 else
  7157   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  7158 fi
  7160 fi
  7161 if test -n "$PKG_CONFIG"; then
  7162 	_pkg_min_version=0.9.0
  7163 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  7164 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  7165 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  7166 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  7167 $as_echo "yes" >&6; }
  7168 	else
  7169 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  7170 $as_echo "no" >&6; }
  7171 		PKG_CONFIG=""
  7172 	fi
  7174 fi
  7176 pkg_failed=no
  7177 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  7178 $as_echo_n "checking for LIBPNG... " >&6; }
  7180 if test -n "$LIBPNG_CFLAGS"; then
  7181     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  7182  elif test -n "$PKG_CONFIG"; then
  7183     if test -n "$PKG_CONFIG" && \
  7184     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  7185   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  7186   ac_status=$?
  7187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188   (exit $ac_status); }; then
  7189   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  7190 else
  7191   pkg_failed=yes
  7192 fi
  7193  else
  7194     pkg_failed=untried
  7195 fi
  7196 if test -n "$LIBPNG_LIBS"; then
  7197     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  7198  elif test -n "$PKG_CONFIG"; then
  7199     if test -n "$PKG_CONFIG" && \
  7200     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  7201   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  7202   ac_status=$?
  7203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7204   (exit $ac_status); }; then
  7205   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  7206 else
  7207   pkg_failed=yes
  7208 fi
  7209  else
  7210     pkg_failed=untried
  7211 fi
  7215 if test $pkg_failed = yes; then
  7217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7218         _pkg_short_errors_supported=yes
  7219 else
  7220         _pkg_short_errors_supported=no
  7221 fi
  7222         if test $_pkg_short_errors_supported = yes; then
  7223 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
  7224         else
  7225 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
  7226         fi
  7227 	# Put the nasty error message in config.log where it belongs
  7228 	echo "$LIBPNG_PKG_ERRORS" >&5
  7230 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  7232 $LIBPNG_PKG_ERRORS
  7234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7235 installed software in a non-standard prefix.
  7237 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7238 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7239 See the pkg-config man page for more details.
  7240 " >&5
  7241 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  7243 $LIBPNG_PKG_ERRORS
  7245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7246 installed software in a non-standard prefix.
  7248 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7249 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7250 See the pkg-config man page for more details.
  7251 " >&2;}
  7252    { (exit 1); exit 1; }; }
  7253 elif test $pkg_failed = untried; then
  7254 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7255 is in your PATH or set the PKG_CONFIG environment variable to the full
  7256 path to pkg-config.
  7258 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7259 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7260 See the pkg-config man page for more details.
  7262 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7263 See \`config.log' for more details." >&5
  7264 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7265 is in your PATH or set the PKG_CONFIG environment variable to the full
  7266 path to pkg-config.
  7268 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  7269 and LIBPNG_LIBS to avoid the need to call pkg-config.
  7270 See the pkg-config man page for more details.
  7272 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7273 See \`config.log' for more details." >&2;}
  7274    { (exit 1); exit 1; }; }
  7275 else
  7276 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  7277 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  7278         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7279 $as_echo "yes" >&6; }
  7281 fi
  7284 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  7285 $as_echo_n "checking for uncompress in -lz... " >&6; }
  7286 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  7287   $as_echo_n "(cached) " >&6
  7288 else
  7289   ac_check_lib_save_LIBS=$LIBS
  7290 LIBS="-lz  $LIBS"
  7291 cat >conftest.$ac_ext <<_ACEOF
  7292 /* confdefs.h.  */
  7293 _ACEOF
  7294 cat confdefs.h >>conftest.$ac_ext
  7295 cat >>conftest.$ac_ext <<_ACEOF
  7296 /* end confdefs.h.  */
  7298 /* Override any GCC internal prototype to avoid an error.
  7299    Use char because int might match the return type of a GCC
  7300    builtin and then its argument prototype would still apply.  */
  7301 #ifdef __cplusplus
  7302 extern "C"
  7303 #endif
  7304 char uncompress ();
  7305 int
  7306 main ()
  7308 return uncompress ();
  7310   return 0;
  7312 _ACEOF
  7313 rm -f conftest.$ac_objext conftest$ac_exeext
  7314 if { (ac_try="$ac_link"
  7315 case "(($ac_try" in
  7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7317   *) ac_try_echo=$ac_try;;
  7318 esac
  7319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7320 $as_echo "$ac_try_echo") >&5
  7321   (eval "$ac_link") 2>conftest.er1
  7322   ac_status=$?
  7323   grep -v '^ *+' conftest.er1 >conftest.err
  7324   rm -f conftest.er1
  7325   cat conftest.err >&5
  7326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7327   (exit $ac_status); } && {
  7328 	 test -z "$ac_c_werror_flag" ||
  7329 	 test ! -s conftest.err
  7330        } && test -s conftest$ac_exeext && {
  7331 	 test "$cross_compiling" = yes ||
  7332 	 $as_test_x conftest$ac_exeext
  7333        }; then
  7334   ac_cv_lib_z_uncompress=yes
  7335 else
  7336   $as_echo "$as_me: failed program was:" >&5
  7337 sed 's/^/| /' conftest.$ac_ext >&5
  7339 	ac_cv_lib_z_uncompress=no
  7340 fi
  7342 rm -rf conftest.dSYM
  7343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7344       conftest$ac_exeext conftest.$ac_ext
  7345 LIBS=$ac_check_lib_save_LIBS
  7346 fi
  7347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  7348 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  7349 if test $ac_cv_lib_z_uncompress = yes; then
  7350   cat >>confdefs.h <<_ACEOF
  7351 #define HAVE_LIBZ 1
  7352 _ACEOF
  7354   LIBS="-lz $LIBS"
  7356 else
  7358     echo "Zlib (libz.so) could not be found, but is required."
  7359     exit 1
  7360 fi
  7363 if test "x$with_gtk" = "xno"; then
  7365 pkg_failed=no
  7366 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  7367 $as_echo_n "checking for GLIB... " >&6; }
  7369 if test -n "$GLIB_CFLAGS"; then
  7370     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  7371  elif test -n "$PKG_CONFIG"; then
  7372     if test -n "$PKG_CONFIG" && \
  7373     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7374   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7375   ac_status=$?
  7376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7377   (exit $ac_status); }; then
  7378   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  7379 else
  7380   pkg_failed=yes
  7381 fi
  7382  else
  7383     pkg_failed=untried
  7384 fi
  7385 if test -n "$GLIB_LIBS"; then
  7386     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  7387  elif test -n "$PKG_CONFIG"; then
  7388     if test -n "$PKG_CONFIG" && \
  7389     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  7390   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  7391   ac_status=$?
  7392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7393   (exit $ac_status); }; then
  7394   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  7395 else
  7396   pkg_failed=yes
  7397 fi
  7398  else
  7399     pkg_failed=untried
  7400 fi
  7404 if test $pkg_failed = yes; then
  7406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7407         _pkg_short_errors_supported=yes
  7408 else
  7409         _pkg_short_errors_supported=no
  7410 fi
  7411         if test $_pkg_short_errors_supported = yes; then
  7412 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  7413         else
  7414 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  7415         fi
  7416 	# Put the nasty error message in config.log where it belongs
  7417 	echo "$GLIB_PKG_ERRORS" >&5
  7419 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  7421 $GLIB_PKG_ERRORS
  7423 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7424 installed software in a non-standard prefix.
  7426 Alternatively, you may set the environment variables GLIB_CFLAGS
  7427 and GLIB_LIBS to avoid the need to call pkg-config.
  7428 See the pkg-config man page for more details.
  7429 " >&5
  7430 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  7432 $GLIB_PKG_ERRORS
  7434 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7435 installed software in a non-standard prefix.
  7437 Alternatively, you may set the environment variables GLIB_CFLAGS
  7438 and GLIB_LIBS to avoid the need to call pkg-config.
  7439 See the pkg-config man page for more details.
  7440 " >&2;}
  7441    { (exit 1); exit 1; }; }
  7442 elif test $pkg_failed = untried; then
  7443 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7444 is in your PATH or set the PKG_CONFIG environment variable to the full
  7445 path to pkg-config.
  7447 Alternatively, you may set the environment variables GLIB_CFLAGS
  7448 and GLIB_LIBS to avoid the need to call pkg-config.
  7449 See the pkg-config man page for more details.
  7451 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7452 See \`config.log' for more details." >&5
  7453 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7454 is in your PATH or set the PKG_CONFIG environment variable to the full
  7455 path to pkg-config.
  7457 Alternatively, you may set the environment variables GLIB_CFLAGS
  7458 and GLIB_LIBS to avoid the need to call pkg-config.
  7459 See the pkg-config man page for more details.
  7461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7462 See \`config.log' for more details." >&2;}
  7463    { (exit 1); exit 1; }; }
  7464 else
  7465 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  7466 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  7467         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7468 $as_echo "yes" >&6; }
  7470 fi
  7471 else
  7473 pkg_failed=no
  7474 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  7475 $as_echo_n "checking for GTK... " >&6; }
  7477 if test -n "$GTK_CFLAGS"; then
  7478     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  7479  elif test -n "$PKG_CONFIG"; then
  7480     if test -n "$PKG_CONFIG" && \
  7481     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7482   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7483   ac_status=$?
  7484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7485   (exit $ac_status); }; then
  7486   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  7487 else
  7488   pkg_failed=yes
  7489 fi
  7490  else
  7491     pkg_failed=untried
  7492 fi
  7493 if test -n "$GTK_LIBS"; then
  7494     pkg_cv_GTK_LIBS="$GTK_LIBS"
  7495  elif test -n "$PKG_CONFIG"; then
  7496     if test -n "$PKG_CONFIG" && \
  7497     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  7498   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  7499   ac_status=$?
  7500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7501   (exit $ac_status); }; then
  7502   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  7503 else
  7504   pkg_failed=yes
  7505 fi
  7506  else
  7507     pkg_failed=untried
  7508 fi
  7512 if test $pkg_failed = yes; then
  7514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7515         _pkg_short_errors_supported=yes
  7516 else
  7517         _pkg_short_errors_supported=no
  7518 fi
  7519         if test $_pkg_short_errors_supported = yes; then
  7520 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  7521         else
  7522 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  7523         fi
  7524 	# Put the nasty error message in config.log where it belongs
  7525 	echo "$GTK_PKG_ERRORS" >&5
  7527 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  7529 $GTK_PKG_ERRORS
  7531 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7532 installed software in a non-standard prefix.
  7534 Alternatively, you may set the environment variables GTK_CFLAGS
  7535 and GTK_LIBS to avoid the need to call pkg-config.
  7536 See the pkg-config man page for more details.
  7537 " >&5
  7538 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  7540 $GTK_PKG_ERRORS
  7542 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7543 installed software in a non-standard prefix.
  7545 Alternatively, you may set the environment variables GTK_CFLAGS
  7546 and GTK_LIBS to avoid the need to call pkg-config.
  7547 See the pkg-config man page for more details.
  7548 " >&2;}
  7549    { (exit 1); exit 1; }; }
  7550 elif test $pkg_failed = untried; then
  7551 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7552 is in your PATH or set the PKG_CONFIG environment variable to the full
  7553 path to pkg-config.
  7555 Alternatively, you may set the environment variables GTK_CFLAGS
  7556 and GTK_LIBS to avoid the need to call pkg-config.
  7557 See the pkg-config man page for more details.
  7559 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7560 See \`config.log' for more details." >&5
  7561 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7562 is in your PATH or set the PKG_CONFIG environment variable to the full
  7563 path to pkg-config.
  7565 Alternatively, you may set the environment variables GTK_CFLAGS
  7566 and GTK_LIBS to avoid the need to call pkg-config.
  7567 See the pkg-config man page for more details.
  7569 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7570 See \`config.log' for more details." >&2;}
  7571    { (exit 1); exit 1; }; }
  7572 else
  7573 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  7574 	GTK_LIBS=$pkg_cv_GTK_LIBS
  7575         { $as_echo "$as_me:$LINENO: result: yes" >&5
  7576 $as_echo "yes" >&6; }
  7578        HAVE_GTK='yes'
  7580 cat >>confdefs.h <<\_ACEOF
  7581 #define HAVE_GTK 1
  7582 _ACEOF
  7585 fi
  7587       LIBS="$LIBS $GTK_LIBS"
  7588    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  7589 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  7590 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  7591   $as_echo_n "(cached) " >&6
  7592 else
  7593   cat >conftest.$ac_ext <<_ACEOF
  7594 /* confdefs.h.  */
  7595 _ACEOF
  7596 cat confdefs.h >>conftest.$ac_ext
  7597 cat >>conftest.$ac_ext <<_ACEOF
  7598 /* end confdefs.h.  */
  7599 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  7600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7601 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  7603 /* System header to define __stub macros and hopefully few prototypes,
  7604     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  7605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7606     <limits.h> exists even on freestanding compilers.  */
  7608 #ifdef __STDC__
  7609 # include <limits.h>
  7610 #else
  7611 # include <assert.h>
  7612 #endif
  7614 #undef gdk_x11_display_get_xdisplay
  7616 /* Override any GCC internal prototype to avoid an error.
  7617    Use char because int might match the return type of a GCC
  7618    builtin and then its argument prototype would still apply.  */
  7619 #ifdef __cplusplus
  7620 extern "C"
  7621 #endif
  7622 char gdk_x11_display_get_xdisplay ();
  7623 /* The GNU C library defines this for functions which it implements
  7624     to always fail with ENOSYS.  Some functions are actually named
  7625     something starting with __ and the normal name is an alias.  */
  7626 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  7627 choke me
  7628 #endif
  7630 int
  7631 main ()
  7633 return gdk_x11_display_get_xdisplay ();
  7635   return 0;
  7637 _ACEOF
  7638 rm -f conftest.$ac_objext conftest$ac_exeext
  7639 if { (ac_try="$ac_link"
  7640 case "(($ac_try" in
  7641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642   *) ac_try_echo=$ac_try;;
  7643 esac
  7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7645 $as_echo "$ac_try_echo") >&5
  7646   (eval "$ac_link") 2>conftest.er1
  7647   ac_status=$?
  7648   grep -v '^ *+' conftest.er1 >conftest.err
  7649   rm -f conftest.er1
  7650   cat conftest.err >&5
  7651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652   (exit $ac_status); } && {
  7653 	 test -z "$ac_c_werror_flag" ||
  7654 	 test ! -s conftest.err
  7655        } && test -s conftest$ac_exeext && {
  7656 	 test "$cross_compiling" = yes ||
  7657 	 $as_test_x conftest$ac_exeext
  7658        }; then
  7659   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  7660 else
  7661   $as_echo "$as_me: failed program was:" >&5
  7662 sed 's/^/| /' conftest.$ac_ext >&5
  7664 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  7665 fi
  7667 rm -rf conftest.dSYM
  7668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7669       conftest$ac_exeext conftest.$ac_ext
  7670 fi
  7671 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  7672 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  7673 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  7675       HAVE_GTK_X11='yes'
  7677 cat >>confdefs.h <<\_ACEOF
  7678 #define HAVE_GTK_X11 1
  7679 _ACEOF
  7681 fi
  7683    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  7684 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  7685 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  7686   $as_echo_n "(cached) " >&6
  7687 else
  7688   cat >conftest.$ac_ext <<_ACEOF
  7689 /* confdefs.h.  */
  7690 _ACEOF
  7691 cat confdefs.h >>conftest.$ac_ext
  7692 cat >>conftest.$ac_ext <<_ACEOF
  7693 /* end confdefs.h.  */
  7694 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  7695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7696 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  7698 /* System header to define __stub macros and hopefully few prototypes,
  7699     which can conflict with char gdk_quartz_window_get_nsview (); below.
  7700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7701     <limits.h> exists even on freestanding compilers.  */
  7703 #ifdef __STDC__
  7704 # include <limits.h>
  7705 #else
  7706 # include <assert.h>
  7707 #endif
  7709 #undef gdk_quartz_window_get_nsview
  7711 /* Override any GCC internal prototype to avoid an error.
  7712    Use char because int might match the return type of a GCC
  7713    builtin and then its argument prototype would still apply.  */
  7714 #ifdef __cplusplus
  7715 extern "C"
  7716 #endif
  7717 char gdk_quartz_window_get_nsview ();
  7718 /* The GNU C library defines this for functions which it implements
  7719     to always fail with ENOSYS.  Some functions are actually named
  7720     something starting with __ and the normal name is an alias.  */
  7721 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  7722 choke me
  7723 #endif
  7725 int
  7726 main ()
  7728 return gdk_quartz_window_get_nsview ();
  7730   return 0;
  7732 _ACEOF
  7733 rm -f conftest.$ac_objext conftest$ac_exeext
  7734 if { (ac_try="$ac_link"
  7735 case "(($ac_try" in
  7736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7737   *) ac_try_echo=$ac_try;;
  7738 esac
  7739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7740 $as_echo "$ac_try_echo") >&5
  7741   (eval "$ac_link") 2>conftest.er1
  7742   ac_status=$?
  7743   grep -v '^ *+' conftest.er1 >conftest.err
  7744   rm -f conftest.er1
  7745   cat conftest.err >&5
  7746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7747   (exit $ac_status); } && {
  7748 	 test -z "$ac_c_werror_flag" ||
  7749 	 test ! -s conftest.err
  7750        } && test -s conftest$ac_exeext && {
  7751 	 test "$cross_compiling" = yes ||
  7752 	 $as_test_x conftest$ac_exeext
  7753        }; then
  7754   ac_cv_func_gdk_quartz_window_get_nsview=yes
  7755 else
  7756   $as_echo "$as_me: failed program was:" >&5
  7757 sed 's/^/| /' conftest.$ac_ext >&5
  7759 	ac_cv_func_gdk_quartz_window_get_nsview=no
  7760 fi
  7762 rm -rf conftest.dSYM
  7763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7764       conftest$ac_exeext conftest.$ac_ext
  7765 fi
  7766 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  7767 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  7768 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  7770       HAVE_GTK_OSX='yes'
  7772 cat >>confdefs.h <<\_ACEOF
  7773 #define HAVE_GTK_OSX 1
  7774 _ACEOF
  7776 fi
  7778 fi
  7782 if test "$HAVE_GTK" = 'yes'; then
  7783   GUI_GTK_TRUE=
  7784   GUI_GTK_FALSE='#'
  7785 else
  7786   GUI_GTK_TRUE='#'
  7787   GUI_GTK_FALSE=
  7788 fi
  7791 if test "x$with_osmesa" != xno; then
  7795 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  7796 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  7797 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  7798   $as_echo_n "(cached) " >&6
  7799 else
  7800   ac_check_lib_save_LIBS=$LIBS
  7801 LIBS="-lOSMesa  $LIBS"
  7802 cat >conftest.$ac_ext <<_ACEOF
  7803 /* confdefs.h.  */
  7804 _ACEOF
  7805 cat confdefs.h >>conftest.$ac_ext
  7806 cat >>conftest.$ac_ext <<_ACEOF
  7807 /* end confdefs.h.  */
  7809 /* Override any GCC internal prototype to avoid an error.
  7810    Use char because int might match the return type of a GCC
  7811    builtin and then its argument prototype would still apply.  */
  7812 #ifdef __cplusplus
  7813 extern "C"
  7814 #endif
  7815 char OSMesaCreateContext ();
  7816 int
  7817 main ()
  7819 return OSMesaCreateContext ();
  7821   return 0;
  7823 _ACEOF
  7824 rm -f conftest.$ac_objext conftest$ac_exeext
  7825 if { (ac_try="$ac_link"
  7826 case "(($ac_try" in
  7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7828   *) ac_try_echo=$ac_try;;
  7829 esac
  7830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7831 $as_echo "$ac_try_echo") >&5
  7832   (eval "$ac_link") 2>conftest.er1
  7833   ac_status=$?
  7834   grep -v '^ *+' conftest.er1 >conftest.err
  7835   rm -f conftest.er1
  7836   cat conftest.err >&5
  7837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7838   (exit $ac_status); } && {
  7839 	 test -z "$ac_c_werror_flag" ||
  7840 	 test ! -s conftest.err
  7841        } && test -s conftest$ac_exeext && {
  7842 	 test "$cross_compiling" = yes ||
  7843 	 $as_test_x conftest$ac_exeext
  7844        }; then
  7845   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  7846 else
  7847   $as_echo "$as_me: failed program was:" >&5
  7848 sed 's/^/| /' conftest.$ac_ext >&5
  7850 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  7851 fi
  7853 rm -rf conftest.dSYM
  7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7855       conftest$ac_exeext conftest.$ac_ext
  7856 LIBS=$ac_check_lib_save_LIBS
  7857 fi
  7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  7859 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  7860 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  7861   cat >>confdefs.h <<_ACEOF
  7862 #define HAVE_LIBOSMESA 1
  7863 _ACEOF
  7865   LIBS="-lOSMesa $LIBS"
  7867 else
  7868   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  7869 See \`config.log' for more details." >&5
  7870 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  7871 See \`config.log' for more details." >&2;}
  7872    { (exit 1); exit 1; }; }
  7873 fi
  7875   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7876   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7877 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7878 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7879   $as_echo_n "(cached) " >&6
  7880 fi
  7881 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7882 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  7883 else
  7884   # Is the header compilable?
  7885 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  7886 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  7887 cat >conftest.$ac_ext <<_ACEOF
  7888 /* confdefs.h.  */
  7889 _ACEOF
  7890 cat confdefs.h >>conftest.$ac_ext
  7891 cat >>conftest.$ac_ext <<_ACEOF
  7892 /* end confdefs.h.  */
  7893 $ac_includes_default
  7894 #include <GL/osmesa.h>
  7895 _ACEOF
  7896 rm -f conftest.$ac_objext
  7897 if { (ac_try="$ac_compile"
  7898 case "(($ac_try" in
  7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7900   *) ac_try_echo=$ac_try;;
  7901 esac
  7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7903 $as_echo "$ac_try_echo") >&5
  7904   (eval "$ac_compile") 2>conftest.er1
  7905   ac_status=$?
  7906   grep -v '^ *+' conftest.er1 >conftest.err
  7907   rm -f conftest.er1
  7908   cat conftest.err >&5
  7909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7910   (exit $ac_status); } && {
  7911 	 test -z "$ac_c_werror_flag" ||
  7912 	 test ! -s conftest.err
  7913        } && test -s conftest.$ac_objext; then
  7914   ac_header_compiler=yes
  7915 else
  7916   $as_echo "$as_me: failed program was:" >&5
  7917 sed 's/^/| /' conftest.$ac_ext >&5
  7919 	ac_header_compiler=no
  7920 fi
  7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7924 $as_echo "$ac_header_compiler" >&6; }
  7926 # Is the header present?
  7927 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  7928 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  7929 cat >conftest.$ac_ext <<_ACEOF
  7930 /* confdefs.h.  */
  7931 _ACEOF
  7932 cat confdefs.h >>conftest.$ac_ext
  7933 cat >>conftest.$ac_ext <<_ACEOF
  7934 /* end confdefs.h.  */
  7935 #include <GL/osmesa.h>
  7936 _ACEOF
  7937 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7938 case "(($ac_try" in
  7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7940   *) ac_try_echo=$ac_try;;
  7941 esac
  7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7943 $as_echo "$ac_try_echo") >&5
  7944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7945   ac_status=$?
  7946   grep -v '^ *+' conftest.er1 >conftest.err
  7947   rm -f conftest.er1
  7948   cat conftest.err >&5
  7949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950   (exit $ac_status); } >/dev/null && {
  7951 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7952 	 test ! -s conftest.err
  7953        }; then
  7954   ac_header_preproc=yes
  7955 else
  7956   $as_echo "$as_me: failed program was:" >&5
  7957 sed 's/^/| /' conftest.$ac_ext >&5
  7959   ac_header_preproc=no
  7960 fi
  7962 rm -f conftest.err conftest.$ac_ext
  7963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7964 $as_echo "$ac_header_preproc" >&6; }
  7966 # So?  What about this header?
  7967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7968   yes:no: )
  7969     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7970 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7971     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  7972 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  7973     ac_header_preproc=yes
  7974     ;;
  7975   no:yes:* )
  7976     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  7977 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  7978     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  7979 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  7980     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  7981 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  7982     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  7983 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7984     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  7985 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  7986     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  7987 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  7989     ;;
  7990 esac
  7991 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7992 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  7993 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7994   $as_echo_n "(cached) " >&6
  7995 else
  7996   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  7997 fi
  7998 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7999 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  8001 fi
  8002 if test $ac_cv_header_GL_osmesa_h = yes; then
  8004 else
  8005   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  8006 See \`config.log' for more details." >&5
  8007 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  8008 See \`config.log' for more details." >&2;}
  8009    { (exit 1); exit 1; }; }
  8010 fi
  8013   HAVE_OSMESA='yes'
  8014   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  8016 cat >>confdefs.h <<\_ACEOF
  8017 #define HAVE_OSMESA 1
  8018 _ACEOF
  8020 else
  8023    if test "x$APPLE_BUILD" != 'xyes'; then
  8025 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  8026 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  8027 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  8028   $as_echo_n "(cached) " >&6
  8029 else
  8030   ac_check_lib_save_LIBS=$LIBS
  8031 LIBS="-lGL  $LIBS"
  8032 cat >conftest.$ac_ext <<_ACEOF
  8033 /* confdefs.h.  */
  8034 _ACEOF
  8035 cat confdefs.h >>conftest.$ac_ext
  8036 cat >>conftest.$ac_ext <<_ACEOF
  8037 /* end confdefs.h.  */
  8039 /* Override any GCC internal prototype to avoid an error.
  8040    Use char because int might match the return type of a GCC
  8041    builtin and then its argument prototype would still apply.  */
  8042 #ifdef __cplusplus
  8043 extern "C"
  8044 #endif
  8045 char glVertex3f ();
  8046 int
  8047 main ()
  8049 return glVertex3f ();
  8051   return 0;
  8053 _ACEOF
  8054 rm -f conftest.$ac_objext conftest$ac_exeext
  8055 if { (ac_try="$ac_link"
  8056 case "(($ac_try" in
  8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8058   *) ac_try_echo=$ac_try;;
  8059 esac
  8060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8061 $as_echo "$ac_try_echo") >&5
  8062   (eval "$ac_link") 2>conftest.er1
  8063   ac_status=$?
  8064   grep -v '^ *+' conftest.er1 >conftest.err
  8065   rm -f conftest.er1
  8066   cat conftest.err >&5
  8067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068   (exit $ac_status); } && {
  8069 	 test -z "$ac_c_werror_flag" ||
  8070 	 test ! -s conftest.err
  8071        } && test -s conftest$ac_exeext && {
  8072 	 test "$cross_compiling" = yes ||
  8073 	 $as_test_x conftest$ac_exeext
  8074        }; then
  8075   ac_cv_lib_GL_glVertex3f=yes
  8076 else
  8077   $as_echo "$as_me: failed program was:" >&5
  8078 sed 's/^/| /' conftest.$ac_ext >&5
  8080 	ac_cv_lib_GL_glVertex3f=no
  8081 fi
  8083 rm -rf conftest.dSYM
  8084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8085       conftest$ac_exeext conftest.$ac_ext
  8086 LIBS=$ac_check_lib_save_LIBS
  8087 fi
  8088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  8089 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  8090 if test $ac_cv_lib_GL_glVertex3f = yes; then
  8091   cat >>confdefs.h <<_ACEOF
  8092 #define HAVE_LIBGL 1
  8093 _ACEOF
  8095   LIBS="-lGL $LIBS"
  8097 else
  8099           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  8100 See \`config.log' for more details." >&5
  8101 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  8102 See \`config.log' for more details." >&2;}
  8103    { (exit 1); exit 1; }; }
  8104 fi
  8106       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8107   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  8108 $as_echo_n "checking for GL/gl.h... " >&6; }
  8109 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8110   $as_echo_n "(cached) " >&6
  8111 fi
  8112 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  8113 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  8114 else
  8115   # Is the header compilable?
  8116 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  8117 $as_echo_n "checking GL/gl.h usability... " >&6; }
  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 #include <GL/gl.h>
  8126 _ACEOF
  8127 rm -f conftest.$ac_objext
  8128 if { (ac_try="$ac_compile"
  8129 case "(($ac_try" in
  8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8131   *) ac_try_echo=$ac_try;;
  8132 esac
  8133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8134 $as_echo "$ac_try_echo") >&5
  8135   (eval "$ac_compile") 2>conftest.er1
  8136   ac_status=$?
  8137   grep -v '^ *+' conftest.er1 >conftest.err
  8138   rm -f conftest.er1
  8139   cat conftest.err >&5
  8140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141   (exit $ac_status); } && {
  8142 	 test -z "$ac_c_werror_flag" ||
  8143 	 test ! -s conftest.err
  8144        } && test -s conftest.$ac_objext; then
  8145   ac_header_compiler=yes
  8146 else
  8147   $as_echo "$as_me: failed program was:" >&5
  8148 sed 's/^/| /' conftest.$ac_ext >&5
  8150 	ac_header_compiler=no
  8151 fi
  8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8155 $as_echo "$ac_header_compiler" >&6; }
  8157 # Is the header present?
  8158 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  8159 $as_echo_n "checking GL/gl.h presence... " >&6; }
  8160 cat >conftest.$ac_ext <<_ACEOF
  8161 /* confdefs.h.  */
  8162 _ACEOF
  8163 cat confdefs.h >>conftest.$ac_ext
  8164 cat >>conftest.$ac_ext <<_ACEOF
  8165 /* end confdefs.h.  */
  8166 #include <GL/gl.h>
  8167 _ACEOF
  8168 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8169 case "(($ac_try" in
  8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8171   *) ac_try_echo=$ac_try;;
  8172 esac
  8173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8174 $as_echo "$ac_try_echo") >&5
  8175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8176   ac_status=$?
  8177   grep -v '^ *+' conftest.er1 >conftest.err
  8178   rm -f conftest.er1
  8179   cat conftest.err >&5
  8180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8181   (exit $ac_status); } >/dev/null && {
  8182 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8183 	 test ! -s conftest.err
  8184        }; then
  8185   ac_header_preproc=yes
  8186 else
  8187   $as_echo "$as_me: failed program was:" >&5
  8188 sed 's/^/| /' conftest.$ac_ext >&5
  8190   ac_header_preproc=no
  8191 fi
  8193 rm -f conftest.err conftest.$ac_ext
  8194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8195 $as_echo "$ac_header_preproc" >&6; }
  8197 # So?  What about this header?
  8198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8199   yes:no: )
  8200     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8201 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8202     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  8203 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  8204     ac_header_preproc=yes
  8205     ;;
  8206   no:yes:* )
  8207     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  8208 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  8209     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  8210 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  8211     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  8212 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  8213     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  8214 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8215     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  8216 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  8217     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  8218 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  8220     ;;
  8221 esac
  8222 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  8223 $as_echo_n "checking for GL/gl.h... " >&6; }
  8224 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  8225   $as_echo_n "(cached) " >&6
  8226 else
  8227   ac_cv_header_GL_gl_h=$ac_header_preproc
  8228 fi
  8229 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  8230 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  8232 fi
  8233 if test $ac_cv_header_GL_gl_h = yes; then
  8235 else
  8237           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8238 See \`config.log' for more details." >&5
  8239 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  8240 See \`config.log' for more details." >&2;}
  8241    { (exit 1); exit 1; }; }
  8242 fi
  8245    else
  8246       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  8247 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  8248 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  8249   $as_echo_n "(cached) " >&6
  8250 else
  8251   cat >conftest.$ac_ext <<_ACEOF
  8252 /* confdefs.h.  */
  8253 _ACEOF
  8254 cat confdefs.h >>conftest.$ac_ext
  8255 cat >>conftest.$ac_ext <<_ACEOF
  8256 /* end confdefs.h.  */
  8257 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  8258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8259 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  8261 /* System header to define __stub macros and hopefully few prototypes,
  8262     which can conflict with char NSOpenGLGetVersion (); below.
  8263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8264     <limits.h> exists even on freestanding compilers.  */
  8266 #ifdef __STDC__
  8267 # include <limits.h>
  8268 #else
  8269 # include <assert.h>
  8270 #endif
  8272 #undef NSOpenGLGetVersion
  8274 /* Override any GCC internal prototype to avoid an error.
  8275    Use char because int might match the return type of a GCC
  8276    builtin and then its argument prototype would still apply.  */
  8277 #ifdef __cplusplus
  8278 extern "C"
  8279 #endif
  8280 char NSOpenGLGetVersion ();
  8281 /* The GNU C library defines this for functions which it implements
  8282     to always fail with ENOSYS.  Some functions are actually named
  8283     something starting with __ and the normal name is an alias.  */
  8284 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  8285 choke me
  8286 #endif
  8288 int
  8289 main ()
  8291 return NSOpenGLGetVersion ();
  8293   return 0;
  8295 _ACEOF
  8296 rm -f conftest.$ac_objext conftest$ac_exeext
  8297 if { (ac_try="$ac_link"
  8298 case "(($ac_try" in
  8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8300   *) ac_try_echo=$ac_try;;
  8301 esac
  8302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8303 $as_echo "$ac_try_echo") >&5
  8304   (eval "$ac_link") 2>conftest.er1
  8305   ac_status=$?
  8306   grep -v '^ *+' conftest.er1 >conftest.err
  8307   rm -f conftest.er1
  8308   cat conftest.err >&5
  8309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8310   (exit $ac_status); } && {
  8311 	 test -z "$ac_c_werror_flag" ||
  8312 	 test ! -s conftest.err
  8313        } && test -s conftest$ac_exeext && {
  8314 	 test "$cross_compiling" = yes ||
  8315 	 $as_test_x conftest$ac_exeext
  8316        }; then
  8317   ac_cv_func_NSOpenGLGetVersion=yes
  8318 else
  8319   $as_echo "$as_me: failed program was:" >&5
  8320 sed 's/^/| /' conftest.$ac_ext >&5
  8322 	ac_cv_func_NSOpenGLGetVersion=no
  8323 fi
  8325 rm -rf conftest.dSYM
  8326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8327       conftest$ac_exeext conftest.$ac_ext
  8328 fi
  8329 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  8330 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  8331 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  8333          HAVE_NSGL='yes'
  8334          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  8336 cat >>confdefs.h <<\_ACEOF
  8337 #define HAVE_NSGL 1
  8338 _ACEOF
  8340 fi
  8342    fi
  8344    if test "x$HAVE_GTK_X11" = "xyes"; then
  8345       if test "x$APPLE_BUILD" = "xyes"; then
  8346          LIBS="$LIBS -L/usr/X11/lib -lGL"
  8347       fi
  8348       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  8349 $as_echo_n "checking for glXQueryVersion... " >&6; }
  8350 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  8351   $as_echo_n "(cached) " >&6
  8352 else
  8353   cat >conftest.$ac_ext <<_ACEOF
  8354 /* confdefs.h.  */
  8355 _ACEOF
  8356 cat confdefs.h >>conftest.$ac_ext
  8357 cat >>conftest.$ac_ext <<_ACEOF
  8358 /* end confdefs.h.  */
  8359 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  8360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8361 #define glXQueryVersion innocuous_glXQueryVersion
  8363 /* System header to define __stub macros and hopefully few prototypes,
  8364     which can conflict with char glXQueryVersion (); below.
  8365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8366     <limits.h> exists even on freestanding compilers.  */
  8368 #ifdef __STDC__
  8369 # include <limits.h>
  8370 #else
  8371 # include <assert.h>
  8372 #endif
  8374 #undef glXQueryVersion
  8376 /* Override any GCC internal prototype to avoid an error.
  8377    Use char because int might match the return type of a GCC
  8378    builtin and then its argument prototype would still apply.  */
  8379 #ifdef __cplusplus
  8380 extern "C"
  8381 #endif
  8382 char glXQueryVersion ();
  8383 /* The GNU C library defines this for functions which it implements
  8384     to always fail with ENOSYS.  Some functions are actually named
  8385     something starting with __ and the normal name is an alias.  */
  8386 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  8387 choke me
  8388 #endif
  8390 int
  8391 main ()
  8393 return glXQueryVersion ();
  8395   return 0;
  8397 _ACEOF
  8398 rm -f conftest.$ac_objext conftest$ac_exeext
  8399 if { (ac_try="$ac_link"
  8400 case "(($ac_try" in
  8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8402   *) ac_try_echo=$ac_try;;
  8403 esac
  8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8405 $as_echo "$ac_try_echo") >&5
  8406   (eval "$ac_link") 2>conftest.er1
  8407   ac_status=$?
  8408   grep -v '^ *+' conftest.er1 >conftest.err
  8409   rm -f conftest.er1
  8410   cat conftest.err >&5
  8411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412   (exit $ac_status); } && {
  8413 	 test -z "$ac_c_werror_flag" ||
  8414 	 test ! -s conftest.err
  8415        } && test -s conftest$ac_exeext && {
  8416 	 test "$cross_compiling" = yes ||
  8417 	 $as_test_x conftest$ac_exeext
  8418        }; then
  8419   ac_cv_func_glXQueryVersion=yes
  8420 else
  8421   $as_echo "$as_me: failed program was:" >&5
  8422 sed 's/^/| /' conftest.$ac_ext >&5
  8424 	ac_cv_func_glXQueryVersion=no
  8425 fi
  8427 rm -rf conftest.dSYM
  8428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8429       conftest$ac_exeext conftest.$ac_ext
  8430 fi
  8431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  8432 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  8433 if test $ac_cv_func_glXQueryVersion = yes; then
  8435          HAVE_GLX='yes'
  8436          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  8438 cat >>confdefs.h <<\_ACEOF
  8439 #define HAVE_GLX 1
  8440 _ACEOF
  8442 fi
  8444    fi
  8447 fi
  8454 if test "x$HAVE_OSMESA" = "xyes"; then
  8455   VIDEO_OSMESA_TRUE=
  8456   VIDEO_OSMESA_FALSE='#'
  8457 else
  8458   VIDEO_OSMESA_TRUE='#'
  8459   VIDEO_OSMESA_FALSE=
  8460 fi
  8464 if test "x$HAVE_GLX" = "xyes"; then
  8465   VIDEO_GLX_TRUE=
  8466   VIDEO_GLX_FALSE='#'
  8467 else
  8468   VIDEO_GLX_TRUE='#'
  8469   VIDEO_GLX_FALSE=
  8470 fi
  8474 if test "x$HAVE_NSGL" = "xyes"; then
  8475   VIDEO_NSGL_TRUE=
  8476   VIDEO_NSGL_FALSE='#'
  8477 else
  8478   VIDEO_NSGL_TRUE='#'
  8479   VIDEO_NSGL_FALSE=
  8480 fi
  8483 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  8484 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  8485 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  8486   $as_echo_n "(cached) " >&6
  8487 else
  8488   cat >conftest.$ac_ext <<_ACEOF
  8489 /* confdefs.h.  */
  8490 _ACEOF
  8491 cat confdefs.h >>conftest.$ac_ext
  8492 cat >>conftest.$ac_ext <<_ACEOF
  8493 /* end confdefs.h.  */
  8494 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  8495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8496 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  8498 /* System header to define __stub macros and hopefully few prototypes,
  8499     which can conflict with char glGenFramebuffersEXT (); below.
  8500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8501     <limits.h> exists even on freestanding compilers.  */
  8503 #ifdef __STDC__
  8504 # include <limits.h>
  8505 #else
  8506 # include <assert.h>
  8507 #endif
  8509 #undef glGenFramebuffersEXT
  8511 /* Override any GCC internal prototype to avoid an error.
  8512    Use char because int might match the return type of a GCC
  8513    builtin and then its argument prototype would still apply.  */
  8514 #ifdef __cplusplus
  8515 extern "C"
  8516 #endif
  8517 char glGenFramebuffersEXT ();
  8518 /* The GNU C library defines this for functions which it implements
  8519     to always fail with ENOSYS.  Some functions are actually named
  8520     something starting with __ and the normal name is an alias.  */
  8521 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  8522 choke me
  8523 #endif
  8525 int
  8526 main ()
  8528 return glGenFramebuffersEXT ();
  8530   return 0;
  8532 _ACEOF
  8533 rm -f conftest.$ac_objext conftest$ac_exeext
  8534 if { (ac_try="$ac_link"
  8535 case "(($ac_try" in
  8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8537   *) ac_try_echo=$ac_try;;
  8538 esac
  8539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8540 $as_echo "$ac_try_echo") >&5
  8541   (eval "$ac_link") 2>conftest.er1
  8542   ac_status=$?
  8543   grep -v '^ *+' conftest.er1 >conftest.err
  8544   rm -f conftest.er1
  8545   cat conftest.err >&5
  8546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8547   (exit $ac_status); } && {
  8548 	 test -z "$ac_c_werror_flag" ||
  8549 	 test ! -s conftest.err
  8550        } && test -s conftest$ac_exeext && {
  8551 	 test "$cross_compiling" = yes ||
  8552 	 $as_test_x conftest$ac_exeext
  8553        }; then
  8554   ac_cv_func_glGenFramebuffersEXT=yes
  8555 else
  8556   $as_echo "$as_me: failed program was:" >&5
  8557 sed 's/^/| /' conftest.$ac_ext >&5
  8559 	ac_cv_func_glGenFramebuffersEXT=no
  8560 fi
  8562 rm -rf conftest.dSYM
  8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8564       conftest$ac_exeext conftest.$ac_ext
  8565 fi
  8566 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  8567 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
  8568 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  8570 cat >>confdefs.h <<\_ACEOF
  8571 #define HAVE_OPENGL_FBO 1
  8572 _ACEOF
  8574 fi
  8576 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
  8577 $as_echo_n "checking for glCreateShader... " >&6; }
  8578 if test "${ac_cv_func_glCreateShader+set}" = set; then
  8579   $as_echo_n "(cached) " >&6
  8580 else
  8581   cat >conftest.$ac_ext <<_ACEOF
  8582 /* confdefs.h.  */
  8583 _ACEOF
  8584 cat confdefs.h >>conftest.$ac_ext
  8585 cat >>conftest.$ac_ext <<_ACEOF
  8586 /* end confdefs.h.  */
  8587 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  8588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8589 #define glCreateShader innocuous_glCreateShader
  8591 /* System header to define __stub macros and hopefully few prototypes,
  8592     which can conflict with char glCreateShader (); below.
  8593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8594     <limits.h> exists even on freestanding compilers.  */
  8596 #ifdef __STDC__
  8597 # include <limits.h>
  8598 #else
  8599 # include <assert.h>
  8600 #endif
  8602 #undef glCreateShader
  8604 /* Override any GCC internal prototype to avoid an error.
  8605    Use char because int might match the return type of a GCC
  8606    builtin and then its argument prototype would still apply.  */
  8607 #ifdef __cplusplus
  8608 extern "C"
  8609 #endif
  8610 char glCreateShader ();
  8611 /* The GNU C library defines this for functions which it implements
  8612     to always fail with ENOSYS.  Some functions are actually named
  8613     something starting with __ and the normal name is an alias.  */
  8614 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  8615 choke me
  8616 #endif
  8618 int
  8619 main ()
  8621 return glCreateShader ();
  8623   return 0;
  8625 _ACEOF
  8626 rm -f conftest.$ac_objext conftest$ac_exeext
  8627 if { (ac_try="$ac_link"
  8628 case "(($ac_try" in
  8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8630   *) ac_try_echo=$ac_try;;
  8631 esac
  8632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8633 $as_echo "$ac_try_echo") >&5
  8634   (eval "$ac_link") 2>conftest.er1
  8635   ac_status=$?
  8636   grep -v '^ *+' conftest.er1 >conftest.err
  8637   rm -f conftest.er1
  8638   cat conftest.err >&5
  8639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8640   (exit $ac_status); } && {
  8641 	 test -z "$ac_c_werror_flag" ||
  8642 	 test ! -s conftest.err
  8643        } && test -s conftest$ac_exeext && {
  8644 	 test "$cross_compiling" = yes ||
  8645 	 $as_test_x conftest$ac_exeext
  8646        }; then
  8647   ac_cv_func_glCreateShader=yes
  8648 else
  8649   $as_echo "$as_me: failed program was:" >&5
  8650 sed 's/^/| /' conftest.$ac_ext >&5
  8652 	ac_cv_func_glCreateShader=no
  8653 fi
  8655 rm -rf conftest.dSYM
  8656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8657       conftest$ac_exeext conftest.$ac_ext
  8658 fi
  8659 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  8660 $as_echo "$ac_cv_func_glCreateShader" >&6; }
  8661 if test $ac_cv_func_glCreateShader = yes; then
  8663 cat >>confdefs.h <<\_ACEOF
  8664 #define HAVE_OPENGL_SHADER 1
  8665 _ACEOF
  8667 fi
  8669 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  8670 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
  8671 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  8672   $as_echo_n "(cached) " >&6
  8673 else
  8674   cat >conftest.$ac_ext <<_ACEOF
  8675 /* confdefs.h.  */
  8676 _ACEOF
  8677 cat confdefs.h >>conftest.$ac_ext
  8678 cat >>conftest.$ac_ext <<_ACEOF
  8679 /* end confdefs.h.  */
  8680 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  8681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8682 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  8684 /* System header to define __stub macros and hopefully few prototypes,
  8685     which can conflict with char glCreateShaderObjectARB (); below.
  8686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8687     <limits.h> exists even on freestanding compilers.  */
  8689 #ifdef __STDC__
  8690 # include <limits.h>
  8691 #else
  8692 # include <assert.h>
  8693 #endif
  8695 #undef glCreateShaderObjectARB
  8697 /* Override any GCC internal prototype to avoid an error.
  8698    Use char because int might match the return type of a GCC
  8699    builtin and then its argument prototype would still apply.  */
  8700 #ifdef __cplusplus
  8701 extern "C"
  8702 #endif
  8703 char glCreateShaderObjectARB ();
  8704 /* The GNU C library defines this for functions which it implements
  8705     to always fail with ENOSYS.  Some functions are actually named
  8706     something starting with __ and the normal name is an alias.  */
  8707 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  8708 choke me
  8709 #endif
  8711 int
  8712 main ()
  8714 return glCreateShaderObjectARB ();
  8716   return 0;
  8718 _ACEOF
  8719 rm -f conftest.$ac_objext conftest$ac_exeext
  8720 if { (ac_try="$ac_link"
  8721 case "(($ac_try" in
  8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8723   *) ac_try_echo=$ac_try;;
  8724 esac
  8725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8726 $as_echo "$ac_try_echo") >&5
  8727   (eval "$ac_link") 2>conftest.er1
  8728   ac_status=$?
  8729   grep -v '^ *+' conftest.er1 >conftest.err
  8730   rm -f conftest.er1
  8731   cat conftest.err >&5
  8732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733   (exit $ac_status); } && {
  8734 	 test -z "$ac_c_werror_flag" ||
  8735 	 test ! -s conftest.err
  8736        } && test -s conftest$ac_exeext && {
  8737 	 test "$cross_compiling" = yes ||
  8738 	 $as_test_x conftest$ac_exeext
  8739        }; then
  8740   ac_cv_func_glCreateShaderObjectARB=yes
  8741 else
  8742   $as_echo "$as_me: failed program was:" >&5
  8743 sed 's/^/| /' conftest.$ac_ext >&5
  8745 	ac_cv_func_glCreateShaderObjectARB=no
  8746 fi
  8748 rm -rf conftest.dSYM
  8749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8750       conftest$ac_exeext conftest.$ac_ext
  8751 fi
  8752 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  8753 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
  8754 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  8756 cat >>confdefs.h <<\_ACEOF
  8757 #define HAVE_OPENGL_SHADER_ARB 1
  8758 _ACEOF
  8760 fi
  8762 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
  8763 $as_echo_n "checking for glClampColorARB... " >&6; }
  8764 if test "${ac_cv_func_glClampColorARB+set}" = set; then
  8765   $as_echo_n "(cached) " >&6
  8766 else
  8767   cat >conftest.$ac_ext <<_ACEOF
  8768 /* confdefs.h.  */
  8769 _ACEOF
  8770 cat confdefs.h >>conftest.$ac_ext
  8771 cat >>conftest.$ac_ext <<_ACEOF
  8772 /* end confdefs.h.  */
  8773 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
  8774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8775 #define glClampColorARB innocuous_glClampColorARB
  8777 /* System header to define __stub macros and hopefully few prototypes,
  8778     which can conflict with char glClampColorARB (); below.
  8779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8780     <limits.h> exists even on freestanding compilers.  */
  8782 #ifdef __STDC__
  8783 # include <limits.h>
  8784 #else
  8785 # include <assert.h>
  8786 #endif
  8788 #undef glClampColorARB
  8790 /* Override any GCC internal prototype to avoid an error.
  8791    Use char because int might match the return type of a GCC
  8792    builtin and then its argument prototype would still apply.  */
  8793 #ifdef __cplusplus
  8794 extern "C"
  8795 #endif
  8796 char glClampColorARB ();
  8797 /* The GNU C library defines this for functions which it implements
  8798     to always fail with ENOSYS.  Some functions are actually named
  8799     something starting with __ and the normal name is an alias.  */
  8800 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
  8801 choke me
  8802 #endif
  8804 int
  8805 main ()
  8807 return glClampColorARB ();
  8809   return 0;
  8811 _ACEOF
  8812 rm -f conftest.$ac_objext conftest$ac_exeext
  8813 if { (ac_try="$ac_link"
  8814 case "(($ac_try" in
  8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8816   *) ac_try_echo=$ac_try;;
  8817 esac
  8818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8819 $as_echo "$ac_try_echo") >&5
  8820   (eval "$ac_link") 2>conftest.er1
  8821   ac_status=$?
  8822   grep -v '^ *+' conftest.er1 >conftest.err
  8823   rm -f conftest.er1
  8824   cat conftest.err >&5
  8825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826   (exit $ac_status); } && {
  8827 	 test -z "$ac_c_werror_flag" ||
  8828 	 test ! -s conftest.err
  8829        } && test -s conftest$ac_exeext && {
  8830 	 test "$cross_compiling" = yes ||
  8831 	 $as_test_x conftest$ac_exeext
  8832        }; then
  8833   ac_cv_func_glClampColorARB=yes
  8834 else
  8835   $as_echo "$as_me: failed program was:" >&5
  8836 sed 's/^/| /' conftest.$ac_ext >&5
  8838 	ac_cv_func_glClampColorARB=no
  8839 fi
  8841 rm -rf conftest.dSYM
  8842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8843       conftest$ac_exeext conftest.$ac_ext
  8844 fi
  8845 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
  8846 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
  8847 if test $ac_cv_func_glClampColorARB = yes; then
  8849 cat >>confdefs.h <<\_ACEOF
  8850 #define HAVE_OPENGL_CLAMP_COLOR 1
  8851 _ACEOF
  8853 fi
  8858 if test "x$enable_translator" != "xno"; then
  8859     case $host_cpu in
  8860         i386|i486|i586|i686|x86_64)
  8861 	    SH4_TRANSLATOR="x86"
  8863 cat >>confdefs.h <<_ACEOF
  8864 #define SH4_TRANSLATOR TARGET_X86
  8865 _ACEOF
  8866 ;;
  8867     esac
  8868 fi
  8871 if test "$SH4_TRANSLATOR" = "x86"; then
  8872   BUILD_SH4X86_TRUE=
  8873   BUILD_SH4X86_FALSE='#'
  8874 else
  8875   BUILD_SH4X86_TRUE='#'
  8876   BUILD_SH4X86_FALSE=
  8877 fi
  8880 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8881   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8882 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8883 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8884   $as_echo_n "(cached) " >&6
  8885 fi
  8886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  8887 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  8888 else
  8889   # Is the header compilable?
  8890 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  8891 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
  8892 cat >conftest.$ac_ext <<_ACEOF
  8893 /* confdefs.h.  */
  8894 _ACEOF
  8895 cat confdefs.h >>conftest.$ac_ext
  8896 cat >>conftest.$ac_ext <<_ACEOF
  8897 /* end confdefs.h.  */
  8898 $ac_includes_default
  8899 #include <CoreAudio/CoreAudio.h>
  8900 _ACEOF
  8901 rm -f conftest.$ac_objext
  8902 if { (ac_try="$ac_compile"
  8903 case "(($ac_try" in
  8904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8905   *) ac_try_echo=$ac_try;;
  8906 esac
  8907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8908 $as_echo "$ac_try_echo") >&5
  8909   (eval "$ac_compile") 2>conftest.er1
  8910   ac_status=$?
  8911   grep -v '^ *+' conftest.er1 >conftest.err
  8912   rm -f conftest.er1
  8913   cat conftest.err >&5
  8914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8915   (exit $ac_status); } && {
  8916 	 test -z "$ac_c_werror_flag" ||
  8917 	 test ! -s conftest.err
  8918        } && test -s conftest.$ac_objext; then
  8919   ac_header_compiler=yes
  8920 else
  8921   $as_echo "$as_me: failed program was:" >&5
  8922 sed 's/^/| /' conftest.$ac_ext >&5
  8924 	ac_header_compiler=no
  8925 fi
  8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8929 $as_echo "$ac_header_compiler" >&6; }
  8931 # Is the header present?
  8932 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  8933 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
  8934 cat >conftest.$ac_ext <<_ACEOF
  8935 /* confdefs.h.  */
  8936 _ACEOF
  8937 cat confdefs.h >>conftest.$ac_ext
  8938 cat >>conftest.$ac_ext <<_ACEOF
  8939 /* end confdefs.h.  */
  8940 #include <CoreAudio/CoreAudio.h>
  8941 _ACEOF
  8942 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8943 case "(($ac_try" in
  8944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8945   *) ac_try_echo=$ac_try;;
  8946 esac
  8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8948 $as_echo "$ac_try_echo") >&5
  8949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8950   ac_status=$?
  8951   grep -v '^ *+' conftest.er1 >conftest.err
  8952   rm -f conftest.er1
  8953   cat conftest.err >&5
  8954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955   (exit $ac_status); } >/dev/null && {
  8956 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8957 	 test ! -s conftest.err
  8958        }; then
  8959   ac_header_preproc=yes
  8960 else
  8961   $as_echo "$as_me: failed program was:" >&5
  8962 sed 's/^/| /' conftest.$ac_ext >&5
  8964   ac_header_preproc=no
  8965 fi
  8967 rm -f conftest.err conftest.$ac_ext
  8968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8969 $as_echo "$ac_header_preproc" >&6; }
  8971 # So?  What about this header?
  8972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8973   yes:no: )
  8974     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8975 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8976     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  8977 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  8978     ac_header_preproc=yes
  8979     ;;
  8980   no:yes:* )
  8981     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  8982 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  8983     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
  8984 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
  8985     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  8986 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  8987     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
  8988 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8989     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  8990 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  8991     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  8992 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  8994     ;;
  8995 esac
  8996 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  8997 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  8998 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  8999   $as_echo_n "(cached) " >&6
  9000 else
  9001   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  9002 fi
  9003 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  9004 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  9006 fi
  9007 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  9009      HAVE_CORE_AUDIO=yes
  9010      LIBS="$LIBS -framework CoreAudio"
  9011      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
  9013 cat >>confdefs.h <<\_ACEOF
  9014 #define HAVE_CORE_AUDIO 1
  9015 _ACEOF
  9017 else
  9018   true
  9019 fi
  9024 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
  9025   AUDIO_OSX_TRUE=
  9026   AUDIO_OSX_FALSE='#'
  9027 else
  9028   AUDIO_OSX_TRUE='#'
  9029   AUDIO_OSX_FALSE=
  9030 fi
  9033 if test "x$with_pulse" != "xno"; then
  9035 pkg_failed=no
  9036 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
  9037 $as_echo_n "checking for PULSE... " >&6; }
  9039 if test -n "$PULSE_CFLAGS"; then
  9040     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  9041  elif test -n "$PKG_CONFIG"; then
  9042     if test -n "$PKG_CONFIG" && \
  9043     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  9044   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  9045   ac_status=$?
  9046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047   (exit $ac_status); }; then
  9048   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  9049 else
  9050   pkg_failed=yes
  9051 fi
  9052  else
  9053     pkg_failed=untried
  9054 fi
  9055 if test -n "$PULSE_LIBS"; then
  9056     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  9057  elif test -n "$PKG_CONFIG"; then
  9058     if test -n "$PKG_CONFIG" && \
  9059     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  9060   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  9061   ac_status=$?
  9062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9063   (exit $ac_status); }; then
  9064   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  9065 else
  9066   pkg_failed=yes
  9067 fi
  9068  else
  9069     pkg_failed=untried
  9070 fi
  9074 if test $pkg_failed = yes; then
  9076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9077         _pkg_short_errors_supported=yes
  9078 else
  9079         _pkg_short_errors_supported=no
  9080 fi
  9081         if test $_pkg_short_errors_supported = yes; then
  9082 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
  9083         else
  9084 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
  9085         fi
  9086 	# Put the nasty error message in config.log where it belongs
  9087 	echo "$PULSE_PKG_ERRORS" >&5
  9089 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  9090 $as_echo "no" >&6; }
  9092        if test "x$with_pulse" = "xyes"; then
  9093           { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
  9094 See \`config.log' for more details." >&5
  9095 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
  9096 See \`config.log' for more details." >&2;}
  9097    { (exit 1); exit 1; }; }
  9098        fi
  9100 elif test $pkg_failed = untried; then
  9102        if test "x$with_pulse" = "xyes"; then
  9103           { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
  9104 See \`config.log' for more details." >&5
  9105 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
  9106 See \`config.log' for more details." >&2;}
  9107    { (exit 1); exit 1; }; }
  9108        fi
  9110 else
  9111 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  9112 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  9113         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9114 $as_echo "yes" >&6; }
  9116        HAVE_PULSE='yes'
  9117        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
  9119 cat >>confdefs.h <<\_ACEOF
  9120 #define HAVE_PULSE 1
  9121 _ACEOF
  9124 fi
  9125 fi
  9128 if test "$HAVE_PULSE" = 'yes' ; then
  9129   AUDIO_PULSE_TRUE=
  9130   AUDIO_PULSE_FALSE='#'
  9131 else
  9132   AUDIO_PULSE_TRUE='#'
  9133   AUDIO_PULSE_FALSE=
  9134 fi
  9137 if test "x$with_esd" != "xno"; then
  9139 pkg_failed=no
  9140 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
  9141 $as_echo_n "checking for ESOUND... " >&6; }
  9143 if test -n "$ESOUND_CFLAGS"; then
  9144     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  9145  elif test -n "$PKG_CONFIG"; then
  9146     if test -n "$PKG_CONFIG" && \
  9147     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  9148   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  9149   ac_status=$?
  9150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151   (exit $ac_status); }; then
  9152   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  9153 else
  9154   pkg_failed=yes
  9155 fi
  9156  else
  9157     pkg_failed=untried
  9158 fi
  9159 if test -n "$ESOUND_LIBS"; then
  9160     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  9161  elif test -n "$PKG_CONFIG"; then
  9162     if test -n "$PKG_CONFIG" && \
  9163     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  9164   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  9165   ac_status=$?
  9166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9167   (exit $ac_status); }; then
  9168   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  9169 else
  9170   pkg_failed=yes
  9171 fi
  9172  else
  9173     pkg_failed=untried
  9174 fi
  9178 if test $pkg_failed = yes; then
  9180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9181         _pkg_short_errors_supported=yes
  9182 else
  9183         _pkg_short_errors_supported=no
  9184 fi
  9185         if test $_pkg_short_errors_supported = yes; then
  9186 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
  9187         else
  9188 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
  9189         fi
  9190 	# Put the nasty error message in config.log where it belongs
  9191 	echo "$ESOUND_PKG_ERRORS" >&5
  9193 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  9194 $as_echo "no" >&6; }
  9196        if test "x$with_esd" = "xyes"; then
  9197           { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
  9198 See \`config.log' for more details." >&5
  9199 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
  9200 See \`config.log' for more details." >&2;}
  9201    { (exit 1); exit 1; }; }
  9202        fi
  9204 elif test $pkg_failed = untried; then
  9206        if test "x$with_esd" = "xyes"; then
  9207           { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
  9208 See \`config.log' for more details." >&5
  9209 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
  9210 See \`config.log' for more details." >&2;}
  9211    { (exit 1); exit 1; }; }
  9212        fi
  9214 else
  9215 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  9216 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  9217         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9218 $as_echo "yes" >&6; }
  9220        HAVE_ESOUND='yes'
  9221        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
  9223 cat >>confdefs.h <<\_ACEOF
  9224 #define HAVE_ESOUND 1
  9225 _ACEOF
  9228 fi
  9229 fi
  9232 if test "$HAVE_ESOUND" = 'yes' ; then
  9233   AUDIO_ESOUND_TRUE=
  9234   AUDIO_ESOUND_FALSE='#'
  9235 else
  9236   AUDIO_ESOUND_TRUE='#'
  9237   AUDIO_ESOUND_FALSE=
  9238 fi
  9242 pkg_failed=no
  9243 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
  9244 $as_echo_n "checking for ALSA... " >&6; }
  9246 if test -n "$ALSA_CFLAGS"; then
  9247     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  9248  elif test -n "$PKG_CONFIG"; then
  9249     if test -n "$PKG_CONFIG" && \
  9250     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  9251   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  9252   ac_status=$?
  9253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9254   (exit $ac_status); }; then
  9255   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  9256 else
  9257   pkg_failed=yes
  9258 fi
  9259  else
  9260     pkg_failed=untried
  9261 fi
  9262 if test -n "$ALSA_LIBS"; then
  9263     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  9264  elif test -n "$PKG_CONFIG"; then
  9265     if test -n "$PKG_CONFIG" && \
  9266     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  9267   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  9268   ac_status=$?
  9269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9270   (exit $ac_status); }; then
  9271   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  9272 else
  9273   pkg_failed=yes
  9274 fi
  9275  else
  9276     pkg_failed=untried
  9277 fi
  9281 if test $pkg_failed = yes; then
  9283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9284         _pkg_short_errors_supported=yes
  9285 else
  9286         _pkg_short_errors_supported=no
  9287 fi
  9288         if test $_pkg_short_errors_supported = yes; then
  9289 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
  9290         else
  9291 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
  9292         fi
  9293 	# Put the nasty error message in config.log where it belongs
  9294 	echo "$ALSA_PKG_ERRORS" >&5
  9296 	{ $as_echo "$as_me:$LINENO: result: no" >&5
  9297 $as_echo "no" >&6; }
  9298                 true
  9299 elif test $pkg_failed = untried; then
  9300 	true
  9301 else
  9302 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  9303 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  9304         { $as_echo "$as_me:$LINENO: result: yes" >&5
  9305 $as_echo "yes" >&6; }
  9307      HAVE_ALSA='yes'
  9308      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
  9310 cat >>confdefs.h <<\_ACEOF
  9311 #define HAVE_ALSA 1
  9312 _ACEOF
  9314 fi
  9317 if test "$HAVE_ALSA" = 'yes' ; then
  9318   AUDIO_ALSA_TRUE=
  9319   AUDIO_ALSA_FALSE='#'
  9320 else
  9321   AUDIO_ALSA_TRUE='#'
  9322   AUDIO_ALSA_FALSE=
  9323 fi
  9327 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9328   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9329 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9330 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9331   $as_echo_n "(cached) " >&6
  9332 fi
  9333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9334 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9335 else
  9336   # Is the header compilable?
  9337 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  9338 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
  9339 cat >conftest.$ac_ext <<_ACEOF
  9340 /* confdefs.h.  */
  9341 _ACEOF
  9342 cat confdefs.h >>conftest.$ac_ext
  9343 cat >>conftest.$ac_ext <<_ACEOF
  9344 /* end confdefs.h.  */
  9345 $ac_includes_default
  9346 #include <linux/cdrom.h>
  9347 _ACEOF
  9348 rm -f conftest.$ac_objext
  9349 if { (ac_try="$ac_compile"
  9350 case "(($ac_try" in
  9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9352   *) ac_try_echo=$ac_try;;
  9353 esac
  9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9355 $as_echo "$ac_try_echo") >&5
  9356   (eval "$ac_compile") 2>conftest.er1
  9357   ac_status=$?
  9358   grep -v '^ *+' conftest.er1 >conftest.err
  9359   rm -f conftest.er1
  9360   cat conftest.err >&5
  9361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9362   (exit $ac_status); } && {
  9363 	 test -z "$ac_c_werror_flag" ||
  9364 	 test ! -s conftest.err
  9365        } && test -s conftest.$ac_objext; then
  9366   ac_header_compiler=yes
  9367 else
  9368   $as_echo "$as_me: failed program was:" >&5
  9369 sed 's/^/| /' conftest.$ac_ext >&5
  9371 	ac_header_compiler=no
  9372 fi
  9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9376 $as_echo "$ac_header_compiler" >&6; }
  9378 # Is the header present?
  9379 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  9380 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
  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 #include <linux/cdrom.h>
  9388 _ACEOF
  9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9390 case "(($ac_try" in
  9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9392   *) ac_try_echo=$ac_try;;
  9393 esac
  9394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9395 $as_echo "$ac_try_echo") >&5
  9396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9397   ac_status=$?
  9398   grep -v '^ *+' conftest.er1 >conftest.err
  9399   rm -f conftest.er1
  9400   cat conftest.err >&5
  9401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9402   (exit $ac_status); } >/dev/null && {
  9403 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9404 	 test ! -s conftest.err
  9405        }; then
  9406   ac_header_preproc=yes
  9407 else
  9408   $as_echo "$as_me: failed program was:" >&5
  9409 sed 's/^/| /' conftest.$ac_ext >&5
  9411   ac_header_preproc=no
  9412 fi
  9414 rm -f conftest.err conftest.$ac_ext
  9415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9416 $as_echo "$ac_header_preproc" >&6; }
  9418 # So?  What about this header?
  9419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9420   yes:no: )
  9421     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9422 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9423     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  9424 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  9425     ac_header_preproc=yes
  9426     ;;
  9427   no:yes:* )
  9428     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  9429 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  9430     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  9431 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  9432     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  9433 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  9434     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  9435 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9436     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  9437 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  9438     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  9439 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  9441     ;;
  9442 esac
  9443 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  9444 $as_echo_n "checking for linux/cdrom.h... " >&6; }
  9445 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  9446   $as_echo_n "(cached) " >&6
  9447 else
  9448   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  9449 fi
  9450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  9451 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
  9453 fi
  9454 if test $ac_cv_header_linux_cdrom_h = yes; then
  9455   CDROM_DRIVER=linux
  9456 else
  9457   true
  9458 fi
  9461 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
  9462   { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
  9463 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
  9464 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
  9465   $as_echo_n "(cached) " >&6
  9466 fi
  9467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
  9468 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
  9469 else
  9470   # Is the header compilable?
  9471 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
  9472 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
  9473 cat >conftest.$ac_ext <<_ACEOF
  9474 /* confdefs.h.  */
  9475 _ACEOF
  9476 cat confdefs.h >>conftest.$ac_ext
  9477 cat >>conftest.$ac_ext <<_ACEOF
  9478 /* end confdefs.h.  */
  9479 $ac_includes_default
  9480 #include <IOKit/IOKitLib.h>
  9481 _ACEOF
  9482 rm -f conftest.$ac_objext
  9483 if { (ac_try="$ac_compile"
  9484 case "(($ac_try" in
  9485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9486   *) ac_try_echo=$ac_try;;
  9487 esac
  9488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9489 $as_echo "$ac_try_echo") >&5
  9490   (eval "$ac_compile") 2>conftest.er1
  9491   ac_status=$?
  9492   grep -v '^ *+' conftest.er1 >conftest.err
  9493   rm -f conftest.er1
  9494   cat conftest.err >&5
  9495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9496   (exit $ac_status); } && {
  9497 	 test -z "$ac_c_werror_flag" ||
  9498 	 test ! -s conftest.err
  9499        } && test -s conftest.$ac_objext; then
  9500   ac_header_compiler=yes
  9501 else
  9502   $as_echo "$as_me: failed program was:" >&5
  9503 sed 's/^/| /' conftest.$ac_ext >&5
  9505 	ac_header_compiler=no
  9506 fi
  9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9510 $as_echo "$ac_header_compiler" >&6; }
  9512 # Is the header present?
  9513 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
  9514 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
  9515 cat >conftest.$ac_ext <<_ACEOF
  9516 /* confdefs.h.  */
  9517 _ACEOF
  9518 cat confdefs.h >>conftest.$ac_ext
  9519 cat >>conftest.$ac_ext <<_ACEOF
  9520 /* end confdefs.h.  */
  9521 #include <IOKit/IOKitLib.h>
  9522 _ACEOF
  9523 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9524 case "(($ac_try" in
  9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9526   *) ac_try_echo=$ac_try;;
  9527 esac
  9528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9529 $as_echo "$ac_try_echo") >&5
  9530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9531   ac_status=$?
  9532   grep -v '^ *+' conftest.er1 >conftest.err
  9533   rm -f conftest.er1
  9534   cat conftest.err >&5
  9535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9536   (exit $ac_status); } >/dev/null && {
  9537 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9538 	 test ! -s conftest.err
  9539        }; then
  9540   ac_header_preproc=yes
  9541 else
  9542   $as_echo "$as_me: failed program was:" >&5
  9543 sed 's/^/| /' conftest.$ac_ext >&5
  9545   ac_header_preproc=no
  9546 fi
  9548 rm -f conftest.err conftest.$ac_ext
  9549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9550 $as_echo "$ac_header_preproc" >&6; }
  9552 # So?  What about this header?
  9553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9554   yes:no: )
  9555     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9556 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9557     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
  9558 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
  9559     ac_header_preproc=yes
  9560     ;;
  9561   no:yes:* )
  9562     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
  9563 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
  9564     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
  9565 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
  9566     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
  9567 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
  9568     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
  9569 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9570     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
  9571 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
  9572     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
  9573 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
  9575     ;;
  9576 esac
  9577 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
  9578 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
  9579 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
  9580   $as_echo_n "(cached) " >&6
  9581 else
  9582   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
  9583 fi
  9584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
  9585 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
  9587 fi
  9588 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
  9590      CDROM_DRIVER=osx
  9591      LIBS="$LIBS -framework IOKit"
  9592 else
  9593   true
  9594 fi
  9599 if test "x$CDROM_DRIVER" = "xlinux"; then
  9600   CDROM_LINUX_TRUE=
  9601   CDROM_LINUX_FALSE='#'
  9602 else
  9603   CDROM_LINUX_TRUE='#'
  9604   CDROM_LINUX_FALSE=
  9605 fi
  9609 if test "x$CDROM_DRIVER" = "xosx"; then
  9610   CDROM_OSX_TRUE=
  9611   CDROM_OSX_FALSE='#'
  9612 else
  9613   CDROM_OSX_TRUE='#'
  9614   CDROM_OSX_FALSE=
  9615 fi
  9619 if test "x$CDROM_DRIVER" = "x"; then
  9620   CDROM_NONE_TRUE=
  9621   CDROM_NONE_FALSE='#'
  9622 else
  9623   CDROM_NONE_TRUE='#'
  9624   CDROM_NONE_FALSE=
  9625 fi
  9628 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9629   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9630 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9631 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9632   $as_echo_n "(cached) " >&6
  9633 fi
  9634 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9635 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9636 else
  9637   # Is the header compilable?
  9638 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  9639 $as_echo_n "checking linux/joystick.h usability... " >&6; }
  9640 cat >conftest.$ac_ext <<_ACEOF
  9641 /* confdefs.h.  */
  9642 _ACEOF
  9643 cat confdefs.h >>conftest.$ac_ext
  9644 cat >>conftest.$ac_ext <<_ACEOF
  9645 /* end confdefs.h.  */
  9646 $ac_includes_default
  9647 #include <linux/joystick.h>
  9648 _ACEOF
  9649 rm -f conftest.$ac_objext
  9650 if { (ac_try="$ac_compile"
  9651 case "(($ac_try" in
  9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9653   *) ac_try_echo=$ac_try;;
  9654 esac
  9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9656 $as_echo "$ac_try_echo") >&5
  9657   (eval "$ac_compile") 2>conftest.er1
  9658   ac_status=$?
  9659   grep -v '^ *+' conftest.er1 >conftest.err
  9660   rm -f conftest.er1
  9661   cat conftest.err >&5
  9662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9663   (exit $ac_status); } && {
  9664 	 test -z "$ac_c_werror_flag" ||
  9665 	 test ! -s conftest.err
  9666        } && test -s conftest.$ac_objext; then
  9667   ac_header_compiler=yes
  9668 else
  9669   $as_echo "$as_me: failed program was:" >&5
  9670 sed 's/^/| /' conftest.$ac_ext >&5
  9672 	ac_header_compiler=no
  9673 fi
  9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9676 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9677 $as_echo "$ac_header_compiler" >&6; }
  9679 # Is the header present?
  9680 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  9681 $as_echo_n "checking linux/joystick.h presence... " >&6; }
  9682 cat >conftest.$ac_ext <<_ACEOF
  9683 /* confdefs.h.  */
  9684 _ACEOF
  9685 cat confdefs.h >>conftest.$ac_ext
  9686 cat >>conftest.$ac_ext <<_ACEOF
  9687 /* end confdefs.h.  */
  9688 #include <linux/joystick.h>
  9689 _ACEOF
  9690 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9691 case "(($ac_try" in
  9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9693   *) ac_try_echo=$ac_try;;
  9694 esac
  9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9696 $as_echo "$ac_try_echo") >&5
  9697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9698   ac_status=$?
  9699   grep -v '^ *+' conftest.er1 >conftest.err
  9700   rm -f conftest.er1
  9701   cat conftest.err >&5
  9702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9703   (exit $ac_status); } >/dev/null && {
  9704 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9705 	 test ! -s conftest.err
  9706        }; then
  9707   ac_header_preproc=yes
  9708 else
  9709   $as_echo "$as_me: failed program was:" >&5
  9710 sed 's/^/| /' conftest.$ac_ext >&5
  9712   ac_header_preproc=no
  9713 fi
  9715 rm -f conftest.err conftest.$ac_ext
  9716 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9717 $as_echo "$ac_header_preproc" >&6; }
  9719 # So?  What about this header?
  9720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9721   yes:no: )
  9722     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9723 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9724     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  9725 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  9726     ac_header_preproc=yes
  9727     ;;
  9728   no:yes:* )
  9729     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  9730 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  9731     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  9732 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  9733     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  9734 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  9735     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  9736 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9737     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  9738 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  9739     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  9740 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  9742     ;;
  9743 esac
  9744 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  9745 $as_echo_n "checking for linux/joystick.h... " >&6; }
  9746 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  9747   $as_echo_n "(cached) " >&6
  9748 else
  9749   ac_cv_header_linux_joystick_h=$ac_header_preproc
  9750 fi
  9751 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  9752 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
  9754 fi
  9755 if test $ac_cv_header_linux_joystick_h = yes; then
  9757     HAVE_LINUX_JOYSTICK_H=yes
  9759 cat >>confdefs.h <<\_ACEOF
  9760 #define HAVE_LINUX_JOYSTICK 1
  9761 _ACEOF
  9763 else
  9764    echo "Linux Joystick support not found, building without it."
  9765 fi
  9770 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  9771   JOY_LINUX_TRUE=
  9772   JOY_LINUX_FALSE='#'
  9773 else
  9774   JOY_LINUX_TRUE='#'
  9775   JOY_LINUX_FALSE=
  9776 fi
  9779 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  9780 set dummy sh-elf-gcc; ac_word=$2
  9781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9782 $as_echo_n "checking for $ac_word... " >&6; }
  9783 if test "${ac_cv_path_SHCC+set}" = set; then
  9784   $as_echo_n "(cached) " >&6
  9785 else
  9786   case $SHCC in
  9787   [\\/]* | ?:[\\/]*)
  9788   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  9789   ;;
  9790   *)
  9791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9792 for as_dir in $PATH
  9793 do
  9794   IFS=$as_save_IFS
  9795   test -z "$as_dir" && as_dir=.
  9796   for ac_exec_ext in '' $ac_executable_extensions; do
  9797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9798     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  9799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9800     break 2
  9801   fi
  9802 done
  9803 done
  9804 IFS=$as_save_IFS
  9806   ;;
  9807 esac
  9808 fi
  9809 SHCC=$ac_cv_path_SHCC
  9810 if test -n "$SHCC"; then
  9811   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
  9812 $as_echo "$SHCC" >&6; }
  9813 else
  9814   { $as_echo "$as_me:$LINENO: result: no" >&5
  9815 $as_echo "no" >&6; }
  9816 fi
  9819 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  9820 set dummy sh-elf-ld; ac_word=$2
  9821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9822 $as_echo_n "checking for $ac_word... " >&6; }
  9823 if test "${ac_cv_path_SHLD+set}" = set; then
  9824   $as_echo_n "(cached) " >&6
  9825 else
  9826   case $SHLD in
  9827   [\\/]* | ?:[\\/]*)
  9828   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  9829   ;;
  9830   *)
  9831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9832 for as_dir in $PATH
  9833 do
  9834   IFS=$as_save_IFS
  9835   test -z "$as_dir" && as_dir=.
  9836   for ac_exec_ext in '' $ac_executable_extensions; do
  9837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9838     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  9839     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9840     break 2
  9841   fi
  9842 done
  9843 done
  9844 IFS=$as_save_IFS
  9846   ;;
  9847 esac
  9848 fi
  9849 SHLD=$ac_cv_path_SHLD
  9850 if test -n "$SHLD"; then
  9851   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
  9852 $as_echo "$SHLD" >&6; }
  9853 else
  9854   { $as_echo "$as_me:$LINENO: result: no" >&5
  9855 $as_echo "no" >&6; }
  9856 fi
  9859 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  9860 set dummy sh-elf-objcopy; ac_word=$2
  9861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9862 $as_echo_n "checking for $ac_word... " >&6; }
  9863 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  9864   $as_echo_n "(cached) " >&6
  9865 else
  9866   case $SHOBJCOPY in
  9867   [\\/]* | ?:[\\/]*)
  9868   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  9869   ;;
  9870   *)
  9871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9872 for as_dir in $PATH
  9873 do
  9874   IFS=$as_save_IFS
  9875   test -z "$as_dir" && as_dir=.
  9876   for ac_exec_ext in '' $ac_executable_extensions; do
  9877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9878     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9879     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9880     break 2
  9881   fi
  9882 done
  9883 done
  9884 IFS=$as_save_IFS
  9886   ;;
  9887 esac
  9888 fi
  9889 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  9890 if test -n "$SHOBJCOPY"; then
  9891   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  9892 $as_echo "$SHOBJCOPY" >&6; }
  9893 else
  9894   { $as_echo "$as_me:$LINENO: result: no" >&5
  9895 $as_echo "no" >&6; }
  9896 fi
  9899 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  9900 set dummy arm-elf-gcc; ac_word=$2
  9901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9902 $as_echo_n "checking for $ac_word... " >&6; }
  9903 if test "${ac_cv_path_ARMCC+set}" = set; then
  9904   $as_echo_n "(cached) " >&6
  9905 else
  9906   case $ARMCC in
  9907   [\\/]* | ?:[\\/]*)
  9908   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  9909   ;;
  9910   *)
  9911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9912 for as_dir in $PATH
  9913 do
  9914   IFS=$as_save_IFS
  9915   test -z "$as_dir" && as_dir=.
  9916   for ac_exec_ext in '' $ac_executable_extensions; do
  9917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9918     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  9919     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9920     break 2
  9921   fi
  9922 done
  9923 done
  9924 IFS=$as_save_IFS
  9926   ;;
  9927 esac
  9928 fi
  9929 ARMCC=$ac_cv_path_ARMCC
  9930 if test -n "$ARMCC"; then
  9931   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
  9932 $as_echo "$ARMCC" >&6; }
  9933 else
  9934   { $as_echo "$as_me:$LINENO: result: no" >&5
  9935 $as_echo "no" >&6; }
  9936 fi
  9939 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  9940 set dummy arm-elf-ld; ac_word=$2
  9941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9942 $as_echo_n "checking for $ac_word... " >&6; }
  9943 if test "${ac_cv_path_ARMLD+set}" = set; then
  9944   $as_echo_n "(cached) " >&6
  9945 else
  9946   case $ARMLD in
  9947   [\\/]* | ?:[\\/]*)
  9948   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  9949   ;;
  9950   *)
  9951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9952 for as_dir in $PATH
  9953 do
  9954   IFS=$as_save_IFS
  9955   test -z "$as_dir" && as_dir=.
  9956   for ac_exec_ext in '' $ac_executable_extensions; do
  9957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9958     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  9959     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9960     break 2
  9961   fi
  9962 done
  9963 done
  9964 IFS=$as_save_IFS
  9966   ;;
  9967 esac
  9968 fi
  9969 ARMLD=$ac_cv_path_ARMLD
  9970 if test -n "$ARMLD"; then
  9971   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
  9972 $as_echo "$ARMLD" >&6; }
  9973 else
  9974   { $as_echo "$as_me:$LINENO: result: no" >&5
  9975 $as_echo "no" >&6; }
  9976 fi
  9979 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  9980 set dummy arm-elf-objcopy; ac_word=$2
  9981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9982 $as_echo_n "checking for $ac_word... " >&6; }
  9983 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  9984   $as_echo_n "(cached) " >&6
  9985 else
  9986   case $ARMOBJCOPY in
  9987   [\\/]* | ?:[\\/]*)
  9988   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  9989   ;;
  9990   *)
  9991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9992 for as_dir in $PATH
  9993 do
  9994   IFS=$as_save_IFS
  9995   test -z "$as_dir" && as_dir=.
  9996   for ac_exec_ext in '' $ac_executable_extensions; do
  9997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9998     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  9999     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10000     break 2
 10001   fi
 10002 done
 10003 done
 10004 IFS=$as_save_IFS
 10006   ;;
 10007 esac
 10008 fi
 10009 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 10010 if test -n "$ARMOBJCOPY"; then
 10011   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 10012 $as_echo "$ARMOBJCOPY" >&6; }
 10013 else
 10014   { $as_echo "$as_me:$LINENO: result: no" >&5
 10015 $as_echo "no" >&6; }
 10016 fi
 10020 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 10021   BUILD_SH="no"
 10022   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 10023 else
 10024   BUILD_SH="yes"
 10025 fi
 10026 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 10027   BUILD_ARM="no"
 10028   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 10029 else
 10030   BUILD_ARM="yes"
 10031 fi
 10034 if test "$BUILD_SH" = "yes"; then
 10035   BUILD_SYSTEST_TRUE=
 10036   BUILD_SYSTEST_FALSE='#'
 10037 else
 10038   BUILD_SYSTEST_TRUE='#'
 10039   BUILD_SYSTEST_FALSE=
 10040 fi
 10044 if test "$BUILD_ARM" = "yes"; then
 10045   BUILD_ARMTEST_TRUE=
 10046   BUILD_ARMTEST_FALSE='#'
 10047 else
 10048   BUILD_ARMTEST_TRUE='#'
 10049   BUILD_ARMTEST_FALSE=
 10050 fi
 10054 GETTEXT_PACKAGE=lxdream
 10057 cat >>confdefs.h <<_ACEOF
 10058 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 10059 _ACEOF
 10062 ALL_LINGUAS="de es it pt_BR"
 10065 for ac_header in locale.h
 10066 do
 10067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 10068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 10069   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 10070 $as_echo_n "checking for $ac_header... " >&6; }
 10071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 10072   $as_echo_n "(cached) " >&6
 10073 fi
 10074 ac_res=`eval 'as_val=${'$as_ac_Header'}
 10075 		 $as_echo "$as_val"'`
 10076 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10077 $as_echo "$ac_res" >&6; }
 10078 else
 10079   # Is the header compilable?
 10080 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 10081 $as_echo_n "checking $ac_header usability... " >&6; }
 10082 cat >conftest.$ac_ext <<_ACEOF
 10083 /* confdefs.h.  */
 10084 _ACEOF
 10085 cat confdefs.h >>conftest.$ac_ext
 10086 cat >>conftest.$ac_ext <<_ACEOF
 10087 /* end confdefs.h.  */
 10088 $ac_includes_default
 10089 #include <$ac_header>
 10090 _ACEOF
 10091 rm -f conftest.$ac_objext
 10092 if { (ac_try="$ac_compile"
 10093 case "(($ac_try" in
 10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10095   *) ac_try_echo=$ac_try;;
 10096 esac
 10097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10098 $as_echo "$ac_try_echo") >&5
 10099   (eval "$ac_compile") 2>conftest.er1
 10100   ac_status=$?
 10101   grep -v '^ *+' conftest.er1 >conftest.err
 10102   rm -f conftest.er1
 10103   cat conftest.err >&5
 10104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10105   (exit $ac_status); } && {
 10106 	 test -z "$ac_c_werror_flag" ||
 10107 	 test ! -s conftest.err
 10108        } && test -s conftest.$ac_objext; then
 10109   ac_header_compiler=yes
 10110 else
 10111   $as_echo "$as_me: failed program was:" >&5
 10112 sed 's/^/| /' conftest.$ac_ext >&5
 10114 	ac_header_compiler=no
 10115 fi
 10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10118 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10119 $as_echo "$ac_header_compiler" >&6; }
 10121 # Is the header present?
 10122 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 10123 $as_echo_n "checking $ac_header presence... " >&6; }
 10124 cat >conftest.$ac_ext <<_ACEOF
 10125 /* confdefs.h.  */
 10126 _ACEOF
 10127 cat confdefs.h >>conftest.$ac_ext
 10128 cat >>conftest.$ac_ext <<_ACEOF
 10129 /* end confdefs.h.  */
 10130 #include <$ac_header>
 10131 _ACEOF
 10132 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10133 case "(($ac_try" in
 10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10135   *) ac_try_echo=$ac_try;;
 10136 esac
 10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10138 $as_echo "$ac_try_echo") >&5
 10139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10140   ac_status=$?
 10141   grep -v '^ *+' conftest.er1 >conftest.err
 10142   rm -f conftest.er1
 10143   cat conftest.err >&5
 10144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10145   (exit $ac_status); } >/dev/null && {
 10146 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10147 	 test ! -s conftest.err
 10148        }; then
 10149   ac_header_preproc=yes
 10150 else
 10151   $as_echo "$as_me: failed program was:" >&5
 10152 sed 's/^/| /' conftest.$ac_ext >&5
 10154   ac_header_preproc=no
 10155 fi
 10157 rm -f conftest.err conftest.$ac_ext
 10158 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10159 $as_echo "$ac_header_preproc" >&6; }
 10161 # So?  What about this header?
 10162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10163   yes:no: )
 10164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 10165 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 10167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 10168     ac_header_preproc=yes
 10169     ;;
 10170   no:yes:* )
 10171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 10172 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 10173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 10174 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 10175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 10176 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 10177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 10178 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 10179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 10180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 10181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 10182 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 10184     ;;
 10185 esac
 10186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 10187 $as_echo_n "checking for $ac_header... " >&6; }
 10188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 10189   $as_echo_n "(cached) " >&6
 10190 else
 10191   eval "$as_ac_Header=\$ac_header_preproc"
 10192 fi
 10193 ac_res=`eval 'as_val=${'$as_ac_Header'}
 10194 		 $as_echo "$as_val"'`
 10195 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10196 $as_echo "$ac_res" >&6; }
 10198 fi
 10199 if test `eval 'as_val=${'$as_ac_Header'}
 10200 		 $as_echo "$as_val"'` = yes; then
 10201   cat >>confdefs.h <<_ACEOF
 10202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 10203 _ACEOF
 10205 fi
 10207 done
 10209     if test $ac_cv_header_locale_h = yes; then
 10210     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 10211 $as_echo_n "checking for LC_MESSAGES... " >&6; }
 10212 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 10213   $as_echo_n "(cached) " >&6
 10214 else
 10215   cat >conftest.$ac_ext <<_ACEOF
 10216 /* confdefs.h.  */
 10217 _ACEOF
 10218 cat confdefs.h >>conftest.$ac_ext
 10219 cat >>conftest.$ac_ext <<_ACEOF
 10220 /* end confdefs.h.  */
 10221 #include <locale.h>
 10222 int
 10223 main ()
 10225 return LC_MESSAGES
 10227   return 0;
 10229 _ACEOF
 10230 rm -f conftest.$ac_objext conftest$ac_exeext
 10231 if { (ac_try="$ac_link"
 10232 case "(($ac_try" in
 10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10234   *) ac_try_echo=$ac_try;;
 10235 esac
 10236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10237 $as_echo "$ac_try_echo") >&5
 10238   (eval "$ac_link") 2>conftest.er1
 10239   ac_status=$?
 10240   grep -v '^ *+' conftest.er1 >conftest.err
 10241   rm -f conftest.er1
 10242   cat conftest.err >&5
 10243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10244   (exit $ac_status); } && {
 10245 	 test -z "$ac_c_werror_flag" ||
 10246 	 test ! -s conftest.err
 10247        } && test -s conftest$ac_exeext && {
 10248 	 test "$cross_compiling" = yes ||
 10249 	 $as_test_x conftest$ac_exeext
 10250        }; then
 10251   am_cv_val_LC_MESSAGES=yes
 10252 else
 10253   $as_echo "$as_me: failed program was:" >&5
 10254 sed 's/^/| /' conftest.$ac_ext >&5
 10256 	am_cv_val_LC_MESSAGES=no
 10257 fi
 10259 rm -rf conftest.dSYM
 10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10261       conftest$ac_exeext conftest.$ac_ext
 10262 fi
 10263 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 10264 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 10265     if test $am_cv_val_LC_MESSAGES = yes; then
 10267 cat >>confdefs.h <<\_ACEOF
 10268 #define HAVE_LC_MESSAGES 1
 10269 _ACEOF
 10271     fi
 10272   fi
 10273      USE_NLS=yes
 10276     gt_cv_have_gettext=no
 10278     CATOBJEXT=NONE
 10279     XGETTEXT=:
 10280     INTLLIBS=
 10282     if test "${ac_cv_header_libintl_h+set}" = set; then
 10283   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 10284 $as_echo_n "checking for libintl.h... " >&6; }
 10285 if test "${ac_cv_header_libintl_h+set}" = set; then
 10286   $as_echo_n "(cached) " >&6
 10287 fi
 10288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 10289 $as_echo "$ac_cv_header_libintl_h" >&6; }
 10290 else
 10291   # Is the header compilable?
 10292 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
 10293 $as_echo_n "checking libintl.h usability... " >&6; }
 10294 cat >conftest.$ac_ext <<_ACEOF
 10295 /* confdefs.h.  */
 10296 _ACEOF
 10297 cat confdefs.h >>conftest.$ac_ext
 10298 cat >>conftest.$ac_ext <<_ACEOF
 10299 /* end confdefs.h.  */
 10300 $ac_includes_default
 10301 #include <libintl.h>
 10302 _ACEOF
 10303 rm -f conftest.$ac_objext
 10304 if { (ac_try="$ac_compile"
 10305 case "(($ac_try" in
 10306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10307   *) ac_try_echo=$ac_try;;
 10308 esac
 10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10310 $as_echo "$ac_try_echo") >&5
 10311   (eval "$ac_compile") 2>conftest.er1
 10312   ac_status=$?
 10313   grep -v '^ *+' conftest.er1 >conftest.err
 10314   rm -f conftest.er1
 10315   cat conftest.err >&5
 10316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10317   (exit $ac_status); } && {
 10318 	 test -z "$ac_c_werror_flag" ||
 10319 	 test ! -s conftest.err
 10320        } && test -s conftest.$ac_objext; then
 10321   ac_header_compiler=yes
 10322 else
 10323   $as_echo "$as_me: failed program was:" >&5
 10324 sed 's/^/| /' conftest.$ac_ext >&5
 10326 	ac_header_compiler=no
 10327 fi
 10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10331 $as_echo "$ac_header_compiler" >&6; }
 10333 # Is the header present?
 10334 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
 10335 $as_echo_n "checking libintl.h presence... " >&6; }
 10336 cat >conftest.$ac_ext <<_ACEOF
 10337 /* confdefs.h.  */
 10338 _ACEOF
 10339 cat confdefs.h >>conftest.$ac_ext
 10340 cat >>conftest.$ac_ext <<_ACEOF
 10341 /* end confdefs.h.  */
 10342 #include <libintl.h>
 10343 _ACEOF
 10344 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10345 case "(($ac_try" in
 10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10347   *) ac_try_echo=$ac_try;;
 10348 esac
 10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10350 $as_echo "$ac_try_echo") >&5
 10351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10352   ac_status=$?
 10353   grep -v '^ *+' conftest.er1 >conftest.err
 10354   rm -f conftest.er1
 10355   cat conftest.err >&5
 10356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10357   (exit $ac_status); } >/dev/null && {
 10358 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10359 	 test ! -s conftest.err
 10360        }; then
 10361   ac_header_preproc=yes
 10362 else
 10363   $as_echo "$as_me: failed program was:" >&5
 10364 sed 's/^/| /' conftest.$ac_ext >&5
 10366   ac_header_preproc=no
 10367 fi
 10369 rm -f conftest.err conftest.$ac_ext
 10370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10371 $as_echo "$ac_header_preproc" >&6; }
 10373 # So?  What about this header?
 10374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10375   yes:no: )
 10376     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10377 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10378     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 10379 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 10380     ac_header_preproc=yes
 10381     ;;
 10382   no:yes:* )
 10383     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 10384 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 10385     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 10386 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 10387     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 10388 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 10389     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 10390 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10391     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 10392 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 10393     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 10394 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 10396     ;;
 10397 esac
 10398 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 10399 $as_echo_n "checking for libintl.h... " >&6; }
 10400 if test "${ac_cv_header_libintl_h+set}" = set; then
 10401   $as_echo_n "(cached) " >&6
 10402 else
 10403   ac_cv_header_libintl_h=$ac_header_preproc
 10404 fi
 10405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 10406 $as_echo "$ac_cv_header_libintl_h" >&6; }
 10408 fi
 10409 if test $ac_cv_header_libintl_h = yes; then
 10410   gt_cv_func_dgettext_libintl="no"
 10411       libintl_extra_libs=""
 10414       # First check in libc
 10416       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 10417 $as_echo_n "checking for ngettext in libc... " >&6; }
 10418 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 10419   $as_echo_n "(cached) " >&6
 10420 else
 10421   cat >conftest.$ac_ext <<_ACEOF
 10422 /* confdefs.h.  */
 10423 _ACEOF
 10424 cat confdefs.h >>conftest.$ac_ext
 10425 cat >>conftest.$ac_ext <<_ACEOF
 10426 /* end confdefs.h.  */
 10428 #include <libintl.h>
 10430 int
 10431 main ()
 10433 return !ngettext ("","", 1)
 10435   return 0;
 10437 _ACEOF
 10438 rm -f conftest.$ac_objext conftest$ac_exeext
 10439 if { (ac_try="$ac_link"
 10440 case "(($ac_try" in
 10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10442   *) ac_try_echo=$ac_try;;
 10443 esac
 10444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10445 $as_echo "$ac_try_echo") >&5
 10446   (eval "$ac_link") 2>conftest.er1
 10447   ac_status=$?
 10448   grep -v '^ *+' conftest.er1 >conftest.err
 10449   rm -f conftest.er1
 10450   cat conftest.err >&5
 10451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10452   (exit $ac_status); } && {
 10453 	 test -z "$ac_c_werror_flag" ||
 10454 	 test ! -s conftest.err
 10455        } && test -s conftest$ac_exeext && {
 10456 	 test "$cross_compiling" = yes ||
 10457 	 $as_test_x conftest$ac_exeext
 10458        }; then
 10459   gt_cv_func_ngettext_libc=yes
 10460 else
 10461   $as_echo "$as_me: failed program was:" >&5
 10462 sed 's/^/| /' conftest.$ac_ext >&5
 10464 	gt_cv_func_ngettext_libc=no
 10465 fi
 10467 rm -rf conftest.dSYM
 10468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10469       conftest$ac_exeext conftest.$ac_ext
 10471 fi
 10472 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 10473 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 10475       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10476 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 10477 $as_echo_n "checking for dgettext in libc... " >&6; }
 10478 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 10479   $as_echo_n "(cached) " >&6
 10480 else
 10481   cat >conftest.$ac_ext <<_ACEOF
 10482 /* confdefs.h.  */
 10483 _ACEOF
 10484 cat confdefs.h >>conftest.$ac_ext
 10485 cat >>conftest.$ac_ext <<_ACEOF
 10486 /* end confdefs.h.  */
 10488 #include <libintl.h>
 10490 int
 10491 main ()
 10493 return !dgettext ("","")
 10495   return 0;
 10497 _ACEOF
 10498 rm -f conftest.$ac_objext conftest$ac_exeext
 10499 if { (ac_try="$ac_link"
 10500 case "(($ac_try" in
 10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10502   *) ac_try_echo=$ac_try;;
 10503 esac
 10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10505 $as_echo "$ac_try_echo") >&5
 10506   (eval "$ac_link") 2>conftest.er1
 10507   ac_status=$?
 10508   grep -v '^ *+' conftest.er1 >conftest.err
 10509   rm -f conftest.er1
 10510   cat conftest.err >&5
 10511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10512   (exit $ac_status); } && {
 10513 	 test -z "$ac_c_werror_flag" ||
 10514 	 test ! -s conftest.err
 10515        } && test -s conftest$ac_exeext && {
 10516 	 test "$cross_compiling" = yes ||
 10517 	 $as_test_x conftest$ac_exeext
 10518        }; then
 10519   gt_cv_func_dgettext_libc=yes
 10520 else
 10521   $as_echo "$as_me: failed program was:" >&5
 10522 sed 's/^/| /' conftest.$ac_ext >&5
 10524 	gt_cv_func_dgettext_libc=no
 10525 fi
 10527 rm -rf conftest.dSYM
 10528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10529       conftest$ac_exeext conftest.$ac_ext
 10531 fi
 10532 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 10533 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 10534       fi
 10536       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 10538 for ac_func in bind_textdomain_codeset
 10539 do
 10540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 10542 $as_echo_n "checking for $ac_func... " >&6; }
 10543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10544   $as_echo_n "(cached) " >&6
 10545 else
 10546   cat >conftest.$ac_ext <<_ACEOF
 10547 /* confdefs.h.  */
 10548 _ACEOF
 10549 cat confdefs.h >>conftest.$ac_ext
 10550 cat >>conftest.$ac_ext <<_ACEOF
 10551 /* end confdefs.h.  */
 10552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10554 #define $ac_func innocuous_$ac_func
 10556 /* System header to define __stub macros and hopefully few prototypes,
 10557     which can conflict with char $ac_func (); below.
 10558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10559     <limits.h> exists even on freestanding compilers.  */
 10561 #ifdef __STDC__
 10562 # include <limits.h>
 10563 #else
 10564 # include <assert.h>
 10565 #endif
 10567 #undef $ac_func
 10569 /* Override any GCC internal prototype to avoid an error.
 10570    Use char because int might match the return type of a GCC
 10571    builtin and then its argument prototype would still apply.  */
 10572 #ifdef __cplusplus
 10573 extern "C"
 10574 #endif
 10575 char $ac_func ();
 10576 /* The GNU C library defines this for functions which it implements
 10577     to always fail with ENOSYS.  Some functions are actually named
 10578     something starting with __ and the normal name is an alias.  */
 10579 #if defined __stub_$ac_func || defined __stub___$ac_func
 10580 choke me
 10581 #endif
 10583 int
 10584 main ()
 10586 return $ac_func ();
 10588   return 0;
 10590 _ACEOF
 10591 rm -f conftest.$ac_objext conftest$ac_exeext
 10592 if { (ac_try="$ac_link"
 10593 case "(($ac_try" in
 10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10595   *) ac_try_echo=$ac_try;;
 10596 esac
 10597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10598 $as_echo "$ac_try_echo") >&5
 10599   (eval "$ac_link") 2>conftest.er1
 10600   ac_status=$?
 10601   grep -v '^ *+' conftest.er1 >conftest.err
 10602   rm -f conftest.er1
 10603   cat conftest.err >&5
 10604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10605   (exit $ac_status); } && {
 10606 	 test -z "$ac_c_werror_flag" ||
 10607 	 test ! -s conftest.err
 10608        } && test -s conftest$ac_exeext && {
 10609 	 test "$cross_compiling" = yes ||
 10610 	 $as_test_x conftest$ac_exeext
 10611        }; then
 10612   eval "$as_ac_var=yes"
 10613 else
 10614   $as_echo "$as_me: failed program was:" >&5
 10615 sed 's/^/| /' conftest.$ac_ext >&5
 10617 	eval "$as_ac_var=no"
 10618 fi
 10620 rm -rf conftest.dSYM
 10621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10622       conftest$ac_exeext conftest.$ac_ext
 10623 fi
 10624 ac_res=`eval 'as_val=${'$as_ac_var'}
 10625 		 $as_echo "$as_val"'`
 10626 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10627 $as_echo "$ac_res" >&6; }
 10628 if test `eval 'as_val=${'$as_ac_var'}
 10629 		 $as_echo "$as_val"'` = yes; then
 10630   cat >>confdefs.h <<_ACEOF
 10631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10632 _ACEOF
 10634 fi
 10635 done
 10637       fi
 10640       # If we don't have everything we want, check in libintl
 10642       if test "$gt_cv_func_dgettext_libc" != "yes" \
 10643 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 10644          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 10646         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 10647 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 10648 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 10649   $as_echo_n "(cached) " >&6
 10650 else
 10651   ac_check_lib_save_LIBS=$LIBS
 10652 LIBS="-lintl  $LIBS"
 10653 cat >conftest.$ac_ext <<_ACEOF
 10654 /* confdefs.h.  */
 10655 _ACEOF
 10656 cat confdefs.h >>conftest.$ac_ext
 10657 cat >>conftest.$ac_ext <<_ACEOF
 10658 /* end confdefs.h.  */
 10660 /* Override any GCC internal prototype to avoid an error.
 10661    Use char because int might match the return type of a GCC
 10662    builtin and then its argument prototype would still apply.  */
 10663 #ifdef __cplusplus
 10664 extern "C"
 10665 #endif
 10666 char bindtextdomain ();
 10667 int
 10668 main ()
 10670 return bindtextdomain ();
 10672   return 0;
 10674 _ACEOF
 10675 rm -f conftest.$ac_objext conftest$ac_exeext
 10676 if { (ac_try="$ac_link"
 10677 case "(($ac_try" in
 10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10679   *) ac_try_echo=$ac_try;;
 10680 esac
 10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10682 $as_echo "$ac_try_echo") >&5
 10683   (eval "$ac_link") 2>conftest.er1
 10684   ac_status=$?
 10685   grep -v '^ *+' conftest.er1 >conftest.err
 10686   rm -f conftest.er1
 10687   cat conftest.err >&5
 10688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10689   (exit $ac_status); } && {
 10690 	 test -z "$ac_c_werror_flag" ||
 10691 	 test ! -s conftest.err
 10692        } && test -s conftest$ac_exeext && {
 10693 	 test "$cross_compiling" = yes ||
 10694 	 $as_test_x conftest$ac_exeext
 10695        }; then
 10696   ac_cv_lib_intl_bindtextdomain=yes
 10697 else
 10698   $as_echo "$as_me: failed program was:" >&5
 10699 sed 's/^/| /' conftest.$ac_ext >&5
 10701 	ac_cv_lib_intl_bindtextdomain=no
 10702 fi
 10704 rm -rf conftest.dSYM
 10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10706       conftest$ac_exeext conftest.$ac_ext
 10707 LIBS=$ac_check_lib_save_LIBS
 10708 fi
 10709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 10710 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 10711 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 10712   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10713 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10714 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10715   $as_echo_n "(cached) " >&6
 10716 else
 10717   ac_check_lib_save_LIBS=$LIBS
 10718 LIBS="-lintl  $LIBS"
 10719 cat >conftest.$ac_ext <<_ACEOF
 10720 /* confdefs.h.  */
 10721 _ACEOF
 10722 cat confdefs.h >>conftest.$ac_ext
 10723 cat >>conftest.$ac_ext <<_ACEOF
 10724 /* end confdefs.h.  */
 10726 /* Override any GCC internal prototype to avoid an error.
 10727    Use char because int might match the return type of a GCC
 10728    builtin and then its argument prototype would still apply.  */
 10729 #ifdef __cplusplus
 10730 extern "C"
 10731 #endif
 10732 char ngettext ();
 10733 int
 10734 main ()
 10736 return ngettext ();
 10738   return 0;
 10740 _ACEOF
 10741 rm -f conftest.$ac_objext conftest$ac_exeext
 10742 if { (ac_try="$ac_link"
 10743 case "(($ac_try" in
 10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10745   *) ac_try_echo=$ac_try;;
 10746 esac
 10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10748 $as_echo "$ac_try_echo") >&5
 10749   (eval "$ac_link") 2>conftest.er1
 10750   ac_status=$?
 10751   grep -v '^ *+' conftest.er1 >conftest.err
 10752   rm -f conftest.er1
 10753   cat conftest.err >&5
 10754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10755   (exit $ac_status); } && {
 10756 	 test -z "$ac_c_werror_flag" ||
 10757 	 test ! -s conftest.err
 10758        } && test -s conftest$ac_exeext && {
 10759 	 test "$cross_compiling" = yes ||
 10760 	 $as_test_x conftest$ac_exeext
 10761        }; then
 10762   ac_cv_lib_intl_ngettext=yes
 10763 else
 10764   $as_echo "$as_me: failed program was:" >&5
 10765 sed 's/^/| /' conftest.$ac_ext >&5
 10767 	ac_cv_lib_intl_ngettext=no
 10768 fi
 10770 rm -rf conftest.dSYM
 10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10772       conftest$ac_exeext conftest.$ac_ext
 10773 LIBS=$ac_check_lib_save_LIBS
 10774 fi
 10775 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10776 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10777 if test $ac_cv_lib_intl_ngettext = yes; then
 10778   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 10779 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 10780 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 10781   $as_echo_n "(cached) " >&6
 10782 else
 10783   ac_check_lib_save_LIBS=$LIBS
 10784 LIBS="-lintl  $LIBS"
 10785 cat >conftest.$ac_ext <<_ACEOF
 10786 /* confdefs.h.  */
 10787 _ACEOF
 10788 cat confdefs.h >>conftest.$ac_ext
 10789 cat >>conftest.$ac_ext <<_ACEOF
 10790 /* end confdefs.h.  */
 10792 /* Override any GCC internal prototype to avoid an error.
 10793    Use char because int might match the return type of a GCC
 10794    builtin and then its argument prototype would still apply.  */
 10795 #ifdef __cplusplus
 10796 extern "C"
 10797 #endif
 10798 char dgettext ();
 10799 int
 10800 main ()
 10802 return dgettext ();
 10804   return 0;
 10806 _ACEOF
 10807 rm -f conftest.$ac_objext conftest$ac_exeext
 10808 if { (ac_try="$ac_link"
 10809 case "(($ac_try" in
 10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10811   *) ac_try_echo=$ac_try;;
 10812 esac
 10813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10814 $as_echo "$ac_try_echo") >&5
 10815   (eval "$ac_link") 2>conftest.er1
 10816   ac_status=$?
 10817   grep -v '^ *+' conftest.er1 >conftest.err
 10818   rm -f conftest.er1
 10819   cat conftest.err >&5
 10820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10821   (exit $ac_status); } && {
 10822 	 test -z "$ac_c_werror_flag" ||
 10823 	 test ! -s conftest.err
 10824        } && test -s conftest$ac_exeext && {
 10825 	 test "$cross_compiling" = yes ||
 10826 	 $as_test_x conftest$ac_exeext
 10827        }; then
 10828   ac_cv_lib_intl_dgettext=yes
 10829 else
 10830   $as_echo "$as_me: failed program was:" >&5
 10831 sed 's/^/| /' conftest.$ac_ext >&5
 10833 	ac_cv_lib_intl_dgettext=no
 10834 fi
 10836 rm -rf conftest.dSYM
 10837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10838       conftest$ac_exeext conftest.$ac_ext
 10839 LIBS=$ac_check_lib_save_LIBS
 10840 fi
 10841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 10842 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 10843 if test $ac_cv_lib_intl_dgettext = yes; then
 10844   gt_cv_func_dgettext_libintl=yes
 10845 fi
 10847 fi
 10849 fi
 10852 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 10853 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 10854 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 10855 	  { $as_echo "$as_me:$LINENO: result: " >&5
 10856 $as_echo "" >&6; }
 10857   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 10858 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 10859 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 10860   $as_echo_n "(cached) " >&6
 10861 else
 10862   ac_check_lib_save_LIBS=$LIBS
 10863 LIBS="-lintl -liconv $LIBS"
 10864 cat >conftest.$ac_ext <<_ACEOF
 10865 /* confdefs.h.  */
 10866 _ACEOF
 10867 cat confdefs.h >>conftest.$ac_ext
 10868 cat >>conftest.$ac_ext <<_ACEOF
 10869 /* end confdefs.h.  */
 10871 /* Override any GCC internal prototype to avoid an error.
 10872    Use char because int might match the return type of a GCC
 10873    builtin and then its argument prototype would still apply.  */
 10874 #ifdef __cplusplus
 10875 extern "C"
 10876 #endif
 10877 char ngettext ();
 10878 int
 10879 main ()
 10881 return ngettext ();
 10883   return 0;
 10885 _ACEOF
 10886 rm -f conftest.$ac_objext conftest$ac_exeext
 10887 if { (ac_try="$ac_link"
 10888 case "(($ac_try" in
 10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10890   *) ac_try_echo=$ac_try;;
 10891 esac
 10892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10893 $as_echo "$ac_try_echo") >&5
 10894   (eval "$ac_link") 2>conftest.er1
 10895   ac_status=$?
 10896   grep -v '^ *+' conftest.er1 >conftest.err
 10897   rm -f conftest.er1
 10898   cat conftest.err >&5
 10899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10900   (exit $ac_status); } && {
 10901 	 test -z "$ac_c_werror_flag" ||
 10902 	 test ! -s conftest.err
 10903        } && test -s conftest$ac_exeext && {
 10904 	 test "$cross_compiling" = yes ||
 10905 	 $as_test_x conftest$ac_exeext
 10906        }; then
 10907   ac_cv_lib_intl_ngettext=yes
 10908 else
 10909   $as_echo "$as_me: failed program was:" >&5
 10910 sed 's/^/| /' conftest.$ac_ext >&5
 10912 	ac_cv_lib_intl_ngettext=no
 10913 fi
 10915 rm -rf conftest.dSYM
 10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10917       conftest$ac_exeext conftest.$ac_ext
 10918 LIBS=$ac_check_lib_save_LIBS
 10919 fi
 10920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 10921 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 10922 if test $ac_cv_lib_intl_ngettext = yes; then
 10923   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 10924 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 10925 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 10926   $as_echo_n "(cached) " >&6
 10927 else
 10928   ac_check_lib_save_LIBS=$LIBS
 10929 LIBS="-lintl -liconv $LIBS"
 10930 cat >conftest.$ac_ext <<_ACEOF
 10931 /* confdefs.h.  */
 10932 _ACEOF
 10933 cat confdefs.h >>conftest.$ac_ext
 10934 cat >>conftest.$ac_ext <<_ACEOF
 10935 /* end confdefs.h.  */
 10937 /* Override any GCC internal prototype to avoid an error.
 10938    Use char because int might match the return type of a GCC
 10939    builtin and then its argument prototype would still apply.  */
 10940 #ifdef __cplusplus
 10941 extern "C"
 10942 #endif
 10943 char dcgettext ();
 10944 int
 10945 main ()
 10947 return dcgettext ();
 10949   return 0;
 10951 _ACEOF
 10952 rm -f conftest.$ac_objext conftest$ac_exeext
 10953 if { (ac_try="$ac_link"
 10954 case "(($ac_try" in
 10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10956   *) ac_try_echo=$ac_try;;
 10957 esac
 10958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10959 $as_echo "$ac_try_echo") >&5
 10960   (eval "$ac_link") 2>conftest.er1
 10961   ac_status=$?
 10962   grep -v '^ *+' conftest.er1 >conftest.err
 10963   rm -f conftest.er1
 10964   cat conftest.err >&5
 10965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10966   (exit $ac_status); } && {
 10967 	 test -z "$ac_c_werror_flag" ||
 10968 	 test ! -s conftest.err
 10969        } && test -s conftest$ac_exeext && {
 10970 	 test "$cross_compiling" = yes ||
 10971 	 $as_test_x conftest$ac_exeext
 10972        }; then
 10973   ac_cv_lib_intl_dcgettext=yes
 10974 else
 10975   $as_echo "$as_me: failed program was:" >&5
 10976 sed 's/^/| /' conftest.$ac_ext >&5
 10978 	ac_cv_lib_intl_dcgettext=no
 10979 fi
 10981 rm -rf conftest.dSYM
 10982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10983       conftest$ac_exeext conftest.$ac_ext
 10984 LIBS=$ac_check_lib_save_LIBS
 10985 fi
 10986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 10987 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 10988 if test $ac_cv_lib_intl_dcgettext = yes; then
 10989   gt_cv_func_dgettext_libintl=yes
 10990 			libintl_extra_libs=-liconv
 10991 else
 10993 fi
 10995 else
 10997 fi
 10999         fi
 11002         # If we found libintl, then check in it for bind_textdomain_codeset();
 11003         # we'll prefer libc if neither have bind_textdomain_codeset(),
 11004         # and both have dgettext and ngettext
 11006         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 11007           glib_save_LIBS="$LIBS"
 11008           LIBS="$LIBS -lintl $libintl_extra_libs"
 11009           unset ac_cv_func_bind_textdomain_codeset
 11011 for ac_func in bind_textdomain_codeset
 11012 do
 11013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 11014 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 11015 $as_echo_n "checking for $ac_func... " >&6; }
 11016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 11017   $as_echo_n "(cached) " >&6
 11018 else
 11019   cat >conftest.$ac_ext <<_ACEOF
 11020 /* confdefs.h.  */
 11021 _ACEOF
 11022 cat confdefs.h >>conftest.$ac_ext
 11023 cat >>conftest.$ac_ext <<_ACEOF
 11024 /* end confdefs.h.  */
 11025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 11026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11027 #define $ac_func innocuous_$ac_func
 11029 /* System header to define __stub macros and hopefully few prototypes,
 11030     which can conflict with char $ac_func (); below.
 11031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11032     <limits.h> exists even on freestanding compilers.  */
 11034 #ifdef __STDC__
 11035 # include <limits.h>
 11036 #else
 11037 # include <assert.h>
 11038 #endif
 11040 #undef $ac_func
 11042 /* Override any GCC internal prototype to avoid an error.
 11043    Use char because int might match the return type of a GCC
 11044    builtin and then its argument prototype would still apply.  */
 11045 #ifdef __cplusplus
 11046 extern "C"
 11047 #endif
 11048 char $ac_func ();
 11049 /* The GNU C library defines this for functions which it implements
 11050     to always fail with ENOSYS.  Some functions are actually named
 11051     something starting with __ and the normal name is an alias.  */
 11052 #if defined __stub_$ac_func || defined __stub___$ac_func
 11053 choke me
 11054 #endif
 11056 int
 11057 main ()
 11059 return $ac_func ();
 11061   return 0;
 11063 _ACEOF
 11064 rm -f conftest.$ac_objext conftest$ac_exeext
 11065 if { (ac_try="$ac_link"
 11066 case "(($ac_try" in
 11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11068   *) ac_try_echo=$ac_try;;
 11069 esac
 11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11071 $as_echo "$ac_try_echo") >&5
 11072   (eval "$ac_link") 2>conftest.er1
 11073   ac_status=$?
 11074   grep -v '^ *+' conftest.er1 >conftest.err
 11075   rm -f conftest.er1
 11076   cat conftest.err >&5
 11077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11078   (exit $ac_status); } && {
 11079 	 test -z "$ac_c_werror_flag" ||
 11080 	 test ! -s conftest.err
 11081        } && test -s conftest$ac_exeext && {
 11082 	 test "$cross_compiling" = yes ||
 11083 	 $as_test_x conftest$ac_exeext
 11084        }; then
 11085   eval "$as_ac_var=yes"
 11086 else
 11087   $as_echo "$as_me: failed program was:" >&5
 11088 sed 's/^/| /' conftest.$ac_ext >&5
 11090 	eval "$as_ac_var=no"
 11091 fi
 11093 rm -rf conftest.dSYM
 11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11095       conftest$ac_exeext conftest.$ac_ext
 11096 fi
 11097 ac_res=`eval 'as_val=${'$as_ac_var'}
 11098 		 $as_echo "$as_val"'`
 11099 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11100 $as_echo "$ac_res" >&6; }
 11101 if test `eval 'as_val=${'$as_ac_var'}
 11102 		 $as_echo "$as_val"'` = yes; then
 11103   cat >>confdefs.h <<_ACEOF
 11104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 11105 _ACEOF
 11107 fi
 11108 done
 11110           LIBS="$glib_save_LIBS"
 11112           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 11113             gt_cv_func_dgettext_libc=no
 11114           else
 11115             if test "$gt_cv_func_dgettext_libc" = "yes" \
 11116 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 11117               gt_cv_func_dgettext_libintl=no
 11118             fi
 11119           fi
 11120         fi
 11121       fi
 11123       if test "$gt_cv_func_dgettext_libc" = "yes" \
 11124 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 11125         gt_cv_have_gettext=yes
 11126       fi
 11128       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 11129         INTLLIBS="-lintl $libintl_extra_libs"
 11130       fi
 11132       if test "$gt_cv_have_gettext" = "yes"; then
 11134 cat >>confdefs.h <<\_ACEOF
 11135 #define HAVE_GETTEXT 1
 11136 _ACEOF
 11138 	# Extract the first word of "msgfmt", so it can be a program name with args.
 11139 set dummy msgfmt; ac_word=$2
 11140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11141 $as_echo_n "checking for $ac_word... " >&6; }
 11142 if test "${ac_cv_path_MSGFMT+set}" = set; then
 11143   $as_echo_n "(cached) " >&6
 11144 else
 11145   case "$MSGFMT" in
 11146   /*)
 11147   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 11148   ;;
 11149   *)
 11150   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 11151   for ac_dir in $PATH; do
 11152     test -z "$ac_dir" && ac_dir=.
 11153     if test -f $ac_dir/$ac_word; then
 11154       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 11155 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 11156 	break
 11157       fi
 11158     fi
 11159   done
 11160   IFS="$ac_save_ifs"
 11161   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 11162   ;;
 11163 esac
 11164 fi
 11165 MSGFMT="$ac_cv_path_MSGFMT"
 11166 if test "$MSGFMT" != "no"; then
 11167   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 11168 $as_echo "$MSGFMT" >&6; }
 11169 else
 11170   { $as_echo "$as_me:$LINENO: result: no" >&5
 11171 $as_echo "no" >&6; }
 11172 fi
 11173 	if test "$MSGFMT" != "no"; then
 11174           glib_save_LIBS="$LIBS"
 11175           LIBS="$LIBS $INTLLIBS"
 11177 for ac_func in dcgettext
 11178 do
 11179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 11180 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 11181 $as_echo_n "checking for $ac_func... " >&6; }
 11182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 11183   $as_echo_n "(cached) " >&6
 11184 else
 11185   cat >conftest.$ac_ext <<_ACEOF
 11186 /* confdefs.h.  */
 11187 _ACEOF
 11188 cat confdefs.h >>conftest.$ac_ext
 11189 cat >>conftest.$ac_ext <<_ACEOF
 11190 /* end confdefs.h.  */
 11191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 11192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11193 #define $ac_func innocuous_$ac_func
 11195 /* System header to define __stub macros and hopefully few prototypes,
 11196     which can conflict with char $ac_func (); below.
 11197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11198     <limits.h> exists even on freestanding compilers.  */
 11200 #ifdef __STDC__
 11201 # include <limits.h>
 11202 #else
 11203 # include <assert.h>
 11204 #endif
 11206 #undef $ac_func
 11208 /* Override any GCC internal prototype to avoid an error.
 11209    Use char because int might match the return type of a GCC
 11210    builtin and then its argument prototype would still apply.  */
 11211 #ifdef __cplusplus
 11212 extern "C"
 11213 #endif
 11214 char $ac_func ();
 11215 /* The GNU C library defines this for functions which it implements
 11216     to always fail with ENOSYS.  Some functions are actually named
 11217     something starting with __ and the normal name is an alias.  */
 11218 #if defined __stub_$ac_func || defined __stub___$ac_func
 11219 choke me
 11220 #endif
 11222 int
 11223 main ()
 11225 return $ac_func ();
 11227   return 0;
 11229 _ACEOF
 11230 rm -f conftest.$ac_objext conftest$ac_exeext
 11231 if { (ac_try="$ac_link"
 11232 case "(($ac_try" in
 11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11234   *) ac_try_echo=$ac_try;;
 11235 esac
 11236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11237 $as_echo "$ac_try_echo") >&5
 11238   (eval "$ac_link") 2>conftest.er1
 11239   ac_status=$?
 11240   grep -v '^ *+' conftest.er1 >conftest.err
 11241   rm -f conftest.er1
 11242   cat conftest.err >&5
 11243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11244   (exit $ac_status); } && {
 11245 	 test -z "$ac_c_werror_flag" ||
 11246 	 test ! -s conftest.err
 11247        } && test -s conftest$ac_exeext && {
 11248 	 test "$cross_compiling" = yes ||
 11249 	 $as_test_x conftest$ac_exeext
 11250        }; then
 11251   eval "$as_ac_var=yes"
 11252 else
 11253   $as_echo "$as_me: failed program was:" >&5
 11254 sed 's/^/| /' conftest.$ac_ext >&5
 11256 	eval "$as_ac_var=no"
 11257 fi
 11259 rm -rf conftest.dSYM
 11260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11261       conftest$ac_exeext conftest.$ac_ext
 11262 fi
 11263 ac_res=`eval 'as_val=${'$as_ac_var'}
 11264 		 $as_echo "$as_val"'`
 11265 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11266 $as_echo "$ac_res" >&6; }
 11267 if test `eval 'as_val=${'$as_ac_var'}
 11268 		 $as_echo "$as_val"'` = yes; then
 11269   cat >>confdefs.h <<_ACEOF
 11270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 11271 _ACEOF
 11273 fi
 11274 done
 11276 	  MSGFMT_OPTS=
 11277 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 11278 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 11279 	  cat >conftest.foo <<_ACEOF
 11281 msgid ""
 11282 msgstr ""
 11283 "Content-Type: text/plain; charset=UTF-8\n"
 11284 "Project-Id-Version: test 1.0\n"
 11285 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 11286 "Last-Translator: test <foo@bar.xx>\n"
 11287 "Language-Team: C <LL@li.org>\n"
 11288 "MIME-Version: 1.0\n"
 11289 "Content-Transfer-Encoding: 8bit\n"
 11291 _ACEOF
 11292 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 11293   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 11294   ac_status=$?
 11295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11296   (exit $ac_status); }; then
 11297   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 11298 $as_echo "yes" >&6; }
 11299 else { $as_echo "$as_me:$LINENO: result: no" >&5
 11300 $as_echo "no" >&6; }
 11301 echo "$as_me: failed input was:" >&5
 11302 sed 's/^/| /' conftest.foo >&5
 11303 fi
 11305 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 11306 set dummy gmsgfmt; ac_word=$2
 11307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11308 $as_echo_n "checking for $ac_word... " >&6; }
 11309 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 11310   $as_echo_n "(cached) " >&6
 11311 else
 11312   case $GMSGFMT in
 11313   [\\/]* | ?:[\\/]*)
 11314   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 11315   ;;
 11316   *)
 11317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11318 for as_dir in $PATH
 11319 do
 11320   IFS=$as_save_IFS
 11321   test -z "$as_dir" && as_dir=.
 11322   for ac_exec_ext in '' $ac_executable_extensions; do
 11323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 11324     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 11325     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 11326     break 2
 11327   fi
 11328 done
 11329 done
 11330 IFS=$as_save_IFS
 11332   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 11333   ;;
 11334 esac
 11335 fi
 11336 GMSGFMT=$ac_cv_path_GMSGFMT
 11337 if test -n "$GMSGFMT"; then
 11338   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 11339 $as_echo "$GMSGFMT" >&6; }
 11340 else
 11341   { $as_echo "$as_me:$LINENO: result: no" >&5
 11342 $as_echo "no" >&6; }
 11343 fi
 11346 	  # Extract the first word of "xgettext", so it can be a program name with args.
 11347 set dummy xgettext; ac_word=$2
 11348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 11349 $as_echo_n "checking for $ac_word... " >&6; }
 11350 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 11351   $as_echo_n "(cached) " >&6
 11352 else
 11353   case "$XGETTEXT" in
 11354   /*)
 11355   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 11356   ;;
 11357   *)
 11358   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 11359   for ac_dir in $PATH; do
 11360     test -z "$ac_dir" && ac_dir=.
 11361     if test -f $ac_dir/$ac_word; then
 11362       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 11363 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 11364 	break
 11365       fi
 11366     fi
 11367   done
 11368   IFS="$ac_save_ifs"
 11369   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 11370   ;;
 11371 esac
 11372 fi
 11373 XGETTEXT="$ac_cv_path_XGETTEXT"
 11374 if test "$XGETTEXT" != ":"; then
 11375   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 11376 $as_echo "$XGETTEXT" >&6; }
 11377 else
 11378   { $as_echo "$as_me:$LINENO: result: no" >&5
 11379 $as_echo "no" >&6; }
 11380 fi
 11382 	  cat >conftest.$ac_ext <<_ACEOF
 11383 /* confdefs.h.  */
 11384 _ACEOF
 11385 cat confdefs.h >>conftest.$ac_ext
 11386 cat >>conftest.$ac_ext <<_ACEOF
 11387 /* end confdefs.h.  */
 11389 int
 11390 main ()
 11392 extern int _nl_msg_cat_cntr;
 11393 			 return _nl_msg_cat_cntr
 11395   return 0;
 11397 _ACEOF
 11398 rm -f conftest.$ac_objext conftest$ac_exeext
 11399 if { (ac_try="$ac_link"
 11400 case "(($ac_try" in
 11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11402   *) ac_try_echo=$ac_try;;
 11403 esac
 11404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11405 $as_echo "$ac_try_echo") >&5
 11406   (eval "$ac_link") 2>conftest.er1
 11407   ac_status=$?
 11408   grep -v '^ *+' conftest.er1 >conftest.err
 11409   rm -f conftest.er1
 11410   cat conftest.err >&5
 11411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11412   (exit $ac_status); } && {
 11413 	 test -z "$ac_c_werror_flag" ||
 11414 	 test ! -s conftest.err
 11415        } && test -s conftest$ac_exeext && {
 11416 	 test "$cross_compiling" = yes ||
 11417 	 $as_test_x conftest$ac_exeext
 11418        }; then
 11419   CATOBJEXT=.gmo
 11420              DATADIRNAME=share
 11421 else
 11422   $as_echo "$as_me: failed program was:" >&5
 11423 sed 's/^/| /' conftest.$ac_ext >&5
 11425 	case $host in
 11426 	    *-*-solaris*)
 11427 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 11428 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 11429 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 11430   $as_echo_n "(cached) " >&6
 11431 else
 11432   cat >conftest.$ac_ext <<_ACEOF
 11433 /* confdefs.h.  */
 11434 _ACEOF
 11435 cat confdefs.h >>conftest.$ac_ext
 11436 cat >>conftest.$ac_ext <<_ACEOF
 11437 /* end confdefs.h.  */
 11438 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 11439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11440 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 11442 /* System header to define __stub macros and hopefully few prototypes,
 11443     which can conflict with char bind_textdomain_codeset (); below.
 11444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11445     <limits.h> exists even on freestanding compilers.  */
 11447 #ifdef __STDC__
 11448 # include <limits.h>
 11449 #else
 11450 # include <assert.h>
 11451 #endif
 11453 #undef bind_textdomain_codeset
 11455 /* Override any GCC internal prototype to avoid an error.
 11456    Use char because int might match the return type of a GCC
 11457    builtin and then its argument prototype would still apply.  */
 11458 #ifdef __cplusplus
 11459 extern "C"
 11460 #endif
 11461 char bind_textdomain_codeset ();
 11462 /* The GNU C library defines this for functions which it implements
 11463     to always fail with ENOSYS.  Some functions are actually named
 11464     something starting with __ and the normal name is an alias.  */
 11465 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 11466 choke me
 11467 #endif
 11469 int
 11470 main ()
 11472 return bind_textdomain_codeset ();
 11474   return 0;
 11476 _ACEOF
 11477 rm -f conftest.$ac_objext conftest$ac_exeext
 11478 if { (ac_try="$ac_link"
 11479 case "(($ac_try" in
 11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11481   *) ac_try_echo=$ac_try;;
 11482 esac
 11483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11484 $as_echo "$ac_try_echo") >&5
 11485   (eval "$ac_link") 2>conftest.er1
 11486   ac_status=$?
 11487   grep -v '^ *+' conftest.er1 >conftest.err
 11488   rm -f conftest.er1
 11489   cat conftest.err >&5
 11490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11491   (exit $ac_status); } && {
 11492 	 test -z "$ac_c_werror_flag" ||
 11493 	 test ! -s conftest.err
 11494        } && test -s conftest$ac_exeext && {
 11495 	 test "$cross_compiling" = yes ||
 11496 	 $as_test_x conftest$ac_exeext
 11497        }; then
 11498   ac_cv_func_bind_textdomain_codeset=yes
 11499 else
 11500   $as_echo "$as_me: failed program was:" >&5
 11501 sed 's/^/| /' conftest.$ac_ext >&5
 11503 	ac_cv_func_bind_textdomain_codeset=no
 11504 fi
 11506 rm -rf conftest.dSYM
 11507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11508       conftest$ac_exeext conftest.$ac_ext
 11509 fi
 11510 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 11511 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 11512 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 11513   CATOBJEXT=.gmo
 11514                DATADIRNAME=share
 11515 else
 11516   CATOBJEXT=.mo
 11517                DATADIRNAME=lib
 11518 fi
 11520 	    ;;
 11521 	    *)
 11522 	    CATOBJEXT=.mo
 11523             DATADIRNAME=lib
 11524 	    ;;
 11525 	    esac
 11526 fi
 11528 rm -rf conftest.dSYM
 11529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11530       conftest$ac_exeext conftest.$ac_ext
 11531           LIBS="$glib_save_LIBS"
 11532 	  INSTOBJEXT=.mo
 11533 	else
 11534 	  gt_cv_have_gettext=no
 11535 	fi
 11536       fi
 11538 fi
 11542     if test "$gt_cv_have_gettext" = "yes" ; then
 11544 cat >>confdefs.h <<\_ACEOF
 11545 #define ENABLE_NLS 1
 11546 _ACEOF
 11548     fi
 11550         if test "$XGETTEXT" != ":"; then
 11551                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 11552         : ;
 11553       else
 11554         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 11555 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 11556         XGETTEXT=":"
 11557       fi
 11558     fi
 11560     # We need to process the po/ directory.
 11561     POSUB=po
 11563     ac_config_commands="$ac_config_commands default-1"
 11566                 for lang in $ALL_LINGUAS; do
 11567       GMOFILES="$GMOFILES $lang.gmo"
 11568       POFILES="$POFILES $lang.po"
 11569     done
 11583    if test "$gt_cv_have_gettext" = "yes"; then
 11584      if test "x$ALL_LINGUAS" = "x"; then
 11585        LINGUAS=
 11586      else
 11587        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 11588 $as_echo_n "checking for catalogs to be installed... " >&6; }
 11589        NEW_LINGUAS=
 11590        for presentlang in $ALL_LINGUAS; do
 11591          useit=no
 11592          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 11593            desiredlanguages="$LINGUAS"
 11594          else
 11595            desiredlanguages="$ALL_LINGUAS"
 11596          fi
 11597          for desiredlang in $desiredlanguages; do
 11598  	   # Use the presentlang catalog if desiredlang is
 11599            #   a. equal to presentlang, or
 11600            #   b. a variant of presentlang (because in this case,
 11601            #      presentlang can be used as a fallback for messages
 11602            #      which are not translated in the desiredlang catalog).
 11603            case "$desiredlang" in
 11604              "$presentlang"*) useit=yes;;
 11605            esac
 11606          done
 11607          if test $useit = yes; then
 11608            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 11609          fi
 11610        done
 11611        LINGUAS=$NEW_LINGUAS
 11612        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 11613 $as_echo "$LINGUAS" >&6; }
 11614      fi
 11616           if test -n "$LINGUAS"; then
 11617        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 11618      fi
 11619    fi
 11621             MKINSTALLDIRS=
 11622    if test -n "$ac_aux_dir"; then
 11623      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 11624    fi
 11625    if test -z "$MKINSTALLDIRS"; then
 11626      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 11627    fi
 11630          test -d po || mkdir po
 11631    if test "x$srcdir" != "x."; then
 11632      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 11633        posrcprefix="$srcdir/"
 11634      else
 11635        posrcprefix="../$srcdir/"
 11636      fi
 11637    else
 11638      posrcprefix="../"
 11639    fi
 11640    rm -f po/POTFILES
 11641    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 11642 	< $srcdir/po/POTFILES.in > po/POTFILES
 11645 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
 11647 cat >confcache <<\_ACEOF
 11648 # This file is a shell script that caches the results of configure
 11649 # tests run on this system so they can be shared between configure
 11650 # scripts and configure runs, see configure's option --config-cache.
 11651 # It is not useful on other systems.  If it contains results you don't
 11652 # want to keep, you may remove or edit it.
 11654 # config.status only pays attention to the cache file if you give it
 11655 # the --recheck option to rerun configure.
 11657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 11658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 11659 # following values.
 11661 _ACEOF
 11663 # The following way of writing the cache mishandles newlines in values,
 11664 # but we know of no workaround that is simple, portable, and efficient.
 11665 # So, we kill variables containing newlines.
 11666 # Ultrix sh set writes to stderr and can't be redirected directly,
 11667 # and sets the high bit in the cache file unless we assign to the vars.
 11669   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 11670     eval ac_val=\$$ac_var
 11671     case $ac_val in #(
 11672     *${as_nl}*)
 11673       case $ac_var in #(
 11674       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 11675 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 11676       esac
 11677       case $ac_var in #(
 11678       _ | IFS | as_nl) ;; #(
 11679       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 11680       *) $as_unset $ac_var ;;
 11681       esac ;;
 11682     esac
 11683   done
 11685   (set) 2>&1 |
 11686     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 11687     *${as_nl}ac_space=\ *)
 11688       # `set' does not quote correctly, so add quotes (double-quote
 11689       # substitution turns \\\\ into \\, and sed turns \\ into \).
 11690       sed -n \
 11691 	"s/'/'\\\\''/g;
 11692 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 11693       ;; #(
 11694     *)
 11695       # `set' quotes correctly as required by POSIX, so do not add quotes.
 11696       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 11697       ;;
 11698     esac |
 11699     sort
 11700 ) |
 11701   sed '
 11702      /^ac_cv_env_/b end
 11703      t clear
 11704      :clear
 11705      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 11706      t end
 11707      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 11708      :end' >>confcache
 11709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 11710   if test -w "$cache_file"; then
 11711     test "x$cache_file" != "x/dev/null" &&
 11712       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 11713 $as_echo "$as_me: updating cache $cache_file" >&6;}
 11714     cat confcache >$cache_file
 11715   else
 11716     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 11717 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 11718   fi
 11719 fi
 11720 rm -f confcache
 11722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 11723 # Let make expand exec_prefix.
 11724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 11726 DEFS=-DHAVE_CONFIG_H
 11728 ac_libobjs=
 11729 ac_ltlibobjs=
 11730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 11731   # 1. Remove the extension, and $U if already installed.
 11732   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 11733   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 11734   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 11735   #    will be set to the directory where LIBOBJS objects are built.
 11736   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 11737   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 11738 done
 11739 LIBOBJS=$ac_libobjs
 11741 LTLIBOBJS=$ac_ltlibobjs
 11744 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 11745   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 11746 Usually this means the macro was only invoked conditionally." >&5
 11747 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 11748 Usually this means the macro was only invoked conditionally." >&2;}
 11749    { (exit 1); exit 1; }; }
 11750 fi
 11751 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 11752   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 11753 Usually this means the macro was only invoked conditionally." >&5
 11754 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 11755 Usually this means the macro was only invoked conditionally." >&2;}
 11756    { (exit 1); exit 1; }; }
 11757 fi
 11758 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11759   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11760 Usually this means the macro was only invoked conditionally." >&5
 11761 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11762 Usually this means the macro was only invoked conditionally." >&2;}
 11763    { (exit 1); exit 1; }; }
 11764 fi
 11765 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11766   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11767 Usually this means the macro was only invoked conditionally." >&5
 11768 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11769 Usually this means the macro was only invoked conditionally." >&2;}
 11770    { (exit 1); exit 1; }; }
 11771 fi
 11772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 11773   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 11774 Usually this means the macro was only invoked conditionally." >&5
 11775 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 11776 Usually this means the macro was only invoked conditionally." >&2;}
 11777    { (exit 1); exit 1; }; }
 11778 fi
 11779 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 11780   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 11781 Usually this means the macro was only invoked conditionally." >&5
 11782 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 11783 Usually this means the macro was only invoked conditionally." >&2;}
 11784    { (exit 1); exit 1; }; }
 11785 fi
 11786 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 11787   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 11788 Usually this means the macro was only invoked conditionally." >&5
 11789 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 11790 Usually this means the macro was only invoked conditionally." >&2;}
 11791    { (exit 1); exit 1; }; }
 11792 fi
 11793 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 11794   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 11795 Usually this means the macro was only invoked conditionally." >&5
 11796 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 11797 Usually this means the macro was only invoked conditionally." >&2;}
 11798    { (exit 1); exit 1; }; }
 11799 fi
 11800 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 11801   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 11802 Usually this means the macro was only invoked conditionally." >&5
 11803 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 11804 Usually this means the macro was only invoked conditionally." >&2;}
 11805    { (exit 1); exit 1; }; }
 11806 fi
 11807 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 11808   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 11809 Usually this means the macro was only invoked conditionally." >&5
 11810 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 11811 Usually this means the macro was only invoked conditionally." >&2;}
 11812    { (exit 1); exit 1; }; }
 11813 fi
 11814 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 11815   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 11816 Usually this means the macro was only invoked conditionally." >&5
 11817 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 11818 Usually this means the macro was only invoked conditionally." >&2;}
 11819    { (exit 1); exit 1; }; }
 11820 fi
 11821 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 11822   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 11823 Usually this means the macro was only invoked conditionally." >&5
 11824 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 11825 Usually this means the macro was only invoked conditionally." >&2;}
 11826    { (exit 1); exit 1; }; }
 11827 fi
 11828 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 11829   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 11830 Usually this means the macro was only invoked conditionally." >&5
 11831 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 11832 Usually this means the macro was only invoked conditionally." >&2;}
 11833    { (exit 1); exit 1; }; }
 11834 fi
 11835 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 11836   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 11837 Usually this means the macro was only invoked conditionally." >&5
 11838 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 11839 Usually this means the macro was only invoked conditionally." >&2;}
 11840    { (exit 1); exit 1; }; }
 11841 fi
 11842 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 11843   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 11844 Usually this means the macro was only invoked conditionally." >&5
 11845 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 11846 Usually this means the macro was only invoked conditionally." >&2;}
 11847    { (exit 1); exit 1; }; }
 11848 fi
 11849 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 11850   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 11851 Usually this means the macro was only invoked conditionally." >&5
 11852 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 11853 Usually this means the macro was only invoked conditionally." >&2;}
 11854    { (exit 1); exit 1; }; }
 11855 fi
 11856 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 11857   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 11858 Usually this means the macro was only invoked conditionally." >&5
 11859 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 11860 Usually this means the macro was only invoked conditionally." >&2;}
 11861    { (exit 1); exit 1; }; }
 11862 fi
 11863 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 11864   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 11865 Usually this means the macro was only invoked conditionally." >&5
 11866 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 11867 Usually this means the macro was only invoked conditionally." >&2;}
 11868    { (exit 1); exit 1; }; }
 11869 fi
 11870 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 11871   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 11872 Usually this means the macro was only invoked conditionally." >&5
 11873 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 11874 Usually this means the macro was only invoked conditionally." >&2;}
 11875    { (exit 1); exit 1; }; }
 11876 fi
 11877 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 11878   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 11879 Usually this means the macro was only invoked conditionally." >&5
 11880 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 11881 Usually this means the macro was only invoked conditionally." >&2;}
 11882    { (exit 1); exit 1; }; }
 11883 fi
 11884 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 11885   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 11886 Usually this means the macro was only invoked conditionally." >&5
 11887 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 11888 Usually this means the macro was only invoked conditionally." >&2;}
 11889    { (exit 1); exit 1; }; }
 11890 fi
 11892 : ${CONFIG_STATUS=./config.status}
 11893 ac_write_fail=0
 11894 ac_clean_files_save=$ac_clean_files
 11895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 11896 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 11897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 11898 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 11899 #! $SHELL
 11900 # Generated by $as_me.
 11901 # Run this file to recreate the current configuration.
 11902 # Compiler output produced by configure, useful for debugging
 11903 # configure, is in config.log if it exists.
 11905 debug=false
 11906 ac_cs_recheck=false
 11907 ac_cs_silent=false
 11908 SHELL=\${CONFIG_SHELL-$SHELL}
 11909 _ACEOF
 11911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 11912 ## --------------------- ##
 11913 ## M4sh Initialization.  ##
 11914 ## --------------------- ##
 11916 # Be more Bourne compatible
 11917 DUALCASE=1; export DUALCASE # for MKS sh
 11918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 11919   emulate sh
 11920   NULLCMD=:
 11921   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 11922   # is contrary to our usage.  Disable this feature.
 11923   alias -g '${1+"$@"}'='"$@"'
 11924   setopt NO_GLOB_SUBST
 11925 else
 11926   case `(set -o) 2>/dev/null` in
 11927   *posix*) set -o posix ;;
 11928 esac
 11930 fi
 11935 # PATH needs CR
 11936 # Avoid depending upon Character Ranges.
 11937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 11938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 11939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 11940 as_cr_digits='0123456789'
 11941 as_cr_alnum=$as_cr_Letters$as_cr_digits
 11943 as_nl='
 11945 export as_nl
 11946 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 11947 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 11948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 11949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 11950 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 11951   as_echo='printf %s\n'
 11952   as_echo_n='printf %s'
 11953 else
 11954   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 11955     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 11956     as_echo_n='/usr/ucb/echo -n'
 11957   else
 11958     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 11959     as_echo_n_body='eval
 11960       arg=$1;
 11961       case $arg in
 11962       *"$as_nl"*)
 11963 	expr "X$arg" : "X\\(.*\\)$as_nl";
 11964 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 11965       esac;
 11966       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 11968     export as_echo_n_body
 11969     as_echo_n='sh -c $as_echo_n_body as_echo'
 11970   fi
 11971   export as_echo_body
 11972   as_echo='sh -c $as_echo_body as_echo'
 11973 fi
 11975 # The user is always right.
 11976 if test "${PATH_SEPARATOR+set}" != set; then
 11977   PATH_SEPARATOR=:
 11978   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 11979     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 11980       PATH_SEPARATOR=';'
 11982 fi
 11984 # Support unset when possible.
 11985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 11986   as_unset=unset
 11987 else
 11988   as_unset=false
 11989 fi
 11992 # IFS
 11993 # We need space, tab and new line, in precisely that order.  Quoting is
 11994 # there to prevent editors from complaining about space-tab.
 11995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 11996 # splitting by setting IFS to empty value.)
 11997 IFS=" ""	$as_nl"
 11999 # Find who we are.  Look in the path if we contain no directory separator.
 12000 case $0 in
 12001   *[\\/]* ) as_myself=$0 ;;
 12002   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12003 for as_dir in $PATH
 12004 do
 12005   IFS=$as_save_IFS
 12006   test -z "$as_dir" && as_dir=.
 12007   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 12008 done
 12009 IFS=$as_save_IFS
 12011      ;;
 12012 esac
 12013 # We did not find ourselves, most probably we were run as `sh COMMAND'
 12014 # in which case we are not to be found in the path.
 12015 if test "x$as_myself" = x; then
 12016   as_myself=$0
 12017 fi
 12018 if test ! -f "$as_myself"; then
 12019   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 12020   { (exit 1); exit 1; }
 12021 fi
 12023 # Work around bugs in pre-3.0 UWIN ksh.
 12024 for as_var in ENV MAIL MAILPATH
 12025 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 12026 done
 12027 PS1='$ '
 12028 PS2='> '
 12029 PS4='+ '
 12031 # NLS nuisances.
 12032 LC_ALL=C
 12033 export LC_ALL
 12034 LANGUAGE=C
 12035 export LANGUAGE
 12037 # Required to use basename.
 12038 if expr a : '\(a\)' >/dev/null 2>&1 &&
 12039    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 12040   as_expr=expr
 12041 else
 12042   as_expr=false
 12043 fi
 12045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 12046   as_basename=basename
 12047 else
 12048   as_basename=false
 12049 fi
 12052 # Name of the executable.
 12053 as_me=`$as_basename -- "$0" ||
 12054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 12055 	 X"$0" : 'X\(//\)$' \| \
 12056 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 12057 $as_echo X/"$0" |
 12058     sed '/^.*\/\([^/][^/]*\)\/*$/{
 12059 	    s//\1/
 12062 	  /^X\/\(\/\/\)$/{
 12063 	    s//\1/
 12066 	  /^X\/\(\/\).*/{
 12067 	    s//\1/
 12070 	  s/.*/./; q'`
 12072 # CDPATH.
 12073 $as_unset CDPATH
 12077   as_lineno_1=$LINENO
 12078   as_lineno_2=$LINENO
 12079   test "x$as_lineno_1" != "x$as_lineno_2" &&
 12080   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 12082   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 12083   # uniformly replaced by the line number.  The first 'sed' inserts a
 12084   # line-number line after each line using $LINENO; the second 'sed'
 12085   # does the real work.  The second script uses 'N' to pair each
 12086   # line-number line with the line containing $LINENO, and appends
 12087   # trailing '-' during substitution so that $LINENO is not a special
 12088   # case at line end.
 12089   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 12090   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 12091   # E. McMahon (1931-1989) for sed's syntax.  :-)
 12092   sed -n '
 12094     /[$]LINENO/=
 12095   ' <$as_myself |
 12096     sed '
 12097       s/[$]LINENO.*/&-/
 12098       t lineno
 12100       :lineno
 12102       :loop
 12103       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 12104       t loop
 12105       s/-\n.*//
 12106     ' >$as_me.lineno &&
 12107   chmod +x "$as_me.lineno" ||
 12108     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 12109    { (exit 1); exit 1; }; }
 12111   # Don't try to exec as it changes $[0], causing all sort of problems
 12112   # (the dirname of $[0] is not the place where we might find the
 12113   # original and so on.  Autoconf is especially sensitive to this).
 12114   . "./$as_me.lineno"
 12115   # Exit status is that of the last command.
 12116   exit
 12120 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 12121   as_dirname=dirname
 12122 else
 12123   as_dirname=false
 12124 fi
 12126 ECHO_C= ECHO_N= ECHO_T=
 12127 case `echo -n x` in
 12128 -n*)
 12129   case `echo 'x\c'` in
 12130   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 12131   *)   ECHO_C='\c';;
 12132   esac;;
 12133 *)
 12134   ECHO_N='-n';;
 12135 esac
 12136 if expr a : '\(a\)' >/dev/null 2>&1 &&
 12137    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 12138   as_expr=expr
 12139 else
 12140   as_expr=false
 12141 fi
 12143 rm -f conf$$ conf$$.exe conf$$.file
 12144 if test -d conf$$.dir; then
 12145   rm -f conf$$.dir/conf$$.file
 12146 else
 12147   rm -f conf$$.dir
 12148   mkdir conf$$.dir 2>/dev/null
 12149 fi
 12150 if (echo >conf$$.file) 2>/dev/null; then
 12151   if ln -s conf$$.file conf$$ 2>/dev/null; then
 12152     as_ln_s='ln -s'
 12153     # ... but there are two gotchas:
 12154     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 12155     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 12156     # In both cases, we have to default to `cp -p'.
 12157     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 12158       as_ln_s='cp -p'
 12159   elif ln conf$$.file conf$$ 2>/dev/null; then
 12160     as_ln_s=ln
 12161   else
 12162     as_ln_s='cp -p'
 12163   fi
 12164 else
 12165   as_ln_s='cp -p'
 12166 fi
 12167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 12168 rmdir conf$$.dir 2>/dev/null
 12170 if mkdir -p . 2>/dev/null; then
 12171   as_mkdir_p=:
 12172 else
 12173   test -d ./-p && rmdir ./-p
 12174   as_mkdir_p=false
 12175 fi
 12177 if test -x / >/dev/null 2>&1; then
 12178   as_test_x='test -x'
 12179 else
 12180   if ls -dL / >/dev/null 2>&1; then
 12181     as_ls_L_option=L
 12182   else
 12183     as_ls_L_option=
 12184   fi
 12185   as_test_x='
 12186     eval sh -c '\''
 12187       if test -d "$1"; then
 12188 	test -d "$1/.";
 12189       else
 12190 	case $1 in
 12191 	-*)set "./$1";;
 12192 	esac;
 12193 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 12194 	???[sx]*):;;*)false;;esac;fi
 12195     '\'' sh
 12197 fi
 12198 as_executable_p=$as_test_x
 12200 # Sed expression to map a string onto a valid CPP name.
 12201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 12203 # Sed expression to map a string onto a valid variable name.
 12204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 12207 exec 6>&1
 12209 # Save the log message, to keep $[0] and so on meaningful, and to
 12210 # report actual input values of CONFIG_FILES etc. instead of their
 12211 # values after options handling.
 12212 ac_log="
 12213 This file was extended by $as_me, which was
 12214 generated by GNU Autoconf 2.62.  Invocation command line was
 12216   CONFIG_FILES    = $CONFIG_FILES
 12217   CONFIG_HEADERS  = $CONFIG_HEADERS
 12218   CONFIG_LINKS    = $CONFIG_LINKS
 12219   CONFIG_COMMANDS = $CONFIG_COMMANDS
 12220   $ $0 $@
 12222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 12225 _ACEOF
 12227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12228 # Files that config.status was made for.
 12229 config_files="$ac_config_files"
 12230 config_headers="$ac_config_headers"
 12231 config_commands="$ac_config_commands"
 12233 _ACEOF
 12235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12236 ac_cs_usage="\
 12237 \`$as_me' instantiates files from templates according to the
 12238 current configuration.
 12240 Usage: $0 [OPTIONS] [FILE]...
 12242   -h, --help       print this help, then exit
 12243   -V, --version    print version number and configuration settings, then exit
 12244   -q, --quiet      do not print progress messages
 12245   -d, --debug      don't remove temporary files
 12246       --recheck    update $as_me by reconfiguring in the same conditions
 12247   --file=FILE[:TEMPLATE]
 12248                    instantiate the configuration file FILE
 12249   --header=FILE[:TEMPLATE]
 12250                    instantiate the configuration header FILE
 12252 Configuration files:
 12253 $config_files
 12255 Configuration headers:
 12256 $config_headers
 12258 Configuration commands:
 12259 $config_commands
 12261 Report bugs to <bug-autoconf@gnu.org>."
 12263 _ACEOF
 12264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12265 ac_cs_version="\\
 12266 config.status
 12267 configured by $0, generated by GNU Autoconf 2.62,
 12268   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 12270 Copyright (C) 2008 Free Software Foundation, Inc.
 12271 This config.status script is free software; the Free Software Foundation
 12272 gives unlimited permission to copy, distribute and modify it."
 12274 ac_pwd='$ac_pwd'
 12275 srcdir='$srcdir'
 12276 INSTALL='$INSTALL'
 12277 AWK='$AWK'
 12278 test -n "\$AWK" || AWK=awk
 12279 _ACEOF
 12281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12282 # The default lists apply if the user does not specify any file.
 12283 ac_need_defaults=:
 12284 while test $# != 0
 12285 do
 12286   case $1 in
 12287   --*=*)
 12288     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 12289     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 12290     ac_shift=:
 12291     ;;
 12292   *)
 12293     ac_option=$1
 12294     ac_optarg=$2
 12295     ac_shift=shift
 12296     ;;
 12297   esac
 12299   case $ac_option in
 12300   # Handling of the options.
 12301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 12302     ac_cs_recheck=: ;;
 12303   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 12304     $as_echo "$ac_cs_version"; exit ;;
 12305   --debug | --debu | --deb | --de | --d | -d )
 12306     debug=: ;;
 12307   --file | --fil | --fi | --f )
 12308     $ac_shift
 12309     case $ac_optarg in
 12310     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 12311     esac
 12312     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 12313     ac_need_defaults=false;;
 12314   --header | --heade | --head | --hea )
 12315     $ac_shift
 12316     case $ac_optarg in
 12317     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 12318     esac
 12319     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 12320     ac_need_defaults=false;;
 12321   --he | --h)
 12322     # Conflict between --help and --header
 12323     { $as_echo "$as_me: error: ambiguous option: $1
 12324 Try \`$0 --help' for more information." >&2
 12325    { (exit 1); exit 1; }; };;
 12326   --help | --hel | -h )
 12327     $as_echo "$ac_cs_usage"; exit ;;
 12328   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 12329   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 12330     ac_cs_silent=: ;;
 12332   # This is an error.
 12333   -*) { $as_echo "$as_me: error: unrecognized option: $1
 12334 Try \`$0 --help' for more information." >&2
 12335    { (exit 1); exit 1; }; } ;;
 12337   *) ac_config_targets="$ac_config_targets $1"
 12338      ac_need_defaults=false ;;
 12340   esac
 12341   shift
 12342 done
 12344 ac_configure_extra_args=
 12346 if $ac_cs_silent; then
 12347   exec 6>/dev/null
 12348   ac_configure_extra_args="$ac_configure_extra_args --silent"
 12349 fi
 12351 _ACEOF
 12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12353 if \$ac_cs_recheck; then
 12354   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 12355   shift
 12356   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 12357   CONFIG_SHELL='$SHELL'
 12358   export CONFIG_SHELL
 12359   exec "\$@"
 12360 fi
 12362 _ACEOF
 12363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12364 exec 5>>config.log
 12366   echo
 12367   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 12368 ## Running $as_me. ##
 12369 _ASBOX
 12370   $as_echo "$ac_log"
 12371 } >&5
 12373 _ACEOF
 12374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12376 # INIT-COMMANDS
 12378 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 12381 _ACEOF
 12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12385 # Handling of arguments.
 12386 for ac_config_target in $ac_config_targets
 12387 do
 12388   case $ac_config_target in
 12389     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 12390     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 12391     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 12392     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 12393     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 12394     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 12395     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 12396     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 12398   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 12399 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 12400    { (exit 1); exit 1; }; };;
 12401   esac
 12402 done
 12405 # If the user did not use the arguments to specify the items to instantiate,
 12406 # then the envvar interface is used.  Set only those that are not.
 12407 # We use the long form for the default assignment because of an extremely
 12408 # bizarre bug on SunOS 4.1.3.
 12409 if $ac_need_defaults; then
 12410   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 12411   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 12412   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 12413 fi
 12415 # Have a temporary directory for convenience.  Make it in the build tree
 12416 # simply because there is no reason against having it here, and in addition,
 12417 # creating and moving files from /tmp can sometimes cause problems.
 12418 # Hook for its removal unless debugging.
 12419 # Note that there is a small window in which the directory will not be cleaned:
 12420 # after its creation but before its name has been assigned to `$tmp'.
 12421 $debug ||
 12423   tmp=
 12424   trap 'exit_status=$?
 12425   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 12426 ' 0
 12427   trap '{ (exit 1); exit 1; }' 1 2 13 15
 12429 # Create a (secure) tmp directory for tmp files.
 12432   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 12433   test -n "$tmp" && test -d "$tmp"
 12434 }  ||
 12436   tmp=./conf$$-$RANDOM
 12437   (umask 077 && mkdir "$tmp")
 12438 } ||
 12440    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 12441    { (exit 1); exit 1; }
 12444 # Set up the scripts for CONFIG_FILES section.
 12445 # No need to generate them if there are no CONFIG_FILES.
 12446 # This happens for instance with `./config.status config.h'.
 12447 if test -n "$CONFIG_FILES"; then
 12450 ac_cr='
 12452 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 12453 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 12454   ac_cs_awk_cr='\\r'
 12455 else
 12456   ac_cs_awk_cr=$ac_cr
 12457 fi
 12459 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 12460 _ACEOF
 12464   echo "cat >conf$$subs.awk <<_ACEOF" &&
 12465   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 12466   echo "_ACEOF"
 12467 } >conf$$subs.sh ||
 12468   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12469 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12470    { (exit 1); exit 1; }; }
 12471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 12472 ac_delim='%!_!# '
 12473 for ac_last_try in false false false false false :; do
 12474   . ./conf$$subs.sh ||
 12475     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12476 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12477    { (exit 1); exit 1; }; }
 12479   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 12480     break
 12481   elif $ac_last_try; then
 12482     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 12483 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 12484    { (exit 1); exit 1; }; }
 12485   else
 12486     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12487   fi
 12488 done
 12489 rm -f conf$$subs.sh
 12491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12492 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 12493 _ACEOF
 12494 sed -n '
 12496 s/^/S["/; s/!.*/"]=/
 12499 s/^[^!]*!//
 12500 :repl
 12501 t repl
 12502 s/'"$ac_delim"'$//
 12503 t delim
 12504 :nl
 12506 s/\(.\{148\}\).*/\1/
 12507 t more1
 12508 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 12511 b repl
 12512 :more1
 12513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12516 s/.\{148\}//
 12517 t nl
 12518 :delim
 12520 s/\(.\{148\}\).*/\1/
 12521 t more2
 12522 s/["\\]/\\&/g; s/^/"/; s/$/"/
 12525 :more2
 12526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 12529 s/.\{148\}//
 12530 t delim
 12531 ' <conf$$subs.awk | sed '
 12532 /^[^""]/{
 12534   s/\n//
 12536 ' >>$CONFIG_STATUS || ac_write_fail=1
 12537 rm -f conf$$subs.awk
 12538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12539 _ACAWK
 12540 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 12541   for (key in S) S_is_set[key] = 1
 12542   FS = ""
 12546   line = $ 0
 12547   nfields = split(line, field, "@")
 12548   substed = 0
 12549   len = length(field[1])
 12550   for (i = 2; i < nfields; i++) {
 12551     key = field[i]
 12552     keylen = length(key)
 12553     if (S_is_set[key]) {
 12554       value = S[key]
 12555       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 12556       len += length(value) + length(field[++i])
 12557       substed = 1
 12558     } else
 12559       len += 1 + keylen
 12562   print line
 12565 _ACAWK
 12566 _ACEOF
 12567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12568 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 12569   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 12570 else
 12571   cat
 12572 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 12573   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 12574 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 12575    { (exit 1); exit 1; }; }
 12576 _ACEOF
 12578 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 12579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 12580 # trailing colons and then remove the whole line if VPATH becomes empty
 12581 # (actually we leave an empty line to preserve line numbers).
 12582 if test "x$srcdir" = x.; then
 12583   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 12584 s/:*\$(srcdir):*/:/
 12585 s/:*\${srcdir}:*/:/
 12586 s/:*@srcdir@:*/:/
 12587 s/^\([^=]*=[	 ]*\):*/\1/
 12588 s/:*$//
 12589 s/^[^=]*=[	 ]*$//
 12590 }'
 12591 fi
 12593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12594 fi # test -n "$CONFIG_FILES"
 12596 # Set up the scripts for CONFIG_HEADERS section.
 12597 # No need to generate them if there are no CONFIG_HEADERS.
 12598 # This happens for instance with `./config.status Makefile'.
 12599 if test -n "$CONFIG_HEADERS"; then
 12600 cat >"$tmp/defines.awk" <<\_ACAWK ||
 12601 BEGIN {
 12602 _ACEOF
 12604 # Transform confdefs.h into an awk script `defines.awk', embedded as
 12605 # here-document in config.status, that substitutes the proper values into
 12606 # config.h.in to produce config.h.
 12608 # Create a delimiter string that does not exist in confdefs.h, to ease
 12609 # handling of long lines.
 12610 ac_delim='%!_!# '
 12611 for ac_last_try in false false :; do
 12612   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 12613   if test -z "$ac_t"; then
 12614     break
 12615   elif $ac_last_try; then
 12616     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 12617 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 12618    { (exit 1); exit 1; }; }
 12619   else
 12620     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 12621   fi
 12622 done
 12624 # For the awk script, D is an array of macro values keyed by name,
 12625 # likewise P contains macro parameters if any.  Preserve backslash
 12626 # newline sequences.
 12628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 12629 sed -n '
 12630 s/.\{148\}/&'"$ac_delim"'/g
 12631 t rset
 12632 :rset
 12633 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 12634 t def
 12636 :def
 12637 s/\\$//
 12638 t bsnl
 12639 s/["\\]/\\&/g
 12640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12641 D["\1"]=" \3"/p
 12642 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 12644 :bsnl
 12645 s/["\\]/\\&/g
 12646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 12647 D["\1"]=" \3\\\\\\n"\\/p
 12648 t cont
 12649 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 12650 t cont
 12652 :cont
 12654 s/.\{148\}/&'"$ac_delim"'/g
 12655 t clear
 12656 :clear
 12657 s/\\$//
 12658 t bsnlc
 12659 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 12661 :bsnlc
 12662 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 12663 b cont
 12664 ' <confdefs.h | sed '
 12665 s/'"$ac_delim"'/"\\\
 12666 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 12668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12669   for (key in D) D_is_set[key] = 1
 12670   FS = ""
 12672 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 12673   line = \$ 0
 12674   split(line, arg, " ")
 12675   if (arg[1] == "#") {
 12676     defundef = arg[2]
 12677     mac1 = arg[3]
 12678   } else {
 12679     defundef = substr(arg[1], 2)
 12680     mac1 = arg[2]
 12682   split(mac1, mac2, "(") #)
 12683   macro = mac2[1]
 12684   if (D_is_set[macro]) {
 12685     # Preserve the white space surrounding the "#".
 12686     prefix = substr(line, 1, index(line, defundef) - 1)
 12687     print prefix "define", macro P[macro] D[macro]
 12688     next
 12689   } else {
 12690     # Replace #undef with comments.  This is necessary, for example,
 12691     # in the case of _POSIX_SOURCE, which is predefined and required
 12692     # on some systems where configure will not decide to define it.
 12693     if (defundef == "undef") {
 12694       print "/*", line, "*/"
 12695       next
 12699 { print }
 12700 _ACAWK
 12701 _ACEOF
 12702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12703   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 12704 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 12705    { (exit 1); exit 1; }; }
 12706 fi # test -n "$CONFIG_HEADERS"
 12709 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 12710 shift
 12711 for ac_tag
 12712 do
 12713   case $ac_tag in
 12714   :[FHLC]) ac_mode=$ac_tag; continue;;
 12715   esac
 12716   case $ac_mode$ac_tag in
 12717   :[FHL]*:*);;
 12718   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 12719 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 12720    { (exit 1); exit 1; }; };;
 12721   :[FH]-) ac_tag=-:-;;
 12722   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 12723   esac
 12724   ac_save_IFS=$IFS
 12725   IFS=:
 12726   set x $ac_tag
 12727   IFS=$ac_save_IFS
 12728   shift
 12729   ac_file=$1
 12730   shift
 12732   case $ac_mode in
 12733   :L) ac_source=$1;;
 12734   :[FH])
 12735     ac_file_inputs=
 12736     for ac_f
 12737     do
 12738       case $ac_f in
 12739       -) ac_f="$tmp/stdin";;
 12740       *) # Look for the file first in the build tree, then in the source tree
 12741 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 12742 	 # because $ac_f cannot contain `:'.
 12743 	 test -f "$ac_f" ||
 12744 	   case $ac_f in
 12745 	   [\\/$]*) false;;
 12746 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 12747 	   esac ||
 12748 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 12749 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 12750    { (exit 1); exit 1; }; };;
 12751       esac
 12752       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 12753       ac_file_inputs="$ac_file_inputs '$ac_f'"
 12754     done
 12756     # Let's still pretend it is `configure' which instantiates (i.e., don't
 12757     # use $as_me), people would be surprised to read:
 12758     #    /* config.h.  Generated by config.status.  */
 12759     configure_input='Generated from '`
 12760 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 12761 	`' by configure.'
 12762     if test x"$ac_file" != x-; then
 12763       configure_input="$ac_file.  $configure_input"
 12764       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 12765 $as_echo "$as_me: creating $ac_file" >&6;}
 12766     fi
 12767     # Neutralize special characters interpreted by sed in replacement strings.
 12768     case $configure_input in #(
 12769     *\&* | *\|* | *\\* )
 12770        ac_sed_conf_input=`$as_echo "$configure_input" |
 12771        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 12772     *) ac_sed_conf_input=$configure_input;;
 12773     esac
 12775     case $ac_tag in
 12776     *:-:* | *:-) cat >"$tmp/stdin" \
 12777       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12778 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12779    { (exit 1); exit 1; }; } ;;
 12780     esac
 12781     ;;
 12782   esac
 12784   ac_dir=`$as_dirname -- "$ac_file" ||
 12785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12786 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 12787 	 X"$ac_file" : 'X\(//\)$' \| \
 12788 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 12789 $as_echo X"$ac_file" |
 12790     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12791 	    s//\1/
 12794 	  /^X\(\/\/\)[^/].*/{
 12795 	    s//\1/
 12798 	  /^X\(\/\/\)$/{
 12799 	    s//\1/
 12802 	  /^X\(\/\).*/{
 12803 	    s//\1/
 12806 	  s/.*/./; q'`
 12807   { as_dir="$ac_dir"
 12808   case $as_dir in #(
 12809   -*) as_dir=./$as_dir;;
 12810   esac
 12811   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12812     as_dirs=
 12813     while :; do
 12814       case $as_dir in #(
 12815       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 12816       *) as_qdir=$as_dir;;
 12817       esac
 12818       as_dirs="'$as_qdir' $as_dirs"
 12819       as_dir=`$as_dirname -- "$as_dir" ||
 12820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12821 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12822 	 X"$as_dir" : 'X\(//\)$' \| \
 12823 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12824 $as_echo X"$as_dir" |
 12825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12826 	    s//\1/
 12829 	  /^X\(\/\/\)[^/].*/{
 12830 	    s//\1/
 12833 	  /^X\(\/\/\)$/{
 12834 	    s//\1/
 12837 	  /^X\(\/\).*/{
 12838 	    s//\1/
 12841 	  s/.*/./; q'`
 12842       test -d "$as_dir" && break
 12843     done
 12844     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12845   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12846 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12847    { (exit 1); exit 1; }; }; }
 12848   ac_builddir=.
 12850 case "$ac_dir" in
 12851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12852 *)
 12853   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 12854   # A ".." for each directory in $ac_dir_suffix.
 12855   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 12856   case $ac_top_builddir_sub in
 12857   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 12858   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 12859   esac ;;
 12860 esac
 12861 ac_abs_top_builddir=$ac_pwd
 12862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 12863 # for backward compatibility:
 12864 ac_top_builddir=$ac_top_build_prefix
 12866 case $srcdir in
 12867   .)  # We are building in place.
 12868     ac_srcdir=.
 12869     ac_top_srcdir=$ac_top_builddir_sub
 12870     ac_abs_top_srcdir=$ac_pwd ;;
 12871   [\\/]* | ?:[\\/]* )  # Absolute name.
 12872     ac_srcdir=$srcdir$ac_dir_suffix;
 12873     ac_top_srcdir=$srcdir
 12874     ac_abs_top_srcdir=$srcdir ;;
 12875   *) # Relative name.
 12876     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 12877     ac_top_srcdir=$ac_top_build_prefix$srcdir
 12878     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 12879 esac
 12880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 12883   case $ac_mode in
 12884   :F)
 12886   # CONFIG_FILE
 12889   case $INSTALL in
 12890   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 12891   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 12892   esac
 12893 _ACEOF
 12895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12896 # If the template does not know about datarootdir, expand it.
 12897 # FIXME: This hack should be removed a few years after 2.60.
 12898 ac_datarootdir_hack=; ac_datarootdir_seen=
 12900 ac_sed_dataroot='
 12901 /datarootdir/ {
 12905 /@datadir@/p
 12906 /@docdir@/p
 12907 /@infodir@/p
 12908 /@localedir@/p
 12909 /@mandir@/p
 12911 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 12912 *datarootdir*) ac_datarootdir_seen=yes;;
 12913 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 12914   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 12915 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 12916 _ACEOF
 12917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12918   ac_datarootdir_hack='
 12919   s&@datadir@&$datadir&g
 12920   s&@docdir@&$docdir&g
 12921   s&@infodir@&$infodir&g
 12922   s&@localedir@&$localedir&g
 12923   s&@mandir@&$mandir&g
 12924     s&\\\${datarootdir}&$datarootdir&g' ;;
 12925 esac
 12926 _ACEOF
 12928 # Neutralize VPATH when `$srcdir' = `.'.
 12929 # Shell code in configure.ac might set extrasub.
 12930 # FIXME: do we really want to maintain this feature?
 12931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12932 ac_sed_extra="$ac_vpsub
 12933 $extrasub
 12934 _ACEOF
 12935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12936 :t
 12937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 12938 s|@configure_input@|$ac_sed_conf_input|;t t
 12939 s&@top_builddir@&$ac_top_builddir_sub&;t t
 12940 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 12941 s&@srcdir@&$ac_srcdir&;t t
 12942 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 12943 s&@top_srcdir@&$ac_top_srcdir&;t t
 12944 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 12945 s&@builddir@&$ac_builddir&;t t
 12946 s&@abs_builddir@&$ac_abs_builddir&;t t
 12947 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 12948 s&@INSTALL@&$ac_INSTALL&;t t
 12949 $ac_datarootdir_hack
 12951 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 12952   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12953 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12954    { (exit 1); exit 1; }; }
 12956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 12957   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 12958   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 12959   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12960 which seems to be undefined.  Please make sure it is defined." >&5
 12961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 12962 which seems to be undefined.  Please make sure it is defined." >&2;}
 12964   rm -f "$tmp/stdin"
 12965   case $ac_file in
 12966   -) cat "$tmp/out" && rm -f "$tmp/out";;
 12967   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 12968   esac \
 12969   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12970 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12971    { (exit 1); exit 1; }; }
 12972  ;;
 12973   :H)
 12975   # CONFIG_HEADER
 12977   if test x"$ac_file" != x-; then
 12979       $as_echo "/* $configure_input  */" \
 12980       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 12981     } >"$tmp/config.h" \
 12982       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12983 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12984    { (exit 1); exit 1; }; }
 12985     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 12986       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 12987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 12988     else
 12989       rm -f "$ac_file"
 12990       mv "$tmp/config.h" "$ac_file" \
 12991 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 12992 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 12993    { (exit 1); exit 1; }; }
 12994     fi
 12995   else
 12996     $as_echo "/* $configure_input  */" \
 12997       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 12998       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 12999 $as_echo "$as_me: error: could not create -" >&2;}
 13000    { (exit 1); exit 1; }; }
 13001   fi
 13002 # Compute "$ac_file"'s index in $config_headers.
 13003 _am_stamp_count=1
 13004 for _am_header in $config_headers :; do
 13005   case $_am_header in
 13006     "$ac_file" | "$ac_file":* )
 13007       break ;;
 13008     * )
 13009       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 13010   esac
 13011 done
 13012 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 13013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13014 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 13015 	 X"$ac_file" : 'X\(//\)$' \| \
 13016 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 13017 $as_echo X"$ac_file" |
 13018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13019 	    s//\1/
 13022 	  /^X\(\/\/\)[^/].*/{
 13023 	    s//\1/
 13026 	  /^X\(\/\/\)$/{
 13027 	    s//\1/
 13030 	  /^X\(\/\).*/{
 13031 	    s//\1/
 13034 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 13035  ;;
 13037   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 13038 $as_echo "$as_me: executing $ac_file commands" >&6;}
 13039  ;;
 13040   esac
 13043   case $ac_file$ac_mode in
 13044     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 13045   # Strip MF so we end up with the name of the file.
 13046   mf=`echo "$mf" | sed -e 's/:.*$//'`
 13047   # Check whether this is an Automake generated Makefile or not.
 13048   # We used to match only the files named `Makefile.in', but
 13049   # some people rename them; so instead we look at the file content.
 13050   # Grep'ing the first line is not enough: some people post-process
 13051   # each Makefile.in and add a new line on top of each file to say so.
 13052   # So let's grep whole file.
 13053   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 13054     dirpart=`$as_dirname -- "$mf" ||
 13055 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13056 	 X"$mf" : 'X\(//\)[^/]' \| \
 13057 	 X"$mf" : 'X\(//\)$' \| \
 13058 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 13059 $as_echo X"$mf" |
 13060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13061 	    s//\1/
 13064 	  /^X\(\/\/\)[^/].*/{
 13065 	    s//\1/
 13068 	  /^X\(\/\/\)$/{
 13069 	    s//\1/
 13072 	  /^X\(\/\).*/{
 13073 	    s//\1/
 13076 	  s/.*/./; q'`
 13077   else
 13078     continue
 13079   fi
 13080   # Extract the definition of DEPDIR, am__include, and am__quote
 13081   # from the Makefile without running `make'.
 13082   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 13083   test -z "$DEPDIR" && continue
 13084   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 13085   test -z "am__include" && continue
 13086   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 13087   # When using ansi2knr, U may be empty or an underscore; expand it
 13088   U=`sed -n 's/^U = //p' < "$mf"`
 13089   # Find all dependency output files, they are included files with
 13090   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 13091   # simplest approach to changing $(DEPDIR) to its actual value in the
 13092   # expansion.
 13093   for file in `sed -n "
 13094     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 13095        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 13096     # Make sure the directory exists.
 13097     test -f "$dirpart/$file" && continue
 13098     fdir=`$as_dirname -- "$file" ||
 13099 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13100 	 X"$file" : 'X\(//\)[^/]' \| \
 13101 	 X"$file" : 'X\(//\)$' \| \
 13102 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 13103 $as_echo X"$file" |
 13104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13105 	    s//\1/
 13108 	  /^X\(\/\/\)[^/].*/{
 13109 	    s//\1/
 13112 	  /^X\(\/\/\)$/{
 13113 	    s//\1/
 13116 	  /^X\(\/\).*/{
 13117 	    s//\1/
 13120 	  s/.*/./; q'`
 13121     { as_dir=$dirpart/$fdir
 13122   case $as_dir in #(
 13123   -*) as_dir=./$as_dir;;
 13124   esac
 13125   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 13126     as_dirs=
 13127     while :; do
 13128       case $as_dir in #(
 13129       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 13130       *) as_qdir=$as_dir;;
 13131       esac
 13132       as_dirs="'$as_qdir' $as_dirs"
 13133       as_dir=`$as_dirname -- "$as_dir" ||
 13134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13135 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 13136 	 X"$as_dir" : 'X\(//\)$' \| \
 13137 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 13138 $as_echo X"$as_dir" |
 13139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13140 	    s//\1/
 13143 	  /^X\(\/\/\)[^/].*/{
 13144 	    s//\1/
 13147 	  /^X\(\/\/\)$/{
 13148 	    s//\1/
 13151 	  /^X\(\/\).*/{
 13152 	    s//\1/
 13155 	  s/.*/./; q'`
 13156       test -d "$as_dir" && break
 13157     done
 13158     test -z "$as_dirs" || eval "mkdir $as_dirs"
 13159   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 13160 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 13161    { (exit 1); exit 1; }; }; }
 13162     # echo "creating $dirpart/$file"
 13163     echo '# dummy' > "$dirpart/$file"
 13164   done
 13165 done
 13166  ;;
 13167     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 13168         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 13169       esac ;;
 13171   esac
 13172 done # for ac_tag
 13175 { (exit 0); exit 0; }
 13176 _ACEOF
 13177 chmod +x $CONFIG_STATUS
 13178 ac_clean_files=$ac_clean_files_save
 13180 test $ac_write_fail = 0 ||
 13181   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 13182 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 13183    { (exit 1); exit 1; }; }
 13186 # configure is writing to config.log, and then calls config.status.
 13187 # config.status does its own redirection, appending to config.log.
 13188 # Unfortunately, on DOS this fails, as config.log is still kept open
 13189 # by configure, so config.status won't be able to write to it; its
 13190 # output is simply discarded.  So we exec the FD to /dev/null,
 13191 # effectively closing config.log, so it can be properly (re)opened and
 13192 # appended to by config.status.  When coming back to configure, we
 13193 # need to make the FD available again.
 13194 if test "$no_create" != yes; then
 13195   ac_cs_success=:
 13196   ac_config_status_args=
 13197   test "$silent" = yes &&
 13198     ac_config_status_args="$ac_config_status_args --quiet"
 13199   exec 5>/dev/null
 13200   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 13201   exec 5>>config.log
 13202   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 13203   # would make configure fail if this is the last instruction.
 13204   $ac_cs_success || { (exit 1); exit 1; }
 13205 fi
 13206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 13207   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
 13208 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 13209 fi
 13211 { as_dir=test/sh4
 13212   case $as_dir in #(
 13213   -*) as_dir=./$as_dir;;
 13214   esac
 13215   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 13216     as_dirs=
 13217     while :; do
 13218       case $as_dir in #(
 13219       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 13220       *) as_qdir=$as_dir;;
 13221       esac
 13222       as_dirs="'$as_qdir' $as_dirs"
 13223       as_dir=`$as_dirname -- "$as_dir" ||
 13224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13225 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 13226 	 X"$as_dir" : 'X\(//\)$' \| \
 13227 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 13228 $as_echo X"$as_dir" |
 13229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13230 	    s//\1/
 13233 	  /^X\(\/\/\)[^/].*/{
 13234 	    s//\1/
 13237 	  /^X\(\/\/\)$/{
 13238 	    s//\1/
 13241 	  /^X\(\/\).*/{
 13242 	    s//\1/
 13245 	  s/.*/./; q'`
 13246       test -d "$as_dir" && break
 13247     done
 13248     test -z "$as_dirs" || eval "mkdir $as_dirs"
 13249   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 13250 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 13251    { (exit 1); exit 1; }; }; }
 13254 echo
 13255 echo "Configuration complete"
 13256 echo
 13258 if test "x$HAVE_GTK" = x; then
 13259   if test "x$HAVE_COCOA" = x; then
 13260      echo "  User interface: none"
 13261   else
 13262      echo "  User interface: Cocoa"
 13263   fi
 13264 else
 13265   echo "  User interface: GTK"
 13266 fi
 13268 if test "x$SH4_TRANSLATOR" = "x"; then
 13269   echo "  SH4 translator: None (emulation core only)"
 13270 else
 13271   echo "  SH4 translator: $SH4_TRANSLATOR"
 13272 fi
 13274 if test "x$VIDEO_DRIVERS" = "x"; then
 13275    echo "  Video drivers: none (no supported GL found)"
 13276 else
 13277    echo "  Video drivers: $VIDEO_DRIVERS"
 13278 fi
 13280 if test "x$AUDIO_DRIVERS" = "x"; then
 13281    echo "  Audio drivers: none (no supported output devices found)"
 13282 else
 13283    echo "  Audio drivers: $AUDIO_DRIVERS"
 13284 fi
 13286 if test "x$CDROM_DRIVER" = "x"; then
 13287    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 13288 else
 13289    echo "  CD-ROM driver: $CDROM_DRIVER"
 13290 fi
.