Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 614:a2d239d4438a
prev586:2a3ba82cf243
next635:76c63aac3590
next643:653b0a70f173
author nkeynes
date Fri Feb 08 00:59:15 2008 +0000 (16 years ago)
permissions -rwxr-xr-x
last change Fix premature deletion of the old device when changing devices
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 AMTAR
   665 install_sh
   666 STRIP
   667 INSTALL_STRIP_PROGRAM
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 MAINTAINER_MODE_TRUE
   672 MAINTAINER_MODE_FALSE
   673 MAINT
   674 CC
   675 CFLAGS
   676 LDFLAGS
   677 CPPFLAGS
   678 ac_ct_CC
   679 EXEEXT
   680 OBJEXT
   681 DEPDIR
   682 am__include
   683 am__quote
   684 AMDEP_TRUE
   685 AMDEP_FALSE
   686 AMDEPBACKSLASH
   687 CCDEPMODE
   688 am__fastdepCC_TRUE
   689 am__fastdepCC_FALSE
   690 CCAS
   691 CCASFLAGS
   692 CPP
   693 GREP
   694 EGREP
   695 build
   696 build_cpu
   697 build_vendor
   698 build_os
   699 host
   700 host_cpu
   701 host_vendor
   702 host_os
   703 PKG_CONFIG
   704 LIBPNG_CFLAGS
   705 LIBPNG_LIBS
   706 GTK_CFLAGS
   707 GTK_LIBS
   708 GUI_CARBON_TRUE
   709 GUI_CARBON_FALSE
   710 GUI_GTK_TRUE
   711 GUI_GTK_FALSE
   712 BUILD_SH4X86_TRUE
   713 BUILD_SH4X86_FALSE
   714 BUILD_X86_64_TRUE
   715 BUILD_X86_64_FALSE
   716 ESOUND_CFLAGS
   717 ESOUND_LIBS
   718 AUDIO_ESOUND_TRUE
   719 AUDIO_ESOUND_FALSE
   720 CDROM_LINUX_TRUE
   721 CDROM_LINUX_FALSE
   722 JOY_LINUX_TRUE
   723 JOY_LINUX_FALSE
   724 SHCC
   725 SHLD
   726 SHOBJCOPY
   727 ARMCC
   728 ARMLD
   729 ARMOBJCOPY
   730 BUILD_SYSTEST_TRUE
   731 BUILD_SYSTEST_FALSE
   732 BUILD_ARMTEST_TRUE
   733 BUILD_ARMTEST_FALSE
   734 GETTEXT_PACKAGE
   735 USE_NLS
   736 MSGFMT
   737 MSGFMT_OPTS
   738 GMSGFMT
   739 XGETTEXT
   740 CATALOGS
   741 CATOBJEXT
   742 DATADIRNAME
   743 GMOFILES
   744 INSTOBJEXT
   745 INTLLIBS
   746 PO_IN_DATADIR_TRUE
   747 PO_IN_DATADIR_FALSE
   748 POFILES
   749 POSUB
   750 MKINSTALLDIRS
   751 LIBOBJS
   752 LTLIBOBJS'
   753 ac_subst_files=''
   754       ac_precious_vars='build_alias
   755 host_alias
   756 target_alias
   757 CC
   758 CFLAGS
   759 LDFLAGS
   760 LIBS
   761 CPPFLAGS
   762 CPP
   763 PKG_CONFIG
   764 LIBPNG_CFLAGS
   765 LIBPNG_LIBS
   766 GTK_CFLAGS
   767 GTK_LIBS
   768 ESOUND_CFLAGS
   769 ESOUND_LIBS'
   772 # Initialize some variables set by options.
   773 ac_init_help=
   774 ac_init_version=false
   775 # The variables have the same names as the options, with
   776 # dashes changed to underlines.
   777 cache_file=/dev/null
   778 exec_prefix=NONE
   779 no_create=
   780 no_recursion=
   781 prefix=NONE
   782 program_prefix=NONE
   783 program_suffix=NONE
   784 program_transform_name=s,x,x,
   785 silent=
   786 site=
   787 srcdir=
   788 verbose=
   789 x_includes=NONE
   790 x_libraries=NONE
   792 # Installation directory options.
   793 # These are left unexpanded so users can "make install exec_prefix=/foo"
   794 # and all the variables that are supposed to be based on exec_prefix
   795 # by default will actually change.
   796 # Use braces instead of parens because sh, perl, etc. also accept them.
   797 # (The list follows the same order as the GNU Coding Standards.)
   798 bindir='${exec_prefix}/bin'
   799 sbindir='${exec_prefix}/sbin'
   800 libexecdir='${exec_prefix}/libexec'
   801 datarootdir='${prefix}/share'
   802 datadir='${datarootdir}'
   803 sysconfdir='${prefix}/etc'
   804 sharedstatedir='${prefix}/com'
   805 localstatedir='${prefix}/var'
   806 includedir='${prefix}/include'
   807 oldincludedir='/usr/include'
   808 docdir='${datarootdir}/doc/${PACKAGE}'
   809 infodir='${datarootdir}/info'
   810 htmldir='${docdir}'
   811 dvidir='${docdir}'
   812 pdfdir='${docdir}'
   813 psdir='${docdir}'
   814 libdir='${exec_prefix}/lib'
   815 localedir='${datarootdir}/locale'
   816 mandir='${datarootdir}/man'
   818 ac_prev=
   819 ac_dashdash=
   820 for ac_option
   821 do
   822   # If the previous option needs an argument, assign it.
   823   if test -n "$ac_prev"; then
   824     eval $ac_prev=\$ac_option
   825     ac_prev=
   826     continue
   827   fi
   829   case $ac_option in
   830   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   831   *)	ac_optarg=yes ;;
   832   esac
   834   # Accept the important Cygnus configure options, so we can diagnose typos.
   836   case $ac_dashdash$ac_option in
   837   --)
   838     ac_dashdash=yes ;;
   840   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   841     ac_prev=bindir ;;
   842   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   843     bindir=$ac_optarg ;;
   845   -build | --build | --buil | --bui | --bu)
   846     ac_prev=build_alias ;;
   847   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   848     build_alias=$ac_optarg ;;
   850   -cache-file | --cache-file | --cache-fil | --cache-fi \
   851   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   852     ac_prev=cache_file ;;
   853   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   854   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   855     cache_file=$ac_optarg ;;
   857   --config-cache | -C)
   858     cache_file=config.cache ;;
   860   -datadir | --datadir | --datadi | --datad)
   861     ac_prev=datadir ;;
   862   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   863     datadir=$ac_optarg ;;
   865   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   866   | --dataroo | --dataro | --datar)
   867     ac_prev=datarootdir ;;
   868   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   869   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   870     datarootdir=$ac_optarg ;;
   872   -disable-* | --disable-*)
   873     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   874     # Reject names that are not valid shell variable names.
   875     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   876       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   877    { (exit 1); exit 1; }; }
   878     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   879     eval enable_$ac_feature=no ;;
   881   -docdir | --docdir | --docdi | --doc | --do)
   882     ac_prev=docdir ;;
   883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   884     docdir=$ac_optarg ;;
   886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   887     ac_prev=dvidir ;;
   888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   889     dvidir=$ac_optarg ;;
   891   -enable-* | --enable-*)
   892     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   893     # Reject names that are not valid shell variable names.
   894     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   895       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   896    { (exit 1); exit 1; }; }
   897     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   898     eval enable_$ac_feature=\$ac_optarg ;;
   900   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   901   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   902   | --exec | --exe | --ex)
   903     ac_prev=exec_prefix ;;
   904   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   905   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   906   | --exec=* | --exe=* | --ex=*)
   907     exec_prefix=$ac_optarg ;;
   909   -gas | --gas | --ga | --g)
   910     # Obsolete; use --with-gas.
   911     with_gas=yes ;;
   913   -help | --help | --hel | --he | -h)
   914     ac_init_help=long ;;
   915   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   916     ac_init_help=recursive ;;
   917   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   918     ac_init_help=short ;;
   920   -host | --host | --hos | --ho)
   921     ac_prev=host_alias ;;
   922   -host=* | --host=* | --hos=* | --ho=*)
   923     host_alias=$ac_optarg ;;
   925   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   926     ac_prev=htmldir ;;
   927   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   928   | --ht=*)
   929     htmldir=$ac_optarg ;;
   931   -includedir | --includedir | --includedi | --included | --include \
   932   | --includ | --inclu | --incl | --inc)
   933     ac_prev=includedir ;;
   934   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   935   | --includ=* | --inclu=* | --incl=* | --inc=*)
   936     includedir=$ac_optarg ;;
   938   -infodir | --infodir | --infodi | --infod | --info | --inf)
   939     ac_prev=infodir ;;
   940   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   941     infodir=$ac_optarg ;;
   943   -libdir | --libdir | --libdi | --libd)
   944     ac_prev=libdir ;;
   945   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   946     libdir=$ac_optarg ;;
   948   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   949   | --libexe | --libex | --libe)
   950     ac_prev=libexecdir ;;
   951   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   952   | --libexe=* | --libex=* | --libe=*)
   953     libexecdir=$ac_optarg ;;
   955   -localedir | --localedir | --localedi | --localed | --locale)
   956     ac_prev=localedir ;;
   957   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   958     localedir=$ac_optarg ;;
   960   -localstatedir | --localstatedir | --localstatedi | --localstated \
   961   | --localstate | --localstat | --localsta | --localst | --locals)
   962     ac_prev=localstatedir ;;
   963   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   964   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   965     localstatedir=$ac_optarg ;;
   967   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   968     ac_prev=mandir ;;
   969   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   970     mandir=$ac_optarg ;;
   972   -nfp | --nfp | --nf)
   973     # Obsolete; use --without-fp.
   974     with_fp=no ;;
   976   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   977   | --no-cr | --no-c | -n)
   978     no_create=yes ;;
   980   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   981   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   982     no_recursion=yes ;;
   984   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   985   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   986   | --oldin | --oldi | --old | --ol | --o)
   987     ac_prev=oldincludedir ;;
   988   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   989   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   990   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   991     oldincludedir=$ac_optarg ;;
   993   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   994     ac_prev=prefix ;;
   995   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   996     prefix=$ac_optarg ;;
   998   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   999   | --program-pre | --program-pr | --program-p)
  1000     ac_prev=program_prefix ;;
  1001   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1002   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1003     program_prefix=$ac_optarg ;;
  1005   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1006   | --program-suf | --program-su | --program-s)
  1007     ac_prev=program_suffix ;;
  1008   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1009   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1010     program_suffix=$ac_optarg ;;
  1012   -program-transform-name | --program-transform-name \
  1013   | --program-transform-nam | --program-transform-na \
  1014   | --program-transform-n | --program-transform- \
  1015   | --program-transform | --program-transfor \
  1016   | --program-transfo | --program-transf \
  1017   | --program-trans | --program-tran \
  1018   | --progr-tra | --program-tr | --program-t)
  1019     ac_prev=program_transform_name ;;
  1020   -program-transform-name=* | --program-transform-name=* \
  1021   | --program-transform-nam=* | --program-transform-na=* \
  1022   | --program-transform-n=* | --program-transform-=* \
  1023   | --program-transform=* | --program-transfor=* \
  1024   | --program-transfo=* | --program-transf=* \
  1025   | --program-trans=* | --program-tran=* \
  1026   | --progr-tra=* | --program-tr=* | --program-t=*)
  1027     program_transform_name=$ac_optarg ;;
  1029   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1030     ac_prev=pdfdir ;;
  1031   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1032     pdfdir=$ac_optarg ;;
  1034   -psdir | --psdir | --psdi | --psd | --ps)
  1035     ac_prev=psdir ;;
  1036   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1037     psdir=$ac_optarg ;;
  1039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1040   | -silent | --silent | --silen | --sile | --sil)
  1041     silent=yes ;;
  1043   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1044     ac_prev=sbindir ;;
  1045   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1046   | --sbi=* | --sb=*)
  1047     sbindir=$ac_optarg ;;
  1049   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1050   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1051   | --sharedst | --shareds | --shared | --share | --shar \
  1052   | --sha | --sh)
  1053     ac_prev=sharedstatedir ;;
  1054   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1055   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1056   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1057   | --sha=* | --sh=*)
  1058     sharedstatedir=$ac_optarg ;;
  1060   -site | --site | --sit)
  1061     ac_prev=site ;;
  1062   -site=* | --site=* | --sit=*)
  1063     site=$ac_optarg ;;
  1065   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1066     ac_prev=srcdir ;;
  1067   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1068     srcdir=$ac_optarg ;;
  1070   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1071   | --syscon | --sysco | --sysc | --sys | --sy)
  1072     ac_prev=sysconfdir ;;
  1073   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1074   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1075     sysconfdir=$ac_optarg ;;
  1077   -target | --target | --targe | --targ | --tar | --ta | --t)
  1078     ac_prev=target_alias ;;
  1079   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1080     target_alias=$ac_optarg ;;
  1082   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1083     verbose=yes ;;
  1085   -version | --version | --versio | --versi | --vers | -V)
  1086     ac_init_version=: ;;
  1088   -with-* | --with-*)
  1089     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1090     # Reject names that are not valid shell variable names.
  1091     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1093    { (exit 1); exit 1; }; }
  1094     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1095     eval with_$ac_package=\$ac_optarg ;;
  1097   -without-* | --without-*)
  1098     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1099     # Reject names that are not valid shell variable names.
  1100     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1101       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1102    { (exit 1); exit 1; }; }
  1103     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1104     eval with_$ac_package=no ;;
  1106   --x)
  1107     # Obsolete; use --with-x.
  1108     with_x=yes ;;
  1110   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1111   | --x-incl | --x-inc | --x-in | --x-i)
  1112     ac_prev=x_includes ;;
  1113   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1114   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1115     x_includes=$ac_optarg ;;
  1117   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1118   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1119     ac_prev=x_libraries ;;
  1120   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1121   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1122     x_libraries=$ac_optarg ;;
  1124   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1125 Try \`$0 --help' for more information." >&2
  1126    { (exit 1); exit 1; }; }
  1127     ;;
  1129   *=*)
  1130     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1131     # Reject names that are not valid shell variable names.
  1132     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1133       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1134    { (exit 1); exit 1; }; }
  1135     eval $ac_envvar=\$ac_optarg
  1136     export $ac_envvar ;;
  1138   *)
  1139     # FIXME: should be removed in autoconf 3.0.
  1140     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1141     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1142       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1143     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1144     ;;
  1146   esac
  1147 done
  1149 if test -n "$ac_prev"; then
  1150   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1151   { echo "$as_me: error: missing argument to $ac_option" >&2
  1152    { (exit 1); exit 1; }; }
  1153 fi
  1155 # Be sure to have absolute directory names.
  1156 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1157 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1158 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1159 		libdir localedir mandir
  1160 do
  1161   eval ac_val=\$$ac_var
  1162   case $ac_val in
  1163     [\\/$]* | ?:[\\/]* )  continue;;
  1164     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1165   esac
  1166   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1167    { (exit 1); exit 1; }; }
  1168 done
  1170 # There might be people who depend on the old broken behavior: `$host'
  1171 # used to hold the argument of --host etc.
  1172 # FIXME: To remove some day.
  1173 build=$build_alias
  1174 host=$host_alias
  1175 target=$target_alias
  1177 # FIXME: To remove some day.
  1178 if test "x$host_alias" != x; then
  1179   if test "x$build_alias" = x; then
  1180     cross_compiling=maybe
  1181     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1182     If a cross compiler is detected then cross compile mode will be used." >&2
  1183   elif test "x$build_alias" != "x$host_alias"; then
  1184     cross_compiling=yes
  1185   fi
  1186 fi
  1188 ac_tool_prefix=
  1189 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1191 test "$silent" = yes && exec 6>/dev/null
  1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1195 ac_ls_di=`ls -di .` &&
  1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1197   { echo "$as_me: error: Working directory cannot be determined" >&2
  1198    { (exit 1); exit 1; }; }
  1199 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1200   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1201    { (exit 1); exit 1; }; }
  1204 # Find the source files, if location was not specified.
  1205 if test -z "$srcdir"; then
  1206   ac_srcdir_defaulted=yes
  1207   # Try the directory containing this script, then the parent directory.
  1208   ac_confdir=`$as_dirname -- "$0" ||
  1209 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1210 	 X"$0" : 'X\(//\)[^/]' \| \
  1211 	 X"$0" : 'X\(//\)$' \| \
  1212 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1213 echo X"$0" |
  1214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1215 	    s//\1/
  1218 	  /^X\(\/\/\)[^/].*/{
  1219 	    s//\1/
  1222 	  /^X\(\/\/\)$/{
  1223 	    s//\1/
  1226 	  /^X\(\/\).*/{
  1227 	    s//\1/
  1230 	  s/.*/./; q'`
  1231   srcdir=$ac_confdir
  1232   if test ! -r "$srcdir/$ac_unique_file"; then
  1233     srcdir=..
  1234   fi
  1235 else
  1236   ac_srcdir_defaulted=no
  1237 fi
  1238 if test ! -r "$srcdir/$ac_unique_file"; then
  1239   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1240   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1241    { (exit 1); exit 1; }; }
  1242 fi
  1243 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1244 ac_abs_confdir=`(
  1245 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1246    { (exit 1); exit 1; }; }
  1247 	pwd)`
  1248 # When building in place, set srcdir=.
  1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1250   srcdir=.
  1251 fi
  1252 # Remove unnecessary trailing slashes from srcdir.
  1253 # Double slashes in file names in object file debugging info
  1254 # mess up M-x gdb in Emacs.
  1255 case $srcdir in
  1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1257 esac
  1258 for ac_var in $ac_precious_vars; do
  1259   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1260   eval ac_env_${ac_var}_value=\$${ac_var}
  1261   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1262   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1263 done
  1266 # Report the --help message.
  1268 if test "$ac_init_help" = "long"; then
  1269   # Omit some internal or obsolete options to make the list less imposing.
  1270   # This message is too long to be a string in the A/UX 3.1 sh.
  1271   cat <<_ACEOF
  1272 \`configure' configures this package to adapt to many kinds of systems.
  1274 Usage: $0 [OPTION]... [VAR=VALUE]...
  1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1277 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1279 Defaults for the options are specified in brackets.
  1281 Configuration:
  1282   -h, --help              display this help and exit
  1283       --help=short        display options specific to this package
  1284       --help=recursive    display the short help of all the included packages
  1285   -V, --version           display version information and exit
  1286   -q, --quiet, --silent   do not print \`checking...' messages
  1287       --cache-file=FILE   cache test results in FILE [disabled]
  1288   -C, --config-cache      alias for \`--cache-file=config.cache'
  1289   -n, --no-create         do not create output files
  1290       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1292 Installation directories:
  1293   --prefix=PREFIX         install architecture-independent files in PREFIX
  1294 			  [$ac_default_prefix]
  1295   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1296 			  [PREFIX]
  1298 By default, \`make install' will install all the files in
  1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1301 for instance \`--prefix=\$HOME'.
  1303 For better control, use the options below.
  1305 Fine tuning of the installation directories:
  1306   --bindir=DIR           user executables [EPREFIX/bin]
  1307   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1308   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1309   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1310   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1311   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1312   --libdir=DIR           object code libraries [EPREFIX/lib]
  1313   --includedir=DIR       C header files [PREFIX/include]
  1314   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1315   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1316   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1317   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1318   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1319   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1320   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1321   --htmldir=DIR          html documentation [DOCDIR]
  1322   --dvidir=DIR           dvi documentation [DOCDIR]
  1323   --pdfdir=DIR           pdf documentation [DOCDIR]
  1324   --psdir=DIR            ps documentation [DOCDIR]
  1325 _ACEOF
  1327   cat <<\_ACEOF
  1329 Program names:
  1330   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1331   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1332   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1334 System types:
  1335   --build=BUILD     configure for building on BUILD [guessed]
  1336   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1337 _ACEOF
  1338 fi
  1340 if test -n "$ac_init_help"; then
  1342   cat <<\_ACEOF
  1344 Optional Features:
  1345   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1346   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1347   --enable-maintainer-mode enable make rules and dependencies not useful
  1348                           (and sometimes confusing) to the casual installer
  1349   --disable-dependency-tracking Speeds up one-time builds
  1350   --enable-dependency-tracking  Do not reject slow dependency extractors
  1351   --enable-trace          Enable generation of IO traces (warning: hurts
  1352                           performance)
  1353   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1354                           performance)
  1356 Some influential environment variables:
  1357   CC          C compiler command
  1358   CFLAGS      C compiler flags
  1359   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1360               nonstandard directory <lib dir>
  1361   LIBS        libraries to pass to the linker, e.g. -l<library>
  1362   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1363               you have headers in a nonstandard directory <include dir>
  1364   CPP         C preprocessor
  1365   PKG_CONFIG  path to pkg-config utility
  1366   LIBPNG_CFLAGS
  1367               C compiler flags for LIBPNG, overriding pkg-config
  1368   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1369   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1370   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1371   ESOUND_CFLAGS
  1372               C compiler flags for ESOUND, overriding pkg-config
  1373   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1375 Use these variables to override the choices made by `configure' or to help
  1376 it to find libraries and programs with nonstandard names/locations.
  1378 _ACEOF
  1379 ac_status=$?
  1380 fi
  1382 if test "$ac_init_help" = "recursive"; then
  1383   # If there are subdirs, report their specific --help.
  1384   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1385     test -d "$ac_dir" || continue
  1386     ac_builddir=.
  1388 case "$ac_dir" in
  1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1390 *)
  1391   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1392   # A ".." for each directory in $ac_dir_suffix.
  1393   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1394   case $ac_top_builddir_sub in
  1395   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1396   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1397   esac ;;
  1398 esac
  1399 ac_abs_top_builddir=$ac_pwd
  1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1401 # for backward compatibility:
  1402 ac_top_builddir=$ac_top_build_prefix
  1404 case $srcdir in
  1405   .)  # We are building in place.
  1406     ac_srcdir=.
  1407     ac_top_srcdir=$ac_top_builddir_sub
  1408     ac_abs_top_srcdir=$ac_pwd ;;
  1409   [\\/]* | ?:[\\/]* )  # Absolute name.
  1410     ac_srcdir=$srcdir$ac_dir_suffix;
  1411     ac_top_srcdir=$srcdir
  1412     ac_abs_top_srcdir=$srcdir ;;
  1413   *) # Relative name.
  1414     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1415     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1416     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1417 esac
  1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1420     cd "$ac_dir" || { ac_status=$?; continue; }
  1421     # Check for guested configure.
  1422     if test -f "$ac_srcdir/configure.gnu"; then
  1423       echo &&
  1424       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1425     elif test -f "$ac_srcdir/configure"; then
  1426       echo &&
  1427       $SHELL "$ac_srcdir/configure" --help=recursive
  1428     else
  1429       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1430     fi || ac_status=$?
  1431     cd "$ac_pwd" || { ac_status=$?; break; }
  1432   done
  1433 fi
  1435 test -n "$ac_init_help" && exit $ac_status
  1436 if $ac_init_version; then
  1437   cat <<\_ACEOF
  1438 configure
  1439 generated by GNU Autoconf 2.61
  1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1443 This configure script is free software; the Free Software Foundation
  1444 gives unlimited permission to copy, distribute and modify it.
  1445 _ACEOF
  1446   exit
  1447 fi
  1448 cat >config.log <<_ACEOF
  1449 This file contains any messages produced by compilers while
  1450 running configure, to aid debugging if configure makes a mistake.
  1452 It was created by $as_me, which was
  1453 generated by GNU Autoconf 2.61.  Invocation command line was
  1455   $ $0 $@
  1457 _ACEOF
  1458 exec 5>>config.log
  1460 cat <<_ASUNAME
  1461 ## --------- ##
  1462 ## Platform. ##
  1463 ## --------- ##
  1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1472 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1474 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1475 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1477 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1478 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1479 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1480 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1482 _ASUNAME
  1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1485 for as_dir in $PATH
  1486 do
  1487   IFS=$as_save_IFS
  1488   test -z "$as_dir" && as_dir=.
  1489   echo "PATH: $as_dir"
  1490 done
  1491 IFS=$as_save_IFS
  1493 } >&5
  1495 cat >&5 <<_ACEOF
  1498 ## ----------- ##
  1499 ## Core tests. ##
  1500 ## ----------- ##
  1502 _ACEOF
  1505 # Keep a trace of the command line.
  1506 # Strip out --no-create and --no-recursion so they do not pile up.
  1507 # Strip out --silent because we don't want to record it for future runs.
  1508 # Also quote any args containing shell meta-characters.
  1509 # Make two passes to allow for proper duplicate-argument suppression.
  1510 ac_configure_args=
  1511 ac_configure_args0=
  1512 ac_configure_args1=
  1513 ac_must_keep_next=false
  1514 for ac_pass in 1 2
  1515 do
  1516   for ac_arg
  1517   do
  1518     case $ac_arg in
  1519     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1520     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1521     | -silent | --silent | --silen | --sile | --sil)
  1522       continue ;;
  1523     *\'*)
  1524       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1525     esac
  1526     case $ac_pass in
  1527     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1528     2)
  1529       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1530       if test $ac_must_keep_next = true; then
  1531 	ac_must_keep_next=false # Got value, back to normal.
  1532       else
  1533 	case $ac_arg in
  1534 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1535 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1536 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1537 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1538 	    case "$ac_configure_args0 " in
  1539 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1540 	    esac
  1541 	    ;;
  1542 	  -* ) ac_must_keep_next=true ;;
  1543 	esac
  1544       fi
  1545       ac_configure_args="$ac_configure_args '$ac_arg'"
  1546       ;;
  1547     esac
  1548   done
  1549 done
  1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1553 # When interrupted or exit'd, cleanup temporary files, and complete
  1554 # config.log.  We remove comments because anyway the quotes in there
  1555 # would cause problems or look ugly.
  1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1558 trap 'exit_status=$?
  1559   # Save into config.log some information that might help in debugging.
  1561     echo
  1563     cat <<\_ASBOX
  1564 ## ---------------- ##
  1565 ## Cache variables. ##
  1566 ## ---------------- ##
  1567 _ASBOX
  1568     echo
  1569     # The following way of writing the cache mishandles newlines in values,
  1571   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1572     eval ac_val=\$$ac_var
  1573     case $ac_val in #(
  1574     *${as_nl}*)
  1575       case $ac_var in #(
  1576       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1578       esac
  1579       case $ac_var in #(
  1580       _ | IFS | as_nl) ;; #(
  1581       *) $as_unset $ac_var ;;
  1582       esac ;;
  1583     esac
  1584   done
  1585   (set) 2>&1 |
  1586     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1587     *${as_nl}ac_space=\ *)
  1588       sed -n \
  1589 	"s/'\''/'\''\\\\'\'''\''/g;
  1590 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1591       ;; #(
  1592     *)
  1593       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1594       ;;
  1595     esac |
  1596     sort
  1598     echo
  1600     cat <<\_ASBOX
  1601 ## ----------------- ##
  1602 ## Output variables. ##
  1603 ## ----------------- ##
  1604 _ASBOX
  1605     echo
  1606     for ac_var in $ac_subst_vars
  1607     do
  1608       eval ac_val=\$$ac_var
  1609       case $ac_val in
  1610       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1611       esac
  1612       echo "$ac_var='\''$ac_val'\''"
  1613     done | sort
  1614     echo
  1616     if test -n "$ac_subst_files"; then
  1617       cat <<\_ASBOX
  1618 ## ------------------- ##
  1619 ## File substitutions. ##
  1620 ## ------------------- ##
  1621 _ASBOX
  1622       echo
  1623       for ac_var in $ac_subst_files
  1624       do
  1625 	eval ac_val=\$$ac_var
  1626 	case $ac_val in
  1627 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1628 	esac
  1629 	echo "$ac_var='\''$ac_val'\''"
  1630       done | sort
  1631       echo
  1632     fi
  1634     if test -s confdefs.h; then
  1635       cat <<\_ASBOX
  1636 ## ----------- ##
  1637 ## confdefs.h. ##
  1638 ## ----------- ##
  1639 _ASBOX
  1640       echo
  1641       cat confdefs.h
  1642       echo
  1643     fi
  1644     test "$ac_signal" != 0 &&
  1645       echo "$as_me: caught signal $ac_signal"
  1646     echo "$as_me: exit $exit_status"
  1647   } >&5
  1648   rm -f core *.core core.conftest.* &&
  1649     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1650     exit $exit_status
  1651 ' 0
  1652 for ac_signal in 1 2 13 15; do
  1653   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1654 done
  1655 ac_signal=0
  1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1658 rm -f -r conftest* confdefs.h
  1660 # Predefined preprocessor variables.
  1662 cat >>confdefs.h <<_ACEOF
  1663 #define PACKAGE_NAME "$PACKAGE_NAME"
  1664 _ACEOF
  1667 cat >>confdefs.h <<_ACEOF
  1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1669 _ACEOF
  1672 cat >>confdefs.h <<_ACEOF
  1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1674 _ACEOF
  1677 cat >>confdefs.h <<_ACEOF
  1678 #define PACKAGE_STRING "$PACKAGE_STRING"
  1679 _ACEOF
  1682 cat >>confdefs.h <<_ACEOF
  1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1684 _ACEOF
  1687 # Let the site file select an alternate cache file if it wants to.
  1688 # Prefer explicitly selected file to automatically selected ones.
  1689 if test -n "$CONFIG_SITE"; then
  1690   set x "$CONFIG_SITE"
  1691 elif test "x$prefix" != xNONE; then
  1692   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1693 else
  1694   set x "$ac_default_prefix/share/config.site" \
  1695 	"$ac_default_prefix/etc/config.site"
  1696 fi
  1697 shift
  1698 for ac_site_file
  1699 do
  1700   if test -r "$ac_site_file"; then
  1701     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1702 echo "$as_me: loading site script $ac_site_file" >&6;}
  1703     sed 's/^/| /' "$ac_site_file" >&5
  1704     . "$ac_site_file"
  1705   fi
  1706 done
  1708 if test -r "$cache_file"; then
  1709   # Some versions of bash will fail to source /dev/null (special
  1710   # files actually), so we avoid doing that.
  1711   if test -f "$cache_file"; then
  1712     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1713 echo "$as_me: loading cache $cache_file" >&6;}
  1714     case $cache_file in
  1715       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1716       *)                      . "./$cache_file";;
  1717     esac
  1718   fi
  1719 else
  1720   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1721 echo "$as_me: creating cache $cache_file" >&6;}
  1722   >$cache_file
  1723 fi
  1725 # Check that the precious variables saved in the cache have kept the same
  1726 # value.
  1727 ac_cache_corrupted=false
  1728 for ac_var in $ac_precious_vars; do
  1729   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1730   eval ac_new_set=\$ac_env_${ac_var}_set
  1731   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1732   eval ac_new_val=\$ac_env_${ac_var}_value
  1733   case $ac_old_set,$ac_new_set in
  1734     set,)
  1735       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1737       ac_cache_corrupted=: ;;
  1738     ,set)
  1739       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1741       ac_cache_corrupted=: ;;
  1742     ,);;
  1743     *)
  1744       if test "x$ac_old_val" != "x$ac_new_val"; then
  1745 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1747 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1748 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1749 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1750 echo "$as_me:   current value: $ac_new_val" >&2;}
  1751 	ac_cache_corrupted=:
  1752       fi;;
  1753   esac
  1754   # Pass precious variables to config.status.
  1755   if test "$ac_new_set" = set; then
  1756     case $ac_new_val in
  1757     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1758     *) ac_arg=$ac_var=$ac_new_val ;;
  1759     esac
  1760     case " $ac_configure_args " in
  1761       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1762       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1763     esac
  1764   fi
  1765 done
  1766 if $ac_cache_corrupted; then
  1767   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1769   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1771    { (exit 1); exit 1; }; }
  1772 fi
  1790 ac_ext=c
  1791 ac_cpp='$CPP $CPPFLAGS'
  1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1797 am__api_version="1.7"
  1798 ac_aux_dir=
  1799 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1800   if test -f "$ac_dir/install-sh"; then
  1801     ac_aux_dir=$ac_dir
  1802     ac_install_sh="$ac_aux_dir/install-sh -c"
  1803     break
  1804   elif test -f "$ac_dir/install.sh"; then
  1805     ac_aux_dir=$ac_dir
  1806     ac_install_sh="$ac_aux_dir/install.sh -c"
  1807     break
  1808   elif test -f "$ac_dir/shtool"; then
  1809     ac_aux_dir=$ac_dir
  1810     ac_install_sh="$ac_aux_dir/shtool install -c"
  1811     break
  1812   fi
  1813 done
  1814 if test -z "$ac_aux_dir"; then
  1815   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1816 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1817    { (exit 1); exit 1; }; }
  1818 fi
  1820 # These three variables are undocumented and unsupported,
  1821 # and are intended to be withdrawn in a future Autoconf release.
  1822 # They can cause serious problems if a builder's source tree is in a directory
  1823 # whose full name contains unusual characters.
  1824 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1825 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1826 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1829 # Find a good install program.  We prefer a C program (faster),
  1830 # so one script is as good as another.  But avoid the broken or
  1831 # incompatible versions:
  1832 # SysV /etc/install, /usr/sbin/install
  1833 # SunOS /usr/etc/install
  1834 # IRIX /sbin/install
  1835 # AIX /bin/install
  1836 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1840 # OS/2's system install, which has a completely different semantic
  1841 # ./install, which can be erroneously created by make from ./install.sh.
  1842 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1843 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1844 if test -z "$INSTALL"; then
  1845 if test "${ac_cv_path_install+set}" = set; then
  1846   echo $ECHO_N "(cached) $ECHO_C" >&6
  1847 else
  1848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1849 for as_dir in $PATH
  1850 do
  1851   IFS=$as_save_IFS
  1852   test -z "$as_dir" && as_dir=.
  1853   # Account for people who put trailing slashes in PATH elements.
  1854 case $as_dir/ in
  1855   ./ | .// | /cC/* | \
  1856   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1857   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1858   /usr/ucb/* ) ;;
  1859   *)
  1860     # OSF1 and SCO ODT 3.0 have their own names for install.
  1861     # Don't use installbsd from OSF since it installs stuff as root
  1862     # by default.
  1863     for ac_prog in ginstall scoinst install; do
  1864       for ac_exec_ext in '' $ac_executable_extensions; do
  1865 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1866 	  if test $ac_prog = install &&
  1867 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1868 	    # AIX install.  It has an incompatible calling convention.
  1870 	  elif test $ac_prog = install &&
  1871 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872 	    # program-specific install script used by HP pwplus--don't use.
  1874 	  else
  1875 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1876 	    break 3
  1877 	  fi
  1878 	fi
  1879       done
  1880     done
  1881     ;;
  1882 esac
  1883 done
  1884 IFS=$as_save_IFS
  1887 fi
  1888   if test "${ac_cv_path_install+set}" = set; then
  1889     INSTALL=$ac_cv_path_install
  1890   else
  1891     # As a last resort, use the slow shell script.  Don't cache a
  1892     # value for INSTALL within a source directory, because that will
  1893     # break other packages using the cache if that directory is
  1894     # removed, or if the value is a relative name.
  1895     INSTALL=$ac_install_sh
  1896   fi
  1897 fi
  1898 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1899 echo "${ECHO_T}$INSTALL" >&6; }
  1901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1902 # It thinks the first close brace ends the variable substitution.
  1903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1909 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1910 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1911 # Just in case
  1912 sleep 1
  1913 echo timestamp > conftest.file
  1914 # Do `set' in a subshell so we don't clobber the current shell's
  1915 # arguments.  Must try -L first in case configure is actually a
  1916 # symlink; some systems play weird games with the mod time of symlinks
  1917 # (eg FreeBSD returns the mod time of the symlink's containing
  1918 # directory).
  1919 if (
  1920    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1921    if test "$*" = "X"; then
  1922       # -L didn't work.
  1923       set X `ls -t $srcdir/configure conftest.file`
  1924    fi
  1925    rm -f conftest.file
  1926    if test "$*" != "X $srcdir/configure conftest.file" \
  1927       && test "$*" != "X conftest.file $srcdir/configure"; then
  1929       # If neither matched, then we have a broken ls.  This can happen
  1930       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1931       # broken ls alias from the environment.  This has actually
  1932       # happened.  Such a system could not be considered "sane".
  1933       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1934 alias in your environment" >&5
  1935 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1936 alias in your environment" >&2;}
  1937    { (exit 1); exit 1; }; }
  1938    fi
  1940    test "$2" = conftest.file
  1942 then
  1943    # Ok.
  1945 else
  1946    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1947 Check your system clock" >&5
  1948 echo "$as_me: error: newly created file is older than distributed files!
  1949 Check your system clock" >&2;}
  1950    { (exit 1); exit 1; }; }
  1951 fi
  1952 { echo "$as_me:$LINENO: result: yes" >&5
  1953 echo "${ECHO_T}yes" >&6; }
  1954 test "$program_prefix" != NONE &&
  1955   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1956 # Use a double $ so make ignores it.
  1957 test "$program_suffix" != NONE &&
  1958   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1959 # Double any \ or $.  echo might interpret backslashes.
  1960 # By default was `s,x,x', remove it if useless.
  1961 cat <<\_ACEOF >conftest.sed
  1962 s/[\\$]/&&/g;s/;s,x,x,$//
  1963 _ACEOF
  1964 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1965 rm -f conftest.sed
  1968 # expand $ac_aux_dir to an absolute path
  1969 am_aux_dir=`cd $ac_aux_dir && pwd`
  1971 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1972 # Use eval to expand $SHELL
  1973 if eval "$MISSING --run true"; then
  1974   am_missing_run="$MISSING --run "
  1975 else
  1976   am_missing_run=
  1977   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1978 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1979 fi
  1981 for ac_prog in gawk mawk nawk awk
  1982 do
  1983   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1984 set dummy $ac_prog; ac_word=$2
  1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1987 if test "${ac_cv_prog_AWK+set}" = set; then
  1988   echo $ECHO_N "(cached) $ECHO_C" >&6
  1989 else
  1990   if test -n "$AWK"; then
  1991   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1992 else
  1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1994 for as_dir in $PATH
  1995 do
  1996   IFS=$as_save_IFS
  1997   test -z "$as_dir" && as_dir=.
  1998   for ac_exec_ext in '' $ac_executable_extensions; do
  1999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2000     ac_cv_prog_AWK="$ac_prog"
  2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2002     break 2
  2003   fi
  2004 done
  2005 done
  2006 IFS=$as_save_IFS
  2008 fi
  2009 fi
  2010 AWK=$ac_cv_prog_AWK
  2011 if test -n "$AWK"; then
  2012   { echo "$as_me:$LINENO: result: $AWK" >&5
  2013 echo "${ECHO_T}$AWK" >&6; }
  2014 else
  2015   { echo "$as_me:$LINENO: result: no" >&5
  2016 echo "${ECHO_T}no" >&6; }
  2017 fi
  2020   test -n "$AWK" && break
  2021 done
  2023 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2024 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2025 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2026 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2027   echo $ECHO_N "(cached) $ECHO_C" >&6
  2028 else
  2029   cat >conftest.make <<\_ACEOF
  2030 SHELL = /bin/sh
  2031 all:
  2032 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2033 _ACEOF
  2034 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2035 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2036   *@@@%%%=?*=@@@%%%*)
  2037     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2038   *)
  2039     eval ac_cv_prog_make_${ac_make}_set=no;;
  2040 esac
  2041 rm -f conftest.make
  2042 fi
  2043 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2044   { echo "$as_me:$LINENO: result: yes" >&5
  2045 echo "${ECHO_T}yes" >&6; }
  2046   SET_MAKE=
  2047 else
  2048   { echo "$as_me:$LINENO: result: no" >&5
  2049 echo "${ECHO_T}no" >&6; }
  2050   SET_MAKE="MAKE=${MAKE-make}"
  2051 fi
  2053 rm -rf .tst 2>/dev/null
  2054 mkdir .tst 2>/dev/null
  2055 if test -d .tst; then
  2056   am__leading_dot=.
  2057 else
  2058   am__leading_dot=_
  2059 fi
  2060 rmdir .tst 2>/dev/null
  2062  # test to see if srcdir already configured
  2063 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2064    test -f $srcdir/config.status; then
  2065   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2066 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2067    { (exit 1); exit 1; }; }
  2068 fi
  2070 # test whether we have cygpath
  2071 if test -z "$CYGPATH_W"; then
  2072   if (cygpath --version) >/dev/null 2>/dev/null; then
  2073     CYGPATH_W='cygpath -w'
  2074   else
  2075     CYGPATH_W=echo
  2076   fi
  2077 fi
  2080 # Define the identity of the package.
  2081  PACKAGE=lxdream
  2082  VERSION=0.8.1
  2085 cat >>confdefs.h <<_ACEOF
  2086 #define PACKAGE "$PACKAGE"
  2087 _ACEOF
  2090 cat >>confdefs.h <<_ACEOF
  2091 #define VERSION "$VERSION"
  2092 _ACEOF
  2094 # Some tools Automake needs.
  2096 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2099 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2102 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2105 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2108 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2111 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2113 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2115 # Installed binaries are usually stripped using `strip' when the user
  2116 # run `make install-strip'.  However `strip' might not be the right
  2117 # tool to use in cross-compilation environments, therefore Automake
  2118 # will honor the `STRIP' environment variable to overrule this program.
  2119 if test "$cross_compiling" != no; then
  2120   if test -n "$ac_tool_prefix"; then
  2121   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2122 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2125 if test "${ac_cv_prog_STRIP+set}" = set; then
  2126   echo $ECHO_N "(cached) $ECHO_C" >&6
  2127 else
  2128   if test -n "$STRIP"; then
  2129   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2130 else
  2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2132 for as_dir in $PATH
  2133 do
  2134   IFS=$as_save_IFS
  2135   test -z "$as_dir" && as_dir=.
  2136   for ac_exec_ext in '' $ac_executable_extensions; do
  2137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2138     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2140     break 2
  2141   fi
  2142 done
  2143 done
  2144 IFS=$as_save_IFS
  2146 fi
  2147 fi
  2148 STRIP=$ac_cv_prog_STRIP
  2149 if test -n "$STRIP"; then
  2150   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2151 echo "${ECHO_T}$STRIP" >&6; }
  2152 else
  2153   { echo "$as_me:$LINENO: result: no" >&5
  2154 echo "${ECHO_T}no" >&6; }
  2155 fi
  2158 fi
  2159 if test -z "$ac_cv_prog_STRIP"; then
  2160   ac_ct_STRIP=$STRIP
  2161   # Extract the first word of "strip", so it can be a program name with args.
  2162 set dummy strip; ac_word=$2
  2163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2165 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2166   echo $ECHO_N "(cached) $ECHO_C" >&6
  2167 else
  2168   if test -n "$ac_ct_STRIP"; then
  2169   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2170 else
  2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172 for as_dir in $PATH
  2173 do
  2174   IFS=$as_save_IFS
  2175   test -z "$as_dir" && as_dir=.
  2176   for ac_exec_ext in '' $ac_executable_extensions; do
  2177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2178     ac_cv_prog_ac_ct_STRIP="strip"
  2179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180     break 2
  2181   fi
  2182 done
  2183 done
  2184 IFS=$as_save_IFS
  2186 fi
  2187 fi
  2188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2189 if test -n "$ac_ct_STRIP"; then
  2190   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2191 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2192 else
  2193   { echo "$as_me:$LINENO: result: no" >&5
  2194 echo "${ECHO_T}no" >&6; }
  2195 fi
  2197   if test "x$ac_ct_STRIP" = x; then
  2198     STRIP=":"
  2199   else
  2200     case $cross_compiling:$ac_tool_warned in
  2201 yes:)
  2202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2203 whose name does not start with the host triplet.  If you think this
  2204 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2206 whose name does not start with the host triplet.  If you think this
  2207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2208 ac_tool_warned=yes ;;
  2209 esac
  2210     STRIP=$ac_ct_STRIP
  2211   fi
  2212 else
  2213   STRIP="$ac_cv_prog_STRIP"
  2214 fi
  2216 fi
  2217 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2219 # We need awk for the "check" target.  The system "awk" is bad on
  2220 # some platforms.
  2224 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2225 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2226     # Check whether --enable-maintainer-mode was given.
  2227 if test "${enable_maintainer_mode+set}" = set; then
  2228   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2229 else
  2230   USE_MAINTAINER_MODE=no
  2231 fi
  2233   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2234 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2237 if test $USE_MAINTAINER_MODE = yes; then
  2238   MAINTAINER_MODE_TRUE=
  2239   MAINTAINER_MODE_FALSE='#'
  2240 else
  2241   MAINTAINER_MODE_TRUE='#'
  2242   MAINTAINER_MODE_FALSE=
  2243 fi
  2245   MAINT=$MAINTAINER_MODE_TRUE
  2248 ac_config_headers="$ac_config_headers config.h"
  2251 DEPDIR="${am__leading_dot}deps"
  2253 ac_config_commands="$ac_config_commands depfiles"
  2256 am_make=${MAKE-make}
  2257 cat > confinc << 'END'
  2258 am__doit:
  2259 	@echo done
  2260 .PHONY: am__doit
  2261 END
  2262 # If we don't find an include directive, just comment out the code.
  2263 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2264 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2265 am__include="#"
  2266 am__quote=
  2267 _am_result=none
  2268 # First try GNU make style include.
  2269 echo "include confinc" > confmf
  2270 # We grep out `Entering directory' and `Leaving directory'
  2271 # messages which can occur if `w' ends up in MAKEFLAGS.
  2272 # In particular we don't look at `^make:' because GNU make might
  2273 # be invoked under some other name (usually "gmake"), in which
  2274 # case it prints its new name instead of `make'.
  2275 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2276    am__include=include
  2277    am__quote=
  2278    _am_result=GNU
  2279 fi
  2280 # Now try BSD make style include.
  2281 if test "$am__include" = "#"; then
  2282    echo '.include "confinc"' > confmf
  2283    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2284       am__include=.include
  2285       am__quote="\""
  2286       _am_result=BSD
  2287    fi
  2288 fi
  2291 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2292 echo "${ECHO_T}$_am_result" >&6; }
  2293 rm -f confinc confmf
  2295 # Check whether --enable-dependency-tracking was given.
  2296 if test "${enable_dependency_tracking+set}" = set; then
  2297   enableval=$enable_dependency_tracking;
  2298 fi
  2300 if test "x$enable_dependency_tracking" != xno; then
  2301   am_depcomp="$ac_aux_dir/depcomp"
  2302   AMDEPBACKSLASH='\'
  2303 fi
  2306 if test "x$enable_dependency_tracking" != xno; then
  2307   AMDEP_TRUE=
  2308   AMDEP_FALSE='#'
  2309 else
  2310   AMDEP_TRUE='#'
  2311   AMDEP_FALSE=
  2312 fi
  2316 ac_ext=c
  2317 ac_cpp='$CPP $CPPFLAGS'
  2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2321 if test -n "$ac_tool_prefix"; then
  2322   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2326 if test "${ac_cv_prog_CC+set}" = set; then
  2327   echo $ECHO_N "(cached) $ECHO_C" >&6
  2328 else
  2329   if test -n "$CC"; then
  2330   ac_cv_prog_CC="$CC" # Let the user override the test.
  2331 else
  2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333 for as_dir in $PATH
  2334 do
  2335   IFS=$as_save_IFS
  2336   test -z "$as_dir" && as_dir=.
  2337   for ac_exec_ext in '' $ac_executable_extensions; do
  2338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2339     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341     break 2
  2342   fi
  2343 done
  2344 done
  2345 IFS=$as_save_IFS
  2347 fi
  2348 fi
  2349 CC=$ac_cv_prog_CC
  2350 if test -n "$CC"; then
  2351   { echo "$as_me:$LINENO: result: $CC" >&5
  2352 echo "${ECHO_T}$CC" >&6; }
  2353 else
  2354   { echo "$as_me:$LINENO: result: no" >&5
  2355 echo "${ECHO_T}no" >&6; }
  2356 fi
  2359 fi
  2360 if test -z "$ac_cv_prog_CC"; then
  2361   ac_ct_CC=$CC
  2362   # Extract the first word of "gcc", so it can be a program name with args.
  2363 set dummy gcc; ac_word=$2
  2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2367   echo $ECHO_N "(cached) $ECHO_C" >&6
  2368 else
  2369   if test -n "$ac_ct_CC"; then
  2370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2371 else
  2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2373 for as_dir in $PATH
  2374 do
  2375   IFS=$as_save_IFS
  2376   test -z "$as_dir" && as_dir=.
  2377   for ac_exec_ext in '' $ac_executable_extensions; do
  2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2379     ac_cv_prog_ac_ct_CC="gcc"
  2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2381     break 2
  2382   fi
  2383 done
  2384 done
  2385 IFS=$as_save_IFS
  2387 fi
  2388 fi
  2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2390 if test -n "$ac_ct_CC"; then
  2391   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2393 else
  2394   { echo "$as_me:$LINENO: result: no" >&5
  2395 echo "${ECHO_T}no" >&6; }
  2396 fi
  2398   if test "x$ac_ct_CC" = x; then
  2399     CC=""
  2400   else
  2401     case $cross_compiling:$ac_tool_warned in
  2402 yes:)
  2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2404 whose name does not start with the host triplet.  If you think this
  2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2407 whose name does not start with the host triplet.  If you think this
  2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2409 ac_tool_warned=yes ;;
  2410 esac
  2411     CC=$ac_ct_CC
  2412   fi
  2413 else
  2414   CC="$ac_cv_prog_CC"
  2415 fi
  2417 if test -z "$CC"; then
  2418           if test -n "$ac_tool_prefix"; then
  2419     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2423 if test "${ac_cv_prog_CC+set}" = set; then
  2424   echo $ECHO_N "(cached) $ECHO_C" >&6
  2425 else
  2426   if test -n "$CC"; then
  2427   ac_cv_prog_CC="$CC" # Let the user override the test.
  2428 else
  2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430 for as_dir in $PATH
  2431 do
  2432   IFS=$as_save_IFS
  2433   test -z "$as_dir" && as_dir=.
  2434   for ac_exec_ext in '' $ac_executable_extensions; do
  2435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2436     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2438     break 2
  2439   fi
  2440 done
  2441 done
  2442 IFS=$as_save_IFS
  2444 fi
  2445 fi
  2446 CC=$ac_cv_prog_CC
  2447 if test -n "$CC"; then
  2448   { echo "$as_me:$LINENO: result: $CC" >&5
  2449 echo "${ECHO_T}$CC" >&6; }
  2450 else
  2451   { echo "$as_me:$LINENO: result: no" >&5
  2452 echo "${ECHO_T}no" >&6; }
  2453 fi
  2456   fi
  2457 fi
  2458 if test -z "$CC"; then
  2459   # Extract the first word of "cc", so it can be a program name with args.
  2460 set dummy cc; ac_word=$2
  2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2463 if test "${ac_cv_prog_CC+set}" = set; then
  2464   echo $ECHO_N "(cached) $ECHO_C" >&6
  2465 else
  2466   if test -n "$CC"; then
  2467   ac_cv_prog_CC="$CC" # Let the user override the test.
  2468 else
  2469   ac_prog_rejected=no
  2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471 for as_dir in $PATH
  2472 do
  2473   IFS=$as_save_IFS
  2474   test -z "$as_dir" && as_dir=.
  2475   for ac_exec_ext in '' $ac_executable_extensions; do
  2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2478        ac_prog_rejected=yes
  2479        continue
  2480      fi
  2481     ac_cv_prog_CC="cc"
  2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2483     break 2
  2484   fi
  2485 done
  2486 done
  2487 IFS=$as_save_IFS
  2489 if test $ac_prog_rejected = yes; then
  2490   # We found a bogon in the path, so make sure we never use it.
  2491   set dummy $ac_cv_prog_CC
  2492   shift
  2493   if test $# != 0; then
  2494     # We chose a different compiler from the bogus one.
  2495     # However, it has the same basename, so the bogon will be chosen
  2496     # first if we set CC to just the basename; use the full file name.
  2497     shift
  2498     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2499   fi
  2500 fi
  2501 fi
  2502 fi
  2503 CC=$ac_cv_prog_CC
  2504 if test -n "$CC"; then
  2505   { echo "$as_me:$LINENO: result: $CC" >&5
  2506 echo "${ECHO_T}$CC" >&6; }
  2507 else
  2508   { echo "$as_me:$LINENO: result: no" >&5
  2509 echo "${ECHO_T}no" >&6; }
  2510 fi
  2513 fi
  2514 if test -z "$CC"; then
  2515   if test -n "$ac_tool_prefix"; then
  2516   for ac_prog in cl.exe
  2517   do
  2518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2522 if test "${ac_cv_prog_CC+set}" = set; then
  2523   echo $ECHO_N "(cached) $ECHO_C" >&6
  2524 else
  2525   if test -n "$CC"; then
  2526   ac_cv_prog_CC="$CC" # Let the user override the test.
  2527 else
  2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2529 for as_dir in $PATH
  2530 do
  2531   IFS=$as_save_IFS
  2532   test -z "$as_dir" && as_dir=.
  2533   for ac_exec_ext in '' $ac_executable_extensions; do
  2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2535     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537     break 2
  2538   fi
  2539 done
  2540 done
  2541 IFS=$as_save_IFS
  2543 fi
  2544 fi
  2545 CC=$ac_cv_prog_CC
  2546 if test -n "$CC"; then
  2547   { echo "$as_me:$LINENO: result: $CC" >&5
  2548 echo "${ECHO_T}$CC" >&6; }
  2549 else
  2550   { echo "$as_me:$LINENO: result: no" >&5
  2551 echo "${ECHO_T}no" >&6; }
  2552 fi
  2555     test -n "$CC" && break
  2556   done
  2557 fi
  2558 if test -z "$CC"; then
  2559   ac_ct_CC=$CC
  2560   for ac_prog in cl.exe
  2561 do
  2562   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2563 set dummy $ac_prog; ac_word=$2
  2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2567   echo $ECHO_N "(cached) $ECHO_C" >&6
  2568 else
  2569   if test -n "$ac_ct_CC"; then
  2570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2571 else
  2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2573 for as_dir in $PATH
  2574 do
  2575   IFS=$as_save_IFS
  2576   test -z "$as_dir" && as_dir=.
  2577   for ac_exec_ext in '' $ac_executable_extensions; do
  2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2579     ac_cv_prog_ac_ct_CC="$ac_prog"
  2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2581     break 2
  2582   fi
  2583 done
  2584 done
  2585 IFS=$as_save_IFS
  2587 fi
  2588 fi
  2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2590 if test -n "$ac_ct_CC"; then
  2591   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2593 else
  2594   { echo "$as_me:$LINENO: result: no" >&5
  2595 echo "${ECHO_T}no" >&6; }
  2596 fi
  2599   test -n "$ac_ct_CC" && break
  2600 done
  2602   if test "x$ac_ct_CC" = x; then
  2603     CC=""
  2604   else
  2605     case $cross_compiling:$ac_tool_warned in
  2606 yes:)
  2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2608 whose name does not start with the host triplet.  If you think this
  2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2611 whose name does not start with the host triplet.  If you think this
  2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2613 ac_tool_warned=yes ;;
  2614 esac
  2615     CC=$ac_ct_CC
  2616   fi
  2617 fi
  2619 fi
  2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2623 See \`config.log' for more details." >&5
  2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2625 See \`config.log' for more details." >&2;}
  2626    { (exit 1); exit 1; }; }
  2628 # Provide some information about the compiler.
  2629 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2630 ac_compiler=`set X $ac_compile; echo $2`
  2631 { (ac_try="$ac_compiler --version >&5"
  2632 case "(($ac_try" in
  2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2634   *) ac_try_echo=$ac_try;;
  2635 esac
  2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2637   (eval "$ac_compiler --version >&5") 2>&5
  2638   ac_status=$?
  2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2640   (exit $ac_status); }
  2641 { (ac_try="$ac_compiler -v >&5"
  2642 case "(($ac_try" in
  2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2644   *) ac_try_echo=$ac_try;;
  2645 esac
  2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2647   (eval "$ac_compiler -v >&5") 2>&5
  2648   ac_status=$?
  2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2650   (exit $ac_status); }
  2651 { (ac_try="$ac_compiler -V >&5"
  2652 case "(($ac_try" in
  2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2654   *) ac_try_echo=$ac_try;;
  2655 esac
  2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2657   (eval "$ac_compiler -V >&5") 2>&5
  2658   ac_status=$?
  2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660   (exit $ac_status); }
  2662 cat >conftest.$ac_ext <<_ACEOF
  2663 /* confdefs.h.  */
  2664 _ACEOF
  2665 cat confdefs.h >>conftest.$ac_ext
  2666 cat >>conftest.$ac_ext <<_ACEOF
  2667 /* end confdefs.h.  */
  2669 int
  2670 main ()
  2674   return 0;
  2676 _ACEOF
  2677 ac_clean_files_save=$ac_clean_files
  2678 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2679 # Try to create an executable without -o first, disregard a.out.
  2680 # It will help us diagnose broken compilers, and finding out an intuition
  2681 # of exeext.
  2682 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2683 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2686 # List of possible output files, starting from the most likely.
  2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2688 # only as a last resort.  b.out is created by i960 compilers.
  2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2691 # The IRIX 6 linker writes into existing files which may not be
  2692 # executable, retaining their permissions.  Remove them first so a
  2693 # subsequent execution test works.
  2694 ac_rmfiles=
  2695 for ac_file in $ac_files
  2696 do
  2697   case $ac_file in
  2698     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2699     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2700   esac
  2701 done
  2702 rm -f $ac_rmfiles
  2704 if { (ac_try="$ac_link_default"
  2705 case "(($ac_try" in
  2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2707   *) ac_try_echo=$ac_try;;
  2708 esac
  2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2710   (eval "$ac_link_default") 2>&5
  2711   ac_status=$?
  2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713   (exit $ac_status); }; then
  2714   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2716 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2717 # so that the user can short-circuit this test for compilers unknown to
  2718 # Autoconf.
  2719 for ac_file in $ac_files ''
  2720 do
  2721   test -f "$ac_file" || continue
  2722   case $ac_file in
  2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2724 	;;
  2725     [ab].out )
  2726 	# We found the default executable, but exeext='' is most
  2727 	# certainly right.
  2728 	break;;
  2729     *.* )
  2730         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2731 	then :; else
  2732 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2733 	fi
  2734 	# We set ac_cv_exeext here because the later test for it is not
  2735 	# safe: cross compilers may not add the suffix if given an `-o'
  2736 	# argument, so we may need to know it at that point already.
  2737 	# Even if this section looks crufty: it has the advantage of
  2738 	# actually working.
  2739 	break;;
  2740     * )
  2741 	break;;
  2742   esac
  2743 done
  2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2746 else
  2747   ac_file=''
  2748 fi
  2750 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2751 echo "${ECHO_T}$ac_file" >&6; }
  2752 if test -z "$ac_file"; then
  2753   echo "$as_me: failed program was:" >&5
  2754 sed 's/^/| /' conftest.$ac_ext >&5
  2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2757 See \`config.log' for more details." >&5
  2758 echo "$as_me: error: C compiler cannot create executables
  2759 See \`config.log' for more details." >&2;}
  2760    { (exit 77); exit 77; }; }
  2761 fi
  2763 ac_exeext=$ac_cv_exeext
  2765 # Check that the compiler produces executables we can run.  If not, either
  2766 # the compiler is broken, or we cross compile.
  2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2770 # If not cross compiling, check that we can run a simple program.
  2771 if test "$cross_compiling" != yes; then
  2772   if { ac_try='./$ac_file'
  2773   { (case "(($ac_try" in
  2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775   *) ac_try_echo=$ac_try;;
  2776 esac
  2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2778   (eval "$ac_try") 2>&5
  2779   ac_status=$?
  2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2781   (exit $ac_status); }; }; then
  2782     cross_compiling=no
  2783   else
  2784     if test "$cross_compiling" = maybe; then
  2785 	cross_compiling=yes
  2786     else
  2787 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2788 If you meant to cross compile, use \`--host'.
  2789 See \`config.log' for more details." >&5
  2790 echo "$as_me: error: cannot run C compiled programs.
  2791 If you meant to cross compile, use \`--host'.
  2792 See \`config.log' for more details." >&2;}
  2793    { (exit 1); exit 1; }; }
  2794     fi
  2795   fi
  2796 fi
  2797 { echo "$as_me:$LINENO: result: yes" >&5
  2798 echo "${ECHO_T}yes" >&6; }
  2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2801 ac_clean_files=$ac_clean_files_save
  2802 # Check that the compiler produces executables we can run.  If not, either
  2803 # the compiler is broken, or we cross compile.
  2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2807 echo "${ECHO_T}$cross_compiling" >&6; }
  2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2811 if { (ac_try="$ac_link"
  2812 case "(($ac_try" in
  2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814   *) ac_try_echo=$ac_try;;
  2815 esac
  2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2817   (eval "$ac_link") 2>&5
  2818   ac_status=$?
  2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820   (exit $ac_status); }; then
  2821   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2822 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2824 # `rm'.
  2825 for ac_file in conftest.exe conftest conftest.*; do
  2826   test -f "$ac_file" || continue
  2827   case $ac_file in
  2828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2829     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2830 	  break;;
  2831     * ) break;;
  2832   esac
  2833 done
  2834 else
  2835   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2836 See \`config.log' for more details." >&5
  2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2838 See \`config.log' for more details." >&2;}
  2839    { (exit 1); exit 1; }; }
  2840 fi
  2842 rm -f conftest$ac_cv_exeext
  2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2846 rm -f conftest.$ac_ext
  2847 EXEEXT=$ac_cv_exeext
  2848 ac_exeext=$EXEEXT
  2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2851 if test "${ac_cv_objext+set}" = set; then
  2852   echo $ECHO_N "(cached) $ECHO_C" >&6
  2853 else
  2854   cat >conftest.$ac_ext <<_ACEOF
  2855 /* confdefs.h.  */
  2856 _ACEOF
  2857 cat confdefs.h >>conftest.$ac_ext
  2858 cat >>conftest.$ac_ext <<_ACEOF
  2859 /* end confdefs.h.  */
  2861 int
  2862 main ()
  2866   return 0;
  2868 _ACEOF
  2869 rm -f conftest.o conftest.obj
  2870 if { (ac_try="$ac_compile"
  2871 case "(($ac_try" in
  2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873   *) ac_try_echo=$ac_try;;
  2874 esac
  2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2876   (eval "$ac_compile") 2>&5
  2877   ac_status=$?
  2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879   (exit $ac_status); }; then
  2880   for ac_file in conftest.o conftest.obj conftest.*; do
  2881   test -f "$ac_file" || continue;
  2882   case $ac_file in
  2883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2885        break;;
  2886   esac
  2887 done
  2888 else
  2889   echo "$as_me: failed program was:" >&5
  2890 sed 's/^/| /' conftest.$ac_ext >&5
  2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2893 See \`config.log' for more details." >&5
  2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2895 See \`config.log' for more details." >&2;}
  2896    { (exit 1); exit 1; }; }
  2897 fi
  2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2900 fi
  2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2903 OBJEXT=$ac_cv_objext
  2904 ac_objext=$OBJEXT
  2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2908   echo $ECHO_N "(cached) $ECHO_C" >&6
  2909 else
  2910   cat >conftest.$ac_ext <<_ACEOF
  2911 /* confdefs.h.  */
  2912 _ACEOF
  2913 cat confdefs.h >>conftest.$ac_ext
  2914 cat >>conftest.$ac_ext <<_ACEOF
  2915 /* end confdefs.h.  */
  2917 int
  2918 main ()
  2920 #ifndef __GNUC__
  2921        choke me
  2922 #endif
  2925   return 0;
  2927 _ACEOF
  2928 rm -f conftest.$ac_objext
  2929 if { (ac_try="$ac_compile"
  2930 case "(($ac_try" in
  2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2932   *) ac_try_echo=$ac_try;;
  2933 esac
  2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2935   (eval "$ac_compile") 2>conftest.er1
  2936   ac_status=$?
  2937   grep -v '^ *+' conftest.er1 >conftest.err
  2938   rm -f conftest.er1
  2939   cat conftest.err >&5
  2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2941   (exit $ac_status); } && {
  2942 	 test -z "$ac_c_werror_flag" ||
  2943 	 test ! -s conftest.err
  2944        } && test -s conftest.$ac_objext; then
  2945   ac_compiler_gnu=yes
  2946 else
  2947   echo "$as_me: failed program was:" >&5
  2948 sed 's/^/| /' conftest.$ac_ext >&5
  2950 	ac_compiler_gnu=no
  2951 fi
  2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2956 fi
  2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2960 ac_test_CFLAGS=${CFLAGS+set}
  2961 ac_save_CFLAGS=$CFLAGS
  2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2964 if test "${ac_cv_prog_cc_g+set}" = set; then
  2965   echo $ECHO_N "(cached) $ECHO_C" >&6
  2966 else
  2967   ac_save_c_werror_flag=$ac_c_werror_flag
  2968    ac_c_werror_flag=yes
  2969    ac_cv_prog_cc_g=no
  2970    CFLAGS="-g"
  2971    cat >conftest.$ac_ext <<_ACEOF
  2972 /* confdefs.h.  */
  2973 _ACEOF
  2974 cat confdefs.h >>conftest.$ac_ext
  2975 cat >>conftest.$ac_ext <<_ACEOF
  2976 /* end confdefs.h.  */
  2978 int
  2979 main ()
  2983   return 0;
  2985 _ACEOF
  2986 rm -f conftest.$ac_objext
  2987 if { (ac_try="$ac_compile"
  2988 case "(($ac_try" in
  2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2990   *) ac_try_echo=$ac_try;;
  2991 esac
  2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2993   (eval "$ac_compile") 2>conftest.er1
  2994   ac_status=$?
  2995   grep -v '^ *+' conftest.er1 >conftest.err
  2996   rm -f conftest.er1
  2997   cat conftest.err >&5
  2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999   (exit $ac_status); } && {
  3000 	 test -z "$ac_c_werror_flag" ||
  3001 	 test ! -s conftest.err
  3002        } && test -s conftest.$ac_objext; then
  3003   ac_cv_prog_cc_g=yes
  3004 else
  3005   echo "$as_me: failed program was:" >&5
  3006 sed 's/^/| /' conftest.$ac_ext >&5
  3008 	CFLAGS=""
  3009       cat >conftest.$ac_ext <<_ACEOF
  3010 /* confdefs.h.  */
  3011 _ACEOF
  3012 cat confdefs.h >>conftest.$ac_ext
  3013 cat >>conftest.$ac_ext <<_ACEOF
  3014 /* end confdefs.h.  */
  3016 int
  3017 main ()
  3021   return 0;
  3023 _ACEOF
  3024 rm -f conftest.$ac_objext
  3025 if { (ac_try="$ac_compile"
  3026 case "(($ac_try" in
  3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028   *) ac_try_echo=$ac_try;;
  3029 esac
  3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3031   (eval "$ac_compile") 2>conftest.er1
  3032   ac_status=$?
  3033   grep -v '^ *+' conftest.er1 >conftest.err
  3034   rm -f conftest.er1
  3035   cat conftest.err >&5
  3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3037   (exit $ac_status); } && {
  3038 	 test -z "$ac_c_werror_flag" ||
  3039 	 test ! -s conftest.err
  3040        } && test -s conftest.$ac_objext; then
  3042 else
  3043   echo "$as_me: failed program was:" >&5
  3044 sed 's/^/| /' conftest.$ac_ext >&5
  3046 	ac_c_werror_flag=$ac_save_c_werror_flag
  3047 	 CFLAGS="-g"
  3048 	 cat >conftest.$ac_ext <<_ACEOF
  3049 /* confdefs.h.  */
  3050 _ACEOF
  3051 cat confdefs.h >>conftest.$ac_ext
  3052 cat >>conftest.$ac_ext <<_ACEOF
  3053 /* end confdefs.h.  */
  3055 int
  3056 main ()
  3060   return 0;
  3062 _ACEOF
  3063 rm -f conftest.$ac_objext
  3064 if { (ac_try="$ac_compile"
  3065 case "(($ac_try" in
  3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067   *) ac_try_echo=$ac_try;;
  3068 esac
  3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3070   (eval "$ac_compile") 2>conftest.er1
  3071   ac_status=$?
  3072   grep -v '^ *+' conftest.er1 >conftest.err
  3073   rm -f conftest.er1
  3074   cat conftest.err >&5
  3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3076   (exit $ac_status); } && {
  3077 	 test -z "$ac_c_werror_flag" ||
  3078 	 test ! -s conftest.err
  3079        } && test -s conftest.$ac_objext; then
  3080   ac_cv_prog_cc_g=yes
  3081 else
  3082   echo "$as_me: failed program was:" >&5
  3083 sed 's/^/| /' conftest.$ac_ext >&5
  3086 fi
  3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3089 fi
  3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3092 fi
  3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095    ac_c_werror_flag=$ac_save_c_werror_flag
  3096 fi
  3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3099 if test "$ac_test_CFLAGS" = set; then
  3100   CFLAGS=$ac_save_CFLAGS
  3101 elif test $ac_cv_prog_cc_g = yes; then
  3102   if test "$GCC" = yes; then
  3103     CFLAGS="-g -O2"
  3104   else
  3105     CFLAGS="-g"
  3106   fi
  3107 else
  3108   if test "$GCC" = yes; then
  3109     CFLAGS="-O2"
  3110   else
  3111     CFLAGS=
  3112   fi
  3113 fi
  3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3117   echo $ECHO_N "(cached) $ECHO_C" >&6
  3118 else
  3119   ac_cv_prog_cc_c89=no
  3120 ac_save_CC=$CC
  3121 cat >conftest.$ac_ext <<_ACEOF
  3122 /* confdefs.h.  */
  3123 _ACEOF
  3124 cat confdefs.h >>conftest.$ac_ext
  3125 cat >>conftest.$ac_ext <<_ACEOF
  3126 /* end confdefs.h.  */
  3127 #include <stdarg.h>
  3128 #include <stdio.h>
  3129 #include <sys/types.h>
  3130 #include <sys/stat.h>
  3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3132 struct buf { int x; };
  3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3134 static char *e (p, i)
  3135      char **p;
  3136      int i;
  3138   return p[i];
  3140 static char *f (char * (*g) (char **, int), char **p, ...)
  3142   char *s;
  3143   va_list v;
  3144   va_start (v,p);
  3145   s = g (p, va_arg (v,int));
  3146   va_end (v);
  3147   return s;
  3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3151    function prototypes and stuff, but not '\xHH' hex character constants.
  3152    These don't provoke an error unfortunately, instead are silently treated
  3153    as 'x'.  The following induces an error, until -std is added to get
  3154    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3155    array size at least.  It's necessary to write '\x00'==0 to get something
  3156    that's true only with -std.  */
  3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3160    inside strings and character constants.  */
  3161 #define FOO(x) 'x'
  3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3164 int test (int i, double x);
  3165 struct s1 {int (*f) (int a);};
  3166 struct s2 {int (*f) (double a);};
  3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3168 int argc;
  3169 char **argv;
  3170 int
  3171 main ()
  3173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3175   return 0;
  3177 _ACEOF
  3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3179 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3180 do
  3181   CC="$ac_save_CC $ac_arg"
  3182   rm -f conftest.$ac_objext
  3183 if { (ac_try="$ac_compile"
  3184 case "(($ac_try" in
  3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186   *) ac_try_echo=$ac_try;;
  3187 esac
  3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3189   (eval "$ac_compile") 2>conftest.er1
  3190   ac_status=$?
  3191   grep -v '^ *+' conftest.er1 >conftest.err
  3192   rm -f conftest.er1
  3193   cat conftest.err >&5
  3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3195   (exit $ac_status); } && {
  3196 	 test -z "$ac_c_werror_flag" ||
  3197 	 test ! -s conftest.err
  3198        } && test -s conftest.$ac_objext; then
  3199   ac_cv_prog_cc_c89=$ac_arg
  3200 else
  3201   echo "$as_me: failed program was:" >&5
  3202 sed 's/^/| /' conftest.$ac_ext >&5
  3205 fi
  3207 rm -f core conftest.err conftest.$ac_objext
  3208   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3209 done
  3210 rm -f conftest.$ac_ext
  3211 CC=$ac_save_CC
  3213 fi
  3214 # AC_CACHE_VAL
  3215 case "x$ac_cv_prog_cc_c89" in
  3216   x)
  3217     { echo "$as_me:$LINENO: result: none needed" >&5
  3218 echo "${ECHO_T}none needed" >&6; } ;;
  3219   xno)
  3220     { echo "$as_me:$LINENO: result: unsupported" >&5
  3221 echo "${ECHO_T}unsupported" >&6; } ;;
  3222   *)
  3223     CC="$CC $ac_cv_prog_cc_c89"
  3224     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3226 esac
  3229 ac_ext=c
  3230 ac_cpp='$CPP $CPPFLAGS'
  3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3235 depcc="$CC"   am_compiler_list=
  3237 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3238 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3239 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3240   echo $ECHO_N "(cached) $ECHO_C" >&6
  3241 else
  3242   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3243   # We make a subdir and do the tests there.  Otherwise we can end up
  3244   # making bogus files that we don't know about and never remove.  For
  3245   # instance it was reported that on HP-UX the gcc test will end up
  3246   # making a dummy file named `D' -- because `-MD' means `put the output
  3247   # in D'.
  3248   mkdir conftest.dir
  3249   # Copy depcomp to subdir because otherwise we won't find it if we're
  3250   # using a relative directory.
  3251   cp "$am_depcomp" conftest.dir
  3252   cd conftest.dir
  3253   # We will build objects and dependencies in a subdirectory because
  3254   # it helps to detect inapplicable dependency modes.  For instance
  3255   # both Tru64's cc and ICC support -MD to output dependencies as a
  3256   # side effect of compilation, but ICC will put the dependencies in
  3257   # the current directory while Tru64 will put them in the object
  3258   # directory.
  3259   mkdir sub
  3261   am_cv_CC_dependencies_compiler_type=none
  3262   if test "$am_compiler_list" = ""; then
  3263      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3264   fi
  3265   for depmode in $am_compiler_list; do
  3266     # Setup a source with many dependencies, because some compilers
  3267     # like to wrap large dependency lists on column 80 (with \), and
  3268     # we should not choose a depcomp mode which is confused by this.
  3270     # We need to recreate these files for each test, as the compiler may
  3271     # overwrite some of them when testing with obscure command lines.
  3272     # This happens at least with the AIX C compiler.
  3273     : > sub/conftest.c
  3274     for i in 1 2 3 4 5 6; do
  3275       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3276       : > sub/conftst$i.h
  3277     done
  3278     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3280     case $depmode in
  3281     nosideeffect)
  3282       # after this tag, mechanisms are not by side-effect, so they'll
  3283       # only be used when explicitly requested
  3284       if test "x$enable_dependency_tracking" = xyes; then
  3285 	continue
  3286       else
  3287 	break
  3288       fi
  3289       ;;
  3290     none) break ;;
  3291     esac
  3292     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3293     # mode.  It turns out that the SunPro C++ compiler does not properly
  3294     # handle `-M -o', and we need to detect this.
  3295     if depmode=$depmode \
  3296        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3297        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3298        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3299          >/dev/null 2>conftest.err &&
  3300        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3301        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3302        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3303       # icc doesn't choke on unknown options, it will just issue warnings
  3304       # (even with -Werror).  So we grep stderr for any message
  3305       # that says an option was ignored.
  3306       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3307         am_cv_CC_dependencies_compiler_type=$depmode
  3308         break
  3309       fi
  3310     fi
  3311   done
  3313   cd ..
  3314   rm -rf conftest.dir
  3315 else
  3316   am_cv_CC_dependencies_compiler_type=none
  3317 fi
  3319 fi
  3320 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3321 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3326 if
  3327   test "x$enable_dependency_tracking" != xno \
  3328   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3329   am__fastdepCC_TRUE=
  3330   am__fastdepCC_FALSE='#'
  3331 else
  3332   am__fastdepCC_TRUE='#'
  3333   am__fastdepCC_FALSE=
  3334 fi
  3338 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3339 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3340 if test "${ac_cv_search_strerror+set}" = set; then
  3341   echo $ECHO_N "(cached) $ECHO_C" >&6
  3342 else
  3343   ac_func_search_save_LIBS=$LIBS
  3344 cat >conftest.$ac_ext <<_ACEOF
  3345 /* confdefs.h.  */
  3346 _ACEOF
  3347 cat confdefs.h >>conftest.$ac_ext
  3348 cat >>conftest.$ac_ext <<_ACEOF
  3349 /* end confdefs.h.  */
  3351 /* Override any GCC internal prototype to avoid an error.
  3352    Use char because int might match the return type of a GCC
  3353    builtin and then its argument prototype would still apply.  */
  3354 #ifdef __cplusplus
  3355 extern "C"
  3356 #endif
  3357 char strerror ();
  3358 int
  3359 main ()
  3361 return strerror ();
  3363   return 0;
  3365 _ACEOF
  3366 for ac_lib in '' cposix; do
  3367   if test -z "$ac_lib"; then
  3368     ac_res="none required"
  3369   else
  3370     ac_res=-l$ac_lib
  3371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3372   fi
  3373   rm -f conftest.$ac_objext conftest$ac_exeext
  3374 if { (ac_try="$ac_link"
  3375 case "(($ac_try" in
  3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3377   *) ac_try_echo=$ac_try;;
  3378 esac
  3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3380   (eval "$ac_link") 2>conftest.er1
  3381   ac_status=$?
  3382   grep -v '^ *+' conftest.er1 >conftest.err
  3383   rm -f conftest.er1
  3384   cat conftest.err >&5
  3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386   (exit $ac_status); } && {
  3387 	 test -z "$ac_c_werror_flag" ||
  3388 	 test ! -s conftest.err
  3389        } && test -s conftest$ac_exeext &&
  3390        $as_test_x conftest$ac_exeext; then
  3391   ac_cv_search_strerror=$ac_res
  3392 else
  3393   echo "$as_me: failed program was:" >&5
  3394 sed 's/^/| /' conftest.$ac_ext >&5
  3397 fi
  3399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3400       conftest$ac_exeext
  3401   if test "${ac_cv_search_strerror+set}" = set; then
  3402   break
  3403 fi
  3404 done
  3405 if test "${ac_cv_search_strerror+set}" = set; then
  3407 else
  3408   ac_cv_search_strerror=no
  3409 fi
  3410 rm conftest.$ac_ext
  3411 LIBS=$ac_func_search_save_LIBS
  3412 fi
  3413 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3414 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3415 ac_res=$ac_cv_search_strerror
  3416 if test "$ac_res" != no; then
  3417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3419 fi
  3421 ac_ext=c
  3422 ac_cpp='$CPP $CPPFLAGS'
  3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3426 if test -n "$ac_tool_prefix"; then
  3427   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3431 if test "${ac_cv_prog_CC+set}" = set; then
  3432   echo $ECHO_N "(cached) $ECHO_C" >&6
  3433 else
  3434   if test -n "$CC"; then
  3435   ac_cv_prog_CC="$CC" # Let the user override the test.
  3436 else
  3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438 for as_dir in $PATH
  3439 do
  3440   IFS=$as_save_IFS
  3441   test -z "$as_dir" && as_dir=.
  3442   for ac_exec_ext in '' $ac_executable_extensions; do
  3443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3444     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3446     break 2
  3447   fi
  3448 done
  3449 done
  3450 IFS=$as_save_IFS
  3452 fi
  3453 fi
  3454 CC=$ac_cv_prog_CC
  3455 if test -n "$CC"; then
  3456   { echo "$as_me:$LINENO: result: $CC" >&5
  3457 echo "${ECHO_T}$CC" >&6; }
  3458 else
  3459   { echo "$as_me:$LINENO: result: no" >&5
  3460 echo "${ECHO_T}no" >&6; }
  3461 fi
  3464 fi
  3465 if test -z "$ac_cv_prog_CC"; then
  3466   ac_ct_CC=$CC
  3467   # Extract the first word of "gcc", so it can be a program name with args.
  3468 set dummy gcc; ac_word=$2
  3469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3472   echo $ECHO_N "(cached) $ECHO_C" >&6
  3473 else
  3474   if test -n "$ac_ct_CC"; then
  3475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3476 else
  3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478 for as_dir in $PATH
  3479 do
  3480   IFS=$as_save_IFS
  3481   test -z "$as_dir" && as_dir=.
  3482   for ac_exec_ext in '' $ac_executable_extensions; do
  3483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3484     ac_cv_prog_ac_ct_CC="gcc"
  3485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3486     break 2
  3487   fi
  3488 done
  3489 done
  3490 IFS=$as_save_IFS
  3492 fi
  3493 fi
  3494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3495 if test -n "$ac_ct_CC"; then
  3496   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3497 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3498 else
  3499   { echo "$as_me:$LINENO: result: no" >&5
  3500 echo "${ECHO_T}no" >&6; }
  3501 fi
  3503   if test "x$ac_ct_CC" = x; then
  3504     CC=""
  3505   else
  3506     case $cross_compiling:$ac_tool_warned in
  3507 yes:)
  3508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3509 whose name does not start with the host triplet.  If you think this
  3510 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3512 whose name does not start with the host triplet.  If you think this
  3513 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3514 ac_tool_warned=yes ;;
  3515 esac
  3516     CC=$ac_ct_CC
  3517   fi
  3518 else
  3519   CC="$ac_cv_prog_CC"
  3520 fi
  3522 if test -z "$CC"; then
  3523           if test -n "$ac_tool_prefix"; then
  3524     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3525 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3528 if test "${ac_cv_prog_CC+set}" = set; then
  3529   echo $ECHO_N "(cached) $ECHO_C" >&6
  3530 else
  3531   if test -n "$CC"; then
  3532   ac_cv_prog_CC="$CC" # Let the user override the test.
  3533 else
  3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535 for as_dir in $PATH
  3536 do
  3537   IFS=$as_save_IFS
  3538   test -z "$as_dir" && as_dir=.
  3539   for ac_exec_ext in '' $ac_executable_extensions; do
  3540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3541     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543     break 2
  3544   fi
  3545 done
  3546 done
  3547 IFS=$as_save_IFS
  3549 fi
  3550 fi
  3551 CC=$ac_cv_prog_CC
  3552 if test -n "$CC"; then
  3553   { echo "$as_me:$LINENO: result: $CC" >&5
  3554 echo "${ECHO_T}$CC" >&6; }
  3555 else
  3556   { echo "$as_me:$LINENO: result: no" >&5
  3557 echo "${ECHO_T}no" >&6; }
  3558 fi
  3561   fi
  3562 fi
  3563 if test -z "$CC"; then
  3564   # Extract the first word of "cc", so it can be a program name with args.
  3565 set dummy cc; ac_word=$2
  3566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3568 if test "${ac_cv_prog_CC+set}" = set; then
  3569   echo $ECHO_N "(cached) $ECHO_C" >&6
  3570 else
  3571   if test -n "$CC"; then
  3572   ac_cv_prog_CC="$CC" # Let the user override the test.
  3573 else
  3574   ac_prog_rejected=no
  3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576 for as_dir in $PATH
  3577 do
  3578   IFS=$as_save_IFS
  3579   test -z "$as_dir" && as_dir=.
  3580   for ac_exec_ext in '' $ac_executable_extensions; do
  3581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3582     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3583        ac_prog_rejected=yes
  3584        continue
  3585      fi
  3586     ac_cv_prog_CC="cc"
  3587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3588     break 2
  3589   fi
  3590 done
  3591 done
  3592 IFS=$as_save_IFS
  3594 if test $ac_prog_rejected = yes; then
  3595   # We found a bogon in the path, so make sure we never use it.
  3596   set dummy $ac_cv_prog_CC
  3597   shift
  3598   if test $# != 0; then
  3599     # We chose a different compiler from the bogus one.
  3600     # However, it has the same basename, so the bogon will be chosen
  3601     # first if we set CC to just the basename; use the full file name.
  3602     shift
  3603     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3604   fi
  3605 fi
  3606 fi
  3607 fi
  3608 CC=$ac_cv_prog_CC
  3609 if test -n "$CC"; then
  3610   { echo "$as_me:$LINENO: result: $CC" >&5
  3611 echo "${ECHO_T}$CC" >&6; }
  3612 else
  3613   { echo "$as_me:$LINENO: result: no" >&5
  3614 echo "${ECHO_T}no" >&6; }
  3615 fi
  3618 fi
  3619 if test -z "$CC"; then
  3620   if test -n "$ac_tool_prefix"; then
  3621   for ac_prog in cl.exe
  3622   do
  3623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3627 if test "${ac_cv_prog_CC+set}" = set; then
  3628   echo $ECHO_N "(cached) $ECHO_C" >&6
  3629 else
  3630   if test -n "$CC"; then
  3631   ac_cv_prog_CC="$CC" # Let the user override the test.
  3632 else
  3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3634 for as_dir in $PATH
  3635 do
  3636   IFS=$as_save_IFS
  3637   test -z "$as_dir" && as_dir=.
  3638   for ac_exec_ext in '' $ac_executable_extensions; do
  3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3640     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3642     break 2
  3643   fi
  3644 done
  3645 done
  3646 IFS=$as_save_IFS
  3648 fi
  3649 fi
  3650 CC=$ac_cv_prog_CC
  3651 if test -n "$CC"; then
  3652   { echo "$as_me:$LINENO: result: $CC" >&5
  3653 echo "${ECHO_T}$CC" >&6; }
  3654 else
  3655   { echo "$as_me:$LINENO: result: no" >&5
  3656 echo "${ECHO_T}no" >&6; }
  3657 fi
  3660     test -n "$CC" && break
  3661   done
  3662 fi
  3663 if test -z "$CC"; then
  3664   ac_ct_CC=$CC
  3665   for ac_prog in cl.exe
  3666 do
  3667   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3668 set dummy $ac_prog; ac_word=$2
  3669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3672   echo $ECHO_N "(cached) $ECHO_C" >&6
  3673 else
  3674   if test -n "$ac_ct_CC"; then
  3675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676 else
  3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678 for as_dir in $PATH
  3679 do
  3680   IFS=$as_save_IFS
  3681   test -z "$as_dir" && as_dir=.
  3682   for ac_exec_ext in '' $ac_executable_extensions; do
  3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3684     ac_cv_prog_ac_ct_CC="$ac_prog"
  3685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686     break 2
  3687   fi
  3688 done
  3689 done
  3690 IFS=$as_save_IFS
  3692 fi
  3693 fi
  3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3695 if test -n "$ac_ct_CC"; then
  3696   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3697 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3698 else
  3699   { echo "$as_me:$LINENO: result: no" >&5
  3700 echo "${ECHO_T}no" >&6; }
  3701 fi
  3704   test -n "$ac_ct_CC" && break
  3705 done
  3707   if test "x$ac_ct_CC" = x; then
  3708     CC=""
  3709   else
  3710     case $cross_compiling:$ac_tool_warned in
  3711 yes:)
  3712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3713 whose name does not start with the host triplet.  If you think this
  3714 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3716 whose name does not start with the host triplet.  If you think this
  3717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3718 ac_tool_warned=yes ;;
  3719 esac
  3720     CC=$ac_ct_CC
  3721   fi
  3722 fi
  3724 fi
  3727 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3728 See \`config.log' for more details." >&5
  3729 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3730 See \`config.log' for more details." >&2;}
  3731    { (exit 1); exit 1; }; }
  3733 # Provide some information about the compiler.
  3734 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3735 ac_compiler=`set X $ac_compile; echo $2`
  3736 { (ac_try="$ac_compiler --version >&5"
  3737 case "(($ac_try" in
  3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3739   *) ac_try_echo=$ac_try;;
  3740 esac
  3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3742   (eval "$ac_compiler --version >&5") 2>&5
  3743   ac_status=$?
  3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3745   (exit $ac_status); }
  3746 { (ac_try="$ac_compiler -v >&5"
  3747 case "(($ac_try" in
  3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3749   *) ac_try_echo=$ac_try;;
  3750 esac
  3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3752   (eval "$ac_compiler -v >&5") 2>&5
  3753   ac_status=$?
  3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3755   (exit $ac_status); }
  3756 { (ac_try="$ac_compiler -V >&5"
  3757 case "(($ac_try" in
  3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3759   *) ac_try_echo=$ac_try;;
  3760 esac
  3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3762   (eval "$ac_compiler -V >&5") 2>&5
  3763   ac_status=$?
  3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765   (exit $ac_status); }
  3767 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3768 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3769 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3770   echo $ECHO_N "(cached) $ECHO_C" >&6
  3771 else
  3772   cat >conftest.$ac_ext <<_ACEOF
  3773 /* confdefs.h.  */
  3774 _ACEOF
  3775 cat confdefs.h >>conftest.$ac_ext
  3776 cat >>conftest.$ac_ext <<_ACEOF
  3777 /* end confdefs.h.  */
  3779 int
  3780 main ()
  3782 #ifndef __GNUC__
  3783        choke me
  3784 #endif
  3787   return 0;
  3789 _ACEOF
  3790 rm -f conftest.$ac_objext
  3791 if { (ac_try="$ac_compile"
  3792 case "(($ac_try" in
  3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3794   *) ac_try_echo=$ac_try;;
  3795 esac
  3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3797   (eval "$ac_compile") 2>conftest.er1
  3798   ac_status=$?
  3799   grep -v '^ *+' conftest.er1 >conftest.err
  3800   rm -f conftest.er1
  3801   cat conftest.err >&5
  3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3803   (exit $ac_status); } && {
  3804 	 test -z "$ac_c_werror_flag" ||
  3805 	 test ! -s conftest.err
  3806        } && test -s conftest.$ac_objext; then
  3807   ac_compiler_gnu=yes
  3808 else
  3809   echo "$as_me: failed program was:" >&5
  3810 sed 's/^/| /' conftest.$ac_ext >&5
  3812 	ac_compiler_gnu=no
  3813 fi
  3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3818 fi
  3819 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3820 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3821 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3822 ac_test_CFLAGS=${CFLAGS+set}
  3823 ac_save_CFLAGS=$CFLAGS
  3824 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3825 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3826 if test "${ac_cv_prog_cc_g+set}" = set; then
  3827   echo $ECHO_N "(cached) $ECHO_C" >&6
  3828 else
  3829   ac_save_c_werror_flag=$ac_c_werror_flag
  3830    ac_c_werror_flag=yes
  3831    ac_cv_prog_cc_g=no
  3832    CFLAGS="-g"
  3833    cat >conftest.$ac_ext <<_ACEOF
  3834 /* confdefs.h.  */
  3835 _ACEOF
  3836 cat confdefs.h >>conftest.$ac_ext
  3837 cat >>conftest.$ac_ext <<_ACEOF
  3838 /* end confdefs.h.  */
  3840 int
  3841 main ()
  3845   return 0;
  3847 _ACEOF
  3848 rm -f conftest.$ac_objext
  3849 if { (ac_try="$ac_compile"
  3850 case "(($ac_try" in
  3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852   *) ac_try_echo=$ac_try;;
  3853 esac
  3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3855   (eval "$ac_compile") 2>conftest.er1
  3856   ac_status=$?
  3857   grep -v '^ *+' conftest.er1 >conftest.err
  3858   rm -f conftest.er1
  3859   cat conftest.err >&5
  3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3861   (exit $ac_status); } && {
  3862 	 test -z "$ac_c_werror_flag" ||
  3863 	 test ! -s conftest.err
  3864        } && test -s conftest.$ac_objext; then
  3865   ac_cv_prog_cc_g=yes
  3866 else
  3867   echo "$as_me: failed program was:" >&5
  3868 sed 's/^/| /' conftest.$ac_ext >&5
  3870 	CFLAGS=""
  3871       cat >conftest.$ac_ext <<_ACEOF
  3872 /* confdefs.h.  */
  3873 _ACEOF
  3874 cat confdefs.h >>conftest.$ac_ext
  3875 cat >>conftest.$ac_ext <<_ACEOF
  3876 /* end confdefs.h.  */
  3878 int
  3879 main ()
  3883   return 0;
  3885 _ACEOF
  3886 rm -f conftest.$ac_objext
  3887 if { (ac_try="$ac_compile"
  3888 case "(($ac_try" in
  3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3890   *) ac_try_echo=$ac_try;;
  3891 esac
  3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3893   (eval "$ac_compile") 2>conftest.er1
  3894   ac_status=$?
  3895   grep -v '^ *+' conftest.er1 >conftest.err
  3896   rm -f conftest.er1
  3897   cat conftest.err >&5
  3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899   (exit $ac_status); } && {
  3900 	 test -z "$ac_c_werror_flag" ||
  3901 	 test ! -s conftest.err
  3902        } && test -s conftest.$ac_objext; then
  3904 else
  3905   echo "$as_me: failed program was:" >&5
  3906 sed 's/^/| /' conftest.$ac_ext >&5
  3908 	ac_c_werror_flag=$ac_save_c_werror_flag
  3909 	 CFLAGS="-g"
  3910 	 cat >conftest.$ac_ext <<_ACEOF
  3911 /* confdefs.h.  */
  3912 _ACEOF
  3913 cat confdefs.h >>conftest.$ac_ext
  3914 cat >>conftest.$ac_ext <<_ACEOF
  3915 /* end confdefs.h.  */
  3917 int
  3918 main ()
  3922   return 0;
  3924 _ACEOF
  3925 rm -f conftest.$ac_objext
  3926 if { (ac_try="$ac_compile"
  3927 case "(($ac_try" in
  3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3929   *) ac_try_echo=$ac_try;;
  3930 esac
  3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3932   (eval "$ac_compile") 2>conftest.er1
  3933   ac_status=$?
  3934   grep -v '^ *+' conftest.er1 >conftest.err
  3935   rm -f conftest.er1
  3936   cat conftest.err >&5
  3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938   (exit $ac_status); } && {
  3939 	 test -z "$ac_c_werror_flag" ||
  3940 	 test ! -s conftest.err
  3941        } && test -s conftest.$ac_objext; then
  3942   ac_cv_prog_cc_g=yes
  3943 else
  3944   echo "$as_me: failed program was:" >&5
  3945 sed 's/^/| /' conftest.$ac_ext >&5
  3948 fi
  3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3951 fi
  3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3954 fi
  3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3957    ac_c_werror_flag=$ac_save_c_werror_flag
  3958 fi
  3959 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3961 if test "$ac_test_CFLAGS" = set; then
  3962   CFLAGS=$ac_save_CFLAGS
  3963 elif test $ac_cv_prog_cc_g = yes; then
  3964   if test "$GCC" = yes; then
  3965     CFLAGS="-g -O2"
  3966   else
  3967     CFLAGS="-g"
  3968   fi
  3969 else
  3970   if test "$GCC" = yes; then
  3971     CFLAGS="-O2"
  3972   else
  3973     CFLAGS=
  3974   fi
  3975 fi
  3976 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3977 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3978 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3979   echo $ECHO_N "(cached) $ECHO_C" >&6
  3980 else
  3981   ac_cv_prog_cc_c89=no
  3982 ac_save_CC=$CC
  3983 cat >conftest.$ac_ext <<_ACEOF
  3984 /* confdefs.h.  */
  3985 _ACEOF
  3986 cat confdefs.h >>conftest.$ac_ext
  3987 cat >>conftest.$ac_ext <<_ACEOF
  3988 /* end confdefs.h.  */
  3989 #include <stdarg.h>
  3990 #include <stdio.h>
  3991 #include <sys/types.h>
  3992 #include <sys/stat.h>
  3993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3994 struct buf { int x; };
  3995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3996 static char *e (p, i)
  3997      char **p;
  3998      int i;
  4000   return p[i];
  4002 static char *f (char * (*g) (char **, int), char **p, ...)
  4004   char *s;
  4005   va_list v;
  4006   va_start (v,p);
  4007   s = g (p, va_arg (v,int));
  4008   va_end (v);
  4009   return s;
  4012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4013    function prototypes and stuff, but not '\xHH' hex character constants.
  4014    These don't provoke an error unfortunately, instead are silently treated
  4015    as 'x'.  The following induces an error, until -std is added to get
  4016    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4017    array size at least.  It's necessary to write '\x00'==0 to get something
  4018    that's true only with -std.  */
  4019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4022    inside strings and character constants.  */
  4023 #define FOO(x) 'x'
  4024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4026 int test (int i, double x);
  4027 struct s1 {int (*f) (int a);};
  4028 struct s2 {int (*f) (double a);};
  4029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4030 int argc;
  4031 char **argv;
  4032 int
  4033 main ()
  4035 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4037   return 0;
  4039 _ACEOF
  4040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4041 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4042 do
  4043   CC="$ac_save_CC $ac_arg"
  4044   rm -f conftest.$ac_objext
  4045 if { (ac_try="$ac_compile"
  4046 case "(($ac_try" in
  4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4048   *) ac_try_echo=$ac_try;;
  4049 esac
  4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4051   (eval "$ac_compile") 2>conftest.er1
  4052   ac_status=$?
  4053   grep -v '^ *+' conftest.er1 >conftest.err
  4054   rm -f conftest.er1
  4055   cat conftest.err >&5
  4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4057   (exit $ac_status); } && {
  4058 	 test -z "$ac_c_werror_flag" ||
  4059 	 test ! -s conftest.err
  4060        } && test -s conftest.$ac_objext; then
  4061   ac_cv_prog_cc_c89=$ac_arg
  4062 else
  4063   echo "$as_me: failed program was:" >&5
  4064 sed 's/^/| /' conftest.$ac_ext >&5
  4067 fi
  4069 rm -f core conftest.err conftest.$ac_objext
  4070   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4071 done
  4072 rm -f conftest.$ac_ext
  4073 CC=$ac_save_CC
  4075 fi
  4076 # AC_CACHE_VAL
  4077 case "x$ac_cv_prog_cc_c89" in
  4078   x)
  4079     { echo "$as_me:$LINENO: result: none needed" >&5
  4080 echo "${ECHO_T}none needed" >&6; } ;;
  4081   xno)
  4082     { echo "$as_me:$LINENO: result: unsupported" >&5
  4083 echo "${ECHO_T}unsupported" >&6; } ;;
  4084   *)
  4085     CC="$CC $ac_cv_prog_cc_c89"
  4086     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4087 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4088 esac
  4091 ac_ext=c
  4092 ac_cpp='$CPP $CPPFLAGS'
  4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4097 depcc="$CC"   am_compiler_list=
  4099 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4102   echo $ECHO_N "(cached) $ECHO_C" >&6
  4103 else
  4104   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4105   # We make a subdir and do the tests there.  Otherwise we can end up
  4106   # making bogus files that we don't know about and never remove.  For
  4107   # instance it was reported that on HP-UX the gcc test will end up
  4108   # making a dummy file named `D' -- because `-MD' means `put the output
  4109   # in D'.
  4110   mkdir conftest.dir
  4111   # Copy depcomp to subdir because otherwise we won't find it if we're
  4112   # using a relative directory.
  4113   cp "$am_depcomp" conftest.dir
  4114   cd conftest.dir
  4115   # We will build objects and dependencies in a subdirectory because
  4116   # it helps to detect inapplicable dependency modes.  For instance
  4117   # both Tru64's cc and ICC support -MD to output dependencies as a
  4118   # side effect of compilation, but ICC will put the dependencies in
  4119   # the current directory while Tru64 will put them in the object
  4120   # directory.
  4121   mkdir sub
  4123   am_cv_CC_dependencies_compiler_type=none
  4124   if test "$am_compiler_list" = ""; then
  4125      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4126   fi
  4127   for depmode in $am_compiler_list; do
  4128     # Setup a source with many dependencies, because some compilers
  4129     # like to wrap large dependency lists on column 80 (with \), and
  4130     # we should not choose a depcomp mode which is confused by this.
  4132     # We need to recreate these files for each test, as the compiler may
  4133     # overwrite some of them when testing with obscure command lines.
  4134     # This happens at least with the AIX C compiler.
  4135     : > sub/conftest.c
  4136     for i in 1 2 3 4 5 6; do
  4137       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4138       : > sub/conftst$i.h
  4139     done
  4140     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4142     case $depmode in
  4143     nosideeffect)
  4144       # after this tag, mechanisms are not by side-effect, so they'll
  4145       # only be used when explicitly requested
  4146       if test "x$enable_dependency_tracking" = xyes; then
  4147 	continue
  4148       else
  4149 	break
  4150       fi
  4151       ;;
  4152     none) break ;;
  4153     esac
  4154     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4155     # mode.  It turns out that the SunPro C++ compiler does not properly
  4156     # handle `-M -o', and we need to detect this.
  4157     if depmode=$depmode \
  4158        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4159        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4160        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4161          >/dev/null 2>conftest.err &&
  4162        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4163        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4164        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4165       # icc doesn't choke on unknown options, it will just issue warnings
  4166       # (even with -Werror).  So we grep stderr for any message
  4167       # that says an option was ignored.
  4168       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4169         am_cv_CC_dependencies_compiler_type=$depmode
  4170         break
  4171       fi
  4172     fi
  4173   done
  4175   cd ..
  4176   rm -rf conftest.dir
  4177 else
  4178   am_cv_CC_dependencies_compiler_type=none
  4179 fi
  4181 fi
  4182 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4188 if
  4189   test "x$enable_dependency_tracking" != xno \
  4190   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4191   am__fastdepCC_TRUE=
  4192   am__fastdepCC_FALSE='#'
  4193 else
  4194   am__fastdepCC_TRUE='#'
  4195   am__fastdepCC_FALSE=
  4196 fi
  4202 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4203 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4204 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4205   echo $ECHO_N "(cached) $ECHO_C" >&6
  4206 else
  4207   am_cv_prog_cc_stdc=no
  4208 ac_save_CC="$CC"
  4209 # Don't try gcc -ansi; that turns off useful extensions and
  4210 # breaks some systems' header files.
  4211 # AIX			-qlanglvl=ansi
  4212 # Ultrix and OSF/1	-std1
  4213 # HP-UX 10.20 and later	-Ae
  4214 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4215 # SVR4			-Xc -D__EXTENSIONS__
  4216 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4217 do
  4218   CC="$ac_save_CC $ac_arg"
  4219   cat >conftest.$ac_ext <<_ACEOF
  4220 /* confdefs.h.  */
  4221 _ACEOF
  4222 cat confdefs.h >>conftest.$ac_ext
  4223 cat >>conftest.$ac_ext <<_ACEOF
  4224 /* end confdefs.h.  */
  4225 #include <stdarg.h>
  4226 #include <stdio.h>
  4227 #include <sys/types.h>
  4228 #include <sys/stat.h>
  4229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4230 struct buf { int x; };
  4231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4232 static char *e (p, i)
  4233      char **p;
  4234      int i;
  4236   return p[i];
  4238 static char *f (char * (*g) (char **, int), char **p, ...)
  4240   char *s;
  4241   va_list v;
  4242   va_start (v,p);
  4243   s = g (p, va_arg (v,int));
  4244   va_end (v);
  4245   return s;
  4247 int test (int i, double x);
  4248 struct s1 {int (*f) (int a);};
  4249 struct s2 {int (*f) (double a);};
  4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4251 int argc;
  4252 char **argv;
  4254 int
  4255 main ()
  4258 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4261   return 0;
  4263 _ACEOF
  4264 rm -f conftest.$ac_objext
  4265 if { (ac_try="$ac_compile"
  4266 case "(($ac_try" in
  4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4268   *) ac_try_echo=$ac_try;;
  4269 esac
  4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4271   (eval "$ac_compile") 2>conftest.er1
  4272   ac_status=$?
  4273   grep -v '^ *+' conftest.er1 >conftest.err
  4274   rm -f conftest.er1
  4275   cat conftest.err >&5
  4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4277   (exit $ac_status); } && {
  4278 	 test -z "$ac_c_werror_flag" ||
  4279 	 test ! -s conftest.err
  4280        } && test -s conftest.$ac_objext; then
  4281   am_cv_prog_cc_stdc="$ac_arg"; break
  4282 else
  4283   echo "$as_me: failed program was:" >&5
  4284 sed 's/^/| /' conftest.$ac_ext >&5
  4287 fi
  4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4290 done
  4291 CC="$ac_save_CC"
  4293 fi
  4295 if test -z "$am_cv_prog_cc_stdc"; then
  4296   { echo "$as_me:$LINENO: result: none needed" >&5
  4297 echo "${ECHO_T}none needed" >&6; }
  4298 else
  4299   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4300 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4301 fi
  4302 case "x$am_cv_prog_cc_stdc" in
  4303   x|xno) ;;
  4304   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4305 esac
  4307 # By default we simply use the C compiler to build assembly code.
  4309 : ${CCAS='$(CC)'}
  4310 # Set ASFLAGS if not already set.
  4311 : ${CCASFLAGS='$(CFLAGS)'}
  4314 ac_ext=c
  4315 ac_cpp='$CPP $CPPFLAGS'
  4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4319 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4321 # On Suns, sometimes $CPP names a directory.
  4322 if test -n "$CPP" && test -d "$CPP"; then
  4323   CPP=
  4324 fi
  4325 if test -z "$CPP"; then
  4326   if test "${ac_cv_prog_CPP+set}" = set; then
  4327   echo $ECHO_N "(cached) $ECHO_C" >&6
  4328 else
  4329       # Double quotes because CPP needs to be expanded
  4330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4331     do
  4332       ac_preproc_ok=false
  4333 for ac_c_preproc_warn_flag in '' yes
  4334 do
  4335   # Use a header file that comes with gcc, so configuring glibc
  4336   # with a fresh cross-compiler works.
  4337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4338   # <limits.h> exists even on freestanding compilers.
  4339   # On the NeXT, cc -E runs the code through the compiler's parser,
  4340   # not just through cpp. "Syntax error" is here to catch this case.
  4341   cat >conftest.$ac_ext <<_ACEOF
  4342 /* confdefs.h.  */
  4343 _ACEOF
  4344 cat confdefs.h >>conftest.$ac_ext
  4345 cat >>conftest.$ac_ext <<_ACEOF
  4346 /* end confdefs.h.  */
  4347 #ifdef __STDC__
  4348 # include <limits.h>
  4349 #else
  4350 # include <assert.h>
  4351 #endif
  4352 		     Syntax error
  4353 _ACEOF
  4354 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4355 case "(($ac_try" in
  4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357   *) ac_try_echo=$ac_try;;
  4358 esac
  4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4361   ac_status=$?
  4362   grep -v '^ *+' conftest.er1 >conftest.err
  4363   rm -f conftest.er1
  4364   cat conftest.err >&5
  4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366   (exit $ac_status); } >/dev/null && {
  4367 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4368 	 test ! -s conftest.err
  4369        }; then
  4371 else
  4372   echo "$as_me: failed program was:" >&5
  4373 sed 's/^/| /' conftest.$ac_ext >&5
  4375   # Broken: fails on valid input.
  4376 continue
  4377 fi
  4379 rm -f conftest.err conftest.$ac_ext
  4381   # OK, works on sane cases.  Now check whether nonexistent headers
  4382   # can be detected and how.
  4383   cat >conftest.$ac_ext <<_ACEOF
  4384 /* confdefs.h.  */
  4385 _ACEOF
  4386 cat confdefs.h >>conftest.$ac_ext
  4387 cat >>conftest.$ac_ext <<_ACEOF
  4388 /* end confdefs.h.  */
  4389 #include <ac_nonexistent.h>
  4390 _ACEOF
  4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4392 case "(($ac_try" in
  4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4394   *) ac_try_echo=$ac_try;;
  4395 esac
  4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4398   ac_status=$?
  4399   grep -v '^ *+' conftest.er1 >conftest.err
  4400   rm -f conftest.er1
  4401   cat conftest.err >&5
  4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403   (exit $ac_status); } >/dev/null && {
  4404 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4405 	 test ! -s conftest.err
  4406        }; then
  4407   # Broken: success on invalid input.
  4408 continue
  4409 else
  4410   echo "$as_me: failed program was:" >&5
  4411 sed 's/^/| /' conftest.$ac_ext >&5
  4413   # Passes both tests.
  4414 ac_preproc_ok=:
  4415 break
  4416 fi
  4418 rm -f conftest.err conftest.$ac_ext
  4420 done
  4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4422 rm -f conftest.err conftest.$ac_ext
  4423 if $ac_preproc_ok; then
  4424   break
  4425 fi
  4427     done
  4428     ac_cv_prog_CPP=$CPP
  4430 fi
  4431   CPP=$ac_cv_prog_CPP
  4432 else
  4433   ac_cv_prog_CPP=$CPP
  4434 fi
  4435 { echo "$as_me:$LINENO: result: $CPP" >&5
  4436 echo "${ECHO_T}$CPP" >&6; }
  4437 ac_preproc_ok=false
  4438 for ac_c_preproc_warn_flag in '' yes
  4439 do
  4440   # Use a header file that comes with gcc, so configuring glibc
  4441   # with a fresh cross-compiler works.
  4442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4443   # <limits.h> exists even on freestanding compilers.
  4444   # On the NeXT, cc -E runs the code through the compiler's parser,
  4445   # not just through cpp. "Syntax error" is here to catch this case.
  4446   cat >conftest.$ac_ext <<_ACEOF
  4447 /* confdefs.h.  */
  4448 _ACEOF
  4449 cat confdefs.h >>conftest.$ac_ext
  4450 cat >>conftest.$ac_ext <<_ACEOF
  4451 /* end confdefs.h.  */
  4452 #ifdef __STDC__
  4453 # include <limits.h>
  4454 #else
  4455 # include <assert.h>
  4456 #endif
  4457 		     Syntax error
  4458 _ACEOF
  4459 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4460 case "(($ac_try" in
  4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4462   *) ac_try_echo=$ac_try;;
  4463 esac
  4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4466   ac_status=$?
  4467   grep -v '^ *+' conftest.er1 >conftest.err
  4468   rm -f conftest.er1
  4469   cat conftest.err >&5
  4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471   (exit $ac_status); } >/dev/null && {
  4472 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4473 	 test ! -s conftest.err
  4474        }; then
  4476 else
  4477   echo "$as_me: failed program was:" >&5
  4478 sed 's/^/| /' conftest.$ac_ext >&5
  4480   # Broken: fails on valid input.
  4481 continue
  4482 fi
  4484 rm -f conftest.err conftest.$ac_ext
  4486   # OK, works on sane cases.  Now check whether nonexistent headers
  4487   # can be detected and how.
  4488   cat >conftest.$ac_ext <<_ACEOF
  4489 /* confdefs.h.  */
  4490 _ACEOF
  4491 cat confdefs.h >>conftest.$ac_ext
  4492 cat >>conftest.$ac_ext <<_ACEOF
  4493 /* end confdefs.h.  */
  4494 #include <ac_nonexistent.h>
  4495 _ACEOF
  4496 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4497 case "(($ac_try" in
  4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4499   *) ac_try_echo=$ac_try;;
  4500 esac
  4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4503   ac_status=$?
  4504   grep -v '^ *+' conftest.er1 >conftest.err
  4505   rm -f conftest.er1
  4506   cat conftest.err >&5
  4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508   (exit $ac_status); } >/dev/null && {
  4509 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4510 	 test ! -s conftest.err
  4511        }; then
  4512   # Broken: success on invalid input.
  4513 continue
  4514 else
  4515   echo "$as_me: failed program was:" >&5
  4516 sed 's/^/| /' conftest.$ac_ext >&5
  4518   # Passes both tests.
  4519 ac_preproc_ok=:
  4520 break
  4521 fi
  4523 rm -f conftest.err conftest.$ac_ext
  4525 done
  4526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4527 rm -f conftest.err conftest.$ac_ext
  4528 if $ac_preproc_ok; then
  4530 else
  4531   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4532 See \`config.log' for more details." >&5
  4533 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4534 See \`config.log' for more details." >&2;}
  4535    { (exit 1); exit 1; }; }
  4536 fi
  4538 ac_ext=c
  4539 ac_cpp='$CPP $CPPFLAGS'
  4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4545 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4546 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4547 if test "${ac_cv_path_GREP+set}" = set; then
  4548   echo $ECHO_N "(cached) $ECHO_C" >&6
  4549 else
  4550   # Extract the first word of "grep ggrep" to use in msg output
  4551 if test -z "$GREP"; then
  4552 set dummy grep ggrep; ac_prog_name=$2
  4553 if test "${ac_cv_path_GREP+set}" = set; then
  4554   echo $ECHO_N "(cached) $ECHO_C" >&6
  4555 else
  4556   ac_path_GREP_found=false
  4557 # Loop through the user's path and test for each of PROGNAME-LIST
  4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4560 do
  4561   IFS=$as_save_IFS
  4562   test -z "$as_dir" && as_dir=.
  4563   for ac_prog in grep ggrep; do
  4564   for ac_exec_ext in '' $ac_executable_extensions; do
  4565     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4566     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4567     # Check for GNU ac_path_GREP and select it if it is found.
  4568   # Check for GNU $ac_path_GREP
  4569 case `"$ac_path_GREP" --version 2>&1` in
  4570 *GNU*)
  4571   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4572 *)
  4573   ac_count=0
  4574   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4575   while :
  4576   do
  4577     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4578     mv "conftest.tmp" "conftest.in"
  4579     cp "conftest.in" "conftest.nl"
  4580     echo 'GREP' >> "conftest.nl"
  4581     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4582     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4583     ac_count=`expr $ac_count + 1`
  4584     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4585       # Best one so far, save it but keep looking for a better one
  4586       ac_cv_path_GREP="$ac_path_GREP"
  4587       ac_path_GREP_max=$ac_count
  4588     fi
  4589     # 10*(2^10) chars as input seems more than enough
  4590     test $ac_count -gt 10 && break
  4591   done
  4592   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4593 esac
  4596     $ac_path_GREP_found && break 3
  4597   done
  4598 done
  4600 done
  4601 IFS=$as_save_IFS
  4604 fi
  4606 GREP="$ac_cv_path_GREP"
  4607 if test -z "$GREP"; then
  4608   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4610    { (exit 1); exit 1; }; }
  4611 fi
  4613 else
  4614   ac_cv_path_GREP=$GREP
  4615 fi
  4618 fi
  4619 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4620 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4621  GREP="$ac_cv_path_GREP"
  4624 { echo "$as_me:$LINENO: checking for egrep" >&5
  4625 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4626 if test "${ac_cv_path_EGREP+set}" = set; then
  4627   echo $ECHO_N "(cached) $ECHO_C" >&6
  4628 else
  4629   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4630    then ac_cv_path_EGREP="$GREP -E"
  4631    else
  4632      # Extract the first word of "egrep" to use in msg output
  4633 if test -z "$EGREP"; then
  4634 set dummy egrep; ac_prog_name=$2
  4635 if test "${ac_cv_path_EGREP+set}" = set; then
  4636   echo $ECHO_N "(cached) $ECHO_C" >&6
  4637 else
  4638   ac_path_EGREP_found=false
  4639 # Loop through the user's path and test for each of PROGNAME-LIST
  4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4642 do
  4643   IFS=$as_save_IFS
  4644   test -z "$as_dir" && as_dir=.
  4645   for ac_prog in egrep; do
  4646   for ac_exec_ext in '' $ac_executable_extensions; do
  4647     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4648     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4649     # Check for GNU ac_path_EGREP and select it if it is found.
  4650   # Check for GNU $ac_path_EGREP
  4651 case `"$ac_path_EGREP" --version 2>&1` in
  4652 *GNU*)
  4653   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4654 *)
  4655   ac_count=0
  4656   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4657   while :
  4658   do
  4659     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4660     mv "conftest.tmp" "conftest.in"
  4661     cp "conftest.in" "conftest.nl"
  4662     echo 'EGREP' >> "conftest.nl"
  4663     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4665     ac_count=`expr $ac_count + 1`
  4666     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4667       # Best one so far, save it but keep looking for a better one
  4668       ac_cv_path_EGREP="$ac_path_EGREP"
  4669       ac_path_EGREP_max=$ac_count
  4670     fi
  4671     # 10*(2^10) chars as input seems more than enough
  4672     test $ac_count -gt 10 && break
  4673   done
  4674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4675 esac
  4678     $ac_path_EGREP_found && break 3
  4679   done
  4680 done
  4682 done
  4683 IFS=$as_save_IFS
  4686 fi
  4688 EGREP="$ac_cv_path_EGREP"
  4689 if test -z "$EGREP"; then
  4690   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4691 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4692    { (exit 1); exit 1; }; }
  4693 fi
  4695 else
  4696   ac_cv_path_EGREP=$EGREP
  4697 fi
  4700    fi
  4701 fi
  4702 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4703 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4704  EGREP="$ac_cv_path_EGREP"
  4707 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4708 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4709 if test "${ac_cv_header_stdc+set}" = set; then
  4710   echo $ECHO_N "(cached) $ECHO_C" >&6
  4711 else
  4712   cat >conftest.$ac_ext <<_ACEOF
  4713 /* confdefs.h.  */
  4714 _ACEOF
  4715 cat confdefs.h >>conftest.$ac_ext
  4716 cat >>conftest.$ac_ext <<_ACEOF
  4717 /* end confdefs.h.  */
  4718 #include <stdlib.h>
  4719 #include <stdarg.h>
  4720 #include <string.h>
  4721 #include <float.h>
  4723 int
  4724 main ()
  4728   return 0;
  4730 _ACEOF
  4731 rm -f conftest.$ac_objext
  4732 if { (ac_try="$ac_compile"
  4733 case "(($ac_try" in
  4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4735   *) ac_try_echo=$ac_try;;
  4736 esac
  4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4738   (eval "$ac_compile") 2>conftest.er1
  4739   ac_status=$?
  4740   grep -v '^ *+' conftest.er1 >conftest.err
  4741   rm -f conftest.er1
  4742   cat conftest.err >&5
  4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4744   (exit $ac_status); } && {
  4745 	 test -z "$ac_c_werror_flag" ||
  4746 	 test ! -s conftest.err
  4747        } && test -s conftest.$ac_objext; then
  4748   ac_cv_header_stdc=yes
  4749 else
  4750   echo "$as_me: failed program was:" >&5
  4751 sed 's/^/| /' conftest.$ac_ext >&5
  4753 	ac_cv_header_stdc=no
  4754 fi
  4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4758 if test $ac_cv_header_stdc = yes; then
  4759   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4760   cat >conftest.$ac_ext <<_ACEOF
  4761 /* confdefs.h.  */
  4762 _ACEOF
  4763 cat confdefs.h >>conftest.$ac_ext
  4764 cat >>conftest.$ac_ext <<_ACEOF
  4765 /* end confdefs.h.  */
  4766 #include <string.h>
  4768 _ACEOF
  4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4770   $EGREP "memchr" >/dev/null 2>&1; then
  4772 else
  4773   ac_cv_header_stdc=no
  4774 fi
  4775 rm -f conftest*
  4777 fi
  4779 if test $ac_cv_header_stdc = yes; then
  4780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4781   cat >conftest.$ac_ext <<_ACEOF
  4782 /* confdefs.h.  */
  4783 _ACEOF
  4784 cat confdefs.h >>conftest.$ac_ext
  4785 cat >>conftest.$ac_ext <<_ACEOF
  4786 /* end confdefs.h.  */
  4787 #include <stdlib.h>
  4789 _ACEOF
  4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4791   $EGREP "free" >/dev/null 2>&1; then
  4793 else
  4794   ac_cv_header_stdc=no
  4795 fi
  4796 rm -f conftest*
  4798 fi
  4800 if test $ac_cv_header_stdc = yes; then
  4801   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4802   if test "$cross_compiling" = yes; then
  4804 else
  4805   cat >conftest.$ac_ext <<_ACEOF
  4806 /* confdefs.h.  */
  4807 _ACEOF
  4808 cat confdefs.h >>conftest.$ac_ext
  4809 cat >>conftest.$ac_ext <<_ACEOF
  4810 /* end confdefs.h.  */
  4811 #include <ctype.h>
  4812 #include <stdlib.h>
  4813 #if ((' ' & 0x0FF) == 0x020)
  4814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4816 #else
  4817 # define ISLOWER(c) \
  4818 		   (('a' <= (c) && (c) <= 'i') \
  4819 		     || ('j' <= (c) && (c) <= 'r') \
  4820 		     || ('s' <= (c) && (c) <= 'z'))
  4821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4822 #endif
  4824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4825 int
  4826 main ()
  4828   int i;
  4829   for (i = 0; i < 256; i++)
  4830     if (XOR (islower (i), ISLOWER (i))
  4831 	|| toupper (i) != TOUPPER (i))
  4832       return 2;
  4833   return 0;
  4835 _ACEOF
  4836 rm -f conftest$ac_exeext
  4837 if { (ac_try="$ac_link"
  4838 case "(($ac_try" in
  4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4840   *) ac_try_echo=$ac_try;;
  4841 esac
  4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4843   (eval "$ac_link") 2>&5
  4844   ac_status=$?
  4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4847   { (case "(($ac_try" in
  4848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849   *) ac_try_echo=$ac_try;;
  4850 esac
  4851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852   (eval "$ac_try") 2>&5
  4853   ac_status=$?
  4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855   (exit $ac_status); }; }; then
  4857 else
  4858   echo "$as_me: program exited with status $ac_status" >&5
  4859 echo "$as_me: failed program was:" >&5
  4860 sed 's/^/| /' conftest.$ac_ext >&5
  4862 ( exit $ac_status )
  4863 ac_cv_header_stdc=no
  4864 fi
  4865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4866 fi
  4869 fi
  4870 fi
  4871 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4872 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4873 if test $ac_cv_header_stdc = yes; then
  4875 cat >>confdefs.h <<\_ACEOF
  4876 #define STDC_HEADERS 1
  4877 _ACEOF
  4879 fi
  4881 # Make sure we can run config.sub.
  4882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4883   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4884 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4885    { (exit 1); exit 1; }; }
  4887 { echo "$as_me:$LINENO: checking build system type" >&5
  4888 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4889 if test "${ac_cv_build+set}" = set; then
  4890   echo $ECHO_N "(cached) $ECHO_C" >&6
  4891 else
  4892   ac_build_alias=$build_alias
  4893 test "x$ac_build_alias" = x &&
  4894   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4895 test "x$ac_build_alias" = x &&
  4896   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4897 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4898    { (exit 1); exit 1; }; }
  4899 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4900   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4902    { (exit 1); exit 1; }; }
  4904 fi
  4905 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4906 echo "${ECHO_T}$ac_cv_build" >&6; }
  4907 case $ac_cv_build in
  4908 *-*-*) ;;
  4909 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4910 echo "$as_me: error: invalid value of canonical build" >&2;}
  4911    { (exit 1); exit 1; }; };;
  4912 esac
  4913 build=$ac_cv_build
  4914 ac_save_IFS=$IFS; IFS='-'
  4915 set x $ac_cv_build
  4916 shift
  4917 build_cpu=$1
  4918 build_vendor=$2
  4919 shift; shift
  4920 # Remember, the first character of IFS is used to create $*,
  4921 # except with old shells:
  4922 build_os=$*
  4923 IFS=$ac_save_IFS
  4924 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4927 { echo "$as_me:$LINENO: checking host system type" >&5
  4928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4929 if test "${ac_cv_host+set}" = set; then
  4930   echo $ECHO_N "(cached) $ECHO_C" >&6
  4931 else
  4932   if test "x$host_alias" = x; then
  4933   ac_cv_host=$ac_cv_build
  4934 else
  4935   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4936     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4938    { (exit 1); exit 1; }; }
  4939 fi
  4941 fi
  4942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4943 echo "${ECHO_T}$ac_cv_host" >&6; }
  4944 case $ac_cv_host in
  4945 *-*-*) ;;
  4946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4947 echo "$as_me: error: invalid value of canonical host" >&2;}
  4948    { (exit 1); exit 1; }; };;
  4949 esac
  4950 host=$ac_cv_host
  4951 ac_save_IFS=$IFS; IFS='-'
  4952 set x $ac_cv_host
  4953 shift
  4954 host_cpu=$1
  4955 host_vendor=$2
  4956 shift; shift
  4957 # Remember, the first character of IFS is used to create $*,
  4958 # except with old shells:
  4959 host_os=$*
  4960 IFS=$ac_save_IFS
  4961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4964 # Check whether --enable-trace was given.
  4965 if test "${enable_trace+set}" = set; then
  4966   enableval=$enable_trace; if test "$enableval" == "yes"; then
  4968 cat >>confdefs.h <<\_ACEOF
  4969 #define ENABLE_TRACE_IO 1
  4970 _ACEOF
  4972     fi
  4973 fi
  4975 # Check whether --enable-watch was given.
  4976 if test "${enable_watch+set}" = set; then
  4977   enableval=$enable_watch; if test "$enableval" == "yes"; then
  4979 cat >>confdefs.h <<\_ACEOF
  4980 #define ENABLE_WATCH 1
  4981 _ACEOF
  4983    fi
  4984 fi
  4986 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4997 		  inttypes.h stdint.h unistd.h
  4998 do
  4999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5003   echo $ECHO_N "(cached) $ECHO_C" >&6
  5004 else
  5005   cat >conftest.$ac_ext <<_ACEOF
  5006 /* confdefs.h.  */
  5007 _ACEOF
  5008 cat confdefs.h >>conftest.$ac_ext
  5009 cat >>conftest.$ac_ext <<_ACEOF
  5010 /* end confdefs.h.  */
  5011 $ac_includes_default
  5013 #include <$ac_header>
  5014 _ACEOF
  5015 rm -f conftest.$ac_objext
  5016 if { (ac_try="$ac_compile"
  5017 case "(($ac_try" in
  5018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5019   *) ac_try_echo=$ac_try;;
  5020 esac
  5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5022   (eval "$ac_compile") 2>conftest.er1
  5023   ac_status=$?
  5024   grep -v '^ *+' conftest.er1 >conftest.err
  5025   rm -f conftest.er1
  5026   cat conftest.err >&5
  5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028   (exit $ac_status); } && {
  5029 	 test -z "$ac_c_werror_flag" ||
  5030 	 test ! -s conftest.err
  5031        } && test -s conftest.$ac_objext; then
  5032   eval "$as_ac_Header=yes"
  5033 else
  5034   echo "$as_me: failed program was:" >&5
  5035 sed 's/^/| /' conftest.$ac_ext >&5
  5037 	eval "$as_ac_Header=no"
  5038 fi
  5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5041 fi
  5042 ac_res=`eval echo '${'$as_ac_Header'}'`
  5043 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5044 echo "${ECHO_T}$ac_res" >&6; }
  5045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5046   cat >>confdefs.h <<_ACEOF
  5047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5048 _ACEOF
  5050 fi
  5052 done
  5055 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5056   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5057 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5058 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5059   echo $ECHO_N "(cached) $ECHO_C" >&6
  5060 fi
  5061 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5062 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5063 else
  5064   # Is the header compilable?
  5065 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
  5066 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
  5067 cat >conftest.$ac_ext <<_ACEOF
  5068 /* confdefs.h.  */
  5069 _ACEOF
  5070 cat confdefs.h >>conftest.$ac_ext
  5071 cat >>conftest.$ac_ext <<_ACEOF
  5072 /* end confdefs.h.  */
  5073 $ac_includes_default
  5074 #include <Carbon/Carbon.h>
  5075 _ACEOF
  5076 rm -f conftest.$ac_objext
  5077 if { (ac_try="$ac_compile"
  5078 case "(($ac_try" in
  5079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5080   *) ac_try_echo=$ac_try;;
  5081 esac
  5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5083   (eval "$ac_compile") 2>conftest.er1
  5084   ac_status=$?
  5085   grep -v '^ *+' conftest.er1 >conftest.err
  5086   rm -f conftest.er1
  5087   cat conftest.err >&5
  5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089   (exit $ac_status); } && {
  5090 	 test -z "$ac_c_werror_flag" ||
  5091 	 test ! -s conftest.err
  5092        } && test -s conftest.$ac_objext; then
  5093   ac_header_compiler=yes
  5094 else
  5095   echo "$as_me: failed program was:" >&5
  5096 sed 's/^/| /' conftest.$ac_ext >&5
  5098 	ac_header_compiler=no
  5099 fi
  5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5103 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5105 # Is the header present?
  5106 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
  5107 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
  5108 cat >conftest.$ac_ext <<_ACEOF
  5109 /* confdefs.h.  */
  5110 _ACEOF
  5111 cat confdefs.h >>conftest.$ac_ext
  5112 cat >>conftest.$ac_ext <<_ACEOF
  5113 /* end confdefs.h.  */
  5114 #include <Carbon/Carbon.h>
  5115 _ACEOF
  5116 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5117 case "(($ac_try" in
  5118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5119   *) ac_try_echo=$ac_try;;
  5120 esac
  5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5123   ac_status=$?
  5124   grep -v '^ *+' conftest.er1 >conftest.err
  5125   rm -f conftest.er1
  5126   cat conftest.err >&5
  5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5128   (exit $ac_status); } >/dev/null && {
  5129 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5130 	 test ! -s conftest.err
  5131        }; then
  5132   ac_header_preproc=yes
  5133 else
  5134   echo "$as_me: failed program was:" >&5
  5135 sed 's/^/| /' conftest.$ac_ext >&5
  5137   ac_header_preproc=no
  5138 fi
  5140 rm -f conftest.err conftest.$ac_ext
  5141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5142 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5144 # So?  What about this header?
  5145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5146   yes:no: )
  5147     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5148 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5149     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
  5150 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
  5151     ac_header_preproc=yes
  5152     ;;
  5153   no:yes:* )
  5154     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
  5155 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
  5156     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
  5157 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
  5158     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
  5159 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
  5160     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
  5161 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5162     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
  5163 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
  5164     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
  5165 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
  5167     ;;
  5168 esac
  5169 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5170 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5171 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5172   echo $ECHO_N "(cached) $ECHO_C" >&6
  5173 else
  5174   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
  5175 fi
  5176 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5177 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5179 fi
  5180 if test $ac_cv_header_Carbon_Carbon_h = yes; then
  5182    HAVE_CARBON='yes'
  5183    APPLE_BUILD='yes'
  5184    LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
  5186 cat >>confdefs.h <<\_ACEOF
  5187 #define HAVE_CARBON 1
  5188 _ACEOF
  5191 cat >>confdefs.h <<\_ACEOF
  5192 #define APPLE_BUILD 1
  5193 _ACEOF
  5196 fi
  5202 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5203 	if test -n "$ac_tool_prefix"; then
  5204   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5208 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5209   echo $ECHO_N "(cached) $ECHO_C" >&6
  5210 else
  5211   case $PKG_CONFIG in
  5212   [\\/]* | ?:[\\/]*)
  5213   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5214   ;;
  5215   *)
  5216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5217 for as_dir in $PATH
  5218 do
  5219   IFS=$as_save_IFS
  5220   test -z "$as_dir" && as_dir=.
  5221   for ac_exec_ext in '' $ac_executable_extensions; do
  5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5223     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5225     break 2
  5226   fi
  5227 done
  5228 done
  5229 IFS=$as_save_IFS
  5231   ;;
  5232 esac
  5233 fi
  5234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5235 if test -n "$PKG_CONFIG"; then
  5236   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5237 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  5238 else
  5239   { echo "$as_me:$LINENO: result: no" >&5
  5240 echo "${ECHO_T}no" >&6; }
  5241 fi
  5244 fi
  5245 if test -z "$ac_cv_path_PKG_CONFIG"; then
  5246   ac_pt_PKG_CONFIG=$PKG_CONFIG
  5247   # Extract the first word of "pkg-config", so it can be a program name with args.
  5248 set dummy pkg-config; ac_word=$2
  5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5251 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5252   echo $ECHO_N "(cached) $ECHO_C" >&6
  5253 else
  5254   case $ac_pt_PKG_CONFIG in
  5255   [\\/]* | ?:[\\/]*)
  5256   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5257   ;;
  5258   *)
  5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5260 for as_dir in $PATH
  5261 do
  5262   IFS=$as_save_IFS
  5263   test -z "$as_dir" && as_dir=.
  5264   for ac_exec_ext in '' $ac_executable_extensions; do
  5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5266     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5268     break 2
  5269   fi
  5270 done
  5271 done
  5272 IFS=$as_save_IFS
  5274   ;;
  5275 esac
  5276 fi
  5277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5278 if test -n "$ac_pt_PKG_CONFIG"; then
  5279   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5280 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5281 else
  5282   { echo "$as_me:$LINENO: result: no" >&5
  5283 echo "${ECHO_T}no" >&6; }
  5284 fi
  5286   if test "x$ac_pt_PKG_CONFIG" = x; then
  5287     PKG_CONFIG=""
  5288   else
  5289     case $cross_compiling:$ac_tool_warned in
  5290 yes:)
  5291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5292 whose name does not start with the host triplet.  If you think this
  5293 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5295 whose name does not start with the host triplet.  If you think this
  5296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5297 ac_tool_warned=yes ;;
  5298 esac
  5299     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5300   fi
  5301 else
  5302   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5303 fi
  5305 fi
  5306 if test -n "$PKG_CONFIG"; then
  5307 	_pkg_min_version=0.9.0
  5308 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5309 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5310 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5311 		{ echo "$as_me:$LINENO: result: yes" >&5
  5312 echo "${ECHO_T}yes" >&6; }
  5313 	else
  5314 		{ echo "$as_me:$LINENO: result: no" >&5
  5315 echo "${ECHO_T}no" >&6; }
  5316 		PKG_CONFIG=""
  5317 	fi
  5319 fi
  5321 pkg_failed=no
  5322 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5323 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5325 if test -n "$PKG_CONFIG"; then
  5326     if test -n "$LIBPNG_CFLAGS"; then
  5327         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5328     else
  5329         if test -n "$PKG_CONFIG" && \
  5330     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5331   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5332   ac_status=$?
  5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334   (exit $ac_status); }; then
  5335   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5336 else
  5337   pkg_failed=yes
  5338 fi
  5339     fi
  5340 else
  5341 	pkg_failed=untried
  5342 fi
  5343 if test -n "$PKG_CONFIG"; then
  5344     if test -n "$LIBPNG_LIBS"; then
  5345         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5346     else
  5347         if test -n "$PKG_CONFIG" && \
  5348     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5349   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5350   ac_status=$?
  5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352   (exit $ac_status); }; then
  5353   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5354 else
  5355   pkg_failed=yes
  5356 fi
  5357     fi
  5358 else
  5359 	pkg_failed=untried
  5360 fi
  5364 if test $pkg_failed = yes; then
  5366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5367         _pkg_short_errors_supported=yes
  5368 else
  5369         _pkg_short_errors_supported=no
  5370 fi
  5371         if test $_pkg_short_errors_supported = yes; then
  5372 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5373         else
  5374 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5375         fi
  5376 	# Put the nasty error message in config.log where it belongs
  5377 	echo "$LIBPNG_PKG_ERRORS" >&5
  5379 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5381 $LIBPNG_PKG_ERRORS
  5383 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5384 installed software in a non-standard prefix.
  5386 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5387 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5388 See the pkg-config man page for more details.
  5389 " >&5
  5390 echo "$as_me: error: Package requirements (libpng ) were not met:
  5392 $LIBPNG_PKG_ERRORS
  5394 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5395 installed software in a non-standard prefix.
  5397 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5398 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5399 See the pkg-config man page for more details.
  5400 " >&2;}
  5401    { (exit 1); exit 1; }; }
  5402 elif test $pkg_failed = untried; then
  5403 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5404 is in your PATH or set the PKG_CONFIG environment variable to the full
  5405 path to pkg-config.
  5407 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5408 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5409 See the pkg-config man page for more details.
  5411 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5412 See \`config.log' for more details." >&5
  5413 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5414 is in your PATH or set the PKG_CONFIG environment variable to the full
  5415 path to pkg-config.
  5417 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5418 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5419 See the pkg-config man page for more details.
  5421 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5422 See \`config.log' for more details." >&2;}
  5423    { (exit 1); exit 1; }; }
  5424 else
  5425 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5426 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5427         { echo "$as_me:$LINENO: result: yes" >&5
  5428 echo "${ECHO_T}yes" >&6; }
  5430 fi
  5433 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5434 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5435 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5436   echo $ECHO_N "(cached) $ECHO_C" >&6
  5437 else
  5438   ac_check_lib_save_LIBS=$LIBS
  5439 LIBS="-lz  $LIBS"
  5440 cat >conftest.$ac_ext <<_ACEOF
  5441 /* confdefs.h.  */
  5442 _ACEOF
  5443 cat confdefs.h >>conftest.$ac_ext
  5444 cat >>conftest.$ac_ext <<_ACEOF
  5445 /* end confdefs.h.  */
  5447 /* Override any GCC internal prototype to avoid an error.
  5448    Use char because int might match the return type of a GCC
  5449    builtin and then its argument prototype would still apply.  */
  5450 #ifdef __cplusplus
  5451 extern "C"
  5452 #endif
  5453 char uncompress ();
  5454 int
  5455 main ()
  5457 return uncompress ();
  5459   return 0;
  5461 _ACEOF
  5462 rm -f conftest.$ac_objext conftest$ac_exeext
  5463 if { (ac_try="$ac_link"
  5464 case "(($ac_try" in
  5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5466   *) ac_try_echo=$ac_try;;
  5467 esac
  5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5469   (eval "$ac_link") 2>conftest.er1
  5470   ac_status=$?
  5471   grep -v '^ *+' conftest.er1 >conftest.err
  5472   rm -f conftest.er1
  5473   cat conftest.err >&5
  5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475   (exit $ac_status); } && {
  5476 	 test -z "$ac_c_werror_flag" ||
  5477 	 test ! -s conftest.err
  5478        } && test -s conftest$ac_exeext &&
  5479        $as_test_x conftest$ac_exeext; then
  5480   ac_cv_lib_z_uncompress=yes
  5481 else
  5482   echo "$as_me: failed program was:" >&5
  5483 sed 's/^/| /' conftest.$ac_ext >&5
  5485 	ac_cv_lib_z_uncompress=no
  5486 fi
  5488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5489       conftest$ac_exeext conftest.$ac_ext
  5490 LIBS=$ac_check_lib_save_LIBS
  5491 fi
  5492 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5493 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5494 if test $ac_cv_lib_z_uncompress = yes; then
  5495   cat >>confdefs.h <<_ACEOF
  5496 #define HAVE_LIBZ 1
  5497 _ACEOF
  5499   LIBS="-lz $LIBS"
  5501 else
  5503     echo "Zlib (libz.so) could not be found, but is required."
  5504     exit 1
  5505 fi
  5508 if test "$APPLE_BUILD" != 'yes'; then
  5510 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5511 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5512 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5513   echo $ECHO_N "(cached) $ECHO_C" >&6
  5514 else
  5515   ac_check_lib_save_LIBS=$LIBS
  5516 LIBS="-lGL  $LIBS"
  5517 cat >conftest.$ac_ext <<_ACEOF
  5518 /* confdefs.h.  */
  5519 _ACEOF
  5520 cat confdefs.h >>conftest.$ac_ext
  5521 cat >>conftest.$ac_ext <<_ACEOF
  5522 /* end confdefs.h.  */
  5524 /* Override any GCC internal prototype to avoid an error.
  5525    Use char because int might match the return type of a GCC
  5526    builtin and then its argument prototype would still apply.  */
  5527 #ifdef __cplusplus
  5528 extern "C"
  5529 #endif
  5530 char glXQueryVersion ();
  5531 int
  5532 main ()
  5534 return glXQueryVersion ();
  5536   return 0;
  5538 _ACEOF
  5539 rm -f conftest.$ac_objext conftest$ac_exeext
  5540 if { (ac_try="$ac_link"
  5541 case "(($ac_try" in
  5542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5543   *) ac_try_echo=$ac_try;;
  5544 esac
  5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5546   (eval "$ac_link") 2>conftest.er1
  5547   ac_status=$?
  5548   grep -v '^ *+' conftest.er1 >conftest.err
  5549   rm -f conftest.er1
  5550   cat conftest.err >&5
  5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552   (exit $ac_status); } && {
  5553 	 test -z "$ac_c_werror_flag" ||
  5554 	 test ! -s conftest.err
  5555        } && test -s conftest$ac_exeext &&
  5556        $as_test_x conftest$ac_exeext; then
  5557   ac_cv_lib_GL_glXQueryVersion=yes
  5558 else
  5559   echo "$as_me: failed program was:" >&5
  5560 sed 's/^/| /' conftest.$ac_ext >&5
  5562 	ac_cv_lib_GL_glXQueryVersion=no
  5563 fi
  5565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5566       conftest$ac_exeext conftest.$ac_ext
  5567 LIBS=$ac_check_lib_save_LIBS
  5568 fi
  5569 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5570 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5571 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5572   cat >>confdefs.h <<_ACEOF
  5573 #define HAVE_LIBGL 1
  5574 _ACEOF
  5576   LIBS="-lGL $LIBS"
  5578 else
  5580     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5581     exit 1
  5582 fi
  5584 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5585   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5586 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5587 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5588   echo $ECHO_N "(cached) $ECHO_C" >&6
  5589 fi
  5590 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5591 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5592 else
  5593   # Is the header compilable?
  5594 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5595 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5596 cat >conftest.$ac_ext <<_ACEOF
  5597 /* confdefs.h.  */
  5598 _ACEOF
  5599 cat confdefs.h >>conftest.$ac_ext
  5600 cat >>conftest.$ac_ext <<_ACEOF
  5601 /* end confdefs.h.  */
  5602 $ac_includes_default
  5603 #include <GL/gl.h>
  5604 _ACEOF
  5605 rm -f conftest.$ac_objext
  5606 if { (ac_try="$ac_compile"
  5607 case "(($ac_try" in
  5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5609   *) ac_try_echo=$ac_try;;
  5610 esac
  5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5612   (eval "$ac_compile") 2>conftest.er1
  5613   ac_status=$?
  5614   grep -v '^ *+' conftest.er1 >conftest.err
  5615   rm -f conftest.er1
  5616   cat conftest.err >&5
  5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5618   (exit $ac_status); } && {
  5619 	 test -z "$ac_c_werror_flag" ||
  5620 	 test ! -s conftest.err
  5621        } && test -s conftest.$ac_objext; then
  5622   ac_header_compiler=yes
  5623 else
  5624   echo "$as_me: failed program was:" >&5
  5625 sed 's/^/| /' conftest.$ac_ext >&5
  5627 	ac_header_compiler=no
  5628 fi
  5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5632 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5634 # Is the header present?
  5635 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5636 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5637 cat >conftest.$ac_ext <<_ACEOF
  5638 /* confdefs.h.  */
  5639 _ACEOF
  5640 cat confdefs.h >>conftest.$ac_ext
  5641 cat >>conftest.$ac_ext <<_ACEOF
  5642 /* end confdefs.h.  */
  5643 #include <GL/gl.h>
  5644 _ACEOF
  5645 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5646 case "(($ac_try" in
  5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5648   *) ac_try_echo=$ac_try;;
  5649 esac
  5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5652   ac_status=$?
  5653   grep -v '^ *+' conftest.er1 >conftest.err
  5654   rm -f conftest.er1
  5655   cat conftest.err >&5
  5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5657   (exit $ac_status); } >/dev/null && {
  5658 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5659 	 test ! -s conftest.err
  5660        }; then
  5661   ac_header_preproc=yes
  5662 else
  5663   echo "$as_me: failed program was:" >&5
  5664 sed 's/^/| /' conftest.$ac_ext >&5
  5666   ac_header_preproc=no
  5667 fi
  5669 rm -f conftest.err conftest.$ac_ext
  5670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5671 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5673 # So?  What about this header?
  5674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5675   yes:no: )
  5676     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5677 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5678     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5679 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5680     ac_header_preproc=yes
  5681     ;;
  5682   no:yes:* )
  5683     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5684 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5685     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5686 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5687     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5688 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5689     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5690 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5691     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5692 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5693     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5694 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5696     ;;
  5697 esac
  5698 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5699 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5700 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5701   echo $ECHO_N "(cached) $ECHO_C" >&6
  5702 else
  5703   ac_cv_header_GL_gl_h=$ac_header_preproc
  5704 fi
  5705 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5706 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5708 fi
  5709 if test $ac_cv_header_GL_gl_h = yes; then
  5711 else
  5713     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5714     exit 1
  5715 fi
  5718 fi
  5721 pkg_failed=no
  5722 { echo "$as_me:$LINENO: checking for GTK" >&5
  5723 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  5725 if test -n "$PKG_CONFIG"; then
  5726     if test -n "$GTK_CFLAGS"; then
  5727         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  5728     else
  5729         if test -n "$PKG_CONFIG" && \
  5730     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5731   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5732   ac_status=$?
  5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5734   (exit $ac_status); }; then
  5735   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  5736 else
  5737   pkg_failed=yes
  5738 fi
  5739     fi
  5740 else
  5741 	pkg_failed=untried
  5742 fi
  5743 if test -n "$PKG_CONFIG"; then
  5744     if test -n "$GTK_LIBS"; then
  5745         pkg_cv_GTK_LIBS="$GTK_LIBS"
  5746     else
  5747         if test -n "$PKG_CONFIG" && \
  5748     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5749   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5750   ac_status=$?
  5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752   (exit $ac_status); }; then
  5753   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  5754 else
  5755   pkg_failed=yes
  5756 fi
  5757     fi
  5758 else
  5759 	pkg_failed=untried
  5760 fi
  5764 if test $pkg_failed = yes; then
  5766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5767         _pkg_short_errors_supported=yes
  5768 else
  5769         _pkg_short_errors_supported=no
  5770 fi
  5771         if test $_pkg_short_errors_supported = yes; then
  5772 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  5773         else
  5774 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  5775         fi
  5776 	# Put the nasty error message in config.log where it belongs
  5777 	echo "$GTK_PKG_ERRORS" >&5
  5779 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  5781 $GTK_PKG_ERRORS
  5783 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5784 installed software in a non-standard prefix.
  5786 Alternatively, you may set the environment variables GTK_CFLAGS
  5787 and GTK_LIBS to avoid the need to call pkg-config.
  5788 See the pkg-config man page for more details.
  5789 " >&5
  5790 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  5792 $GTK_PKG_ERRORS
  5794 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5795 installed software in a non-standard prefix.
  5797 Alternatively, you may set the environment variables GTK_CFLAGS
  5798 and GTK_LIBS to avoid the need to call pkg-config.
  5799 See the pkg-config man page for more details.
  5800 " >&2;}
  5801    { (exit 1); exit 1; }; }
  5802 elif test $pkg_failed = untried; then
  5803 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5804 is in your PATH or set the PKG_CONFIG environment variable to the full
  5805 path to pkg-config.
  5807 Alternatively, you may set the environment variables GTK_CFLAGS
  5808 and GTK_LIBS to avoid the need to call pkg-config.
  5809 See the pkg-config man page for more details.
  5811 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5812 See \`config.log' for more details." >&5
  5813 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5814 is in your PATH or set the PKG_CONFIG environment variable to the full
  5815 path to pkg-config.
  5817 Alternatively, you may set the environment variables GTK_CFLAGS
  5818 and GTK_LIBS to avoid the need to call pkg-config.
  5819 See the pkg-config man page for more details.
  5821 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5822 See \`config.log' for more details." >&2;}
  5823    { (exit 1); exit 1; }; }
  5824 else
  5825 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  5826 	GTK_LIBS=$pkg_cv_GTK_LIBS
  5827         { echo "$as_me:$LINENO: result: yes" >&5
  5828 echo "${ECHO_T}yes" >&6; }
  5830     HAVE_GTK='yes'
  5832 cat >>confdefs.h <<\_ACEOF
  5833 #define HAVE_GTK 1
  5834 _ACEOF
  5837 fi
  5841 if test "$HAVE_CARBON" = 'yes'; then
  5842   GUI_CARBON_TRUE=
  5843   GUI_CARBON_FALSE='#'
  5844 else
  5845   GUI_CARBON_TRUE='#'
  5846   GUI_CARBON_FALSE=
  5847 fi
  5851 if test "$HAVE_GTK" = 'yes'; then
  5852   GUI_GTK_TRUE=
  5853   GUI_GTK_FALSE='#'
  5854 else
  5855   GUI_GTK_TRUE='#'
  5856   GUI_GTK_FALSE=
  5857 fi
  5860 case $host_cpu in
  5861     i386|i486|i586|i686)
  5862 	SH4_TRANSLATOR="x86"
  5864 cat >>confdefs.h <<_ACEOF
  5865 #define SH4_TRANSLATOR TARGET_X86
  5866 _ACEOF
  5867 ;;
  5868     x86_64)
  5869 	SH4_TRANSLATOR="x86_64"
  5871 cat >>confdefs.h <<_ACEOF
  5872 #define SH4_TRANSLATOR TARGET_X86_64
  5873 _ACEOF
  5874 ;;
  5875     *)
  5876 	echo "Warning: No translator available for $host. Building emulation core only";;
  5877 esac
  5880 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  5881   BUILD_SH4X86_TRUE=
  5882   BUILD_SH4X86_FALSE='#'
  5883 else
  5884   BUILD_SH4X86_TRUE='#'
  5885   BUILD_SH4X86_FALSE=
  5886 fi
  5890 if test "$SH4_TRANSLATOR" = "x86_64"; then
  5891   BUILD_X86_64_TRUE=
  5892   BUILD_X86_64_FALSE='#'
  5893 else
  5894   BUILD_X86_64_TRUE='#'
  5895   BUILD_X86_64_FALSE=
  5896 fi
  5900 pkg_failed=no
  5901 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  5902 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  5904 if test -n "$PKG_CONFIG"; then
  5905     if test -n "$ESOUND_CFLAGS"; then
  5906         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  5907     else
  5908         if test -n "$PKG_CONFIG" && \
  5909     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5910   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5911   ac_status=$?
  5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913   (exit $ac_status); }; then
  5914   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  5915 else
  5916   pkg_failed=yes
  5917 fi
  5918     fi
  5919 else
  5920 	pkg_failed=untried
  5921 fi
  5922 if test -n "$PKG_CONFIG"; then
  5923     if test -n "$ESOUND_LIBS"; then
  5924         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  5925     else
  5926         if test -n "$PKG_CONFIG" && \
  5927     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5928   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5929   ac_status=$?
  5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931   (exit $ac_status); }; then
  5932   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  5933 else
  5934   pkg_failed=yes
  5935 fi
  5936     fi
  5937 else
  5938 	pkg_failed=untried
  5939 fi
  5943 if test $pkg_failed = yes; then
  5945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5946         _pkg_short_errors_supported=yes
  5947 else
  5948         _pkg_short_errors_supported=no
  5949 fi
  5950         if test $_pkg_short_errors_supported = yes; then
  5951 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  5952         else
  5953 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  5954         fi
  5955 	# Put the nasty error message in config.log where it belongs
  5956 	echo "$ESOUND_PKG_ERRORS" >&5
  5958 	{ echo "$as_me:$LINENO: result: no" >&5
  5959 echo "${ECHO_T}no" >&6; }
  5960                  echo "Warning: esound not found - building without audio support"
  5961 elif test $pkg_failed = untried; then
  5962 	 echo "Warning: esound not found - building without audio support"
  5963 else
  5964 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  5965 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  5966         { echo "$as_me:$LINENO: result: yes" >&5
  5967 echo "${ECHO_T}yes" >&6; }
  5969      HAVE_ESOUND='yes'
  5971 cat >>confdefs.h <<\_ACEOF
  5972 #define HAVE_ESOUND 1
  5973 _ACEOF
  5975 fi
  5978 if test "$HAVE_ESOUND" = 'yes' ; then
  5979   AUDIO_ESOUND_TRUE=
  5980   AUDIO_ESOUND_FALSE='#'
  5981 else
  5982   AUDIO_ESOUND_TRUE='#'
  5983   AUDIO_ESOUND_FALSE=
  5984 fi
  5987 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5988   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  5989 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  5990 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  5991   echo $ECHO_N "(cached) $ECHO_C" >&6
  5992 fi
  5993 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  5994 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  5995 else
  5996   # Is the header compilable?
  5997 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  5998 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  5999 cat >conftest.$ac_ext <<_ACEOF
  6000 /* confdefs.h.  */
  6001 _ACEOF
  6002 cat confdefs.h >>conftest.$ac_ext
  6003 cat >>conftest.$ac_ext <<_ACEOF
  6004 /* end confdefs.h.  */
  6005 $ac_includes_default
  6006 #include <linux/cdrom.h>
  6007 _ACEOF
  6008 rm -f conftest.$ac_objext
  6009 if { (ac_try="$ac_compile"
  6010 case "(($ac_try" in
  6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6012   *) ac_try_echo=$ac_try;;
  6013 esac
  6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6015   (eval "$ac_compile") 2>conftest.er1
  6016   ac_status=$?
  6017   grep -v '^ *+' conftest.er1 >conftest.err
  6018   rm -f conftest.er1
  6019   cat conftest.err >&5
  6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021   (exit $ac_status); } && {
  6022 	 test -z "$ac_c_werror_flag" ||
  6023 	 test ! -s conftest.err
  6024        } && test -s conftest.$ac_objext; then
  6025   ac_header_compiler=yes
  6026 else
  6027   echo "$as_me: failed program was:" >&5
  6028 sed 's/^/| /' conftest.$ac_ext >&5
  6030 	ac_header_compiler=no
  6031 fi
  6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6035 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6037 # Is the header present?
  6038 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  6039 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  6040 cat >conftest.$ac_ext <<_ACEOF
  6041 /* confdefs.h.  */
  6042 _ACEOF
  6043 cat confdefs.h >>conftest.$ac_ext
  6044 cat >>conftest.$ac_ext <<_ACEOF
  6045 /* end confdefs.h.  */
  6046 #include <linux/cdrom.h>
  6047 _ACEOF
  6048 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6049 case "(($ac_try" in
  6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6051   *) ac_try_echo=$ac_try;;
  6052 esac
  6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6055   ac_status=$?
  6056   grep -v '^ *+' conftest.er1 >conftest.err
  6057   rm -f conftest.er1
  6058   cat conftest.err >&5
  6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6060   (exit $ac_status); } >/dev/null && {
  6061 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6062 	 test ! -s conftest.err
  6063        }; then
  6064   ac_header_preproc=yes
  6065 else
  6066   echo "$as_me: failed program was:" >&5
  6067 sed 's/^/| /' conftest.$ac_ext >&5
  6069   ac_header_preproc=no
  6070 fi
  6072 rm -f conftest.err conftest.$ac_ext
  6073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6074 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6076 # So?  What about this header?
  6077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6078   yes:no: )
  6079     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6080 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6081     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  6082 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  6083     ac_header_preproc=yes
  6084     ;;
  6085   no:yes:* )
  6086     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  6087 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  6088     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  6089 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  6090     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  6091 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  6092     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  6093 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6094     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  6095 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  6096     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  6097 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  6099     ;;
  6100 esac
  6101 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6102 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6103 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6104   echo $ECHO_N "(cached) $ECHO_C" >&6
  6105 else
  6106   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  6107 fi
  6108 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6109 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6111 fi
  6112 if test $ac_cv_header_linux_cdrom_h = yes; then
  6113   HAVE_LINUX_CDROM_H=yes
  6114 else
  6116     echo "Linux CDROM support not found, building without it."
  6117 fi
  6122 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  6123   CDROM_LINUX_TRUE=
  6124   CDROM_LINUX_FALSE='#'
  6125 else
  6126   CDROM_LINUX_TRUE='#'
  6127   CDROM_LINUX_FALSE=
  6128 fi
  6131 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6132   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6133 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6134 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6135   echo $ECHO_N "(cached) $ECHO_C" >&6
  6136 fi
  6137 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6138 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6139 else
  6140   # Is the header compilable?
  6141 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  6142 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
  6143 cat >conftest.$ac_ext <<_ACEOF
  6144 /* confdefs.h.  */
  6145 _ACEOF
  6146 cat confdefs.h >>conftest.$ac_ext
  6147 cat >>conftest.$ac_ext <<_ACEOF
  6148 /* end confdefs.h.  */
  6149 $ac_includes_default
  6150 #include <linux/joystick.h>
  6151 _ACEOF
  6152 rm -f conftest.$ac_objext
  6153 if { (ac_try="$ac_compile"
  6154 case "(($ac_try" in
  6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6156   *) ac_try_echo=$ac_try;;
  6157 esac
  6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6159   (eval "$ac_compile") 2>conftest.er1
  6160   ac_status=$?
  6161   grep -v '^ *+' conftest.er1 >conftest.err
  6162   rm -f conftest.er1
  6163   cat conftest.err >&5
  6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6165   (exit $ac_status); } && {
  6166 	 test -z "$ac_c_werror_flag" ||
  6167 	 test ! -s conftest.err
  6168        } && test -s conftest.$ac_objext; then
  6169   ac_header_compiler=yes
  6170 else
  6171   echo "$as_me: failed program was:" >&5
  6172 sed 's/^/| /' conftest.$ac_ext >&5
  6174 	ac_header_compiler=no
  6175 fi
  6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6179 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6181 # Is the header present?
  6182 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  6183 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
  6184 cat >conftest.$ac_ext <<_ACEOF
  6185 /* confdefs.h.  */
  6186 _ACEOF
  6187 cat confdefs.h >>conftest.$ac_ext
  6188 cat >>conftest.$ac_ext <<_ACEOF
  6189 /* end confdefs.h.  */
  6190 #include <linux/joystick.h>
  6191 _ACEOF
  6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6193 case "(($ac_try" in
  6194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6195   *) ac_try_echo=$ac_try;;
  6196 esac
  6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6199   ac_status=$?
  6200   grep -v '^ *+' conftest.er1 >conftest.err
  6201   rm -f conftest.er1
  6202   cat conftest.err >&5
  6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6204   (exit $ac_status); } >/dev/null && {
  6205 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6206 	 test ! -s conftest.err
  6207        }; then
  6208   ac_header_preproc=yes
  6209 else
  6210   echo "$as_me: failed program was:" >&5
  6211 sed 's/^/| /' conftest.$ac_ext >&5
  6213   ac_header_preproc=no
  6214 fi
  6216 rm -f conftest.err conftest.$ac_ext
  6217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6218 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6220 # So?  What about this header?
  6221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6222   yes:no: )
  6223     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6224 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6225     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  6226 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  6227     ac_header_preproc=yes
  6228     ;;
  6229   no:yes:* )
  6230     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  6231 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  6232     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  6233 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  6234     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  6235 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  6236     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  6237 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6238     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  6239 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  6240     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  6241 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  6243     ;;
  6244 esac
  6245 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6246 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6247 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6248   echo $ECHO_N "(cached) $ECHO_C" >&6
  6249 else
  6250   ac_cv_header_linux_joystick_h=$ac_header_preproc
  6251 fi
  6252 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6253 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6255 fi
  6256 if test $ac_cv_header_linux_joystick_h = yes; then
  6258     HAVE_LINUX_JOYSTICK_H=yes
  6260 cat >>confdefs.h <<\_ACEOF
  6261 #define HAVE_LINUX_JOYSTICK 1
  6262 _ACEOF
  6264 else
  6265    echo "Linux Joystick support not found, building without it."
  6266 fi
  6271 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  6272   JOY_LINUX_TRUE=
  6273   JOY_LINUX_FALSE='#'
  6274 else
  6275   JOY_LINUX_TRUE='#'
  6276   JOY_LINUX_FALSE=
  6277 fi
  6280 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  6281 set dummy sh-elf-gcc; ac_word=$2
  6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6284 if test "${ac_cv_path_SHCC+set}" = set; then
  6285   echo $ECHO_N "(cached) $ECHO_C" >&6
  6286 else
  6287   case $SHCC in
  6288   [\\/]* | ?:[\\/]*)
  6289   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  6290   ;;
  6291   *)
  6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293 for as_dir in $PATH
  6294 do
  6295   IFS=$as_save_IFS
  6296   test -z "$as_dir" && as_dir=.
  6297   for ac_exec_ext in '' $ac_executable_extensions; do
  6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6299     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  6300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301     break 2
  6302   fi
  6303 done
  6304 done
  6305 IFS=$as_save_IFS
  6307   ;;
  6308 esac
  6309 fi
  6310 SHCC=$ac_cv_path_SHCC
  6311 if test -n "$SHCC"; then
  6312   { echo "$as_me:$LINENO: result: $SHCC" >&5
  6313 echo "${ECHO_T}$SHCC" >&6; }
  6314 else
  6315   { echo "$as_me:$LINENO: result: no" >&5
  6316 echo "${ECHO_T}no" >&6; }
  6317 fi
  6320 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  6321 set dummy sh-elf-ld; ac_word=$2
  6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6324 if test "${ac_cv_path_SHLD+set}" = set; then
  6325   echo $ECHO_N "(cached) $ECHO_C" >&6
  6326 else
  6327   case $SHLD in
  6328   [\\/]* | ?:[\\/]*)
  6329   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  6330   ;;
  6331   *)
  6332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333 for as_dir in $PATH
  6334 do
  6335   IFS=$as_save_IFS
  6336   test -z "$as_dir" && as_dir=.
  6337   for ac_exec_ext in '' $ac_executable_extensions; do
  6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6339     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341     break 2
  6342   fi
  6343 done
  6344 done
  6345 IFS=$as_save_IFS
  6347   ;;
  6348 esac
  6349 fi
  6350 SHLD=$ac_cv_path_SHLD
  6351 if test -n "$SHLD"; then
  6352   { echo "$as_me:$LINENO: result: $SHLD" >&5
  6353 echo "${ECHO_T}$SHLD" >&6; }
  6354 else
  6355   { echo "$as_me:$LINENO: result: no" >&5
  6356 echo "${ECHO_T}no" >&6; }
  6357 fi
  6360 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  6361 set dummy sh-elf-objcopy; ac_word=$2
  6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6364 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  6365   echo $ECHO_N "(cached) $ECHO_C" >&6
  6366 else
  6367   case $SHOBJCOPY in
  6368   [\\/]* | ?:[\\/]*)
  6369   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  6370   ;;
  6371   *)
  6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373 for as_dir in $PATH
  6374 do
  6375   IFS=$as_save_IFS
  6376   test -z "$as_dir" && as_dir=.
  6377   for ac_exec_ext in '' $ac_executable_extensions; do
  6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6379     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381     break 2
  6382   fi
  6383 done
  6384 done
  6385 IFS=$as_save_IFS
  6387   ;;
  6388 esac
  6389 fi
  6390 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  6391 if test -n "$SHOBJCOPY"; then
  6392   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  6393 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  6394 else
  6395   { echo "$as_me:$LINENO: result: no" >&5
  6396 echo "${ECHO_T}no" >&6; }
  6397 fi
  6400 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  6401 set dummy arm-elf-gcc; ac_word=$2
  6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6404 if test "${ac_cv_path_ARMCC+set}" = set; then
  6405   echo $ECHO_N "(cached) $ECHO_C" >&6
  6406 else
  6407   case $ARMCC in
  6408   [\\/]* | ?:[\\/]*)
  6409   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  6410   ;;
  6411   *)
  6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6413 for as_dir in $PATH
  6414 do
  6415   IFS=$as_save_IFS
  6416   test -z "$as_dir" && as_dir=.
  6417   for ac_exec_ext in '' $ac_executable_extensions; do
  6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6419     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  6420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6421     break 2
  6422   fi
  6423 done
  6424 done
  6425 IFS=$as_save_IFS
  6427   ;;
  6428 esac
  6429 fi
  6430 ARMCC=$ac_cv_path_ARMCC
  6431 if test -n "$ARMCC"; then
  6432   { echo "$as_me:$LINENO: result: $ARMCC" >&5
  6433 echo "${ECHO_T}$ARMCC" >&6; }
  6434 else
  6435   { echo "$as_me:$LINENO: result: no" >&5
  6436 echo "${ECHO_T}no" >&6; }
  6437 fi
  6440 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  6441 set dummy arm-elf-ld; ac_word=$2
  6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6444 if test "${ac_cv_path_ARMLD+set}" = set; then
  6445   echo $ECHO_N "(cached) $ECHO_C" >&6
  6446 else
  6447   case $ARMLD in
  6448   [\\/]* | ?:[\\/]*)
  6449   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  6450   ;;
  6451   *)
  6452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453 for as_dir in $PATH
  6454 do
  6455   IFS=$as_save_IFS
  6456   test -z "$as_dir" && as_dir=.
  6457   for ac_exec_ext in '' $ac_executable_extensions; do
  6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6459     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  6460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461     break 2
  6462   fi
  6463 done
  6464 done
  6465 IFS=$as_save_IFS
  6467   ;;
  6468 esac
  6469 fi
  6470 ARMLD=$ac_cv_path_ARMLD
  6471 if test -n "$ARMLD"; then
  6472   { echo "$as_me:$LINENO: result: $ARMLD" >&5
  6473 echo "${ECHO_T}$ARMLD" >&6; }
  6474 else
  6475   { echo "$as_me:$LINENO: result: no" >&5
  6476 echo "${ECHO_T}no" >&6; }
  6477 fi
  6480 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  6481 set dummy arm-elf-objcopy; ac_word=$2
  6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6484 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  6485   echo $ECHO_N "(cached) $ECHO_C" >&6
  6486 else
  6487   case $ARMOBJCOPY in
  6488   [\\/]* | ?:[\\/]*)
  6489   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  6490   ;;
  6491   *)
  6492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493 for as_dir in $PATH
  6494 do
  6495   IFS=$as_save_IFS
  6496   test -z "$as_dir" && as_dir=.
  6497   for ac_exec_ext in '' $ac_executable_extensions; do
  6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6499     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6501     break 2
  6502   fi
  6503 done
  6504 done
  6505 IFS=$as_save_IFS
  6507   ;;
  6508 esac
  6509 fi
  6510 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  6511 if test -n "$ARMOBJCOPY"; then
  6512   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  6513 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
  6514 else
  6515   { echo "$as_me:$LINENO: result: no" >&5
  6516 echo "${ECHO_T}no" >&6; }
  6517 fi
  6521 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  6522   BUILD_SH="no"
  6523   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  6524 else
  6525   BUILD_SH="yes"
  6526 fi
  6527 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  6528   BUILD_ARM="no"
  6529   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  6530 else
  6531   BUILD_ARM="yes"
  6532 fi
  6535 if test "$BUILD_SH" = "yes"; then
  6536   BUILD_SYSTEST_TRUE=
  6537   BUILD_SYSTEST_FALSE='#'
  6538 else
  6539   BUILD_SYSTEST_TRUE='#'
  6540   BUILD_SYSTEST_FALSE=
  6541 fi
  6545 if test "$BUILD_ARM" = "yes"; then
  6546   BUILD_ARMTEST_TRUE=
  6547   BUILD_ARMTEST_FALSE='#'
  6548 else
  6549   BUILD_ARMTEST_TRUE='#'
  6550   BUILD_ARMTEST_FALSE=
  6551 fi
  6555 GETTEXT_PACKAGE=lxdream
  6558 cat >>confdefs.h <<_ACEOF
  6559 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  6560 _ACEOF
  6563 ALL_LINGUAS="de pt_BR"
  6566 for ac_header in locale.h
  6567 do
  6568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6573   echo $ECHO_N "(cached) $ECHO_C" >&6
  6574 fi
  6575 ac_res=`eval echo '${'$as_ac_Header'}'`
  6576 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6577 echo "${ECHO_T}$ac_res" >&6; }
  6578 else
  6579   # Is the header compilable?
  6580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6582 cat >conftest.$ac_ext <<_ACEOF
  6583 /* confdefs.h.  */
  6584 _ACEOF
  6585 cat confdefs.h >>conftest.$ac_ext
  6586 cat >>conftest.$ac_ext <<_ACEOF
  6587 /* end confdefs.h.  */
  6588 $ac_includes_default
  6589 #include <$ac_header>
  6590 _ACEOF
  6591 rm -f conftest.$ac_objext
  6592 if { (ac_try="$ac_compile"
  6593 case "(($ac_try" in
  6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6595   *) ac_try_echo=$ac_try;;
  6596 esac
  6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6598   (eval "$ac_compile") 2>conftest.er1
  6599   ac_status=$?
  6600   grep -v '^ *+' conftest.er1 >conftest.err
  6601   rm -f conftest.er1
  6602   cat conftest.err >&5
  6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6604   (exit $ac_status); } && {
  6605 	 test -z "$ac_c_werror_flag" ||
  6606 	 test ! -s conftest.err
  6607        } && test -s conftest.$ac_objext; then
  6608   ac_header_compiler=yes
  6609 else
  6610   echo "$as_me: failed program was:" >&5
  6611 sed 's/^/| /' conftest.$ac_ext >&5
  6613 	ac_header_compiler=no
  6614 fi
  6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6618 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6620 # Is the header present?
  6621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6623 cat >conftest.$ac_ext <<_ACEOF
  6624 /* confdefs.h.  */
  6625 _ACEOF
  6626 cat confdefs.h >>conftest.$ac_ext
  6627 cat >>conftest.$ac_ext <<_ACEOF
  6628 /* end confdefs.h.  */
  6629 #include <$ac_header>
  6630 _ACEOF
  6631 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6632 case "(($ac_try" in
  6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6634   *) ac_try_echo=$ac_try;;
  6635 esac
  6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6638   ac_status=$?
  6639   grep -v '^ *+' conftest.er1 >conftest.err
  6640   rm -f conftest.er1
  6641   cat conftest.err >&5
  6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6643   (exit $ac_status); } >/dev/null && {
  6644 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6645 	 test ! -s conftest.err
  6646        }; then
  6647   ac_header_preproc=yes
  6648 else
  6649   echo "$as_me: failed program was:" >&5
  6650 sed 's/^/| /' conftest.$ac_ext >&5
  6652   ac_header_preproc=no
  6653 fi
  6655 rm -f conftest.err conftest.$ac_ext
  6656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6657 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6659 # So?  What about this header?
  6660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6661   yes:no: )
  6662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6666     ac_header_preproc=yes
  6667     ;;
  6668   no:yes:* )
  6669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  6672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  6673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  6676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  6677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6682     ;;
  6683 esac
  6684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6687   echo $ECHO_N "(cached) $ECHO_C" >&6
  6688 else
  6689   eval "$as_ac_Header=\$ac_header_preproc"
  6690 fi
  6691 ac_res=`eval echo '${'$as_ac_Header'}'`
  6692 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6693 echo "${ECHO_T}$ac_res" >&6; }
  6695 fi
  6696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6697   cat >>confdefs.h <<_ACEOF
  6698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6699 _ACEOF
  6701 fi
  6703 done
  6705     if test $ac_cv_header_locale_h = yes; then
  6706     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  6707 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  6708 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  6709   echo $ECHO_N "(cached) $ECHO_C" >&6
  6710 else
  6711   cat >conftest.$ac_ext <<_ACEOF
  6712 /* confdefs.h.  */
  6713 _ACEOF
  6714 cat confdefs.h >>conftest.$ac_ext
  6715 cat >>conftest.$ac_ext <<_ACEOF
  6716 /* end confdefs.h.  */
  6717 #include <locale.h>
  6718 int
  6719 main ()
  6721 return LC_MESSAGES
  6723   return 0;
  6725 _ACEOF
  6726 rm -f conftest.$ac_objext conftest$ac_exeext
  6727 if { (ac_try="$ac_link"
  6728 case "(($ac_try" in
  6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6730   *) ac_try_echo=$ac_try;;
  6731 esac
  6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6733   (eval "$ac_link") 2>conftest.er1
  6734   ac_status=$?
  6735   grep -v '^ *+' conftest.er1 >conftest.err
  6736   rm -f conftest.er1
  6737   cat conftest.err >&5
  6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739   (exit $ac_status); } && {
  6740 	 test -z "$ac_c_werror_flag" ||
  6741 	 test ! -s conftest.err
  6742        } && test -s conftest$ac_exeext &&
  6743        $as_test_x conftest$ac_exeext; then
  6744   am_cv_val_LC_MESSAGES=yes
  6745 else
  6746   echo "$as_me: failed program was:" >&5
  6747 sed 's/^/| /' conftest.$ac_ext >&5
  6749 	am_cv_val_LC_MESSAGES=no
  6750 fi
  6752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6753       conftest$ac_exeext conftest.$ac_ext
  6754 fi
  6755 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  6756 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  6757     if test $am_cv_val_LC_MESSAGES = yes; then
  6759 cat >>confdefs.h <<\_ACEOF
  6760 #define HAVE_LC_MESSAGES 1
  6761 _ACEOF
  6763     fi
  6764   fi
  6765          USE_NLS=yes
  6768     gt_cv_have_gettext=no
  6770     CATOBJEXT=NONE
  6771     XGETTEXT=:
  6772     INTLLIBS=
  6774     if test "${ac_cv_header_libintl_h+set}" = set; then
  6775   { echo "$as_me:$LINENO: checking for libintl.h" >&5
  6776 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  6777 if test "${ac_cv_header_libintl_h+set}" = set; then
  6778   echo $ECHO_N "(cached) $ECHO_C" >&6
  6779 fi
  6780 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  6781 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  6782 else
  6783   # Is the header compilable?
  6784 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
  6785 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
  6786 cat >conftest.$ac_ext <<_ACEOF
  6787 /* confdefs.h.  */
  6788 _ACEOF
  6789 cat confdefs.h >>conftest.$ac_ext
  6790 cat >>conftest.$ac_ext <<_ACEOF
  6791 /* end confdefs.h.  */
  6792 $ac_includes_default
  6793 #include <libintl.h>
  6794 _ACEOF
  6795 rm -f conftest.$ac_objext
  6796 if { (ac_try="$ac_compile"
  6797 case "(($ac_try" in
  6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6799   *) ac_try_echo=$ac_try;;
  6800 esac
  6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6802   (eval "$ac_compile") 2>conftest.er1
  6803   ac_status=$?
  6804   grep -v '^ *+' conftest.er1 >conftest.err
  6805   rm -f conftest.er1
  6806   cat conftest.err >&5
  6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6808   (exit $ac_status); } && {
  6809 	 test -z "$ac_c_werror_flag" ||
  6810 	 test ! -s conftest.err
  6811        } && test -s conftest.$ac_objext; then
  6812   ac_header_compiler=yes
  6813 else
  6814   echo "$as_me: failed program was:" >&5
  6815 sed 's/^/| /' conftest.$ac_ext >&5
  6817 	ac_header_compiler=no
  6818 fi
  6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6822 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6824 # Is the header present?
  6825 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
  6826 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
  6827 cat >conftest.$ac_ext <<_ACEOF
  6828 /* confdefs.h.  */
  6829 _ACEOF
  6830 cat confdefs.h >>conftest.$ac_ext
  6831 cat >>conftest.$ac_ext <<_ACEOF
  6832 /* end confdefs.h.  */
  6833 #include <libintl.h>
  6834 _ACEOF
  6835 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6836 case "(($ac_try" in
  6837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6838   *) ac_try_echo=$ac_try;;
  6839 esac
  6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6842   ac_status=$?
  6843   grep -v '^ *+' conftest.er1 >conftest.err
  6844   rm -f conftest.er1
  6845   cat conftest.err >&5
  6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847   (exit $ac_status); } >/dev/null && {
  6848 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6849 	 test ! -s conftest.err
  6850        }; then
  6851   ac_header_preproc=yes
  6852 else
  6853   echo "$as_me: failed program was:" >&5
  6854 sed 's/^/| /' conftest.$ac_ext >&5
  6856   ac_header_preproc=no
  6857 fi
  6859 rm -f conftest.err conftest.$ac_ext
  6860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6861 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6863 # So?  What about this header?
  6864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6865   yes:no: )
  6866     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6867 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6868     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  6869 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  6870     ac_header_preproc=yes
  6871     ;;
  6872   no:yes:* )
  6873     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  6874 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  6875     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  6876 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  6877     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  6878 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  6879     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  6880 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6881     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  6882 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  6883     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  6884 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  6886     ;;
  6887 esac
  6888 { echo "$as_me:$LINENO: checking for libintl.h" >&5
  6889 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  6890 if test "${ac_cv_header_libintl_h+set}" = set; then
  6891   echo $ECHO_N "(cached) $ECHO_C" >&6
  6892 else
  6893   ac_cv_header_libintl_h=$ac_header_preproc
  6894 fi
  6895 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  6896 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  6898 fi
  6899 if test $ac_cv_header_libintl_h = yes; then
  6900   gt_cv_func_dgettext_libintl="no"
  6901       libintl_extra_libs=""
  6904       # First check in libc
  6906       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  6907 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
  6908 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  6909   echo $ECHO_N "(cached) $ECHO_C" >&6
  6910 else
  6911   cat >conftest.$ac_ext <<_ACEOF
  6912 /* confdefs.h.  */
  6913 _ACEOF
  6914 cat confdefs.h >>conftest.$ac_ext
  6915 cat >>conftest.$ac_ext <<_ACEOF
  6916 /* end confdefs.h.  */
  6918 #include <libintl.h>
  6920 int
  6921 main ()
  6923 return !ngettext ("","", 1)
  6925   return 0;
  6927 _ACEOF
  6928 rm -f conftest.$ac_objext conftest$ac_exeext
  6929 if { (ac_try="$ac_link"
  6930 case "(($ac_try" in
  6931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6932   *) ac_try_echo=$ac_try;;
  6933 esac
  6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6935   (eval "$ac_link") 2>conftest.er1
  6936   ac_status=$?
  6937   grep -v '^ *+' conftest.er1 >conftest.err
  6938   rm -f conftest.er1
  6939   cat conftest.err >&5
  6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941   (exit $ac_status); } && {
  6942 	 test -z "$ac_c_werror_flag" ||
  6943 	 test ! -s conftest.err
  6944        } && test -s conftest$ac_exeext &&
  6945        $as_test_x conftest$ac_exeext; then
  6946   gt_cv_func_ngettext_libc=yes
  6947 else
  6948   echo "$as_me: failed program was:" >&5
  6949 sed 's/^/| /' conftest.$ac_ext >&5
  6951 	gt_cv_func_ngettext_libc=no
  6952 fi
  6954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6955       conftest$ac_exeext conftest.$ac_ext
  6957 fi
  6958 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  6959 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
  6961       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  6962 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  6963 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
  6964 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  6965   echo $ECHO_N "(cached) $ECHO_C" >&6
  6966 else
  6967   cat >conftest.$ac_ext <<_ACEOF
  6968 /* confdefs.h.  */
  6969 _ACEOF
  6970 cat confdefs.h >>conftest.$ac_ext
  6971 cat >>conftest.$ac_ext <<_ACEOF
  6972 /* end confdefs.h.  */
  6974 #include <libintl.h>
  6976 int
  6977 main ()
  6979 return !dgettext ("","")
  6981   return 0;
  6983 _ACEOF
  6984 rm -f conftest.$ac_objext conftest$ac_exeext
  6985 if { (ac_try="$ac_link"
  6986 case "(($ac_try" in
  6987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6988   *) ac_try_echo=$ac_try;;
  6989 esac
  6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6991   (eval "$ac_link") 2>conftest.er1
  6992   ac_status=$?
  6993   grep -v '^ *+' conftest.er1 >conftest.err
  6994   rm -f conftest.er1
  6995   cat conftest.err >&5
  6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6997   (exit $ac_status); } && {
  6998 	 test -z "$ac_c_werror_flag" ||
  6999 	 test ! -s conftest.err
  7000        } && test -s conftest$ac_exeext &&
  7001        $as_test_x conftest$ac_exeext; then
  7002   gt_cv_func_dgettext_libc=yes
  7003 else
  7004   echo "$as_me: failed program was:" >&5
  7005 sed 's/^/| /' conftest.$ac_ext >&5
  7007 	gt_cv_func_dgettext_libc=no
  7008 fi
  7010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7011       conftest$ac_exeext conftest.$ac_ext
  7013 fi
  7014 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  7015 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
  7016       fi
  7018       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  7020 for ac_func in bind_textdomain_codeset
  7021 do
  7022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7026   echo $ECHO_N "(cached) $ECHO_C" >&6
  7027 else
  7028   cat >conftest.$ac_ext <<_ACEOF
  7029 /* confdefs.h.  */
  7030 _ACEOF
  7031 cat confdefs.h >>conftest.$ac_ext
  7032 cat >>conftest.$ac_ext <<_ACEOF
  7033 /* end confdefs.h.  */
  7034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7036 #define $ac_func innocuous_$ac_func
  7038 /* System header to define __stub macros and hopefully few prototypes,
  7039     which can conflict with char $ac_func (); below.
  7040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7041     <limits.h> exists even on freestanding compilers.  */
  7043 #ifdef __STDC__
  7044 # include <limits.h>
  7045 #else
  7046 # include <assert.h>
  7047 #endif
  7049 #undef $ac_func
  7051 /* Override any GCC internal prototype to avoid an error.
  7052    Use char because int might match the return type of a GCC
  7053    builtin and then its argument prototype would still apply.  */
  7054 #ifdef __cplusplus
  7055 extern "C"
  7056 #endif
  7057 char $ac_func ();
  7058 /* The GNU C library defines this for functions which it implements
  7059     to always fail with ENOSYS.  Some functions are actually named
  7060     something starting with __ and the normal name is an alias.  */
  7061 #if defined __stub_$ac_func || defined __stub___$ac_func
  7062 choke me
  7063 #endif
  7065 int
  7066 main ()
  7068 return $ac_func ();
  7070   return 0;
  7072 _ACEOF
  7073 rm -f conftest.$ac_objext conftest$ac_exeext
  7074 if { (ac_try="$ac_link"
  7075 case "(($ac_try" in
  7076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7077   *) ac_try_echo=$ac_try;;
  7078 esac
  7079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7080   (eval "$ac_link") 2>conftest.er1
  7081   ac_status=$?
  7082   grep -v '^ *+' conftest.er1 >conftest.err
  7083   rm -f conftest.er1
  7084   cat conftest.err >&5
  7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7086   (exit $ac_status); } && {
  7087 	 test -z "$ac_c_werror_flag" ||
  7088 	 test ! -s conftest.err
  7089        } && test -s conftest$ac_exeext &&
  7090        $as_test_x conftest$ac_exeext; then
  7091   eval "$as_ac_var=yes"
  7092 else
  7093   echo "$as_me: failed program was:" >&5
  7094 sed 's/^/| /' conftest.$ac_ext >&5
  7096 	eval "$as_ac_var=no"
  7097 fi
  7099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7100       conftest$ac_exeext conftest.$ac_ext
  7101 fi
  7102 ac_res=`eval echo '${'$as_ac_var'}'`
  7103 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7104 echo "${ECHO_T}$ac_res" >&6; }
  7105 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7106   cat >>confdefs.h <<_ACEOF
  7107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7108 _ACEOF
  7110 fi
  7111 done
  7113       fi
  7116       # If we don't have everything we want, check in libintl
  7118       if test "$gt_cv_func_dgettext_libc" != "yes" \
  7119 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  7120          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  7122         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  7123 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
  7124 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  7125   echo $ECHO_N "(cached) $ECHO_C" >&6
  7126 else
  7127   ac_check_lib_save_LIBS=$LIBS
  7128 LIBS="-lintl  $LIBS"
  7129 cat >conftest.$ac_ext <<_ACEOF
  7130 /* confdefs.h.  */
  7131 _ACEOF
  7132 cat confdefs.h >>conftest.$ac_ext
  7133 cat >>conftest.$ac_ext <<_ACEOF
  7134 /* end confdefs.h.  */
  7136 /* Override any GCC internal prototype to avoid an error.
  7137    Use char because int might match the return type of a GCC
  7138    builtin and then its argument prototype would still apply.  */
  7139 #ifdef __cplusplus
  7140 extern "C"
  7141 #endif
  7142 char bindtextdomain ();
  7143 int
  7144 main ()
  7146 return bindtextdomain ();
  7148   return 0;
  7150 _ACEOF
  7151 rm -f conftest.$ac_objext conftest$ac_exeext
  7152 if { (ac_try="$ac_link"
  7153 case "(($ac_try" in
  7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7155   *) ac_try_echo=$ac_try;;
  7156 esac
  7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7158   (eval "$ac_link") 2>conftest.er1
  7159   ac_status=$?
  7160   grep -v '^ *+' conftest.er1 >conftest.err
  7161   rm -f conftest.er1
  7162   cat conftest.err >&5
  7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164   (exit $ac_status); } && {
  7165 	 test -z "$ac_c_werror_flag" ||
  7166 	 test ! -s conftest.err
  7167        } && test -s conftest$ac_exeext &&
  7168        $as_test_x conftest$ac_exeext; then
  7169   ac_cv_lib_intl_bindtextdomain=yes
  7170 else
  7171   echo "$as_me: failed program was:" >&5
  7172 sed 's/^/| /' conftest.$ac_ext >&5
  7174 	ac_cv_lib_intl_bindtextdomain=no
  7175 fi
  7177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7178       conftest$ac_exeext conftest.$ac_ext
  7179 LIBS=$ac_check_lib_save_LIBS
  7180 fi
  7181 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  7182 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
  7183 if test $ac_cv_lib_intl_bindtextdomain = yes; then
  7184   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  7185 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  7186 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  7187   echo $ECHO_N "(cached) $ECHO_C" >&6
  7188 else
  7189   ac_check_lib_save_LIBS=$LIBS
  7190 LIBS="-lintl  $LIBS"
  7191 cat >conftest.$ac_ext <<_ACEOF
  7192 /* confdefs.h.  */
  7193 _ACEOF
  7194 cat confdefs.h >>conftest.$ac_ext
  7195 cat >>conftest.$ac_ext <<_ACEOF
  7196 /* end confdefs.h.  */
  7198 /* Override any GCC internal prototype to avoid an error.
  7199    Use char because int might match the return type of a GCC
  7200    builtin and then its argument prototype would still apply.  */
  7201 #ifdef __cplusplus
  7202 extern "C"
  7203 #endif
  7204 char ngettext ();
  7205 int
  7206 main ()
  7208 return ngettext ();
  7210   return 0;
  7212 _ACEOF
  7213 rm -f conftest.$ac_objext conftest$ac_exeext
  7214 if { (ac_try="$ac_link"
  7215 case "(($ac_try" in
  7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7217   *) ac_try_echo=$ac_try;;
  7218 esac
  7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7220   (eval "$ac_link") 2>conftest.er1
  7221   ac_status=$?
  7222   grep -v '^ *+' conftest.er1 >conftest.err
  7223   rm -f conftest.er1
  7224   cat conftest.err >&5
  7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7226   (exit $ac_status); } && {
  7227 	 test -z "$ac_c_werror_flag" ||
  7228 	 test ! -s conftest.err
  7229        } && test -s conftest$ac_exeext &&
  7230        $as_test_x conftest$ac_exeext; then
  7231   ac_cv_lib_intl_ngettext=yes
  7232 else
  7233   echo "$as_me: failed program was:" >&5
  7234 sed 's/^/| /' conftest.$ac_ext >&5
  7236 	ac_cv_lib_intl_ngettext=no
  7237 fi
  7239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7240       conftest$ac_exeext conftest.$ac_ext
  7241 LIBS=$ac_check_lib_save_LIBS
  7242 fi
  7243 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  7244 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  7245 if test $ac_cv_lib_intl_ngettext = yes; then
  7246   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  7247 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
  7248 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  7249   echo $ECHO_N "(cached) $ECHO_C" >&6
  7250 else
  7251   ac_check_lib_save_LIBS=$LIBS
  7252 LIBS="-lintl  $LIBS"
  7253 cat >conftest.$ac_ext <<_ACEOF
  7254 /* confdefs.h.  */
  7255 _ACEOF
  7256 cat confdefs.h >>conftest.$ac_ext
  7257 cat >>conftest.$ac_ext <<_ACEOF
  7258 /* end confdefs.h.  */
  7260 /* Override any GCC internal prototype to avoid an error.
  7261    Use char because int might match the return type of a GCC
  7262    builtin and then its argument prototype would still apply.  */
  7263 #ifdef __cplusplus
  7264 extern "C"
  7265 #endif
  7266 char dgettext ();
  7267 int
  7268 main ()
  7270 return dgettext ();
  7272   return 0;
  7274 _ACEOF
  7275 rm -f conftest.$ac_objext conftest$ac_exeext
  7276 if { (ac_try="$ac_link"
  7277 case "(($ac_try" in
  7278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7279   *) ac_try_echo=$ac_try;;
  7280 esac
  7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7282   (eval "$ac_link") 2>conftest.er1
  7283   ac_status=$?
  7284   grep -v '^ *+' conftest.er1 >conftest.err
  7285   rm -f conftest.er1
  7286   cat conftest.err >&5
  7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7288   (exit $ac_status); } && {
  7289 	 test -z "$ac_c_werror_flag" ||
  7290 	 test ! -s conftest.err
  7291        } && test -s conftest$ac_exeext &&
  7292        $as_test_x conftest$ac_exeext; then
  7293   ac_cv_lib_intl_dgettext=yes
  7294 else
  7295   echo "$as_me: failed program was:" >&5
  7296 sed 's/^/| /' conftest.$ac_ext >&5
  7298 	ac_cv_lib_intl_dgettext=no
  7299 fi
  7301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7302       conftest$ac_exeext conftest.$ac_ext
  7303 LIBS=$ac_check_lib_save_LIBS
  7304 fi
  7305 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  7306 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
  7307 if test $ac_cv_lib_intl_dgettext = yes; then
  7308   gt_cv_func_dgettext_libintl=yes
  7309 fi
  7311 fi
  7313 fi
  7316 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  7317 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  7318 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
  7319 	  { echo "$as_me:$LINENO: result: " >&5
  7320 echo "${ECHO_T}" >&6; }
  7321   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  7322 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  7323 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  7324   echo $ECHO_N "(cached) $ECHO_C" >&6
  7325 else
  7326   ac_check_lib_save_LIBS=$LIBS
  7327 LIBS="-lintl -liconv $LIBS"
  7328 cat >conftest.$ac_ext <<_ACEOF
  7329 /* confdefs.h.  */
  7330 _ACEOF
  7331 cat confdefs.h >>conftest.$ac_ext
  7332 cat >>conftest.$ac_ext <<_ACEOF
  7333 /* end confdefs.h.  */
  7335 /* Override any GCC internal prototype to avoid an error.
  7336    Use char because int might match the return type of a GCC
  7337    builtin and then its argument prototype would still apply.  */
  7338 #ifdef __cplusplus
  7339 extern "C"
  7340 #endif
  7341 char ngettext ();
  7342 int
  7343 main ()
  7345 return ngettext ();
  7347   return 0;
  7349 _ACEOF
  7350 rm -f conftest.$ac_objext conftest$ac_exeext
  7351 if { (ac_try="$ac_link"
  7352 case "(($ac_try" in
  7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7354   *) ac_try_echo=$ac_try;;
  7355 esac
  7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7357   (eval "$ac_link") 2>conftest.er1
  7358   ac_status=$?
  7359   grep -v '^ *+' conftest.er1 >conftest.err
  7360   rm -f conftest.er1
  7361   cat conftest.err >&5
  7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7363   (exit $ac_status); } && {
  7364 	 test -z "$ac_c_werror_flag" ||
  7365 	 test ! -s conftest.err
  7366        } && test -s conftest$ac_exeext &&
  7367        $as_test_x conftest$ac_exeext; then
  7368   ac_cv_lib_intl_ngettext=yes
  7369 else
  7370   echo "$as_me: failed program was:" >&5
  7371 sed 's/^/| /' conftest.$ac_ext >&5
  7373 	ac_cv_lib_intl_ngettext=no
  7374 fi
  7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7377       conftest$ac_exeext conftest.$ac_ext
  7378 LIBS=$ac_check_lib_save_LIBS
  7379 fi
  7380 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  7381 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  7382 if test $ac_cv_lib_intl_ngettext = yes; then
  7383   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  7384 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
  7385 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  7386   echo $ECHO_N "(cached) $ECHO_C" >&6
  7387 else
  7388   ac_check_lib_save_LIBS=$LIBS
  7389 LIBS="-lintl -liconv $LIBS"
  7390 cat >conftest.$ac_ext <<_ACEOF
  7391 /* confdefs.h.  */
  7392 _ACEOF
  7393 cat confdefs.h >>conftest.$ac_ext
  7394 cat >>conftest.$ac_ext <<_ACEOF
  7395 /* end confdefs.h.  */
  7397 /* Override any GCC internal prototype to avoid an error.
  7398    Use char because int might match the return type of a GCC
  7399    builtin and then its argument prototype would still apply.  */
  7400 #ifdef __cplusplus
  7401 extern "C"
  7402 #endif
  7403 char dcgettext ();
  7404 int
  7405 main ()
  7407 return dcgettext ();
  7409   return 0;
  7411 _ACEOF
  7412 rm -f conftest.$ac_objext conftest$ac_exeext
  7413 if { (ac_try="$ac_link"
  7414 case "(($ac_try" in
  7415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7416   *) ac_try_echo=$ac_try;;
  7417 esac
  7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7419   (eval "$ac_link") 2>conftest.er1
  7420   ac_status=$?
  7421   grep -v '^ *+' conftest.er1 >conftest.err
  7422   rm -f conftest.er1
  7423   cat conftest.err >&5
  7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7425   (exit $ac_status); } && {
  7426 	 test -z "$ac_c_werror_flag" ||
  7427 	 test ! -s conftest.err
  7428        } && test -s conftest$ac_exeext &&
  7429        $as_test_x conftest$ac_exeext; then
  7430   ac_cv_lib_intl_dcgettext=yes
  7431 else
  7432   echo "$as_me: failed program was:" >&5
  7433 sed 's/^/| /' conftest.$ac_ext >&5
  7435 	ac_cv_lib_intl_dcgettext=no
  7436 fi
  7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7439       conftest$ac_exeext conftest.$ac_ext
  7440 LIBS=$ac_check_lib_save_LIBS
  7441 fi
  7442 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  7443 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
  7444 if test $ac_cv_lib_intl_dcgettext = yes; then
  7445   gt_cv_func_dgettext_libintl=yes
  7446 			libintl_extra_libs=-liconv
  7447 else
  7449 fi
  7451 else
  7453 fi
  7455         fi
  7458         # If we found libintl, then check in it for bind_textdomain_codeset();
  7459         # we'll prefer libc if neither have bind_textdomain_codeset(),
  7460         # and both have dgettext and ngettext
  7462         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  7463           glib_save_LIBS="$LIBS"
  7464           LIBS="$LIBS -lintl $libintl_extra_libs"
  7465           unset ac_cv_func_bind_textdomain_codeset
  7467 for ac_func in bind_textdomain_codeset
  7468 do
  7469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7473   echo $ECHO_N "(cached) $ECHO_C" >&6
  7474 else
  7475   cat >conftest.$ac_ext <<_ACEOF
  7476 /* confdefs.h.  */
  7477 _ACEOF
  7478 cat confdefs.h >>conftest.$ac_ext
  7479 cat >>conftest.$ac_ext <<_ACEOF
  7480 /* end confdefs.h.  */
  7481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7483 #define $ac_func innocuous_$ac_func
  7485 /* System header to define __stub macros and hopefully few prototypes,
  7486     which can conflict with char $ac_func (); below.
  7487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7488     <limits.h> exists even on freestanding compilers.  */
  7490 #ifdef __STDC__
  7491 # include <limits.h>
  7492 #else
  7493 # include <assert.h>
  7494 #endif
  7496 #undef $ac_func
  7498 /* Override any GCC internal prototype to avoid an error.
  7499    Use char because int might match the return type of a GCC
  7500    builtin and then its argument prototype would still apply.  */
  7501 #ifdef __cplusplus
  7502 extern "C"
  7503 #endif
  7504 char $ac_func ();
  7505 /* The GNU C library defines this for functions which it implements
  7506     to always fail with ENOSYS.  Some functions are actually named
  7507     something starting with __ and the normal name is an alias.  */
  7508 #if defined __stub_$ac_func || defined __stub___$ac_func
  7509 choke me
  7510 #endif
  7512 int
  7513 main ()
  7515 return $ac_func ();
  7517   return 0;
  7519 _ACEOF
  7520 rm -f conftest.$ac_objext conftest$ac_exeext
  7521 if { (ac_try="$ac_link"
  7522 case "(($ac_try" in
  7523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7524   *) ac_try_echo=$ac_try;;
  7525 esac
  7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7527   (eval "$ac_link") 2>conftest.er1
  7528   ac_status=$?
  7529   grep -v '^ *+' conftest.er1 >conftest.err
  7530   rm -f conftest.er1
  7531   cat conftest.err >&5
  7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7533   (exit $ac_status); } && {
  7534 	 test -z "$ac_c_werror_flag" ||
  7535 	 test ! -s conftest.err
  7536        } && test -s conftest$ac_exeext &&
  7537        $as_test_x conftest$ac_exeext; then
  7538   eval "$as_ac_var=yes"
  7539 else
  7540   echo "$as_me: failed program was:" >&5
  7541 sed 's/^/| /' conftest.$ac_ext >&5
  7543 	eval "$as_ac_var=no"
  7544 fi
  7546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7547       conftest$ac_exeext conftest.$ac_ext
  7548 fi
  7549 ac_res=`eval echo '${'$as_ac_var'}'`
  7550 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7551 echo "${ECHO_T}$ac_res" >&6; }
  7552 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7553   cat >>confdefs.h <<_ACEOF
  7554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7555 _ACEOF
  7557 fi
  7558 done
  7560           LIBS="$glib_save_LIBS"
  7562           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  7563             gt_cv_func_dgettext_libc=no
  7564           else
  7565             if test "$gt_cv_func_dgettext_libc" = "yes" \
  7566 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
  7567               gt_cv_func_dgettext_libintl=no
  7568             fi
  7569           fi
  7570         fi
  7571       fi
  7573       if test "$gt_cv_func_dgettext_libc" = "yes" \
  7574 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
  7575         gt_cv_have_gettext=yes
  7576       fi
  7578       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  7579         INTLLIBS="-lintl $libintl_extra_libs"
  7580       fi
  7582       if test "$gt_cv_have_gettext" = "yes"; then
  7584 cat >>confdefs.h <<\_ACEOF
  7585 #define HAVE_GETTEXT 1
  7586 _ACEOF
  7588 	# Extract the first word of "msgfmt", so it can be a program name with args.
  7589 set dummy msgfmt; ac_word=$2
  7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7592 if test "${ac_cv_path_MSGFMT+set}" = set; then
  7593   echo $ECHO_N "(cached) $ECHO_C" >&6
  7594 else
  7595   case "$MSGFMT" in
  7596   /*)
  7597   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7598   ;;
  7599   *)
  7600   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  7601   for ac_dir in $PATH; do
  7602     test -z "$ac_dir" && ac_dir=.
  7603     if test -f $ac_dir/$ac_word; then
  7604       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  7605 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  7606 	break
  7607       fi
  7608     fi
  7609   done
  7610   IFS="$ac_save_ifs"
  7611   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  7612   ;;
  7613 esac
  7614 fi
  7615 MSGFMT="$ac_cv_path_MSGFMT"
  7616 if test "$MSGFMT" != "no"; then
  7617   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7618 echo "${ECHO_T}$MSGFMT" >&6; }
  7619 else
  7620   { echo "$as_me:$LINENO: result: no" >&5
  7621 echo "${ECHO_T}no" >&6; }
  7622 fi
  7623 	if test "$MSGFMT" != "no"; then
  7624           glib_save_LIBS="$LIBS"
  7625           LIBS="$LIBS $INTLLIBS"
  7627 for ac_func in dcgettext
  7628 do
  7629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7633   echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7643 #define $ac_func innocuous_$ac_func
  7645 /* System header to define __stub macros and hopefully few prototypes,
  7646     which can conflict with char $ac_func (); below.
  7647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7648     <limits.h> exists even on freestanding compilers.  */
  7650 #ifdef __STDC__
  7651 # include <limits.h>
  7652 #else
  7653 # include <assert.h>
  7654 #endif
  7656 #undef $ac_func
  7658 /* Override any GCC internal prototype to avoid an error.
  7659    Use char because int might match the return type of a GCC
  7660    builtin and then its argument prototype would still apply.  */
  7661 #ifdef __cplusplus
  7662 extern "C"
  7663 #endif
  7664 char $ac_func ();
  7665 /* The GNU C library defines this for functions which it implements
  7666     to always fail with ENOSYS.  Some functions are actually named
  7667     something starting with __ and the normal name is an alias.  */
  7668 #if defined __stub_$ac_func || defined __stub___$ac_func
  7669 choke me
  7670 #endif
  7672 int
  7673 main ()
  7675 return $ac_func ();
  7677   return 0;
  7679 _ACEOF
  7680 rm -f conftest.$ac_objext conftest$ac_exeext
  7681 if { (ac_try="$ac_link"
  7682 case "(($ac_try" in
  7683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7684   *) ac_try_echo=$ac_try;;
  7685 esac
  7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7687   (eval "$ac_link") 2>conftest.er1
  7688   ac_status=$?
  7689   grep -v '^ *+' conftest.er1 >conftest.err
  7690   rm -f conftest.er1
  7691   cat conftest.err >&5
  7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693   (exit $ac_status); } && {
  7694 	 test -z "$ac_c_werror_flag" ||
  7695 	 test ! -s conftest.err
  7696        } && test -s conftest$ac_exeext &&
  7697        $as_test_x conftest$ac_exeext; then
  7698   eval "$as_ac_var=yes"
  7699 else
  7700   echo "$as_me: failed program was:" >&5
  7701 sed 's/^/| /' conftest.$ac_ext >&5
  7703 	eval "$as_ac_var=no"
  7704 fi
  7706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7707       conftest$ac_exeext conftest.$ac_ext
  7708 fi
  7709 ac_res=`eval echo '${'$as_ac_var'}'`
  7710 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  7711 echo "${ECHO_T}$ac_res" >&6; }
  7712 if test `eval echo '${'$as_ac_var'}'` = yes; then
  7713   cat >>confdefs.h <<_ACEOF
  7714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7715 _ACEOF
  7717 fi
  7718 done
  7720 	  MSGFMT_OPTS=
  7721 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
  7722 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
  7723 	  cat >conftest.foo <<_ACEOF
  7725 msgid ""
  7726 msgstr ""
  7727 "Content-Type: text/plain; charset=UTF-8\n"
  7728 "Project-Id-Version: test 1.0\n"
  7729 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  7730 "Last-Translator: test <foo@bar.xx>\n"
  7731 "Language-Team: C <LL@li.org>\n"
  7732 "MIME-Version: 1.0\n"
  7733 "Content-Transfer-Encoding: 8bit\n"
  7735 _ACEOF
  7736 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
  7737   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
  7738   ac_status=$?
  7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740   (exit $ac_status); }; then
  7741   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
  7742 echo "${ECHO_T}yes" >&6; }
  7743 else { echo "$as_me:$LINENO: result: no" >&5
  7744 echo "${ECHO_T}no" >&6; }
  7745 echo "$as_me: failed input was:" >&5
  7746 sed 's/^/| /' conftest.foo >&5
  7747 fi
  7749 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7750 set dummy gmsgfmt; ac_word=$2
  7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7753 if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7754   echo $ECHO_N "(cached) $ECHO_C" >&6
  7755 else
  7756   case $GMSGFMT in
  7757   [\\/]* | ?:[\\/]*)
  7758   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7759   ;;
  7760   *)
  7761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7762 for as_dir in $PATH
  7763 do
  7764   IFS=$as_save_IFS
  7765   test -z "$as_dir" && as_dir=.
  7766   for ac_exec_ext in '' $ac_executable_extensions; do
  7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7768     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7770     break 2
  7771   fi
  7772 done
  7773 done
  7774 IFS=$as_save_IFS
  7776   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7777   ;;
  7778 esac
  7779 fi
  7780 GMSGFMT=$ac_cv_path_GMSGFMT
  7781 if test -n "$GMSGFMT"; then
  7782   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7783 echo "${ECHO_T}$GMSGFMT" >&6; }
  7784 else
  7785   { echo "$as_me:$LINENO: result: no" >&5
  7786 echo "${ECHO_T}no" >&6; }
  7787 fi
  7790 	  # Extract the first word of "xgettext", so it can be a program name with args.
  7791 set dummy xgettext; ac_word=$2
  7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7794 if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7795   echo $ECHO_N "(cached) $ECHO_C" >&6
  7796 else
  7797   case "$XGETTEXT" in
  7798   /*)
  7799   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7800   ;;
  7801   *)
  7802   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  7803   for ac_dir in $PATH; do
  7804     test -z "$ac_dir" && ac_dir=.
  7805     if test -f $ac_dir/$ac_word; then
  7806       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  7807 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  7808 	break
  7809       fi
  7810     fi
  7811   done
  7812   IFS="$ac_save_ifs"
  7813   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7814   ;;
  7815 esac
  7816 fi
  7817 XGETTEXT="$ac_cv_path_XGETTEXT"
  7818 if test "$XGETTEXT" != ":"; then
  7819   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7820 echo "${ECHO_T}$XGETTEXT" >&6; }
  7821 else
  7822   { echo "$as_me:$LINENO: result: no" >&5
  7823 echo "${ECHO_T}no" >&6; }
  7824 fi
  7826 	  cat >conftest.$ac_ext <<_ACEOF
  7827 /* confdefs.h.  */
  7828 _ACEOF
  7829 cat confdefs.h >>conftest.$ac_ext
  7830 cat >>conftest.$ac_ext <<_ACEOF
  7831 /* end confdefs.h.  */
  7833 int
  7834 main ()
  7836 extern int _nl_msg_cat_cntr;
  7837 			 return _nl_msg_cat_cntr
  7839   return 0;
  7841 _ACEOF
  7842 rm -f conftest.$ac_objext conftest$ac_exeext
  7843 if { (ac_try="$ac_link"
  7844 case "(($ac_try" in
  7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7846   *) ac_try_echo=$ac_try;;
  7847 esac
  7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7849   (eval "$ac_link") 2>conftest.er1
  7850   ac_status=$?
  7851   grep -v '^ *+' conftest.er1 >conftest.err
  7852   rm -f conftest.er1
  7853   cat conftest.err >&5
  7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7855   (exit $ac_status); } && {
  7856 	 test -z "$ac_c_werror_flag" ||
  7857 	 test ! -s conftest.err
  7858        } && test -s conftest$ac_exeext &&
  7859        $as_test_x conftest$ac_exeext; then
  7860   CATOBJEXT=.gmo
  7861              DATADIRNAME=share
  7862 else
  7863   echo "$as_me: failed program was:" >&5
  7864 sed 's/^/| /' conftest.$ac_ext >&5
  7866 	case $host in
  7867 	    *-*-solaris*)
  7868 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  7869 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
  7870 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  7871   echo $ECHO_N "(cached) $ECHO_C" >&6
  7872 else
  7873   cat >conftest.$ac_ext <<_ACEOF
  7874 /* confdefs.h.  */
  7875 _ACEOF
  7876 cat confdefs.h >>conftest.$ac_ext
  7877 cat >>conftest.$ac_ext <<_ACEOF
  7878 /* end confdefs.h.  */
  7879 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  7880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7881 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  7883 /* System header to define __stub macros and hopefully few prototypes,
  7884     which can conflict with char bind_textdomain_codeset (); below.
  7885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7886     <limits.h> exists even on freestanding compilers.  */
  7888 #ifdef __STDC__
  7889 # include <limits.h>
  7890 #else
  7891 # include <assert.h>
  7892 #endif
  7894 #undef bind_textdomain_codeset
  7896 /* Override any GCC internal prototype to avoid an error.
  7897    Use char because int might match the return type of a GCC
  7898    builtin and then its argument prototype would still apply.  */
  7899 #ifdef __cplusplus
  7900 extern "C"
  7901 #endif
  7902 char bind_textdomain_codeset ();
  7903 /* The GNU C library defines this for functions which it implements
  7904     to always fail with ENOSYS.  Some functions are actually named
  7905     something starting with __ and the normal name is an alias.  */
  7906 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
  7907 choke me
  7908 #endif
  7910 int
  7911 main ()
  7913 return bind_textdomain_codeset ();
  7915   return 0;
  7917 _ACEOF
  7918 rm -f conftest.$ac_objext conftest$ac_exeext
  7919 if { (ac_try="$ac_link"
  7920 case "(($ac_try" in
  7921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7922   *) ac_try_echo=$ac_try;;
  7923 esac
  7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7925   (eval "$ac_link") 2>conftest.er1
  7926   ac_status=$?
  7927   grep -v '^ *+' conftest.er1 >conftest.err
  7928   rm -f conftest.er1
  7929   cat conftest.err >&5
  7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7931   (exit $ac_status); } && {
  7932 	 test -z "$ac_c_werror_flag" ||
  7933 	 test ! -s conftest.err
  7934        } && test -s conftest$ac_exeext &&
  7935        $as_test_x conftest$ac_exeext; then
  7936   ac_cv_func_bind_textdomain_codeset=yes
  7937 else
  7938   echo "$as_me: failed program was:" >&5
  7939 sed 's/^/| /' conftest.$ac_ext >&5
  7941 	ac_cv_func_bind_textdomain_codeset=no
  7942 fi
  7944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7945       conftest$ac_exeext conftest.$ac_ext
  7946 fi
  7947 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
  7948 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
  7949 if test $ac_cv_func_bind_textdomain_codeset = yes; then
  7950   CATOBJEXT=.gmo
  7951                DATADIRNAME=share
  7952 else
  7953   CATOBJEXT=.mo
  7954                DATADIRNAME=lib
  7955 fi
  7957 	    ;;
  7958 	    *)
  7959 	    CATOBJEXT=.mo
  7960             DATADIRNAME=lib
  7961 	    ;;
  7962 	    esac
  7963 fi
  7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7966       conftest$ac_exeext conftest.$ac_ext
  7967           LIBS="$glib_save_LIBS"
  7968 	  INSTOBJEXT=.mo
  7969 	else
  7970 	  gt_cv_have_gettext=no
  7971 	fi
  7972       fi
  7974 fi
  7978     if test "$gt_cv_have_gettext" = "yes" ; then
  7980 cat >>confdefs.h <<\_ACEOF
  7981 #define ENABLE_NLS 1
  7982 _ACEOF
  7984     fi
  7986         if test "$XGETTEXT" != ":"; then
  7987                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  7988         : ;
  7989       else
  7990         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7991 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7992         XGETTEXT=":"
  7993       fi
  7994     fi
  7996     # We need to process the po/ directory.
  7997     POSUB=po
  7999     ac_config_commands="$ac_config_commands default-1"
  8002                 for lang in $ALL_LINGUAS; do
  8003       GMOFILES="$GMOFILES $lang.gmo"
  8004       POFILES="$POFILES $lang.po"
  8005     done
  8019    if test "$gt_cv_have_gettext" = "yes"; then
  8020      if test "x$ALL_LINGUAS" = "x"; then
  8021        LINGUAS=
  8022      else
  8023        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  8024 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
  8025        NEW_LINGUAS=
  8026        for presentlang in $ALL_LINGUAS; do
  8027          useit=no
  8028          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  8029            desiredlanguages="$LINGUAS"
  8030          else
  8031            desiredlanguages="$ALL_LINGUAS"
  8032          fi
  8033          for desiredlang in $desiredlanguages; do
  8034  	   # Use the presentlang catalog if desiredlang is
  8035            #   a. equal to presentlang, or
  8036            #   b. a variant of presentlang (because in this case,
  8037            #      presentlang can be used as a fallback for messages
  8038            #      which are not translated in the desiredlang catalog).
  8039            case "$desiredlang" in
  8040              "$presentlang"*) useit=yes;;
  8041            esac
  8042          done
  8043          if test $useit = yes; then
  8044            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  8045          fi
  8046        done
  8047        LINGUAS=$NEW_LINGUAS
  8048        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
  8049 echo "${ECHO_T}$LINGUAS" >&6; }
  8050      fi
  8052           if test -n "$LINGUAS"; then
  8053        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  8054      fi
  8055    fi
  8057             MKINSTALLDIRS=
  8058    if test -n "$ac_aux_dir"; then
  8059      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  8060    fi
  8061    if test -z "$MKINSTALLDIRS"; then
  8062      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  8063    fi
  8066          test -d po || mkdir po
  8067    if test "x$srcdir" != "x."; then
  8068      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  8069        posrcprefix="$srcdir/"
  8070      else
  8071        posrcprefix="../$srcdir/"
  8072      fi
  8073    else
  8074      posrcprefix="../"
  8075    fi
  8076    rm -f po/POTFILES
  8077    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  8078 	< $srcdir/po/POTFILES.in > po/POTFILES
  8081 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
  8083 cat >confcache <<\_ACEOF
  8084 # This file is a shell script that caches the results of configure
  8085 # tests run on this system so they can be shared between configure
  8086 # scripts and configure runs, see configure's option --config-cache.
  8087 # It is not useful on other systems.  If it contains results you don't
  8088 # want to keep, you may remove or edit it.
  8090 # config.status only pays attention to the cache file if you give it
  8091 # the --recheck option to rerun configure.
  8093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8095 # following values.
  8097 _ACEOF
  8099 # The following way of writing the cache mishandles newlines in values,
  8100 # but we know of no workaround that is simple, portable, and efficient.
  8101 # So, we kill variables containing newlines.
  8102 # Ultrix sh set writes to stderr and can't be redirected directly,
  8103 # and sets the high bit in the cache file unless we assign to the vars.
  8105   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8106     eval ac_val=\$$ac_var
  8107     case $ac_val in #(
  8108     *${as_nl}*)
  8109       case $ac_var in #(
  8110       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  8111 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  8112       esac
  8113       case $ac_var in #(
  8114       _ | IFS | as_nl) ;; #(
  8115       *) $as_unset $ac_var ;;
  8116       esac ;;
  8117     esac
  8118   done
  8120   (set) 2>&1 |
  8121     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8122     *${as_nl}ac_space=\ *)
  8123       # `set' does not quote correctly, so add quotes (double-quote
  8124       # substitution turns \\\\ into \\, and sed turns \\ into \).
  8125       sed -n \
  8126 	"s/'/'\\\\''/g;
  8127 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8128       ;; #(
  8129     *)
  8130       # `set' quotes correctly as required by POSIX, so do not add quotes.
  8131       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8132       ;;
  8133     esac |
  8134     sort
  8135 ) |
  8136   sed '
  8137      /^ac_cv_env_/b end
  8138      t clear
  8139      :clear
  8140      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8141      t end
  8142      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8143      :end' >>confcache
  8144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8145   if test -w "$cache_file"; then
  8146     test "x$cache_file" != "x/dev/null" &&
  8147       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8148 echo "$as_me: updating cache $cache_file" >&6;}
  8149     cat confcache >$cache_file
  8150   else
  8151     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8152 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8153   fi
  8154 fi
  8155 rm -f confcache
  8157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8158 # Let make expand exec_prefix.
  8159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8161 DEFS=-DHAVE_CONFIG_H
  8163 ac_libobjs=
  8164 ac_ltlibobjs=
  8165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8166   # 1. Remove the extension, and $U if already installed.
  8167   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8168   ac_i=`echo "$ac_i" | sed "$ac_script"`
  8169   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  8170   #    will be set to the directory where LIBOBJS objects are built.
  8171   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8172   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  8173 done
  8174 LIBOBJS=$ac_libobjs
  8176 LTLIBOBJS=$ac_ltlibobjs
  8179 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  8180   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  8181 Usually this means the macro was only invoked conditionally." >&5
  8182 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  8183 Usually this means the macro was only invoked conditionally." >&2;}
  8184    { (exit 1); exit 1; }; }
  8185 fi
  8186 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8187   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8188 Usually this means the macro was only invoked conditionally." >&5
  8189 echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8190 Usually this means the macro was only invoked conditionally." >&2;}
  8191    { (exit 1); exit 1; }; }
  8192 fi
  8193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8194   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8195 Usually this means the macro was only invoked conditionally." >&5
  8196 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8197 Usually this means the macro was only invoked conditionally." >&2;}
  8198    { (exit 1); exit 1; }; }
  8199 fi
  8200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8201   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8202 Usually this means the macro was only invoked conditionally." >&5
  8203 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8204 Usually this means the macro was only invoked conditionally." >&2;}
  8205    { (exit 1); exit 1; }; }
  8206 fi
  8207 if test -z "${GUI_CARBON_TRUE}" && test -z "${GUI_CARBON_FALSE}"; then
  8208   { { echo "$as_me:$LINENO: error: conditional \"GUI_CARBON\" was never defined.
  8209 Usually this means the macro was only invoked conditionally." >&5
  8210 echo "$as_me: error: conditional \"GUI_CARBON\" was never defined.
  8211 Usually this means the macro was only invoked conditionally." >&2;}
  8212    { (exit 1); exit 1; }; }
  8213 fi
  8214 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
  8215   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
  8216 Usually this means the macro was only invoked conditionally." >&5
  8217 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
  8218 Usually this means the macro was only invoked conditionally." >&2;}
  8219    { (exit 1); exit 1; }; }
  8220 fi
  8221 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
  8222   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
  8223 Usually this means the macro was only invoked conditionally." >&5
  8224 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
  8225 Usually this means the macro was only invoked conditionally." >&2;}
  8226    { (exit 1); exit 1; }; }
  8227 fi
  8228 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
  8229   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
  8230 Usually this means the macro was only invoked conditionally." >&5
  8231 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
  8232 Usually this means the macro was only invoked conditionally." >&2;}
  8233    { (exit 1); exit 1; }; }
  8234 fi
  8235 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
  8236   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
  8237 Usually this means the macro was only invoked conditionally." >&5
  8238 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
  8239 Usually this means the macro was only invoked conditionally." >&2;}
  8240    { (exit 1); exit 1; }; }
  8241 fi
  8242 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
  8243   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
  8244 Usually this means the macro was only invoked conditionally." >&5
  8245 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
  8246 Usually this means the macro was only invoked conditionally." >&2;}
  8247    { (exit 1); exit 1; }; }
  8248 fi
  8249 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
  8250   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
  8251 Usually this means the macro was only invoked conditionally." >&5
  8252 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
  8253 Usually this means the macro was only invoked conditionally." >&2;}
  8254    { (exit 1); exit 1; }; }
  8255 fi
  8256 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
  8257   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
  8258 Usually this means the macro was only invoked conditionally." >&5
  8259 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
  8260 Usually this means the macro was only invoked conditionally." >&2;}
  8261    { (exit 1); exit 1; }; }
  8262 fi
  8263 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
  8264   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
  8265 Usually this means the macro was only invoked conditionally." >&5
  8266 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
  8267 Usually this means the macro was only invoked conditionally." >&2;}
  8268    { (exit 1); exit 1; }; }
  8269 fi
  8271 : ${CONFIG_STATUS=./config.status}
  8272 ac_clean_files_save=$ac_clean_files
  8273 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8274 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8275 echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8276 cat >$CONFIG_STATUS <<_ACEOF
  8277 #! $SHELL
  8278 # Generated by $as_me.
  8279 # Run this file to recreate the current configuration.
  8280 # Compiler output produced by configure, useful for debugging
  8281 # configure, is in config.log if it exists.
  8283 debug=false
  8284 ac_cs_recheck=false
  8285 ac_cs_silent=false
  8286 SHELL=\${CONFIG_SHELL-$SHELL}
  8287 _ACEOF
  8289 cat >>$CONFIG_STATUS <<\_ACEOF
  8290 ## --------------------- ##
  8291 ## M4sh Initialization.  ##
  8292 ## --------------------- ##
  8294 # Be more Bourne compatible
  8295 DUALCASE=1; export DUALCASE # for MKS sh
  8296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8297   emulate sh
  8298   NULLCMD=:
  8299   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8300   # is contrary to our usage.  Disable this feature.
  8301   alias -g '${1+"$@"}'='"$@"'
  8302   setopt NO_GLOB_SUBST
  8303 else
  8304   case `(set -o) 2>/dev/null` in
  8305   *posix*) set -o posix ;;
  8306 esac
  8308 fi
  8313 # PATH needs CR
  8314 # Avoid depending upon Character Ranges.
  8315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8318 as_cr_digits='0123456789'
  8319 as_cr_alnum=$as_cr_Letters$as_cr_digits
  8321 # The user is always right.
  8322 if test "${PATH_SEPARATOR+set}" != set; then
  8323   echo "#! /bin/sh" >conf$$.sh
  8324   echo  "exit 0"   >>conf$$.sh
  8325   chmod +x conf$$.sh
  8326   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8327     PATH_SEPARATOR=';'
  8328   else
  8329     PATH_SEPARATOR=:
  8330   fi
  8331   rm -f conf$$.sh
  8332 fi
  8334 # Support unset when possible.
  8335 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8336   as_unset=unset
  8337 else
  8338   as_unset=false
  8339 fi
  8342 # IFS
  8343 # We need space, tab and new line, in precisely that order.  Quoting is
  8344 # there to prevent editors from complaining about space-tab.
  8345 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8346 # splitting by setting IFS to empty value.)
  8347 as_nl='
  8349 IFS=" ""	$as_nl"
  8351 # Find who we are.  Look in the path if we contain no directory separator.
  8352 case $0 in
  8353   *[\\/]* ) as_myself=$0 ;;
  8354   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8355 for as_dir in $PATH
  8356 do
  8357   IFS=$as_save_IFS
  8358   test -z "$as_dir" && as_dir=.
  8359   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8360 done
  8361 IFS=$as_save_IFS
  8363      ;;
  8364 esac
  8365 # We did not find ourselves, most probably we were run as `sh COMMAND'
  8366 # in which case we are not to be found in the path.
  8367 if test "x$as_myself" = x; then
  8368   as_myself=$0
  8369 fi
  8370 if test ! -f "$as_myself"; then
  8371   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8372   { (exit 1); exit 1; }
  8373 fi
  8375 # Work around bugs in pre-3.0 UWIN ksh.
  8376 for as_var in ENV MAIL MAILPATH
  8377 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8378 done
  8379 PS1='$ '
  8380 PS2='> '
  8381 PS4='+ '
  8383 # NLS nuisances.
  8384 for as_var in \
  8385   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8386   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8387   LC_TELEPHONE LC_TIME
  8388 do
  8389   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8390     eval $as_var=C; export $as_var
  8391   else
  8392     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8393   fi
  8394 done
  8396 # Required to use basename.
  8397 if expr a : '\(a\)' >/dev/null 2>&1 &&
  8398    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8399   as_expr=expr
  8400 else
  8401   as_expr=false
  8402 fi
  8404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8405   as_basename=basename
  8406 else
  8407   as_basename=false
  8408 fi
  8411 # Name of the executable.
  8412 as_me=`$as_basename -- "$0" ||
  8413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8414 	 X"$0" : 'X\(//\)$' \| \
  8415 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8416 echo X/"$0" |
  8417     sed '/^.*\/\([^/][^/]*\)\/*$/{
  8418 	    s//\1/
  8421 	  /^X\/\(\/\/\)$/{
  8422 	    s//\1/
  8425 	  /^X\/\(\/\).*/{
  8426 	    s//\1/
  8429 	  s/.*/./; q'`
  8431 # CDPATH.
  8432 $as_unset CDPATH
  8436   as_lineno_1=$LINENO
  8437   as_lineno_2=$LINENO
  8438   test "x$as_lineno_1" != "x$as_lineno_2" &&
  8439   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  8441   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8442   # uniformly replaced by the line number.  The first 'sed' inserts a
  8443   # line-number line after each line using $LINENO; the second 'sed'
  8444   # does the real work.  The second script uses 'N' to pair each
  8445   # line-number line with the line containing $LINENO, and appends
  8446   # trailing '-' during substitution so that $LINENO is not a special
  8447   # case at line end.
  8448   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8449   # scripts with optimization help from Paolo Bonzini.  Blame Lee
  8450   # E. McMahon (1931-1989) for sed's syntax.  :-)
  8451   sed -n '
  8453     /[$]LINENO/=
  8454   ' <$as_myself |
  8455     sed '
  8456       s/[$]LINENO.*/&-/
  8457       t lineno
  8459       :lineno
  8461       :loop
  8462       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8463       t loop
  8464       s/-\n.*//
  8465     ' >$as_me.lineno &&
  8466   chmod +x "$as_me.lineno" ||
  8467     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8468    { (exit 1); exit 1; }; }
  8470   # Don't try to exec as it changes $[0], causing all sort of problems
  8471   # (the dirname of $[0] is not the place where we might find the
  8472   # original and so on.  Autoconf is especially sensitive to this).
  8473   . "./$as_me.lineno"
  8474   # Exit status is that of the last command.
  8475   exit
  8479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8480   as_dirname=dirname
  8481 else
  8482   as_dirname=false
  8483 fi
  8485 ECHO_C= ECHO_N= ECHO_T=
  8486 case `echo -n x` in
  8487 -n*)
  8488   case `echo 'x\c'` in
  8489   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  8490   *)   ECHO_C='\c';;
  8491   esac;;
  8492 *)
  8493   ECHO_N='-n';;
  8494 esac
  8496 if expr a : '\(a\)' >/dev/null 2>&1 &&
  8497    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8498   as_expr=expr
  8499 else
  8500   as_expr=false
  8501 fi
  8503 rm -f conf$$ conf$$.exe conf$$.file
  8504 if test -d conf$$.dir; then
  8505   rm -f conf$$.dir/conf$$.file
  8506 else
  8507   rm -f conf$$.dir
  8508   mkdir conf$$.dir
  8509 fi
  8510 echo >conf$$.file
  8511 if ln -s conf$$.file conf$$ 2>/dev/null; then
  8512   as_ln_s='ln -s'
  8513   # ... but there are two gotchas:
  8514   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8515   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8516   # In both cases, we have to default to `cp -p'.
  8517   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8518     as_ln_s='cp -p'
  8519 elif ln conf$$.file conf$$ 2>/dev/null; then
  8520   as_ln_s=ln
  8521 else
  8522   as_ln_s='cp -p'
  8523 fi
  8524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8525 rmdir conf$$.dir 2>/dev/null
  8527 if mkdir -p . 2>/dev/null; then
  8528   as_mkdir_p=:
  8529 else
  8530   test -d ./-p && rmdir ./-p
  8531   as_mkdir_p=false
  8532 fi
  8534 if test -x / >/dev/null 2>&1; then
  8535   as_test_x='test -x'
  8536 else
  8537   if ls -dL / >/dev/null 2>&1; then
  8538     as_ls_L_option=L
  8539   else
  8540     as_ls_L_option=
  8541   fi
  8542   as_test_x='
  8543     eval sh -c '\''
  8544       if test -d "$1"; then
  8545         test -d "$1/.";
  8546       else
  8547 	case $1 in
  8548         -*)set "./$1";;
  8549 	esac;
  8550 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  8551 	???[sx]*):;;*)false;;esac;fi
  8552     '\'' sh
  8554 fi
  8555 as_executable_p=$as_test_x
  8557 # Sed expression to map a string onto a valid CPP name.
  8558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8560 # Sed expression to map a string onto a valid variable name.
  8561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8564 exec 6>&1
  8566 # Save the log message, to keep $[0] and so on meaningful, and to
  8567 # report actual input values of CONFIG_FILES etc. instead of their
  8568 # values after options handling.
  8569 ac_log="
  8570 This file was extended by $as_me, which was
  8571 generated by GNU Autoconf 2.61.  Invocation command line was
  8573   CONFIG_FILES    = $CONFIG_FILES
  8574   CONFIG_HEADERS  = $CONFIG_HEADERS
  8575   CONFIG_LINKS    = $CONFIG_LINKS
  8576   CONFIG_COMMANDS = $CONFIG_COMMANDS
  8577   $ $0 $@
  8579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8582 _ACEOF
  8584 cat >>$CONFIG_STATUS <<_ACEOF
  8585 # Files that config.status was made for.
  8586 config_files="$ac_config_files"
  8587 config_headers="$ac_config_headers"
  8588 config_commands="$ac_config_commands"
  8590 _ACEOF
  8592 cat >>$CONFIG_STATUS <<\_ACEOF
  8593 ac_cs_usage="\
  8594 \`$as_me' instantiates files from templates according to the
  8595 current configuration.
  8597 Usage: $0 [OPTIONS] [FILE]...
  8599   -h, --help       print this help, then exit
  8600   -V, --version    print version number and configuration settings, then exit
  8601   -q, --quiet      do not print progress messages
  8602   -d, --debug      don't remove temporary files
  8603       --recheck    update $as_me by reconfiguring in the same conditions
  8604   --file=FILE[:TEMPLATE]
  8605 		   instantiate the configuration file FILE
  8606   --header=FILE[:TEMPLATE]
  8607 		   instantiate the configuration header FILE
  8609 Configuration files:
  8610 $config_files
  8612 Configuration headers:
  8613 $config_headers
  8615 Configuration commands:
  8616 $config_commands
  8618 Report bugs to <bug-autoconf@gnu.org>."
  8620 _ACEOF
  8621 cat >>$CONFIG_STATUS <<_ACEOF
  8622 ac_cs_version="\\
  8623 config.status
  8624 configured by $0, generated by GNU Autoconf 2.61,
  8625   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  8627 Copyright (C) 2006 Free Software Foundation, Inc.
  8628 This config.status script is free software; the Free Software Foundation
  8629 gives unlimited permission to copy, distribute and modify it."
  8631 ac_pwd='$ac_pwd'
  8632 srcdir='$srcdir'
  8633 INSTALL='$INSTALL'
  8634 _ACEOF
  8636 cat >>$CONFIG_STATUS <<\_ACEOF
  8637 # If no file are specified by the user, then we need to provide default
  8638 # value.  By we need to know if files were specified by the user.
  8639 ac_need_defaults=:
  8640 while test $# != 0
  8641 do
  8642   case $1 in
  8643   --*=*)
  8644     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8645     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8646     ac_shift=:
  8647     ;;
  8648   *)
  8649     ac_option=$1
  8650     ac_optarg=$2
  8651     ac_shift=shift
  8652     ;;
  8653   esac
  8655   case $ac_option in
  8656   # Handling of the options.
  8657   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8658     ac_cs_recheck=: ;;
  8659   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8660     echo "$ac_cs_version"; exit ;;
  8661   --debug | --debu | --deb | --de | --d | -d )
  8662     debug=: ;;
  8663   --file | --fil | --fi | --f )
  8664     $ac_shift
  8665     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8666     ac_need_defaults=false;;
  8667   --header | --heade | --head | --hea )
  8668     $ac_shift
  8669     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8670     ac_need_defaults=false;;
  8671   --he | --h)
  8672     # Conflict between --help and --header
  8673     { echo "$as_me: error: ambiguous option: $1
  8674 Try \`$0 --help' for more information." >&2
  8675    { (exit 1); exit 1; }; };;
  8676   --help | --hel | -h )
  8677     echo "$ac_cs_usage"; exit ;;
  8678   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8679   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8680     ac_cs_silent=: ;;
  8682   # This is an error.
  8683   -*) { echo "$as_me: error: unrecognized option: $1
  8684 Try \`$0 --help' for more information." >&2
  8685    { (exit 1); exit 1; }; } ;;
  8687   *) ac_config_targets="$ac_config_targets $1"
  8688      ac_need_defaults=false ;;
  8690   esac
  8691   shift
  8692 done
  8694 ac_configure_extra_args=
  8696 if $ac_cs_silent; then
  8697   exec 6>/dev/null
  8698   ac_configure_extra_args="$ac_configure_extra_args --silent"
  8699 fi
  8701 _ACEOF
  8702 cat >>$CONFIG_STATUS <<_ACEOF
  8703 if \$ac_cs_recheck; then
  8704   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8705   CONFIG_SHELL=$SHELL
  8706   export CONFIG_SHELL
  8707   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8708 fi
  8710 _ACEOF
  8711 cat >>$CONFIG_STATUS <<\_ACEOF
  8712 exec 5>>config.log
  8714   echo
  8715   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8716 ## Running $as_me. ##
  8717 _ASBOX
  8718   echo "$ac_log"
  8719 } >&5
  8721 _ACEOF
  8722 cat >>$CONFIG_STATUS <<_ACEOF
  8724 # INIT-COMMANDS
  8726 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8729 _ACEOF
  8731 cat >>$CONFIG_STATUS <<\_ACEOF
  8733 # Handling of arguments.
  8734 for ac_config_target in $ac_config_targets
  8735 do
  8736   case $ac_config_target in
  8737     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8738     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8739     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8740     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8741     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8742     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  8743     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  8745   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8746 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8747    { (exit 1); exit 1; }; };;
  8748   esac
  8749 done
  8752 # If the user did not use the arguments to specify the items to instantiate,
  8753 # then the envvar interface is used.  Set only those that are not.
  8754 # We use the long form for the default assignment because of an extremely
  8755 # bizarre bug on SunOS 4.1.3.
  8756 if $ac_need_defaults; then
  8757   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8758   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8759   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8760 fi
  8762 # Have a temporary directory for convenience.  Make it in the build tree
  8763 # simply because there is no reason against having it here, and in addition,
  8764 # creating and moving files from /tmp can sometimes cause problems.
  8765 # Hook for its removal unless debugging.
  8766 # Note that there is a small window in which the directory will not be cleaned:
  8767 # after its creation but before its name has been assigned to `$tmp'.
  8768 $debug ||
  8770   tmp=
  8771   trap 'exit_status=$?
  8772   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  8773 ' 0
  8774   trap '{ (exit 1); exit 1; }' 1 2 13 15
  8776 # Create a (secure) tmp directory for tmp files.
  8779   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8780   test -n "$tmp" && test -d "$tmp"
  8781 }  ||
  8783   tmp=./conf$$-$RANDOM
  8784   (umask 077 && mkdir "$tmp")
  8785 } ||
  8787    echo "$me: cannot create a temporary directory in ." >&2
  8788    { (exit 1); exit 1; }
  8792 # Set up the sed scripts for CONFIG_FILES section.
  8795 # No need to generate the scripts if there are no CONFIG_FILES.
  8796 # This happens for instance when ./config.status config.h
  8797 if test -n "$CONFIG_FILES"; then
  8799 _ACEOF
  8803 ac_delim='%!_!# '
  8804 for ac_last_try in false false false false false :; do
  8805   cat >conf$$subs.sed <<_ACEOF
  8806 SHELL!$SHELL$ac_delim
  8807 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  8808 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  8809 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  8810 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  8811 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  8812 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  8813 exec_prefix!$exec_prefix$ac_delim
  8814 prefix!$prefix$ac_delim
  8815 program_transform_name!$program_transform_name$ac_delim
  8816 bindir!$bindir$ac_delim
  8817 sbindir!$sbindir$ac_delim
  8818 libexecdir!$libexecdir$ac_delim
  8819 datarootdir!$datarootdir$ac_delim
  8820 datadir!$datadir$ac_delim
  8821 sysconfdir!$sysconfdir$ac_delim
  8822 sharedstatedir!$sharedstatedir$ac_delim
  8823 localstatedir!$localstatedir$ac_delim
  8824 includedir!$includedir$ac_delim
  8825 oldincludedir!$oldincludedir$ac_delim
  8826 docdir!$docdir$ac_delim
  8827 infodir!$infodir$ac_delim
  8828 htmldir!$htmldir$ac_delim
  8829 dvidir!$dvidir$ac_delim
  8830 pdfdir!$pdfdir$ac_delim
  8831 psdir!$psdir$ac_delim
  8832 libdir!$libdir$ac_delim
  8833 localedir!$localedir$ac_delim
  8834 mandir!$mandir$ac_delim
  8835 DEFS!$DEFS$ac_delim
  8836 ECHO_C!$ECHO_C$ac_delim
  8837 ECHO_N!$ECHO_N$ac_delim
  8838 ECHO_T!$ECHO_T$ac_delim
  8839 LIBS!$LIBS$ac_delim
  8840 build_alias!$build_alias$ac_delim
  8841 host_alias!$host_alias$ac_delim
  8842 target_alias!$target_alias$ac_delim
  8843 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  8844 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  8845 INSTALL_DATA!$INSTALL_DATA$ac_delim
  8846 CYGPATH_W!$CYGPATH_W$ac_delim
  8847 PACKAGE!$PACKAGE$ac_delim
  8848 VERSION!$VERSION$ac_delim
  8849 ACLOCAL!$ACLOCAL$ac_delim
  8850 AUTOCONF!$AUTOCONF$ac_delim
  8851 AUTOMAKE!$AUTOMAKE$ac_delim
  8852 AUTOHEADER!$AUTOHEADER$ac_delim
  8853 MAKEINFO!$MAKEINFO$ac_delim
  8854 AMTAR!$AMTAR$ac_delim
  8855 install_sh!$install_sh$ac_delim
  8856 STRIP!$STRIP$ac_delim
  8857 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  8858 AWK!$AWK$ac_delim
  8859 SET_MAKE!$SET_MAKE$ac_delim
  8860 am__leading_dot!$am__leading_dot$ac_delim
  8861 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  8862 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  8863 MAINT!$MAINT$ac_delim
  8864 CC!$CC$ac_delim
  8865 CFLAGS!$CFLAGS$ac_delim
  8866 LDFLAGS!$LDFLAGS$ac_delim
  8867 CPPFLAGS!$CPPFLAGS$ac_delim
  8868 ac_ct_CC!$ac_ct_CC$ac_delim
  8869 EXEEXT!$EXEEXT$ac_delim
  8870 OBJEXT!$OBJEXT$ac_delim
  8871 DEPDIR!$DEPDIR$ac_delim
  8872 am__include!$am__include$ac_delim
  8873 am__quote!$am__quote$ac_delim
  8874 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  8875 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  8876 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  8877 CCDEPMODE!$CCDEPMODE$ac_delim
  8878 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  8879 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  8880 CCAS!$CCAS$ac_delim
  8881 CCASFLAGS!$CCASFLAGS$ac_delim
  8882 CPP!$CPP$ac_delim
  8883 GREP!$GREP$ac_delim
  8884 EGREP!$EGREP$ac_delim
  8885 build!$build$ac_delim
  8886 build_cpu!$build_cpu$ac_delim
  8887 build_vendor!$build_vendor$ac_delim
  8888 build_os!$build_os$ac_delim
  8889 host!$host$ac_delim
  8890 host_cpu!$host_cpu$ac_delim
  8891 host_vendor!$host_vendor$ac_delim
  8892 host_os!$host_os$ac_delim
  8893 PKG_CONFIG!$PKG_CONFIG$ac_delim
  8894 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
  8895 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
  8896 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
  8897 GTK_LIBS!$GTK_LIBS$ac_delim
  8898 GUI_CARBON_TRUE!$GUI_CARBON_TRUE$ac_delim
  8899 GUI_CARBON_FALSE!$GUI_CARBON_FALSE$ac_delim
  8900 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
  8901 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
  8902 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
  8903 _ACEOF
  8905   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  8906     break
  8907   elif $ac_last_try; then
  8908     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  8909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  8910    { (exit 1); exit 1; }; }
  8911   else
  8912     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8913   fi
  8914 done
  8916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  8917 if test -n "$ac_eof"; then
  8918   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  8919   ac_eof=`expr $ac_eof + 1`
  8920 fi
  8922 cat >>$CONFIG_STATUS <<_ACEOF
  8923 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  8924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8925 _ACEOF
  8926 sed '
  8927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  8928 s/^/s,@/; s/!/@,|#_!!_#|/
  8929 :n
  8930 t n
  8931 s/'"$ac_delim"'$/,g/; t
  8932 s/$/\\/; p
  8933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  8934 ' >>$CONFIG_STATUS <conf$$subs.sed
  8935 rm -f conf$$subs.sed
  8936 cat >>$CONFIG_STATUS <<_ACEOF
  8937 CEOF$ac_eof
  8938 _ACEOF
  8941 ac_delim='%!_!# '
  8942 for ac_last_try in false false false false false :; do
  8943   cat >conf$$subs.sed <<_ACEOF
  8944 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
  8945 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
  8946 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
  8947 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
  8948 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
  8949 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
  8950 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
  8951 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
  8952 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
  8953 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
  8954 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
  8955 SHCC!$SHCC$ac_delim
  8956 SHLD!$SHLD$ac_delim
  8957 SHOBJCOPY!$SHOBJCOPY$ac_delim
  8958 ARMCC!$ARMCC$ac_delim
  8959 ARMLD!$ARMLD$ac_delim
  8960 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
  8961 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
  8962 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
  8963 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
  8964 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
  8965 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
  8966 USE_NLS!$USE_NLS$ac_delim
  8967 MSGFMT!$MSGFMT$ac_delim
  8968 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
  8969 GMSGFMT!$GMSGFMT$ac_delim
  8970 XGETTEXT!$XGETTEXT$ac_delim
  8971 CATALOGS!$CATALOGS$ac_delim
  8972 CATOBJEXT!$CATOBJEXT$ac_delim
  8973 DATADIRNAME!$DATADIRNAME$ac_delim
  8974 GMOFILES!$GMOFILES$ac_delim
  8975 INSTOBJEXT!$INSTOBJEXT$ac_delim
  8976 INTLLIBS!$INTLLIBS$ac_delim
  8977 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
  8978 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
  8979 POFILES!$POFILES$ac_delim
  8980 POSUB!$POSUB$ac_delim
  8981 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  8982 LIBOBJS!$LIBOBJS$ac_delim
  8983 LTLIBOBJS!$LTLIBOBJS$ac_delim
  8984 _ACEOF
  8986   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
  8987     break
  8988   elif $ac_last_try; then
  8989     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  8990 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  8991    { (exit 1); exit 1; }; }
  8992   else
  8993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8994   fi
  8995 done
  8997 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  8998 if test -n "$ac_eof"; then
  8999   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  9000   ac_eof=`expr $ac_eof + 1`
  9001 fi
  9003 cat >>$CONFIG_STATUS <<_ACEOF
  9004 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  9005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  9006 _ACEOF
  9007 sed '
  9008 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  9009 s/^/s,@/; s/!/@,|#_!!_#|/
  9010 :n
  9011 t n
  9012 s/'"$ac_delim"'$/,g/; t
  9013 s/$/\\/; p
  9014 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  9015 ' >>$CONFIG_STATUS <conf$$subs.sed
  9016 rm -f conf$$subs.sed
  9017 cat >>$CONFIG_STATUS <<_ACEOF
  9018 :end
  9019 s/|#_!!_#|//g
  9020 CEOF$ac_eof
  9021 _ACEOF
  9024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9026 # trailing colons and then remove the whole line if VPATH becomes empty
  9027 # (actually we leave an empty line to preserve line numbers).
  9028 if test "x$srcdir" = x.; then
  9029   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
  9030 s/:*\$(srcdir):*/:/
  9031 s/:*\${srcdir}:*/:/
  9032 s/:*@srcdir@:*/:/
  9033 s/^\([^=]*=[	 ]*\):*/\1/
  9034 s/:*$//
  9035 s/^[^=]*=[	 ]*$//
  9036 }'
  9037 fi
  9039 cat >>$CONFIG_STATUS <<\_ACEOF
  9040 fi # test -n "$CONFIG_FILES"
  9043 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
  9044 do
  9045   case $ac_tag in
  9046   :[FHLC]) ac_mode=$ac_tag; continue;;
  9047   esac
  9048   case $ac_mode$ac_tag in
  9049   :[FHL]*:*);;
  9050   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  9051 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  9052    { (exit 1); exit 1; }; };;
  9053   :[FH]-) ac_tag=-:-;;
  9054   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9055   esac
  9056   ac_save_IFS=$IFS
  9057   IFS=:
  9058   set x $ac_tag
  9059   IFS=$ac_save_IFS
  9060   shift
  9061   ac_file=$1
  9062   shift
  9064   case $ac_mode in
  9065   :L) ac_source=$1;;
  9066   :[FH])
  9067     ac_file_inputs=
  9068     for ac_f
  9069     do
  9070       case $ac_f in
  9071       -) ac_f="$tmp/stdin";;
  9072       *) # Look for the file first in the build tree, then in the source tree
  9073 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  9074 	 # because $ac_f cannot contain `:'.
  9075 	 test -f "$ac_f" ||
  9076 	   case $ac_f in
  9077 	   [\\/$]*) false;;
  9078 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9079 	   esac ||
  9080 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  9081 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  9082    { (exit 1); exit 1; }; };;
  9083       esac
  9084       ac_file_inputs="$ac_file_inputs $ac_f"
  9085     done
  9087     # Let's still pretend it is `configure' which instantiates (i.e., don't
  9088     # use $as_me), people would be surprised to read:
  9089     #    /* config.h.  Generated by config.status.  */
  9090     configure_input="Generated from "`IFS=:
  9091 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  9092     if test x"$ac_file" != x-; then
  9093       configure_input="$ac_file.  $configure_input"
  9094       { echo "$as_me:$LINENO: creating $ac_file" >&5
  9095 echo "$as_me: creating $ac_file" >&6;}
  9096     fi
  9098     case $ac_tag in
  9099     *:-:* | *:-) cat >"$tmp/stdin";;
  9100     esac
  9101     ;;
  9102   esac
  9104   ac_dir=`$as_dirname -- "$ac_file" ||
  9105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9106 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  9107 	 X"$ac_file" : 'X\(//\)$' \| \
  9108 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9109 echo X"$ac_file" |
  9110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9111 	    s//\1/
  9114 	  /^X\(\/\/\)[^/].*/{
  9115 	    s//\1/
  9118 	  /^X\(\/\/\)$/{
  9119 	    s//\1/
  9122 	  /^X\(\/\).*/{
  9123 	    s//\1/
  9126 	  s/.*/./; q'`
  9127   { as_dir="$ac_dir"
  9128   case $as_dir in #(
  9129   -*) as_dir=./$as_dir;;
  9130   esac
  9131   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9132     as_dirs=
  9133     while :; do
  9134       case $as_dir in #(
  9135       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  9136       *) as_qdir=$as_dir;;
  9137       esac
  9138       as_dirs="'$as_qdir' $as_dirs"
  9139       as_dir=`$as_dirname -- "$as_dir" ||
  9140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9141 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  9142 	 X"$as_dir" : 'X\(//\)$' \| \
  9143 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9144 echo X"$as_dir" |
  9145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9146 	    s//\1/
  9149 	  /^X\(\/\/\)[^/].*/{
  9150 	    s//\1/
  9153 	  /^X\(\/\/\)$/{
  9154 	    s//\1/
  9157 	  /^X\(\/\).*/{
  9158 	    s//\1/
  9161 	  s/.*/./; q'`
  9162       test -d "$as_dir" && break
  9163     done
  9164     test -z "$as_dirs" || eval "mkdir $as_dirs"
  9165   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9166 echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9167    { (exit 1); exit 1; }; }; }
  9168   ac_builddir=.
  9170 case "$ac_dir" in
  9171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9172 *)
  9173   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9174   # A ".." for each directory in $ac_dir_suffix.
  9175   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  9176   case $ac_top_builddir_sub in
  9177   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9178   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9179   esac ;;
  9180 esac
  9181 ac_abs_top_builddir=$ac_pwd
  9182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9183 # for backward compatibility:
  9184 ac_top_builddir=$ac_top_build_prefix
  9186 case $srcdir in
  9187   .)  # We are building in place.
  9188     ac_srcdir=.
  9189     ac_top_srcdir=$ac_top_builddir_sub
  9190     ac_abs_top_srcdir=$ac_pwd ;;
  9191   [\\/]* | ?:[\\/]* )  # Absolute name.
  9192     ac_srcdir=$srcdir$ac_dir_suffix;
  9193     ac_top_srcdir=$srcdir
  9194     ac_abs_top_srcdir=$srcdir ;;
  9195   *) # Relative name.
  9196     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9197     ac_top_srcdir=$ac_top_build_prefix$srcdir
  9198     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9199 esac
  9200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9203   case $ac_mode in
  9204   :F)
  9206   # CONFIG_FILE
  9209   case $INSTALL in
  9210   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9211   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9212   esac
  9213 _ACEOF
  9215 cat >>$CONFIG_STATUS <<\_ACEOF
  9216 # If the template does not know about datarootdir, expand it.
  9217 # FIXME: This hack should be removed a few years after 2.60.
  9218 ac_datarootdir_hack=; ac_datarootdir_seen=
  9220 case `sed -n '/datarootdir/ {
  9224 /@datadir@/p
  9225 /@docdir@/p
  9226 /@infodir@/p
  9227 /@localedir@/p
  9228 /@mandir@/p
  9229 ' $ac_file_inputs` in
  9230 *datarootdir*) ac_datarootdir_seen=yes;;
  9231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9232   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9233 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9234 _ACEOF
  9235 cat >>$CONFIG_STATUS <<_ACEOF
  9236   ac_datarootdir_hack='
  9237   s&@datadir@&$datadir&g
  9238   s&@docdir@&$docdir&g
  9239   s&@infodir@&$infodir&g
  9240   s&@localedir@&$localedir&g
  9241   s&@mandir@&$mandir&g
  9242     s&\\\${datarootdir}&$datarootdir&g' ;;
  9243 esac
  9244 _ACEOF
  9246 # Neutralize VPATH when `$srcdir' = `.'.
  9247 # Shell code in configure.ac might set extrasub.
  9248 # FIXME: do we really want to maintain this feature?
  9249 cat >>$CONFIG_STATUS <<_ACEOF
  9250   sed "$ac_vpsub
  9251 $extrasub
  9252 _ACEOF
  9253 cat >>$CONFIG_STATUS <<\_ACEOF
  9254 :t
  9255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9256 s&@configure_input@&$configure_input&;t t
  9257 s&@top_builddir@&$ac_top_builddir_sub&;t t
  9258 s&@srcdir@&$ac_srcdir&;t t
  9259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9260 s&@top_srcdir@&$ac_top_srcdir&;t t
  9261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9262 s&@builddir@&$ac_builddir&;t t
  9263 s&@abs_builddir@&$ac_abs_builddir&;t t
  9264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9265 s&@INSTALL@&$ac_INSTALL&;t t
  9266 $ac_datarootdir_hack
  9267 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  9269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9270   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  9271   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  9272   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9273 which seems to be undefined.  Please make sure it is defined." >&5
  9274 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9275 which seems to be undefined.  Please make sure it is defined." >&2;}
  9277   rm -f "$tmp/stdin"
  9278   case $ac_file in
  9279   -) cat "$tmp/out"; rm -f "$tmp/out";;
  9280   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  9281   esac
  9282  ;;
  9283   :H)
  9285   # CONFIG_HEADER
  9287 _ACEOF
  9289 # Transform confdefs.h into a sed script `conftest.defines', that
  9290 # substitutes the proper values into config.h.in to produce config.h.
  9291 rm -f conftest.defines conftest.tail
  9292 # First, append a space to every undef/define line, to ease matching.
  9293 echo 's/$/ /' >conftest.defines
  9294 # Then, protect against being on the right side of a sed subst, or in
  9295 # an unquoted here document, in config.status.  If some macros were
  9296 # called several times there might be several #defines for the same
  9297 # symbol, which is useless.  But do not sort them, since the last
  9298 # AC_DEFINE must be honored.
  9299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9300 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  9301 # NAME is the cpp macro being defined, VALUE is the value it is being given.
  9302 # PARAMS is the parameter list in the macro definition--in most cases, it's
  9303 # just an empty string.
  9304 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
  9305 ac_dB='\\)[	 (].*,\\1define\\2'
  9306 ac_dC=' '
  9307 ac_dD=' ,'
  9309 uniq confdefs.h |
  9310   sed -n '
  9311 	t rset
  9312 	:rset
  9313 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
  9314 	t ok
  9316 	:ok
  9317 	s/[\\&,]/\\&/g
  9318 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  9319 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  9320   ' >>conftest.defines
  9322 # Remove the space that was appended to ease matching.
  9323 # Then replace #undef with comments.  This is necessary, for
  9324 # example, in the case of _POSIX_SOURCE, which is predefined and required
  9325 # on some systems where configure will not decide to define it.
  9326 # (The regexp can be short, since the line contains either #define or #undef.)
  9327 echo 's/ $//
  9328 s,^[	 #]*u.*,/* & */,' >>conftest.defines
  9330 # Break up conftest.defines:
  9331 ac_max_sed_lines=50
  9333 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  9334 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  9335 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  9336 # et cetera.
  9337 ac_in='$ac_file_inputs'
  9338 ac_out='"$tmp/out1"'
  9339 ac_nxt='"$tmp/out2"'
  9341 while :
  9342 do
  9343   # Write a here document:
  9344     cat >>$CONFIG_STATUS <<_ACEOF
  9345     # First, check the format of the line:
  9346     cat >"\$tmp/defines.sed" <<\\CEOF
  9347 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
  9348 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
  9350 :def
  9351 _ACEOF
  9352   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  9353   echo 'CEOF
  9354     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  9355   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  9356   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  9357   grep . conftest.tail >/dev/null || break
  9358   rm -f conftest.defines
  9359   mv conftest.tail conftest.defines
  9360 done
  9361 rm -f conftest.defines conftest.tail
  9363 echo "ac_result=$ac_in" >>$CONFIG_STATUS
  9364 cat >>$CONFIG_STATUS <<\_ACEOF
  9365   if test x"$ac_file" != x-; then
  9366     echo "/* $configure_input  */" >"$tmp/config.h"
  9367     cat "$ac_result" >>"$tmp/config.h"
  9368     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  9369       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9370 echo "$as_me: $ac_file is unchanged" >&6;}
  9371     else
  9372       rm -f $ac_file
  9373       mv "$tmp/config.h" $ac_file
  9374     fi
  9375   else
  9376     echo "/* $configure_input  */"
  9377     cat "$ac_result"
  9378   fi
  9379   rm -f "$tmp/out12"
  9380 # Compute $ac_file's index in $config_headers.
  9381 _am_stamp_count=1
  9382 for _am_header in $config_headers :; do
  9383   case $_am_header in
  9384     $ac_file | $ac_file:* )
  9385       break ;;
  9386     * )
  9387       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9388   esac
  9389 done
  9390 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  9391 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9392 	 X$ac_file : 'X\(//\)[^/]' \| \
  9393 	 X$ac_file : 'X\(//\)$' \| \
  9394 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  9395 echo X$ac_file |
  9396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9397 	    s//\1/
  9400 	  /^X\(\/\/\)[^/].*/{
  9401 	    s//\1/
  9404 	  /^X\(\/\/\)$/{
  9405 	    s//\1/
  9408 	  /^X\(\/\).*/{
  9409 	    s//\1/
  9412 	  s/.*/./; q'`/stamp-h$_am_stamp_count
  9413  ;;
  9415   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  9416 echo "$as_me: executing $ac_file commands" >&6;}
  9417  ;;
  9418   esac
  9421   case $ac_file$ac_mode in
  9422     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  9423   # Strip MF so we end up with the name of the file.
  9424   mf=`echo "$mf" | sed -e 's/:.*$//'`
  9425   # Check whether this is an Automake generated Makefile or not.
  9426   # We used to match only the files named `Makefile.in', but
  9427   # some people rename them; so instead we look at the file content.
  9428   # Grep'ing the first line is not enough: some people post-process
  9429   # each Makefile.in and add a new line on top of each file to say so.
  9430   # So let's grep whole file.
  9431   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  9432     dirpart=`$as_dirname -- "$mf" ||
  9433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9434 	 X"$mf" : 'X\(//\)[^/]' \| \
  9435 	 X"$mf" : 'X\(//\)$' \| \
  9436 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9437 echo X"$mf" |
  9438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9439 	    s//\1/
  9442 	  /^X\(\/\/\)[^/].*/{
  9443 	    s//\1/
  9446 	  /^X\(\/\/\)$/{
  9447 	    s//\1/
  9450 	  /^X\(\/\).*/{
  9451 	    s//\1/
  9454 	  s/.*/./; q'`
  9455   else
  9456     continue
  9457   fi
  9458   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  9459   # Extract the definition of DEP_FILES from the Makefile without
  9460   # running `make'.
  9461   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  9462   test -z "$DEPDIR" && continue
  9463   # When using ansi2knr, U may be empty or an underscore; expand it
  9464   U=`sed -n -e '/^U = / s///p' < "$mf"`
  9465   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  9466   # We invoke sed twice because it is the simplest approach to
  9467   # changing $(DEPDIR) to its actual value in the expansion.
  9468   for file in `sed -n -e '
  9469     /^DEP_FILES = .*\\\\$/ {
  9470       s/^DEP_FILES = //
  9471       :loop
  9472 	s/\\\\$//
  9475 	/\\\\$/ b loop
  9478     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  9479        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9480     # Make sure the directory exists.
  9481     test -f "$dirpart/$file" && continue
  9482     fdir=`$as_dirname -- "$file" ||
  9483 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9484 	 X"$file" : 'X\(//\)[^/]' \| \
  9485 	 X"$file" : 'X\(//\)$' \| \
  9486 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9487 echo X"$file" |
  9488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9489 	    s//\1/
  9492 	  /^X\(\/\/\)[^/].*/{
  9493 	    s//\1/
  9496 	  /^X\(\/\/\)$/{
  9497 	    s//\1/
  9500 	  /^X\(\/\).*/{
  9501 	    s//\1/
  9504 	  s/.*/./; q'`
  9505     { as_dir=$dirpart/$fdir
  9506   case $as_dir in #(
  9507   -*) as_dir=./$as_dir;;
  9508   esac
  9509   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9510     as_dirs=
  9511     while :; do
  9512       case $as_dir in #(
  9513       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  9514       *) as_qdir=$as_dir;;
  9515       esac
  9516       as_dirs="'$as_qdir' $as_dirs"
  9517       as_dir=`$as_dirname -- "$as_dir" ||
  9518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9519 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  9520 	 X"$as_dir" : 'X\(//\)$' \| \
  9521 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9522 echo X"$as_dir" |
  9523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9524 	    s//\1/
  9527 	  /^X\(\/\/\)[^/].*/{
  9528 	    s//\1/
  9531 	  /^X\(\/\/\)$/{
  9532 	    s//\1/
  9535 	  /^X\(\/\).*/{
  9536 	    s//\1/
  9539 	  s/.*/./; q'`
  9540       test -d "$as_dir" && break
  9541     done
  9542     test -z "$as_dirs" || eval "mkdir $as_dirs"
  9543   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9545    { (exit 1); exit 1; }; }; }
  9546     # echo "creating $dirpart/$file"
  9547     echo '# dummy' > "$dirpart/$file"
  9548   done
  9549 done
  9550  ;;
  9551     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
  9552         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  9553       esac ;;
  9555   esac
  9556 done # for ac_tag
  9559 { (exit 0); exit 0; }
  9560 _ACEOF
  9561 chmod +x $CONFIG_STATUS
  9562 ac_clean_files=$ac_clean_files_save
  9565 # configure is writing to config.log, and then calls config.status.
  9566 # config.status does its own redirection, appending to config.log.
  9567 # Unfortunately, on DOS this fails, as config.log is still kept open
  9568 # by configure, so config.status won't be able to write to it; its
  9569 # output is simply discarded.  So we exec the FD to /dev/null,
  9570 # effectively closing config.log, so it can be properly (re)opened and
  9571 # appended to by config.status.  When coming back to configure, we
  9572 # need to make the FD available again.
  9573 if test "$no_create" != yes; then
  9574   ac_cs_success=:
  9575   ac_config_status_args=
  9576   test "$silent" = yes &&
  9577     ac_config_status_args="$ac_config_status_args --quiet"
  9578   exec 5>/dev/null
  9579   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9580   exec 5>>config.log
  9581   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9582   # would make configure fail if this is the last instruction.
  9583   $ac_cs_success || { (exit 1); exit 1; }
  9584 fi
.