Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 985:52e64faac752
prev984:a01567058a47
next987:3bd03f1ce0a7
author nkeynes
date Tue Feb 24 11:47:41 2009 +0000 (15 years ago)
permissions -rwxr-xr-x
last change Set the source-type flags to -D__EXTENSIONS__ -U__STRICT_ANSI__ - this seems
to work correctly on all the platforms we care about at the moment.
Tweak the gcc-detection slightly (it was getting it wrong on some gcc builds)
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 OBJC
   716 OBJCFLAGS
   717 ac_ct_OBJC
   718 SED
   719 CCAS
   720 CCASFLAGS
   721 CPP
   722 GREP
   723 EGREP
   724 build
   725 build_cpu
   726 build_vendor
   727 build_os
   728 host
   729 host_cpu
   730 host_vendor
   731 host_os
   732 OBJCDEPMODE
   733 am__fastdepOBJC_TRUE
   734 am__fastdepOBJC_FALSE
   735 POD2MAN
   736 POD2HTML
   737 GUI_COCOA_TRUE
   738 GUI_COCOA_FALSE
   739 PKG_CONFIG
   740 LIBPNG_CFLAGS
   741 LIBPNG_LIBS
   742 GLIB_CFLAGS
   743 GLIB_LIBS
   744 GTK_CFLAGS
   745 GTK_LIBS
   746 GUI_GTK_TRUE
   747 GUI_GTK_FALSE
   748 VIDEO_OSMESA_TRUE
   749 VIDEO_OSMESA_FALSE
   750 VIDEO_GLX_TRUE
   751 VIDEO_GLX_FALSE
   752 VIDEO_NSGL_TRUE
   753 VIDEO_NSGL_FALSE
   754 BUILD_SH4X86_TRUE
   755 BUILD_SH4X86_FALSE
   756 AUDIO_OSX_TRUE
   757 AUDIO_OSX_FALSE
   758 PULSE_CFLAGS
   759 PULSE_LIBS
   760 AUDIO_PULSE_TRUE
   761 AUDIO_PULSE_FALSE
   762 ESOUND_CFLAGS
   763 ESOUND_LIBS
   764 AUDIO_ESOUND_TRUE
   765 AUDIO_ESOUND_FALSE
   766 ALSA_CFLAGS
   767 ALSA_LIBS
   768 AUDIO_ALSA_TRUE
   769 AUDIO_ALSA_FALSE
   770 CDROM_LINUX_TRUE
   771 CDROM_LINUX_FALSE
   772 CDROM_OSX_TRUE
   773 CDROM_OSX_FALSE
   774 CDROM_NONE_TRUE
   775 CDROM_NONE_FALSE
   776 JOY_LINUX_TRUE
   777 JOY_LINUX_FALSE
   778 SHCC
   779 SHLD
   780 SHOBJCOPY
   781 ARMCC
   782 ARMLD
   783 ARMOBJCOPY
   784 BUILD_SYSTEST_TRUE
   785 BUILD_SYSTEST_FALSE
   786 BUILD_ARMTEST_TRUE
   787 BUILD_ARMTEST_FALSE
   788 GETTEXT_PACKAGE
   789 USE_NLS
   790 MSGFMT
   791 MSGFMT_OPTS
   792 GMSGFMT
   793 XGETTEXT
   794 CATALOGS
   795 CATOBJEXT
   796 DATADIRNAME
   797 GMOFILES
   798 INSTOBJEXT
   799 INTLLIBS
   800 PO_IN_DATADIR_TRUE
   801 PO_IN_DATADIR_FALSE
   802 POFILES
   803 POSUB
   804 MKINSTALLDIRS
   805 LIBOBJS
   806 LTLIBOBJS'
   807 ac_subst_files=''
   808 ac_user_opts='
   809 enable_option_checking
   810 enable_maintainer_mode
   811 enable_dependency_tracking
   812 enable_strict_warn
   813 enable_translator
   814 enable_optimized
   815 enable_profiled
   816 enable_trace
   817 enable_watch
   818 enable_sh4stats
   819 with_osmesa
   820 with_gtk
   821 with_esd
   822 with_pulse
   823 '
   824       ac_precious_vars='build_alias
   825 host_alias
   826 target_alias
   827 CC
   828 CFLAGS
   829 LDFLAGS
   830 LIBS
   831 CPPFLAGS
   832 OBJC
   833 OBJCFLAGS
   834 CCAS
   835 CCASFLAGS
   836 CPP
   837 PKG_CONFIG
   838 LIBPNG_CFLAGS
   839 LIBPNG_LIBS
   840 GLIB_CFLAGS
   841 GLIB_LIBS
   842 GTK_CFLAGS
   843 GTK_LIBS
   844 PULSE_CFLAGS
   845 PULSE_LIBS
   846 ESOUND_CFLAGS
   847 ESOUND_LIBS
   848 ALSA_CFLAGS
   849 ALSA_LIBS'
   852 # Initialize some variables set by options.
   853 ac_init_help=
   854 ac_init_version=false
   855 ac_unrecognized_opts=
   856 ac_unrecognized_sep=
   857 # The variables have the same names as the options, with
   858 # dashes changed to underlines.
   859 cache_file=/dev/null
   860 exec_prefix=NONE
   861 no_create=
   862 no_recursion=
   863 prefix=NONE
   864 program_prefix=NONE
   865 program_suffix=NONE
   866 program_transform_name=s,x,x,
   867 silent=
   868 site=
   869 srcdir=
   870 verbose=
   871 x_includes=NONE
   872 x_libraries=NONE
   874 # Installation directory options.
   875 # These are left unexpanded so users can "make install exec_prefix=/foo"
   876 # and all the variables that are supposed to be based on exec_prefix
   877 # by default will actually change.
   878 # Use braces instead of parens because sh, perl, etc. also accept them.
   879 # (The list follows the same order as the GNU Coding Standards.)
   880 bindir='${exec_prefix}/bin'
   881 sbindir='${exec_prefix}/sbin'
   882 libexecdir='${exec_prefix}/libexec'
   883 datarootdir='${prefix}/share'
   884 datadir='${datarootdir}'
   885 sysconfdir='${prefix}/etc'
   886 sharedstatedir='${prefix}/com'
   887 localstatedir='${prefix}/var'
   888 includedir='${prefix}/include'
   889 oldincludedir='/usr/include'
   890 docdir='${datarootdir}/doc/${PACKAGE}'
   891 infodir='${datarootdir}/info'
   892 htmldir='${docdir}'
   893 dvidir='${docdir}'
   894 pdfdir='${docdir}'
   895 psdir='${docdir}'
   896 libdir='${exec_prefix}/lib'
   897 localedir='${datarootdir}/locale'
   898 mandir='${datarootdir}/man'
   900 ac_prev=
   901 ac_dashdash=
   902 for ac_option
   903 do
   904   # If the previous option needs an argument, assign it.
   905   if test -n "$ac_prev"; then
   906     eval $ac_prev=\$ac_option
   907     ac_prev=
   908     continue
   909   fi
   911   case $ac_option in
   912   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   913   *)	ac_optarg=yes ;;
   914   esac
   916   # Accept the important Cygnus configure options, so we can diagnose typos.
   918   case $ac_dashdash$ac_option in
   919   --)
   920     ac_dashdash=yes ;;
   922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   923     ac_prev=bindir ;;
   924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   925     bindir=$ac_optarg ;;
   927   -build | --build | --buil | --bui | --bu)
   928     ac_prev=build_alias ;;
   929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   930     build_alias=$ac_optarg ;;
   932   -cache-file | --cache-file | --cache-fil | --cache-fi \
   933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   934     ac_prev=cache_file ;;
   935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   937     cache_file=$ac_optarg ;;
   939   --config-cache | -C)
   940     cache_file=config.cache ;;
   942   -datadir | --datadir | --datadi | --datad)
   943     ac_prev=datadir ;;
   944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   945     datadir=$ac_optarg ;;
   947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   948   | --dataroo | --dataro | --datar)
   949     ac_prev=datarootdir ;;
   950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   952     datarootdir=$ac_optarg ;;
   954   -disable-* | --disable-*)
   955     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   956     # Reject names that are not valid shell variable names.
   957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   958       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   959    { (exit 1); exit 1; }; }
   960     ac_useropt_orig=$ac_useropt
   961     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   962     case $ac_user_opts in
   963       *"
   964 "enable_$ac_useropt"
   965 "*) ;;
   966       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   967 	 ac_unrecognized_sep=', ';;
   968     esac
   969     eval enable_$ac_useropt=no ;;
   971   -docdir | --docdir | --docdi | --doc | --do)
   972     ac_prev=docdir ;;
   973   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   974     docdir=$ac_optarg ;;
   976   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   977     ac_prev=dvidir ;;
   978   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   979     dvidir=$ac_optarg ;;
   981   -enable-* | --enable-*)
   982     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   983     # Reject names that are not valid shell variable names.
   984     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   985       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   986    { (exit 1); exit 1; }; }
   987     ac_useropt_orig=$ac_useropt
   988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   989     case $ac_user_opts in
   990       *"
   991 "enable_$ac_useropt"
   992 "*) ;;
   993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   994 	 ac_unrecognized_sep=', ';;
   995     esac
   996     eval enable_$ac_useropt=\$ac_optarg ;;
   998   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   999   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1000   | --exec | --exe | --ex)
  1001     ac_prev=exec_prefix ;;
  1002   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1003   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1004   | --exec=* | --exe=* | --ex=*)
  1005     exec_prefix=$ac_optarg ;;
  1007   -gas | --gas | --ga | --g)
  1008     # Obsolete; use --with-gas.
  1009     with_gas=yes ;;
  1011   -help | --help | --hel | --he | -h)
  1012     ac_init_help=long ;;
  1013   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1014     ac_init_help=recursive ;;
  1015   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1016     ac_init_help=short ;;
  1018   -host | --host | --hos | --ho)
  1019     ac_prev=host_alias ;;
  1020   -host=* | --host=* | --hos=* | --ho=*)
  1021     host_alias=$ac_optarg ;;
  1023   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1024     ac_prev=htmldir ;;
  1025   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1026   | --ht=*)
  1027     htmldir=$ac_optarg ;;
  1029   -includedir | --includedir | --includedi | --included | --include \
  1030   | --includ | --inclu | --incl | --inc)
  1031     ac_prev=includedir ;;
  1032   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1033   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1034     includedir=$ac_optarg ;;
  1036   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1037     ac_prev=infodir ;;
  1038   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1039     infodir=$ac_optarg ;;
  1041   -libdir | --libdir | --libdi | --libd)
  1042     ac_prev=libdir ;;
  1043   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1044     libdir=$ac_optarg ;;
  1046   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1047   | --libexe | --libex | --libe)
  1048     ac_prev=libexecdir ;;
  1049   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1050   | --libexe=* | --libex=* | --libe=*)
  1051     libexecdir=$ac_optarg ;;
  1053   -localedir | --localedir | --localedi | --localed | --locale)
  1054     ac_prev=localedir ;;
  1055   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1056     localedir=$ac_optarg ;;
  1058   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1059   | --localstate | --localstat | --localsta | --localst | --locals)
  1060     ac_prev=localstatedir ;;
  1061   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1062   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1063     localstatedir=$ac_optarg ;;
  1065   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1066     ac_prev=mandir ;;
  1067   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1068     mandir=$ac_optarg ;;
  1070   -nfp | --nfp | --nf)
  1071     # Obsolete; use --without-fp.
  1072     with_fp=no ;;
  1074   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1075   | --no-cr | --no-c | -n)
  1076     no_create=yes ;;
  1078   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1079   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1080     no_recursion=yes ;;
  1082   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1083   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1084   | --oldin | --oldi | --old | --ol | --o)
  1085     ac_prev=oldincludedir ;;
  1086   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1087   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1088   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1089     oldincludedir=$ac_optarg ;;
  1091   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1092     ac_prev=prefix ;;
  1093   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1094     prefix=$ac_optarg ;;
  1096   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1097   | --program-pre | --program-pr | --program-p)
  1098     ac_prev=program_prefix ;;
  1099   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1100   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1101     program_prefix=$ac_optarg ;;
  1103   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1104   | --program-suf | --program-su | --program-s)
  1105     ac_prev=program_suffix ;;
  1106   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1107   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1108     program_suffix=$ac_optarg ;;
  1110   -program-transform-name | --program-transform-name \
  1111   | --program-transform-nam | --program-transform-na \
  1112   | --program-transform-n | --program-transform- \
  1113   | --program-transform | --program-transfor \
  1114   | --program-transfo | --program-transf \
  1115   | --program-trans | --program-tran \
  1116   | --progr-tra | --program-tr | --program-t)
  1117     ac_prev=program_transform_name ;;
  1118   -program-transform-name=* | --program-transform-name=* \
  1119   | --program-transform-nam=* | --program-transform-na=* \
  1120   | --program-transform-n=* | --program-transform-=* \
  1121   | --program-transform=* | --program-transfor=* \
  1122   | --program-transfo=* | --program-transf=* \
  1123   | --program-trans=* | --program-tran=* \
  1124   | --progr-tra=* | --program-tr=* | --program-t=*)
  1125     program_transform_name=$ac_optarg ;;
  1127   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1128     ac_prev=pdfdir ;;
  1129   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1130     pdfdir=$ac_optarg ;;
  1132   -psdir | --psdir | --psdi | --psd | --ps)
  1133     ac_prev=psdir ;;
  1134   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135     psdir=$ac_optarg ;;
  1137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1138   | -silent | --silent | --silen | --sile | --sil)
  1139     silent=yes ;;
  1141   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1142     ac_prev=sbindir ;;
  1143   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1144   | --sbi=* | --sb=*)
  1145     sbindir=$ac_optarg ;;
  1147   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149   | --sharedst | --shareds | --shared | --share | --shar \
  1150   | --sha | --sh)
  1151     ac_prev=sharedstatedir ;;
  1152   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155   | --sha=* | --sh=*)
  1156     sharedstatedir=$ac_optarg ;;
  1158   -site | --site | --sit)
  1159     ac_prev=site ;;
  1160   -site=* | --site=* | --sit=*)
  1161     site=$ac_optarg ;;
  1163   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1164     ac_prev=srcdir ;;
  1165   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1166     srcdir=$ac_optarg ;;
  1168   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1169   | --syscon | --sysco | --sysc | --sys | --sy)
  1170     ac_prev=sysconfdir ;;
  1171   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1172   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1173     sysconfdir=$ac_optarg ;;
  1175   -target | --target | --targe | --targ | --tar | --ta | --t)
  1176     ac_prev=target_alias ;;
  1177   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1178     target_alias=$ac_optarg ;;
  1180   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1181     verbose=yes ;;
  1183   -version | --version | --versio | --versi | --vers | -V)
  1184     ac_init_version=: ;;
  1186   -with-* | --with-*)
  1187     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1188     # Reject names that are not valid shell variable names.
  1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1190       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1191    { (exit 1); exit 1; }; }
  1192     ac_useropt_orig=$ac_useropt
  1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1194     case $ac_user_opts in
  1195       *"
  1196 "with_$ac_useropt"
  1197 "*) ;;
  1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1199 	 ac_unrecognized_sep=', ';;
  1200     esac
  1201     eval with_$ac_useropt=\$ac_optarg ;;
  1203   -without-* | --without-*)
  1204     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1205     # Reject names that are not valid shell variable names.
  1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1208    { (exit 1); exit 1; }; }
  1209     ac_useropt_orig=$ac_useropt
  1210     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211     case $ac_user_opts in
  1212       *"
  1213 "with_$ac_useropt"
  1214 "*) ;;
  1215       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1216 	 ac_unrecognized_sep=', ';;
  1217     esac
  1218     eval with_$ac_useropt=no ;;
  1220   --x)
  1221     # Obsolete; use --with-x.
  1222     with_x=yes ;;
  1224   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1225   | --x-incl | --x-inc | --x-in | --x-i)
  1226     ac_prev=x_includes ;;
  1227   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1228   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1229     x_includes=$ac_optarg ;;
  1231   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1232   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1233     ac_prev=x_libraries ;;
  1234   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1235   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1236     x_libraries=$ac_optarg ;;
  1238   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1239 Try \`$0 --help' for more information." >&2
  1240    { (exit 1); exit 1; }; }
  1241     ;;
  1243   *=*)
  1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1245     # Reject names that are not valid shell variable names.
  1246     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1247       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1248    { (exit 1); exit 1; }; }
  1249     eval $ac_envvar=\$ac_optarg
  1250     export $ac_envvar ;;
  1252   *)
  1253     # FIXME: should be removed in autoconf 3.0.
  1254     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1255     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1256       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1257     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1258     ;;
  1260   esac
  1261 done
  1263 if test -n "$ac_prev"; then
  1264   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1265   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1266    { (exit 1); exit 1; }; }
  1267 fi
  1269 if test -n "$ac_unrecognized_opts"; then
  1270   case $enable_option_checking in
  1271     no) ;;
  1272     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1273    { (exit 1); exit 1; }; } ;;
  1274     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1275   esac
  1276 fi
  1278 # Check all directory arguments for consistency.
  1279 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1280 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1281 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1282 		libdir localedir mandir
  1283 do
  1284   eval ac_val=\$$ac_var
  1285   # Remove trailing slashes.
  1286   case $ac_val in
  1287     */ )
  1288       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1289       eval $ac_var=\$ac_val;;
  1290   esac
  1291   # Be sure to have absolute directory names.
  1292   case $ac_val in
  1293     [\\/$]* | ?:[\\/]* )  continue;;
  1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1295   esac
  1296   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1297    { (exit 1); exit 1; }; }
  1298 done
  1300 # There might be people who depend on the old broken behavior: `$host'
  1301 # used to hold the argument of --host etc.
  1302 # FIXME: To remove some day.
  1303 build=$build_alias
  1304 host=$host_alias
  1305 target=$target_alias
  1307 # FIXME: To remove some day.
  1308 if test "x$host_alias" != x; then
  1309   if test "x$build_alias" = x; then
  1310     cross_compiling=maybe
  1311     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1312     If a cross compiler is detected then cross compile mode will be used." >&2
  1313   elif test "x$build_alias" != "x$host_alias"; then
  1314     cross_compiling=yes
  1315   fi
  1316 fi
  1318 ac_tool_prefix=
  1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1321 test "$silent" = yes && exec 6>/dev/null
  1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1325 ac_ls_di=`ls -di .` &&
  1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1327   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1328    { (exit 1); exit 1; }; }
  1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1330   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1331    { (exit 1); exit 1; }; }
  1334 # Find the source files, if location was not specified.
  1335 if test -z "$srcdir"; then
  1336   ac_srcdir_defaulted=yes
  1337   # Try the directory containing this script, then the parent directory.
  1338   ac_confdir=`$as_dirname -- "$as_myself" ||
  1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1340 	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1341 	 X"$as_myself" : 'X\(//\)$' \| \
  1342 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1343 $as_echo X"$as_myself" |
  1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1345 	    s//\1/
  1348 	  /^X\(\/\/\)[^/].*/{
  1349 	    s//\1/
  1352 	  /^X\(\/\/\)$/{
  1353 	    s//\1/
  1356 	  /^X\(\/\).*/{
  1357 	    s//\1/
  1360 	  s/.*/./; q'`
  1361   srcdir=$ac_confdir
  1362   if test ! -r "$srcdir/$ac_unique_file"; then
  1363     srcdir=..
  1364   fi
  1365 else
  1366   ac_srcdir_defaulted=no
  1367 fi
  1368 if test ! -r "$srcdir/$ac_unique_file"; then
  1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1370   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1371    { (exit 1); exit 1; }; }
  1372 fi
  1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1374 ac_abs_confdir=`(
  1375 	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1376    { (exit 1); exit 1; }; }
  1377 	pwd)`
  1378 # When building in place, set srcdir=.
  1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1380   srcdir=.
  1381 fi
  1382 # Remove unnecessary trailing slashes from srcdir.
  1383 # Double slashes in file names in object file debugging info
  1384 # mess up M-x gdb in Emacs.
  1385 case $srcdir in
  1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1387 esac
  1388 for ac_var in $ac_precious_vars; do
  1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1390   eval ac_env_${ac_var}_value=\$${ac_var}
  1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1393 done
  1396 # Report the --help message.
  1398 if test "$ac_init_help" = "long"; then
  1399   # Omit some internal or obsolete options to make the list less imposing.
  1400   # This message is too long to be a string in the A/UX 3.1 sh.
  1401   cat <<_ACEOF
  1402 \`configure' configures this package to adapt to many kinds of systems.
  1404 Usage: $0 [OPTION]... [VAR=VALUE]...
  1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1409 Defaults for the options are specified in brackets.
  1411 Configuration:
  1412   -h, --help              display this help and exit
  1413       --help=short        display options specific to this package
  1414       --help=recursive    display the short help of all the included packages
  1415   -V, --version           display version information and exit
  1416   -q, --quiet, --silent   do not print \`checking...' messages
  1417       --cache-file=FILE   cache test results in FILE [disabled]
  1418   -C, --config-cache      alias for \`--cache-file=config.cache'
  1419   -n, --no-create         do not create output files
  1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1422 Installation directories:
  1423   --prefix=PREFIX         install architecture-independent files in PREFIX
  1424                           [$ac_default_prefix]
  1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1426                           [PREFIX]
  1428 By default, \`make install' will install all the files in
  1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1431 for instance \`--prefix=\$HOME'.
  1433 For better control, use the options below.
  1435 Fine tuning of the installation directories:
  1436   --bindir=DIR            user executables [EPREFIX/bin]
  1437   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1438   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1439   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1440   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1441   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1442   --libdir=DIR            object code libraries [EPREFIX/lib]
  1443   --includedir=DIR        C header files [PREFIX/include]
  1444   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1445   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1446   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1447   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1448   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1449   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1450   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1451   --htmldir=DIR           html documentation [DOCDIR]
  1452   --dvidir=DIR            dvi documentation [DOCDIR]
  1453   --pdfdir=DIR            pdf documentation [DOCDIR]
  1454   --psdir=DIR             ps documentation [DOCDIR]
  1455 _ACEOF
  1457   cat <<\_ACEOF
  1459 Program names:
  1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1464 System types:
  1465   --build=BUILD     configure for building on BUILD [guessed]
  1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1467 _ACEOF
  1468 fi
  1470 if test -n "$ac_init_help"; then
  1472   cat <<\_ACEOF
  1474 Optional Features:
  1475   --disable-option-checking  ignore unrecognized --enable/--with options
  1476   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1477   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1478   --enable-maintainer-mode  enable make rules and dependencies not useful
  1479 			  (and sometimes confusing) to the casual installer
  1480   --disable-dependency-tracking  speeds up one-time build
  1481   --enable-dependency-tracking   do not reject slow dependency extractors
  1482   --enable-strict-warn    Enable strict compilation warnings
  1483   --disable-translator    Disable the SH4 translator (Enabled by default)
  1484   --disable-optimized     Disable compile-time optimizations (Enabled by
  1485                           default)
  1486   --enable-profiled       Enable profiling build
  1487   --enable-trace          Enable generation of IO traces (warning: hurts
  1488                           performance)
  1489   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1490                           performance)
  1491   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1493 Optional Packages:
  1494   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1495   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1496   --with-osmesa           Build with the osmesa GL library (software
  1497                           rendering)
  1498   --with-gtk              Build with the GTK UI. Default on X11 systems
  1499   --with-esd              Build with support for the ESounD audio system
  1500   --with-pulse            Build with support for the PulseAudio audio system
  1502 Some influential environment variables:
  1503   CC          C compiler command
  1504   CFLAGS      C compiler flags
  1505   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1506               nonstandard directory <lib dir>
  1507   LIBS        libraries to pass to the linker, e.g. -l<library>
  1508   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1509               you have headers in a nonstandard directory <include dir>
  1510   OBJC        Objective C compiler command
  1511   OBJCFLAGS   Objective C compiler flags
  1512   CCAS        assembler compiler command (defaults to CC)
  1513   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1514   CPP         C preprocessor
  1515   PKG_CONFIG  path to pkg-config utility
  1516   LIBPNG_CFLAGS
  1517               C compiler flags for LIBPNG, overriding pkg-config
  1518   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1519   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1520   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  1521   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1522   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1523   PULSE_CFLAGS
  1524               C compiler flags for PULSE, overriding pkg-config
  1525   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1526   ESOUND_CFLAGS
  1527               C compiler flags for ESOUND, overriding pkg-config
  1528   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1529   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1530   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1532 Use these variables to override the choices made by `configure' or to help
  1533 it to find libraries and programs with nonstandard names/locations.
  1535 _ACEOF
  1536 ac_status=$?
  1537 fi
  1539 if test "$ac_init_help" = "recursive"; then
  1540   # If there are subdirs, report their specific --help.
  1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1542     test -d "$ac_dir" ||
  1543       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1544       continue
  1545     ac_builddir=.
  1547 case "$ac_dir" in
  1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1549 *)
  1550   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1551   # A ".." for each directory in $ac_dir_suffix.
  1552   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1553   case $ac_top_builddir_sub in
  1554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1556   esac ;;
  1557 esac
  1558 ac_abs_top_builddir=$ac_pwd
  1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1560 # for backward compatibility:
  1561 ac_top_builddir=$ac_top_build_prefix
  1563 case $srcdir in
  1564   .)  # We are building in place.
  1565     ac_srcdir=.
  1566     ac_top_srcdir=$ac_top_builddir_sub
  1567     ac_abs_top_srcdir=$ac_pwd ;;
  1568   [\\/]* | ?:[\\/]* )  # Absolute name.
  1569     ac_srcdir=$srcdir$ac_dir_suffix;
  1570     ac_top_srcdir=$srcdir
  1571     ac_abs_top_srcdir=$srcdir ;;
  1572   *) # Relative name.
  1573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1574     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1576 esac
  1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1579     cd "$ac_dir" || { ac_status=$?; continue; }
  1580     # Check for guested configure.
  1581     if test -f "$ac_srcdir/configure.gnu"; then
  1582       echo &&
  1583       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1584     elif test -f "$ac_srcdir/configure"; then
  1585       echo &&
  1586       $SHELL "$ac_srcdir/configure" --help=recursive
  1587     else
  1588       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1589     fi || ac_status=$?
  1590     cd "$ac_pwd" || { ac_status=$?; break; }
  1591   done
  1592 fi
  1594 test -n "$ac_init_help" && exit $ac_status
  1595 if $ac_init_version; then
  1596   cat <<\_ACEOF
  1597 configure
  1598 generated by GNU Autoconf 2.62
  1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1601 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1602 This configure script is free software; the Free Software Foundation
  1603 gives unlimited permission to copy, distribute and modify it.
  1604 _ACEOF
  1605   exit
  1606 fi
  1607 cat >config.log <<_ACEOF
  1608 This file contains any messages produced by compilers while
  1609 running configure, to aid debugging if configure makes a mistake.
  1611 It was created by $as_me, which was
  1612 generated by GNU Autoconf 2.62.  Invocation command line was
  1614   $ $0 $@
  1616 _ACEOF
  1617 exec 5>>config.log
  1619 cat <<_ASUNAME
  1620 ## --------- ##
  1621 ## Platform. ##
  1622 ## --------- ##
  1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1631 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1633 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1634 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1636 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1637 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1638 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1639 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1641 _ASUNAME
  1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1644 for as_dir in $PATH
  1645 do
  1646   IFS=$as_save_IFS
  1647   test -z "$as_dir" && as_dir=.
  1648   $as_echo "PATH: $as_dir"
  1649 done
  1650 IFS=$as_save_IFS
  1652 } >&5
  1654 cat >&5 <<_ACEOF
  1657 ## ----------- ##
  1658 ## Core tests. ##
  1659 ## ----------- ##
  1661 _ACEOF
  1664 # Keep a trace of the command line.
  1665 # Strip out --no-create and --no-recursion so they do not pile up.
  1666 # Strip out --silent because we don't want to record it for future runs.
  1667 # Also quote any args containing shell meta-characters.
  1668 # Make two passes to allow for proper duplicate-argument suppression.
  1669 ac_configure_args=
  1670 ac_configure_args0=
  1671 ac_configure_args1=
  1672 ac_must_keep_next=false
  1673 for ac_pass in 1 2
  1674 do
  1675   for ac_arg
  1676   do
  1677     case $ac_arg in
  1678     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1679     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1680     | -silent | --silent | --silen | --sile | --sil)
  1681       continue ;;
  1682     *\'*)
  1683       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1684     esac
  1685     case $ac_pass in
  1686     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1687     2)
  1688       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1689       if test $ac_must_keep_next = true; then
  1690 	ac_must_keep_next=false # Got value, back to normal.
  1691       else
  1692 	case $ac_arg in
  1693 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1694 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1695 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1696 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1697 	    case "$ac_configure_args0 " in
  1698 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1699 	    esac
  1700 	    ;;
  1701 	  -* ) ac_must_keep_next=true ;;
  1702 	esac
  1703       fi
  1704       ac_configure_args="$ac_configure_args '$ac_arg'"
  1705       ;;
  1706     esac
  1707   done
  1708 done
  1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1712 # When interrupted or exit'd, cleanup temporary files, and complete
  1713 # config.log.  We remove comments because anyway the quotes in there
  1714 # would cause problems or look ugly.
  1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1717 trap 'exit_status=$?
  1718   # Save into config.log some information that might help in debugging.
  1720     echo
  1722     cat <<\_ASBOX
  1723 ## ---------------- ##
  1724 ## Cache variables. ##
  1725 ## ---------------- ##
  1726 _ASBOX
  1727     echo
  1728     # The following way of writing the cache mishandles newlines in values,
  1730   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1731     eval ac_val=\$$ac_var
  1732     case $ac_val in #(
  1733     *${as_nl}*)
  1734       case $ac_var in #(
  1735       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1736 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1737       esac
  1738       case $ac_var in #(
  1739       _ | IFS | as_nl) ;; #(
  1740       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1741       *) $as_unset $ac_var ;;
  1742       esac ;;
  1743     esac
  1744   done
  1745   (set) 2>&1 |
  1746     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1747     *${as_nl}ac_space=\ *)
  1748       sed -n \
  1749 	"s/'\''/'\''\\\\'\'''\''/g;
  1750 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1751       ;; #(
  1752     *)
  1753       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1754       ;;
  1755     esac |
  1756     sort
  1758     echo
  1760     cat <<\_ASBOX
  1761 ## ----------------- ##
  1762 ## Output variables. ##
  1763 ## ----------------- ##
  1764 _ASBOX
  1765     echo
  1766     for ac_var in $ac_subst_vars
  1767     do
  1768       eval ac_val=\$$ac_var
  1769       case $ac_val in
  1770       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1771       esac
  1772       $as_echo "$ac_var='\''$ac_val'\''"
  1773     done | sort
  1774     echo
  1776     if test -n "$ac_subst_files"; then
  1777       cat <<\_ASBOX
  1778 ## ------------------- ##
  1779 ## File substitutions. ##
  1780 ## ------------------- ##
  1781 _ASBOX
  1782       echo
  1783       for ac_var in $ac_subst_files
  1784       do
  1785 	eval ac_val=\$$ac_var
  1786 	case $ac_val in
  1787 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1788 	esac
  1789 	$as_echo "$ac_var='\''$ac_val'\''"
  1790       done | sort
  1791       echo
  1792     fi
  1794     if test -s confdefs.h; then
  1795       cat <<\_ASBOX
  1796 ## ----------- ##
  1797 ## confdefs.h. ##
  1798 ## ----------- ##
  1799 _ASBOX
  1800       echo
  1801       cat confdefs.h
  1802       echo
  1803     fi
  1804     test "$ac_signal" != 0 &&
  1805       $as_echo "$as_me: caught signal $ac_signal"
  1806     $as_echo "$as_me: exit $exit_status"
  1807   } >&5
  1808   rm -f core *.core core.conftest.* &&
  1809     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1810     exit $exit_status
  1811 ' 0
  1812 for ac_signal in 1 2 13 15; do
  1813   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1814 done
  1815 ac_signal=0
  1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1818 rm -f -r conftest* confdefs.h
  1820 # Predefined preprocessor variables.
  1822 cat >>confdefs.h <<_ACEOF
  1823 #define PACKAGE_NAME "$PACKAGE_NAME"
  1824 _ACEOF
  1827 cat >>confdefs.h <<_ACEOF
  1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1829 _ACEOF
  1832 cat >>confdefs.h <<_ACEOF
  1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1834 _ACEOF
  1837 cat >>confdefs.h <<_ACEOF
  1838 #define PACKAGE_STRING "$PACKAGE_STRING"
  1839 _ACEOF
  1842 cat >>confdefs.h <<_ACEOF
  1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1844 _ACEOF
  1847 # Let the site file select an alternate cache file if it wants to.
  1848 # Prefer an explicitly selected file to automatically selected ones.
  1849 ac_site_file1=NONE
  1850 ac_site_file2=NONE
  1851 if test -n "$CONFIG_SITE"; then
  1852   ac_site_file1=$CONFIG_SITE
  1853 elif test "x$prefix" != xNONE; then
  1854   ac_site_file1=$prefix/share/config.site
  1855   ac_site_file2=$prefix/etc/config.site
  1856 else
  1857   ac_site_file1=$ac_default_prefix/share/config.site
  1858   ac_site_file2=$ac_default_prefix/etc/config.site
  1859 fi
  1860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1861 do
  1862   test "x$ac_site_file" = xNONE && continue
  1863   if test -r "$ac_site_file"; then
  1864     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1866     sed 's/^/| /' "$ac_site_file" >&5
  1867     . "$ac_site_file"
  1868   fi
  1869 done
  1871 if test -r "$cache_file"; then
  1872   # Some versions of bash will fail to source /dev/null (special
  1873   # files actually), so we avoid doing that.
  1874   if test -f "$cache_file"; then
  1875     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1876 $as_echo "$as_me: loading cache $cache_file" >&6;}
  1877     case $cache_file in
  1878       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1879       *)                      . "./$cache_file";;
  1880     esac
  1881   fi
  1882 else
  1883   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1884 $as_echo "$as_me: creating cache $cache_file" >&6;}
  1885   >$cache_file
  1886 fi
  1888 # Check that the precious variables saved in the cache have kept the same
  1889 # value.
  1890 ac_cache_corrupted=false
  1891 for ac_var in $ac_precious_vars; do
  1892   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1893   eval ac_new_set=\$ac_env_${ac_var}_set
  1894   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1895   eval ac_new_val=\$ac_env_${ac_var}_value
  1896   case $ac_old_set,$ac_new_set in
  1897     set,)
  1898       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1900       ac_cache_corrupted=: ;;
  1901     ,set)
  1902       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1904       ac_cache_corrupted=: ;;
  1905     ,);;
  1906     *)
  1907       if test "x$ac_old_val" != "x$ac_new_val"; then
  1908 	# differences in whitespace do not lead to failure.
  1909 	ac_old_val_w=`echo x $ac_old_val`
  1910 	ac_new_val_w=`echo x $ac_new_val`
  1911 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1912 	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1914 	  ac_cache_corrupted=:
  1915 	else
  1916 	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1918 	  eval $ac_var=\$ac_old_val
  1919 	fi
  1920 	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
  1921 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1922 	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
  1923 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1924       fi;;
  1925   esac
  1926   # Pass precious variables to config.status.
  1927   if test "$ac_new_set" = set; then
  1928     case $ac_new_val in
  1929     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1930     *) ac_arg=$ac_var=$ac_new_val ;;
  1931     esac
  1932     case " $ac_configure_args " in
  1933       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1934       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1935     esac
  1936   fi
  1937 done
  1938 if $ac_cache_corrupted; then
  1939   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1940 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1941   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1942 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1943    { (exit 1); exit 1; }; }
  1944 fi
  1962 ac_ext=c
  1963 ac_cpp='$CPP $CPPFLAGS'
  1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1969 am__api_version="1.9"
  1970 ac_aux_dir=
  1971 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1972   if test -f "$ac_dir/install-sh"; then
  1973     ac_aux_dir=$ac_dir
  1974     ac_install_sh="$ac_aux_dir/install-sh -c"
  1975     break
  1976   elif test -f "$ac_dir/install.sh"; then
  1977     ac_aux_dir=$ac_dir
  1978     ac_install_sh="$ac_aux_dir/install.sh -c"
  1979     break
  1980   elif test -f "$ac_dir/shtool"; then
  1981     ac_aux_dir=$ac_dir
  1982     ac_install_sh="$ac_aux_dir/shtool install -c"
  1983     break
  1984   fi
  1985 done
  1986 if test -z "$ac_aux_dir"; then
  1987   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1988 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1989    { (exit 1); exit 1; }; }
  1990 fi
  1992 # These three variables are undocumented and unsupported,
  1993 # and are intended to be withdrawn in a future Autoconf release.
  1994 # They can cause serious problems if a builder's source tree is in a directory
  1995 # whose full name contains unusual characters.
  1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1998 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2001 # Find a good install program.  We prefer a C program (faster),
  2002 # so one script is as good as another.  But avoid the broken or
  2003 # incompatible versions:
  2004 # SysV /etc/install, /usr/sbin/install
  2005 # SunOS /usr/etc/install
  2006 # IRIX /sbin/install
  2007 # AIX /bin/install
  2008 # AmigaOS /C/install, which installs bootblocks on floppy discs
  2009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2012 # OS/2's system install, which has a completely different semantic
  2013 # ./install, which can be erroneously created by make from ./install.sh.
  2014 # Reject install programs that cannot install multiple files.
  2015 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2016 $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2017 if test -z "$INSTALL"; then
  2018 if test "${ac_cv_path_install+set}" = set; then
  2019   $as_echo_n "(cached) " >&6
  2020 else
  2021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2022 for as_dir in $PATH
  2023 do
  2024   IFS=$as_save_IFS
  2025   test -z "$as_dir" && as_dir=.
  2026   # Account for people who put trailing slashes in PATH elements.
  2027 case $as_dir/ in
  2028   ./ | .// | /cC/* | \
  2029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2030   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2031   /usr/ucb/* ) ;;
  2032   *)
  2033     # OSF1 and SCO ODT 3.0 have their own names for install.
  2034     # Don't use installbsd from OSF since it installs stuff as root
  2035     # by default.
  2036     for ac_prog in ginstall scoinst install; do
  2037       for ac_exec_ext in '' $ac_executable_extensions; do
  2038 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2039 	  if test $ac_prog = install &&
  2040 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2041 	    # AIX install.  It has an incompatible calling convention.
  2043 	  elif test $ac_prog = install &&
  2044 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2045 	    # program-specific install script used by HP pwplus--don't use.
  2047 	  else
  2048 	    rm -rf conftest.one conftest.two conftest.dir
  2049 	    echo one > conftest.one
  2050 	    echo two > conftest.two
  2051 	    mkdir conftest.dir
  2052 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2053 	      test -s conftest.one && test -s conftest.two &&
  2054 	      test -s conftest.dir/conftest.one &&
  2055 	      test -s conftest.dir/conftest.two
  2056 	    then
  2057 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2058 	      break 3
  2059 	    fi
  2060 	  fi
  2061 	fi
  2062       done
  2063     done
  2064     ;;
  2065 esac
  2067 done
  2068 IFS=$as_save_IFS
  2070 rm -rf conftest.one conftest.two conftest.dir
  2072 fi
  2073   if test "${ac_cv_path_install+set}" = set; then
  2074     INSTALL=$ac_cv_path_install
  2075   else
  2076     # As a last resort, use the slow shell script.  Don't cache a
  2077     # value for INSTALL within a source directory, because that will
  2078     # break other packages using the cache if that directory is
  2079     # removed, or if the value is a relative name.
  2080     INSTALL=$ac_install_sh
  2081   fi
  2082 fi
  2083 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2084 $as_echo "$INSTALL" >&6; }
  2086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2087 # It thinks the first close brace ends the variable substitution.
  2088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2094 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2095 $as_echo_n "checking whether build environment is sane... " >&6; }
  2096 # Just in case
  2097 sleep 1
  2098 echo timestamp > conftest.file
  2099 # Do `set' in a subshell so we don't clobber the current shell's
  2100 # arguments.  Must try -L first in case configure is actually a
  2101 # symlink; some systems play weird games with the mod time of symlinks
  2102 # (eg FreeBSD returns the mod time of the symlink's containing
  2103 # directory).
  2104 if (
  2105    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2106    if test "$*" = "X"; then
  2107       # -L didn't work.
  2108       set X `ls -t $srcdir/configure conftest.file`
  2109    fi
  2110    rm -f conftest.file
  2111    if test "$*" != "X $srcdir/configure conftest.file" \
  2112       && test "$*" != "X conftest.file $srcdir/configure"; then
  2114       # If neither matched, then we have a broken ls.  This can happen
  2115       # if, for instance, CONFIG_SHELL is bash and it inherits a
  2116       # broken ls alias from the environment.  This has actually
  2117       # happened.  Such a system could not be considered "sane".
  2118       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  2119 alias in your environment" >&5
  2120 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  2121 alias in your environment" >&2;}
  2122    { (exit 1); exit 1; }; }
  2123    fi
  2125    test "$2" = conftest.file
  2127 then
  2128    # Ok.
  2130 else
  2131    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2132 Check your system clock" >&5
  2133 $as_echo "$as_me: error: newly created file is older than distributed files!
  2134 Check your system clock" >&2;}
  2135    { (exit 1); exit 1; }; }
  2136 fi
  2137 { $as_echo "$as_me:$LINENO: result: yes" >&5
  2138 $as_echo "yes" >&6; }
  2139 test "$program_prefix" != NONE &&
  2140   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2141 # Use a double $ so make ignores it.
  2142 test "$program_suffix" != NONE &&
  2143   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2144 # Double any \ or $.
  2145 # By default was `s,x,x', remove it if useless.
  2146 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2147 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2149 # expand $ac_aux_dir to an absolute path
  2150 am_aux_dir=`cd $ac_aux_dir && pwd`
  2152 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2153 # Use eval to expand $SHELL
  2154 if eval "$MISSING --run true"; then
  2155   am_missing_run="$MISSING --run "
  2156 else
  2157   am_missing_run=
  2158   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2159 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2160 fi
  2162 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2163   # We used to keeping the `.' as first argument, in order to
  2164   # allow $(mkdir_p) to be used without argument.  As in
  2165   #   $(mkdir_p) $(somedir)
  2166   # where $(somedir) is conditionally defined.  However this is wrong
  2167   # for two reasons:
  2168   #  1. if the package is installed by a user who cannot write `.'
  2169   #     make install will fail,
  2170   #  2. the above comment should most certainly read
  2171   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2172   #     so it does not work when $(somedir) is undefined and
  2173   #     $(DESTDIR) is not.
  2174   #  To support the latter case, we have to write
  2175   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2176   #  so the `.' trick is pointless.
  2177   mkdir_p='mkdir -p --'
  2178 else
  2179   # On NextStep and OpenStep, the `mkdir' command does not
  2180   # recognize any option.  It will interpret all options as
  2181   # directories to create, and then abort because `.' already
  2182   # exists.
  2183   for d in ./-p ./--version;
  2184   do
  2185     test -d $d && rmdir $d
  2186   done
  2187   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2188   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2189     mkdir_p='$(mkinstalldirs)'
  2190   else
  2191     mkdir_p='$(install_sh) -d'
  2192   fi
  2193 fi
  2195 for ac_prog in gawk mawk nawk awk
  2196 do
  2197   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2198 set dummy $ac_prog; ac_word=$2
  2199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2200 $as_echo_n "checking for $ac_word... " >&6; }
  2201 if test "${ac_cv_prog_AWK+set}" = set; then
  2202   $as_echo_n "(cached) " >&6
  2203 else
  2204   if test -n "$AWK"; then
  2205   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2206 else
  2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208 for as_dir in $PATH
  2209 do
  2210   IFS=$as_save_IFS
  2211   test -z "$as_dir" && as_dir=.
  2212   for ac_exec_ext in '' $ac_executable_extensions; do
  2213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2214     ac_cv_prog_AWK="$ac_prog"
  2215     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2216     break 2
  2217   fi
  2218 done
  2219 done
  2220 IFS=$as_save_IFS
  2222 fi
  2223 fi
  2224 AWK=$ac_cv_prog_AWK
  2225 if test -n "$AWK"; then
  2226   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2227 $as_echo "$AWK" >&6; }
  2228 else
  2229   { $as_echo "$as_me:$LINENO: result: no" >&5
  2230 $as_echo "no" >&6; }
  2231 fi
  2234   test -n "$AWK" && break
  2235 done
  2237 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2238 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2239 set x ${MAKE-make}
  2240 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2242   $as_echo_n "(cached) " >&6
  2243 else
  2244   cat >conftest.make <<\_ACEOF
  2245 SHELL = /bin/sh
  2246 all:
  2247 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2248 _ACEOF
  2249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2251   *@@@%%%=?*=@@@%%%*)
  2252     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2253   *)
  2254     eval ac_cv_prog_make_${ac_make}_set=no;;
  2255 esac
  2256 rm -f conftest.make
  2257 fi
  2258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2259   { $as_echo "$as_me:$LINENO: result: yes" >&5
  2260 $as_echo "yes" >&6; }
  2261   SET_MAKE=
  2262 else
  2263   { $as_echo "$as_me:$LINENO: result: no" >&5
  2264 $as_echo "no" >&6; }
  2265   SET_MAKE="MAKE=${MAKE-make}"
  2266 fi
  2268 rm -rf .tst 2>/dev/null
  2269 mkdir .tst 2>/dev/null
  2270 if test -d .tst; then
  2271   am__leading_dot=.
  2272 else
  2273   am__leading_dot=_
  2274 fi
  2275 rmdir .tst 2>/dev/null
  2277 # test to see if srcdir already configured
  2278 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2279    test -f $srcdir/config.status; then
  2280   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2281 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2282    { (exit 1); exit 1; }; }
  2283 fi
  2285 # test whether we have cygpath
  2286 if test -z "$CYGPATH_W"; then
  2287   if (cygpath --version) >/dev/null 2>/dev/null; then
  2288     CYGPATH_W='cygpath -w'
  2289   else
  2290     CYGPATH_W=echo
  2291   fi
  2292 fi
  2295 # Define the identity of the package.
  2296  PACKAGE=lxdream
  2297  VERSION=0.9
  2300 cat >>confdefs.h <<_ACEOF
  2301 #define PACKAGE "$PACKAGE"
  2302 _ACEOF
  2305 cat >>confdefs.h <<_ACEOF
  2306 #define VERSION "$VERSION"
  2307 _ACEOF
  2309 # Some tools Automake needs.
  2311 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2314 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2317 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2320 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2323 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2325 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2327 # Installed binaries are usually stripped using `strip' when the user
  2328 # run `make install-strip'.  However `strip' might not be the right
  2329 # tool to use in cross-compilation environments, therefore Automake
  2330 # will honor the `STRIP' environment variable to overrule this program.
  2331 if test "$cross_compiling" != no; then
  2332   if test -n "$ac_tool_prefix"; then
  2333   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2334 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336 $as_echo_n "checking for $ac_word... " >&6; }
  2337 if test "${ac_cv_prog_STRIP+set}" = set; then
  2338   $as_echo_n "(cached) " >&6
  2339 else
  2340   if test -n "$STRIP"; then
  2341   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2342 else
  2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344 for as_dir in $PATH
  2345 do
  2346   IFS=$as_save_IFS
  2347   test -z "$as_dir" && as_dir=.
  2348   for ac_exec_ext in '' $ac_executable_extensions; do
  2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2351     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352     break 2
  2353   fi
  2354 done
  2355 done
  2356 IFS=$as_save_IFS
  2358 fi
  2359 fi
  2360 STRIP=$ac_cv_prog_STRIP
  2361 if test -n "$STRIP"; then
  2362   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2363 $as_echo "$STRIP" >&6; }
  2364 else
  2365   { $as_echo "$as_me:$LINENO: result: no" >&5
  2366 $as_echo "no" >&6; }
  2367 fi
  2370 fi
  2371 if test -z "$ac_cv_prog_STRIP"; then
  2372   ac_ct_STRIP=$STRIP
  2373   # Extract the first word of "strip", so it can be a program name with args.
  2374 set dummy strip; ac_word=$2
  2375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2376 $as_echo_n "checking for $ac_word... " >&6; }
  2377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2378   $as_echo_n "(cached) " >&6
  2379 else
  2380   if test -n "$ac_ct_STRIP"; then
  2381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2382 else
  2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384 for as_dir in $PATH
  2385 do
  2386   IFS=$as_save_IFS
  2387   test -z "$as_dir" && as_dir=.
  2388   for ac_exec_ext in '' $ac_executable_extensions; do
  2389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390     ac_cv_prog_ac_ct_STRIP="strip"
  2391     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392     break 2
  2393   fi
  2394 done
  2395 done
  2396 IFS=$as_save_IFS
  2398 fi
  2399 fi
  2400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2401 if test -n "$ac_ct_STRIP"; then
  2402   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2403 $as_echo "$ac_ct_STRIP" >&6; }
  2404 else
  2405   { $as_echo "$as_me:$LINENO: result: no" >&5
  2406 $as_echo "no" >&6; }
  2407 fi
  2409   if test "x$ac_ct_STRIP" = x; then
  2410     STRIP=":"
  2411   else
  2412     case $cross_compiling:$ac_tool_warned in
  2413 yes:)
  2414 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2415 whose name does not start with the host triplet.  If you think this
  2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2417 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2418 whose name does not start with the host triplet.  If you think this
  2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2420 ac_tool_warned=yes ;;
  2421 esac
  2422     STRIP=$ac_ct_STRIP
  2423   fi
  2424 else
  2425   STRIP="$ac_cv_prog_STRIP"
  2426 fi
  2428 fi
  2429 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2431 # We need awk for the "check" target.  The system "awk" is bad on
  2432 # some platforms.
  2433 # Always define AMTAR for backward compatibility.
  2435 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2437 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2443 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2444 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2445     # Check whether --enable-maintainer-mode was given.
  2446 if test "${enable_maintainer_mode+set}" = set; then
  2447   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2448 else
  2449   USE_MAINTAINER_MODE=no
  2450 fi
  2452   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2453 $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2456 if test $USE_MAINTAINER_MODE = yes; then
  2457   MAINTAINER_MODE_TRUE=
  2458   MAINTAINER_MODE_FALSE='#'
  2459 else
  2460   MAINTAINER_MODE_TRUE='#'
  2461   MAINTAINER_MODE_FALSE=
  2462 fi
  2464   MAINT=$MAINTAINER_MODE_TRUE
  2467 ac_config_headers="$ac_config_headers config.h"
  2470 DEPDIR="${am__leading_dot}deps"
  2472 ac_config_commands="$ac_config_commands depfiles"
  2475 am_make=${MAKE-make}
  2476 cat > confinc << 'END'
  2477 am__doit:
  2478 	@echo done
  2479 .PHONY: am__doit
  2480 END
  2481 # If we don't find an include directive, just comment out the code.
  2482 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2483 $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2484 am__include="#"
  2485 am__quote=
  2486 _am_result=none
  2487 # First try GNU make style include.
  2488 echo "include confinc" > confmf
  2489 # We grep out `Entering directory' and `Leaving directory'
  2490 # messages which can occur if `w' ends up in MAKEFLAGS.
  2491 # In particular we don't look at `^make:' because GNU make might
  2492 # be invoked under some other name (usually "gmake"), in which
  2493 # case it prints its new name instead of `make'.
  2494 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2495    am__include=include
  2496    am__quote=
  2497    _am_result=GNU
  2498 fi
  2499 # Now try BSD make style include.
  2500 if test "$am__include" = "#"; then
  2501    echo '.include "confinc"' > confmf
  2502    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2503       am__include=.include
  2504       am__quote="\""
  2505       _am_result=BSD
  2506    fi
  2507 fi
  2510 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2511 $as_echo "$_am_result" >&6; }
  2512 rm -f confinc confmf
  2514 # Check whether --enable-dependency-tracking was given.
  2515 if test "${enable_dependency_tracking+set}" = set; then
  2516   enableval=$enable_dependency_tracking;
  2517 fi
  2519 if test "x$enable_dependency_tracking" != xno; then
  2520   am_depcomp="$ac_aux_dir/depcomp"
  2521   AMDEPBACKSLASH='\'
  2522 fi
  2525 if test "x$enable_dependency_tracking" != xno; then
  2526   AMDEP_TRUE=
  2527   AMDEP_FALSE='#'
  2528 else
  2529   AMDEP_TRUE='#'
  2530   AMDEP_FALSE=
  2531 fi
  2535 ac_ext=c
  2536 ac_cpp='$CPP $CPPFLAGS'
  2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2540 if test -n "$ac_tool_prefix"; then
  2541   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2544 $as_echo_n "checking for $ac_word... " >&6; }
  2545 if test "${ac_cv_prog_CC+set}" = set; then
  2546   $as_echo_n "(cached) " >&6
  2547 else
  2548   if test -n "$CC"; then
  2549   ac_cv_prog_CC="$CC" # Let the user override the test.
  2550 else
  2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2552 for as_dir in $PATH
  2553 do
  2554   IFS=$as_save_IFS
  2555   test -z "$as_dir" && as_dir=.
  2556   for ac_exec_ext in '' $ac_executable_extensions; do
  2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2558     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2560     break 2
  2561   fi
  2562 done
  2563 done
  2564 IFS=$as_save_IFS
  2566 fi
  2567 fi
  2568 CC=$ac_cv_prog_CC
  2569 if test -n "$CC"; then
  2570   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2571 $as_echo "$CC" >&6; }
  2572 else
  2573   { $as_echo "$as_me:$LINENO: result: no" >&5
  2574 $as_echo "no" >&6; }
  2575 fi
  2578 fi
  2579 if test -z "$ac_cv_prog_CC"; then
  2580   ac_ct_CC=$CC
  2581   # Extract the first word of "gcc", so it can be a program name with args.
  2582 set dummy gcc; ac_word=$2
  2583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2584 $as_echo_n "checking for $ac_word... " >&6; }
  2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2586   $as_echo_n "(cached) " >&6
  2587 else
  2588   if test -n "$ac_ct_CC"; then
  2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2590 else
  2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2592 for as_dir in $PATH
  2593 do
  2594   IFS=$as_save_IFS
  2595   test -z "$as_dir" && as_dir=.
  2596   for ac_exec_ext in '' $ac_executable_extensions; do
  2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2598     ac_cv_prog_ac_ct_CC="gcc"
  2599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2600     break 2
  2601   fi
  2602 done
  2603 done
  2604 IFS=$as_save_IFS
  2606 fi
  2607 fi
  2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2609 if test -n "$ac_ct_CC"; then
  2610   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2611 $as_echo "$ac_ct_CC" >&6; }
  2612 else
  2613   { $as_echo "$as_me:$LINENO: result: no" >&5
  2614 $as_echo "no" >&6; }
  2615 fi
  2617   if test "x$ac_ct_CC" = x; then
  2618     CC=""
  2619   else
  2620     case $cross_compiling:$ac_tool_warned in
  2621 yes:)
  2622 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2623 whose name does not start with the host triplet.  If you think this
  2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2625 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2626 whose name does not start with the host triplet.  If you think this
  2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2628 ac_tool_warned=yes ;;
  2629 esac
  2630     CC=$ac_ct_CC
  2631   fi
  2632 else
  2633   CC="$ac_cv_prog_CC"
  2634 fi
  2636 if test -z "$CC"; then
  2637           if test -n "$ac_tool_prefix"; then
  2638     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2639 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2641 $as_echo_n "checking for $ac_word... " >&6; }
  2642 if test "${ac_cv_prog_CC+set}" = set; then
  2643   $as_echo_n "(cached) " >&6
  2644 else
  2645   if test -n "$CC"; then
  2646   ac_cv_prog_CC="$CC" # Let the user override the test.
  2647 else
  2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649 for as_dir in $PATH
  2650 do
  2651   IFS=$as_save_IFS
  2652   test -z "$as_dir" && as_dir=.
  2653   for ac_exec_ext in '' $ac_executable_extensions; do
  2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2655     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657     break 2
  2658   fi
  2659 done
  2660 done
  2661 IFS=$as_save_IFS
  2663 fi
  2664 fi
  2665 CC=$ac_cv_prog_CC
  2666 if test -n "$CC"; then
  2667   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2668 $as_echo "$CC" >&6; }
  2669 else
  2670   { $as_echo "$as_me:$LINENO: result: no" >&5
  2671 $as_echo "no" >&6; }
  2672 fi
  2675   fi
  2676 fi
  2677 if test -z "$CC"; then
  2678   # Extract the first word of "cc", so it can be a program name with args.
  2679 set dummy cc; ac_word=$2
  2680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2681 $as_echo_n "checking for $ac_word... " >&6; }
  2682 if test "${ac_cv_prog_CC+set}" = set; then
  2683   $as_echo_n "(cached) " >&6
  2684 else
  2685   if test -n "$CC"; then
  2686   ac_cv_prog_CC="$CC" # Let the user override the test.
  2687 else
  2688   ac_prog_rejected=no
  2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690 for as_dir in $PATH
  2691 do
  2692   IFS=$as_save_IFS
  2693   test -z "$as_dir" && as_dir=.
  2694   for ac_exec_ext in '' $ac_executable_extensions; do
  2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2697        ac_prog_rejected=yes
  2698        continue
  2699      fi
  2700     ac_cv_prog_CC="cc"
  2701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702     break 2
  2703   fi
  2704 done
  2705 done
  2706 IFS=$as_save_IFS
  2708 if test $ac_prog_rejected = yes; then
  2709   # We found a bogon in the path, so make sure we never use it.
  2710   set dummy $ac_cv_prog_CC
  2711   shift
  2712   if test $# != 0; then
  2713     # We chose a different compiler from the bogus one.
  2714     # However, it has the same basename, so the bogon will be chosen
  2715     # first if we set CC to just the basename; use the full file name.
  2716     shift
  2717     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2718   fi
  2719 fi
  2720 fi
  2721 fi
  2722 CC=$ac_cv_prog_CC
  2723 if test -n "$CC"; then
  2724   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2725 $as_echo "$CC" >&6; }
  2726 else
  2727   { $as_echo "$as_me:$LINENO: result: no" >&5
  2728 $as_echo "no" >&6; }
  2729 fi
  2732 fi
  2733 if test -z "$CC"; then
  2734   if test -n "$ac_tool_prefix"; then
  2735   for ac_prog in cl.exe
  2736   do
  2737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2740 $as_echo_n "checking for $ac_word... " >&6; }
  2741 if test "${ac_cv_prog_CC+set}" = set; then
  2742   $as_echo_n "(cached) " >&6
  2743 else
  2744   if test -n "$CC"; then
  2745   ac_cv_prog_CC="$CC" # Let the user override the test.
  2746 else
  2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2748 for as_dir in $PATH
  2749 do
  2750   IFS=$as_save_IFS
  2751   test -z "$as_dir" && as_dir=.
  2752   for ac_exec_ext in '' $ac_executable_extensions; do
  2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2754     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2756     break 2
  2757   fi
  2758 done
  2759 done
  2760 IFS=$as_save_IFS
  2762 fi
  2763 fi
  2764 CC=$ac_cv_prog_CC
  2765 if test -n "$CC"; then
  2766   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2767 $as_echo "$CC" >&6; }
  2768 else
  2769   { $as_echo "$as_me:$LINENO: result: no" >&5
  2770 $as_echo "no" >&6; }
  2771 fi
  2774     test -n "$CC" && break
  2775   done
  2776 fi
  2777 if test -z "$CC"; then
  2778   ac_ct_CC=$CC
  2779   for ac_prog in cl.exe
  2780 do
  2781   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2782 set dummy $ac_prog; ac_word=$2
  2783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2784 $as_echo_n "checking for $ac_word... " >&6; }
  2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2786   $as_echo_n "(cached) " >&6
  2787 else
  2788   if test -n "$ac_ct_CC"; then
  2789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2790 else
  2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792 for as_dir in $PATH
  2793 do
  2794   IFS=$as_save_IFS
  2795   test -z "$as_dir" && as_dir=.
  2796   for ac_exec_ext in '' $ac_executable_extensions; do
  2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2798     ac_cv_prog_ac_ct_CC="$ac_prog"
  2799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800     break 2
  2801   fi
  2802 done
  2803 done
  2804 IFS=$as_save_IFS
  2806 fi
  2807 fi
  2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2809 if test -n "$ac_ct_CC"; then
  2810   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2811 $as_echo "$ac_ct_CC" >&6; }
  2812 else
  2813   { $as_echo "$as_me:$LINENO: result: no" >&5
  2814 $as_echo "no" >&6; }
  2815 fi
  2818   test -n "$ac_ct_CC" && break
  2819 done
  2821   if test "x$ac_ct_CC" = x; then
  2822     CC=""
  2823   else
  2824     case $cross_compiling:$ac_tool_warned in
  2825 yes:)
  2826 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2827 whose name does not start with the host triplet.  If you think this
  2828 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2829 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2830 whose name does not start with the host triplet.  If you think this
  2831 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2832 ac_tool_warned=yes ;;
  2833 esac
  2834     CC=$ac_ct_CC
  2835   fi
  2836 fi
  2838 fi
  2841 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2842 See \`config.log' for more details." >&5
  2843 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2844 See \`config.log' for more details." >&2;}
  2845    { (exit 1); exit 1; }; }
  2847 # Provide some information about the compiler.
  2848 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2849 set X $ac_compile
  2850 ac_compiler=$2
  2851 { (ac_try="$ac_compiler --version >&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 --version >&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); }
  2873 { (ac_try="$ac_compiler -V >&5"
  2874 case "(($ac_try" in
  2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2876   *) ac_try_echo=$ac_try;;
  2877 esac
  2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2879 $as_echo "$ac_try_echo") >&5
  2880   (eval "$ac_compiler -V >&5") 2>&5
  2881   ac_status=$?
  2882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2883   (exit $ac_status); }
  2885 cat >conftest.$ac_ext <<_ACEOF
  2886 /* confdefs.h.  */
  2887 _ACEOF
  2888 cat confdefs.h >>conftest.$ac_ext
  2889 cat >>conftest.$ac_ext <<_ACEOF
  2890 /* end confdefs.h.  */
  2892 int
  2893 main ()
  2897   return 0;
  2899 _ACEOF
  2900 ac_clean_files_save=$ac_clean_files
  2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2902 # Try to create an executable without -o first, disregard a.out.
  2903 # It will help us diagnose broken compilers, and finding out an intuition
  2904 # of exeext.
  2905 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2906 $as_echo_n "checking for C compiler default output file name... " >&6; }
  2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2909 # The possible output files:
  2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2912 ac_rmfiles=
  2913 for ac_file in $ac_files
  2914 do
  2915   case $ac_file in
  2916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2918   esac
  2919 done
  2920 rm -f $ac_rmfiles
  2922 if { (ac_try="$ac_link_default"
  2923 case "(($ac_try" in
  2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925   *) ac_try_echo=$ac_try;;
  2926 esac
  2927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2928 $as_echo "$ac_try_echo") >&5
  2929   (eval "$ac_link_default") 2>&5
  2930   ac_status=$?
  2931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2932   (exit $ac_status); }; then
  2933   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2935 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2936 # so that the user can short-circuit this test for compilers unknown to
  2937 # Autoconf.
  2938 for ac_file in $ac_files ''
  2939 do
  2940   test -f "$ac_file" || continue
  2941   case $ac_file in
  2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2943 	;;
  2944     [ab].out )
  2945 	# We found the default executable, but exeext='' is most
  2946 	# certainly right.
  2947 	break;;
  2948     *.* )
  2949         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2950 	then :; else
  2951 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2952 	fi
  2953 	# We set ac_cv_exeext here because the later test for it is not
  2954 	# safe: cross compilers may not add the suffix if given an `-o'
  2955 	# argument, so we may need to know it at that point already.
  2956 	# Even if this section looks crufty: it has the advantage of
  2957 	# actually working.
  2958 	break;;
  2959     * )
  2960 	break;;
  2961   esac
  2962 done
  2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2965 else
  2966   ac_file=''
  2967 fi
  2969 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2970 $as_echo "$ac_file" >&6; }
  2971 if test -z "$ac_file"; then
  2972   $as_echo "$as_me: failed program was:" >&5
  2973 sed 's/^/| /' conftest.$ac_ext >&5
  2975 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2976 See \`config.log' for more details." >&5
  2977 $as_echo "$as_me: error: C compiler cannot create executables
  2978 See \`config.log' for more details." >&2;}
  2979    { (exit 77); exit 77; }; }
  2980 fi
  2982 ac_exeext=$ac_cv_exeext
  2984 # Check that the compiler produces executables we can run.  If not, either
  2985 # the compiler is broken, or we cross compile.
  2986 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2987 $as_echo_n "checking whether the C compiler works... " >&6; }
  2988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2989 # If not cross compiling, check that we can run a simple program.
  2990 if test "$cross_compiling" != yes; then
  2991   if { ac_try='./$ac_file'
  2992   { (case "(($ac_try" in
  2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2994   *) ac_try_echo=$ac_try;;
  2995 esac
  2996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2997 $as_echo "$ac_try_echo") >&5
  2998   (eval "$ac_try") 2>&5
  2999   ac_status=$?
  3000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001   (exit $ac_status); }; }; then
  3002     cross_compiling=no
  3003   else
  3004     if test "$cross_compiling" = maybe; then
  3005 	cross_compiling=yes
  3006     else
  3007 	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3008 If you meant to cross compile, use \`--host'.
  3009 See \`config.log' for more details." >&5
  3010 $as_echo "$as_me: error: cannot run C compiled programs.
  3011 If you meant to cross compile, use \`--host'.
  3012 See \`config.log' for more details." >&2;}
  3013    { (exit 1); exit 1; }; }
  3014     fi
  3015   fi
  3016 fi
  3017 { $as_echo "$as_me:$LINENO: result: yes" >&5
  3018 $as_echo "yes" >&6; }
  3020 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3021 ac_clean_files=$ac_clean_files_save
  3022 # Check that the compiler produces executables we can run.  If not, either
  3023 # the compiler is broken, or we cross compile.
  3024 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3025 $as_echo_n "checking whether we are cross compiling... " >&6; }
  3026 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3027 $as_echo "$cross_compiling" >&6; }
  3029 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3030 $as_echo_n "checking for suffix of executables... " >&6; }
  3031 if { (ac_try="$ac_link"
  3032 case "(($ac_try" in
  3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3034   *) ac_try_echo=$ac_try;;
  3035 esac
  3036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3037 $as_echo "$ac_try_echo") >&5
  3038   (eval "$ac_link") 2>&5
  3039   ac_status=$?
  3040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3041   (exit $ac_status); }; then
  3042   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3043 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3044 # work properly (i.e., refer to `conftest.exe'), while it won't with
  3045 # `rm'.
  3046 for ac_file in conftest.exe conftest conftest.*; do
  3047   test -f "$ac_file" || continue
  3048   case $ac_file in
  3049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3050     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3051 	  break;;
  3052     * ) break;;
  3053   esac
  3054 done
  3055 else
  3056   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3057 See \`config.log' for more details." >&5
  3058 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3059 See \`config.log' for more details." >&2;}
  3060    { (exit 1); exit 1; }; }
  3061 fi
  3063 rm -f conftest$ac_cv_exeext
  3064 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3065 $as_echo "$ac_cv_exeext" >&6; }
  3067 rm -f conftest.$ac_ext
  3068 EXEEXT=$ac_cv_exeext
  3069 ac_exeext=$EXEEXT
  3070 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3071 $as_echo_n "checking for suffix of object files... " >&6; }
  3072 if test "${ac_cv_objext+set}" = set; then
  3073   $as_echo_n "(cached) " >&6
  3074 else
  3075   cat >conftest.$ac_ext <<_ACEOF
  3076 /* confdefs.h.  */
  3077 _ACEOF
  3078 cat confdefs.h >>conftest.$ac_ext
  3079 cat >>conftest.$ac_ext <<_ACEOF
  3080 /* end confdefs.h.  */
  3082 int
  3083 main ()
  3087   return 0;
  3089 _ACEOF
  3090 rm -f conftest.o conftest.obj
  3091 if { (ac_try="$ac_compile"
  3092 case "(($ac_try" in
  3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094   *) ac_try_echo=$ac_try;;
  3095 esac
  3096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3097 $as_echo "$ac_try_echo") >&5
  3098   (eval "$ac_compile") 2>&5
  3099   ac_status=$?
  3100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101   (exit $ac_status); }; then
  3102   for ac_file in conftest.o conftest.obj conftest.*; do
  3103   test -f "$ac_file" || continue;
  3104   case $ac_file in
  3105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3106     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3107        break;;
  3108   esac
  3109 done
  3110 else
  3111   $as_echo "$as_me: failed program was:" >&5
  3112 sed 's/^/| /' conftest.$ac_ext >&5
  3114 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3115 See \`config.log' for more details." >&5
  3116 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3117 See \`config.log' for more details." >&2;}
  3118    { (exit 1); exit 1; }; }
  3119 fi
  3121 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3122 fi
  3123 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3124 $as_echo "$ac_cv_objext" >&6; }
  3125 OBJEXT=$ac_cv_objext
  3126 ac_objext=$OBJEXT
  3127 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3129 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3130   $as_echo_n "(cached) " >&6
  3131 else
  3132   cat >conftest.$ac_ext <<_ACEOF
  3133 /* confdefs.h.  */
  3134 _ACEOF
  3135 cat confdefs.h >>conftest.$ac_ext
  3136 cat >>conftest.$ac_ext <<_ACEOF
  3137 /* end confdefs.h.  */
  3139 int
  3140 main ()
  3142 #ifndef __GNUC__
  3143        choke me
  3144 #endif
  3147   return 0;
  3149 _ACEOF
  3150 rm -f conftest.$ac_objext
  3151 if { (ac_try="$ac_compile"
  3152 case "(($ac_try" in
  3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3154   *) ac_try_echo=$ac_try;;
  3155 esac
  3156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3157 $as_echo "$ac_try_echo") >&5
  3158   (eval "$ac_compile") 2>conftest.er1
  3159   ac_status=$?
  3160   grep -v '^ *+' conftest.er1 >conftest.err
  3161   rm -f conftest.er1
  3162   cat conftest.err >&5
  3163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3164   (exit $ac_status); } && {
  3165 	 test -z "$ac_c_werror_flag" ||
  3166 	 test ! -s conftest.err
  3167        } && test -s conftest.$ac_objext; then
  3168   ac_compiler_gnu=yes
  3169 else
  3170   $as_echo "$as_me: failed program was:" >&5
  3171 sed 's/^/| /' conftest.$ac_ext >&5
  3173 	ac_compiler_gnu=no
  3174 fi
  3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3177 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3179 fi
  3180 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3181 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3182 if test $ac_compiler_gnu = yes; then
  3183   GCC=yes
  3184 else
  3185   GCC=
  3186 fi
  3187 ac_test_CFLAGS=${CFLAGS+set}
  3188 ac_save_CFLAGS=$CFLAGS
  3189 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3190 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3191 if test "${ac_cv_prog_cc_g+set}" = set; then
  3192   $as_echo_n "(cached) " >&6
  3193 else
  3194   ac_save_c_werror_flag=$ac_c_werror_flag
  3195    ac_c_werror_flag=yes
  3196    ac_cv_prog_cc_g=no
  3197    CFLAGS="-g"
  3198    cat >conftest.$ac_ext <<_ACEOF
  3199 /* confdefs.h.  */
  3200 _ACEOF
  3201 cat confdefs.h >>conftest.$ac_ext
  3202 cat >>conftest.$ac_ext <<_ACEOF
  3203 /* end confdefs.h.  */
  3205 int
  3206 main ()
  3210   return 0;
  3212 _ACEOF
  3213 rm -f conftest.$ac_objext
  3214 if { (ac_try="$ac_compile"
  3215 case "(($ac_try" in
  3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3217   *) ac_try_echo=$ac_try;;
  3218 esac
  3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3220 $as_echo "$ac_try_echo") >&5
  3221   (eval "$ac_compile") 2>conftest.er1
  3222   ac_status=$?
  3223   grep -v '^ *+' conftest.er1 >conftest.err
  3224   rm -f conftest.er1
  3225   cat conftest.err >&5
  3226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3227   (exit $ac_status); } && {
  3228 	 test -z "$ac_c_werror_flag" ||
  3229 	 test ! -s conftest.err
  3230        } && test -s conftest.$ac_objext; then
  3231   ac_cv_prog_cc_g=yes
  3232 else
  3233   $as_echo "$as_me: failed program was:" >&5
  3234 sed 's/^/| /' conftest.$ac_ext >&5
  3236 	CFLAGS=""
  3237       cat >conftest.$ac_ext <<_ACEOF
  3238 /* confdefs.h.  */
  3239 _ACEOF
  3240 cat confdefs.h >>conftest.$ac_ext
  3241 cat >>conftest.$ac_ext <<_ACEOF
  3242 /* end confdefs.h.  */
  3244 int
  3245 main ()
  3249   return 0;
  3251 _ACEOF
  3252 rm -f conftest.$ac_objext
  3253 if { (ac_try="$ac_compile"
  3254 case "(($ac_try" in
  3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256   *) ac_try_echo=$ac_try;;
  3257 esac
  3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3259 $as_echo "$ac_try_echo") >&5
  3260   (eval "$ac_compile") 2>conftest.er1
  3261   ac_status=$?
  3262   grep -v '^ *+' conftest.er1 >conftest.err
  3263   rm -f conftest.er1
  3264   cat conftest.err >&5
  3265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266   (exit $ac_status); } && {
  3267 	 test -z "$ac_c_werror_flag" ||
  3268 	 test ! -s conftest.err
  3269        } && test -s conftest.$ac_objext; then
  3271 else
  3272   $as_echo "$as_me: failed program was:" >&5
  3273 sed 's/^/| /' conftest.$ac_ext >&5
  3275 	ac_c_werror_flag=$ac_save_c_werror_flag
  3276 	 CFLAGS="-g"
  3277 	 cat >conftest.$ac_ext <<_ACEOF
  3278 /* confdefs.h.  */
  3279 _ACEOF
  3280 cat confdefs.h >>conftest.$ac_ext
  3281 cat >>conftest.$ac_ext <<_ACEOF
  3282 /* end confdefs.h.  */
  3284 int
  3285 main ()
  3289   return 0;
  3291 _ACEOF
  3292 rm -f conftest.$ac_objext
  3293 if { (ac_try="$ac_compile"
  3294 case "(($ac_try" in
  3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3296   *) ac_try_echo=$ac_try;;
  3297 esac
  3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3299 $as_echo "$ac_try_echo") >&5
  3300   (eval "$ac_compile") 2>conftest.er1
  3301   ac_status=$?
  3302   grep -v '^ *+' conftest.er1 >conftest.err
  3303   rm -f conftest.er1
  3304   cat conftest.err >&5
  3305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3306   (exit $ac_status); } && {
  3307 	 test -z "$ac_c_werror_flag" ||
  3308 	 test ! -s conftest.err
  3309        } && test -s conftest.$ac_objext; then
  3310   ac_cv_prog_cc_g=yes
  3311 else
  3312   $as_echo "$as_me: failed program was:" >&5
  3313 sed 's/^/| /' conftest.$ac_ext >&5
  3316 fi
  3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3319 fi
  3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322 fi
  3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3325    ac_c_werror_flag=$ac_save_c_werror_flag
  3326 fi
  3327 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3328 $as_echo "$ac_cv_prog_cc_g" >&6; }
  3329 if test "$ac_test_CFLAGS" = set; then
  3330   CFLAGS=$ac_save_CFLAGS
  3331 elif test $ac_cv_prog_cc_g = yes; then
  3332   if test "$GCC" = yes; then
  3333     CFLAGS="-g -O2"
  3334   else
  3335     CFLAGS="-g"
  3336   fi
  3337 else
  3338   if test "$GCC" = yes; then
  3339     CFLAGS="-O2"
  3340   else
  3341     CFLAGS=
  3342   fi
  3343 fi
  3344 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3346 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3347   $as_echo_n "(cached) " >&6
  3348 else
  3349   ac_cv_prog_cc_c89=no
  3350 ac_save_CC=$CC
  3351 cat >conftest.$ac_ext <<_ACEOF
  3352 /* confdefs.h.  */
  3353 _ACEOF
  3354 cat confdefs.h >>conftest.$ac_ext
  3355 cat >>conftest.$ac_ext <<_ACEOF
  3356 /* end confdefs.h.  */
  3357 #include <stdarg.h>
  3358 #include <stdio.h>
  3359 #include <sys/types.h>
  3360 #include <sys/stat.h>
  3361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3362 struct buf { int x; };
  3363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3364 static char *e (p, i)
  3365      char **p;
  3366      int i;
  3368   return p[i];
  3370 static char *f (char * (*g) (char **, int), char **p, ...)
  3372   char *s;
  3373   va_list v;
  3374   va_start (v,p);
  3375   s = g (p, va_arg (v,int));
  3376   va_end (v);
  3377   return s;
  3380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3381    function prototypes and stuff, but not '\xHH' hex character constants.
  3382    These don't provoke an error unfortunately, instead are silently treated
  3383    as 'x'.  The following induces an error, until -std is added to get
  3384    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3385    array size at least.  It's necessary to write '\x00'==0 to get something
  3386    that's true only with -std.  */
  3387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3390    inside strings and character constants.  */
  3391 #define FOO(x) 'x'
  3392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3394 int test (int i, double x);
  3395 struct s1 {int (*f) (int a);};
  3396 struct s2 {int (*f) (double a);};
  3397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3398 int argc;
  3399 char **argv;
  3400 int
  3401 main ()
  3403 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3405   return 0;
  3407 _ACEOF
  3408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3409 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3410 do
  3411   CC="$ac_save_CC $ac_arg"
  3412   rm -f conftest.$ac_objext
  3413 if { (ac_try="$ac_compile"
  3414 case "(($ac_try" in
  3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3416   *) ac_try_echo=$ac_try;;
  3417 esac
  3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3419 $as_echo "$ac_try_echo") >&5
  3420   (eval "$ac_compile") 2>conftest.er1
  3421   ac_status=$?
  3422   grep -v '^ *+' conftest.er1 >conftest.err
  3423   rm -f conftest.er1
  3424   cat conftest.err >&5
  3425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3426   (exit $ac_status); } && {
  3427 	 test -z "$ac_c_werror_flag" ||
  3428 	 test ! -s conftest.err
  3429        } && test -s conftest.$ac_objext; then
  3430   ac_cv_prog_cc_c89=$ac_arg
  3431 else
  3432   $as_echo "$as_me: failed program was:" >&5
  3433 sed 's/^/| /' conftest.$ac_ext >&5
  3436 fi
  3438 rm -f core conftest.err conftest.$ac_objext
  3439   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3440 done
  3441 rm -f conftest.$ac_ext
  3442 CC=$ac_save_CC
  3444 fi
  3445 # AC_CACHE_VAL
  3446 case "x$ac_cv_prog_cc_c89" in
  3447   x)
  3448     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3449 $as_echo "none needed" >&6; } ;;
  3450   xno)
  3451     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3452 $as_echo "unsupported" >&6; } ;;
  3453   *)
  3454     CC="$CC $ac_cv_prog_cc_c89"
  3455     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3456 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3457 esac
  3460 ac_ext=c
  3461 ac_cpp='$CPP $CPPFLAGS'
  3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3466 depcc="$CC"   am_compiler_list=
  3468 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3469 $as_echo_n "checking dependency style of $depcc... " >&6; }
  3470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3471   $as_echo_n "(cached) " >&6
  3472 else
  3473   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3474   # We make a subdir and do the tests there.  Otherwise we can end up
  3475   # making bogus files that we don't know about and never remove.  For
  3476   # instance it was reported that on HP-UX the gcc test will end up
  3477   # making a dummy file named `D' -- because `-MD' means `put the output
  3478   # in D'.
  3479   mkdir conftest.dir
  3480   # Copy depcomp to subdir because otherwise we won't find it if we're
  3481   # using a relative directory.
  3482   cp "$am_depcomp" conftest.dir
  3483   cd conftest.dir
  3484   # We will build objects and dependencies in a subdirectory because
  3485   # it helps to detect inapplicable dependency modes.  For instance
  3486   # both Tru64's cc and ICC support -MD to output dependencies as a
  3487   # side effect of compilation, but ICC will put the dependencies in
  3488   # the current directory while Tru64 will put them in the object
  3489   # directory.
  3490   mkdir sub
  3492   am_cv_CC_dependencies_compiler_type=none
  3493   if test "$am_compiler_list" = ""; then
  3494      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3495   fi
  3496   for depmode in $am_compiler_list; do
  3497     # Setup a source with many dependencies, because some compilers
  3498     # like to wrap large dependency lists on column 80 (with \), and
  3499     # we should not choose a depcomp mode which is confused by this.
  3501     # We need to recreate these files for each test, as the compiler may
  3502     # overwrite some of them when testing with obscure command lines.
  3503     # This happens at least with the AIX C compiler.
  3504     : > sub/conftest.c
  3505     for i in 1 2 3 4 5 6; do
  3506       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3507       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3508       # Solaris 8's {/usr,}/bin/sh.
  3509       touch sub/conftst$i.h
  3510     done
  3511     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3513     case $depmode in
  3514     nosideeffect)
  3515       # after this tag, mechanisms are not by side-effect, so they'll
  3516       # only be used when explicitly requested
  3517       if test "x$enable_dependency_tracking" = xyes; then
  3518 	continue
  3519       else
  3520 	break
  3521       fi
  3522       ;;
  3523     none) break ;;
  3524     esac
  3525     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3526     # mode.  It turns out that the SunPro C++ compiler does not properly
  3527     # handle `-M -o', and we need to detect this.
  3528     if depmode=$depmode \
  3529        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3530        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3531        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3532          >/dev/null 2>conftest.err &&
  3533        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3534        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3535        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3536       # icc doesn't choke on unknown options, it will just issue warnings
  3537       # or remarks (even with -Werror).  So we grep stderr for any message
  3538       # that says an option was ignored or not supported.
  3539       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3540       #   icc: Command line warning: ignoring option '-M'; no argument required
  3541       # The diagnosis changed in icc 8.0:
  3542       #   icc: Command line remark: option '-MP' not supported
  3543       if (grep 'ignoring option' conftest.err ||
  3544           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3545         am_cv_CC_dependencies_compiler_type=$depmode
  3546         break
  3547       fi
  3548     fi
  3549   done
  3551   cd ..
  3552   rm -rf conftest.dir
  3553 else
  3554   am_cv_CC_dependencies_compiler_type=none
  3555 fi
  3557 fi
  3558 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3559 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3560 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3564 if
  3565   test "x$enable_dependency_tracking" != xno \
  3566   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3567   am__fastdepCC_TRUE=
  3568   am__fastdepCC_FALSE='#'
  3569 else
  3570   am__fastdepCC_TRUE='#'
  3571   am__fastdepCC_FALSE=
  3572 fi
  3577         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3578 $as_echo_n "checking for strerror in -lcposix... " >&6; }
  3579 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3580   $as_echo_n "(cached) " >&6
  3581 else
  3582   ac_check_lib_save_LIBS=$LIBS
  3583 LIBS="-lcposix  $LIBS"
  3584 cat >conftest.$ac_ext <<_ACEOF
  3585 /* confdefs.h.  */
  3586 _ACEOF
  3587 cat confdefs.h >>conftest.$ac_ext
  3588 cat >>conftest.$ac_ext <<_ACEOF
  3589 /* end confdefs.h.  */
  3591 /* Override any GCC internal prototype to avoid an error.
  3592    Use char because int might match the return type of a GCC
  3593    builtin and then its argument prototype would still apply.  */
  3594 #ifdef __cplusplus
  3595 extern "C"
  3596 #endif
  3597 char strerror ();
  3598 int
  3599 main ()
  3601 return strerror ();
  3603   return 0;
  3605 _ACEOF
  3606 rm -f conftest.$ac_objext conftest$ac_exeext
  3607 if { (ac_try="$ac_link"
  3608 case "(($ac_try" in
  3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3610   *) ac_try_echo=$ac_try;;
  3611 esac
  3612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3613 $as_echo "$ac_try_echo") >&5
  3614   (eval "$ac_link") 2>conftest.er1
  3615   ac_status=$?
  3616   grep -v '^ *+' conftest.er1 >conftest.err
  3617   rm -f conftest.er1
  3618   cat conftest.err >&5
  3619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620   (exit $ac_status); } && {
  3621 	 test -z "$ac_c_werror_flag" ||
  3622 	 test ! -s conftest.err
  3623        } && test -s conftest$ac_exeext && {
  3624 	 test "$cross_compiling" = yes ||
  3625 	 $as_test_x conftest$ac_exeext
  3626        }; then
  3627   ac_cv_lib_cposix_strerror=yes
  3628 else
  3629   $as_echo "$as_me: failed program was:" >&5
  3630 sed 's/^/| /' conftest.$ac_ext >&5
  3632 	ac_cv_lib_cposix_strerror=no
  3633 fi
  3635 rm -rf conftest.dSYM
  3636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3637       conftest$ac_exeext conftest.$ac_ext
  3638 LIBS=$ac_check_lib_save_LIBS
  3639 fi
  3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3641 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3642 if test $ac_cv_lib_cposix_strerror = yes; then
  3643   LIBS="$LIBS -lcposix"
  3644 fi
  3648 ac_ext=c
  3649 ac_cpp='$CPP $CPPFLAGS'
  3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3653 if test -n "$ac_tool_prefix"; then
  3654   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3655 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3657 $as_echo_n "checking for $ac_word... " >&6; }
  3658 if test "${ac_cv_prog_CC+set}" = set; then
  3659   $as_echo_n "(cached) " >&6
  3660 else
  3661   if test -n "$CC"; then
  3662   ac_cv_prog_CC="$CC" # Let the user override the test.
  3663 else
  3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665 for as_dir in $PATH
  3666 do
  3667   IFS=$as_save_IFS
  3668   test -z "$as_dir" && as_dir=.
  3669   for ac_exec_ext in '' $ac_executable_extensions; do
  3670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3671     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3673     break 2
  3674   fi
  3675 done
  3676 done
  3677 IFS=$as_save_IFS
  3679 fi
  3680 fi
  3681 CC=$ac_cv_prog_CC
  3682 if test -n "$CC"; then
  3683   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3684 $as_echo "$CC" >&6; }
  3685 else
  3686   { $as_echo "$as_me:$LINENO: result: no" >&5
  3687 $as_echo "no" >&6; }
  3688 fi
  3691 fi
  3692 if test -z "$ac_cv_prog_CC"; then
  3693   ac_ct_CC=$CC
  3694   # Extract the first word of "gcc", so it can be a program name with args.
  3695 set dummy gcc; ac_word=$2
  3696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3697 $as_echo_n "checking for $ac_word... " >&6; }
  3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3699   $as_echo_n "(cached) " >&6
  3700 else
  3701   if test -n "$ac_ct_CC"; then
  3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3703 else
  3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3705 for as_dir in $PATH
  3706 do
  3707   IFS=$as_save_IFS
  3708   test -z "$as_dir" && as_dir=.
  3709   for ac_exec_ext in '' $ac_executable_extensions; do
  3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3711     ac_cv_prog_ac_ct_CC="gcc"
  3712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3713     break 2
  3714   fi
  3715 done
  3716 done
  3717 IFS=$as_save_IFS
  3719 fi
  3720 fi
  3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3722 if test -n "$ac_ct_CC"; then
  3723   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3724 $as_echo "$ac_ct_CC" >&6; }
  3725 else
  3726   { $as_echo "$as_me:$LINENO: result: no" >&5
  3727 $as_echo "no" >&6; }
  3728 fi
  3730   if test "x$ac_ct_CC" = x; then
  3731     CC=""
  3732   else
  3733     case $cross_compiling:$ac_tool_warned in
  3734 yes:)
  3735 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3736 whose name does not start with the host triplet.  If you think this
  3737 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3738 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3739 whose name does not start with the host triplet.  If you think this
  3740 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3741 ac_tool_warned=yes ;;
  3742 esac
  3743     CC=$ac_ct_CC
  3744   fi
  3745 else
  3746   CC="$ac_cv_prog_CC"
  3747 fi
  3749 if test -z "$CC"; then
  3750           if test -n "$ac_tool_prefix"; then
  3751     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3752 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3754 $as_echo_n "checking for $ac_word... " >&6; }
  3755 if test "${ac_cv_prog_CC+set}" = set; then
  3756   $as_echo_n "(cached) " >&6
  3757 else
  3758   if test -n "$CC"; then
  3759   ac_cv_prog_CC="$CC" # Let the user override the test.
  3760 else
  3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3762 for as_dir in $PATH
  3763 do
  3764   IFS=$as_save_IFS
  3765   test -z "$as_dir" && as_dir=.
  3766   for ac_exec_ext in '' $ac_executable_extensions; do
  3767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3768     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3769     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3770     break 2
  3771   fi
  3772 done
  3773 done
  3774 IFS=$as_save_IFS
  3776 fi
  3777 fi
  3778 CC=$ac_cv_prog_CC
  3779 if test -n "$CC"; then
  3780   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3781 $as_echo "$CC" >&6; }
  3782 else
  3783   { $as_echo "$as_me:$LINENO: result: no" >&5
  3784 $as_echo "no" >&6; }
  3785 fi
  3788   fi
  3789 fi
  3790 if test -z "$CC"; then
  3791   # Extract the first word of "cc", so it can be a program name with args.
  3792 set dummy cc; ac_word=$2
  3793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3794 $as_echo_n "checking for $ac_word... " >&6; }
  3795 if test "${ac_cv_prog_CC+set}" = set; then
  3796   $as_echo_n "(cached) " >&6
  3797 else
  3798   if test -n "$CC"; then
  3799   ac_cv_prog_CC="$CC" # Let the user override the test.
  3800 else
  3801   ac_prog_rejected=no
  3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3803 for as_dir in $PATH
  3804 do
  3805   IFS=$as_save_IFS
  3806   test -z "$as_dir" && as_dir=.
  3807   for ac_exec_ext in '' $ac_executable_extensions; do
  3808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3809     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3810        ac_prog_rejected=yes
  3811        continue
  3812      fi
  3813     ac_cv_prog_CC="cc"
  3814     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3815     break 2
  3816   fi
  3817 done
  3818 done
  3819 IFS=$as_save_IFS
  3821 if test $ac_prog_rejected = yes; then
  3822   # We found a bogon in the path, so make sure we never use it.
  3823   set dummy $ac_cv_prog_CC
  3824   shift
  3825   if test $# != 0; then
  3826     # We chose a different compiler from the bogus one.
  3827     # However, it has the same basename, so the bogon will be chosen
  3828     # first if we set CC to just the basename; use the full file name.
  3829     shift
  3830     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3831   fi
  3832 fi
  3833 fi
  3834 fi
  3835 CC=$ac_cv_prog_CC
  3836 if test -n "$CC"; then
  3837   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3838 $as_echo "$CC" >&6; }
  3839 else
  3840   { $as_echo "$as_me:$LINENO: result: no" >&5
  3841 $as_echo "no" >&6; }
  3842 fi
  3845 fi
  3846 if test -z "$CC"; then
  3847   if test -n "$ac_tool_prefix"; then
  3848   for ac_prog in cl.exe
  3849   do
  3850     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3853 $as_echo_n "checking for $ac_word... " >&6; }
  3854 if test "${ac_cv_prog_CC+set}" = set; then
  3855   $as_echo_n "(cached) " >&6
  3856 else
  3857   if test -n "$CC"; then
  3858   ac_cv_prog_CC="$CC" # Let the user override the test.
  3859 else
  3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861 for as_dir in $PATH
  3862 do
  3863   IFS=$as_save_IFS
  3864   test -z "$as_dir" && as_dir=.
  3865   for ac_exec_ext in '' $ac_executable_extensions; do
  3866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3867     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3868     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869     break 2
  3870   fi
  3871 done
  3872 done
  3873 IFS=$as_save_IFS
  3875 fi
  3876 fi
  3877 CC=$ac_cv_prog_CC
  3878 if test -n "$CC"; then
  3879   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3880 $as_echo "$CC" >&6; }
  3881 else
  3882   { $as_echo "$as_me:$LINENO: result: no" >&5
  3883 $as_echo "no" >&6; }
  3884 fi
  3887     test -n "$CC" && break
  3888   done
  3889 fi
  3890 if test -z "$CC"; then
  3891   ac_ct_CC=$CC
  3892   for ac_prog in cl.exe
  3893 do
  3894   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3895 set dummy $ac_prog; ac_word=$2
  3896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3897 $as_echo_n "checking for $ac_word... " >&6; }
  3898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3899   $as_echo_n "(cached) " >&6
  3900 else
  3901   if test -n "$ac_ct_CC"; then
  3902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3903 else
  3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3905 for as_dir in $PATH
  3906 do
  3907   IFS=$as_save_IFS
  3908   test -z "$as_dir" && as_dir=.
  3909   for ac_exec_ext in '' $ac_executable_extensions; do
  3910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3911     ac_cv_prog_ac_ct_CC="$ac_prog"
  3912     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3913     break 2
  3914   fi
  3915 done
  3916 done
  3917 IFS=$as_save_IFS
  3919 fi
  3920 fi
  3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3922 if test -n "$ac_ct_CC"; then
  3923   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3924 $as_echo "$ac_ct_CC" >&6; }
  3925 else
  3926   { $as_echo "$as_me:$LINENO: result: no" >&5
  3927 $as_echo "no" >&6; }
  3928 fi
  3931   test -n "$ac_ct_CC" && break
  3932 done
  3934   if test "x$ac_ct_CC" = x; then
  3935     CC=""
  3936   else
  3937     case $cross_compiling:$ac_tool_warned in
  3938 yes:)
  3939 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3940 whose name does not start with the host triplet.  If you think this
  3941 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3942 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3943 whose name does not start with the host triplet.  If you think this
  3944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3945 ac_tool_warned=yes ;;
  3946 esac
  3947     CC=$ac_ct_CC
  3948   fi
  3949 fi
  3951 fi
  3954 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3955 See \`config.log' for more details." >&5
  3956 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3957 See \`config.log' for more details." >&2;}
  3958    { (exit 1); exit 1; }; }
  3960 # Provide some information about the compiler.
  3961 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3962 set X $ac_compile
  3963 ac_compiler=$2
  3964 { (ac_try="$ac_compiler --version >&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 --version >&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); }
  3986 { (ac_try="$ac_compiler -V >&5"
  3987 case "(($ac_try" in
  3988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3989   *) ac_try_echo=$ac_try;;
  3990 esac
  3991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3992 $as_echo "$ac_try_echo") >&5
  3993   (eval "$ac_compiler -V >&5") 2>&5
  3994   ac_status=$?
  3995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3996   (exit $ac_status); }
  3998 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4000 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4001   $as_echo_n "(cached) " >&6
  4002 else
  4003   cat >conftest.$ac_ext <<_ACEOF
  4004 /* confdefs.h.  */
  4005 _ACEOF
  4006 cat confdefs.h >>conftest.$ac_ext
  4007 cat >>conftest.$ac_ext <<_ACEOF
  4008 /* end confdefs.h.  */
  4010 int
  4011 main ()
  4013 #ifndef __GNUC__
  4014        choke me
  4015 #endif
  4018   return 0;
  4020 _ACEOF
  4021 rm -f conftest.$ac_objext
  4022 if { (ac_try="$ac_compile"
  4023 case "(($ac_try" in
  4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4025   *) ac_try_echo=$ac_try;;
  4026 esac
  4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4028 $as_echo "$ac_try_echo") >&5
  4029   (eval "$ac_compile") 2>conftest.er1
  4030   ac_status=$?
  4031   grep -v '^ *+' conftest.er1 >conftest.err
  4032   rm -f conftest.er1
  4033   cat conftest.err >&5
  4034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4035   (exit $ac_status); } && {
  4036 	 test -z "$ac_c_werror_flag" ||
  4037 	 test ! -s conftest.err
  4038        } && test -s conftest.$ac_objext; then
  4039   ac_compiler_gnu=yes
  4040 else
  4041   $as_echo "$as_me: failed program was:" >&5
  4042 sed 's/^/| /' conftest.$ac_ext >&5
  4044 	ac_compiler_gnu=no
  4045 fi
  4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4050 fi
  4051 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4053 if test $ac_compiler_gnu = yes; then
  4054   GCC=yes
  4055 else
  4056   GCC=
  4057 fi
  4058 ac_test_CFLAGS=${CFLAGS+set}
  4059 ac_save_CFLAGS=$CFLAGS
  4060 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4062 if test "${ac_cv_prog_cc_g+set}" = set; then
  4063   $as_echo_n "(cached) " >&6
  4064 else
  4065   ac_save_c_werror_flag=$ac_c_werror_flag
  4066    ac_c_werror_flag=yes
  4067    ac_cv_prog_cc_g=no
  4068    CFLAGS="-g"
  4069    cat >conftest.$ac_ext <<_ACEOF
  4070 /* confdefs.h.  */
  4071 _ACEOF
  4072 cat confdefs.h >>conftest.$ac_ext
  4073 cat >>conftest.$ac_ext <<_ACEOF
  4074 /* end confdefs.h.  */
  4076 int
  4077 main ()
  4081   return 0;
  4083 _ACEOF
  4084 rm -f conftest.$ac_objext
  4085 if { (ac_try="$ac_compile"
  4086 case "(($ac_try" in
  4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4088   *) ac_try_echo=$ac_try;;
  4089 esac
  4090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4091 $as_echo "$ac_try_echo") >&5
  4092   (eval "$ac_compile") 2>conftest.er1
  4093   ac_status=$?
  4094   grep -v '^ *+' conftest.er1 >conftest.err
  4095   rm -f conftest.er1
  4096   cat conftest.err >&5
  4097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098   (exit $ac_status); } && {
  4099 	 test -z "$ac_c_werror_flag" ||
  4100 	 test ! -s conftest.err
  4101        } && test -s conftest.$ac_objext; then
  4102   ac_cv_prog_cc_g=yes
  4103 else
  4104   $as_echo "$as_me: failed program was:" >&5
  4105 sed 's/^/| /' conftest.$ac_ext >&5
  4107 	CFLAGS=""
  4108       cat >conftest.$ac_ext <<_ACEOF
  4109 /* confdefs.h.  */
  4110 _ACEOF
  4111 cat confdefs.h >>conftest.$ac_ext
  4112 cat >>conftest.$ac_ext <<_ACEOF
  4113 /* end confdefs.h.  */
  4115 int
  4116 main ()
  4120   return 0;
  4122 _ACEOF
  4123 rm -f conftest.$ac_objext
  4124 if { (ac_try="$ac_compile"
  4125 case "(($ac_try" in
  4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4127   *) ac_try_echo=$ac_try;;
  4128 esac
  4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4130 $as_echo "$ac_try_echo") >&5
  4131   (eval "$ac_compile") 2>conftest.er1
  4132   ac_status=$?
  4133   grep -v '^ *+' conftest.er1 >conftest.err
  4134   rm -f conftest.er1
  4135   cat conftest.err >&5
  4136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137   (exit $ac_status); } && {
  4138 	 test -z "$ac_c_werror_flag" ||
  4139 	 test ! -s conftest.err
  4140        } && test -s conftest.$ac_objext; then
  4142 else
  4143   $as_echo "$as_me: failed program was:" >&5
  4144 sed 's/^/| /' conftest.$ac_ext >&5
  4146 	ac_c_werror_flag=$ac_save_c_werror_flag
  4147 	 CFLAGS="-g"
  4148 	 cat >conftest.$ac_ext <<_ACEOF
  4149 /* confdefs.h.  */
  4150 _ACEOF
  4151 cat confdefs.h >>conftest.$ac_ext
  4152 cat >>conftest.$ac_ext <<_ACEOF
  4153 /* end confdefs.h.  */
  4155 int
  4156 main ()
  4160   return 0;
  4162 _ACEOF
  4163 rm -f conftest.$ac_objext
  4164 if { (ac_try="$ac_compile"
  4165 case "(($ac_try" in
  4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4167   *) ac_try_echo=$ac_try;;
  4168 esac
  4169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4170 $as_echo "$ac_try_echo") >&5
  4171   (eval "$ac_compile") 2>conftest.er1
  4172   ac_status=$?
  4173   grep -v '^ *+' conftest.er1 >conftest.err
  4174   rm -f conftest.er1
  4175   cat conftest.err >&5
  4176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4177   (exit $ac_status); } && {
  4178 	 test -z "$ac_c_werror_flag" ||
  4179 	 test ! -s conftest.err
  4180        } && test -s conftest.$ac_objext; then
  4181   ac_cv_prog_cc_g=yes
  4182 else
  4183   $as_echo "$as_me: failed program was:" >&5
  4184 sed 's/^/| /' conftest.$ac_ext >&5
  4187 fi
  4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4190 fi
  4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4193 fi
  4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4196    ac_c_werror_flag=$ac_save_c_werror_flag
  4197 fi
  4198 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4200 if test "$ac_test_CFLAGS" = set; then
  4201   CFLAGS=$ac_save_CFLAGS
  4202 elif test $ac_cv_prog_cc_g = yes; then
  4203   if test "$GCC" = yes; then
  4204     CFLAGS="-g -O2"
  4205   else
  4206     CFLAGS="-g"
  4207   fi
  4208 else
  4209   if test "$GCC" = yes; then
  4210     CFLAGS="-O2"
  4211   else
  4212     CFLAGS=
  4213   fi
  4214 fi
  4215 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4217 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4218   $as_echo_n "(cached) " >&6
  4219 else
  4220   ac_cv_prog_cc_c89=no
  4221 ac_save_CC=$CC
  4222 cat >conftest.$ac_ext <<_ACEOF
  4223 /* confdefs.h.  */
  4224 _ACEOF
  4225 cat confdefs.h >>conftest.$ac_ext
  4226 cat >>conftest.$ac_ext <<_ACEOF
  4227 /* end confdefs.h.  */
  4228 #include <stdarg.h>
  4229 #include <stdio.h>
  4230 #include <sys/types.h>
  4231 #include <sys/stat.h>
  4232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4233 struct buf { int x; };
  4234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4235 static char *e (p, i)
  4236      char **p;
  4237      int i;
  4239   return p[i];
  4241 static char *f (char * (*g) (char **, int), char **p, ...)
  4243   char *s;
  4244   va_list v;
  4245   va_start (v,p);
  4246   s = g (p, va_arg (v,int));
  4247   va_end (v);
  4248   return s;
  4251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4252    function prototypes and stuff, but not '\xHH' hex character constants.
  4253    These don't provoke an error unfortunately, instead are silently treated
  4254    as 'x'.  The following induces an error, until -std is added to get
  4255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4256    array size at least.  It's necessary to write '\x00'==0 to get something
  4257    that's true only with -std.  */
  4258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4261    inside strings and character constants.  */
  4262 #define FOO(x) 'x'
  4263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4265 int test (int i, double x);
  4266 struct s1 {int (*f) (int a);};
  4267 struct s2 {int (*f) (double a);};
  4268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4269 int argc;
  4270 char **argv;
  4271 int
  4272 main ()
  4274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4276   return 0;
  4278 _ACEOF
  4279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4280 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4281 do
  4282   CC="$ac_save_CC $ac_arg"
  4283   rm -f conftest.$ac_objext
  4284 if { (ac_try="$ac_compile"
  4285 case "(($ac_try" in
  4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4287   *) ac_try_echo=$ac_try;;
  4288 esac
  4289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4290 $as_echo "$ac_try_echo") >&5
  4291   (eval "$ac_compile") 2>conftest.er1
  4292   ac_status=$?
  4293   grep -v '^ *+' conftest.er1 >conftest.err
  4294   rm -f conftest.er1
  4295   cat conftest.err >&5
  4296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4297   (exit $ac_status); } && {
  4298 	 test -z "$ac_c_werror_flag" ||
  4299 	 test ! -s conftest.err
  4300        } && test -s conftest.$ac_objext; then
  4301   ac_cv_prog_cc_c89=$ac_arg
  4302 else
  4303   $as_echo "$as_me: failed program was:" >&5
  4304 sed 's/^/| /' conftest.$ac_ext >&5
  4307 fi
  4309 rm -f core conftest.err conftest.$ac_objext
  4310   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4311 done
  4312 rm -f conftest.$ac_ext
  4313 CC=$ac_save_CC
  4315 fi
  4316 # AC_CACHE_VAL
  4317 case "x$ac_cv_prog_cc_c89" in
  4318   x)
  4319     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4320 $as_echo "none needed" >&6; } ;;
  4321   xno)
  4322     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4323 $as_echo "unsupported" >&6; } ;;
  4324   *)
  4325     CC="$CC $ac_cv_prog_cc_c89"
  4326     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4328 esac
  4331 ac_ext=c
  4332 ac_cpp='$CPP $CPPFLAGS'
  4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4337 depcc="$CC"   am_compiler_list=
  4339 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4340 $as_echo_n "checking dependency style of $depcc... " >&6; }
  4341 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4342   $as_echo_n "(cached) " >&6
  4343 else
  4344   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4345   # We make a subdir and do the tests there.  Otherwise we can end up
  4346   # making bogus files that we don't know about and never remove.  For
  4347   # instance it was reported that on HP-UX the gcc test will end up
  4348   # making a dummy file named `D' -- because `-MD' means `put the output
  4349   # in D'.
  4350   mkdir conftest.dir
  4351   # Copy depcomp to subdir because otherwise we won't find it if we're
  4352   # using a relative directory.
  4353   cp "$am_depcomp" conftest.dir
  4354   cd conftest.dir
  4355   # We will build objects and dependencies in a subdirectory because
  4356   # it helps to detect inapplicable dependency modes.  For instance
  4357   # both Tru64's cc and ICC support -MD to output dependencies as a
  4358   # side effect of compilation, but ICC will put the dependencies in
  4359   # the current directory while Tru64 will put them in the object
  4360   # directory.
  4361   mkdir sub
  4363   am_cv_CC_dependencies_compiler_type=none
  4364   if test "$am_compiler_list" = ""; then
  4365      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4366   fi
  4367   for depmode in $am_compiler_list; do
  4368     # Setup a source with many dependencies, because some compilers
  4369     # like to wrap large dependency lists on column 80 (with \), and
  4370     # we should not choose a depcomp mode which is confused by this.
  4372     # We need to recreate these files for each test, as the compiler may
  4373     # overwrite some of them when testing with obscure command lines.
  4374     # This happens at least with the AIX C compiler.
  4375     : > sub/conftest.c
  4376     for i in 1 2 3 4 5 6; do
  4377       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4378       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4379       # Solaris 8's {/usr,}/bin/sh.
  4380       touch sub/conftst$i.h
  4381     done
  4382     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4384     case $depmode in
  4385     nosideeffect)
  4386       # after this tag, mechanisms are not by side-effect, so they'll
  4387       # only be used when explicitly requested
  4388       if test "x$enable_dependency_tracking" = xyes; then
  4389 	continue
  4390       else
  4391 	break
  4392       fi
  4393       ;;
  4394     none) break ;;
  4395     esac
  4396     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4397     # mode.  It turns out that the SunPro C++ compiler does not properly
  4398     # handle `-M -o', and we need to detect this.
  4399     if depmode=$depmode \
  4400        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4401        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4402        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4403          >/dev/null 2>conftest.err &&
  4404        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4405        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4406        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4407       # icc doesn't choke on unknown options, it will just issue warnings
  4408       # or remarks (even with -Werror).  So we grep stderr for any message
  4409       # that says an option was ignored or not supported.
  4410       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4411       #   icc: Command line warning: ignoring option '-M'; no argument required
  4412       # The diagnosis changed in icc 8.0:
  4413       #   icc: Command line remark: option '-MP' not supported
  4414       if (grep 'ignoring option' conftest.err ||
  4415           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4416         am_cv_CC_dependencies_compiler_type=$depmode
  4417         break
  4418       fi
  4419     fi
  4420   done
  4422   cd ..
  4423   rm -rf conftest.dir
  4424 else
  4425   am_cv_CC_dependencies_compiler_type=none
  4426 fi
  4428 fi
  4429 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4430 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4435 if
  4436   test "x$enable_dependency_tracking" != xno \
  4437   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4438   am__fastdepCC_TRUE=
  4439   am__fastdepCC_FALSE='#'
  4440 else
  4441   am__fastdepCC_TRUE='#'
  4442   am__fastdepCC_FALSE=
  4443 fi
  4446 ac_ext=c
  4447 ac_cpp='$CPP $CPPFLAGS'
  4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4451 if test -n "$ac_tool_prefix"; then
  4452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4455 $as_echo_n "checking for $ac_word... " >&6; }
  4456 if test "${ac_cv_prog_CC+set}" = set; then
  4457   $as_echo_n "(cached) " >&6
  4458 else
  4459   if test -n "$CC"; then
  4460   ac_cv_prog_CC="$CC" # Let the user override the test.
  4461 else
  4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463 for as_dir in $PATH
  4464 do
  4465   IFS=$as_save_IFS
  4466   test -z "$as_dir" && as_dir=.
  4467   for ac_exec_ext in '' $ac_executable_extensions; do
  4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4471     break 2
  4472   fi
  4473 done
  4474 done
  4475 IFS=$as_save_IFS
  4477 fi
  4478 fi
  4479 CC=$ac_cv_prog_CC
  4480 if test -n "$CC"; then
  4481   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4482 $as_echo "$CC" >&6; }
  4483 else
  4484   { $as_echo "$as_me:$LINENO: result: no" >&5
  4485 $as_echo "no" >&6; }
  4486 fi
  4489 fi
  4490 if test -z "$ac_cv_prog_CC"; then
  4491   ac_ct_CC=$CC
  4492   # Extract the first word of "gcc", so it can be a program name with args.
  4493 set dummy gcc; ac_word=$2
  4494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4495 $as_echo_n "checking for $ac_word... " >&6; }
  4496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4497   $as_echo_n "(cached) " >&6
  4498 else
  4499   if test -n "$ac_ct_CC"; then
  4500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4501 else
  4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4503 for as_dir in $PATH
  4504 do
  4505   IFS=$as_save_IFS
  4506   test -z "$as_dir" && as_dir=.
  4507   for ac_exec_ext in '' $ac_executable_extensions; do
  4508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4509     ac_cv_prog_ac_ct_CC="gcc"
  4510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4511     break 2
  4512   fi
  4513 done
  4514 done
  4515 IFS=$as_save_IFS
  4517 fi
  4518 fi
  4519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4520 if test -n "$ac_ct_CC"; then
  4521   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4522 $as_echo "$ac_ct_CC" >&6; }
  4523 else
  4524   { $as_echo "$as_me:$LINENO: result: no" >&5
  4525 $as_echo "no" >&6; }
  4526 fi
  4528   if test "x$ac_ct_CC" = x; then
  4529     CC=""
  4530   else
  4531     case $cross_compiling:$ac_tool_warned in
  4532 yes:)
  4533 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4534 whose name does not start with the host triplet.  If you think this
  4535 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4536 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4537 whose name does not start with the host triplet.  If you think this
  4538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4539 ac_tool_warned=yes ;;
  4540 esac
  4541     CC=$ac_ct_CC
  4542   fi
  4543 else
  4544   CC="$ac_cv_prog_CC"
  4545 fi
  4547 if test -z "$CC"; then
  4548           if test -n "$ac_tool_prefix"; then
  4549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4550 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4552 $as_echo_n "checking for $ac_word... " >&6; }
  4553 if test "${ac_cv_prog_CC+set}" = set; then
  4554   $as_echo_n "(cached) " >&6
  4555 else
  4556   if test -n "$CC"; then
  4557   ac_cv_prog_CC="$CC" # Let the user override the test.
  4558 else
  4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4560 for as_dir in $PATH
  4561 do
  4562   IFS=$as_save_IFS
  4563   test -z "$as_dir" && as_dir=.
  4564   for ac_exec_ext in '' $ac_executable_extensions; do
  4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4566     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4568     break 2
  4569   fi
  4570 done
  4571 done
  4572 IFS=$as_save_IFS
  4574 fi
  4575 fi
  4576 CC=$ac_cv_prog_CC
  4577 if test -n "$CC"; then
  4578   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4579 $as_echo "$CC" >&6; }
  4580 else
  4581   { $as_echo "$as_me:$LINENO: result: no" >&5
  4582 $as_echo "no" >&6; }
  4583 fi
  4586   fi
  4587 fi
  4588 if test -z "$CC"; then
  4589   # Extract the first word of "cc", so it can be a program name with args.
  4590 set dummy cc; ac_word=$2
  4591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4592 $as_echo_n "checking for $ac_word... " >&6; }
  4593 if test "${ac_cv_prog_CC+set}" = set; then
  4594   $as_echo_n "(cached) " >&6
  4595 else
  4596   if test -n "$CC"; then
  4597   ac_cv_prog_CC="$CC" # Let the user override the test.
  4598 else
  4599   ac_prog_rejected=no
  4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4601 for as_dir in $PATH
  4602 do
  4603   IFS=$as_save_IFS
  4604   test -z "$as_dir" && as_dir=.
  4605   for ac_exec_ext in '' $ac_executable_extensions; do
  4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4608        ac_prog_rejected=yes
  4609        continue
  4610      fi
  4611     ac_cv_prog_CC="cc"
  4612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4613     break 2
  4614   fi
  4615 done
  4616 done
  4617 IFS=$as_save_IFS
  4619 if test $ac_prog_rejected = yes; then
  4620   # We found a bogon in the path, so make sure we never use it.
  4621   set dummy $ac_cv_prog_CC
  4622   shift
  4623   if test $# != 0; then
  4624     # We chose a different compiler from the bogus one.
  4625     # However, it has the same basename, so the bogon will be chosen
  4626     # first if we set CC to just the basename; use the full file name.
  4627     shift
  4628     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4629   fi
  4630 fi
  4631 fi
  4632 fi
  4633 CC=$ac_cv_prog_CC
  4634 if test -n "$CC"; then
  4635   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4636 $as_echo "$CC" >&6; }
  4637 else
  4638   { $as_echo "$as_me:$LINENO: result: no" >&5
  4639 $as_echo "no" >&6; }
  4640 fi
  4643 fi
  4644 if test -z "$CC"; then
  4645   if test -n "$ac_tool_prefix"; then
  4646   for ac_prog in cl.exe
  4647   do
  4648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4651 $as_echo_n "checking for $ac_word... " >&6; }
  4652 if test "${ac_cv_prog_CC+set}" = set; then
  4653   $as_echo_n "(cached) " >&6
  4654 else
  4655   if test -n "$CC"; then
  4656   ac_cv_prog_CC="$CC" # Let the user override the test.
  4657 else
  4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659 for as_dir in $PATH
  4660 do
  4661   IFS=$as_save_IFS
  4662   test -z "$as_dir" && as_dir=.
  4663   for ac_exec_ext in '' $ac_executable_extensions; do
  4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667     break 2
  4668   fi
  4669 done
  4670 done
  4671 IFS=$as_save_IFS
  4673 fi
  4674 fi
  4675 CC=$ac_cv_prog_CC
  4676 if test -n "$CC"; then
  4677   { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4678 $as_echo "$CC" >&6; }
  4679 else
  4680   { $as_echo "$as_me:$LINENO: result: no" >&5
  4681 $as_echo "no" >&6; }
  4682 fi
  4685     test -n "$CC" && break
  4686   done
  4687 fi
  4688 if test -z "$CC"; then
  4689   ac_ct_CC=$CC
  4690   for ac_prog in cl.exe
  4691 do
  4692   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4693 set dummy $ac_prog; ac_word=$2
  4694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4695 $as_echo_n "checking for $ac_word... " >&6; }
  4696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4697   $as_echo_n "(cached) " >&6
  4698 else
  4699   if test -n "$ac_ct_CC"; then
  4700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4701 else
  4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703 for as_dir in $PATH
  4704 do
  4705   IFS=$as_save_IFS
  4706   test -z "$as_dir" && as_dir=.
  4707   for ac_exec_ext in '' $ac_executable_extensions; do
  4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4709     ac_cv_prog_ac_ct_CC="$ac_prog"
  4710     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711     break 2
  4712   fi
  4713 done
  4714 done
  4715 IFS=$as_save_IFS
  4717 fi
  4718 fi
  4719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4720 if test -n "$ac_ct_CC"; then
  4721   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4722 $as_echo "$ac_ct_CC" >&6; }
  4723 else
  4724   { $as_echo "$as_me:$LINENO: result: no" >&5
  4725 $as_echo "no" >&6; }
  4726 fi
  4729   test -n "$ac_ct_CC" && break
  4730 done
  4732   if test "x$ac_ct_CC" = x; then
  4733     CC=""
  4734   else
  4735     case $cross_compiling:$ac_tool_warned in
  4736 yes:)
  4737 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4738 whose name does not start with the host triplet.  If you think this
  4739 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4740 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4741 whose name does not start with the host triplet.  If you think this
  4742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4743 ac_tool_warned=yes ;;
  4744 esac
  4745     CC=$ac_ct_CC
  4746   fi
  4747 fi
  4749 fi
  4752 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4753 See \`config.log' for more details." >&5
  4754 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4755 See \`config.log' for more details." >&2;}
  4756    { (exit 1); exit 1; }; }
  4758 # Provide some information about the compiler.
  4759 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4760 set X $ac_compile
  4761 ac_compiler=$2
  4762 { (ac_try="$ac_compiler --version >&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 --version >&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); }
  4784 { (ac_try="$ac_compiler -V >&5"
  4785 case "(($ac_try" in
  4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4787   *) ac_try_echo=$ac_try;;
  4788 esac
  4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4790 $as_echo "$ac_try_echo") >&5
  4791   (eval "$ac_compiler -V >&5") 2>&5
  4792   ac_status=$?
  4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794   (exit $ac_status); }
  4796 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4799   $as_echo_n "(cached) " >&6
  4800 else
  4801   cat >conftest.$ac_ext <<_ACEOF
  4802 /* confdefs.h.  */
  4803 _ACEOF
  4804 cat confdefs.h >>conftest.$ac_ext
  4805 cat >>conftest.$ac_ext <<_ACEOF
  4806 /* end confdefs.h.  */
  4808 int
  4809 main ()
  4811 #ifndef __GNUC__
  4812        choke me
  4813 #endif
  4816   return 0;
  4818 _ACEOF
  4819 rm -f conftest.$ac_objext
  4820 if { (ac_try="$ac_compile"
  4821 case "(($ac_try" in
  4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4823   *) ac_try_echo=$ac_try;;
  4824 esac
  4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4826 $as_echo "$ac_try_echo") >&5
  4827   (eval "$ac_compile") 2>conftest.er1
  4828   ac_status=$?
  4829   grep -v '^ *+' conftest.er1 >conftest.err
  4830   rm -f conftest.er1
  4831   cat conftest.err >&5
  4832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833   (exit $ac_status); } && {
  4834 	 test -z "$ac_c_werror_flag" ||
  4835 	 test ! -s conftest.err
  4836        } && test -s conftest.$ac_objext; then
  4837   ac_compiler_gnu=yes
  4838 else
  4839   $as_echo "$as_me: failed program was:" >&5
  4840 sed 's/^/| /' conftest.$ac_ext >&5
  4842 	ac_compiler_gnu=no
  4843 fi
  4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4848 fi
  4849 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4851 if test $ac_compiler_gnu = yes; then
  4852   GCC=yes
  4853 else
  4854   GCC=
  4855 fi
  4856 ac_test_CFLAGS=${CFLAGS+set}
  4857 ac_save_CFLAGS=$CFLAGS
  4858 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4860 if test "${ac_cv_prog_cc_g+set}" = set; then
  4861   $as_echo_n "(cached) " >&6
  4862 else
  4863   ac_save_c_werror_flag=$ac_c_werror_flag
  4864    ac_c_werror_flag=yes
  4865    ac_cv_prog_cc_g=no
  4866    CFLAGS="-g"
  4867    cat >conftest.$ac_ext <<_ACEOF
  4868 /* confdefs.h.  */
  4869 _ACEOF
  4870 cat confdefs.h >>conftest.$ac_ext
  4871 cat >>conftest.$ac_ext <<_ACEOF
  4872 /* end confdefs.h.  */
  4874 int
  4875 main ()
  4879   return 0;
  4881 _ACEOF
  4882 rm -f conftest.$ac_objext
  4883 if { (ac_try="$ac_compile"
  4884 case "(($ac_try" in
  4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4886   *) ac_try_echo=$ac_try;;
  4887 esac
  4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4889 $as_echo "$ac_try_echo") >&5
  4890   (eval "$ac_compile") 2>conftest.er1
  4891   ac_status=$?
  4892   grep -v '^ *+' conftest.er1 >conftest.err
  4893   rm -f conftest.er1
  4894   cat conftest.err >&5
  4895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896   (exit $ac_status); } && {
  4897 	 test -z "$ac_c_werror_flag" ||
  4898 	 test ! -s conftest.err
  4899        } && test -s conftest.$ac_objext; then
  4900   ac_cv_prog_cc_g=yes
  4901 else
  4902   $as_echo "$as_me: failed program was:" >&5
  4903 sed 's/^/| /' conftest.$ac_ext >&5
  4905 	CFLAGS=""
  4906       cat >conftest.$ac_ext <<_ACEOF
  4907 /* confdefs.h.  */
  4908 _ACEOF
  4909 cat confdefs.h >>conftest.$ac_ext
  4910 cat >>conftest.$ac_ext <<_ACEOF
  4911 /* end confdefs.h.  */
  4913 int
  4914 main ()
  4918   return 0;
  4920 _ACEOF
  4921 rm -f conftest.$ac_objext
  4922 if { (ac_try="$ac_compile"
  4923 case "(($ac_try" in
  4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925   *) ac_try_echo=$ac_try;;
  4926 esac
  4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4928 $as_echo "$ac_try_echo") >&5
  4929   (eval "$ac_compile") 2>conftest.er1
  4930   ac_status=$?
  4931   grep -v '^ *+' conftest.er1 >conftest.err
  4932   rm -f conftest.er1
  4933   cat conftest.err >&5
  4934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935   (exit $ac_status); } && {
  4936 	 test -z "$ac_c_werror_flag" ||
  4937 	 test ! -s conftest.err
  4938        } && test -s conftest.$ac_objext; then
  4940 else
  4941   $as_echo "$as_me: failed program was:" >&5
  4942 sed 's/^/| /' conftest.$ac_ext >&5
  4944 	ac_c_werror_flag=$ac_save_c_werror_flag
  4945 	 CFLAGS="-g"
  4946 	 cat >conftest.$ac_ext <<_ACEOF
  4947 /* confdefs.h.  */
  4948 _ACEOF
  4949 cat confdefs.h >>conftest.$ac_ext
  4950 cat >>conftest.$ac_ext <<_ACEOF
  4951 /* end confdefs.h.  */
  4953 int
  4954 main ()
  4958   return 0;
  4960 _ACEOF
  4961 rm -f conftest.$ac_objext
  4962 if { (ac_try="$ac_compile"
  4963 case "(($ac_try" in
  4964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4965   *) ac_try_echo=$ac_try;;
  4966 esac
  4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4968 $as_echo "$ac_try_echo") >&5
  4969   (eval "$ac_compile") 2>conftest.er1
  4970   ac_status=$?
  4971   grep -v '^ *+' conftest.er1 >conftest.err
  4972   rm -f conftest.er1
  4973   cat conftest.err >&5
  4974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4975   (exit $ac_status); } && {
  4976 	 test -z "$ac_c_werror_flag" ||
  4977 	 test ! -s conftest.err
  4978        } && test -s conftest.$ac_objext; then
  4979   ac_cv_prog_cc_g=yes
  4980 else
  4981   $as_echo "$as_me: failed program was:" >&5
  4982 sed 's/^/| /' conftest.$ac_ext >&5
  4985 fi
  4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4988 fi
  4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991 fi
  4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994    ac_c_werror_flag=$ac_save_c_werror_flag
  4995 fi
  4996 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4997 $as_echo "$ac_cv_prog_cc_g" >&6; }
  4998 if test "$ac_test_CFLAGS" = set; then
  4999   CFLAGS=$ac_save_CFLAGS
  5000 elif test $ac_cv_prog_cc_g = yes; then
  5001   if test "$GCC" = yes; then
  5002     CFLAGS="-g -O2"
  5003   else
  5004     CFLAGS="-g"
  5005   fi
  5006 else
  5007   if test "$GCC" = yes; then
  5008     CFLAGS="-O2"
  5009   else
  5010     CFLAGS=
  5011   fi
  5012 fi
  5013 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5015 if test "${ac_cv_prog_cc_c89+set}" = set; then
  5016   $as_echo_n "(cached) " >&6
  5017 else
  5018   ac_cv_prog_cc_c89=no
  5019 ac_save_CC=$CC
  5020 cat >conftest.$ac_ext <<_ACEOF
  5021 /* confdefs.h.  */
  5022 _ACEOF
  5023 cat confdefs.h >>conftest.$ac_ext
  5024 cat >>conftest.$ac_ext <<_ACEOF
  5025 /* end confdefs.h.  */
  5026 #include <stdarg.h>
  5027 #include <stdio.h>
  5028 #include <sys/types.h>
  5029 #include <sys/stat.h>
  5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5031 struct buf { int x; };
  5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5033 static char *e (p, i)
  5034      char **p;
  5035      int i;
  5037   return p[i];
  5039 static char *f (char * (*g) (char **, int), char **p, ...)
  5041   char *s;
  5042   va_list v;
  5043   va_start (v,p);
  5044   s = g (p, va_arg (v,int));
  5045   va_end (v);
  5046   return s;
  5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5050    function prototypes and stuff, but not '\xHH' hex character constants.
  5051    These don't provoke an error unfortunately, instead are silently treated
  5052    as 'x'.  The following induces an error, until -std is added to get
  5053    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5054    array size at least.  It's necessary to write '\x00'==0 to get something
  5055    that's true only with -std.  */
  5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5059    inside strings and character constants.  */
  5060 #define FOO(x) 'x'
  5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5063 int test (int i, double x);
  5064 struct s1 {int (*f) (int a);};
  5065 struct s2 {int (*f) (double a);};
  5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5067 int argc;
  5068 char **argv;
  5069 int
  5070 main ()
  5072 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5074   return 0;
  5076 _ACEOF
  5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5078 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5079 do
  5080   CC="$ac_save_CC $ac_arg"
  5081   rm -f conftest.$ac_objext
  5082 if { (ac_try="$ac_compile"
  5083 case "(($ac_try" in
  5084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5085   *) ac_try_echo=$ac_try;;
  5086 esac
  5087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5088 $as_echo "$ac_try_echo") >&5
  5089   (eval "$ac_compile") 2>conftest.er1
  5090   ac_status=$?
  5091   grep -v '^ *+' conftest.er1 >conftest.err
  5092   rm -f conftest.er1
  5093   cat conftest.err >&5
  5094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095   (exit $ac_status); } && {
  5096 	 test -z "$ac_c_werror_flag" ||
  5097 	 test ! -s conftest.err
  5098        } && test -s conftest.$ac_objext; then
  5099   ac_cv_prog_cc_c89=$ac_arg
  5100 else
  5101   $as_echo "$as_me: failed program was:" >&5
  5102 sed 's/^/| /' conftest.$ac_ext >&5
  5105 fi
  5107 rm -f core conftest.err conftest.$ac_objext
  5108   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5109 done
  5110 rm -f conftest.$ac_ext
  5111 CC=$ac_save_CC
  5113 fi
  5114 # AC_CACHE_VAL
  5115 case "x$ac_cv_prog_cc_c89" in
  5116   x)
  5117     { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5118 $as_echo "none needed" >&6; } ;;
  5119   xno)
  5120     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5121 $as_echo "unsupported" >&6; } ;;
  5122   *)
  5123     CC="$CC $ac_cv_prog_cc_c89"
  5124     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5126 esac
  5129 ac_ext=c
  5130 ac_cpp='$CPP $CPPFLAGS'
  5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5135 depcc="$CC"   am_compiler_list=
  5137 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5138 $as_echo_n "checking dependency style of $depcc... " >&6; }
  5139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  5140   $as_echo_n "(cached) " >&6
  5141 else
  5142   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5143   # We make a subdir and do the tests there.  Otherwise we can end up
  5144   # making bogus files that we don't know about and never remove.  For
  5145   # instance it was reported that on HP-UX the gcc test will end up
  5146   # making a dummy file named `D' -- because `-MD' means `put the output
  5147   # in D'.
  5148   mkdir conftest.dir
  5149   # Copy depcomp to subdir because otherwise we won't find it if we're
  5150   # using a relative directory.
  5151   cp "$am_depcomp" conftest.dir
  5152   cd conftest.dir
  5153   # We will build objects and dependencies in a subdirectory because
  5154   # it helps to detect inapplicable dependency modes.  For instance
  5155   # both Tru64's cc and ICC support -MD to output dependencies as a
  5156   # side effect of compilation, but ICC will put the dependencies in
  5157   # the current directory while Tru64 will put them in the object
  5158   # directory.
  5159   mkdir sub
  5161   am_cv_CC_dependencies_compiler_type=none
  5162   if test "$am_compiler_list" = ""; then
  5163      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5164   fi
  5165   for depmode in $am_compiler_list; do
  5166     # Setup a source with many dependencies, because some compilers
  5167     # like to wrap large dependency lists on column 80 (with \), and
  5168     # we should not choose a depcomp mode which is confused by this.
  5170     # We need to recreate these files for each test, as the compiler may
  5171     # overwrite some of them when testing with obscure command lines.
  5172     # This happens at least with the AIX C compiler.
  5173     : > sub/conftest.c
  5174     for i in 1 2 3 4 5 6; do
  5175       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5176       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5177       # Solaris 8's {/usr,}/bin/sh.
  5178       touch sub/conftst$i.h
  5179     done
  5180     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5182     case $depmode in
  5183     nosideeffect)
  5184       # after this tag, mechanisms are not by side-effect, so they'll
  5185       # only be used when explicitly requested
  5186       if test "x$enable_dependency_tracking" = xyes; then
  5187 	continue
  5188       else
  5189 	break
  5190       fi
  5191       ;;
  5192     none) break ;;
  5193     esac
  5194     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5195     # mode.  It turns out that the SunPro C++ compiler does not properly
  5196     # handle `-M -o', and we need to detect this.
  5197     if depmode=$depmode \
  5198        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5199        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5200        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5201          >/dev/null 2>conftest.err &&
  5202        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5203        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5204        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5205       # icc doesn't choke on unknown options, it will just issue warnings
  5206       # or remarks (even with -Werror).  So we grep stderr for any message
  5207       # that says an option was ignored or not supported.
  5208       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5209       #   icc: Command line warning: ignoring option '-M'; no argument required
  5210       # The diagnosis changed in icc 8.0:
  5211       #   icc: Command line remark: option '-MP' not supported
  5212       if (grep 'ignoring option' conftest.err ||
  5213           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5214         am_cv_CC_dependencies_compiler_type=$depmode
  5215         break
  5216       fi
  5217     fi
  5218   done
  5220   cd ..
  5221   rm -rf conftest.dir
  5222 else
  5223   am_cv_CC_dependencies_compiler_type=none
  5224 fi
  5226 fi
  5227 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5228 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5233 if
  5234   test "x$enable_dependency_tracking" != xno \
  5235   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5236   am__fastdepCC_TRUE=
  5237   am__fastdepCC_FALSE='#'
  5238 else
  5239   am__fastdepCC_TRUE='#'
  5240   am__fastdepCC_FALSE=
  5241 fi
  5245 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5247 ac_ext=m
  5248 ac_cpp='$OBJCPP $CPPFLAGS'
  5249 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5250 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5251 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  5252 if test -n "$ac_tool_prefix"; then
  5253   for ac_prog in gcc objcc objc cc CC
  5254   do
  5255     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5258 $as_echo_n "checking for $ac_word... " >&6; }
  5259 if test "${ac_cv_prog_OBJC+set}" = set; then
  5260   $as_echo_n "(cached) " >&6
  5261 else
  5262   if test -n "$OBJC"; then
  5263   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  5264 else
  5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266 for as_dir in $PATH
  5267 do
  5268   IFS=$as_save_IFS
  5269   test -z "$as_dir" && as_dir=.
  5270   for ac_exec_ext in '' $ac_executable_extensions; do
  5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5272     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  5273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274     break 2
  5275   fi
  5276 done
  5277 done
  5278 IFS=$as_save_IFS
  5280 fi
  5281 fi
  5282 OBJC=$ac_cv_prog_OBJC
  5283 if test -n "$OBJC"; then
  5284   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  5285 $as_echo "$OBJC" >&6; }
  5286 else
  5287   { $as_echo "$as_me:$LINENO: result: no" >&5
  5288 $as_echo "no" >&6; }
  5289 fi
  5292     test -n "$OBJC" && break
  5293   done
  5294 fi
  5295 if test -z "$OBJC"; then
  5296   ac_ct_OBJC=$OBJC
  5297   for ac_prog in gcc objcc objc cc CC
  5298 do
  5299   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5300 set dummy $ac_prog; ac_word=$2
  5301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5302 $as_echo_n "checking for $ac_word... " >&6; }
  5303 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  5304   $as_echo_n "(cached) " >&6
  5305 else
  5306   if test -n "$ac_ct_OBJC"; then
  5307   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  5308 else
  5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310 for as_dir in $PATH
  5311 do
  5312   IFS=$as_save_IFS
  5313   test -z "$as_dir" && as_dir=.
  5314   for ac_exec_ext in '' $ac_executable_extensions; do
  5315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5316     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  5317     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318     break 2
  5319   fi
  5320 done
  5321 done
  5322 IFS=$as_save_IFS
  5324 fi
  5325 fi
  5326 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  5327 if test -n "$ac_ct_OBJC"; then
  5328   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  5329 $as_echo "$ac_ct_OBJC" >&6; }
  5330 else
  5331   { $as_echo "$as_me:$LINENO: result: no" >&5
  5332 $as_echo "no" >&6; }
  5333 fi
  5336   test -n "$ac_ct_OBJC" && break
  5337 done
  5339   if test "x$ac_ct_OBJC" = x; then
  5340     OBJC="gcc"
  5341   else
  5342     case $cross_compiling:$ac_tool_warned in
  5343 yes:)
  5344 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5345 whose name does not start with the host triplet.  If you think this
  5346 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5347 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5348 whose name does not start with the host triplet.  If you think this
  5349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5350 ac_tool_warned=yes ;;
  5351 esac
  5352     OBJC=$ac_ct_OBJC
  5353   fi
  5354 fi
  5356 # Provide some information about the compiler.
  5357 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  5358 set X $ac_compile
  5359 ac_compiler=$2
  5360 { (ac_try="$ac_compiler --version >&5"
  5361 case "(($ac_try" in
  5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5363   *) ac_try_echo=$ac_try;;
  5364 esac
  5365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5366 $as_echo "$ac_try_echo") >&5
  5367   (eval "$ac_compiler --version >&5") 2>&5
  5368   ac_status=$?
  5369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370   (exit $ac_status); }
  5371 { (ac_try="$ac_compiler -v >&5"
  5372 case "(($ac_try" in
  5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5374   *) ac_try_echo=$ac_try;;
  5375 esac
  5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5377 $as_echo "$ac_try_echo") >&5
  5378   (eval "$ac_compiler -v >&5") 2>&5
  5379   ac_status=$?
  5380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5381   (exit $ac_status); }
  5382 { (ac_try="$ac_compiler -V >&5"
  5383 case "(($ac_try" in
  5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5385   *) ac_try_echo=$ac_try;;
  5386 esac
  5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5388 $as_echo "$ac_try_echo") >&5
  5389   (eval "$ac_compiler -V >&5") 2>&5
  5390   ac_status=$?
  5391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392   (exit $ac_status); }
  5394 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  5395 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  5396 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  5397   $as_echo_n "(cached) " >&6
  5398 else
  5399   cat >conftest.$ac_ext <<_ACEOF
  5400 /* confdefs.h.  */
  5401 _ACEOF
  5402 cat confdefs.h >>conftest.$ac_ext
  5403 cat >>conftest.$ac_ext <<_ACEOF
  5404 /* end confdefs.h.  */
  5406 int
  5407 main ()
  5409 #ifndef __GNUC__
  5410        choke me
  5411 #endif
  5414   return 0;
  5416 _ACEOF
  5417 rm -f conftest.$ac_objext
  5418 if { (ac_try="$ac_compile"
  5419 case "(($ac_try" in
  5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5421   *) ac_try_echo=$ac_try;;
  5422 esac
  5423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5424 $as_echo "$ac_try_echo") >&5
  5425   (eval "$ac_compile") 2>conftest.er1
  5426   ac_status=$?
  5427   grep -v '^ *+' conftest.er1 >conftest.err
  5428   rm -f conftest.er1
  5429   cat conftest.err >&5
  5430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431   (exit $ac_status); } && {
  5432 	 test -z "$ac_objc_werror_flag" ||
  5433 	 test ! -s conftest.err
  5434        } && test -s conftest.$ac_objext; then
  5435   ac_compiler_gnu=yes
  5436 else
  5437   $as_echo "$as_me: failed program was:" >&5
  5438 sed 's/^/| /' conftest.$ac_ext >&5
  5440 	ac_compiler_gnu=no
  5441 fi
  5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5444 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  5446 fi
  5447 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  5448 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  5449 if test $ac_compiler_gnu = yes; then
  5450   GOBJC=yes
  5451 else
  5452   GOBJC=
  5453 fi
  5454 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  5455 ac_save_OBJCFLAGS=$OBJCFLAGS
  5456 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  5457 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  5458 if test "${ac_cv_prog_objc_g+set}" = set; then
  5459   $as_echo_n "(cached) " >&6
  5460 else
  5461   ac_save_objc_werror_flag=$ac_objc_werror_flag
  5462    ac_objc_werror_flag=yes
  5463    ac_cv_prog_objc_g=no
  5464    OBJCFLAGS="-g"
  5465    cat >conftest.$ac_ext <<_ACEOF
  5466 /* confdefs.h.  */
  5467 _ACEOF
  5468 cat confdefs.h >>conftest.$ac_ext
  5469 cat >>conftest.$ac_ext <<_ACEOF
  5470 /* end confdefs.h.  */
  5472 int
  5473 main ()
  5477   return 0;
  5479 _ACEOF
  5480 rm -f conftest.$ac_objext
  5481 if { (ac_try="$ac_compile"
  5482 case "(($ac_try" in
  5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5484   *) ac_try_echo=$ac_try;;
  5485 esac
  5486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5487 $as_echo "$ac_try_echo") >&5
  5488   (eval "$ac_compile") 2>conftest.er1
  5489   ac_status=$?
  5490   grep -v '^ *+' conftest.er1 >conftest.err
  5491   rm -f conftest.er1
  5492   cat conftest.err >&5
  5493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494   (exit $ac_status); } && {
  5495 	 test -z "$ac_objc_werror_flag" ||
  5496 	 test ! -s conftest.err
  5497        } && test -s conftest.$ac_objext; then
  5498   ac_cv_prog_objc_g=yes
  5499 else
  5500   $as_echo "$as_me: failed program was:" >&5
  5501 sed 's/^/| /' conftest.$ac_ext >&5
  5503 	OBJCFLAGS=""
  5504       cat >conftest.$ac_ext <<_ACEOF
  5505 /* confdefs.h.  */
  5506 _ACEOF
  5507 cat confdefs.h >>conftest.$ac_ext
  5508 cat >>conftest.$ac_ext <<_ACEOF
  5509 /* end confdefs.h.  */
  5511 int
  5512 main ()
  5516   return 0;
  5518 _ACEOF
  5519 rm -f conftest.$ac_objext
  5520 if { (ac_try="$ac_compile"
  5521 case "(($ac_try" in
  5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5523   *) ac_try_echo=$ac_try;;
  5524 esac
  5525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5526 $as_echo "$ac_try_echo") >&5
  5527   (eval "$ac_compile") 2>conftest.er1
  5528   ac_status=$?
  5529   grep -v '^ *+' conftest.er1 >conftest.err
  5530   rm -f conftest.er1
  5531   cat conftest.err >&5
  5532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533   (exit $ac_status); } && {
  5534 	 test -z "$ac_objc_werror_flag" ||
  5535 	 test ! -s conftest.err
  5536        } && test -s conftest.$ac_objext; then
  5538 else
  5539   $as_echo "$as_me: failed program was:" >&5
  5540 sed 's/^/| /' conftest.$ac_ext >&5
  5542 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  5543 	 OBJCFLAGS="-g"
  5544 	 cat >conftest.$ac_ext <<_ACEOF
  5545 /* confdefs.h.  */
  5546 _ACEOF
  5547 cat confdefs.h >>conftest.$ac_ext
  5548 cat >>conftest.$ac_ext <<_ACEOF
  5549 /* end confdefs.h.  */
  5551 int
  5552 main ()
  5556   return 0;
  5558 _ACEOF
  5559 rm -f conftest.$ac_objext
  5560 if { (ac_try="$ac_compile"
  5561 case "(($ac_try" in
  5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5563   *) ac_try_echo=$ac_try;;
  5564 esac
  5565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5566 $as_echo "$ac_try_echo") >&5
  5567   (eval "$ac_compile") 2>conftest.er1
  5568   ac_status=$?
  5569   grep -v '^ *+' conftest.er1 >conftest.err
  5570   rm -f conftest.er1
  5571   cat conftest.err >&5
  5572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5573   (exit $ac_status); } && {
  5574 	 test -z "$ac_objc_werror_flag" ||
  5575 	 test ! -s conftest.err
  5576        } && test -s conftest.$ac_objext; then
  5577   ac_cv_prog_objc_g=yes
  5578 else
  5579   $as_echo "$as_me: failed program was:" >&5
  5580 sed 's/^/| /' conftest.$ac_ext >&5
  5583 fi
  5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5586 fi
  5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5589 fi
  5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5592    ac_objc_werror_flag=$ac_save_objc_werror_flag
  5593 fi
  5594 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  5595 $as_echo "$ac_cv_prog_objc_g" >&6; }
  5596 if test "$ac_test_OBJCFLAGS" = set; then
  5597   OBJCFLAGS=$ac_save_OBJCFLAGS
  5598 elif test $ac_cv_prog_objc_g = yes; then
  5599   if test "$GOBJC" = yes; then
  5600     OBJCFLAGS="-g -O2"
  5601   else
  5602     OBJCFLAGS="-g"
  5603   fi
  5604 else
  5605   if test "$GOBJC" = yes; then
  5606     OBJCFLAGS="-O2"
  5607   else
  5608     OBJCFLAGS=
  5609   fi
  5610 fi
  5611 ac_ext=c
  5612 ac_cpp='$CPP $CPPFLAGS'
  5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5617 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5618 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5619 if test "${ac_cv_path_SED+set}" = set; then
  5620   $as_echo_n "(cached) " >&6
  5621 else
  5622             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5623      for ac_i in 1 2 3 4 5 6 7; do
  5624        ac_script="$ac_script$as_nl$ac_script"
  5625      done
  5626      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5627      $as_unset ac_script || ac_script=
  5628      if test -z "$SED"; then
  5629   ac_path_SED_found=false
  5630   # Loop through the user's path and test for each of PROGNAME-LIST
  5631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5632 for as_dir in $PATH
  5633 do
  5634   IFS=$as_save_IFS
  5635   test -z "$as_dir" && as_dir=.
  5636   for ac_prog in sed gsed; do
  5637     for ac_exec_ext in '' $ac_executable_extensions; do
  5638       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5639       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5640 # Check for GNU ac_path_SED and select it if it is found.
  5641   # Check for GNU $ac_path_SED
  5642 case `"$ac_path_SED" --version 2>&1` in
  5643 *GNU*)
  5644   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5645 *)
  5646   ac_count=0
  5647   $as_echo_n 0123456789 >"conftest.in"
  5648   while :
  5649   do
  5650     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5651     mv "conftest.tmp" "conftest.in"
  5652     cp "conftest.in" "conftest.nl"
  5653     $as_echo '' >> "conftest.nl"
  5654     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5656     ac_count=`expr $ac_count + 1`
  5657     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5658       # Best one so far, save it but keep looking for a better one
  5659       ac_cv_path_SED="$ac_path_SED"
  5660       ac_path_SED_max=$ac_count
  5661     fi
  5662     # 10*(2^10) chars as input seems more than enough
  5663     test $ac_count -gt 10 && break
  5664   done
  5665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5666 esac
  5668       $ac_path_SED_found && break 3
  5669     done
  5670   done
  5671 done
  5672 IFS=$as_save_IFS
  5673   if test -z "$ac_cv_path_SED"; then
  5674     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5675 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5676    { (exit 1); exit 1; }; }
  5677   fi
  5678 else
  5679   ac_cv_path_SED=$SED
  5680 fi
  5682 fi
  5683 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5684 $as_echo "$ac_cv_path_SED" >&6; }
  5685  SED="$ac_cv_path_SED"
  5686   rm -f conftest.sed
  5688 # By default we simply use the C compiler to build assembly code.
  5690 test "${CCAS+set}" = set || CCAS=$CC
  5691 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5695 ac_ext=c
  5696 ac_cpp='$CPP $CPPFLAGS'
  5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5700 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5701 $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5702 # On Suns, sometimes $CPP names a directory.
  5703 if test -n "$CPP" && test -d "$CPP"; then
  5704   CPP=
  5705 fi
  5706 if test -z "$CPP"; then
  5707   if test "${ac_cv_prog_CPP+set}" = set; then
  5708   $as_echo_n "(cached) " >&6
  5709 else
  5710       # Double quotes because CPP needs to be expanded
  5711     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5712     do
  5713       ac_preproc_ok=false
  5714 for ac_c_preproc_warn_flag in '' yes
  5715 do
  5716   # Use a header file that comes with gcc, so configuring glibc
  5717   # with a fresh cross-compiler works.
  5718   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5719   # <limits.h> exists even on freestanding compilers.
  5720   # On the NeXT, cc -E runs the code through the compiler's parser,
  5721   # not just through cpp. "Syntax error" is here to catch this case.
  5722   cat >conftest.$ac_ext <<_ACEOF
  5723 /* confdefs.h.  */
  5724 _ACEOF
  5725 cat confdefs.h >>conftest.$ac_ext
  5726 cat >>conftest.$ac_ext <<_ACEOF
  5727 /* end confdefs.h.  */
  5728 #ifdef __STDC__
  5729 # include <limits.h>
  5730 #else
  5731 # include <assert.h>
  5732 #endif
  5733 		     Syntax error
  5734 _ACEOF
  5735 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5736 case "(($ac_try" in
  5737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5738   *) ac_try_echo=$ac_try;;
  5739 esac
  5740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5741 $as_echo "$ac_try_echo") >&5
  5742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5743   ac_status=$?
  5744   grep -v '^ *+' conftest.er1 >conftest.err
  5745   rm -f conftest.er1
  5746   cat conftest.err >&5
  5747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748   (exit $ac_status); } >/dev/null && {
  5749 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5750 	 test ! -s conftest.err
  5751        }; then
  5753 else
  5754   $as_echo "$as_me: failed program was:" >&5
  5755 sed 's/^/| /' conftest.$ac_ext >&5
  5757   # Broken: fails on valid input.
  5758 continue
  5759 fi
  5761 rm -f conftest.err conftest.$ac_ext
  5763   # OK, works on sane cases.  Now check whether nonexistent headers
  5764   # can be detected and how.
  5765   cat >conftest.$ac_ext <<_ACEOF
  5766 /* confdefs.h.  */
  5767 _ACEOF
  5768 cat confdefs.h >>conftest.$ac_ext
  5769 cat >>conftest.$ac_ext <<_ACEOF
  5770 /* end confdefs.h.  */
  5771 #include <ac_nonexistent.h>
  5772 _ACEOF
  5773 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5774 case "(($ac_try" in
  5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5776   *) ac_try_echo=$ac_try;;
  5777 esac
  5778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5779 $as_echo "$ac_try_echo") >&5
  5780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5781   ac_status=$?
  5782   grep -v '^ *+' conftest.er1 >conftest.err
  5783   rm -f conftest.er1
  5784   cat conftest.err >&5
  5785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5786   (exit $ac_status); } >/dev/null && {
  5787 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5788 	 test ! -s conftest.err
  5789        }; then
  5790   # Broken: success on invalid input.
  5791 continue
  5792 else
  5793   $as_echo "$as_me: failed program was:" >&5
  5794 sed 's/^/| /' conftest.$ac_ext >&5
  5796   # Passes both tests.
  5797 ac_preproc_ok=:
  5798 break
  5799 fi
  5801 rm -f conftest.err conftest.$ac_ext
  5803 done
  5804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5805 rm -f conftest.err conftest.$ac_ext
  5806 if $ac_preproc_ok; then
  5807   break
  5808 fi
  5810     done
  5811     ac_cv_prog_CPP=$CPP
  5813 fi
  5814   CPP=$ac_cv_prog_CPP
  5815 else
  5816   ac_cv_prog_CPP=$CPP
  5817 fi
  5818 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5819 $as_echo "$CPP" >&6; }
  5820 ac_preproc_ok=false
  5821 for ac_c_preproc_warn_flag in '' yes
  5822 do
  5823   # Use a header file that comes with gcc, so configuring glibc
  5824   # with a fresh cross-compiler works.
  5825   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5826   # <limits.h> exists even on freestanding compilers.
  5827   # On the NeXT, cc -E runs the code through the compiler's parser,
  5828   # not just through cpp. "Syntax error" is here to catch this case.
  5829   cat >conftest.$ac_ext <<_ACEOF
  5830 /* confdefs.h.  */
  5831 _ACEOF
  5832 cat confdefs.h >>conftest.$ac_ext
  5833 cat >>conftest.$ac_ext <<_ACEOF
  5834 /* end confdefs.h.  */
  5835 #ifdef __STDC__
  5836 # include <limits.h>
  5837 #else
  5838 # include <assert.h>
  5839 #endif
  5840 		     Syntax error
  5841 _ACEOF
  5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5843 case "(($ac_try" in
  5844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5845   *) ac_try_echo=$ac_try;;
  5846 esac
  5847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5848 $as_echo "$ac_try_echo") >&5
  5849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5850   ac_status=$?
  5851   grep -v '^ *+' conftest.er1 >conftest.err
  5852   rm -f conftest.er1
  5853   cat conftest.err >&5
  5854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5855   (exit $ac_status); } >/dev/null && {
  5856 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5857 	 test ! -s conftest.err
  5858        }; then
  5860 else
  5861   $as_echo "$as_me: failed program was:" >&5
  5862 sed 's/^/| /' conftest.$ac_ext >&5
  5864   # Broken: fails on valid input.
  5865 continue
  5866 fi
  5868 rm -f conftest.err conftest.$ac_ext
  5870   # OK, works on sane cases.  Now check whether nonexistent headers
  5871   # can be detected and how.
  5872   cat >conftest.$ac_ext <<_ACEOF
  5873 /* confdefs.h.  */
  5874 _ACEOF
  5875 cat confdefs.h >>conftest.$ac_ext
  5876 cat >>conftest.$ac_ext <<_ACEOF
  5877 /* end confdefs.h.  */
  5878 #include <ac_nonexistent.h>
  5879 _ACEOF
  5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5881 case "(($ac_try" in
  5882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5883   *) ac_try_echo=$ac_try;;
  5884 esac
  5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5886 $as_echo "$ac_try_echo") >&5
  5887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5888   ac_status=$?
  5889   grep -v '^ *+' conftest.er1 >conftest.err
  5890   rm -f conftest.er1
  5891   cat conftest.err >&5
  5892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893   (exit $ac_status); } >/dev/null && {
  5894 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5895 	 test ! -s conftest.err
  5896        }; then
  5897   # Broken: success on invalid input.
  5898 continue
  5899 else
  5900   $as_echo "$as_me: failed program was:" >&5
  5901 sed 's/^/| /' conftest.$ac_ext >&5
  5903   # Passes both tests.
  5904 ac_preproc_ok=:
  5905 break
  5906 fi
  5908 rm -f conftest.err conftest.$ac_ext
  5910 done
  5911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5912 rm -f conftest.err conftest.$ac_ext
  5913 if $ac_preproc_ok; then
  5915 else
  5916   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5917 See \`config.log' for more details." >&5
  5918 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5919 See \`config.log' for more details." >&2;}
  5920    { (exit 1); exit 1; }; }
  5921 fi
  5923 ac_ext=c
  5924 ac_cpp='$CPP $CPPFLAGS'
  5925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5930 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5931 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5932 if test "${ac_cv_path_GREP+set}" = set; then
  5933   $as_echo_n "(cached) " >&6
  5934 else
  5935   if test -z "$GREP"; then
  5936   ac_path_GREP_found=false
  5937   # Loop through the user's path and test for each of PROGNAME-LIST
  5938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5940 do
  5941   IFS=$as_save_IFS
  5942   test -z "$as_dir" && as_dir=.
  5943   for ac_prog in grep ggrep; do
  5944     for ac_exec_ext in '' $ac_executable_extensions; do
  5945       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5946       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5947 # Check for GNU ac_path_GREP and select it if it is found.
  5948   # Check for GNU $ac_path_GREP
  5949 case `"$ac_path_GREP" --version 2>&1` in
  5950 *GNU*)
  5951   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5952 *)
  5953   ac_count=0
  5954   $as_echo_n 0123456789 >"conftest.in"
  5955   while :
  5956   do
  5957     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5958     mv "conftest.tmp" "conftest.in"
  5959     cp "conftest.in" "conftest.nl"
  5960     $as_echo 'GREP' >> "conftest.nl"
  5961     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5962     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5963     ac_count=`expr $ac_count + 1`
  5964     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5965       # Best one so far, save it but keep looking for a better one
  5966       ac_cv_path_GREP="$ac_path_GREP"
  5967       ac_path_GREP_max=$ac_count
  5968     fi
  5969     # 10*(2^10) chars as input seems more than enough
  5970     test $ac_count -gt 10 && break
  5971   done
  5972   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5973 esac
  5975       $ac_path_GREP_found && break 3
  5976     done
  5977   done
  5978 done
  5979 IFS=$as_save_IFS
  5980   if test -z "$ac_cv_path_GREP"; then
  5981     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5982 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5983    { (exit 1); exit 1; }; }
  5984   fi
  5985 else
  5986   ac_cv_path_GREP=$GREP
  5987 fi
  5989 fi
  5990 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5991 $as_echo "$ac_cv_path_GREP" >&6; }
  5992  GREP="$ac_cv_path_GREP"
  5995 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5996 $as_echo_n "checking for egrep... " >&6; }
  5997 if test "${ac_cv_path_EGREP+set}" = set; then
  5998   $as_echo_n "(cached) " >&6
  5999 else
  6000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6001    then ac_cv_path_EGREP="$GREP -E"
  6002    else
  6003      if test -z "$EGREP"; then
  6004   ac_path_EGREP_found=false
  6005   # Loop through the user's path and test for each of PROGNAME-LIST
  6006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6008 do
  6009   IFS=$as_save_IFS
  6010   test -z "$as_dir" && as_dir=.
  6011   for ac_prog in egrep; do
  6012     for ac_exec_ext in '' $ac_executable_extensions; do
  6013       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6014       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  6015 # Check for GNU ac_path_EGREP and select it if it is found.
  6016   # Check for GNU $ac_path_EGREP
  6017 case `"$ac_path_EGREP" --version 2>&1` in
  6018 *GNU*)
  6019   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6020 *)
  6021   ac_count=0
  6022   $as_echo_n 0123456789 >"conftest.in"
  6023   while :
  6024   do
  6025     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6026     mv "conftest.tmp" "conftest.in"
  6027     cp "conftest.in" "conftest.nl"
  6028     $as_echo 'EGREP' >> "conftest.nl"
  6029     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6031     ac_count=`expr $ac_count + 1`
  6032     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6033       # Best one so far, save it but keep looking for a better one
  6034       ac_cv_path_EGREP="$ac_path_EGREP"
  6035       ac_path_EGREP_max=$ac_count
  6036     fi
  6037     # 10*(2^10) chars as input seems more than enough
  6038     test $ac_count -gt 10 && break
  6039   done
  6040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6041 esac
  6043       $ac_path_EGREP_found && break 3
  6044     done
  6045   done
  6046 done
  6047 IFS=$as_save_IFS
  6048   if test -z "$ac_cv_path_EGREP"; then
  6049     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6050 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6051    { (exit 1); exit 1; }; }
  6052   fi
  6053 else
  6054   ac_cv_path_EGREP=$EGREP
  6055 fi
  6057    fi
  6058 fi
  6059 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  6060 $as_echo "$ac_cv_path_EGREP" >&6; }
  6061  EGREP="$ac_cv_path_EGREP"
  6064 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6065 $as_echo_n "checking for ANSI C header files... " >&6; }
  6066 if test "${ac_cv_header_stdc+set}" = set; then
  6067   $as_echo_n "(cached) " >&6
  6068 else
  6069   cat >conftest.$ac_ext <<_ACEOF
  6070 /* confdefs.h.  */
  6071 _ACEOF
  6072 cat confdefs.h >>conftest.$ac_ext
  6073 cat >>conftest.$ac_ext <<_ACEOF
  6074 /* end confdefs.h.  */
  6075 #include <stdlib.h>
  6076 #include <stdarg.h>
  6077 #include <string.h>
  6078 #include <float.h>
  6080 int
  6081 main ()
  6085   return 0;
  6087 _ACEOF
  6088 rm -f conftest.$ac_objext
  6089 if { (ac_try="$ac_compile"
  6090 case "(($ac_try" in
  6091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6092   *) ac_try_echo=$ac_try;;
  6093 esac
  6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6095 $as_echo "$ac_try_echo") >&5
  6096   (eval "$ac_compile") 2>conftest.er1
  6097   ac_status=$?
  6098   grep -v '^ *+' conftest.er1 >conftest.err
  6099   rm -f conftest.er1
  6100   cat conftest.err >&5
  6101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102   (exit $ac_status); } && {
  6103 	 test -z "$ac_c_werror_flag" ||
  6104 	 test ! -s conftest.err
  6105        } && test -s conftest.$ac_objext; then
  6106   ac_cv_header_stdc=yes
  6107 else
  6108   $as_echo "$as_me: failed program was:" >&5
  6109 sed 's/^/| /' conftest.$ac_ext >&5
  6111 	ac_cv_header_stdc=no
  6112 fi
  6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6116 if test $ac_cv_header_stdc = yes; then
  6117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6118   cat >conftest.$ac_ext <<_ACEOF
  6119 /* confdefs.h.  */
  6120 _ACEOF
  6121 cat confdefs.h >>conftest.$ac_ext
  6122 cat >>conftest.$ac_ext <<_ACEOF
  6123 /* end confdefs.h.  */
  6124 #include <string.h>
  6126 _ACEOF
  6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6128   $EGREP "memchr" >/dev/null 2>&1; then
  6130 else
  6131   ac_cv_header_stdc=no
  6132 fi
  6133 rm -f conftest*
  6135 fi
  6137 if test $ac_cv_header_stdc = yes; then
  6138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6139   cat >conftest.$ac_ext <<_ACEOF
  6140 /* confdefs.h.  */
  6141 _ACEOF
  6142 cat confdefs.h >>conftest.$ac_ext
  6143 cat >>conftest.$ac_ext <<_ACEOF
  6144 /* end confdefs.h.  */
  6145 #include <stdlib.h>
  6147 _ACEOF
  6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6149   $EGREP "free" >/dev/null 2>&1; then
  6151 else
  6152   ac_cv_header_stdc=no
  6153 fi
  6154 rm -f conftest*
  6156 fi
  6158 if test $ac_cv_header_stdc = yes; then
  6159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6160   if test "$cross_compiling" = yes; then
  6162 else
  6163   cat >conftest.$ac_ext <<_ACEOF
  6164 /* confdefs.h.  */
  6165 _ACEOF
  6166 cat confdefs.h >>conftest.$ac_ext
  6167 cat >>conftest.$ac_ext <<_ACEOF
  6168 /* end confdefs.h.  */
  6169 #include <ctype.h>
  6170 #include <stdlib.h>
  6171 #if ((' ' & 0x0FF) == 0x020)
  6172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6174 #else
  6175 # define ISLOWER(c) \
  6176 		   (('a' <= (c) && (c) <= 'i') \
  6177 		     || ('j' <= (c) && (c) <= 'r') \
  6178 		     || ('s' <= (c) && (c) <= 'z'))
  6179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6180 #endif
  6182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6183 int
  6184 main ()
  6186   int i;
  6187   for (i = 0; i < 256; i++)
  6188     if (XOR (islower (i), ISLOWER (i))
  6189 	|| toupper (i) != TOUPPER (i))
  6190       return 2;
  6191   return 0;
  6193 _ACEOF
  6194 rm -f conftest$ac_exeext
  6195 if { (ac_try="$ac_link"
  6196 case "(($ac_try" in
  6197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6198   *) ac_try_echo=$ac_try;;
  6199 esac
  6200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6201 $as_echo "$ac_try_echo") >&5
  6202   (eval "$ac_link") 2>&5
  6203   ac_status=$?
  6204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6206   { (case "(($ac_try" in
  6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6208   *) ac_try_echo=$ac_try;;
  6209 esac
  6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6211 $as_echo "$ac_try_echo") >&5
  6212   (eval "$ac_try") 2>&5
  6213   ac_status=$?
  6214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6215   (exit $ac_status); }; }; then
  6217 else
  6218   $as_echo "$as_me: program exited with status $ac_status" >&5
  6219 $as_echo "$as_me: failed program was:" >&5
  6220 sed 's/^/| /' conftest.$ac_ext >&5
  6222 ( exit $ac_status )
  6223 ac_cv_header_stdc=no
  6224 fi
  6225 rm -rf conftest.dSYM
  6226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6227 fi
  6230 fi
  6231 fi
  6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6233 $as_echo "$ac_cv_header_stdc" >&6; }
  6234 if test $ac_cv_header_stdc = yes; then
  6236 cat >>confdefs.h <<\_ACEOF
  6237 #define STDC_HEADERS 1
  6238 _ACEOF
  6240 fi
  6242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6253 		  inttypes.h stdint.h unistd.h
  6254 do
  6255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6257 $as_echo_n "checking for $ac_header... " >&6; }
  6258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6259   $as_echo_n "(cached) " >&6
  6260 else
  6261   cat >conftest.$ac_ext <<_ACEOF
  6262 /* confdefs.h.  */
  6263 _ACEOF
  6264 cat confdefs.h >>conftest.$ac_ext
  6265 cat >>conftest.$ac_ext <<_ACEOF
  6266 /* end confdefs.h.  */
  6267 $ac_includes_default
  6269 #include <$ac_header>
  6270 _ACEOF
  6271 rm -f conftest.$ac_objext
  6272 if { (ac_try="$ac_compile"
  6273 case "(($ac_try" in
  6274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6275   *) ac_try_echo=$ac_try;;
  6276 esac
  6277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6278 $as_echo "$ac_try_echo") >&5
  6279   (eval "$ac_compile") 2>conftest.er1
  6280   ac_status=$?
  6281   grep -v '^ *+' conftest.er1 >conftest.err
  6282   rm -f conftest.er1
  6283   cat conftest.err >&5
  6284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285   (exit $ac_status); } && {
  6286 	 test -z "$ac_c_werror_flag" ||
  6287 	 test ! -s conftest.err
  6288        } && test -s conftest.$ac_objext; then
  6289   eval "$as_ac_Header=yes"
  6290 else
  6291   $as_echo "$as_me: failed program was:" >&5
  6292 sed 's/^/| /' conftest.$ac_ext >&5
  6294 	eval "$as_ac_Header=no"
  6295 fi
  6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6298 fi
  6299 ac_res=`eval 'as_val=${'$as_ac_Header'}
  6300 		 $as_echo "$as_val"'`
  6301 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6302 $as_echo "$ac_res" >&6; }
  6303 if test `eval 'as_val=${'$as_ac_Header'}
  6304 		 $as_echo "$as_val"'` = yes; then
  6305   cat >>confdefs.h <<_ACEOF
  6306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6307 _ACEOF
  6309 fi
  6311 done
  6314 # The cast to long int works around a bug in the HP C Compiler
  6315 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6316 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6317 # This bug is HP SR number 8606223364.
  6318 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  6319 $as_echo_n "checking size of void *... " >&6; }
  6320 if test "${ac_cv_sizeof_void_p+set}" = set; then
  6321   $as_echo_n "(cached) " >&6
  6322 else
  6323   if test "$cross_compiling" = yes; then
  6324   # Depending upon the size, compute the lo and hi bounds.
  6325 cat >conftest.$ac_ext <<_ACEOF
  6326 /* confdefs.h.  */
  6327 _ACEOF
  6328 cat confdefs.h >>conftest.$ac_ext
  6329 cat >>conftest.$ac_ext <<_ACEOF
  6330 /* end confdefs.h.  */
  6331 $ac_includes_default
  6332 int
  6333 main ()
  6335 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  6336 test_array [0] = 0
  6339   return 0;
  6341 _ACEOF
  6342 rm -f conftest.$ac_objext
  6343 if { (ac_try="$ac_compile"
  6344 case "(($ac_try" in
  6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6346   *) ac_try_echo=$ac_try;;
  6347 esac
  6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6349 $as_echo "$ac_try_echo") >&5
  6350   (eval "$ac_compile") 2>conftest.er1
  6351   ac_status=$?
  6352   grep -v '^ *+' conftest.er1 >conftest.err
  6353   rm -f conftest.er1
  6354   cat conftest.err >&5
  6355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6356   (exit $ac_status); } && {
  6357 	 test -z "$ac_c_werror_flag" ||
  6358 	 test ! -s conftest.err
  6359        } && test -s conftest.$ac_objext; then
  6360   ac_lo=0 ac_mid=0
  6361   while :; do
  6362     cat >conftest.$ac_ext <<_ACEOF
  6363 /* confdefs.h.  */
  6364 _ACEOF
  6365 cat confdefs.h >>conftest.$ac_ext
  6366 cat >>conftest.$ac_ext <<_ACEOF
  6367 /* end confdefs.h.  */
  6368 $ac_includes_default
  6369 int
  6370 main ()
  6372 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6373 test_array [0] = 0
  6376   return 0;
  6378 _ACEOF
  6379 rm -f conftest.$ac_objext
  6380 if { (ac_try="$ac_compile"
  6381 case "(($ac_try" in
  6382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6383   *) ac_try_echo=$ac_try;;
  6384 esac
  6385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6386 $as_echo "$ac_try_echo") >&5
  6387   (eval "$ac_compile") 2>conftest.er1
  6388   ac_status=$?
  6389   grep -v '^ *+' conftest.er1 >conftest.err
  6390   rm -f conftest.er1
  6391   cat conftest.err >&5
  6392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393   (exit $ac_status); } && {
  6394 	 test -z "$ac_c_werror_flag" ||
  6395 	 test ! -s conftest.err
  6396        } && test -s conftest.$ac_objext; then
  6397   ac_hi=$ac_mid; break
  6398 else
  6399   $as_echo "$as_me: failed program was:" >&5
  6400 sed 's/^/| /' conftest.$ac_ext >&5
  6402 	ac_lo=`expr $ac_mid + 1`
  6403 			if test $ac_lo -le $ac_mid; then
  6404 			  ac_lo= ac_hi=
  6405 			  break
  6406 			fi
  6407 			ac_mid=`expr 2 '*' $ac_mid + 1`
  6408 fi
  6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6411   done
  6412 else
  6413   $as_echo "$as_me: failed program was:" >&5
  6414 sed 's/^/| /' conftest.$ac_ext >&5
  6416 	cat >conftest.$ac_ext <<_ACEOF
  6417 /* confdefs.h.  */
  6418 _ACEOF
  6419 cat confdefs.h >>conftest.$ac_ext
  6420 cat >>conftest.$ac_ext <<_ACEOF
  6421 /* end confdefs.h.  */
  6422 $ac_includes_default
  6423 int
  6424 main ()
  6426 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  6427 test_array [0] = 0
  6430   return 0;
  6432 _ACEOF
  6433 rm -f conftest.$ac_objext
  6434 if { (ac_try="$ac_compile"
  6435 case "(($ac_try" in
  6436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6437   *) ac_try_echo=$ac_try;;
  6438 esac
  6439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6440 $as_echo "$ac_try_echo") >&5
  6441   (eval "$ac_compile") 2>conftest.er1
  6442   ac_status=$?
  6443   grep -v '^ *+' conftest.er1 >conftest.err
  6444   rm -f conftest.er1
  6445   cat conftest.err >&5
  6446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447   (exit $ac_status); } && {
  6448 	 test -z "$ac_c_werror_flag" ||
  6449 	 test ! -s conftest.err
  6450        } && test -s conftest.$ac_objext; then
  6451   ac_hi=-1 ac_mid=-1
  6452   while :; do
  6453     cat >conftest.$ac_ext <<_ACEOF
  6454 /* confdefs.h.  */
  6455 _ACEOF
  6456 cat confdefs.h >>conftest.$ac_ext
  6457 cat >>conftest.$ac_ext <<_ACEOF
  6458 /* end confdefs.h.  */
  6459 $ac_includes_default
  6460 int
  6461 main ()
  6463 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  6464 test_array [0] = 0
  6467   return 0;
  6469 _ACEOF
  6470 rm -f conftest.$ac_objext
  6471 if { (ac_try="$ac_compile"
  6472 case "(($ac_try" in
  6473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6474   *) ac_try_echo=$ac_try;;
  6475 esac
  6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6477 $as_echo "$ac_try_echo") >&5
  6478   (eval "$ac_compile") 2>conftest.er1
  6479   ac_status=$?
  6480   grep -v '^ *+' conftest.er1 >conftest.err
  6481   rm -f conftest.er1
  6482   cat conftest.err >&5
  6483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484   (exit $ac_status); } && {
  6485 	 test -z "$ac_c_werror_flag" ||
  6486 	 test ! -s conftest.err
  6487        } && test -s conftest.$ac_objext; then
  6488   ac_lo=$ac_mid; break
  6489 else
  6490   $as_echo "$as_me: failed program was:" >&5
  6491 sed 's/^/| /' conftest.$ac_ext >&5
  6493 	ac_hi=`expr '(' $ac_mid ')' - 1`
  6494 			if test $ac_mid -le $ac_hi; then
  6495 			  ac_lo= ac_hi=
  6496 			  break
  6497 			fi
  6498 			ac_mid=`expr 2 '*' $ac_mid`
  6499 fi
  6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6502   done
  6503 else
  6504   $as_echo "$as_me: failed program was:" >&5
  6505 sed 's/^/| /' conftest.$ac_ext >&5
  6507 	ac_lo= ac_hi=
  6508 fi
  6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6511 fi
  6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6514 # Binary search between lo and hi bounds.
  6515 while test "x$ac_lo" != "x$ac_hi"; do
  6516   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6517   cat >conftest.$ac_ext <<_ACEOF
  6518 /* confdefs.h.  */
  6519 _ACEOF
  6520 cat confdefs.h >>conftest.$ac_ext
  6521 cat >>conftest.$ac_ext <<_ACEOF
  6522 /* end confdefs.h.  */
  6523 $ac_includes_default
  6524 int
  6525 main ()
  6527 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  6528 test_array [0] = 0
  6531   return 0;
  6533 _ACEOF
  6534 rm -f conftest.$ac_objext
  6535 if { (ac_try="$ac_compile"
  6536 case "(($ac_try" in
  6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6538   *) ac_try_echo=$ac_try;;
  6539 esac
  6540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6541 $as_echo "$ac_try_echo") >&5
  6542   (eval "$ac_compile") 2>conftest.er1
  6543   ac_status=$?
  6544   grep -v '^ *+' conftest.er1 >conftest.err
  6545   rm -f conftest.er1
  6546   cat conftest.err >&5
  6547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548   (exit $ac_status); } && {
  6549 	 test -z "$ac_c_werror_flag" ||
  6550 	 test ! -s conftest.err
  6551        } && test -s conftest.$ac_objext; then
  6552   ac_hi=$ac_mid
  6553 else
  6554   $as_echo "$as_me: failed program was:" >&5
  6555 sed 's/^/| /' conftest.$ac_ext >&5
  6557 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6558 fi
  6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6561 done
  6562 case $ac_lo in
  6563 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6564 '') if test "$ac_cv_type_void_p" = yes; then
  6565      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6566 See \`config.log' for more details." >&5
  6567 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6568 See \`config.log' for more details." >&2;}
  6569    { (exit 77); exit 77; }; }
  6570    else
  6571      ac_cv_sizeof_void_p=0
  6572    fi ;;
  6573 esac
  6574 else
  6575   cat >conftest.$ac_ext <<_ACEOF
  6576 /* confdefs.h.  */
  6577 _ACEOF
  6578 cat confdefs.h >>conftest.$ac_ext
  6579 cat >>conftest.$ac_ext <<_ACEOF
  6580 /* end confdefs.h.  */
  6581 $ac_includes_default
  6582 static long int longval () { return (long int) (sizeof (void *)); }
  6583 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  6584 #include <stdio.h>
  6585 #include <stdlib.h>
  6586 int
  6587 main ()
  6590   FILE *f = fopen ("conftest.val", "w");
  6591   if (! f)
  6592     return 1;
  6593   if (((long int) (sizeof (void *))) < 0)
  6595       long int i = longval ();
  6596       if (i != ((long int) (sizeof (void *))))
  6597 	return 1;
  6598       fprintf (f, "%ld", i);
  6600   else
  6602       unsigned long int i = ulongval ();
  6603       if (i != ((long int) (sizeof (void *))))
  6604 	return 1;
  6605       fprintf (f, "%lu", i);
  6607   /* Do not output a trailing newline, as this causes \r\n confusion
  6608      on some platforms.  */
  6609   return ferror (f) || fclose (f) != 0;
  6612   return 0;
  6614 _ACEOF
  6615 rm -f conftest$ac_exeext
  6616 if { (ac_try="$ac_link"
  6617 case "(($ac_try" in
  6618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6619   *) ac_try_echo=$ac_try;;
  6620 esac
  6621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6622 $as_echo "$ac_try_echo") >&5
  6623   (eval "$ac_link") 2>&5
  6624   ac_status=$?
  6625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6627   { (case "(($ac_try" in
  6628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6629   *) ac_try_echo=$ac_try;;
  6630 esac
  6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6632 $as_echo "$ac_try_echo") >&5
  6633   (eval "$ac_try") 2>&5
  6634   ac_status=$?
  6635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6636   (exit $ac_status); }; }; then
  6637   ac_cv_sizeof_void_p=`cat conftest.val`
  6638 else
  6639   $as_echo "$as_me: program exited with status $ac_status" >&5
  6640 $as_echo "$as_me: failed program was:" >&5
  6641 sed 's/^/| /' conftest.$ac_ext >&5
  6643 ( exit $ac_status )
  6644 if test "$ac_cv_type_void_p" = yes; then
  6645      { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6646 See \`config.log' for more details." >&5
  6647 $as_echo "$as_me: error: cannot compute sizeof (void *)
  6648 See \`config.log' for more details." >&2;}
  6649    { (exit 77); exit 77; }; }
  6650    else
  6651      ac_cv_sizeof_void_p=0
  6652    fi
  6653 fi
  6654 rm -rf conftest.dSYM
  6655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6656 fi
  6657 rm -f conftest.val
  6658 fi
  6659 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6660 $as_echo "$ac_cv_sizeof_void_p" >&6; }
  6664 cat >>confdefs.h <<_ACEOF
  6665 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6666 _ACEOF
  6669 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6670 $as_echo_n "checking for ANSI C header files... " >&6; }
  6671 if test "${ac_cv_header_stdc+set}" = set; then
  6672   $as_echo_n "(cached) " >&6
  6673 else
  6674   cat >conftest.$ac_ext <<_ACEOF
  6675 /* confdefs.h.  */
  6676 _ACEOF
  6677 cat confdefs.h >>conftest.$ac_ext
  6678 cat >>conftest.$ac_ext <<_ACEOF
  6679 /* end confdefs.h.  */
  6680 #include <stdlib.h>
  6681 #include <stdarg.h>
  6682 #include <string.h>
  6683 #include <float.h>
  6685 int
  6686 main ()
  6690   return 0;
  6692 _ACEOF
  6693 rm -f conftest.$ac_objext
  6694 if { (ac_try="$ac_compile"
  6695 case "(($ac_try" in
  6696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6697   *) ac_try_echo=$ac_try;;
  6698 esac
  6699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6700 $as_echo "$ac_try_echo") >&5
  6701   (eval "$ac_compile") 2>conftest.er1
  6702   ac_status=$?
  6703   grep -v '^ *+' conftest.er1 >conftest.err
  6704   rm -f conftest.er1
  6705   cat conftest.err >&5
  6706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707   (exit $ac_status); } && {
  6708 	 test -z "$ac_c_werror_flag" ||
  6709 	 test ! -s conftest.err
  6710        } && test -s conftest.$ac_objext; then
  6711   ac_cv_header_stdc=yes
  6712 else
  6713   $as_echo "$as_me: failed program was:" >&5
  6714 sed 's/^/| /' conftest.$ac_ext >&5
  6716 	ac_cv_header_stdc=no
  6717 fi
  6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6721 if test $ac_cv_header_stdc = yes; then
  6722   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6723   cat >conftest.$ac_ext <<_ACEOF
  6724 /* confdefs.h.  */
  6725 _ACEOF
  6726 cat confdefs.h >>conftest.$ac_ext
  6727 cat >>conftest.$ac_ext <<_ACEOF
  6728 /* end confdefs.h.  */
  6729 #include <string.h>
  6731 _ACEOF
  6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6733   $EGREP "memchr" >/dev/null 2>&1; then
  6735 else
  6736   ac_cv_header_stdc=no
  6737 fi
  6738 rm -f conftest*
  6740 fi
  6742 if test $ac_cv_header_stdc = yes; then
  6743   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6744   cat >conftest.$ac_ext <<_ACEOF
  6745 /* confdefs.h.  */
  6746 _ACEOF
  6747 cat confdefs.h >>conftest.$ac_ext
  6748 cat >>conftest.$ac_ext <<_ACEOF
  6749 /* end confdefs.h.  */
  6750 #include <stdlib.h>
  6752 _ACEOF
  6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6754   $EGREP "free" >/dev/null 2>&1; then
  6756 else
  6757   ac_cv_header_stdc=no
  6758 fi
  6759 rm -f conftest*
  6761 fi
  6763 if test $ac_cv_header_stdc = yes; then
  6764   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6765   if test "$cross_compiling" = yes; then
  6767 else
  6768   cat >conftest.$ac_ext <<_ACEOF
  6769 /* confdefs.h.  */
  6770 _ACEOF
  6771 cat confdefs.h >>conftest.$ac_ext
  6772 cat >>conftest.$ac_ext <<_ACEOF
  6773 /* end confdefs.h.  */
  6774 #include <ctype.h>
  6775 #include <stdlib.h>
  6776 #if ((' ' & 0x0FF) == 0x020)
  6777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6779 #else
  6780 # define ISLOWER(c) \
  6781 		   (('a' <= (c) && (c) <= 'i') \
  6782 		     || ('j' <= (c) && (c) <= 'r') \
  6783 		     || ('s' <= (c) && (c) <= 'z'))
  6784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6785 #endif
  6787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6788 int
  6789 main ()
  6791   int i;
  6792   for (i = 0; i < 256; i++)
  6793     if (XOR (islower (i), ISLOWER (i))
  6794 	|| toupper (i) != TOUPPER (i))
  6795       return 2;
  6796   return 0;
  6798 _ACEOF
  6799 rm -f conftest$ac_exeext
  6800 if { (ac_try="$ac_link"
  6801 case "(($ac_try" in
  6802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6803   *) ac_try_echo=$ac_try;;
  6804 esac
  6805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6806 $as_echo "$ac_try_echo") >&5
  6807   (eval "$ac_link") 2>&5
  6808   ac_status=$?
  6809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6811   { (case "(($ac_try" in
  6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6813   *) ac_try_echo=$ac_try;;
  6814 esac
  6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6816 $as_echo "$ac_try_echo") >&5
  6817   (eval "$ac_try") 2>&5
  6818   ac_status=$?
  6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6820   (exit $ac_status); }; }; then
  6822 else
  6823   $as_echo "$as_me: program exited with status $ac_status" >&5
  6824 $as_echo "$as_me: failed program was:" >&5
  6825 sed 's/^/| /' conftest.$ac_ext >&5
  6827 ( exit $ac_status )
  6828 ac_cv_header_stdc=no
  6829 fi
  6830 rm -rf conftest.dSYM
  6831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6832 fi
  6835 fi
  6836 fi
  6837 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6838 $as_echo "$ac_cv_header_stdc" >&6; }
  6839 if test $ac_cv_header_stdc = yes; then
  6841 cat >>confdefs.h <<\_ACEOF
  6842 #define STDC_HEADERS 1
  6843 _ACEOF
  6845 fi
  6847 # Make sure we can run config.sub.
  6848 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6849   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6850 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6851    { (exit 1); exit 1; }; }
  6853 { $as_echo "$as_me:$LINENO: checking build system type" >&5
  6854 $as_echo_n "checking build system type... " >&6; }
  6855 if test "${ac_cv_build+set}" = set; then
  6856   $as_echo_n "(cached) " >&6
  6857 else
  6858   ac_build_alias=$build_alias
  6859 test "x$ac_build_alias" = x &&
  6860   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6861 test "x$ac_build_alias" = x &&
  6862   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6863 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6864    { (exit 1); exit 1; }; }
  6865 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6866   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6867 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6868    { (exit 1); exit 1; }; }
  6870 fi
  6871 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6872 $as_echo "$ac_cv_build" >&6; }
  6873 case $ac_cv_build in
  6874 *-*-*) ;;
  6875 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6876 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  6877    { (exit 1); exit 1; }; };;
  6878 esac
  6879 build=$ac_cv_build
  6880 ac_save_IFS=$IFS; IFS='-'
  6881 set x $ac_cv_build
  6882 shift
  6883 build_cpu=$1
  6884 build_vendor=$2
  6885 shift; shift
  6886 # Remember, the first character of IFS is used to create $*,
  6887 # except with old shells:
  6888 build_os=$*
  6889 IFS=$ac_save_IFS
  6890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6893 { $as_echo "$as_me:$LINENO: checking host system type" >&5
  6894 $as_echo_n "checking host system type... " >&6; }
  6895 if test "${ac_cv_host+set}" = set; then
  6896   $as_echo_n "(cached) " >&6
  6897 else
  6898   if test "x$host_alias" = x; then
  6899   ac_cv_host=$ac_cv_build
  6900 else
  6901   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6902     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6903 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6904    { (exit 1); exit 1; }; }
  6905 fi
  6907 fi
  6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6909 $as_echo "$ac_cv_host" >&6; }
  6910 case $ac_cv_host in
  6911 *-*-*) ;;
  6912 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6913 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  6914    { (exit 1); exit 1; }; };;
  6915 esac
  6916 host=$ac_cv_host
  6917 ac_save_IFS=$IFS; IFS='-'
  6918 set x $ac_cv_host
  6919 shift
  6920 host_cpu=$1
  6921 host_vendor=$2
  6922 shift; shift
  6923 # Remember, the first character of IFS is used to create $*,
  6924 # except with old shells:
  6925 host_os=$*
  6926 IFS=$ac_save_IFS
  6927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6932 depcc="$OBJC" am_compiler_list='gcc3 gcc'
  6934 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6935 $as_echo_n "checking dependency style of $depcc... " >&6; }
  6936 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  6937   $as_echo_n "(cached) " >&6
  6938 else
  6939   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6940   # We make a subdir and do the tests there.  Otherwise we can end up
  6941   # making bogus files that we don't know about and never remove.  For
  6942   # instance it was reported that on HP-UX the gcc test will end up
  6943   # making a dummy file named `D' -- because `-MD' means `put the output
  6944   # in D'.
  6945   mkdir conftest.dir
  6946   # Copy depcomp to subdir because otherwise we won't find it if we're
  6947   # using a relative directory.
  6948   cp "$am_depcomp" conftest.dir
  6949   cd conftest.dir
  6950   # We will build objects and dependencies in a subdirectory because
  6951   # it helps to detect inapplicable dependency modes.  For instance
  6952   # both Tru64's cc and ICC support -MD to output dependencies as a
  6953   # side effect of compilation, but ICC will put the dependencies in
  6954   # the current directory while Tru64 will put them in the object
  6955   # directory.
  6956   mkdir sub
  6958   am_cv_OBJC_dependencies_compiler_type=none
  6959   if test "$am_compiler_list" = ""; then
  6960      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6961   fi
  6962   for depmode in $am_compiler_list; do
  6963     # Setup a source with many dependencies, because some compilers
  6964     # like to wrap large dependency lists on column 80 (with \), and
  6965     # we should not choose a depcomp mode which is confused by this.
  6967     # We need to recreate these files for each test, as the compiler may
  6968     # overwrite some of them when testing with obscure command lines.
  6969     # This happens at least with the AIX C compiler.
  6970     : > sub/conftest.c
  6971     for i in 1 2 3 4 5 6; do
  6972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6973       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6974       # Solaris 8's {/usr,}/bin/sh.
  6975       touch sub/conftst$i.h
  6976     done
  6977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6979     case $depmode in
  6980     nosideeffect)
  6981       # after this tag, mechanisms are not by side-effect, so they'll
  6982       # only be used when explicitly requested
  6983       if test "x$enable_dependency_tracking" = xyes; then
  6984 	continue
  6985       else
  6986 	break
  6987       fi
  6988       ;;
  6989     none) break ;;
  6990     esac
  6991     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6992     # mode.  It turns out that the SunPro C++ compiler does not properly
  6993     # handle `-M -o', and we need to detect this.
  6994     if depmode=$depmode \
  6995        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6997        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6998          >/dev/null 2>conftest.err &&
  6999        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7000        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  7001        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7002       # icc doesn't choke on unknown options, it will just issue warnings
  7003       # or remarks (even with -Werror).  So we grep stderr for any message
  7004       # that says an option was ignored or not supported.
  7005       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7006       #   icc: Command line warning: ignoring option '-M'; no argument required
  7007       # The diagnosis changed in icc 8.0:
  7008       #   icc: Command line remark: option '-MP' not supported
  7009       if (grep 'ignoring option' conftest.err ||
  7010           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7011         am_cv_OBJC_dependencies_compiler_type=$depmode
  7012         break
  7013       fi
  7014     fi
  7015   done
  7017   cd ..
  7018   rm -rf conftest.dir
  7019 else
  7020   am_cv_OBJC_dependencies_compiler_type=none
  7021 fi
  7023 fi
  7024 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  7025 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
  7026 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  7030 if
  7031   test "x$enable_dependency_tracking" != xno \
  7032   && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  7033   am__fastdepOBJC_TRUE=
  7034   am__fastdepOBJC_FALSE='#'
  7035 else
  7036   am__fastdepOBJC_TRUE='#'
  7037   am__fastdepOBJC_FALSE=
  7038 fi
  7042 # Extract the first word of "pod2man", so it can be a program name with args.
  7043 set dummy pod2man; ac_word=$2
  7044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7045 $as_echo_n "checking for $ac_word... " >&6; }
  7046 if test "${ac_cv_path_POD2MAN+set}" = set; then
  7047   $as_echo_n "(cached) " >&6
  7048 else
  7049   case $POD2MAN in
  7050   [\\/]* | ?:[\\/]*)
  7051   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  7052   ;;
  7053   *)
  7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055 for as_dir in $PATH
  7056 do
  7057   IFS=$as_save_IFS
  7058   test -z "$as_dir" && as_dir=.
  7059   for ac_exec_ext in '' $ac_executable_extensions; do
  7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7061     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7063     break 2
  7064   fi
  7065 done
  7066 done
  7067 IFS=$as_save_IFS
  7069   ;;
  7070 esac
  7071 fi
  7072 POD2MAN=$ac_cv_path_POD2MAN
  7073 if test -n "$POD2MAN"; then
  7074   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7075 $as_echo "$POD2MAN" >&6; }
  7076 else
  7077   { $as_echo "$as_me:$LINENO: result: no" >&5
  7078 $as_echo "no" >&6; }
  7079 fi
  7082 # Extract the first word of "pod2html", so it can be a program name with args.
  7083 set dummy pod2html; ac_word=$2
  7084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7085 $as_echo_n "checking for $ac_word... " >&6; }
  7086 if test "${ac_cv_path_POD2HTML+set}" = set; then
  7087   $as_echo_n "(cached) " >&6
  7088 else
  7089   case $POD2HTML in
  7090   [\\/]* | ?:[\\/]*)
  7091   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7092   ;;
  7093   *)
  7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7095 for as_dir in $PATH
  7096 do
  7097   IFS=$as_save_IFS
  7098   test -z "$as_dir" && as_dir=.
  7099   for ac_exec_ext in '' $ac_executable_extensions; do
  7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7101     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7102     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7103     break 2
  7104   fi
  7105 done
  7106 done
  7107 IFS=$as_save_IFS
  7109   ;;
  7110 esac
  7111 fi
  7112 POD2HTML=$ac_cv_path_POD2HTML
  7113 if test -n "$POD2HTML"; then
  7114   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7115 $as_echo "$POD2HTML" >&6; }
  7116 else
  7117   { $as_echo "$as_me:$LINENO: result: no" >&5
  7118 $as_echo "no" >&6; }
  7119 fi
  7124 # Check whether --enable-strict-warn was given.
  7125 if test "${enable_strict_warn+set}" = set; then
  7126   enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
  7127       enable_strictwarn=yes
  7128     fi
  7129 fi
  7131 # Check whether --enable-translator was given.
  7132 if test "${enable_translator+set}" = set; then
  7133   enableval=$enable_translator; true
  7134 else
  7135   enable_translator=yes
  7136 fi
  7138 # Check whether --enable-optimized was given.
  7139 if test "${enable_optimized+set}" = set; then
  7140   enableval=$enable_optimized; true
  7141 else
  7142   enable_optimized=yes
  7143 fi
  7145 # Check whether --enable-profiled was given.
  7146 if test "${enable_profiled+set}" = set; then
  7147   enableval=$enable_profiled; if test "$enableval" == "yes"; then
  7148       enable_profiled=yes;
  7149     fi
  7150 fi
  7152 # Check whether --enable-trace was given.
  7153 if test "${enable_trace+set}" = set; then
  7154   enableval=$enable_trace; if test "$enableval" == "yes"; then
  7156 cat >>confdefs.h <<\_ACEOF
  7157 #define ENABLE_TRACE_IO 1
  7158 _ACEOF
  7160     fi
  7161 fi
  7163 # Check whether --enable-watch was given.
  7164 if test "${enable_watch+set}" = set; then
  7165   enableval=$enable_watch; if test "$enableval" == "yes"; then
  7167 cat >>confdefs.h <<\_ACEOF
  7168 #define ENABLE_WATCH 1
  7169 _ACEOF
  7171    fi
  7172 fi
  7174 # Check whether --enable-sh4stats was given.
  7175 if test "${enable_sh4stats+set}" = set; then
  7176   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  7178 cat >>confdefs.h <<\_ACEOF
  7179 #define ENABLE_SH4STATS 1
  7180 _ACEOF
  7182     fi
  7183 fi
  7186 # Check whether --with-osmesa was given.
  7187 if test "${with_osmesa+set}" = set; then
  7188   withval=$with_osmesa;
  7189 else
  7190   with_osmesa=no
  7191 fi
  7194 # Check whether --with-gtk was given.
  7195 if test "${with_gtk+set}" = set; then
  7196   withval=$with_gtk; with_gtk=yes
  7197 else
  7198   with_gtk=x11
  7199 fi
  7202 # Check whether --with-esd was given.
  7203 if test "${with_esd+set}" = set; then
  7204   withval=$with_esd;
  7205 fi
  7208 # Check whether --with-pulse was given.
  7209 if test "${with_pulse+set}" = set; then
  7210   withval=$with_pulse;
  7211 fi
  7217 ac_ext=m
  7218 ac_cpp='$OBJCPP $CPPFLAGS'
  7219 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7220 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7221 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7222 if test -n "$ac_tool_prefix"; then
  7223   for ac_prog in gcc objcc objc cc CC
  7224   do
  7225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7228 $as_echo_n "checking for $ac_word... " >&6; }
  7229 if test "${ac_cv_prog_OBJC+set}" = set; then
  7230   $as_echo_n "(cached) " >&6
  7231 else
  7232   if test -n "$OBJC"; then
  7233   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  7234 else
  7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7236 for as_dir in $PATH
  7237 do
  7238   IFS=$as_save_IFS
  7239   test -z "$as_dir" && as_dir=.
  7240   for ac_exec_ext in '' $ac_executable_extensions; do
  7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7242     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  7243     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7244     break 2
  7245   fi
  7246 done
  7247 done
  7248 IFS=$as_save_IFS
  7250 fi
  7251 fi
  7252 OBJC=$ac_cv_prog_OBJC
  7253 if test -n "$OBJC"; then
  7254   { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
  7255 $as_echo "$OBJC" >&6; }
  7256 else
  7257   { $as_echo "$as_me:$LINENO: result: no" >&5
  7258 $as_echo "no" >&6; }
  7259 fi
  7262     test -n "$OBJC" && break
  7263   done
  7264 fi
  7265 if test -z "$OBJC"; then
  7266   ac_ct_OBJC=$OBJC
  7267   for ac_prog in gcc objcc objc cc CC
  7268 do
  7269   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7270 set dummy $ac_prog; ac_word=$2
  7271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7272 $as_echo_n "checking for $ac_word... " >&6; }
  7273 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  7274   $as_echo_n "(cached) " >&6
  7275 else
  7276   if test -n "$ac_ct_OBJC"; then
  7277   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  7278 else
  7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7280 for as_dir in $PATH
  7281 do
  7282   IFS=$as_save_IFS
  7283   test -z "$as_dir" && as_dir=.
  7284   for ac_exec_ext in '' $ac_executable_extensions; do
  7285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7286     ac_cv_prog_ac_ct_OBJC="$ac_prog"
  7287     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7288     break 2
  7289   fi
  7290 done
  7291 done
  7292 IFS=$as_save_IFS
  7294 fi
  7295 fi
  7296 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  7297 if test -n "$ac_ct_OBJC"; then
  7298   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
  7299 $as_echo "$ac_ct_OBJC" >&6; }
  7300 else
  7301   { $as_echo "$as_me:$LINENO: result: no" >&5
  7302 $as_echo "no" >&6; }
  7303 fi
  7306   test -n "$ac_ct_OBJC" && break
  7307 done
  7309   if test "x$ac_ct_OBJC" = x; then
  7310     OBJC="gcc"
  7311   else
  7312     case $cross_compiling:$ac_tool_warned in
  7313 yes:)
  7314 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7315 whose name does not start with the host triplet.  If you think this
  7316 configuration is useful to you, please write to autoconf@gnu.org." >&5
  7317 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7318 whose name does not start with the host triplet.  If you think this
  7319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7320 ac_tool_warned=yes ;;
  7321 esac
  7322     OBJC=$ac_ct_OBJC
  7323   fi
  7324 fi
  7326 # Provide some information about the compiler.
  7327 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
  7328 set X $ac_compile
  7329 ac_compiler=$2
  7330 { (ac_try="$ac_compiler --version >&5"
  7331 case "(($ac_try" in
  7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7333   *) ac_try_echo=$ac_try;;
  7334 esac
  7335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7336 $as_echo "$ac_try_echo") >&5
  7337   (eval "$ac_compiler --version >&5") 2>&5
  7338   ac_status=$?
  7339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340   (exit $ac_status); }
  7341 { (ac_try="$ac_compiler -v >&5"
  7342 case "(($ac_try" in
  7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344   *) ac_try_echo=$ac_try;;
  7345 esac
  7346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7347 $as_echo "$ac_try_echo") >&5
  7348   (eval "$ac_compiler -v >&5") 2>&5
  7349   ac_status=$?
  7350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7351   (exit $ac_status); }
  7352 { (ac_try="$ac_compiler -V >&5"
  7353 case "(($ac_try" in
  7354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7355   *) ac_try_echo=$ac_try;;
  7356 esac
  7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7358 $as_echo "$ac_try_echo") >&5
  7359   (eval "$ac_compiler -V >&5") 2>&5
  7360   ac_status=$?
  7361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362   (exit $ac_status); }
  7364 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
  7365 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  7366 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  7367   $as_echo_n "(cached) " >&6
  7368 else
  7369   cat >conftest.$ac_ext <<_ACEOF
  7370 /* confdefs.h.  */
  7371 _ACEOF
  7372 cat confdefs.h >>conftest.$ac_ext
  7373 cat >>conftest.$ac_ext <<_ACEOF
  7374 /* end confdefs.h.  */
  7376 int
  7377 main ()
  7379 #ifndef __GNUC__
  7380        choke me
  7381 #endif
  7384   return 0;
  7386 _ACEOF
  7387 rm -f conftest.$ac_objext
  7388 if { (ac_try="$ac_compile"
  7389 case "(($ac_try" in
  7390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7391   *) ac_try_echo=$ac_try;;
  7392 esac
  7393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7394 $as_echo "$ac_try_echo") >&5
  7395   (eval "$ac_compile") 2>conftest.er1
  7396   ac_status=$?
  7397   grep -v '^ *+' conftest.er1 >conftest.err
  7398   rm -f conftest.er1
  7399   cat conftest.err >&5
  7400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401   (exit $ac_status); } && {
  7402 	 test -z "$ac_objc_werror_flag" ||
  7403 	 test ! -s conftest.err
  7404        } && test -s conftest.$ac_objext; then
  7405   ac_compiler_gnu=yes
  7406 else
  7407   $as_echo "$as_me: failed program was:" >&5
  7408 sed 's/^/| /' conftest.$ac_ext >&5
  7410 	ac_compiler_gnu=no
  7411 fi
  7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7414 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  7416 fi
  7417 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
  7418 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  7419 if test $ac_compiler_gnu = yes; then
  7420   GOBJC=yes
  7421 else
  7422   GOBJC=
  7423 fi
  7424 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  7425 ac_save_OBJCFLAGS=$OBJCFLAGS
  7426 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
  7427 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  7428 if test "${ac_cv_prog_objc_g+set}" = set; then
  7429   $as_echo_n "(cached) " >&6
  7430 else
  7431   ac_save_objc_werror_flag=$ac_objc_werror_flag
  7432    ac_objc_werror_flag=yes
  7433    ac_cv_prog_objc_g=no
  7434    OBJCFLAGS="-g"
  7435    cat >conftest.$ac_ext <<_ACEOF
  7436 /* confdefs.h.  */
  7437 _ACEOF
  7438 cat confdefs.h >>conftest.$ac_ext
  7439 cat >>conftest.$ac_ext <<_ACEOF
  7440 /* end confdefs.h.  */
  7442 int
  7443 main ()
  7447   return 0;
  7449 _ACEOF
  7450 rm -f conftest.$ac_objext
  7451 if { (ac_try="$ac_compile"
  7452 case "(($ac_try" in
  7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7454   *) ac_try_echo=$ac_try;;
  7455 esac
  7456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7457 $as_echo "$ac_try_echo") >&5
  7458   (eval "$ac_compile") 2>conftest.er1
  7459   ac_status=$?
  7460   grep -v '^ *+' conftest.er1 >conftest.err
  7461   rm -f conftest.er1
  7462   cat conftest.err >&5
  7463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464   (exit $ac_status); } && {
  7465 	 test -z "$ac_objc_werror_flag" ||
  7466 	 test ! -s conftest.err
  7467        } && test -s conftest.$ac_objext; then
  7468   ac_cv_prog_objc_g=yes
  7469 else
  7470   $as_echo "$as_me: failed program was:" >&5
  7471 sed 's/^/| /' conftest.$ac_ext >&5
  7473 	OBJCFLAGS=""
  7474       cat >conftest.$ac_ext <<_ACEOF
  7475 /* confdefs.h.  */
  7476 _ACEOF
  7477 cat confdefs.h >>conftest.$ac_ext
  7478 cat >>conftest.$ac_ext <<_ACEOF
  7479 /* end confdefs.h.  */
  7481 int
  7482 main ()
  7486   return 0;
  7488 _ACEOF
  7489 rm -f conftest.$ac_objext
  7490 if { (ac_try="$ac_compile"
  7491 case "(($ac_try" in
  7492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7493   *) ac_try_echo=$ac_try;;
  7494 esac
  7495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7496 $as_echo "$ac_try_echo") >&5
  7497   (eval "$ac_compile") 2>conftest.er1
  7498   ac_status=$?
  7499   grep -v '^ *+' conftest.er1 >conftest.err
  7500   rm -f conftest.er1
  7501   cat conftest.err >&5
  7502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503   (exit $ac_status); } && {
  7504 	 test -z "$ac_objc_werror_flag" ||
  7505 	 test ! -s conftest.err
  7506        } && test -s conftest.$ac_objext; then
  7508 else
  7509   $as_echo "$as_me: failed program was:" >&5
  7510 sed 's/^/| /' conftest.$ac_ext >&5
  7512 	ac_objc_werror_flag=$ac_save_objc_werror_flag
  7513 	 OBJCFLAGS="-g"
  7514 	 cat >conftest.$ac_ext <<_ACEOF
  7515 /* confdefs.h.  */
  7516 _ACEOF
  7517 cat confdefs.h >>conftest.$ac_ext
  7518 cat >>conftest.$ac_ext <<_ACEOF
  7519 /* end confdefs.h.  */
  7521 int
  7522 main ()
  7526   return 0;
  7528 _ACEOF
  7529 rm -f conftest.$ac_objext
  7530 if { (ac_try="$ac_compile"
  7531 case "(($ac_try" in
  7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7533   *) ac_try_echo=$ac_try;;
  7534 esac
  7535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7536 $as_echo "$ac_try_echo") >&5
  7537   (eval "$ac_compile") 2>conftest.er1
  7538   ac_status=$?
  7539   grep -v '^ *+' conftest.er1 >conftest.err
  7540   rm -f conftest.er1
  7541   cat conftest.err >&5
  7542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543   (exit $ac_status); } && {
  7544 	 test -z "$ac_objc_werror_flag" ||
  7545 	 test ! -s conftest.err
  7546        } && test -s conftest.$ac_objext; then
  7547   ac_cv_prog_objc_g=yes
  7548 else
  7549   $as_echo "$as_me: failed program was:" >&5
  7550 sed 's/^/| /' conftest.$ac_ext >&5
  7553 fi
  7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556 fi
  7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7559 fi
  7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7562    ac_objc_werror_flag=$ac_save_objc_werror_flag
  7563 fi
  7564 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
  7565 $as_echo "$ac_cv_prog_objc_g" >&6; }
  7566 if test "$ac_test_OBJCFLAGS" = set; then
  7567   OBJCFLAGS=$ac_save_OBJCFLAGS
  7568 elif test $ac_cv_prog_objc_g = yes; then
  7569   if test "$GOBJC" = yes; then
  7570     OBJCFLAGS="-g -O2"
  7571   else
  7572     OBJCFLAGS="-g"
  7573   fi
  7574 else
  7575   if test "$GOBJC" = yes; then
  7576     OBJCFLAGS="-O2"
  7577   else
  7578     OBJCFLAGS=
  7579   fi
  7580 fi
  7581 ac_ext=c
  7582 ac_cpp='$CPP $CPPFLAGS'
  7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7587 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
  7588 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
  7589 ac_ext=m
  7590 ac_cpp='$OBJCPP $CPPFLAGS'
  7591 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7592 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7593 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  7594 cat >conftest.$ac_ext <<_ACEOF
  7595 /* confdefs.h.  */
  7596 _ACEOF
  7597 cat confdefs.h >>conftest.$ac_ext
  7598 cat >>conftest.$ac_ext <<_ACEOF
  7599 /* end confdefs.h.  */
  7600 @interface Foo @end
  7601 int
  7602 main ()
  7606   return 0;
  7608 _ACEOF
  7609 rm -f conftest.$ac_objext
  7610 if { (ac_try="$ac_compile"
  7611 case "(($ac_try" in
  7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7613   *) ac_try_echo=$ac_try;;
  7614 esac
  7615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7616 $as_echo "$ac_try_echo") >&5
  7617   (eval "$ac_compile") 2>conftest.er1
  7618   ac_status=$?
  7619   grep -v '^ *+' conftest.er1 >conftest.err
  7620   rm -f conftest.er1
  7621   cat conftest.err >&5
  7622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623   (exit $ac_status); } && {
  7624 	 test -z "$ac_objc_werror_flag" ||
  7625 	 test ! -s conftest.err
  7626        } && test -s conftest.$ac_objext; then
  7627   { $as_echo "$as_me:$LINENO: result: yes" >&5
  7628 $as_echo "yes" >&6; }
  7630    { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  7631 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
  7632 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  7633   $as_echo_n "(cached) " >&6
  7634 else
  7635   cat >conftest.$ac_ext <<_ACEOF
  7636 /* confdefs.h.  */
  7637 _ACEOF
  7638 cat confdefs.h >>conftest.$ac_ext
  7639 cat >>conftest.$ac_ext <<_ACEOF
  7640 /* end confdefs.h.  */
  7641 $ac_includes_default
  7643 #include <Cocoa/Cocoa.h>
  7644 _ACEOF
  7645 rm -f conftest.$ac_objext
  7646 if { (ac_try="$ac_compile"
  7647 case "(($ac_try" in
  7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7649   *) ac_try_echo=$ac_try;;
  7650 esac
  7651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7652 $as_echo "$ac_try_echo") >&5
  7653   (eval "$ac_compile") 2>conftest.er1
  7654   ac_status=$?
  7655   grep -v '^ *+' conftest.er1 >conftest.err
  7656   rm -f conftest.er1
  7657   cat conftest.err >&5
  7658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659   (exit $ac_status); } && {
  7660 	 test -z "$ac_objc_werror_flag" ||
  7661 	 test ! -s conftest.err
  7662        } && test -s conftest.$ac_objext; then
  7663   ac_cv_header_Cocoa_Cocoa_h=yes
  7664 else
  7665   $as_echo "$as_me: failed program was:" >&5
  7666 sed 's/^/| /' conftest.$ac_ext >&5
  7668 	ac_cv_header_Cocoa_Cocoa_h=no
  7669 fi
  7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7672 fi
  7673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  7674 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  7675 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  7677       HAVE_COCOA='yes'
  7678       APPLE_BUILD='yes'
  7679       LIBS="$LIBS -framework AppKit"
  7680       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"
  7681       CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
  7682       LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
  7684 cat >>confdefs.h <<\_ACEOF
  7685 #define HAVE_COCOA 1
  7686 _ACEOF
  7689 cat >>confdefs.h <<\_ACEOF
  7690 #define APPLE_BUILD 1
  7691 _ACEOF
  7693       if test "x$with_gtk" = "xx11"; then
  7694         with_gtk=no
  7695       fi
  7697 fi
  7702 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
  7703 $as_echo_n "checking OBJC version... " >&6; }
  7704 if test -n "$OBJC"; then
  7705   _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
  7706   if test -n "$_GOBJC_VERSION"; then
  7707     { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7708 $as_echo "GCC" >&6; }
  7709       OBJCOPT="-O2 -msse2 -mfpmath=sse"
  7710                      OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
  7711   else
  7712     { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7713 $as_echo "Unknown" >&6; }
  7714       OBJCOPT="-O2"
  7715   fi
  7716 else
  7717   { $as_echo "$as_me:$LINENO: result: None" >&5
  7718 $as_echo "None" >&6; }
  7720 fi
  7723 else
  7724   $as_echo "$as_me: failed program was:" >&5
  7725 sed 's/^/| /' conftest.$ac_ext >&5
  7727 	{ $as_echo "$as_me:$LINENO: result: No" >&5
  7728 $as_echo "No" >&6; }
  7730 fi
  7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  7733 ac_ext=c
  7734 ac_cpp='$CPP $CPPFLAGS'
  7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7743 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
  7744   GUI_COCOA_TRUE=
  7745   GUI_COCOA_FALSE='#'
  7746 else
  7747   GUI_COCOA_TRUE='#'
  7748   GUI_COCOA_FALSE=
  7749 fi
  7751 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
  7753 cat >>confdefs.h <<\_ACEOF
  7754 #define OSX_BUNDLE 1
  7755 _ACEOF
  7757 fi
  7759 CFLAGS="-g -fexceptions"
  7760 OBJCFLAGS="-g -fexceptions"
  7762 cat >>confdefs.h <<\_ACEOF
  7763 #define HAVE_EXCEPTIONS 1
  7764 _ACEOF
  7768 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
  7769 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
  7770 { $as_echo "$as_me:$LINENO: checking CC version" >&5
  7771 $as_echo_n "checking CC version... " >&6; }
  7772 if test -n "$_ICC_VERSION"; then
  7773    { $as_echo "$as_me:$LINENO: result: ICC" >&5
  7774 $as_echo "ICC" >&6; }
  7775      CCOPT="$CFLAGS -fast"
  7776                 CFLAGS="$CFLAGS -fno-strict-aliasing -std=c99"
  7777 elif test -n "$_GCC_VERSION"; then
  7778    { $as_echo "$as_me:$LINENO: result: GCC" >&5
  7779 $as_echo "GCC" >&6; }
  7780      CCOPT="-O2 -msse2 -mfpmath=sse"
  7781                 CFLAGS="$CFLAGS -fno-strict-aliasing -std=c99"
  7782 else
  7783    { $as_echo "$as_me:$LINENO: result: Unknown" >&5
  7784 $as_echo "Unknown" >&6; }
  7785      CCOPT="$CFLAGS -O2"
  7786 fi
  7789 if test "x$enable_optimized" = "xyes"; then
  7790    CFLAGS="$CFLAGS $CCOPT"
  7791    OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
  7792    if test "x$enable_profiled" != "xyes"; then
  7793               CFLAGS="$CFLAGS -fomit-frame-pointer"
  7794        OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
  7795    fi
  7796 else
  7797    CFLAGS="$CFLAGS -g3"
  7798    OBJCFLAGS="$OBJCFLAGS -g3"
  7799 fi
  7801 if test "x$enable_profiled" = "xyes"; then
  7802    CFLAGS="$CFLAGS -pg"
  7803    LDFLAGS="$LDFLAGS -pg";
  7804    OBJCFLAGS="$OBJCFLAGS -pg";
  7805 fi
  7807 if test "x$enable_strictwarn" = "xyes"; then
  7808    CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
  7809    OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
  7810 fi
  7813 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
  7814 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
  7815 if test "$cross_compiling" = yes; then
  7816   { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7817 See \`config.log' for more details." >&5
  7818 $as_echo "$as_me: error: cannot run test program while cross compiling
  7819 See \`config.log' for more details." >&2;}
  7820    { (exit 1); exit 1; }; }
  7821 else
  7822   cat >conftest.$ac_ext <<_ACEOF
  7824   /* confdefs.h.  */
  7825 _ACEOF
  7826 cat confdefs.h >>conftest.$ac_ext
  7827 cat >>conftest.$ac_ext <<_ACEOF
  7828 /* end confdefs.h.  */
  7830 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
  7832 int main(int argc, char *argv[])
  7834    return foo( 1, 2 ) == 3 ? 0 : 1;
  7836 _ACEOF
  7837 rm -f conftest$ac_exeext
  7838 if { (ac_try="$ac_link"
  7839 case "(($ac_try" in
  7840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7841   *) ac_try_echo=$ac_try;;
  7842 esac
  7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7844 $as_echo "$ac_try_echo") >&5
  7845   (eval "$ac_link") 2>&5
  7846   ac_status=$?
  7847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7849   { (case "(($ac_try" in
  7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7851   *) ac_try_echo=$ac_try;;
  7852 esac
  7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7854 $as_echo "$ac_try_echo") >&5
  7855   (eval "$ac_try") 2>&5
  7856   ac_status=$?
  7857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7858   (exit $ac_status); }; }; then
  7860    { $as_echo "$as_me:$LINENO: result: yes" >&5
  7861 $as_echo "yes" >&6; }
  7864 cat >>confdefs.h <<\_ACEOF
  7865 #define HAVE_FASTCALL 1
  7866 _ACEOF
  7869 else
  7870   $as_echo "$as_me: program exited with status $ac_status" >&5
  7871 $as_echo "$as_me: failed program was:" >&5
  7872 sed 's/^/| /' conftest.$ac_ext >&5
  7874 ( exit $ac_status )
  7876    { $as_echo "$as_me:$LINENO: result: no" >&5
  7877 $as_echo "no" >&6; }
  7879 fi
  7880 rm -rf conftest.dSYM
  7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7882 fi
  7887 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
  7888 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
  7889 if test "$cross_compiling" = yes; then
  7890   { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7891 See \`config.log' for more details." >&5
  7892 $as_echo "$as_me: error: cannot run test program while cross compiling
  7893 See \`config.log' for more details." >&2;}
  7894    { (exit 1); exit 1; }; }
  7895 else
  7896   cat >conftest.$ac_ext <<_ACEOF
  7898   /* confdefs.h.  */
  7899 _ACEOF
  7900 cat confdefs.h >>conftest.$ac_ext
  7901 cat >>conftest.$ac_ext <<_ACEOF
  7902 /* end confdefs.h.  */
  7904 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
  7905 int __attribute__((noinline)) foo( int arg, void *exc )
  7907     if( arg < 2 ) {
  7908         *(((void **)__builtin_frame_address(0))+1) = exc;
  7910     return 0;
  7913 int main(int argc, char *argv[])
  7915    goto *first_arg(&&start, &&except);
  7917 start:
  7918    return foo( argc, &&except ) + 1;
  7920 except:
  7921    return 0;
  7923 _ACEOF
  7924 rm -f conftest$ac_exeext
  7925 if { (ac_try="$ac_link"
  7926 case "(($ac_try" in
  7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7928   *) ac_try_echo=$ac_try;;
  7929 esac
  7930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7931 $as_echo "$ac_try_echo") >&5
  7932   (eval "$ac_link") 2>&5
  7933   ac_status=$?
  7934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7936   { (case "(($ac_try" in
  7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7938   *) ac_try_echo=$ac_try;;
  7939 esac
  7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7941 $as_echo "$ac_try_echo") >&5
  7942   (eval "$ac_try") 2>&5
  7943   ac_status=$?
  7944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7945   (exit $ac_status); }; }; then
  7947    { $as_echo "$as_me:$LINENO: result: yes" >&5
  7948 $as_echo "yes" >&6; }
  7951 cat >>confdefs.h <<\_ACEOF
  7952 #define HAVE_FRAME_ADDRESS 1
  7953 _ACEOF
  7956 else
  7957   $as_echo "$as_me: program exited with status $ac_status" >&5
  7958 $as_echo "$as_me: failed program was:" >&5
  7959 sed 's/^/| /' conftest.$ac_ext >&5
  7961 ( exit $ac_status )
  7963    { $as_echo "$as_me:$LINENO: result: no" >&5
  7964 $as_echo "no" >&6; }
  7965     { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
  7966 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
  7967 fi
  7968 rm -rf conftest.dSYM
  7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7970 fi
  7979 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  7980 	if test -n "$ac_tool_prefix"; then
  7981   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7984 $as_echo_n "checking for $ac_word... " >&6; }
  7985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  7986   $as_echo_n "(cached) " >&6
  7987 else
  7988   case $PKG_CONFIG in
  7989   [\\/]* | ?:[\\/]*)
  7990   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7991   ;;
  7992   *)
  7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7994 for as_dir in $PATH
  7995 do
  7996   IFS=$as_save_IFS
  7997   test -z "$as_dir" && as_dir=.
  7998   for ac_exec_ext in '' $ac_executable_extensions; do
  7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8000     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8001     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8002     break 2
  8003   fi
  8004 done
  8005 done
  8006 IFS=$as_save_IFS
  8008   ;;
  8009 esac
  8010 fi
  8011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8012 if test -n "$PKG_CONFIG"; then
  8013   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  8014 $as_echo "$PKG_CONFIG" >&6; }
  8015 else
  8016   { $as_echo "$as_me:$LINENO: result: no" >&5
  8017 $as_echo "no" >&6; }
  8018 fi
  8021 fi
  8022 if test -z "$ac_cv_path_PKG_CONFIG"; then
  8023   ac_pt_PKG_CONFIG=$PKG_CONFIG
  8024   # Extract the first word of "pkg-config", so it can be a program name with args.
  8025 set dummy pkg-config; ac_word=$2
  8026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8027 $as_echo_n "checking for $ac_word... " >&6; }
  8028 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  8029   $as_echo_n "(cached) " >&6
  8030 else
  8031   case $ac_pt_PKG_CONFIG in
  8032   [\\/]* | ?:[\\/]*)
  8033   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8034   ;;
  8035   *)
  8036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8037 for as_dir in $PATH
  8038 do
  8039   IFS=$as_save_IFS
  8040   test -z "$as_dir" && as_dir=.
  8041   for ac_exec_ext in '' $ac_executable_extensions; do
  8042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8043     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8044     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8045     break 2
  8046   fi
  8047 done
  8048 done
  8049 IFS=$as_save_IFS
  8051   ;;
  8052 esac
  8053 fi
  8054 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8055 if test -n "$ac_pt_PKG_CONFIG"; then
  8056   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  8057 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  8058 else
  8059   { $as_echo "$as_me:$LINENO: result: no" >&5
  8060 $as_echo "no" >&6; }
  8061 fi
  8063   if test "x$ac_pt_PKG_CONFIG" = x; then
  8064     PKG_CONFIG=""
  8065   else
  8066     case $cross_compiling:$ac_tool_warned in
  8067 yes:)
  8068 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8069 whose name does not start with the host triplet.  If you think this
  8070 configuration is useful to you, please write to autoconf@gnu.org." >&5
  8071 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8072 whose name does not start with the host triplet.  If you think this
  8073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8074 ac_tool_warned=yes ;;
  8075 esac
  8076     PKG_CONFIG=$ac_pt_PKG_CONFIG
  8077   fi
  8078 else
  8079   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8080 fi
  8082 fi
  8083 if test -n "$PKG_CONFIG"; then
  8084 	_pkg_min_version=0.9.0
  8085 	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  8086 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  8087 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8088 		{ $as_echo "$as_me:$LINENO: result: yes" >&5
  8089 $as_echo "yes" >&6; }
  8090 	else
  8091 		{ $as_echo "$as_me:$LINENO: result: no" >&5
  8092 $as_echo "no" >&6; }
  8093 		PKG_CONFIG=""
  8094 	fi
  8096 fi
  8098 pkg_failed=no
  8099 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
  8100 $as_echo_n "checking for LIBPNG... " >&6; }
  8102 if test -n "$LIBPNG_CFLAGS"; then
  8103     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  8104  elif test -n "$PKG_CONFIG"; then
  8105     if test -n "$PKG_CONFIG" && \
  8106     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8107   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8108   ac_status=$?
  8109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8110   (exit $ac_status); }; then
  8111   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  8112 else
  8113   pkg_failed=yes
  8114 fi
  8115  else
  8116     pkg_failed=untried
  8117 fi
  8118 if test -n "$LIBPNG_LIBS"; then
  8119     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  8120  elif test -n "$PKG_CONFIG"; then
  8121     if test -n "$PKG_CONFIG" && \
  8122     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  8123   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  8124   ac_status=$?
  8125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126   (exit $ac_status); }; then
  8127   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  8128 else
  8129   pkg_failed=yes
  8130 fi
  8131  else
  8132     pkg_failed=untried
  8133 fi
  8137 if test $pkg_failed = yes; then
  8139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8140         _pkg_short_errors_supported=yes
  8141 else
  8142         _pkg_short_errors_supported=no
  8143 fi
  8144         if test $_pkg_short_errors_supported = yes; then
  8145 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
  8146         else
  8147 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
  8148         fi
  8149 	# Put the nasty error message in config.log where it belongs
  8150 	echo "$LIBPNG_PKG_ERRORS" >&5
  8152 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  8154 $LIBPNG_PKG_ERRORS
  8156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8157 installed software in a non-standard prefix.
  8159 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8160 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8161 See the pkg-config man page for more details.
  8162 " >&5
  8163 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
  8165 $LIBPNG_PKG_ERRORS
  8167 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8168 installed software in a non-standard prefix.
  8170 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8171 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8172 See the pkg-config man page for more details.
  8173 " >&2;}
  8174    { (exit 1); exit 1; }; }
  8175 elif test $pkg_failed = untried; then
  8176 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8177 is in your PATH or set the PKG_CONFIG environment variable to the full
  8178 path to pkg-config.
  8180 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8181 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8182 See the pkg-config man page for more details.
  8184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8185 See \`config.log' for more details." >&5
  8186 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8187 is in your PATH or set the PKG_CONFIG environment variable to the full
  8188 path to pkg-config.
  8190 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  8191 and LIBPNG_LIBS to avoid the need to call pkg-config.
  8192 See the pkg-config man page for more details.
  8194 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8195 See \`config.log' for more details." >&2;}
  8196    { (exit 1); exit 1; }; }
  8197 else
  8198 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  8199 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  8200         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8201 $as_echo "yes" >&6; }
  8203 fi
  8206 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  8207 $as_echo_n "checking for uncompress in -lz... " >&6; }
  8208 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  8209   $as_echo_n "(cached) " >&6
  8210 else
  8211   ac_check_lib_save_LIBS=$LIBS
  8212 LIBS="-lz  $LIBS"
  8213 cat >conftest.$ac_ext <<_ACEOF
  8214 /* confdefs.h.  */
  8215 _ACEOF
  8216 cat confdefs.h >>conftest.$ac_ext
  8217 cat >>conftest.$ac_ext <<_ACEOF
  8218 /* end confdefs.h.  */
  8220 /* Override any GCC internal prototype to avoid an error.
  8221    Use char because int might match the return type of a GCC
  8222    builtin and then its argument prototype would still apply.  */
  8223 #ifdef __cplusplus
  8224 extern "C"
  8225 #endif
  8226 char uncompress ();
  8227 int
  8228 main ()
  8230 return uncompress ();
  8232   return 0;
  8234 _ACEOF
  8235 rm -f conftest.$ac_objext conftest$ac_exeext
  8236 if { (ac_try="$ac_link"
  8237 case "(($ac_try" in
  8238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8239   *) ac_try_echo=$ac_try;;
  8240 esac
  8241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8242 $as_echo "$ac_try_echo") >&5
  8243   (eval "$ac_link") 2>conftest.er1
  8244   ac_status=$?
  8245   grep -v '^ *+' conftest.er1 >conftest.err
  8246   rm -f conftest.er1
  8247   cat conftest.err >&5
  8248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8249   (exit $ac_status); } && {
  8250 	 test -z "$ac_c_werror_flag" ||
  8251 	 test ! -s conftest.err
  8252        } && test -s conftest$ac_exeext && {
  8253 	 test "$cross_compiling" = yes ||
  8254 	 $as_test_x conftest$ac_exeext
  8255        }; then
  8256   ac_cv_lib_z_uncompress=yes
  8257 else
  8258   $as_echo "$as_me: failed program was:" >&5
  8259 sed 's/^/| /' conftest.$ac_ext >&5
  8261 	ac_cv_lib_z_uncompress=no
  8262 fi
  8264 rm -rf conftest.dSYM
  8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8266       conftest$ac_exeext conftest.$ac_ext
  8267 LIBS=$ac_check_lib_save_LIBS
  8268 fi
  8269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  8270 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  8271 if test $ac_cv_lib_z_uncompress = yes; then
  8272   cat >>confdefs.h <<_ACEOF
  8273 #define HAVE_LIBZ 1
  8274 _ACEOF
  8276   LIBS="-lz $LIBS"
  8278 else
  8280     echo "Zlib (libz.so) could not be found, but is required."
  8281     exit 1
  8282 fi
  8285 if test "x$with_gtk" = "xno"; then
  8287 pkg_failed=no
  8288 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  8289 $as_echo_n "checking for GLIB... " >&6; }
  8291 if test -n "$GLIB_CFLAGS"; then
  8292     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  8293  elif test -n "$PKG_CONFIG"; then
  8294     if test -n "$PKG_CONFIG" && \
  8295     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8296   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8297   ac_status=$?
  8298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299   (exit $ac_status); }; then
  8300   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  8301 else
  8302   pkg_failed=yes
  8303 fi
  8304  else
  8305     pkg_failed=untried
  8306 fi
  8307 if test -n "$GLIB_LIBS"; then
  8308     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  8309  elif test -n "$PKG_CONFIG"; then
  8310     if test -n "$PKG_CONFIG" && \
  8311     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  8312   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  8313   ac_status=$?
  8314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8315   (exit $ac_status); }; then
  8316   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  8317 else
  8318   pkg_failed=yes
  8319 fi
  8320  else
  8321     pkg_failed=untried
  8322 fi
  8326 if test $pkg_failed = yes; then
  8328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8329         _pkg_short_errors_supported=yes
  8330 else
  8331         _pkg_short_errors_supported=no
  8332 fi
  8333         if test $_pkg_short_errors_supported = yes; then
  8334 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  8335         else
  8336 	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  8337         fi
  8338 	# Put the nasty error message in config.log where it belongs
  8339 	echo "$GLIB_PKG_ERRORS" >&5
  8341 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  8343 $GLIB_PKG_ERRORS
  8345 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8346 installed software in a non-standard prefix.
  8348 Alternatively, you may set the environment variables GLIB_CFLAGS
  8349 and GLIB_LIBS to avoid the need to call pkg-config.
  8350 See the pkg-config man page for more details.
  8351 " >&5
  8352 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  8354 $GLIB_PKG_ERRORS
  8356 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8357 installed software in a non-standard prefix.
  8359 Alternatively, you may set the environment variables GLIB_CFLAGS
  8360 and GLIB_LIBS to avoid the need to call pkg-config.
  8361 See the pkg-config man page for more details.
  8362 " >&2;}
  8363    { (exit 1); exit 1; }; }
  8364 elif test $pkg_failed = untried; then
  8365 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8366 is in your PATH or set the PKG_CONFIG environment variable to the full
  8367 path to pkg-config.
  8369 Alternatively, you may set the environment variables GLIB_CFLAGS
  8370 and GLIB_LIBS to avoid the need to call pkg-config.
  8371 See the pkg-config man page for more details.
  8373 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8374 See \`config.log' for more details." >&5
  8375 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8376 is in your PATH or set the PKG_CONFIG environment variable to the full
  8377 path to pkg-config.
  8379 Alternatively, you may set the environment variables GLIB_CFLAGS
  8380 and GLIB_LIBS to avoid the need to call pkg-config.
  8381 See the pkg-config man page for more details.
  8383 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8384 See \`config.log' for more details." >&2;}
  8385    { (exit 1); exit 1; }; }
  8386 else
  8387 	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  8388 	GLIB_LIBS=$pkg_cv_GLIB_LIBS
  8389         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8390 $as_echo "yes" >&6; }
  8392 fi
  8393 else
  8395 pkg_failed=no
  8396 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
  8397 $as_echo_n "checking for GTK... " >&6; }
  8399 if test -n "$GTK_CFLAGS"; then
  8400     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  8401  elif test -n "$PKG_CONFIG"; then
  8402     if test -n "$PKG_CONFIG" && \
  8403     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8404   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8405   ac_status=$?
  8406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407   (exit $ac_status); }; then
  8408   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  8409 else
  8410   pkg_failed=yes
  8411 fi
  8412  else
  8413     pkg_failed=untried
  8414 fi
  8415 if test -n "$GTK_LIBS"; then
  8416     pkg_cv_GTK_LIBS="$GTK_LIBS"
  8417  elif test -n "$PKG_CONFIG"; then
  8418     if test -n "$PKG_CONFIG" && \
  8419     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  8420   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  8421   ac_status=$?
  8422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8423   (exit $ac_status); }; then
  8424   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  8425 else
  8426   pkg_failed=yes
  8427 fi
  8428  else
  8429     pkg_failed=untried
  8430 fi
  8434 if test $pkg_failed = yes; then
  8436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8437         _pkg_short_errors_supported=yes
  8438 else
  8439         _pkg_short_errors_supported=no
  8440 fi
  8441         if test $_pkg_short_errors_supported = yes; then
  8442 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  8443         else
  8444 	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  8445         fi
  8446 	# Put the nasty error message in config.log where it belongs
  8447 	echo "$GTK_PKG_ERRORS" >&5
  8449 	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  8451 $GTK_PKG_ERRORS
  8453 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8454 installed software in a non-standard prefix.
  8456 Alternatively, you may set the environment variables GTK_CFLAGS
  8457 and GTK_LIBS to avoid the need to call pkg-config.
  8458 See the pkg-config man page for more details.
  8459 " >&5
  8460 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  8462 $GTK_PKG_ERRORS
  8464 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8465 installed software in a non-standard prefix.
  8467 Alternatively, you may set the environment variables GTK_CFLAGS
  8468 and GTK_LIBS to avoid the need to call pkg-config.
  8469 See the pkg-config man page for more details.
  8470 " >&2;}
  8471    { (exit 1); exit 1; }; }
  8472 elif test $pkg_failed = untried; then
  8473 	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  8474 is in your PATH or set the PKG_CONFIG environment variable to the full
  8475 path to pkg-config.
  8477 Alternatively, you may set the environment variables GTK_CFLAGS
  8478 and GTK_LIBS to avoid the need to call pkg-config.
  8479 See the pkg-config man page for more details.
  8481 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8482 See \`config.log' for more details." >&5
  8483 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  8484 is in your PATH or set the PKG_CONFIG environment variable to the full
  8485 path to pkg-config.
  8487 Alternatively, you may set the environment variables GTK_CFLAGS
  8488 and GTK_LIBS to avoid the need to call pkg-config.
  8489 See the pkg-config man page for more details.
  8491 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8492 See \`config.log' for more details." >&2;}
  8493    { (exit 1); exit 1; }; }
  8494 else
  8495 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  8496 	GTK_LIBS=$pkg_cv_GTK_LIBS
  8497         { $as_echo "$as_me:$LINENO: result: yes" >&5
  8498 $as_echo "yes" >&6; }
  8500        HAVE_GTK='yes'
  8502 cat >>confdefs.h <<\_ACEOF
  8503 #define HAVE_GTK 1
  8504 _ACEOF
  8507 fi
  8509       LIBS="$LIBS $GTK_LIBS"
  8510    { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  8511 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
  8512 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  8513   $as_echo_n "(cached) " >&6
  8514 else
  8515   cat >conftest.$ac_ext <<_ACEOF
  8516 /* confdefs.h.  */
  8517 _ACEOF
  8518 cat confdefs.h >>conftest.$ac_ext
  8519 cat >>conftest.$ac_ext <<_ACEOF
  8520 /* end confdefs.h.  */
  8521 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  8522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8523 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  8525 /* System header to define __stub macros and hopefully few prototypes,
  8526     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  8527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8528     <limits.h> exists even on freestanding compilers.  */
  8530 #ifdef __STDC__
  8531 # include <limits.h>
  8532 #else
  8533 # include <assert.h>
  8534 #endif
  8536 #undef gdk_x11_display_get_xdisplay
  8538 /* Override any GCC internal prototype to avoid an error.
  8539    Use char because int might match the return type of a GCC
  8540    builtin and then its argument prototype would still apply.  */
  8541 #ifdef __cplusplus
  8542 extern "C"
  8543 #endif
  8544 char gdk_x11_display_get_xdisplay ();
  8545 /* The GNU C library defines this for functions which it implements
  8546     to always fail with ENOSYS.  Some functions are actually named
  8547     something starting with __ and the normal name is an alias.  */
  8548 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  8549 choke me
  8550 #endif
  8552 int
  8553 main ()
  8555 return gdk_x11_display_get_xdisplay ();
  8557   return 0;
  8559 _ACEOF
  8560 rm -f conftest.$ac_objext conftest$ac_exeext
  8561 if { (ac_try="$ac_link"
  8562 case "(($ac_try" in
  8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8564   *) ac_try_echo=$ac_try;;
  8565 esac
  8566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8567 $as_echo "$ac_try_echo") >&5
  8568   (eval "$ac_link") 2>conftest.er1
  8569   ac_status=$?
  8570   grep -v '^ *+' conftest.er1 >conftest.err
  8571   rm -f conftest.er1
  8572   cat conftest.err >&5
  8573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8574   (exit $ac_status); } && {
  8575 	 test -z "$ac_c_werror_flag" ||
  8576 	 test ! -s conftest.err
  8577        } && test -s conftest$ac_exeext && {
  8578 	 test "$cross_compiling" = yes ||
  8579 	 $as_test_x conftest$ac_exeext
  8580        }; then
  8581   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  8582 else
  8583   $as_echo "$as_me: failed program was:" >&5
  8584 sed 's/^/| /' conftest.$ac_ext >&5
  8586 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  8587 fi
  8589 rm -rf conftest.dSYM
  8590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8591       conftest$ac_exeext conftest.$ac_ext
  8592 fi
  8593 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  8594 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  8595 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  8597       HAVE_GTK_X11='yes'
  8599 cat >>confdefs.h <<\_ACEOF
  8600 #define HAVE_GTK_X11 1
  8601 _ACEOF
  8603 fi
  8605    { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  8606 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
  8607 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  8608   $as_echo_n "(cached) " >&6
  8609 else
  8610   cat >conftest.$ac_ext <<_ACEOF
  8611 /* confdefs.h.  */
  8612 _ACEOF
  8613 cat confdefs.h >>conftest.$ac_ext
  8614 cat >>conftest.$ac_ext <<_ACEOF
  8615 /* end confdefs.h.  */
  8616 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  8617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8618 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  8620 /* System header to define __stub macros and hopefully few prototypes,
  8621     which can conflict with char gdk_quartz_window_get_nsview (); below.
  8622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8623     <limits.h> exists even on freestanding compilers.  */
  8625 #ifdef __STDC__
  8626 # include <limits.h>
  8627 #else
  8628 # include <assert.h>
  8629 #endif
  8631 #undef gdk_quartz_window_get_nsview
  8633 /* Override any GCC internal prototype to avoid an error.
  8634    Use char because int might match the return type of a GCC
  8635    builtin and then its argument prototype would still apply.  */
  8636 #ifdef __cplusplus
  8637 extern "C"
  8638 #endif
  8639 char gdk_quartz_window_get_nsview ();
  8640 /* The GNU C library defines this for functions which it implements
  8641     to always fail with ENOSYS.  Some functions are actually named
  8642     something starting with __ and the normal name is an alias.  */
  8643 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  8644 choke me
  8645 #endif
  8647 int
  8648 main ()
  8650 return gdk_quartz_window_get_nsview ();
  8652   return 0;
  8654 _ACEOF
  8655 rm -f conftest.$ac_objext conftest$ac_exeext
  8656 if { (ac_try="$ac_link"
  8657 case "(($ac_try" in
  8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8659   *) ac_try_echo=$ac_try;;
  8660 esac
  8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8662 $as_echo "$ac_try_echo") >&5
  8663   (eval "$ac_link") 2>conftest.er1
  8664   ac_status=$?
  8665   grep -v '^ *+' conftest.er1 >conftest.err
  8666   rm -f conftest.er1
  8667   cat conftest.err >&5
  8668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669   (exit $ac_status); } && {
  8670 	 test -z "$ac_c_werror_flag" ||
  8671 	 test ! -s conftest.err
  8672        } && test -s conftest$ac_exeext && {
  8673 	 test "$cross_compiling" = yes ||
  8674 	 $as_test_x conftest$ac_exeext
  8675        }; then
  8676   ac_cv_func_gdk_quartz_window_get_nsview=yes
  8677 else
  8678   $as_echo "$as_me: failed program was:" >&5
  8679 sed 's/^/| /' conftest.$ac_ext >&5
  8681 	ac_cv_func_gdk_quartz_window_get_nsview=no
  8682 fi
  8684 rm -rf conftest.dSYM
  8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8686       conftest$ac_exeext conftest.$ac_ext
  8687 fi
  8688 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  8689 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  8690 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  8692       HAVE_GTK_OSX='yes'
  8694 cat >>confdefs.h <<\_ACEOF
  8695 #define HAVE_GTK_OSX 1
  8696 _ACEOF
  8698 fi
  8700 fi
  8704 if test "$HAVE_GTK" = 'yes'; then
  8705   GUI_GTK_TRUE=
  8706   GUI_GTK_FALSE='#'
  8707 else
  8708   GUI_GTK_TRUE='#'
  8709   GUI_GTK_FALSE=
  8710 fi
  8713 if test "x$with_osmesa" != xno; then
  8717 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  8718 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
  8719 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  8720   $as_echo_n "(cached) " >&6
  8721 else
  8722   ac_check_lib_save_LIBS=$LIBS
  8723 LIBS="-lOSMesa  $LIBS"
  8724 cat >conftest.$ac_ext <<_ACEOF
  8725 /* confdefs.h.  */
  8726 _ACEOF
  8727 cat confdefs.h >>conftest.$ac_ext
  8728 cat >>conftest.$ac_ext <<_ACEOF
  8729 /* end confdefs.h.  */
  8731 /* Override any GCC internal prototype to avoid an error.
  8732    Use char because int might match the return type of a GCC
  8733    builtin and then its argument prototype would still apply.  */
  8734 #ifdef __cplusplus
  8735 extern "C"
  8736 #endif
  8737 char OSMesaCreateContext ();
  8738 int
  8739 main ()
  8741 return OSMesaCreateContext ();
  8743   return 0;
  8745 _ACEOF
  8746 rm -f conftest.$ac_objext conftest$ac_exeext
  8747 if { (ac_try="$ac_link"
  8748 case "(($ac_try" in
  8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8750   *) ac_try_echo=$ac_try;;
  8751 esac
  8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8753 $as_echo "$ac_try_echo") >&5
  8754   (eval "$ac_link") 2>conftest.er1
  8755   ac_status=$?
  8756   grep -v '^ *+' conftest.er1 >conftest.err
  8757   rm -f conftest.er1
  8758   cat conftest.err >&5
  8759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8760   (exit $ac_status); } && {
  8761 	 test -z "$ac_c_werror_flag" ||
  8762 	 test ! -s conftest.err
  8763        } && test -s conftest$ac_exeext && {
  8764 	 test "$cross_compiling" = yes ||
  8765 	 $as_test_x conftest$ac_exeext
  8766        }; then
  8767   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  8768 else
  8769   $as_echo "$as_me: failed program was:" >&5
  8770 sed 's/^/| /' conftest.$ac_ext >&5
  8772 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  8773 fi
  8775 rm -rf conftest.dSYM
  8776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8777       conftest$ac_exeext conftest.$ac_ext
  8778 LIBS=$ac_check_lib_save_LIBS
  8779 fi
  8780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  8781 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  8782 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  8783   cat >>confdefs.h <<_ACEOF
  8784 #define HAVE_LIBOSMESA 1
  8785 _ACEOF
  8787   LIBS="-lOSMesa $LIBS"
  8789 else
  8790   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  8791 See \`config.log' for more details." >&5
  8792 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  8793 See \`config.log' for more details." >&2;}
  8794    { (exit 1); exit 1; }; }
  8795 fi
  8797   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  8798   { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  8799 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  8800 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  8801   $as_echo_n "(cached) " >&6
  8802 fi
  8803 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  8804 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  8805 else
  8806   # Is the header compilable?
  8807 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  8808 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
  8809 cat >conftest.$ac_ext <<_ACEOF
  8810 /* confdefs.h.  */
  8811 _ACEOF
  8812 cat confdefs.h >>conftest.$ac_ext
  8813 cat >>conftest.$ac_ext <<_ACEOF
  8814 /* end confdefs.h.  */
  8815 $ac_includes_default
  8816 #include <GL/osmesa.h>
  8817 _ACEOF
  8818 rm -f conftest.$ac_objext
  8819 if { (ac_try="$ac_compile"
  8820 case "(($ac_try" in
  8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8822   *) ac_try_echo=$ac_try;;
  8823 esac
  8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8825 $as_echo "$ac_try_echo") >&5
  8826   (eval "$ac_compile") 2>conftest.er1
  8827   ac_status=$?
  8828   grep -v '^ *+' conftest.er1 >conftest.err
  8829   rm -f conftest.er1
  8830   cat conftest.err >&5
  8831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8832   (exit $ac_status); } && {
  8833 	 test -z "$ac_c_werror_flag" ||
  8834 	 test ! -s conftest.err
  8835        } && test -s conftest.$ac_objext; then
  8836   ac_header_compiler=yes
  8837 else
  8838   $as_echo "$as_me: failed program was:" >&5
  8839 sed 's/^/| /' conftest.$ac_ext >&5
  8841 	ac_header_compiler=no
  8842 fi
  8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8846 $as_echo "$ac_header_compiler" >&6; }
  8848 # Is the header present?
  8849 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  8850 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
  8851 cat >conftest.$ac_ext <<_ACEOF
  8852 /* confdefs.h.  */
  8853 _ACEOF
  8854 cat confdefs.h >>conftest.$ac_ext
  8855 cat >>conftest.$ac_ext <<_ACEOF
  8856 /* end confdefs.h.  */
  8857 #include <GL/osmesa.h>
  8858 _ACEOF
  8859 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8860 case "(($ac_try" in
  8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8862   *) ac_try_echo=$ac_try;;
  8863 esac
  8864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8865 $as_echo "$ac_try_echo") >&5
  8866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8867   ac_status=$?
  8868   grep -v '^ *+' conftest.er1 >conftest.err
  8869   rm -f conftest.er1
  8870   cat conftest.err >&5
  8871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8872   (exit $ac_status); } >/dev/null && {
  8873 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8874 	 test ! -s conftest.err
  8875        }; then
  8876   ac_header_preproc=yes
  8877 else
  8878   $as_echo "$as_me: failed program was:" >&5
  8879 sed 's/^/| /' conftest.$ac_ext >&5
  8881   ac_header_preproc=no
  8882 fi
  8884 rm -f conftest.err conftest.$ac_ext
  8885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8886 $as_echo "$ac_header_preproc" >&6; }
  8888 # So?  What about this header?
  8889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8890   yes:no: )
  8891     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8892 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8893     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  8894 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  8895     ac_header_preproc=yes
  8896     ;;
  8897   no:yes:* )
  8898     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  8899 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  8900     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  8901 $as_echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  8902     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  8903 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  8904     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  8905 $as_echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8906     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  8907 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  8908     { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  8909 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  8911     ;;
  8912 esac
  8913 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  8914 $as_echo_n "checking for GL/osmesa.h... " >&6; }
  8915 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  8916   $as_echo_n "(cached) " >&6
  8917 else
  8918   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  8919 fi
  8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  8921 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
  8923 fi
  8924 if test $ac_cv_header_GL_osmesa_h = yes; then
  8926 else
  8927   { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  8928 See \`config.log' for more details." >&5
  8929 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  8930 See \`config.log' for more details." >&2;}
  8931    { (exit 1); exit 1; }; }
  8932 fi
  8935   HAVE_OSMESA='yes'
  8936   VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
  8938 cat >>confdefs.h <<\_ACEOF
  8939 #define HAVE_OSMESA 1
  8940 _ACEOF
  8942 else
  8945    if test "x$APPLE_BUILD" != 'xyes'; then
  8947 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  8948 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
  8949 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  8950   $as_echo_n "(cached) " >&6
  8951 else
  8952   ac_check_lib_save_LIBS=$LIBS
  8953 LIBS="-lGL  $LIBS"
  8954 cat >conftest.$ac_ext <<_ACEOF
  8955 /* confdefs.h.  */
  8956 _ACEOF
  8957 cat confdefs.h >>conftest.$ac_ext
  8958 cat >>conftest.$ac_ext <<_ACEOF
  8959 /* end confdefs.h.  */
  8961 /* Override any GCC internal prototype to avoid an error.
  8962    Use char because int might match the return type of a GCC
  8963    builtin and then its argument prototype would still apply.  */
  8964 #ifdef __cplusplus
  8965 extern "C"
  8966 #endif
  8967 char glVertex3f ();
  8968 int
  8969 main ()
  8971 return glVertex3f ();
  8973   return 0;
  8975 _ACEOF
  8976 rm -f conftest.$ac_objext conftest$ac_exeext
  8977 if { (ac_try="$ac_link"
  8978 case "(($ac_try" in
  8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8980   *) ac_try_echo=$ac_try;;
  8981 esac
  8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8983 $as_echo "$ac_try_echo") >&5
  8984   (eval "$ac_link") 2>conftest.er1
  8985   ac_status=$?
  8986   grep -v '^ *+' conftest.er1 >conftest.err
  8987   rm -f conftest.er1
  8988   cat conftest.err >&5
  8989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990   (exit $ac_status); } && {
  8991 	 test -z "$ac_c_werror_flag" ||
  8992 	 test ! -s conftest.err
  8993        } && test -s conftest$ac_exeext && {
  8994 	 test "$cross_compiling" = yes ||
  8995 	 $as_test_x conftest$ac_exeext
  8996        }; then
  8997   ac_cv_lib_GL_glVertex3f=yes
  8998 else
  8999   $as_echo "$as_me: failed program was:" >&5
  9000 sed 's/^/| /' conftest.$ac_ext >&5
  9002 	ac_cv_lib_GL_glVertex3f=no
  9003 fi
  9005 rm -rf conftest.dSYM
  9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9007       conftest$ac_exeext conftest.$ac_ext
  9008 LIBS=$ac_check_lib_save_LIBS
  9009 fi
  9010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  9011 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
  9012 if test $ac_cv_lib_GL_glVertex3f = yes; then
  9013   cat >>confdefs.h <<_ACEOF
  9014 #define HAVE_LIBGL 1
  9015 _ACEOF
  9017   LIBS="-lGL $LIBS"
  9019 else
  9021           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9022 See \`config.log' for more details." >&5
  9023 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  9024 See \`config.log' for more details." >&2;}
  9025    { (exit 1); exit 1; }; }
  9026 fi
  9028       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9029   { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9030 $as_echo_n "checking for GL/gl.h... " >&6; }
  9031 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9032   $as_echo_n "(cached) " >&6
  9033 fi
  9034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9035 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9036 else
  9037   # Is the header compilable?
  9038 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  9039 $as_echo_n "checking GL/gl.h usability... " >&6; }
  9040 cat >conftest.$ac_ext <<_ACEOF
  9041 /* confdefs.h.  */
  9042 _ACEOF
  9043 cat confdefs.h >>conftest.$ac_ext
  9044 cat >>conftest.$ac_ext <<_ACEOF
  9045 /* end confdefs.h.  */
  9046 $ac_includes_default
  9047 #include <GL/gl.h>
  9048 _ACEOF
  9049 rm -f conftest.$ac_objext
  9050 if { (ac_try="$ac_compile"
  9051 case "(($ac_try" in
  9052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9053   *) ac_try_echo=$ac_try;;
  9054 esac
  9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9056 $as_echo "$ac_try_echo") >&5
  9057   (eval "$ac_compile") 2>conftest.er1
  9058   ac_status=$?
  9059   grep -v '^ *+' conftest.er1 >conftest.err
  9060   rm -f conftest.er1
  9061   cat conftest.err >&5
  9062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9063   (exit $ac_status); } && {
  9064 	 test -z "$ac_c_werror_flag" ||
  9065 	 test ! -s conftest.err
  9066        } && test -s conftest.$ac_objext; then
  9067   ac_header_compiler=yes
  9068 else
  9069   $as_echo "$as_me: failed program was:" >&5
  9070 sed 's/^/| /' conftest.$ac_ext >&5
  9072 	ac_header_compiler=no
  9073 fi
  9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9077 $as_echo "$ac_header_compiler" >&6; }
  9079 # Is the header present?
  9080 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  9081 $as_echo_n "checking GL/gl.h presence... " >&6; }
  9082 cat >conftest.$ac_ext <<_ACEOF
  9083 /* confdefs.h.  */
  9084 _ACEOF
  9085 cat confdefs.h >>conftest.$ac_ext
  9086 cat >>conftest.$ac_ext <<_ACEOF
  9087 /* end confdefs.h.  */
  9088 #include <GL/gl.h>
  9089 _ACEOF
  9090 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9091 case "(($ac_try" in
  9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9093   *) ac_try_echo=$ac_try;;
  9094 esac
  9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9096 $as_echo "$ac_try_echo") >&5
  9097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9098   ac_status=$?
  9099   grep -v '^ *+' conftest.er1 >conftest.err
  9100   rm -f conftest.er1
  9101   cat conftest.err >&5
  9102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9103   (exit $ac_status); } >/dev/null && {
  9104 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9105 	 test ! -s conftest.err
  9106        }; then
  9107   ac_header_preproc=yes
  9108 else
  9109   $as_echo "$as_me: failed program was:" >&5
  9110 sed 's/^/| /' conftest.$ac_ext >&5
  9112   ac_header_preproc=no
  9113 fi
  9115 rm -f conftest.err conftest.$ac_ext
  9116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9117 $as_echo "$ac_header_preproc" >&6; }
  9119 # So?  What about this header?
  9120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9121   yes:no: )
  9122     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9123 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9124     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  9125 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  9126     ac_header_preproc=yes
  9127     ;;
  9128   no:yes:* )
  9129     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  9130 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  9131     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  9132 $as_echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  9133     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  9134 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  9135     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  9136 $as_echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9137     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  9138 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  9139     { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  9140 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  9142     ;;
  9143 esac
  9144 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  9145 $as_echo_n "checking for GL/gl.h... " >&6; }
  9146 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  9147   $as_echo_n "(cached) " >&6
  9148 else
  9149   ac_cv_header_GL_gl_h=$ac_header_preproc
  9150 fi
  9151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  9152 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
  9154 fi
  9155 if test $ac_cv_header_GL_gl_h = yes; then
  9157 else
  9159           { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9160 See \`config.log' for more details." >&5
  9161 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  9162 See \`config.log' for more details." >&2;}
  9163    { (exit 1); exit 1; }; }
  9164 fi
  9167    else
  9168       { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  9169 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
  9170 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  9171   $as_echo_n "(cached) " >&6
  9172 else
  9173   cat >conftest.$ac_ext <<_ACEOF
  9174 /* confdefs.h.  */
  9175 _ACEOF
  9176 cat confdefs.h >>conftest.$ac_ext
  9177 cat >>conftest.$ac_ext <<_ACEOF
  9178 /* end confdefs.h.  */
  9179 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  9180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9181 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  9183 /* System header to define __stub macros and hopefully few prototypes,
  9184     which can conflict with char NSOpenGLGetVersion (); below.
  9185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9186     <limits.h> exists even on freestanding compilers.  */
  9188 #ifdef __STDC__
  9189 # include <limits.h>
  9190 #else
  9191 # include <assert.h>
  9192 #endif
  9194 #undef NSOpenGLGetVersion
  9196 /* Override any GCC internal prototype to avoid an error.
  9197    Use char because int might match the return type of a GCC
  9198    builtin and then its argument prototype would still apply.  */
  9199 #ifdef __cplusplus
  9200 extern "C"
  9201 #endif
  9202 char NSOpenGLGetVersion ();
  9203 /* The GNU C library defines this for functions which it implements
  9204     to always fail with ENOSYS.  Some functions are actually named
  9205     something starting with __ and the normal name is an alias.  */
  9206 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  9207 choke me
  9208 #endif
  9210 int
  9211 main ()
  9213 return NSOpenGLGetVersion ();
  9215   return 0;
  9217 _ACEOF
  9218 rm -f conftest.$ac_objext conftest$ac_exeext
  9219 if { (ac_try="$ac_link"
  9220 case "(($ac_try" in
  9221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9222   *) ac_try_echo=$ac_try;;
  9223 esac
  9224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9225 $as_echo "$ac_try_echo") >&5
  9226   (eval "$ac_link") 2>conftest.er1
  9227   ac_status=$?
  9228   grep -v '^ *+' conftest.er1 >conftest.err
  9229   rm -f conftest.er1
  9230   cat conftest.err >&5
  9231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9232   (exit $ac_status); } && {
  9233 	 test -z "$ac_c_werror_flag" ||
  9234 	 test ! -s conftest.err
  9235        } && test -s conftest$ac_exeext && {
  9236 	 test "$cross_compiling" = yes ||
  9237 	 $as_test_x conftest$ac_exeext
  9238        }; then
  9239   ac_cv_func_NSOpenGLGetVersion=yes
  9240 else
  9241   $as_echo "$as_me: failed program was:" >&5
  9242 sed 's/^/| /' conftest.$ac_ext >&5
  9244 	ac_cv_func_NSOpenGLGetVersion=no
  9245 fi
  9247 rm -rf conftest.dSYM
  9248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9249       conftest$ac_exeext conftest.$ac_ext
  9250 fi
  9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  9252 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
  9253 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  9255          HAVE_NSGL='yes'
  9256          VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
  9258 cat >>confdefs.h <<\_ACEOF
  9259 #define HAVE_NSGL 1
  9260 _ACEOF
  9262 fi
  9264    fi
  9266    if test "x$HAVE_GTK_X11" = "xyes"; then
  9267       if test "x$APPLE_BUILD" = "xyes"; then
  9268          LIBS="$LIBS -L/usr/X11/lib -lGL"
  9269       fi
  9270       { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  9271 $as_echo_n "checking for glXQueryVersion... " >&6; }
  9272 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  9273   $as_echo_n "(cached) " >&6
  9274 else
  9275   cat >conftest.$ac_ext <<_ACEOF
  9276 /* confdefs.h.  */
  9277 _ACEOF
  9278 cat confdefs.h >>conftest.$ac_ext
  9279 cat >>conftest.$ac_ext <<_ACEOF
  9280 /* end confdefs.h.  */
  9281 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  9282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9283 #define glXQueryVersion innocuous_glXQueryVersion
  9285 /* System header to define __stub macros and hopefully few prototypes,
  9286     which can conflict with char glXQueryVersion (); below.
  9287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9288     <limits.h> exists even on freestanding compilers.  */
  9290 #ifdef __STDC__
  9291 # include <limits.h>
  9292 #else
  9293 # include <assert.h>
  9294 #endif
  9296 #undef glXQueryVersion
  9298 /* Override any GCC internal prototype to avoid an error.
  9299    Use char because int might match the return type of a GCC
  9300    builtin and then its argument prototype would still apply.  */
  9301 #ifdef __cplusplus
  9302 extern "C"
  9303 #endif
  9304 char glXQueryVersion ();
  9305 /* The GNU C library defines this for functions which it implements
  9306     to always fail with ENOSYS.  Some functions are actually named
  9307     something starting with __ and the normal name is an alias.  */
  9308 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  9309 choke me
  9310 #endif
  9312 int
  9313 main ()
  9315 return glXQueryVersion ();
  9317   return 0;
  9319 _ACEOF
  9320 rm -f conftest.$ac_objext conftest$ac_exeext
  9321 if { (ac_try="$ac_link"
  9322 case "(($ac_try" in
  9323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9324   *) ac_try_echo=$ac_try;;
  9325 esac
  9326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9327 $as_echo "$ac_try_echo") >&5
  9328   (eval "$ac_link") 2>conftest.er1
  9329   ac_status=$?
  9330   grep -v '^ *+' conftest.er1 >conftest.err
  9331   rm -f conftest.er1
  9332   cat conftest.err >&5
  9333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9334   (exit $ac_status); } && {
  9335 	 test -z "$ac_c_werror_flag" ||
  9336 	 test ! -s conftest.err
  9337        } && test -s conftest$ac_exeext && {
  9338 	 test "$cross_compiling" = yes ||
  9339 	 $as_test_x conftest$ac_exeext
  9340        }; then
  9341   ac_cv_func_glXQueryVersion=yes
  9342 else
  9343   $as_echo "$as_me: failed program was:" >&5
  9344 sed 's/^/| /' conftest.$ac_ext >&5
  9346 	ac_cv_func_glXQueryVersion=no
  9347 fi
  9349 rm -rf conftest.dSYM
  9350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9351       conftest$ac_exeext conftest.$ac_ext
  9352 fi
  9353 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  9354 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
  9355 if test $ac_cv_func_glXQueryVersion = yes; then
  9357          HAVE_GLX='yes'
  9358          VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
  9360 cat >>confdefs.h <<\_ACEOF
  9361 #define HAVE_GLX 1
  9362 _ACEOF
  9364 fi
  9366    fi
  9369 fi
  9376 if test "x$HAVE_OSMESA" = "xyes"; then
  9377   VIDEO_OSMESA_TRUE=
  9378   VIDEO_OSMESA_FALSE='#'
  9379 else
  9380   VIDEO_OSMESA_TRUE='#'
  9381   VIDEO_OSMESA_FALSE=
  9382 fi
  9386 if test "x$HAVE_GLX" = "xyes"; then
  9387   VIDEO_GLX_TRUE=
  9388   VIDEO_GLX_FALSE='#'
  9389 else
  9390   VIDEO_GLX_TRUE='#'
  9391   VIDEO_GLX_FALSE=
  9392 fi
  9396 if test "x$HAVE_NSGL" = "xyes"; then
  9397   VIDEO_NSGL_TRUE=
  9398   VIDEO_NSGL_FALSE='#'
  9399 else
  9400   VIDEO_NSGL_TRUE='#'
  9401   VIDEO_NSGL_FALSE=
  9402 fi
  9405 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  9406 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
  9407 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  9408   $as_echo_n "(cached) " >&6
  9409 else
  9410   cat >conftest.$ac_ext <<_ACEOF
  9411 /* confdefs.h.  */
  9412 _ACEOF
  9413 cat confdefs.h >>conftest.$ac_ext
  9414 cat >>conftest.$ac_ext <<_ACEOF
  9415 /* end confdefs.h.  */
  9416 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  9417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9418 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  9420 /* System header to define __stub macros and hopefully few prototypes,
  9421     which can conflict with char glGenFramebuffersEXT (); below.
  9422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9423     <limits.h> exists even on freestanding compilers.  */
  9425 #ifdef __STDC__
  9426 # include <limits.h>
  9427 #else
  9428 # include <assert.h>
  9429 #endif
  9431 #undef glGenFramebuffersEXT
  9433 /* Override any GCC internal prototype to avoid an error.
  9434    Use char because int might match the return type of a GCC
  9435    builtin and then its argument prototype would still apply.  */
  9436 #ifdef __cplusplus
  9437 extern "C"
  9438 #endif
  9439 char glGenFramebuffersEXT ();
  9440 /* The GNU C library defines this for functions which it implements
  9441     to always fail with ENOSYS.  Some functions are actually named
  9442     something starting with __ and the normal name is an alias.  */
  9443 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  9444 choke me
  9445 #endif
  9447 int
  9448 main ()
  9450 return glGenFramebuffersEXT ();
  9452   return 0;
  9454 _ACEOF
  9455 rm -f conftest.$ac_objext conftest$ac_exeext
  9456 if { (ac_try="$ac_link"
  9457 case "(($ac_try" in
  9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9459   *) ac_try_echo=$ac_try;;
  9460 esac
  9461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9462 $as_echo "$ac_try_echo") >&5
  9463   (eval "$ac_link") 2>conftest.er1
  9464   ac_status=$?
  9465   grep -v '^ *+' conftest.er1 >conftest.err
  9466   rm -f conftest.er1
  9467   cat conftest.err >&5
  9468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9469   (exit $ac_status); } && {
  9470 	 test -z "$ac_c_werror_flag" ||
  9471 	 test ! -s conftest.err
  9472        } && test -s conftest$ac_exeext && {
  9473 	 test "$cross_compiling" = yes ||
  9474 	 $as_test_x conftest$ac_exeext
  9475        }; then
  9476   ac_cv_func_glGenFramebuffersEXT=yes
  9477 else
  9478   $as_echo "$as_me: failed program was:" >&5
  9479 sed 's/^/| /' conftest.$ac_ext >&5
  9481 	ac_cv_func_glGenFramebuffersEXT=no
  9482 fi
  9484 rm -rf conftest.dSYM
  9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9486       conftest$ac_exeext conftest.$ac_ext
  9487 fi
  9488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  9489 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
  9490 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  9492 cat >>confdefs.h <<\_ACEOF
  9493 #define HAVE_OPENGL_FBO 1
  9494 _ACEOF
  9496 fi
  9498 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
  9499 $as_echo_n "checking for glCreateShader... " >&6; }
  9500 if test "${ac_cv_func_glCreateShader+set}" = set; then
  9501   $as_echo_n "(cached) " >&6
  9502 else
  9503   cat >conftest.$ac_ext <<_ACEOF
  9504 /* confdefs.h.  */
  9505 _ACEOF
  9506 cat confdefs.h >>conftest.$ac_ext
  9507 cat >>conftest.$ac_ext <<_ACEOF
  9508 /* end confdefs.h.  */
  9509 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  9510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9511 #define glCreateShader innocuous_glCreateShader
  9513 /* System header to define __stub macros and hopefully few prototypes,
  9514     which can conflict with char glCreateShader (); below.
  9515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9516     <limits.h> exists even on freestanding compilers.  */
  9518 #ifdef __STDC__
  9519 # include <limits.h>
  9520 #else
  9521 # include <assert.h>
  9522 #endif
  9524 #undef glCreateShader
  9526 /* Override any GCC internal prototype to avoid an error.
  9527    Use char because int might match the return type of a GCC
  9528    builtin and then its argument prototype would still apply.  */
  9529 #ifdef __cplusplus
  9530 extern "C"
  9531 #endif
  9532 char glCreateShader ();
  9533 /* The GNU C library defines this for functions which it implements
  9534     to always fail with ENOSYS.  Some functions are actually named
  9535     something starting with __ and the normal name is an alias.  */
  9536 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  9537 choke me
  9538 #endif
  9540 int
  9541 main ()
  9543 return glCreateShader ();
  9545   return 0;
  9547 _ACEOF
  9548 rm -f conftest.$ac_objext conftest$ac_exeext
  9549 if { (ac_try="$ac_link"
  9550 case "(($ac_try" in
  9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9552   *) ac_try_echo=$ac_try;;
  9553 esac
  9554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9555 $as_echo "$ac_try_echo") >&5
  9556   (eval "$ac_link") 2>conftest.er1
  9557   ac_status=$?
  9558   grep -v '^ *+' conftest.er1 >conftest.err
  9559   rm -f conftest.er1
  9560   cat conftest.err >&5
  9561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562   (exit $ac_status); } && {
  9563 	 test -z "$ac_c_werror_flag" ||
  9564 	 test ! -s conftest.err
  9565        } && test -s conftest$ac_exeext && {
  9566 	 test "$cross_compiling" = yes ||
  9567 	 $as_test_x conftest$ac_exeext
  9568        }; then
  9569   ac_cv_func_glCreateShader=yes
  9570 else
  9571   $as_echo "$as_me: failed program was:" >&5
  9572 sed 's/^/| /' conftest.$ac_ext >&5
  9574 	ac_cv_func_glCreateShader=no
  9575 fi
  9577 rm -rf conftest.dSYM
  9578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9579       conftest$ac_exeext conftest.$ac_ext
  9580 fi
  9581 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  9582 $as_echo "$ac_cv_func_glCreateShader" >&6; }
  9583 if test $ac_cv_func_glCreateShader = yes; then
  9585 cat >>confdefs.h <<\_ACEOF
  9586 #define HAVE_OPENGL_SHADER 1
  9587 _ACEOF
  9589 fi
  9591 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  9592 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
  9593 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  9594   $as_echo_n "(cached) " >&6
  9595 else
  9596   cat >conftest.$ac_ext <<_ACEOF
  9597 /* confdefs.h.  */
  9598 _ACEOF
  9599 cat confdefs.h >>conftest.$ac_ext
  9600 cat >>conftest.$ac_ext <<_ACEOF
  9601 /* end confdefs.h.  */
  9602 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  9603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9604 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  9606 /* System header to define __stub macros and hopefully few prototypes,
  9607     which can conflict with char glCreateShaderObjectARB (); below.
  9608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9609     <limits.h> exists even on freestanding compilers.  */
  9611 #ifdef __STDC__
  9612 # include <limits.h>
  9613 #else
  9614 # include <assert.h>
  9615 #endif
  9617 #undef glCreateShaderObjectARB
  9619 /* Override any GCC internal prototype to avoid an error.
  9620    Use char because int might match the return type of a GCC
  9621    builtin and then its argument prototype would still apply.  */
  9622 #ifdef __cplusplus
  9623 extern "C"
  9624 #endif
  9625 char glCreateShaderObjectARB ();
  9626 /* The GNU C library defines this for functions which it implements
  9627     to always fail with ENOSYS.  Some functions are actually named
  9628     something starting with __ and the normal name is an alias.  */
  9629 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  9630 choke me
  9631 #endif
  9633 int
  9634 main ()
  9636 return glCreateShaderObjectARB ();
  9638   return 0;
  9640 _ACEOF
  9641 rm -f conftest.$ac_objext conftest$ac_exeext
  9642 if { (ac_try="$ac_link"
  9643 case "(($ac_try" in
  9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9645   *) ac_try_echo=$ac_try;;
  9646 esac
  9647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9648 $as_echo "$ac_try_echo") >&5
  9649   (eval "$ac_link") 2>conftest.er1
  9650   ac_status=$?
  9651   grep -v '^ *+' conftest.er1 >conftest.err
  9652   rm -f conftest.er1
  9653   cat conftest.err >&5
  9654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9655   (exit $ac_status); } && {
  9656 	 test -z "$ac_c_werror_flag" ||
  9657 	 test ! -s conftest.err
  9658        } && test -s conftest$ac_exeext && {
  9659 	 test "$cross_compiling" = yes ||
  9660 	 $as_test_x conftest$ac_exeext
  9661        }; then
  9662   ac_cv_func_glCreateShaderObjectARB=yes
  9663 else
  9664   $as_echo "$as_me: failed program was:" >&5
  9665 sed 's/^/| /' conftest.$ac_ext >&5
  9667 	ac_cv_func_glCreateShaderObjectARB=no
  9668 fi
  9670 rm -rf conftest.dSYM
  9671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9672       conftest$ac_exeext conftest.$ac_ext
  9673 fi
  9674 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  9675 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
  9676 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  9678 cat >>confdefs.h <<\_ACEOF
  9679 #define HAVE_OPENGL_SHADER_ARB 1
  9680 _ACEOF
  9682 fi
  9684 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
  9685 $as_echo_n "checking for glClampColorARB... " >&6; }
  9686 if test "${ac_cv_func_glClampColorARB+set}" = set; then
  9687   $as_echo_n "(cached) " >&6
  9688 else
  9689   cat >conftest.$ac_ext <<_ACEOF
  9690 /* confdefs.h.  */
  9691 _ACEOF
  9692 cat confdefs.h >>conftest.$ac_ext
  9693 cat >>conftest.$ac_ext <<_ACEOF
  9694 /* end confdefs.h.  */
  9695 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
  9696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9697 #define glClampColorARB innocuous_glClampColorARB
  9699 /* System header to define __stub macros and hopefully few prototypes,
  9700     which can conflict with char glClampColorARB (); below.
  9701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9702     <limits.h> exists even on freestanding compilers.  */
  9704 #ifdef __STDC__
  9705 # include <limits.h>
  9706 #else
  9707 # include <assert.h>
  9708 #endif
  9710 #undef glClampColorARB
  9712 /* Override any GCC internal prototype to avoid an error.
  9713    Use char because int might match the return type of a GCC
  9714    builtin and then its argument prototype would still apply.  */
  9715 #ifdef __cplusplus
  9716 extern "C"
  9717 #endif
  9718 char glClampColorARB ();
  9719 /* The GNU C library defines this for functions which it implements
  9720     to always fail with ENOSYS.  Some functions are actually named
  9721     something starting with __ and the normal name is an alias.  */
  9722 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
  9723 choke me
  9724 #endif
  9726 int
  9727 main ()
  9729 return glClampColorARB ();
  9731   return 0;
  9733 _ACEOF
  9734 rm -f conftest.$ac_objext conftest$ac_exeext
  9735 if { (ac_try="$ac_link"
  9736 case "(($ac_try" in
  9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9738   *) ac_try_echo=$ac_try;;
  9739 esac
  9740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9741 $as_echo "$ac_try_echo") >&5
  9742   (eval "$ac_link") 2>conftest.er1
  9743   ac_status=$?
  9744   grep -v '^ *+' conftest.er1 >conftest.err
  9745   rm -f conftest.er1
  9746   cat conftest.err >&5
  9747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748   (exit $ac_status); } && {
  9749 	 test -z "$ac_c_werror_flag" ||
  9750 	 test ! -s conftest.err
  9751        } && test -s conftest$ac_exeext && {
  9752 	 test "$cross_compiling" = yes ||
  9753 	 $as_test_x conftest$ac_exeext
  9754        }; then
  9755   ac_cv_func_glClampColorARB=yes
  9756 else
  9757   $as_echo "$as_me: failed program was:" >&5
  9758 sed 's/^/| /' conftest.$ac_ext >&5
  9760 	ac_cv_func_glClampColorARB=no
  9761 fi
  9763 rm -rf conftest.dSYM
  9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9765       conftest$ac_exeext conftest.$ac_ext
  9766 fi
  9767 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
  9768 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
  9769 if test $ac_cv_func_glClampColorARB = yes; then
  9771 cat >>confdefs.h <<\_ACEOF
  9772 #define HAVE_OPENGL_CLAMP_COLOR 1
  9773 _ACEOF
  9775 fi
  9780 if test "x$enable_translator" != "xno"; then
  9781     case $host_cpu in
  9782         i386|i486|i586|i686|x86_64)
  9783 	    SH4_TRANSLATOR="x86"
  9785 cat >>confdefs.h <<_ACEOF
  9786 #define SH4_TRANSLATOR TARGET_X86
  9787 _ACEOF
  9788 ;;
  9789     esac
  9790 fi
  9793 if test "$SH4_TRANSLATOR" = "x86"; then
  9794   BUILD_SH4X86_TRUE=
  9795   BUILD_SH4X86_FALSE='#'
  9796 else
  9797   BUILD_SH4X86_TRUE='#'
  9798   BUILD_SH4X86_FALSE=
  9799 fi
  9802 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  9803   { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  9804 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  9805 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  9806   $as_echo_n "(cached) " >&6
  9807 fi
  9808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  9809 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  9810 else
  9811   # Is the header compilable?
  9812 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  9813 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
  9814 cat >conftest.$ac_ext <<_ACEOF
  9815 /* confdefs.h.  */
  9816 _ACEOF
  9817 cat confdefs.h >>conftest.$ac_ext
  9818 cat >>conftest.$ac_ext <<_ACEOF
  9819 /* end confdefs.h.  */
  9820 $ac_includes_default
  9821 #include <CoreAudio/CoreAudio.h>
  9822 _ACEOF
  9823 rm -f conftest.$ac_objext
  9824 if { (ac_try="$ac_compile"
  9825 case "(($ac_try" in
  9826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9827   *) ac_try_echo=$ac_try;;
  9828 esac
  9829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9830 $as_echo "$ac_try_echo") >&5
  9831   (eval "$ac_compile") 2>conftest.er1
  9832   ac_status=$?
  9833   grep -v '^ *+' conftest.er1 >conftest.err
  9834   rm -f conftest.er1
  9835   cat conftest.err >&5
  9836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9837   (exit $ac_status); } && {
  9838 	 test -z "$ac_c_werror_flag" ||
  9839 	 test ! -s conftest.err
  9840        } && test -s conftest.$ac_objext; then
  9841   ac_header_compiler=yes
  9842 else
  9843   $as_echo "$as_me: failed program was:" >&5
  9844 sed 's/^/| /' conftest.$ac_ext >&5
  9846 	ac_header_compiler=no
  9847 fi
  9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9851 $as_echo "$ac_header_compiler" >&6; }
  9853 # Is the header present?
  9854 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  9855 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
  9856 cat >conftest.$ac_ext <<_ACEOF
  9857 /* confdefs.h.  */
  9858 _ACEOF
  9859 cat confdefs.h >>conftest.$ac_ext
  9860 cat >>conftest.$ac_ext <<_ACEOF
  9861 /* end confdefs.h.  */
  9862 #include <CoreAudio/CoreAudio.h>
  9863 _ACEOF
  9864 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9865 case "(($ac_try" in
  9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9867   *) ac_try_echo=$ac_try;;
  9868 esac
  9869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9870 $as_echo "$ac_try_echo") >&5
  9871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9872   ac_status=$?
  9873   grep -v '^ *+' conftest.er1 >conftest.err
  9874   rm -f conftest.er1
  9875   cat conftest.err >&5
  9876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9877   (exit $ac_status); } >/dev/null && {
  9878 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9879 	 test ! -s conftest.err
  9880        }; then
  9881   ac_header_preproc=yes
  9882 else
  9883   $as_echo "$as_me: failed program was:" >&5
  9884 sed 's/^/| /' conftest.$ac_ext >&5
  9886   ac_header_preproc=no
  9887 fi
  9889 rm -f conftest.err conftest.$ac_ext
  9890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9891 $as_echo "$ac_header_preproc" >&6; }
  9893 # So?  What about this header?
  9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9895   yes:no: )
  9896     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9897 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9898     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  9899 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  9900     ac_header_preproc=yes
  9901     ;;
  9902   no:yes:* )
  9903     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  9904 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  9905     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
  9906 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
  9907     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  9908 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  9909     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
  9910 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9911     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  9912 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  9913     { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  9914 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  9916     ;;
  9917 esac
  9918 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  9919 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
  9920 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  9921   $as_echo_n "(cached) " >&6
  9922 else
  9923   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  9924 fi
  9925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  9926 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
  9928 fi
  9929 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  9931      HAVE_CORE_AUDIO=yes
  9932      LIBS="$LIBS -framework CoreAudio"
  9933      AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
  9935 cat >>confdefs.h <<\_ACEOF
  9936 #define HAVE_CORE_AUDIO 1
  9937 _ACEOF
  9939 else
  9940   true
  9941 fi
  9946 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
  9947   AUDIO_OSX_TRUE=
  9948   AUDIO_OSX_FALSE='#'
  9949 else
  9950   AUDIO_OSX_TRUE='#'
  9951   AUDIO_OSX_FALSE=
  9952 fi
  9955 if test "x$with_pulse" != "xno"; then
  9957 pkg_failed=no
  9958 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
  9959 $as_echo_n "checking for PULSE... " >&6; }
  9961 if test -n "$PULSE_CFLAGS"; then
  9962     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  9963  elif test -n "$PKG_CONFIG"; then
  9964     if test -n "$PKG_CONFIG" && \
  9965     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  9966   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  9967   ac_status=$?
  9968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9969   (exit $ac_status); }; then
  9970   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  9971 else
  9972   pkg_failed=yes
  9973 fi
  9974  else
  9975     pkg_failed=untried
  9976 fi
  9977 if test -n "$PULSE_LIBS"; then
  9978     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  9979  elif test -n "$PKG_CONFIG"; then
  9980     if test -n "$PKG_CONFIG" && \
  9981     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  9982   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  9983   ac_status=$?
  9984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9985   (exit $ac_status); }; then
  9986   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  9987 else
  9988   pkg_failed=yes
  9989 fi
  9990  else
  9991     pkg_failed=untried
  9992 fi
  9996 if test $pkg_failed = yes; then
  9998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9999         _pkg_short_errors_supported=yes
 10000 else
 10001         _pkg_short_errors_supported=no
 10002 fi
 10003         if test $_pkg_short_errors_supported = yes; then
 10004 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
 10005         else
 10006 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
 10007         fi
 10008 	# Put the nasty error message in config.log where it belongs
 10009 	echo "$PULSE_PKG_ERRORS" >&5
 10011 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10012 $as_echo "no" >&6; }
 10014        if test "x$with_pulse" = "xyes"; then
 10015           { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10016 See \`config.log' for more details." >&5
 10017 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10018 See \`config.log' for more details." >&2;}
 10019    { (exit 1); exit 1; }; }
 10020        fi
 10022 elif test $pkg_failed = untried; then
 10024        if test "x$with_pulse" = "xyes"; then
 10025           { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
 10026 See \`config.log' for more details." >&5
 10027 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
 10028 See \`config.log' for more details." >&2;}
 10029    { (exit 1); exit 1; }; }
 10030        fi
 10032 else
 10033 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
 10034 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
 10035         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10036 $as_echo "yes" >&6; }
 10038        HAVE_PULSE='yes'
 10039        AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
 10041 cat >>confdefs.h <<\_ACEOF
 10042 #define HAVE_PULSE 1
 10043 _ACEOF
 10046 fi
 10047 fi
 10050 if test "$HAVE_PULSE" = 'yes' ; then
 10051   AUDIO_PULSE_TRUE=
 10052   AUDIO_PULSE_FALSE='#'
 10053 else
 10054   AUDIO_PULSE_TRUE='#'
 10055   AUDIO_PULSE_FALSE=
 10056 fi
 10059 if test "x$with_esd" != "xno"; then
 10061 pkg_failed=no
 10062 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
 10063 $as_echo_n "checking for ESOUND... " >&6; }
 10065 if test -n "$ESOUND_CFLAGS"; then
 10066     pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
 10067  elif test -n "$PKG_CONFIG"; then
 10068     if test -n "$PKG_CONFIG" && \
 10069     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10070   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10071   ac_status=$?
 10072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10073   (exit $ac_status); }; then
 10074   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
 10075 else
 10076   pkg_failed=yes
 10077 fi
 10078  else
 10079     pkg_failed=untried
 10080 fi
 10081 if test -n "$ESOUND_LIBS"; then
 10082     pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
 10083  elif test -n "$PKG_CONFIG"; then
 10084     if test -n "$PKG_CONFIG" && \
 10085     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
 10086   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
 10087   ac_status=$?
 10088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10089   (exit $ac_status); }; then
 10090   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
 10091 else
 10092   pkg_failed=yes
 10093 fi
 10094  else
 10095     pkg_failed=untried
 10096 fi
 10100 if test $pkg_failed = yes; then
 10102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10103         _pkg_short_errors_supported=yes
 10104 else
 10105         _pkg_short_errors_supported=no
 10106 fi
 10107         if test $_pkg_short_errors_supported = yes; then
 10108 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
 10109         else
 10110 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
 10111         fi
 10112 	# Put the nasty error message in config.log where it belongs
 10113 	echo "$ESOUND_PKG_ERRORS" >&5
 10115 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10116 $as_echo "no" >&6; }
 10118        if test "x$with_esd" = "xyes"; then
 10119           { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10120 See \`config.log' for more details." >&5
 10121 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10122 See \`config.log' for more details." >&2;}
 10123    { (exit 1); exit 1; }; }
 10124        fi
 10126 elif test $pkg_failed = untried; then
 10128        if test "x$with_esd" = "xyes"; then
 10129           { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
 10130 See \`config.log' for more details." >&5
 10131 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
 10132 See \`config.log' for more details." >&2;}
 10133    { (exit 1); exit 1; }; }
 10134        fi
 10136 else
 10137 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
 10138 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
 10139         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10140 $as_echo "yes" >&6; }
 10142        HAVE_ESOUND='yes'
 10143        AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
 10145 cat >>confdefs.h <<\_ACEOF
 10146 #define HAVE_ESOUND 1
 10147 _ACEOF
 10150 fi
 10151 fi
 10154 if test "$HAVE_ESOUND" = 'yes' ; then
 10155   AUDIO_ESOUND_TRUE=
 10156   AUDIO_ESOUND_FALSE='#'
 10157 else
 10158   AUDIO_ESOUND_TRUE='#'
 10159   AUDIO_ESOUND_FALSE=
 10160 fi
 10164 pkg_failed=no
 10165 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
 10166 $as_echo_n "checking for ALSA... " >&6; }
 10168 if test -n "$ALSA_CFLAGS"; then
 10169     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 10170  elif test -n "$PKG_CONFIG"; then
 10171     if test -n "$PKG_CONFIG" && \
 10172     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10173   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10174   ac_status=$?
 10175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10176   (exit $ac_status); }; then
 10177   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
 10178 else
 10179   pkg_failed=yes
 10180 fi
 10181  else
 10182     pkg_failed=untried
 10183 fi
 10184 if test -n "$ALSA_LIBS"; then
 10185     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 10186  elif test -n "$PKG_CONFIG"; then
 10187     if test -n "$PKG_CONFIG" && \
 10188     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
 10189   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
 10190   ac_status=$?
 10191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10192   (exit $ac_status); }; then
 10193   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
 10194 else
 10195   pkg_failed=yes
 10196 fi
 10197  else
 10198     pkg_failed=untried
 10199 fi
 10203 if test $pkg_failed = yes; then
 10205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 10206         _pkg_short_errors_supported=yes
 10207 else
 10208         _pkg_short_errors_supported=no
 10209 fi
 10210         if test $_pkg_short_errors_supported = yes; then
 10211 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
 10212         else
 10213 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
 10214         fi
 10215 	# Put the nasty error message in config.log where it belongs
 10216 	echo "$ALSA_PKG_ERRORS" >&5
 10218 	{ $as_echo "$as_me:$LINENO: result: no" >&5
 10219 $as_echo "no" >&6; }
 10220                 true
 10221 elif test $pkg_failed = untried; then
 10222 	true
 10223 else
 10224 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
 10225 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
 10226         { $as_echo "$as_me:$LINENO: result: yes" >&5
 10227 $as_echo "yes" >&6; }
 10229      HAVE_ALSA='yes'
 10230      AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
 10232 cat >>confdefs.h <<\_ACEOF
 10233 #define HAVE_ALSA 1
 10234 _ACEOF
 10236 fi
 10239 if test "$HAVE_ALSA" = 'yes' ; then
 10240   AUDIO_ALSA_TRUE=
 10241   AUDIO_ALSA_FALSE='#'
 10242 else
 10243   AUDIO_ALSA_TRUE='#'
 10244   AUDIO_ALSA_FALSE=
 10245 fi
 10249 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10250   { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10251 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 10252 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10253   $as_echo_n "(cached) " >&6
 10254 fi
 10255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10256 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 10257 else
 10258   # Is the header compilable?
 10259 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
 10260 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
 10261 cat >conftest.$ac_ext <<_ACEOF
 10262 /* confdefs.h.  */
 10263 _ACEOF
 10264 cat confdefs.h >>conftest.$ac_ext
 10265 cat >>conftest.$ac_ext <<_ACEOF
 10266 /* end confdefs.h.  */
 10267 $ac_includes_default
 10268 #include <linux/cdrom.h>
 10269 _ACEOF
 10270 rm -f conftest.$ac_objext
 10271 if { (ac_try="$ac_compile"
 10272 case "(($ac_try" in
 10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10274   *) ac_try_echo=$ac_try;;
 10275 esac
 10276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10277 $as_echo "$ac_try_echo") >&5
 10278   (eval "$ac_compile") 2>conftest.er1
 10279   ac_status=$?
 10280   grep -v '^ *+' conftest.er1 >conftest.err
 10281   rm -f conftest.er1
 10282   cat conftest.err >&5
 10283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10284   (exit $ac_status); } && {
 10285 	 test -z "$ac_c_werror_flag" ||
 10286 	 test ! -s conftest.err
 10287        } && test -s conftest.$ac_objext; then
 10288   ac_header_compiler=yes
 10289 else
 10290   $as_echo "$as_me: failed program was:" >&5
 10291 sed 's/^/| /' conftest.$ac_ext >&5
 10293 	ac_header_compiler=no
 10294 fi
 10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10298 $as_echo "$ac_header_compiler" >&6; }
 10300 # Is the header present?
 10301 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
 10302 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
 10303 cat >conftest.$ac_ext <<_ACEOF
 10304 /* confdefs.h.  */
 10305 _ACEOF
 10306 cat confdefs.h >>conftest.$ac_ext
 10307 cat >>conftest.$ac_ext <<_ACEOF
 10308 /* end confdefs.h.  */
 10309 #include <linux/cdrom.h>
 10310 _ACEOF
 10311 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10312 case "(($ac_try" in
 10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10314   *) ac_try_echo=$ac_try;;
 10315 esac
 10316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10317 $as_echo "$ac_try_echo") >&5
 10318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10319   ac_status=$?
 10320   grep -v '^ *+' conftest.er1 >conftest.err
 10321   rm -f conftest.er1
 10322   cat conftest.err >&5
 10323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10324   (exit $ac_status); } >/dev/null && {
 10325 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10326 	 test ! -s conftest.err
 10327        }; then
 10328   ac_header_preproc=yes
 10329 else
 10330   $as_echo "$as_me: failed program was:" >&5
 10331 sed 's/^/| /' conftest.$ac_ext >&5
 10333   ac_header_preproc=no
 10334 fi
 10336 rm -f conftest.err conftest.$ac_ext
 10337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10338 $as_echo "$ac_header_preproc" >&6; }
 10340 # So?  What about this header?
 10341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10342   yes:no: )
 10343     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10344 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10345     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
 10346 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
 10347     ac_header_preproc=yes
 10348     ;;
 10349   no:yes:* )
 10350     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
 10351 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
 10352     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
 10353 $as_echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
 10354     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
 10355 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
 10356     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
 10357 $as_echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10358     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
 10359 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
 10360     { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
 10361 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
 10363     ;;
 10364 esac
 10365 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
 10366 $as_echo_n "checking for linux/cdrom.h... " >&6; }
 10367 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
 10368   $as_echo_n "(cached) " >&6
 10369 else
 10370   ac_cv_header_linux_cdrom_h=$ac_header_preproc
 10371 fi
 10372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
 10373 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
 10375 fi
 10376 if test $ac_cv_header_linux_cdrom_h = yes; then
 10377   CDROM_DRIVER=linux
 10378 else
 10379   true
 10380 fi
 10383 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 10384   { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 10385 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 10386 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 10387   $as_echo_n "(cached) " >&6
 10388 fi
 10389 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 10390 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 10391 else
 10392   # Is the header compilable?
 10393 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
 10394 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
 10395 cat >conftest.$ac_ext <<_ACEOF
 10396 /* confdefs.h.  */
 10397 _ACEOF
 10398 cat confdefs.h >>conftest.$ac_ext
 10399 cat >>conftest.$ac_ext <<_ACEOF
 10400 /* end confdefs.h.  */
 10401 $ac_includes_default
 10402 #include <IOKit/IOKitLib.h>
 10403 _ACEOF
 10404 rm -f conftest.$ac_objext
 10405 if { (ac_try="$ac_compile"
 10406 case "(($ac_try" in
 10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10408   *) ac_try_echo=$ac_try;;
 10409 esac
 10410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10411 $as_echo "$ac_try_echo") >&5
 10412   (eval "$ac_compile") 2>conftest.er1
 10413   ac_status=$?
 10414   grep -v '^ *+' conftest.er1 >conftest.err
 10415   rm -f conftest.er1
 10416   cat conftest.err >&5
 10417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10418   (exit $ac_status); } && {
 10419 	 test -z "$ac_c_werror_flag" ||
 10420 	 test ! -s conftest.err
 10421        } && test -s conftest.$ac_objext; then
 10422   ac_header_compiler=yes
 10423 else
 10424   $as_echo "$as_me: failed program was:" >&5
 10425 sed 's/^/| /' conftest.$ac_ext >&5
 10427 	ac_header_compiler=no
 10428 fi
 10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10431 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10432 $as_echo "$ac_header_compiler" >&6; }
 10434 # Is the header present?
 10435 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
 10436 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
 10437 cat >conftest.$ac_ext <<_ACEOF
 10438 /* confdefs.h.  */
 10439 _ACEOF
 10440 cat confdefs.h >>conftest.$ac_ext
 10441 cat >>conftest.$ac_ext <<_ACEOF
 10442 /* end confdefs.h.  */
 10443 #include <IOKit/IOKitLib.h>
 10444 _ACEOF
 10445 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10446 case "(($ac_try" in
 10447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10448   *) ac_try_echo=$ac_try;;
 10449 esac
 10450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10451 $as_echo "$ac_try_echo") >&5
 10452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10453   ac_status=$?
 10454   grep -v '^ *+' conftest.er1 >conftest.err
 10455   rm -f conftest.er1
 10456   cat conftest.err >&5
 10457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10458   (exit $ac_status); } >/dev/null && {
 10459 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10460 	 test ! -s conftest.err
 10461        }; then
 10462   ac_header_preproc=yes
 10463 else
 10464   $as_echo "$as_me: failed program was:" >&5
 10465 sed 's/^/| /' conftest.$ac_ext >&5
 10467   ac_header_preproc=no
 10468 fi
 10470 rm -f conftest.err conftest.$ac_ext
 10471 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10472 $as_echo "$ac_header_preproc" >&6; }
 10474 # So?  What about this header?
 10475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10476   yes:no: )
 10477     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10478 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10479     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
 10480 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
 10481     ac_header_preproc=yes
 10482     ;;
 10483   no:yes:* )
 10484     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
 10485 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
 10486     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&5
 10487 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     check for missing prerequisite headers?" >&2;}
 10488     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
 10489 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
 10490     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&5
 10491 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10492     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
 10493 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
 10494     { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
 10495 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
 10497     ;;
 10498 esac
 10499 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
 10500 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
 10501 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
 10502   $as_echo_n "(cached) " >&6
 10503 else
 10504   ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
 10505 fi
 10506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
 10507 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
 10509 fi
 10510 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
 10512      CDROM_DRIVER=osx
 10513      LIBS="$LIBS -framework IOKit"
 10514 else
 10515   true
 10516 fi
 10521 if test "x$CDROM_DRIVER" = "xlinux"; then
 10522   CDROM_LINUX_TRUE=
 10523   CDROM_LINUX_FALSE='#'
 10524 else
 10525   CDROM_LINUX_TRUE='#'
 10526   CDROM_LINUX_FALSE=
 10527 fi
 10531 if test "x$CDROM_DRIVER" = "xosx"; then
 10532   CDROM_OSX_TRUE=
 10533   CDROM_OSX_FALSE='#'
 10534 else
 10535   CDROM_OSX_TRUE='#'
 10536   CDROM_OSX_FALSE=
 10537 fi
 10541 if test "x$CDROM_DRIVER" = "x"; then
 10542   CDROM_NONE_TRUE=
 10543   CDROM_NONE_FALSE='#'
 10544 else
 10545   CDROM_NONE_TRUE='#'
 10546   CDROM_NONE_FALSE=
 10547 fi
 10550 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 10551   { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 10552 $as_echo_n "checking for linux/joystick.h... " >&6; }
 10553 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 10554   $as_echo_n "(cached) " >&6
 10555 fi
 10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 10557 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 10558 else
 10559   # Is the header compilable?
 10560 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
 10561 $as_echo_n "checking linux/joystick.h usability... " >&6; }
 10562 cat >conftest.$ac_ext <<_ACEOF
 10563 /* confdefs.h.  */
 10564 _ACEOF
 10565 cat confdefs.h >>conftest.$ac_ext
 10566 cat >>conftest.$ac_ext <<_ACEOF
 10567 /* end confdefs.h.  */
 10568 $ac_includes_default
 10569 #include <linux/joystick.h>
 10570 _ACEOF
 10571 rm -f conftest.$ac_objext
 10572 if { (ac_try="$ac_compile"
 10573 case "(($ac_try" in
 10574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10575   *) ac_try_echo=$ac_try;;
 10576 esac
 10577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10578 $as_echo "$ac_try_echo") >&5
 10579   (eval "$ac_compile") 2>conftest.er1
 10580   ac_status=$?
 10581   grep -v '^ *+' conftest.er1 >conftest.err
 10582   rm -f conftest.er1
 10583   cat conftest.err >&5
 10584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10585   (exit $ac_status); } && {
 10586 	 test -z "$ac_c_werror_flag" ||
 10587 	 test ! -s conftest.err
 10588        } && test -s conftest.$ac_objext; then
 10589   ac_header_compiler=yes
 10590 else
 10591   $as_echo "$as_me: failed program was:" >&5
 10592 sed 's/^/| /' conftest.$ac_ext >&5
 10594 	ac_header_compiler=no
 10595 fi
 10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 10599 $as_echo "$ac_header_compiler" >&6; }
 10601 # Is the header present?
 10602 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
 10603 $as_echo_n "checking linux/joystick.h presence... " >&6; }
 10604 cat >conftest.$ac_ext <<_ACEOF
 10605 /* confdefs.h.  */
 10606 _ACEOF
 10607 cat confdefs.h >>conftest.$ac_ext
 10608 cat >>conftest.$ac_ext <<_ACEOF
 10609 /* end confdefs.h.  */
 10610 #include <linux/joystick.h>
 10611 _ACEOF
 10612 if { (ac_try="$ac_cpp conftest.$ac_ext"
 10613 case "(($ac_try" in
 10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10615   *) ac_try_echo=$ac_try;;
 10616 esac
 10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 10618 $as_echo "$ac_try_echo") >&5
 10619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 10620   ac_status=$?
 10621   grep -v '^ *+' conftest.er1 >conftest.err
 10622   rm -f conftest.er1
 10623   cat conftest.err >&5
 10624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10625   (exit $ac_status); } >/dev/null && {
 10626 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 10627 	 test ! -s conftest.err
 10628        }; then
 10629   ac_header_preproc=yes
 10630 else
 10631   $as_echo "$as_me: failed program was:" >&5
 10632 sed 's/^/| /' conftest.$ac_ext >&5
 10634   ac_header_preproc=no
 10635 fi
 10637 rm -f conftest.err conftest.$ac_ext
 10638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 10639 $as_echo "$ac_header_preproc" >&6; }
 10641 # So?  What about this header?
 10642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 10643   yes:no: )
 10644     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
 10645 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 10646     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
 10647 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
 10648     ac_header_preproc=yes
 10649     ;;
 10650   no:yes:* )
 10651     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
 10652 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
 10653     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
 10654 $as_echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
 10655     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
 10656 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
 10657     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
 10658 $as_echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 10659     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
 10660 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
 10661     { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
 10662 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
 10664     ;;
 10665 esac
 10666 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
 10667 $as_echo_n "checking for linux/joystick.h... " >&6; }
 10668 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
 10669   $as_echo_n "(cached) " >&6
 10670 else
 10671   ac_cv_header_linux_joystick_h=$ac_header_preproc
 10672 fi
 10673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
 10674 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
 10676 fi
 10677 if test $ac_cv_header_linux_joystick_h = yes; then
 10679     HAVE_LINUX_JOYSTICK_H=yes
 10681 cat >>confdefs.h <<\_ACEOF
 10682 #define HAVE_LINUX_JOYSTICK 1
 10683 _ACEOF
 10685 else
 10686    echo "Linux Joystick support not found, building without it."
 10687 fi
 10692 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
 10693   JOY_LINUX_TRUE=
 10694   JOY_LINUX_FALSE='#'
 10695 else
 10696   JOY_LINUX_TRUE='#'
 10697   JOY_LINUX_FALSE=
 10698 fi
 10701 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
 10702 set dummy sh-elf-gcc; ac_word=$2
 10703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10704 $as_echo_n "checking for $ac_word... " >&6; }
 10705 if test "${ac_cv_path_SHCC+set}" = set; then
 10706   $as_echo_n "(cached) " >&6
 10707 else
 10708   case $SHCC in
 10709   [\\/]* | ?:[\\/]*)
 10710   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
 10711   ;;
 10712   *)
 10713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10714 for as_dir in $PATH
 10715 do
 10716   IFS=$as_save_IFS
 10717   test -z "$as_dir" && as_dir=.
 10718   for ac_exec_ext in '' $ac_executable_extensions; do
 10719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10720     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
 10721     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10722     break 2
 10723   fi
 10724 done
 10725 done
 10726 IFS=$as_save_IFS
 10728   ;;
 10729 esac
 10730 fi
 10731 SHCC=$ac_cv_path_SHCC
 10732 if test -n "$SHCC"; then
 10733   { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
 10734 $as_echo "$SHCC" >&6; }
 10735 else
 10736   { $as_echo "$as_me:$LINENO: result: no" >&5
 10737 $as_echo "no" >&6; }
 10738 fi
 10741 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
 10742 set dummy sh-elf-ld; ac_word=$2
 10743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10744 $as_echo_n "checking for $ac_word... " >&6; }
 10745 if test "${ac_cv_path_SHLD+set}" = set; then
 10746   $as_echo_n "(cached) " >&6
 10747 else
 10748   case $SHLD in
 10749   [\\/]* | ?:[\\/]*)
 10750   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
 10751   ;;
 10752   *)
 10753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10754 for as_dir in $PATH
 10755 do
 10756   IFS=$as_save_IFS
 10757   test -z "$as_dir" && as_dir=.
 10758   for ac_exec_ext in '' $ac_executable_extensions; do
 10759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10760     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
 10761     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10762     break 2
 10763   fi
 10764 done
 10765 done
 10766 IFS=$as_save_IFS
 10768   ;;
 10769 esac
 10770 fi
 10771 SHLD=$ac_cv_path_SHLD
 10772 if test -n "$SHLD"; then
 10773   { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
 10774 $as_echo "$SHLD" >&6; }
 10775 else
 10776   { $as_echo "$as_me:$LINENO: result: no" >&5
 10777 $as_echo "no" >&6; }
 10778 fi
 10781 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
 10782 set dummy sh-elf-objcopy; ac_word=$2
 10783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10784 $as_echo_n "checking for $ac_word... " >&6; }
 10785 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
 10786   $as_echo_n "(cached) " >&6
 10787 else
 10788   case $SHOBJCOPY in
 10789   [\\/]* | ?:[\\/]*)
 10790   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
 10791   ;;
 10792   *)
 10793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10794 for as_dir in $PATH
 10795 do
 10796   IFS=$as_save_IFS
 10797   test -z "$as_dir" && as_dir=.
 10798   for ac_exec_ext in '' $ac_executable_extensions; do
 10799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10800     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 10801     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10802     break 2
 10803   fi
 10804 done
 10805 done
 10806 IFS=$as_save_IFS
 10808   ;;
 10809 esac
 10810 fi
 10811 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
 10812 if test -n "$SHOBJCOPY"; then
 10813   { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
 10814 $as_echo "$SHOBJCOPY" >&6; }
 10815 else
 10816   { $as_echo "$as_me:$LINENO: result: no" >&5
 10817 $as_echo "no" >&6; }
 10818 fi
 10821 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
 10822 set dummy arm-elf-gcc; ac_word=$2
 10823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10824 $as_echo_n "checking for $ac_word... " >&6; }
 10825 if test "${ac_cv_path_ARMCC+set}" = set; then
 10826   $as_echo_n "(cached) " >&6
 10827 else
 10828   case $ARMCC in
 10829   [\\/]* | ?:[\\/]*)
 10830   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
 10831   ;;
 10832   *)
 10833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10834 for as_dir in $PATH
 10835 do
 10836   IFS=$as_save_IFS
 10837   test -z "$as_dir" && as_dir=.
 10838   for ac_exec_ext in '' $ac_executable_extensions; do
 10839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10840     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
 10841     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10842     break 2
 10843   fi
 10844 done
 10845 done
 10846 IFS=$as_save_IFS
 10848   ;;
 10849 esac
 10850 fi
 10851 ARMCC=$ac_cv_path_ARMCC
 10852 if test -n "$ARMCC"; then
 10853   { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
 10854 $as_echo "$ARMCC" >&6; }
 10855 else
 10856   { $as_echo "$as_me:$LINENO: result: no" >&5
 10857 $as_echo "no" >&6; }
 10858 fi
 10861 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
 10862 set dummy arm-elf-ld; ac_word=$2
 10863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10864 $as_echo_n "checking for $ac_word... " >&6; }
 10865 if test "${ac_cv_path_ARMLD+set}" = set; then
 10866   $as_echo_n "(cached) " >&6
 10867 else
 10868   case $ARMLD in
 10869   [\\/]* | ?:[\\/]*)
 10870   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
 10871   ;;
 10872   *)
 10873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10874 for as_dir in $PATH
 10875 do
 10876   IFS=$as_save_IFS
 10877   test -z "$as_dir" && as_dir=.
 10878   for ac_exec_ext in '' $ac_executable_extensions; do
 10879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10880     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
 10881     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10882     break 2
 10883   fi
 10884 done
 10885 done
 10886 IFS=$as_save_IFS
 10888   ;;
 10889 esac
 10890 fi
 10891 ARMLD=$ac_cv_path_ARMLD
 10892 if test -n "$ARMLD"; then
 10893   { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
 10894 $as_echo "$ARMLD" >&6; }
 10895 else
 10896   { $as_echo "$as_me:$LINENO: result: no" >&5
 10897 $as_echo "no" >&6; }
 10898 fi
 10901 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
 10902 set dummy arm-elf-objcopy; ac_word=$2
 10903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 10904 $as_echo_n "checking for $ac_word... " >&6; }
 10905 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
 10906   $as_echo_n "(cached) " >&6
 10907 else
 10908   case $ARMOBJCOPY in
 10909   [\\/]* | ?:[\\/]*)
 10910   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
 10911   ;;
 10912   *)
 10913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10914 for as_dir in $PATH
 10915 do
 10916   IFS=$as_save_IFS
 10917   test -z "$as_dir" && as_dir=.
 10918   for ac_exec_ext in '' $ac_executable_extensions; do
 10919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10920     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
 10921     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10922     break 2
 10923   fi
 10924 done
 10925 done
 10926 IFS=$as_save_IFS
 10928   ;;
 10929 esac
 10930 fi
 10931 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
 10932 if test -n "$ARMOBJCOPY"; then
 10933   { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
 10934 $as_echo "$ARMOBJCOPY" >&6; }
 10935 else
 10936   { $as_echo "$as_me:$LINENO: result: no" >&5
 10937 $as_echo "no" >&6; }
 10938 fi
 10942 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
 10943   BUILD_SH="no"
 10944   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
 10945 else
 10946   BUILD_SH="yes"
 10947 fi
 10948 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
 10949   BUILD_ARM="no"
 10950   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
 10951 else
 10952   BUILD_ARM="yes"
 10953 fi
 10956 if test "$BUILD_SH" = "yes"; then
 10957   BUILD_SYSTEST_TRUE=
 10958   BUILD_SYSTEST_FALSE='#'
 10959 else
 10960   BUILD_SYSTEST_TRUE='#'
 10961   BUILD_SYSTEST_FALSE=
 10962 fi
 10966 if test "$BUILD_ARM" = "yes"; then
 10967   BUILD_ARMTEST_TRUE=
 10968   BUILD_ARMTEST_FALSE='#'
 10969 else
 10970   BUILD_ARMTEST_TRUE='#'
 10971   BUILD_ARMTEST_FALSE=
 10972 fi
 10976 GETTEXT_PACKAGE=lxdream
 10979 cat >>confdefs.h <<_ACEOF
 10980 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 10981 _ACEOF
 10984 ALL_LINGUAS="de es it pt_BR"
 10987 for ac_header in locale.h
 10988 do
 10989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 10991   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 10992 $as_echo_n "checking for $ac_header... " >&6; }
 10993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 10994   $as_echo_n "(cached) " >&6
 10995 fi
 10996 ac_res=`eval 'as_val=${'$as_ac_Header'}
 10997 		 $as_echo "$as_val"'`
 10998 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 10999 $as_echo "$ac_res" >&6; }
 11000 else
 11001   # Is the header compilable?
 11002 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 11003 $as_echo_n "checking $ac_header usability... " >&6; }
 11004 cat >conftest.$ac_ext <<_ACEOF
 11005 /* confdefs.h.  */
 11006 _ACEOF
 11007 cat confdefs.h >>conftest.$ac_ext
 11008 cat >>conftest.$ac_ext <<_ACEOF
 11009 /* end confdefs.h.  */
 11010 $ac_includes_default
 11011 #include <$ac_header>
 11012 _ACEOF
 11013 rm -f conftest.$ac_objext
 11014 if { (ac_try="$ac_compile"
 11015 case "(($ac_try" in
 11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11017   *) ac_try_echo=$ac_try;;
 11018 esac
 11019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11020 $as_echo "$ac_try_echo") >&5
 11021   (eval "$ac_compile") 2>conftest.er1
 11022   ac_status=$?
 11023   grep -v '^ *+' conftest.er1 >conftest.err
 11024   rm -f conftest.er1
 11025   cat conftest.err >&5
 11026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11027   (exit $ac_status); } && {
 11028 	 test -z "$ac_c_werror_flag" ||
 11029 	 test ! -s conftest.err
 11030        } && test -s conftest.$ac_objext; then
 11031   ac_header_compiler=yes
 11032 else
 11033   $as_echo "$as_me: failed program was:" >&5
 11034 sed 's/^/| /' conftest.$ac_ext >&5
 11036 	ac_header_compiler=no
 11037 fi
 11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11040 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11041 $as_echo "$ac_header_compiler" >&6; }
 11043 # Is the header present?
 11044 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 11045 $as_echo_n "checking $ac_header presence... " >&6; }
 11046 cat >conftest.$ac_ext <<_ACEOF
 11047 /* confdefs.h.  */
 11048 _ACEOF
 11049 cat confdefs.h >>conftest.$ac_ext
 11050 cat >>conftest.$ac_ext <<_ACEOF
 11051 /* end confdefs.h.  */
 11052 #include <$ac_header>
 11053 _ACEOF
 11054 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11055 case "(($ac_try" in
 11056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11057   *) ac_try_echo=$ac_try;;
 11058 esac
 11059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11060 $as_echo "$ac_try_echo") >&5
 11061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11062   ac_status=$?
 11063   grep -v '^ *+' conftest.er1 >conftest.err
 11064   rm -f conftest.er1
 11065   cat conftest.err >&5
 11066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11067   (exit $ac_status); } >/dev/null && {
 11068 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11069 	 test ! -s conftest.err
 11070        }; then
 11071   ac_header_preproc=yes
 11072 else
 11073   $as_echo "$as_me: failed program was:" >&5
 11074 sed 's/^/| /' conftest.$ac_ext >&5
 11076   ac_header_preproc=no
 11077 fi
 11079 rm -f conftest.err conftest.$ac_ext
 11080 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11081 $as_echo "$ac_header_preproc" >&6; }
 11083 # So?  What about this header?
 11084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11085   yes:no: )
 11086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 11087 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 11089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 11090     ac_header_preproc=yes
 11091     ;;
 11092   no:yes:* )
 11093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 11094 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 11095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 11096 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 11097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 11098 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 11099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 11100 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 11101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 11102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 11103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 11104 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 11106     ;;
 11107 esac
 11108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 11109 $as_echo_n "checking for $ac_header... " >&6; }
 11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 11111   $as_echo_n "(cached) " >&6
 11112 else
 11113   eval "$as_ac_Header=\$ac_header_preproc"
 11114 fi
 11115 ac_res=`eval 'as_val=${'$as_ac_Header'}
 11116 		 $as_echo "$as_val"'`
 11117 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11118 $as_echo "$ac_res" >&6; }
 11120 fi
 11121 if test `eval 'as_val=${'$as_ac_Header'}
 11122 		 $as_echo "$as_val"'` = yes; then
 11123   cat >>confdefs.h <<_ACEOF
 11124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 11125 _ACEOF
 11127 fi
 11129 done
 11131     if test $ac_cv_header_locale_h = yes; then
 11132     { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 11133 $as_echo_n "checking for LC_MESSAGES... " >&6; }
 11134 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 11135   $as_echo_n "(cached) " >&6
 11136 else
 11137   cat >conftest.$ac_ext <<_ACEOF
 11138 /* confdefs.h.  */
 11139 _ACEOF
 11140 cat confdefs.h >>conftest.$ac_ext
 11141 cat >>conftest.$ac_ext <<_ACEOF
 11142 /* end confdefs.h.  */
 11143 #include <locale.h>
 11144 int
 11145 main ()
 11147 return LC_MESSAGES
 11149   return 0;
 11151 _ACEOF
 11152 rm -f conftest.$ac_objext conftest$ac_exeext
 11153 if { (ac_try="$ac_link"
 11154 case "(($ac_try" in
 11155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11156   *) ac_try_echo=$ac_try;;
 11157 esac
 11158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11159 $as_echo "$ac_try_echo") >&5
 11160   (eval "$ac_link") 2>conftest.er1
 11161   ac_status=$?
 11162   grep -v '^ *+' conftest.er1 >conftest.err
 11163   rm -f conftest.er1
 11164   cat conftest.err >&5
 11165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11166   (exit $ac_status); } && {
 11167 	 test -z "$ac_c_werror_flag" ||
 11168 	 test ! -s conftest.err
 11169        } && test -s conftest$ac_exeext && {
 11170 	 test "$cross_compiling" = yes ||
 11171 	 $as_test_x conftest$ac_exeext
 11172        }; then
 11173   am_cv_val_LC_MESSAGES=yes
 11174 else
 11175   $as_echo "$as_me: failed program was:" >&5
 11176 sed 's/^/| /' conftest.$ac_ext >&5
 11178 	am_cv_val_LC_MESSAGES=no
 11179 fi
 11181 rm -rf conftest.dSYM
 11182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11183       conftest$ac_exeext conftest.$ac_ext
 11184 fi
 11185 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 11186 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 11187     if test $am_cv_val_LC_MESSAGES = yes; then
 11189 cat >>confdefs.h <<\_ACEOF
 11190 #define HAVE_LC_MESSAGES 1
 11191 _ACEOF
 11193     fi
 11194   fi
 11195      USE_NLS=yes
 11198     gt_cv_have_gettext=no
 11200     CATOBJEXT=NONE
 11201     XGETTEXT=:
 11202     INTLLIBS=
 11204     if test "${ac_cv_header_libintl_h+set}" = set; then
 11205   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 11206 $as_echo_n "checking for libintl.h... " >&6; }
 11207 if test "${ac_cv_header_libintl_h+set}" = set; then
 11208   $as_echo_n "(cached) " >&6
 11209 fi
 11210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 11211 $as_echo "$ac_cv_header_libintl_h" >&6; }
 11212 else
 11213   # Is the header compilable?
 11214 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
 11215 $as_echo_n "checking libintl.h usability... " >&6; }
 11216 cat >conftest.$ac_ext <<_ACEOF
 11217 /* confdefs.h.  */
 11218 _ACEOF
 11219 cat confdefs.h >>conftest.$ac_ext
 11220 cat >>conftest.$ac_ext <<_ACEOF
 11221 /* end confdefs.h.  */
 11222 $ac_includes_default
 11223 #include <libintl.h>
 11224 _ACEOF
 11225 rm -f conftest.$ac_objext
 11226 if { (ac_try="$ac_compile"
 11227 case "(($ac_try" in
 11228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11229   *) ac_try_echo=$ac_try;;
 11230 esac
 11231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11232 $as_echo "$ac_try_echo") >&5
 11233   (eval "$ac_compile") 2>conftest.er1
 11234   ac_status=$?
 11235   grep -v '^ *+' conftest.er1 >conftest.err
 11236   rm -f conftest.er1
 11237   cat conftest.err >&5
 11238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11239   (exit $ac_status); } && {
 11240 	 test -z "$ac_c_werror_flag" ||
 11241 	 test ! -s conftest.err
 11242        } && test -s conftest.$ac_objext; then
 11243   ac_header_compiler=yes
 11244 else
 11245   $as_echo "$as_me: failed program was:" >&5
 11246 sed 's/^/| /' conftest.$ac_ext >&5
 11248 	ac_header_compiler=no
 11249 fi
 11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 11252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 11253 $as_echo "$ac_header_compiler" >&6; }
 11255 # Is the header present?
 11256 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
 11257 $as_echo_n "checking libintl.h presence... " >&6; }
 11258 cat >conftest.$ac_ext <<_ACEOF
 11259 /* confdefs.h.  */
 11260 _ACEOF
 11261 cat confdefs.h >>conftest.$ac_ext
 11262 cat >>conftest.$ac_ext <<_ACEOF
 11263 /* end confdefs.h.  */
 11264 #include <libintl.h>
 11265 _ACEOF
 11266 if { (ac_try="$ac_cpp conftest.$ac_ext"
 11267 case "(($ac_try" in
 11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11269   *) ac_try_echo=$ac_try;;
 11270 esac
 11271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11272 $as_echo "$ac_try_echo") >&5
 11273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 11274   ac_status=$?
 11275   grep -v '^ *+' conftest.er1 >conftest.err
 11276   rm -f conftest.er1
 11277   cat conftest.err >&5
 11278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11279   (exit $ac_status); } >/dev/null && {
 11280 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 11281 	 test ! -s conftest.err
 11282        }; then
 11283   ac_header_preproc=yes
 11284 else
 11285   $as_echo "$as_me: failed program was:" >&5
 11286 sed 's/^/| /' conftest.$ac_ext >&5
 11288   ac_header_preproc=no
 11289 fi
 11291 rm -f conftest.err conftest.$ac_ext
 11292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 11293 $as_echo "$ac_header_preproc" >&6; }
 11295 # So?  What about this header?
 11296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 11297   yes:no: )
 11298     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 11299 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 11300     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 11301 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 11302     ac_header_preproc=yes
 11303     ;;
 11304   no:yes:* )
 11305     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 11306 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 11307     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 11308 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 11309     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 11310 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 11311     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 11312 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 11313     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 11314 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 11315     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 11316 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 11318     ;;
 11319 esac
 11320 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
 11321 $as_echo_n "checking for libintl.h... " >&6; }
 11322 if test "${ac_cv_header_libintl_h+set}" = set; then
 11323   $as_echo_n "(cached) " >&6
 11324 else
 11325   ac_cv_header_libintl_h=$ac_header_preproc
 11326 fi
 11327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 11328 $as_echo "$ac_cv_header_libintl_h" >&6; }
 11330 fi
 11331 if test $ac_cv_header_libintl_h = yes; then
 11332   gt_cv_func_dgettext_libintl="no"
 11333       libintl_extra_libs=""
 11336       # First check in libc
 11338       { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 11339 $as_echo_n "checking for ngettext in libc... " >&6; }
 11340 if test "${gt_cv_func_ngettext_libc+set}" = set; then
 11341   $as_echo_n "(cached) " >&6
 11342 else
 11343   cat >conftest.$ac_ext <<_ACEOF
 11344 /* confdefs.h.  */
 11345 _ACEOF
 11346 cat confdefs.h >>conftest.$ac_ext
 11347 cat >>conftest.$ac_ext <<_ACEOF
 11348 /* end confdefs.h.  */
 11350 #include <libintl.h>
 11352 int
 11353 main ()
 11355 return !ngettext ("","", 1)
 11357   return 0;
 11359 _ACEOF
 11360 rm -f conftest.$ac_objext conftest$ac_exeext
 11361 if { (ac_try="$ac_link"
 11362 case "(($ac_try" in
 11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11364   *) ac_try_echo=$ac_try;;
 11365 esac
 11366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11367 $as_echo "$ac_try_echo") >&5
 11368   (eval "$ac_link") 2>conftest.er1
 11369   ac_status=$?
 11370   grep -v '^ *+' conftest.er1 >conftest.err
 11371   rm -f conftest.er1
 11372   cat conftest.err >&5
 11373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11374   (exit $ac_status); } && {
 11375 	 test -z "$ac_c_werror_flag" ||
 11376 	 test ! -s conftest.err
 11377        } && test -s conftest$ac_exeext && {
 11378 	 test "$cross_compiling" = yes ||
 11379 	 $as_test_x conftest$ac_exeext
 11380        }; then
 11381   gt_cv_func_ngettext_libc=yes
 11382 else
 11383   $as_echo "$as_me: failed program was:" >&5
 11384 sed 's/^/| /' conftest.$ac_ext >&5
 11386 	gt_cv_func_ngettext_libc=no
 11387 fi
 11389 rm -rf conftest.dSYM
 11390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11391       conftest$ac_exeext conftest.$ac_ext
 11393 fi
 11394 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 11395 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
 11397       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 11398 	      { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 11399 $as_echo_n "checking for dgettext in libc... " >&6; }
 11400 if test "${gt_cv_func_dgettext_libc+set}" = set; then
 11401   $as_echo_n "(cached) " >&6
 11402 else
 11403   cat >conftest.$ac_ext <<_ACEOF
 11404 /* confdefs.h.  */
 11405 _ACEOF
 11406 cat confdefs.h >>conftest.$ac_ext
 11407 cat >>conftest.$ac_ext <<_ACEOF
 11408 /* end confdefs.h.  */
 11410 #include <libintl.h>
 11412 int
 11413 main ()
 11415 return !dgettext ("","")
 11417   return 0;
 11419 _ACEOF
 11420 rm -f conftest.$ac_objext conftest$ac_exeext
 11421 if { (ac_try="$ac_link"
 11422 case "(($ac_try" in
 11423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11424   *) ac_try_echo=$ac_try;;
 11425 esac
 11426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11427 $as_echo "$ac_try_echo") >&5
 11428   (eval "$ac_link") 2>conftest.er1
 11429   ac_status=$?
 11430   grep -v '^ *+' conftest.er1 >conftest.err
 11431   rm -f conftest.er1
 11432   cat conftest.err >&5
 11433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11434   (exit $ac_status); } && {
 11435 	 test -z "$ac_c_werror_flag" ||
 11436 	 test ! -s conftest.err
 11437        } && test -s conftest$ac_exeext && {
 11438 	 test "$cross_compiling" = yes ||
 11439 	 $as_test_x conftest$ac_exeext
 11440        }; then
 11441   gt_cv_func_dgettext_libc=yes
 11442 else
 11443   $as_echo "$as_me: failed program was:" >&5
 11444 sed 's/^/| /' conftest.$ac_ext >&5
 11446 	gt_cv_func_dgettext_libc=no
 11447 fi
 11449 rm -rf conftest.dSYM
 11450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11451       conftest$ac_exeext conftest.$ac_ext
 11453 fi
 11454 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 11455 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
 11456       fi
 11458       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 11460 for ac_func in bind_textdomain_codeset
 11461 do
 11462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 11463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 11464 $as_echo_n "checking for $ac_func... " >&6; }
 11465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 11466   $as_echo_n "(cached) " >&6
 11467 else
 11468   cat >conftest.$ac_ext <<_ACEOF
 11469 /* confdefs.h.  */
 11470 _ACEOF
 11471 cat confdefs.h >>conftest.$ac_ext
 11472 cat >>conftest.$ac_ext <<_ACEOF
 11473 /* end confdefs.h.  */
 11474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 11475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11476 #define $ac_func innocuous_$ac_func
 11478 /* System header to define __stub macros and hopefully few prototypes,
 11479     which can conflict with char $ac_func (); below.
 11480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11481     <limits.h> exists even on freestanding compilers.  */
 11483 #ifdef __STDC__
 11484 # include <limits.h>
 11485 #else
 11486 # include <assert.h>
 11487 #endif
 11489 #undef $ac_func
 11491 /* Override any GCC internal prototype to avoid an error.
 11492    Use char because int might match the return type of a GCC
 11493    builtin and then its argument prototype would still apply.  */
 11494 #ifdef __cplusplus
 11495 extern "C"
 11496 #endif
 11497 char $ac_func ();
 11498 /* The GNU C library defines this for functions which it implements
 11499     to always fail with ENOSYS.  Some functions are actually named
 11500     something starting with __ and the normal name is an alias.  */
 11501 #if defined __stub_$ac_func || defined __stub___$ac_func
 11502 choke me
 11503 #endif
 11505 int
 11506 main ()
 11508 return $ac_func ();
 11510   return 0;
 11512 _ACEOF
 11513 rm -f conftest.$ac_objext conftest$ac_exeext
 11514 if { (ac_try="$ac_link"
 11515 case "(($ac_try" in
 11516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11517   *) ac_try_echo=$ac_try;;
 11518 esac
 11519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11520 $as_echo "$ac_try_echo") >&5
 11521   (eval "$ac_link") 2>conftest.er1
 11522   ac_status=$?
 11523   grep -v '^ *+' conftest.er1 >conftest.err
 11524   rm -f conftest.er1
 11525   cat conftest.err >&5
 11526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11527   (exit $ac_status); } && {
 11528 	 test -z "$ac_c_werror_flag" ||
 11529 	 test ! -s conftest.err
 11530        } && test -s conftest$ac_exeext && {
 11531 	 test "$cross_compiling" = yes ||
 11532 	 $as_test_x conftest$ac_exeext
 11533        }; then
 11534   eval "$as_ac_var=yes"
 11535 else
 11536   $as_echo "$as_me: failed program was:" >&5
 11537 sed 's/^/| /' conftest.$ac_ext >&5
 11539 	eval "$as_ac_var=no"
 11540 fi
 11542 rm -rf conftest.dSYM
 11543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11544       conftest$ac_exeext conftest.$ac_ext
 11545 fi
 11546 ac_res=`eval 'as_val=${'$as_ac_var'}
 11547 		 $as_echo "$as_val"'`
 11548 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 11549 $as_echo "$ac_res" >&6; }
 11550 if test `eval 'as_val=${'$as_ac_var'}
 11551 		 $as_echo "$as_val"'` = yes; then
 11552   cat >>confdefs.h <<_ACEOF
 11553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 11554 _ACEOF
 11556 fi
 11557 done
 11559       fi
 11562       # If we don't have everything we want, check in libintl
 11564       if test "$gt_cv_func_dgettext_libc" != "yes" \
 11565 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
 11566          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 11568         { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 11569 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 11570 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 11571   $as_echo_n "(cached) " >&6
 11572 else
 11573   ac_check_lib_save_LIBS=$LIBS
 11574 LIBS="-lintl  $LIBS"
 11575 cat >conftest.$ac_ext <<_ACEOF
 11576 /* confdefs.h.  */
 11577 _ACEOF
 11578 cat confdefs.h >>conftest.$ac_ext
 11579 cat >>conftest.$ac_ext <<_ACEOF
 11580 /* end confdefs.h.  */
 11582 /* Override any GCC internal prototype to avoid an error.
 11583    Use char because int might match the return type of a GCC
 11584    builtin and then its argument prototype would still apply.  */
 11585 #ifdef __cplusplus
 11586 extern "C"
 11587 #endif
 11588 char bindtextdomain ();
 11589 int
 11590 main ()
 11592 return bindtextdomain ();
 11594   return 0;
 11596 _ACEOF
 11597 rm -f conftest.$ac_objext conftest$ac_exeext
 11598 if { (ac_try="$ac_link"
 11599 case "(($ac_try" in
 11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11601   *) ac_try_echo=$ac_try;;
 11602 esac
 11603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11604 $as_echo "$ac_try_echo") >&5
 11605   (eval "$ac_link") 2>conftest.er1
 11606   ac_status=$?
 11607   grep -v '^ *+' conftest.er1 >conftest.err
 11608   rm -f conftest.er1
 11609   cat conftest.err >&5
 11610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11611   (exit $ac_status); } && {
 11612 	 test -z "$ac_c_werror_flag" ||
 11613 	 test ! -s conftest.err
 11614        } && test -s conftest$ac_exeext && {
 11615 	 test "$cross_compiling" = yes ||
 11616 	 $as_test_x conftest$ac_exeext
 11617        }; then
 11618   ac_cv_lib_intl_bindtextdomain=yes
 11619 else
 11620   $as_echo "$as_me: failed program was:" >&5
 11621 sed 's/^/| /' conftest.$ac_ext >&5
 11623 	ac_cv_lib_intl_bindtextdomain=no
 11624 fi
 11626 rm -rf conftest.dSYM
 11627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11628       conftest$ac_exeext conftest.$ac_ext
 11629 LIBS=$ac_check_lib_save_LIBS
 11630 fi
 11631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 11632 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 11633 if test $ac_cv_lib_intl_bindtextdomain = yes; then
 11634   { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 11635 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 11636 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 11637   $as_echo_n "(cached) " >&6
 11638 else
 11639   ac_check_lib_save_LIBS=$LIBS
 11640 LIBS="-lintl  $LIBS"
 11641 cat >conftest.$ac_ext <<_ACEOF
 11642 /* confdefs.h.  */
 11643 _ACEOF
 11644 cat confdefs.h >>conftest.$ac_ext
 11645 cat >>conftest.$ac_ext <<_ACEOF
 11646 /* end confdefs.h.  */
 11648 /* Override any GCC internal prototype to avoid an error.
 11649    Use char because int might match the return type of a GCC
 11650    builtin and then its argument prototype would still apply.  */
 11651 #ifdef __cplusplus
 11652 extern "C"
 11653 #endif
 11654 char ngettext ();
 11655 int
 11656 main ()
 11658 return ngettext ();
 11660   return 0;
 11662 _ACEOF
 11663 rm -f conftest.$ac_objext conftest$ac_exeext
 11664 if { (ac_try="$ac_link"
 11665 case "(($ac_try" in
 11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11667   *) ac_try_echo=$ac_try;;
 11668 esac
 11669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11670 $as_echo "$ac_try_echo") >&5
 11671   (eval "$ac_link") 2>conftest.er1
 11672   ac_status=$?
 11673   grep -v '^ *+' conftest.er1 >conftest.err
 11674   rm -f conftest.er1
 11675   cat conftest.err >&5
 11676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11677   (exit $ac_status); } && {
 11678 	 test -z "$ac_c_werror_flag" ||
 11679 	 test ! -s conftest.err
 11680        } && test -s conftest$ac_exeext && {
 11681 	 test "$cross_compiling" = yes ||
 11682 	 $as_test_x conftest$ac_exeext
 11683        }; then
 11684   ac_cv_lib_intl_ngettext=yes
 11685 else
 11686   $as_echo "$as_me: failed program was:" >&5
 11687 sed 's/^/| /' conftest.$ac_ext >&5
 11689 	ac_cv_lib_intl_ngettext=no
 11690 fi
 11692 rm -rf conftest.dSYM
 11693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11694       conftest$ac_exeext conftest.$ac_ext
 11695 LIBS=$ac_check_lib_save_LIBS
 11696 fi
 11697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 11698 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 11699 if test $ac_cv_lib_intl_ngettext = yes; then
 11700   { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 11701 $as_echo_n "checking for dgettext in -lintl... " >&6; }
 11702 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 11703   $as_echo_n "(cached) " >&6
 11704 else
 11705   ac_check_lib_save_LIBS=$LIBS
 11706 LIBS="-lintl  $LIBS"
 11707 cat >conftest.$ac_ext <<_ACEOF
 11708 /* confdefs.h.  */
 11709 _ACEOF
 11710 cat confdefs.h >>conftest.$ac_ext
 11711 cat >>conftest.$ac_ext <<_ACEOF
 11712 /* end confdefs.h.  */
 11714 /* Override any GCC internal prototype to avoid an error.
 11715    Use char because int might match the return type of a GCC
 11716    builtin and then its argument prototype would still apply.  */
 11717 #ifdef __cplusplus
 11718 extern "C"
 11719 #endif
 11720 char dgettext ();
 11721 int
 11722 main ()
 11724 return dgettext ();
 11726   return 0;
 11728 _ACEOF
 11729 rm -f conftest.$ac_objext conftest$ac_exeext
 11730 if { (ac_try="$ac_link"
 11731 case "(($ac_try" in
 11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11733   *) ac_try_echo=$ac_try;;
 11734 esac
 11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11736 $as_echo "$ac_try_echo") >&5
 11737   (eval "$ac_link") 2>conftest.er1
 11738   ac_status=$?
 11739   grep -v '^ *+' conftest.er1 >conftest.err
 11740   rm -f conftest.er1
 11741   cat conftest.err >&5
 11742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11743   (exit $ac_status); } && {
 11744 	 test -z "$ac_c_werror_flag" ||
 11745 	 test ! -s conftest.err
 11746        } && test -s conftest$ac_exeext && {
 11747 	 test "$cross_compiling" = yes ||
 11748 	 $as_test_x conftest$ac_exeext
 11749        }; then
 11750   ac_cv_lib_intl_dgettext=yes
 11751 else
 11752   $as_echo "$as_me: failed program was:" >&5
 11753 sed 's/^/| /' conftest.$ac_ext >&5
 11755 	ac_cv_lib_intl_dgettext=no
 11756 fi
 11758 rm -rf conftest.dSYM
 11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11760       conftest$ac_exeext conftest.$ac_ext
 11761 LIBS=$ac_check_lib_save_LIBS
 11762 fi
 11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 11764 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 11765 if test $ac_cv_lib_intl_dgettext = yes; then
 11766   gt_cv_func_dgettext_libintl=yes
 11767 fi
 11769 fi
 11771 fi
 11774 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 11775 	  { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 11776 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 11777 	  { $as_echo "$as_me:$LINENO: result: " >&5
 11778 $as_echo "" >&6; }
 11779   	  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 11780 $as_echo_n "checking for ngettext in -lintl... " >&6; }
 11781 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 11782   $as_echo_n "(cached) " >&6
 11783 else
 11784   ac_check_lib_save_LIBS=$LIBS
 11785 LIBS="-lintl -liconv $LIBS"
 11786 cat >conftest.$ac_ext <<_ACEOF
 11787 /* confdefs.h.  */
 11788 _ACEOF
 11789 cat confdefs.h >>conftest.$ac_ext
 11790 cat >>conftest.$ac_ext <<_ACEOF
 11791 /* end confdefs.h.  */
 11793 /* Override any GCC internal prototype to avoid an error.
 11794    Use char because int might match the return type of a GCC
 11795    builtin and then its argument prototype would still apply.  */
 11796 #ifdef __cplusplus
 11797 extern "C"
 11798 #endif
 11799 char ngettext ();
 11800 int
 11801 main ()
 11803 return ngettext ();
 11805   return 0;
 11807 _ACEOF
 11808 rm -f conftest.$ac_objext conftest$ac_exeext
 11809 if { (ac_try="$ac_link"
 11810 case "(($ac_try" in
 11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11812   *) ac_try_echo=$ac_try;;
 11813 esac
 11814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11815 $as_echo "$ac_try_echo") >&5
 11816   (eval "$ac_link") 2>conftest.er1
 11817   ac_status=$?
 11818   grep -v '^ *+' conftest.er1 >conftest.err
 11819   rm -f conftest.er1
 11820   cat conftest.err >&5
 11821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11822   (exit $ac_status); } && {
 11823 	 test -z "$ac_c_werror_flag" ||
 11824 	 test ! -s conftest.err
 11825        } && test -s conftest$ac_exeext && {
 11826 	 test "$cross_compiling" = yes ||
 11827 	 $as_test_x conftest$ac_exeext
 11828        }; then
 11829   ac_cv_lib_intl_ngettext=yes
 11830 else
 11831   $as_echo "$as_me: failed program was:" >&5
 11832 sed 's/^/| /' conftest.$ac_ext >&5
 11834 	ac_cv_lib_intl_ngettext=no
 11835 fi
 11837 rm -rf conftest.dSYM
 11838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11839       conftest$ac_exeext conftest.$ac_ext
 11840 LIBS=$ac_check_lib_save_LIBS
 11841 fi
 11842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 11843 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 11844 if test $ac_cv_lib_intl_ngettext = yes; then
 11845   { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 11846 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
 11847 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 11848   $as_echo_n "(cached) " >&6
 11849 else
 11850   ac_check_lib_save_LIBS=$LIBS
 11851 LIBS="-lintl -liconv $LIBS"
 11852 cat >conftest.$ac_ext <<_ACEOF
 11853 /* confdefs.h.  */
 11854 _ACEOF
 11855 cat confdefs.h >>conftest.$ac_ext
 11856 cat >>conftest.$ac_ext <<_ACEOF
 11857 /* end confdefs.h.  */
 11859 /* Override any GCC internal prototype to avoid an error.
 11860    Use char because int might match the return type of a GCC
 11861    builtin and then its argument prototype would still apply.  */
 11862 #ifdef __cplusplus
 11863 extern "C"
 11864 #endif
 11865 char dcgettext ();
 11866 int
 11867 main ()
 11869 return dcgettext ();
 11871   return 0;
 11873 _ACEOF
 11874 rm -f conftest.$ac_objext conftest$ac_exeext
 11875 if { (ac_try="$ac_link"
 11876 case "(($ac_try" in
 11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11878   *) ac_try_echo=$ac_try;;
 11879 esac
 11880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11881 $as_echo "$ac_try_echo") >&5
 11882   (eval "$ac_link") 2>conftest.er1
 11883   ac_status=$?
 11884   grep -v '^ *+' conftest.er1 >conftest.err
 11885   rm -f conftest.er1
 11886   cat conftest.err >&5
 11887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 11888   (exit $ac_status); } && {
 11889 	 test -z "$ac_c_werror_flag" ||
 11890 	 test ! -s conftest.err
 11891        } && test -s conftest$ac_exeext && {
 11892 	 test "$cross_compiling" = yes ||
 11893 	 $as_test_x conftest$ac_exeext
 11894        }; then
 11895   ac_cv_lib_intl_dcgettext=yes
 11896 else
 11897   $as_echo "$as_me: failed program was:" >&5
 11898 sed 's/^/| /' conftest.$ac_ext >&5
 11900 	ac_cv_lib_intl_dcgettext=no
 11901 fi
 11903 rm -rf conftest.dSYM
 11904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 11905       conftest$ac_exeext conftest.$ac_ext
 11906 LIBS=$ac_check_lib_save_LIBS
 11907 fi
 11908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 11909 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 11910 if test $ac_cv_lib_intl_dcgettext = yes; then
 11911   gt_cv_func_dgettext_libintl=yes
 11912 			libintl_extra_libs=-liconv
 11913 else
 11915 fi
 11917 else
 11919 fi
 11921         fi
 11924         # If we found libintl, then check in it for bind_textdomain_codeset();
 11925         # we'll prefer libc if neither have bind_textdomain_codeset(),
 11926         # and both have dgettext and ngettext
 11928         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 11929           glib_save_LIBS="$LIBS"
 11930           LIBS="$LIBS -lintl $libintl_extra_libs"
 11931           unset ac_cv_func_bind_textdomain_codeset
 11933 for ac_func in bind_textdomain_codeset
 11934 do
 11935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 11936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 11937 $as_echo_n "checking for $ac_func... " >&6; }
 11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 11939   $as_echo_n "(cached) " >&6
 11940 else
 11941   cat >conftest.$ac_ext <<_ACEOF
 11942 /* confdefs.h.  */
 11943 _ACEOF
 11944 cat confdefs.h >>conftest.$ac_ext
 11945 cat >>conftest.$ac_ext <<_ACEOF
 11946 /* end confdefs.h.  */
 11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 11948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 11949 #define $ac_func innocuous_$ac_func
 11951 /* System header to define __stub macros and hopefully few prototypes,
 11952     which can conflict with char $ac_func (); below.
 11953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 11954     <limits.h> exists even on freestanding compilers.  */
 11956 #ifdef __STDC__
 11957 # include <limits.h>
 11958 #else
 11959 # include <assert.h>
 11960 #endif
 11962 #undef $ac_func
 11964 /* Override any GCC internal prototype to avoid an error.
 11965    Use char because int might match the return type of a GCC
 11966    builtin and then its argument prototype would still apply.  */
 11967 #ifdef __cplusplus
 11968 extern "C"
 11969 #endif
 11970 char $ac_func ();
 11971 /* The GNU C library defines this for functions which it implements
 11972     to always fail with ENOSYS.  Some functions are actually named
 11973     something starting with __ and the normal name is an alias.  */
 11974 #if defined __stub_$ac_func || defined __stub___$ac_func
 11975 choke me
 11976 #endif
 11978 int
 11979 main ()
 11981 return $ac_func ();
 11983   return 0;
 11985 _ACEOF
 11986 rm -f conftest.$ac_objext conftest$ac_exeext
 11987 if { (ac_try="$ac_link"
 11988 case "(($ac_try" in
 11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 11990   *) ac_try_echo=$ac_try;;
 11991 esac
 11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 11993 $as_echo "$ac_try_echo") >&5
 11994   (eval "$ac_link") 2>conftest.er1
 11995   ac_status=$?
 11996   grep -v '^ *+' conftest.er1 >conftest.err
 11997   rm -f conftest.er1
 11998   cat conftest.err >&5
 11999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12000   (exit $ac_status); } && {
 12001 	 test -z "$ac_c_werror_flag" ||
 12002 	 test ! -s conftest.err
 12003        } && test -s conftest$ac_exeext && {
 12004 	 test "$cross_compiling" = yes ||
 12005 	 $as_test_x conftest$ac_exeext
 12006        }; then
 12007   eval "$as_ac_var=yes"
 12008 else
 12009   $as_echo "$as_me: failed program was:" >&5
 12010 sed 's/^/| /' conftest.$ac_ext >&5
 12012 	eval "$as_ac_var=no"
 12013 fi
 12015 rm -rf conftest.dSYM
 12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12017       conftest$ac_exeext conftest.$ac_ext
 12018 fi
 12019 ac_res=`eval 'as_val=${'$as_ac_var'}
 12020 		 $as_echo "$as_val"'`
 12021 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12022 $as_echo "$ac_res" >&6; }
 12023 if test `eval 'as_val=${'$as_ac_var'}
 12024 		 $as_echo "$as_val"'` = yes; then
 12025   cat >>confdefs.h <<_ACEOF
 12026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12027 _ACEOF
 12029 fi
 12030 done
 12032           LIBS="$glib_save_LIBS"
 12034           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 12035             gt_cv_func_dgettext_libc=no
 12036           else
 12037             if test "$gt_cv_func_dgettext_libc" = "yes" \
 12038 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 12039               gt_cv_func_dgettext_libintl=no
 12040             fi
 12041           fi
 12042         fi
 12043       fi
 12045       if test "$gt_cv_func_dgettext_libc" = "yes" \
 12046 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12047         gt_cv_have_gettext=yes
 12048       fi
 12050       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 12051         INTLLIBS="-lintl $libintl_extra_libs"
 12052       fi
 12054       if test "$gt_cv_have_gettext" = "yes"; then
 12056 cat >>confdefs.h <<\_ACEOF
 12057 #define HAVE_GETTEXT 1
 12058 _ACEOF
 12060 	# Extract the first word of "msgfmt", so it can be a program name with args.
 12061 set dummy msgfmt; ac_word=$2
 12062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 12063 $as_echo_n "checking for $ac_word... " >&6; }
 12064 if test "${ac_cv_path_MSGFMT+set}" = set; then
 12065   $as_echo_n "(cached) " >&6
 12066 else
 12067   case "$MSGFMT" in
 12068   /*)
 12069   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 12070   ;;
 12071   *)
 12072   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12073   for ac_dir in $PATH; do
 12074     test -z "$ac_dir" && ac_dir=.
 12075     if test -f $ac_dir/$ac_word; then
 12076       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 12077 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 12078 	break
 12079       fi
 12080     fi
 12081   done
 12082   IFS="$ac_save_ifs"
 12083   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 12084   ;;
 12085 esac
 12086 fi
 12087 MSGFMT="$ac_cv_path_MSGFMT"
 12088 if test "$MSGFMT" != "no"; then
 12089   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 12090 $as_echo "$MSGFMT" >&6; }
 12091 else
 12092   { $as_echo "$as_me:$LINENO: result: no" >&5
 12093 $as_echo "no" >&6; }
 12094 fi
 12095 	if test "$MSGFMT" != "no"; then
 12096           glib_save_LIBS="$LIBS"
 12097           LIBS="$LIBS $INTLLIBS"
 12099 for ac_func in dcgettext
 12100 do
 12101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 12102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 12103 $as_echo_n "checking for $ac_func... " >&6; }
 12104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 12105   $as_echo_n "(cached) " >&6
 12106 else
 12107   cat >conftest.$ac_ext <<_ACEOF
 12108 /* confdefs.h.  */
 12109 _ACEOF
 12110 cat confdefs.h >>conftest.$ac_ext
 12111 cat >>conftest.$ac_ext <<_ACEOF
 12112 /* end confdefs.h.  */
 12113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 12114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12115 #define $ac_func innocuous_$ac_func
 12117 /* System header to define __stub macros and hopefully few prototypes,
 12118     which can conflict with char $ac_func (); below.
 12119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12120     <limits.h> exists even on freestanding compilers.  */
 12122 #ifdef __STDC__
 12123 # include <limits.h>
 12124 #else
 12125 # include <assert.h>
 12126 #endif
 12128 #undef $ac_func
 12130 /* Override any GCC internal prototype to avoid an error.
 12131    Use char because int might match the return type of a GCC
 12132    builtin and then its argument prototype would still apply.  */
 12133 #ifdef __cplusplus
 12134 extern "C"
 12135 #endif
 12136 char $ac_func ();
 12137 /* The GNU C library defines this for functions which it implements
 12138     to always fail with ENOSYS.  Some functions are actually named
 12139     something starting with __ and the normal name is an alias.  */
 12140 #if defined __stub_$ac_func || defined __stub___$ac_func
 12141 choke me
 12142 #endif
 12144 int
 12145 main ()
 12147 return $ac_func ();
 12149   return 0;
 12151 _ACEOF
 12152 rm -f conftest.$ac_objext conftest$ac_exeext
 12153 if { (ac_try="$ac_link"
 12154 case "(($ac_try" in
 12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12156   *) ac_try_echo=$ac_try;;
 12157 esac
 12158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12159 $as_echo "$ac_try_echo") >&5
 12160   (eval "$ac_link") 2>conftest.er1
 12161   ac_status=$?
 12162   grep -v '^ *+' conftest.er1 >conftest.err
 12163   rm -f conftest.er1
 12164   cat conftest.err >&5
 12165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12166   (exit $ac_status); } && {
 12167 	 test -z "$ac_c_werror_flag" ||
 12168 	 test ! -s conftest.err
 12169        } && test -s conftest$ac_exeext && {
 12170 	 test "$cross_compiling" = yes ||
 12171 	 $as_test_x conftest$ac_exeext
 12172        }; then
 12173   eval "$as_ac_var=yes"
 12174 else
 12175   $as_echo "$as_me: failed program was:" >&5
 12176 sed 's/^/| /' conftest.$ac_ext >&5
 12178 	eval "$as_ac_var=no"
 12179 fi
 12181 rm -rf conftest.dSYM
 12182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12183       conftest$ac_exeext conftest.$ac_ext
 12184 fi
 12185 ac_res=`eval 'as_val=${'$as_ac_var'}
 12186 		 $as_echo "$as_val"'`
 12187 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 12188 $as_echo "$ac_res" >&6; }
 12189 if test `eval 'as_val=${'$as_ac_var'}
 12190 		 $as_echo "$as_val"'` = yes; then
 12191   cat >>confdefs.h <<_ACEOF
 12192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 12193 _ACEOF
 12195 fi
 12196 done
 12198 	  MSGFMT_OPTS=
 12199 	  { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 12200 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
 12201 	  cat >conftest.foo <<_ACEOF
 12203 msgid ""
 12204 msgstr ""
 12205 "Content-Type: text/plain; charset=UTF-8\n"
 12206 "Project-Id-Version: test 1.0\n"
 12207 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 12208 "Last-Translator: test <foo@bar.xx>\n"
 12209 "Language-Team: C <LL@li.org>\n"
 12210 "MIME-Version: 1.0\n"
 12211 "Content-Transfer-Encoding: 8bit\n"
 12213 _ACEOF
 12214 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
 12215   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 12216   ac_status=$?
 12217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12218   (exit $ac_status); }; then
 12219   MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
 12220 $as_echo "yes" >&6; }
 12221 else { $as_echo "$as_me:$LINENO: result: no" >&5
 12222 $as_echo "no" >&6; }
 12223 echo "$as_me: failed input was:" >&5
 12224 sed 's/^/| /' conftest.foo >&5
 12225 fi
 12227 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 12228 set dummy gmsgfmt; ac_word=$2
 12229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 12230 $as_echo_n "checking for $ac_word... " >&6; }
 12231 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 12232   $as_echo_n "(cached) " >&6
 12233 else
 12234   case $GMSGFMT in
 12235   [\\/]* | ?:[\\/]*)
 12236   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 12237   ;;
 12238   *)
 12239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12240 for as_dir in $PATH
 12241 do
 12242   IFS=$as_save_IFS
 12243   test -z "$as_dir" && as_dir=.
 12244   for ac_exec_ext in '' $ac_executable_extensions; do
 12245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 12246     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 12247     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 12248     break 2
 12249   fi
 12250 done
 12251 done
 12252 IFS=$as_save_IFS
 12254   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 12255   ;;
 12256 esac
 12257 fi
 12258 GMSGFMT=$ac_cv_path_GMSGFMT
 12259 if test -n "$GMSGFMT"; then
 12260   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 12261 $as_echo "$GMSGFMT" >&6; }
 12262 else
 12263   { $as_echo "$as_me:$LINENO: result: no" >&5
 12264 $as_echo "no" >&6; }
 12265 fi
 12268 	  # Extract the first word of "xgettext", so it can be a program name with args.
 12269 set dummy xgettext; ac_word=$2
 12270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 12271 $as_echo_n "checking for $ac_word... " >&6; }
 12272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 12273   $as_echo_n "(cached) " >&6
 12274 else
 12275   case "$XGETTEXT" in
 12276   /*)
 12277   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 12278   ;;
 12279   *)
 12280   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 12281   for ac_dir in $PATH; do
 12282     test -z "$ac_dir" && ac_dir=.
 12283     if test -f $ac_dir/$ac_word; then
 12284       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 12285 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 12286 	break
 12287       fi
 12288     fi
 12289   done
 12290   IFS="$ac_save_ifs"
 12291   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 12292   ;;
 12293 esac
 12294 fi
 12295 XGETTEXT="$ac_cv_path_XGETTEXT"
 12296 if test "$XGETTEXT" != ":"; then
 12297   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 12298 $as_echo "$XGETTEXT" >&6; }
 12299 else
 12300   { $as_echo "$as_me:$LINENO: result: no" >&5
 12301 $as_echo "no" >&6; }
 12302 fi
 12304 	  cat >conftest.$ac_ext <<_ACEOF
 12305 /* confdefs.h.  */
 12306 _ACEOF
 12307 cat confdefs.h >>conftest.$ac_ext
 12308 cat >>conftest.$ac_ext <<_ACEOF
 12309 /* end confdefs.h.  */
 12311 int
 12312 main ()
 12314 extern int _nl_msg_cat_cntr;
 12315 			 return _nl_msg_cat_cntr
 12317   return 0;
 12319 _ACEOF
 12320 rm -f conftest.$ac_objext conftest$ac_exeext
 12321 if { (ac_try="$ac_link"
 12322 case "(($ac_try" in
 12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12324   *) ac_try_echo=$ac_try;;
 12325 esac
 12326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12327 $as_echo "$ac_try_echo") >&5
 12328   (eval "$ac_link") 2>conftest.er1
 12329   ac_status=$?
 12330   grep -v '^ *+' conftest.er1 >conftest.err
 12331   rm -f conftest.er1
 12332   cat conftest.err >&5
 12333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12334   (exit $ac_status); } && {
 12335 	 test -z "$ac_c_werror_flag" ||
 12336 	 test ! -s conftest.err
 12337        } && test -s conftest$ac_exeext && {
 12338 	 test "$cross_compiling" = yes ||
 12339 	 $as_test_x conftest$ac_exeext
 12340        }; then
 12341   CATOBJEXT=.gmo
 12342              DATADIRNAME=share
 12343 else
 12344   $as_echo "$as_me: failed program was:" >&5
 12345 sed 's/^/| /' conftest.$ac_ext >&5
 12347 	case $host in
 12348 	    *-*-solaris*)
 12349 	    	                	    	                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 12350 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
 12351 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 12352   $as_echo_n "(cached) " >&6
 12353 else
 12354   cat >conftest.$ac_ext <<_ACEOF
 12355 /* confdefs.h.  */
 12356 _ACEOF
 12357 cat confdefs.h >>conftest.$ac_ext
 12358 cat >>conftest.$ac_ext <<_ACEOF
 12359 /* end confdefs.h.  */
 12360 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 12361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 12362 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 12364 /* System header to define __stub macros and hopefully few prototypes,
 12365     which can conflict with char bind_textdomain_codeset (); below.
 12366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 12367     <limits.h> exists even on freestanding compilers.  */
 12369 #ifdef __STDC__
 12370 # include <limits.h>
 12371 #else
 12372 # include <assert.h>
 12373 #endif
 12375 #undef bind_textdomain_codeset
 12377 /* Override any GCC internal prototype to avoid an error.
 12378    Use char because int might match the return type of a GCC
 12379    builtin and then its argument prototype would still apply.  */
 12380 #ifdef __cplusplus
 12381 extern "C"
 12382 #endif
 12383 char bind_textdomain_codeset ();
 12384 /* The GNU C library defines this for functions which it implements
 12385     to always fail with ENOSYS.  Some functions are actually named
 12386     something starting with __ and the normal name is an alias.  */
 12387 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 12388 choke me
 12389 #endif
 12391 int
 12392 main ()
 12394 return bind_textdomain_codeset ();
 12396   return 0;
 12398 _ACEOF
 12399 rm -f conftest.$ac_objext conftest$ac_exeext
 12400 if { (ac_try="$ac_link"
 12401 case "(($ac_try" in
 12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 12403   *) ac_try_echo=$ac_try;;
 12404 esac
 12405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 12406 $as_echo "$ac_try_echo") >&5
 12407   (eval "$ac_link") 2>conftest.er1
 12408   ac_status=$?
 12409   grep -v '^ *+' conftest.er1 >conftest.err
 12410   rm -f conftest.er1
 12411   cat conftest.err >&5
 12412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 12413   (exit $ac_status); } && {
 12414 	 test -z "$ac_c_werror_flag" ||
 12415 	 test ! -s conftest.err
 12416        } && test -s conftest$ac_exeext && {
 12417 	 test "$cross_compiling" = yes ||
 12418 	 $as_test_x conftest$ac_exeext
 12419        }; then
 12420   ac_cv_func_bind_textdomain_codeset=yes
 12421 else
 12422   $as_echo "$as_me: failed program was:" >&5
 12423 sed 's/^/| /' conftest.$ac_ext >&5
 12425 	ac_cv_func_bind_textdomain_codeset=no
 12426 fi
 12428 rm -rf conftest.dSYM
 12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12430       conftest$ac_exeext conftest.$ac_ext
 12431 fi
 12432 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 12433 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
 12434 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 12435   CATOBJEXT=.gmo
 12436                DATADIRNAME=share
 12437 else
 12438   CATOBJEXT=.mo
 12439                DATADIRNAME=lib
 12440 fi
 12442 	    ;;
 12443 	    *)
 12444 	    CATOBJEXT=.mo
 12445             DATADIRNAME=lib
 12446 	    ;;
 12447 	    esac
 12448 fi
 12450 rm -rf conftest.dSYM
 12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 12452       conftest$ac_exeext conftest.$ac_ext
 12453           LIBS="$glib_save_LIBS"
 12454 	  INSTOBJEXT=.mo
 12455 	else
 12456 	  gt_cv_have_gettext=no
 12457 	fi
 12458       fi
 12460 fi
 12464     if test "$gt_cv_have_gettext" = "yes" ; then
 12466 cat >>confdefs.h <<\_ACEOF
 12467 #define ENABLE_NLS 1
 12468 _ACEOF
 12470     fi
 12472         if test "$XGETTEXT" != ":"; then
 12473                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 12474         : ;
 12475       else
 12476         { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 12477 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 12478         XGETTEXT=":"
 12479       fi
 12480     fi
 12482     # We need to process the po/ directory.
 12483     POSUB=po
 12485     ac_config_commands="$ac_config_commands default-1"
 12488                 for lang in $ALL_LINGUAS; do
 12489       GMOFILES="$GMOFILES $lang.gmo"
 12490       POFILES="$POFILES $lang.po"
 12491     done
 12505    if test "$gt_cv_have_gettext" = "yes"; then
 12506      if test "x$ALL_LINGUAS" = "x"; then
 12507        LINGUAS=
 12508      else
 12509        { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 12510 $as_echo_n "checking for catalogs to be installed... " >&6; }
 12511        NEW_LINGUAS=
 12512        for presentlang in $ALL_LINGUAS; do
 12513          useit=no
 12514          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 12515            desiredlanguages="$LINGUAS"
 12516          else
 12517            desiredlanguages="$ALL_LINGUAS"
 12518          fi
 12519          for desiredlang in $desiredlanguages; do
 12520  	   # Use the presentlang catalog if desiredlang is
 12521            #   a. equal to presentlang, or
 12522            #   b. a variant of presentlang (because in this case,
 12523            #      presentlang can be used as a fallback for messages
 12524            #      which are not translated in the desiredlang catalog).
 12525            case "$desiredlang" in
 12526              "$presentlang"*) useit=yes;;
 12527            esac
 12528          done
 12529          if test $useit = yes; then
 12530            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 12531          fi
 12532        done
 12533        LINGUAS=$NEW_LINGUAS
 12534        { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
 12535 $as_echo "$LINGUAS" >&6; }
 12536      fi
 12538           if test -n "$LINGUAS"; then
 12539        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 12540      fi
 12541    fi
 12543             MKINSTALLDIRS=
 12544    if test -n "$ac_aux_dir"; then
 12545      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 12546    fi
 12547    if test -z "$MKINSTALLDIRS"; then
 12548      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 12549    fi
 12552          test -d po || mkdir po
 12553    if test "x$srcdir" != "x."; then
 12554      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 12555        posrcprefix="$srcdir/"
 12556      else
 12557        posrcprefix="../$srcdir/"
 12558      fi
 12559    else
 12560      posrcprefix="../"
 12561    fi
 12562    rm -f po/POTFILES
 12563    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 12564 	< $srcdir/po/POTFILES.in > po/POTFILES
 12567 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
 12569 cat >confcache <<\_ACEOF
 12570 # This file is a shell script that caches the results of configure
 12571 # tests run on this system so they can be shared between configure
 12572 # scripts and configure runs, see configure's option --config-cache.
 12573 # It is not useful on other systems.  If it contains results you don't
 12574 # want to keep, you may remove or edit it.
 12576 # config.status only pays attention to the cache file if you give it
 12577 # the --recheck option to rerun configure.
 12579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 12580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 12581 # following values.
 12583 _ACEOF
 12585 # The following way of writing the cache mishandles newlines in values,
 12586 # but we know of no workaround that is simple, portable, and efficient.
 12587 # So, we kill variables containing newlines.
 12588 # Ultrix sh set writes to stderr and can't be redirected directly,
 12589 # and sets the high bit in the cache file unless we assign to the vars.
 12591   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 12592     eval ac_val=\$$ac_var
 12593     case $ac_val in #(
 12594     *${as_nl}*)
 12595       case $ac_var in #(
 12596       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 12597 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 12598       esac
 12599       case $ac_var in #(
 12600       _ | IFS | as_nl) ;; #(
 12601       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 12602       *) $as_unset $ac_var ;;
 12603       esac ;;
 12604     esac
 12605   done
 12607   (set) 2>&1 |
 12608     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 12609     *${as_nl}ac_space=\ *)
 12610       # `set' does not quote correctly, so add quotes (double-quote
 12611       # substitution turns \\\\ into \\, and sed turns \\ into \).
 12612       sed -n \
 12613 	"s/'/'\\\\''/g;
 12614 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 12615       ;; #(
 12616     *)
 12617       # `set' quotes correctly as required by POSIX, so do not add quotes.
 12618       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 12619       ;;
 12620     esac |
 12621     sort
 12622 ) |
 12623   sed '
 12624      /^ac_cv_env_/b end
 12625      t clear
 12626      :clear
 12627      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 12628      t end
 12629      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 12630      :end' >>confcache
 12631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 12632   if test -w "$cache_file"; then
 12633     test "x$cache_file" != "x/dev/null" &&
 12634       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 12635 $as_echo "$as_me: updating cache $cache_file" >&6;}
 12636     cat confcache >$cache_file
 12637   else
 12638     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 12639 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 12640   fi
 12641 fi
 12642 rm -f confcache
 12644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 12645 # Let make expand exec_prefix.
 12646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 12648 DEFS=-DHAVE_CONFIG_H
 12650 ac_libobjs=
 12651 ac_ltlibobjs=
 12652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 12653   # 1. Remove the extension, and $U if already installed.
 12654   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 12655   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 12656   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 12657   #    will be set to the directory where LIBOBJS objects are built.
 12658   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 12659   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 12660 done
 12661 LIBOBJS=$ac_libobjs
 12663 LTLIBOBJS=$ac_ltlibobjs
 12666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 12667   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 12668 Usually this means the macro was only invoked conditionally." >&5
 12669 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 12670 Usually this means the macro was only invoked conditionally." >&2;}
 12671    { (exit 1); exit 1; }; }
 12672 fi
 12673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 12674   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 12675 Usually this means the macro was only invoked conditionally." >&5
 12676 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 12677 Usually this means the macro was only invoked conditionally." >&2;}
 12678    { (exit 1); exit 1; }; }
 12679 fi
 12680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 12681   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 12682 Usually this means the macro was only invoked conditionally." >&5
 12683 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 12684 Usually this means the macro was only invoked conditionally." >&2;}
 12685    { (exit 1); exit 1; }; }
 12686 fi
 12687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 12688   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 12689 Usually this means the macro was only invoked conditionally." >&5
 12690 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 12691 Usually this means the macro was only invoked conditionally." >&2;}
 12692    { (exit 1); exit 1; }; }
 12693 fi
 12694 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 12695   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 12696 Usually this means the macro was only invoked conditionally." >&5
 12697 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 12698 Usually this means the macro was only invoked conditionally." >&2;}
 12699    { (exit 1); exit 1; }; }
 12700 fi
 12701 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
 12702   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
 12703 Usually this means the macro was only invoked conditionally." >&5
 12704 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
 12705 Usually this means the macro was only invoked conditionally." >&2;}
 12706    { (exit 1); exit 1; }; }
 12707 fi
 12708 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 12709   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 12710 Usually this means the macro was only invoked conditionally." >&5
 12711 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 12712 Usually this means the macro was only invoked conditionally." >&2;}
 12713    { (exit 1); exit 1; }; }
 12714 fi
 12715 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 12716   { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 12717 Usually this means the macro was only invoked conditionally." >&5
 12718 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 12719 Usually this means the macro was only invoked conditionally." >&2;}
 12720    { (exit 1); exit 1; }; }
 12721 fi
 12722 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 12723   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 12724 Usually this means the macro was only invoked conditionally." >&5
 12725 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 12726 Usually this means the macro was only invoked conditionally." >&2;}
 12727    { (exit 1); exit 1; }; }
 12728 fi
 12729 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 12730   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 12731 Usually this means the macro was only invoked conditionally." >&5
 12732 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 12733 Usually this means the macro was only invoked conditionally." >&2;}
 12734    { (exit 1); exit 1; }; }
 12735 fi
 12736 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 12737   { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 12738 Usually this means the macro was only invoked conditionally." >&5
 12739 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 12740 Usually this means the macro was only invoked conditionally." >&2;}
 12741    { (exit 1); exit 1; }; }
 12742 fi
 12743 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 12744   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 12745 Usually this means the macro was only invoked conditionally." >&5
 12746 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 12747 Usually this means the macro was only invoked conditionally." >&2;}
 12748    { (exit 1); exit 1; }; }
 12749 fi
 12750 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
 12751   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
 12752 Usually this means the macro was only invoked conditionally." >&5
 12753 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
 12754 Usually this means the macro was only invoked conditionally." >&2;}
 12755    { (exit 1); exit 1; }; }
 12756 fi
 12757 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 12758   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 12759 Usually this means the macro was only invoked conditionally." >&5
 12760 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 12761 Usually this means the macro was only invoked conditionally." >&2;}
 12762    { (exit 1); exit 1; }; }
 12763 fi
 12764 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 12765   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 12766 Usually this means the macro was only invoked conditionally." >&5
 12767 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 12768 Usually this means the macro was only invoked conditionally." >&2;}
 12769    { (exit 1); exit 1; }; }
 12770 fi
 12771 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 12772   { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 12773 Usually this means the macro was only invoked conditionally." >&5
 12774 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 12775 Usually this means the macro was only invoked conditionally." >&2;}
 12776    { (exit 1); exit 1; }; }
 12777 fi
 12778 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 12779   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 12780 Usually this means the macro was only invoked conditionally." >&5
 12781 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 12782 Usually this means the macro was only invoked conditionally." >&2;}
 12783    { (exit 1); exit 1; }; }
 12784 fi
 12785 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
 12786   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
 12787 Usually this means the macro was only invoked conditionally." >&5
 12788 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
 12789 Usually this means the macro was only invoked conditionally." >&2;}
 12790    { (exit 1); exit 1; }; }
 12791 fi
 12792 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
 12793   { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
 12794 Usually this means the macro was only invoked conditionally." >&5
 12795 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
 12796 Usually this means the macro was only invoked conditionally." >&2;}
 12797    { (exit 1); exit 1; }; }
 12798 fi
 12799 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 12800   { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 12801 Usually this means the macro was only invoked conditionally." >&5
 12802 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 12803 Usually this means the macro was only invoked conditionally." >&2;}
 12804    { (exit 1); exit 1; }; }
 12805 fi
 12806 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 12807   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 12808 Usually this means the macro was only invoked conditionally." >&5
 12809 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 12810 Usually this means the macro was only invoked conditionally." >&2;}
 12811    { (exit 1); exit 1; }; }
 12812 fi
 12813 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 12814   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 12815 Usually this means the macro was only invoked conditionally." >&5
 12816 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 12817 Usually this means the macro was only invoked conditionally." >&2;}
 12818    { (exit 1); exit 1; }; }
 12819 fi
 12821 : ${CONFIG_STATUS=./config.status}
 12822 ac_write_fail=0
 12823 ac_clean_files_save=$ac_clean_files
 12824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 12825 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 12826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 12827 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 12828 #! $SHELL
 12829 # Generated by $as_me.
 12830 # Run this file to recreate the current configuration.
 12831 # Compiler output produced by configure, useful for debugging
 12832 # configure, is in config.log if it exists.
 12834 debug=false
 12835 ac_cs_recheck=false
 12836 ac_cs_silent=false
 12837 SHELL=\${CONFIG_SHELL-$SHELL}
 12838 _ACEOF
 12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 12841 ## --------------------- ##
 12842 ## M4sh Initialization.  ##
 12843 ## --------------------- ##
 12845 # Be more Bourne compatible
 12846 DUALCASE=1; export DUALCASE # for MKS sh
 12847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 12848   emulate sh
 12849   NULLCMD=:
 12850   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 12851   # is contrary to our usage.  Disable this feature.
 12852   alias -g '${1+"$@"}'='"$@"'
 12853   setopt NO_GLOB_SUBST
 12854 else
 12855   case `(set -o) 2>/dev/null` in
 12856   *posix*) set -o posix ;;
 12857 esac
 12859 fi
 12864 # PATH needs CR
 12865 # Avoid depending upon Character Ranges.
 12866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 12867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 12868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 12869 as_cr_digits='0123456789'
 12870 as_cr_alnum=$as_cr_Letters$as_cr_digits
 12872 as_nl='
 12874 export as_nl
 12875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 12876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 12877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 12878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 12879 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 12880   as_echo='printf %s\n'
 12881   as_echo_n='printf %s'
 12882 else
 12883   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 12884     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 12885     as_echo_n='/usr/ucb/echo -n'
 12886   else
 12887     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 12888     as_echo_n_body='eval
 12889       arg=$1;
 12890       case $arg in
 12891       *"$as_nl"*)
 12892 	expr "X$arg" : "X\\(.*\\)$as_nl";
 12893 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 12894       esac;
 12895       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 12897     export as_echo_n_body
 12898     as_echo_n='sh -c $as_echo_n_body as_echo'
 12899   fi
 12900   export as_echo_body
 12901   as_echo='sh -c $as_echo_body as_echo'
 12902 fi
 12904 # The user is always right.
 12905 if test "${PATH_SEPARATOR+set}" != set; then
 12906   PATH_SEPARATOR=:
 12907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 12908     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 12909       PATH_SEPARATOR=';'
 12911 fi
 12913 # Support unset when possible.
 12914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 12915   as_unset=unset
 12916 else
 12917   as_unset=false
 12918 fi
 12921 # IFS
 12922 # We need space, tab and new line, in precisely that order.  Quoting is
 12923 # there to prevent editors from complaining about space-tab.
 12924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 12925 # splitting by setting IFS to empty value.)
 12926 IFS=" ""	$as_nl"
 12928 # Find who we are.  Look in the path if we contain no directory separator.
 12929 case $0 in
 12930   *[\\/]* ) as_myself=$0 ;;
 12931   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12932 for as_dir in $PATH
 12933 do
 12934   IFS=$as_save_IFS
 12935   test -z "$as_dir" && as_dir=.
 12936   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 12937 done
 12938 IFS=$as_save_IFS
 12940      ;;
 12941 esac
 12942 # We did not find ourselves, most probably we were run as `sh COMMAND'
 12943 # in which case we are not to be found in the path.
 12944 if test "x$as_myself" = x; then
 12945   as_myself=$0
 12946 fi
 12947 if test ! -f "$as_myself"; then
 12948   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 12949   { (exit 1); exit 1; }
 12950 fi
 12952 # Work around bugs in pre-3.0 UWIN ksh.
 12953 for as_var in ENV MAIL MAILPATH
 12954 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 12955 done
 12956 PS1='$ '
 12957 PS2='> '
 12958 PS4='+ '
 12960 # NLS nuisances.
 12961 LC_ALL=C
 12962 export LC_ALL
 12963 LANGUAGE=C
 12964 export LANGUAGE
 12966 # Required to use basename.
 12967 if expr a : '\(a\)' >/dev/null 2>&1 &&
 12968    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 12969   as_expr=expr
 12970 else
 12971   as_expr=false
 12972 fi
 12974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 12975   as_basename=basename
 12976 else
 12977   as_basename=false
 12978 fi
 12981 # Name of the executable.
 12982 as_me=`$as_basename -- "$0" ||
 12983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 12984 	 X"$0" : 'X\(//\)$' \| \
 12985 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 12986 $as_echo X/"$0" |
 12987     sed '/^.*\/\([^/][^/]*\)\/*$/{
 12988 	    s//\1/
 12991 	  /^X\/\(\/\/\)$/{
 12992 	    s//\1/
 12995 	  /^X\/\(\/\).*/{
 12996 	    s//\1/
 12999 	  s/.*/./; q'`
 13001 # CDPATH.
 13002 $as_unset CDPATH
 13006   as_lineno_1=$LINENO
 13007   as_lineno_2=$LINENO
 13008   test "x$as_lineno_1" != "x$as_lineno_2" &&
 13009   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 13011   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 13012   # uniformly replaced by the line number.  The first 'sed' inserts a
 13013   # line-number line after each line using $LINENO; the second 'sed'
 13014   # does the real work.  The second script uses 'N' to pair each
 13015   # line-number line with the line containing $LINENO, and appends
 13016   # trailing '-' during substitution so that $LINENO is not a special
 13017   # case at line end.
 13018   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 13019   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 13020   # E. McMahon (1931-1989) for sed's syntax.  :-)
 13021   sed -n '
 13023     /[$]LINENO/=
 13024   ' <$as_myself |
 13025     sed '
 13026       s/[$]LINENO.*/&-/
 13027       t lineno
 13029       :lineno
 13031       :loop
 13032       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 13033       t loop
 13034       s/-\n.*//
 13035     ' >$as_me.lineno &&
 13036   chmod +x "$as_me.lineno" ||
 13037     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 13038    { (exit 1); exit 1; }; }
 13040   # Don't try to exec as it changes $[0], causing all sort of problems
 13041   # (the dirname of $[0] is not the place where we might find the
 13042   # original and so on.  Autoconf is especially sensitive to this).
 13043   . "./$as_me.lineno"
 13044   # Exit status is that of the last command.
 13045   exit
 13049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 13050   as_dirname=dirname
 13051 else
 13052   as_dirname=false
 13053 fi
 13055 ECHO_C= ECHO_N= ECHO_T=
 13056 case `echo -n x` in
 13057 -n*)
 13058   case `echo 'x\c'` in
 13059   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 13060   *)   ECHO_C='\c';;
 13061   esac;;
 13062 *)
 13063   ECHO_N='-n';;
 13064 esac
 13065 if expr a : '\(a\)' >/dev/null 2>&1 &&
 13066    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 13067   as_expr=expr
 13068 else
 13069   as_expr=false
 13070 fi
 13072 rm -f conf$$ conf$$.exe conf$$.file
 13073 if test -d conf$$.dir; then
 13074   rm -f conf$$.dir/conf$$.file
 13075 else
 13076   rm -f conf$$.dir
 13077   mkdir conf$$.dir 2>/dev/null
 13078 fi
 13079 if (echo >conf$$.file) 2>/dev/null; then
 13080   if ln -s conf$$.file conf$$ 2>/dev/null; then
 13081     as_ln_s='ln -s'
 13082     # ... but there are two gotchas:
 13083     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 13084     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 13085     # In both cases, we have to default to `cp -p'.
 13086     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 13087       as_ln_s='cp -p'
 13088   elif ln conf$$.file conf$$ 2>/dev/null; then
 13089     as_ln_s=ln
 13090   else
 13091     as_ln_s='cp -p'
 13092   fi
 13093 else
 13094   as_ln_s='cp -p'
 13095 fi
 13096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 13097 rmdir conf$$.dir 2>/dev/null
 13099 if mkdir -p . 2>/dev/null; then
 13100   as_mkdir_p=:
 13101 else
 13102   test -d ./-p && rmdir ./-p
 13103   as_mkdir_p=false
 13104 fi
 13106 if test -x / >/dev/null 2>&1; then
 13107   as_test_x='test -x'
 13108 else
 13109   if ls -dL / >/dev/null 2>&1; then
 13110     as_ls_L_option=L
 13111   else
 13112     as_ls_L_option=
 13113   fi
 13114   as_test_x='
 13115     eval sh -c '\''
 13116       if test -d "$1"; then
 13117 	test -d "$1/.";
 13118       else
 13119 	case $1 in
 13120 	-*)set "./$1";;
 13121 	esac;
 13122 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 13123 	???[sx]*):;;*)false;;esac;fi
 13124     '\'' sh
 13126 fi
 13127 as_executable_p=$as_test_x
 13129 # Sed expression to map a string onto a valid CPP name.
 13130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 13132 # Sed expression to map a string onto a valid variable name.
 13133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 13136 exec 6>&1
 13138 # Save the log message, to keep $[0] and so on meaningful, and to
 13139 # report actual input values of CONFIG_FILES etc. instead of their
 13140 # values after options handling.
 13141 ac_log="
 13142 This file was extended by $as_me, which was
 13143 generated by GNU Autoconf 2.62.  Invocation command line was
 13145   CONFIG_FILES    = $CONFIG_FILES
 13146   CONFIG_HEADERS  = $CONFIG_HEADERS
 13147   CONFIG_LINKS    = $CONFIG_LINKS
 13148   CONFIG_COMMANDS = $CONFIG_COMMANDS
 13149   $ $0 $@
 13151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 13154 _ACEOF
 13156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13157 # Files that config.status was made for.
 13158 config_files="$ac_config_files"
 13159 config_headers="$ac_config_headers"
 13160 config_commands="$ac_config_commands"
 13162 _ACEOF
 13164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13165 ac_cs_usage="\
 13166 \`$as_me' instantiates files from templates according to the
 13167 current configuration.
 13169 Usage: $0 [OPTIONS] [FILE]...
 13171   -h, --help       print this help, then exit
 13172   -V, --version    print version number and configuration settings, then exit
 13173   -q, --quiet      do not print progress messages
 13174   -d, --debug      don't remove temporary files
 13175       --recheck    update $as_me by reconfiguring in the same conditions
 13176   --file=FILE[:TEMPLATE]
 13177                    instantiate the configuration file FILE
 13178   --header=FILE[:TEMPLATE]
 13179                    instantiate the configuration header FILE
 13181 Configuration files:
 13182 $config_files
 13184 Configuration headers:
 13185 $config_headers
 13187 Configuration commands:
 13188 $config_commands
 13190 Report bugs to <bug-autoconf@gnu.org>."
 13192 _ACEOF
 13193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13194 ac_cs_version="\\
 13195 config.status
 13196 configured by $0, generated by GNU Autoconf 2.62,
 13197   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 13199 Copyright (C) 2008 Free Software Foundation, Inc.
 13200 This config.status script is free software; the Free Software Foundation
 13201 gives unlimited permission to copy, distribute and modify it."
 13203 ac_pwd='$ac_pwd'
 13204 srcdir='$srcdir'
 13205 INSTALL='$INSTALL'
 13206 AWK='$AWK'
 13207 test -n "\$AWK" || AWK=awk
 13208 _ACEOF
 13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13211 # The default lists apply if the user does not specify any file.
 13212 ac_need_defaults=:
 13213 while test $# != 0
 13214 do
 13215   case $1 in
 13216   --*=*)
 13217     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 13218     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 13219     ac_shift=:
 13220     ;;
 13221   *)
 13222     ac_option=$1
 13223     ac_optarg=$2
 13224     ac_shift=shift
 13225     ;;
 13226   esac
 13228   case $ac_option in
 13229   # Handling of the options.
 13230   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 13231     ac_cs_recheck=: ;;
 13232   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 13233     $as_echo "$ac_cs_version"; exit ;;
 13234   --debug | --debu | --deb | --de | --d | -d )
 13235     debug=: ;;
 13236   --file | --fil | --fi | --f )
 13237     $ac_shift
 13238     case $ac_optarg in
 13239     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 13240     esac
 13241     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 13242     ac_need_defaults=false;;
 13243   --header | --heade | --head | --hea )
 13244     $ac_shift
 13245     case $ac_optarg in
 13246     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 13247     esac
 13248     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 13249     ac_need_defaults=false;;
 13250   --he | --h)
 13251     # Conflict between --help and --header
 13252     { $as_echo "$as_me: error: ambiguous option: $1
 13253 Try \`$0 --help' for more information." >&2
 13254    { (exit 1); exit 1; }; };;
 13255   --help | --hel | -h )
 13256     $as_echo "$ac_cs_usage"; exit ;;
 13257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 13258   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 13259     ac_cs_silent=: ;;
 13261   # This is an error.
 13262   -*) { $as_echo "$as_me: error: unrecognized option: $1
 13263 Try \`$0 --help' for more information." >&2
 13264    { (exit 1); exit 1; }; } ;;
 13266   *) ac_config_targets="$ac_config_targets $1"
 13267      ac_need_defaults=false ;;
 13269   esac
 13270   shift
 13271 done
 13273 ac_configure_extra_args=
 13275 if $ac_cs_silent; then
 13276   exec 6>/dev/null
 13277   ac_configure_extra_args="$ac_configure_extra_args --silent"
 13278 fi
 13280 _ACEOF
 13281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13282 if \$ac_cs_recheck; then
 13283   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 13284   shift
 13285   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 13286   CONFIG_SHELL='$SHELL'
 13287   export CONFIG_SHELL
 13288   exec "\$@"
 13289 fi
 13291 _ACEOF
 13292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13293 exec 5>>config.log
 13295   echo
 13296   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 13297 ## Running $as_me. ##
 13298 _ASBOX
 13299   $as_echo "$ac_log"
 13300 } >&5
 13302 _ACEOF
 13303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13305 # INIT-COMMANDS
 13307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 13310 _ACEOF
 13312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13314 # Handling of arguments.
 13315 for ac_config_target in $ac_config_targets
 13316 do
 13317   case $ac_config_target in
 13318     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 13319     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 13320     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 13321     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 13322     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 13323     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 13324     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 13325     "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
 13327   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 13328 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 13329    { (exit 1); exit 1; }; };;
 13330   esac
 13331 done
 13334 # If the user did not use the arguments to specify the items to instantiate,
 13335 # then the envvar interface is used.  Set only those that are not.
 13336 # We use the long form for the default assignment because of an extremely
 13337 # bizarre bug on SunOS 4.1.3.
 13338 if $ac_need_defaults; then
 13339   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 13340   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 13341   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 13342 fi
 13344 # Have a temporary directory for convenience.  Make it in the build tree
 13345 # simply because there is no reason against having it here, and in addition,
 13346 # creating and moving files from /tmp can sometimes cause problems.
 13347 # Hook for its removal unless debugging.
 13348 # Note that there is a small window in which the directory will not be cleaned:
 13349 # after its creation but before its name has been assigned to `$tmp'.
 13350 $debug ||
 13352   tmp=
 13353   trap 'exit_status=$?
 13354   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 13355 ' 0
 13356   trap '{ (exit 1); exit 1; }' 1 2 13 15
 13358 # Create a (secure) tmp directory for tmp files.
 13361   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 13362   test -n "$tmp" && test -d "$tmp"
 13363 }  ||
 13365   tmp=./conf$$-$RANDOM
 13366   (umask 077 && mkdir "$tmp")
 13367 } ||
 13369    $as_echo "$as_me: cannot create a temporary directory in ." >&2
 13370    { (exit 1); exit 1; }
 13373 # Set up the scripts for CONFIG_FILES section.
 13374 # No need to generate them if there are no CONFIG_FILES.
 13375 # This happens for instance with `./config.status config.h'.
 13376 if test -n "$CONFIG_FILES"; then
 13379 ac_cr='
 13381 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 13382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 13383   ac_cs_awk_cr='\\r'
 13384 else
 13385   ac_cs_awk_cr=$ac_cr
 13386 fi
 13388 echo 'BEGIN {' >"$tmp/subs1.awk" &&
 13389 _ACEOF
 13393   echo "cat >conf$$subs.awk <<_ACEOF" &&
 13394   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 13395   echo "_ACEOF"
 13396 } >conf$$subs.sh ||
 13397   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 13398 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 13399    { (exit 1); exit 1; }; }
 13400 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 13401 ac_delim='%!_!# '
 13402 for ac_last_try in false false false false false :; do
 13403   . ./conf$$subs.sh ||
 13404     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 13405 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 13406    { (exit 1); exit 1; }; }
 13408   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
 13409     break
 13410   elif $ac_last_try; then
 13411     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 13412 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 13413    { (exit 1); exit 1; }; }
 13414   else
 13415     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 13416   fi
 13417 done
 13418 rm -f conf$$subs.sh
 13420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13421 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 13422 _ACEOF
 13423 sed -n '
 13425 s/^/S["/; s/!.*/"]=/
 13428 s/^[^!]*!//
 13429 :repl
 13430 t repl
 13431 s/'"$ac_delim"'$//
 13432 t delim
 13433 :nl
 13435 s/\(.\{148\}\).*/\1/
 13436 t more1
 13437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 13440 b repl
 13441 :more1
 13442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 13445 s/.\{148\}//
 13446 t nl
 13447 :delim
 13449 s/\(.\{148\}\).*/\1/
 13450 t more2
 13451 s/["\\]/\\&/g; s/^/"/; s/$/"/
 13454 :more2
 13455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 13458 s/.\{148\}//
 13459 t delim
 13460 ' <conf$$subs.awk | sed '
 13461 /^[^""]/{
 13463   s/\n//
 13465 ' >>$CONFIG_STATUS || ac_write_fail=1
 13466 rm -f conf$$subs.awk
 13467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13468 _ACAWK
 13469 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 13470   for (key in S) S_is_set[key] = 1
 13471   FS = ""
 13475   line = $ 0
 13476   nfields = split(line, field, "@")
 13477   substed = 0
 13478   len = length(field[1])
 13479   for (i = 2; i < nfields; i++) {
 13480     key = field[i]
 13481     keylen = length(key)
 13482     if (S_is_set[key]) {
 13483       value = S[key]
 13484       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 13485       len += length(value) + length(field[++i])
 13486       substed = 1
 13487     } else
 13488       len += 1 + keylen
 13491   print line
 13494 _ACAWK
 13495 _ACEOF
 13496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13497 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 13498   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 13499 else
 13500   cat
 13501 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 13502   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 13503 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
 13504    { (exit 1); exit 1; }; }
 13505 _ACEOF
 13507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 13508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 13509 # trailing colons and then remove the whole line if VPATH becomes empty
 13510 # (actually we leave an empty line to preserve line numbers).
 13511 if test "x$srcdir" = x.; then
 13512   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 13513 s/:*\$(srcdir):*/:/
 13514 s/:*\${srcdir}:*/:/
 13515 s/:*@srcdir@:*/:/
 13516 s/^\([^=]*=[	 ]*\):*/\1/
 13517 s/:*$//
 13518 s/^[^=]*=[	 ]*$//
 13519 }'
 13520 fi
 13522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13523 fi # test -n "$CONFIG_FILES"
 13525 # Set up the scripts for CONFIG_HEADERS section.
 13526 # No need to generate them if there are no CONFIG_HEADERS.
 13527 # This happens for instance with `./config.status Makefile'.
 13528 if test -n "$CONFIG_HEADERS"; then
 13529 cat >"$tmp/defines.awk" <<\_ACAWK ||
 13530 BEGIN {
 13531 _ACEOF
 13533 # Transform confdefs.h into an awk script `defines.awk', embedded as
 13534 # here-document in config.status, that substitutes the proper values into
 13535 # config.h.in to produce config.h.
 13537 # Create a delimiter string that does not exist in confdefs.h, to ease
 13538 # handling of long lines.
 13539 ac_delim='%!_!# '
 13540 for ac_last_try in false false :; do
 13541   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 13542   if test -z "$ac_t"; then
 13543     break
 13544   elif $ac_last_try; then
 13545     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 13546 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 13547    { (exit 1); exit 1; }; }
 13548   else
 13549     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 13550   fi
 13551 done
 13553 # For the awk script, D is an array of macro values keyed by name,
 13554 # likewise P contains macro parameters if any.  Preserve backslash
 13555 # newline sequences.
 13557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 13558 sed -n '
 13559 s/.\{148\}/&'"$ac_delim"'/g
 13560 t rset
 13561 :rset
 13562 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 13563 t def
 13565 :def
 13566 s/\\$//
 13567 t bsnl
 13568 s/["\\]/\\&/g
 13569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 13570 D["\1"]=" \3"/p
 13571 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 13573 :bsnl
 13574 s/["\\]/\\&/g
 13575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 13576 D["\1"]=" \3\\\\\\n"\\/p
 13577 t cont
 13578 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 13579 t cont
 13581 :cont
 13583 s/.\{148\}/&'"$ac_delim"'/g
 13584 t clear
 13585 :clear
 13586 s/\\$//
 13587 t bsnlc
 13588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
 13590 :bsnlc
 13591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 13592 b cont
 13593 ' <confdefs.h | sed '
 13594 s/'"$ac_delim"'/"\\\
 13595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
 13597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13598   for (key in D) D_is_set[key] = 1
 13599   FS = ""
 13601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 13602   line = \$ 0
 13603   split(line, arg, " ")
 13604   if (arg[1] == "#") {
 13605     defundef = arg[2]
 13606     mac1 = arg[3]
 13607   } else {
 13608     defundef = substr(arg[1], 2)
 13609     mac1 = arg[2]
 13611   split(mac1, mac2, "(") #)
 13612   macro = mac2[1]
 13613   if (D_is_set[macro]) {
 13614     # Preserve the white space surrounding the "#".
 13615     prefix = substr(line, 1, index(line, defundef) - 1)
 13616     print prefix "define", macro P[macro] D[macro]
 13617     next
 13618   } else {
 13619     # Replace #undef with comments.  This is necessary, for example,
 13620     # in the case of _POSIX_SOURCE, which is predefined and required
 13621     # on some systems where configure will not decide to define it.
 13622     if (defundef == "undef") {
 13623       print "/*", line, "*/"
 13624       next
 13628 { print }
 13629 _ACAWK
 13630 _ACEOF
 13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13632   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 13633 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 13634    { (exit 1); exit 1; }; }
 13635 fi # test -n "$CONFIG_HEADERS"
 13638 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 13639 shift
 13640 for ac_tag
 13641 do
 13642   case $ac_tag in
 13643   :[FHLC]) ac_mode=$ac_tag; continue;;
 13644   esac
 13645   case $ac_mode$ac_tag in
 13646   :[FHL]*:*);;
 13647   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 13648 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 13649    { (exit 1); exit 1; }; };;
 13650   :[FH]-) ac_tag=-:-;;
 13651   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 13652   esac
 13653   ac_save_IFS=$IFS
 13654   IFS=:
 13655   set x $ac_tag
 13656   IFS=$ac_save_IFS
 13657   shift
 13658   ac_file=$1
 13659   shift
 13661   case $ac_mode in
 13662   :L) ac_source=$1;;
 13663   :[FH])
 13664     ac_file_inputs=
 13665     for ac_f
 13666     do
 13667       case $ac_f in
 13668       -) ac_f="$tmp/stdin";;
 13669       *) # Look for the file first in the build tree, then in the source tree
 13670 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 13671 	 # because $ac_f cannot contain `:'.
 13672 	 test -f "$ac_f" ||
 13673 	   case $ac_f in
 13674 	   [\\/$]*) false;;
 13675 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 13676 	   esac ||
 13677 	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 13678 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 13679    { (exit 1); exit 1; }; };;
 13680       esac
 13681       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 13682       ac_file_inputs="$ac_file_inputs '$ac_f'"
 13683     done
 13685     # Let's still pretend it is `configure' which instantiates (i.e., don't
 13686     # use $as_me), people would be surprised to read:
 13687     #    /* config.h.  Generated by config.status.  */
 13688     configure_input='Generated from '`
 13689 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 13690 	`' by configure.'
 13691     if test x"$ac_file" != x-; then
 13692       configure_input="$ac_file.  $configure_input"
 13693       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 13694 $as_echo "$as_me: creating $ac_file" >&6;}
 13695     fi
 13696     # Neutralize special characters interpreted by sed in replacement strings.
 13697     case $configure_input in #(
 13698     *\&* | *\|* | *\\* )
 13699        ac_sed_conf_input=`$as_echo "$configure_input" |
 13700        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 13701     *) ac_sed_conf_input=$configure_input;;
 13702     esac
 13704     case $ac_tag in
 13705     *:-:* | *:-) cat >"$tmp/stdin" \
 13706       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 13707 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 13708    { (exit 1); exit 1; }; } ;;
 13709     esac
 13710     ;;
 13711   esac
 13713   ac_dir=`$as_dirname -- "$ac_file" ||
 13714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13715 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 13716 	 X"$ac_file" : 'X\(//\)$' \| \
 13717 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 13718 $as_echo X"$ac_file" |
 13719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13720 	    s//\1/
 13723 	  /^X\(\/\/\)[^/].*/{
 13724 	    s//\1/
 13727 	  /^X\(\/\/\)$/{
 13728 	    s//\1/
 13731 	  /^X\(\/\).*/{
 13732 	    s//\1/
 13735 	  s/.*/./; q'`
 13736   { as_dir="$ac_dir"
 13737   case $as_dir in #(
 13738   -*) as_dir=./$as_dir;;
 13739   esac
 13740   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 13741     as_dirs=
 13742     while :; do
 13743       case $as_dir in #(
 13744       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 13745       *) as_qdir=$as_dir;;
 13746       esac
 13747       as_dirs="'$as_qdir' $as_dirs"
 13748       as_dir=`$as_dirname -- "$as_dir" ||
 13749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13750 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 13751 	 X"$as_dir" : 'X\(//\)$' \| \
 13752 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 13753 $as_echo X"$as_dir" |
 13754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13755 	    s//\1/
 13758 	  /^X\(\/\/\)[^/].*/{
 13759 	    s//\1/
 13762 	  /^X\(\/\/\)$/{
 13763 	    s//\1/
 13766 	  /^X\(\/\).*/{
 13767 	    s//\1/
 13770 	  s/.*/./; q'`
 13771       test -d "$as_dir" && break
 13772     done
 13773     test -z "$as_dirs" || eval "mkdir $as_dirs"
 13774   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 13775 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 13776    { (exit 1); exit 1; }; }; }
 13777   ac_builddir=.
 13779 case "$ac_dir" in
 13780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 13781 *)
 13782   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 13783   # A ".." for each directory in $ac_dir_suffix.
 13784   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 13785   case $ac_top_builddir_sub in
 13786   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 13787   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 13788   esac ;;
 13789 esac
 13790 ac_abs_top_builddir=$ac_pwd
 13791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 13792 # for backward compatibility:
 13793 ac_top_builddir=$ac_top_build_prefix
 13795 case $srcdir in
 13796   .)  # We are building in place.
 13797     ac_srcdir=.
 13798     ac_top_srcdir=$ac_top_builddir_sub
 13799     ac_abs_top_srcdir=$ac_pwd ;;
 13800   [\\/]* | ?:[\\/]* )  # Absolute name.
 13801     ac_srcdir=$srcdir$ac_dir_suffix;
 13802     ac_top_srcdir=$srcdir
 13803     ac_abs_top_srcdir=$srcdir ;;
 13804   *) # Relative name.
 13805     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 13806     ac_top_srcdir=$ac_top_build_prefix$srcdir
 13807     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 13808 esac
 13809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 13812   case $ac_mode in
 13813   :F)
 13815   # CONFIG_FILE
 13818   case $INSTALL in
 13819   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 13820   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 13821   esac
 13822 _ACEOF
 13824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13825 # If the template does not know about datarootdir, expand it.
 13826 # FIXME: This hack should be removed a few years after 2.60.
 13827 ac_datarootdir_hack=; ac_datarootdir_seen=
 13829 ac_sed_dataroot='
 13830 /datarootdir/ {
 13834 /@datadir@/p
 13835 /@docdir@/p
 13836 /@infodir@/p
 13837 /@localedir@/p
 13838 /@mandir@/p
 13840 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 13841 *datarootdir*) ac_datarootdir_seen=yes;;
 13842 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 13843   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 13844 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 13845 _ACEOF
 13846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13847   ac_datarootdir_hack='
 13848   s&@datadir@&$datadir&g
 13849   s&@docdir@&$docdir&g
 13850   s&@infodir@&$infodir&g
 13851   s&@localedir@&$localedir&g
 13852   s&@mandir@&$mandir&g
 13853     s&\\\${datarootdir}&$datarootdir&g' ;;
 13854 esac
 13855 _ACEOF
 13857 # Neutralize VPATH when `$srcdir' = `.'.
 13858 # Shell code in configure.ac might set extrasub.
 13859 # FIXME: do we really want to maintain this feature?
 13860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 13861 ac_sed_extra="$ac_vpsub
 13862 $extrasub
 13863 _ACEOF
 13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 13865 :t
 13866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 13867 s|@configure_input@|$ac_sed_conf_input|;t t
 13868 s&@top_builddir@&$ac_top_builddir_sub&;t t
 13869 s&@top_build_prefix@&$ac_top_build_prefix&;t t
 13870 s&@srcdir@&$ac_srcdir&;t t
 13871 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 13872 s&@top_srcdir@&$ac_top_srcdir&;t t
 13873 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 13874 s&@builddir@&$ac_builddir&;t t
 13875 s&@abs_builddir@&$ac_abs_builddir&;t t
 13876 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 13877 s&@INSTALL@&$ac_INSTALL&;t t
 13878 $ac_datarootdir_hack
 13880 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 13881   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 13882 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 13883    { (exit 1); exit 1; }; }
 13885 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 13886   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 13887   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 13888   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 13889 which seems to be undefined.  Please make sure it is defined." >&5
 13890 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 13891 which seems to be undefined.  Please make sure it is defined." >&2;}
 13893   rm -f "$tmp/stdin"
 13894   case $ac_file in
 13895   -) cat "$tmp/out" && rm -f "$tmp/out";;
 13896   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 13897   esac \
 13898   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 13899 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 13900    { (exit 1); exit 1; }; }
 13901  ;;
 13902   :H)
 13904   # CONFIG_HEADER
 13906   if test x"$ac_file" != x-; then
 13908       $as_echo "/* $configure_input  */" \
 13909       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 13910     } >"$tmp/config.h" \
 13911       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 13912 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 13913    { (exit 1); exit 1; }; }
 13914     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 13915       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 13916 $as_echo "$as_me: $ac_file is unchanged" >&6;}
 13917     else
 13918       rm -f "$ac_file"
 13919       mv "$tmp/config.h" "$ac_file" \
 13920 	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 13921 $as_echo "$as_me: error: could not create $ac_file" >&2;}
 13922    { (exit 1); exit 1; }; }
 13923     fi
 13924   else
 13925     $as_echo "/* $configure_input  */" \
 13926       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 13927       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 13928 $as_echo "$as_me: error: could not create -" >&2;}
 13929    { (exit 1); exit 1; }; }
 13930   fi
 13931 # Compute "$ac_file"'s index in $config_headers.
 13932 _am_stamp_count=1
 13933 for _am_header in $config_headers :; do
 13934   case $_am_header in
 13935     "$ac_file" | "$ac_file":* )
 13936       break ;;
 13937     * )
 13938       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 13939   esac
 13940 done
 13941 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
 13942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13943 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 13944 	 X"$ac_file" : 'X\(//\)$' \| \
 13945 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 13946 $as_echo X"$ac_file" |
 13947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13948 	    s//\1/
 13951 	  /^X\(\/\/\)[^/].*/{
 13952 	    s//\1/
 13955 	  /^X\(\/\/\)$/{
 13956 	    s//\1/
 13959 	  /^X\(\/\).*/{
 13960 	    s//\1/
 13963 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 13964  ;;
 13966   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 13967 $as_echo "$as_me: executing $ac_file commands" >&6;}
 13968  ;;
 13969   esac
 13972   case $ac_file$ac_mode in
 13973     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 13974   # Strip MF so we end up with the name of the file.
 13975   mf=`echo "$mf" | sed -e 's/:.*$//'`
 13976   # Check whether this is an Automake generated Makefile or not.
 13977   # We used to match only the files named `Makefile.in', but
 13978   # some people rename them; so instead we look at the file content.
 13979   # Grep'ing the first line is not enough: some people post-process
 13980   # each Makefile.in and add a new line on top of each file to say so.
 13981   # So let's grep whole file.
 13982   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 13983     dirpart=`$as_dirname -- "$mf" ||
 13984 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 13985 	 X"$mf" : 'X\(//\)[^/]' \| \
 13986 	 X"$mf" : 'X\(//\)$' \| \
 13987 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 13988 $as_echo X"$mf" |
 13989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 13990 	    s//\1/
 13993 	  /^X\(\/\/\)[^/].*/{
 13994 	    s//\1/
 13997 	  /^X\(\/\/\)$/{
 13998 	    s//\1/
 14001 	  /^X\(\/\).*/{
 14002 	    s//\1/
 14005 	  s/.*/./; q'`
 14006   else
 14007     continue
 14008   fi
 14009   # Extract the definition of DEPDIR, am__include, and am__quote
 14010   # from the Makefile without running `make'.
 14011   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 14012   test -z "$DEPDIR" && continue
 14013   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 14014   test -z "am__include" && continue
 14015   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 14016   # When using ansi2knr, U may be empty or an underscore; expand it
 14017   U=`sed -n 's/^U = //p' < "$mf"`
 14018   # Find all dependency output files, they are included files with
 14019   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 14020   # simplest approach to changing $(DEPDIR) to its actual value in the
 14021   # expansion.
 14022   for file in `sed -n "
 14023     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 14024        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 14025     # Make sure the directory exists.
 14026     test -f "$dirpart/$file" && continue
 14027     fdir=`$as_dirname -- "$file" ||
 14028 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14029 	 X"$file" : 'X\(//\)[^/]' \| \
 14030 	 X"$file" : 'X\(//\)$' \| \
 14031 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 14032 $as_echo X"$file" |
 14033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14034 	    s//\1/
 14037 	  /^X\(\/\/\)[^/].*/{
 14038 	    s//\1/
 14041 	  /^X\(\/\/\)$/{
 14042 	    s//\1/
 14045 	  /^X\(\/\).*/{
 14046 	    s//\1/
 14049 	  s/.*/./; q'`
 14050     { as_dir=$dirpart/$fdir
 14051   case $as_dir in #(
 14052   -*) as_dir=./$as_dir;;
 14053   esac
 14054   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14055     as_dirs=
 14056     while :; do
 14057       case $as_dir in #(
 14058       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14059       *) as_qdir=$as_dir;;
 14060       esac
 14061       as_dirs="'$as_qdir' $as_dirs"
 14062       as_dir=`$as_dirname -- "$as_dir" ||
 14063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14064 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14065 	 X"$as_dir" : 'X\(//\)$' \| \
 14066 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14067 $as_echo X"$as_dir" |
 14068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14069 	    s//\1/
 14072 	  /^X\(\/\/\)[^/].*/{
 14073 	    s//\1/
 14076 	  /^X\(\/\/\)$/{
 14077 	    s//\1/
 14080 	  /^X\(\/\).*/{
 14081 	    s//\1/
 14084 	  s/.*/./; q'`
 14085       test -d "$as_dir" && break
 14086     done
 14087     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14088   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14089 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14090    { (exit 1); exit 1; }; }; }
 14091     # echo "creating $dirpart/$file"
 14092     echo '# dummy' > "$dirpart/$file"
 14093   done
 14094 done
 14095  ;;
 14096     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 14097         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 14098       esac ;;
 14100   esac
 14101 done # for ac_tag
 14104 { (exit 0); exit 0; }
 14105 _ACEOF
 14106 chmod +x $CONFIG_STATUS
 14107 ac_clean_files=$ac_clean_files_save
 14109 test $ac_write_fail = 0 ||
 14110   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 14111 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 14112    { (exit 1); exit 1; }; }
 14115 # configure is writing to config.log, and then calls config.status.
 14116 # config.status does its own redirection, appending to config.log.
 14117 # Unfortunately, on DOS this fails, as config.log is still kept open
 14118 # by configure, so config.status won't be able to write to it; its
 14119 # output is simply discarded.  So we exec the FD to /dev/null,
 14120 # effectively closing config.log, so it can be properly (re)opened and
 14121 # appended to by config.status.  When coming back to configure, we
 14122 # need to make the FD available again.
 14123 if test "$no_create" != yes; then
 14124   ac_cs_success=:
 14125   ac_config_status_args=
 14126   test "$silent" = yes &&
 14127     ac_config_status_args="$ac_config_status_args --quiet"
 14128   exec 5>/dev/null
 14129   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 14130   exec 5>>config.log
 14131   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 14132   # would make configure fail if this is the last instruction.
 14133   $ac_cs_success || { (exit 1); exit 1; }
 14134 fi
 14135 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 14136   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
 14137 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
 14138 fi
 14140 { as_dir=test/sh4
 14141   case $as_dir in #(
 14142   -*) as_dir=./$as_dir;;
 14143   esac
 14144   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 14145     as_dirs=
 14146     while :; do
 14147       case $as_dir in #(
 14148       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 14149       *) as_qdir=$as_dir;;
 14150       esac
 14151       as_dirs="'$as_qdir' $as_dirs"
 14152       as_dir=`$as_dirname -- "$as_dir" ||
 14153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 14154 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 14155 	 X"$as_dir" : 'X\(//\)$' \| \
 14156 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 14157 $as_echo X"$as_dir" |
 14158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 14159 	    s//\1/
 14162 	  /^X\(\/\/\)[^/].*/{
 14163 	    s//\1/
 14166 	  /^X\(\/\/\)$/{
 14167 	    s//\1/
 14170 	  /^X\(\/\).*/{
 14171 	    s//\1/
 14174 	  s/.*/./; q'`
 14175       test -d "$as_dir" && break
 14176     done
 14177     test -z "$as_dirs" || eval "mkdir $as_dirs"
 14178   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 14179 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 14180    { (exit 1); exit 1; }; }; }
 14183 echo
 14184 echo "Configuration complete"
 14185 echo
 14187 if test "x$HAVE_GTK" = x; then
 14188   if test "x$HAVE_COCOA" = x; then
 14189      echo "  User interface: none"
 14190   else
 14191      echo "  User interface: Cocoa"
 14192   fi
 14193 else
 14194   echo "  User interface: GTK"
 14195 fi
 14197 if test "x$SH4_TRANSLATOR" = "x"; then
 14198   echo "  SH4 translator: None (emulation core only)"
 14199 else
 14200   echo "  SH4 translator: $SH4_TRANSLATOR"
 14201 fi
 14203 if test "x$VIDEO_DRIVERS" = "x"; then
 14204    echo "  Video drivers: none (no supported GL found)"
 14205 else
 14206    echo "  Video drivers: $VIDEO_DRIVERS"
 14207 fi
 14209 if test "x$AUDIO_DRIVERS" = "x"; then
 14210    echo "  Audio drivers: none (no supported output devices found)"
 14211 else
 14212    echo "  Audio drivers: $AUDIO_DRIVERS"
 14213 fi
 14215 if test "x$CDROM_DRIVER" = "x"; then
 14216    echo "  CD-ROM driver: none (no supported cd-rom devices found)"
 14217 else
 14218    echo "  CD-ROM driver: $CDROM_DRIVER"
 14219 fi
.