Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 643:653b0a70f173
prev614:a2d239d4438a
next653:3202ff01d48e
author bhaal22
date Tue Feb 26 01:10:48 2008 +0000 (15 years ago)
permissions -rwxr-xr-x
last change Commit initial ALSA audio driver
Add init/shutdown stubs to audio driver structure
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 ALSA_CFLAGS
   721 ALSA_LIBS
   722 AUDIO_ALSA_TRUE
   723 AUDIO_ALSA_FALSE
   724 CDROM_LINUX_TRUE
   725 CDROM_LINUX_FALSE
   726 JOY_LINUX_TRUE
   727 JOY_LINUX_FALSE
   728 SHCC
   729 SHLD
   730 SHOBJCOPY
   731 ARMCC
   732 ARMLD
   733 ARMOBJCOPY
   734 BUILD_SYSTEST_TRUE
   735 BUILD_SYSTEST_FALSE
   736 BUILD_ARMTEST_TRUE
   737 BUILD_ARMTEST_FALSE
   738 GETTEXT_PACKAGE
   739 USE_NLS
   740 MSGFMT
   741 MSGFMT_OPTS
   742 GMSGFMT
   743 XGETTEXT
   744 CATALOGS
   745 CATOBJEXT
   746 DATADIRNAME
   747 GMOFILES
   748 INSTOBJEXT
   749 INTLLIBS
   750 PO_IN_DATADIR_TRUE
   751 PO_IN_DATADIR_FALSE
   752 POFILES
   753 POSUB
   754 MKINSTALLDIRS
   755 LIBOBJS
   756 LTLIBOBJS'
   757 ac_subst_files=''
   758       ac_precious_vars='build_alias
   759 host_alias
   760 target_alias
   761 CC
   762 CFLAGS
   763 LDFLAGS
   764 LIBS
   765 CPPFLAGS
   766 CPP
   767 PKG_CONFIG
   768 LIBPNG_CFLAGS
   769 LIBPNG_LIBS
   770 GTK_CFLAGS
   771 GTK_LIBS
   772 ESOUND_CFLAGS
   773 ESOUND_LIBS
   774 ALSA_CFLAGS
   775 ALSA_LIBS'
   778 # Initialize some variables set by options.
   779 ac_init_help=
   780 ac_init_version=false
   781 # The variables have the same names as the options, with
   782 # dashes changed to underlines.
   783 cache_file=/dev/null
   784 exec_prefix=NONE
   785 no_create=
   786 no_recursion=
   787 prefix=NONE
   788 program_prefix=NONE
   789 program_suffix=NONE
   790 program_transform_name=s,x,x,
   791 silent=
   792 site=
   793 srcdir=
   794 verbose=
   795 x_includes=NONE
   796 x_libraries=NONE
   798 # Installation directory options.
   799 # These are left unexpanded so users can "make install exec_prefix=/foo"
   800 # and all the variables that are supposed to be based on exec_prefix
   801 # by default will actually change.
   802 # Use braces instead of parens because sh, perl, etc. also accept them.
   803 # (The list follows the same order as the GNU Coding Standards.)
   804 bindir='${exec_prefix}/bin'
   805 sbindir='${exec_prefix}/sbin'
   806 libexecdir='${exec_prefix}/libexec'
   807 datarootdir='${prefix}/share'
   808 datadir='${datarootdir}'
   809 sysconfdir='${prefix}/etc'
   810 sharedstatedir='${prefix}/com'
   811 localstatedir='${prefix}/var'
   812 includedir='${prefix}/include'
   813 oldincludedir='/usr/include'
   814 docdir='${datarootdir}/doc/${PACKAGE}'
   815 infodir='${datarootdir}/info'
   816 htmldir='${docdir}'
   817 dvidir='${docdir}'
   818 pdfdir='${docdir}'
   819 psdir='${docdir}'
   820 libdir='${exec_prefix}/lib'
   821 localedir='${datarootdir}/locale'
   822 mandir='${datarootdir}/man'
   824 ac_prev=
   825 ac_dashdash=
   826 for ac_option
   827 do
   828   # If the previous option needs an argument, assign it.
   829   if test -n "$ac_prev"; then
   830     eval $ac_prev=\$ac_option
   831     ac_prev=
   832     continue
   833   fi
   835   case $ac_option in
   836   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   837   *)	ac_optarg=yes ;;
   838   esac
   840   # Accept the important Cygnus configure options, so we can diagnose typos.
   842   case $ac_dashdash$ac_option in
   843   --)
   844     ac_dashdash=yes ;;
   846   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   847     ac_prev=bindir ;;
   848   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   849     bindir=$ac_optarg ;;
   851   -build | --build | --buil | --bui | --bu)
   852     ac_prev=build_alias ;;
   853   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   854     build_alias=$ac_optarg ;;
   856   -cache-file | --cache-file | --cache-fil | --cache-fi \
   857   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   858     ac_prev=cache_file ;;
   859   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   860   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   861     cache_file=$ac_optarg ;;
   863   --config-cache | -C)
   864     cache_file=config.cache ;;
   866   -datadir | --datadir | --datadi | --datad)
   867     ac_prev=datadir ;;
   868   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   869     datadir=$ac_optarg ;;
   871   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   872   | --dataroo | --dataro | --datar)
   873     ac_prev=datarootdir ;;
   874   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   875   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   876     datarootdir=$ac_optarg ;;
   878   -disable-* | --disable-*)
   879     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   880     # Reject names that are not valid shell variable names.
   881     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   882       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   883    { (exit 1); exit 1; }; }
   884     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   885     eval enable_$ac_feature=no ;;
   887   -docdir | --docdir | --docdi | --doc | --do)
   888     ac_prev=docdir ;;
   889   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   890     docdir=$ac_optarg ;;
   892   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   893     ac_prev=dvidir ;;
   894   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   895     dvidir=$ac_optarg ;;
   897   -enable-* | --enable-*)
   898     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   899     # Reject names that are not valid shell variable names.
   900     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   901       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   902    { (exit 1); exit 1; }; }
   903     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   904     eval enable_$ac_feature=\$ac_optarg ;;
   906   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   907   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   908   | --exec | --exe | --ex)
   909     ac_prev=exec_prefix ;;
   910   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   911   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   912   | --exec=* | --exe=* | --ex=*)
   913     exec_prefix=$ac_optarg ;;
   915   -gas | --gas | --ga | --g)
   916     # Obsolete; use --with-gas.
   917     with_gas=yes ;;
   919   -help | --help | --hel | --he | -h)
   920     ac_init_help=long ;;
   921   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   922     ac_init_help=recursive ;;
   923   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   924     ac_init_help=short ;;
   926   -host | --host | --hos | --ho)
   927     ac_prev=host_alias ;;
   928   -host=* | --host=* | --hos=* | --ho=*)
   929     host_alias=$ac_optarg ;;
   931   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   932     ac_prev=htmldir ;;
   933   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   934   | --ht=*)
   935     htmldir=$ac_optarg ;;
   937   -includedir | --includedir | --includedi | --included | --include \
   938   | --includ | --inclu | --incl | --inc)
   939     ac_prev=includedir ;;
   940   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   941   | --includ=* | --inclu=* | --incl=* | --inc=*)
   942     includedir=$ac_optarg ;;
   944   -infodir | --infodir | --infodi | --infod | --info | --inf)
   945     ac_prev=infodir ;;
   946   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   947     infodir=$ac_optarg ;;
   949   -libdir | --libdir | --libdi | --libd)
   950     ac_prev=libdir ;;
   951   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   952     libdir=$ac_optarg ;;
   954   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   955   | --libexe | --libex | --libe)
   956     ac_prev=libexecdir ;;
   957   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   958   | --libexe=* | --libex=* | --libe=*)
   959     libexecdir=$ac_optarg ;;
   961   -localedir | --localedir | --localedi | --localed | --locale)
   962     ac_prev=localedir ;;
   963   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   964     localedir=$ac_optarg ;;
   966   -localstatedir | --localstatedir | --localstatedi | --localstated \
   967   | --localstate | --localstat | --localsta | --localst | --locals)
   968     ac_prev=localstatedir ;;
   969   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   970   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   971     localstatedir=$ac_optarg ;;
   973   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   974     ac_prev=mandir ;;
   975   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   976     mandir=$ac_optarg ;;
   978   -nfp | --nfp | --nf)
   979     # Obsolete; use --without-fp.
   980     with_fp=no ;;
   982   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   983   | --no-cr | --no-c | -n)
   984     no_create=yes ;;
   986   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   987   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   988     no_recursion=yes ;;
   990   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   991   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   992   | --oldin | --oldi | --old | --ol | --o)
   993     ac_prev=oldincludedir ;;
   994   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   995   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   996   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   997     oldincludedir=$ac_optarg ;;
   999   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1000     ac_prev=prefix ;;
  1001   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1002     prefix=$ac_optarg ;;
  1004   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1005   | --program-pre | --program-pr | --program-p)
  1006     ac_prev=program_prefix ;;
  1007   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1008   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1009     program_prefix=$ac_optarg ;;
  1011   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1012   | --program-suf | --program-su | --program-s)
  1013     ac_prev=program_suffix ;;
  1014   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1015   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1016     program_suffix=$ac_optarg ;;
  1018   -program-transform-name | --program-transform-name \
  1019   | --program-transform-nam | --program-transform-na \
  1020   | --program-transform-n | --program-transform- \
  1021   | --program-transform | --program-transfor \
  1022   | --program-transfo | --program-transf \
  1023   | --program-trans | --program-tran \
  1024   | --progr-tra | --program-tr | --program-t)
  1025     ac_prev=program_transform_name ;;
  1026   -program-transform-name=* | --program-transform-name=* \
  1027   | --program-transform-nam=* | --program-transform-na=* \
  1028   | --program-transform-n=* | --program-transform-=* \
  1029   | --program-transform=* | --program-transfor=* \
  1030   | --program-transfo=* | --program-transf=* \
  1031   | --program-trans=* | --program-tran=* \
  1032   | --progr-tra=* | --program-tr=* | --program-t=*)
  1033     program_transform_name=$ac_optarg ;;
  1035   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1036     ac_prev=pdfdir ;;
  1037   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1038     pdfdir=$ac_optarg ;;
  1040   -psdir | --psdir | --psdi | --psd | --ps)
  1041     ac_prev=psdir ;;
  1042   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1043     psdir=$ac_optarg ;;
  1045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1046   | -silent | --silent | --silen | --sile | --sil)
  1047     silent=yes ;;
  1049   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1050     ac_prev=sbindir ;;
  1051   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1052   | --sbi=* | --sb=*)
  1053     sbindir=$ac_optarg ;;
  1055   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1056   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1057   | --sharedst | --shareds | --shared | --share | --shar \
  1058   | --sha | --sh)
  1059     ac_prev=sharedstatedir ;;
  1060   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1061   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1062   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1063   | --sha=* | --sh=*)
  1064     sharedstatedir=$ac_optarg ;;
  1066   -site | --site | --sit)
  1067     ac_prev=site ;;
  1068   -site=* | --site=* | --sit=*)
  1069     site=$ac_optarg ;;
  1071   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1072     ac_prev=srcdir ;;
  1073   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1074     srcdir=$ac_optarg ;;
  1076   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1077   | --syscon | --sysco | --sysc | --sys | --sy)
  1078     ac_prev=sysconfdir ;;
  1079   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1080   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1081     sysconfdir=$ac_optarg ;;
  1083   -target | --target | --targe | --targ | --tar | --ta | --t)
  1084     ac_prev=target_alias ;;
  1085   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1086     target_alias=$ac_optarg ;;
  1088   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1089     verbose=yes ;;
  1091   -version | --version | --versio | --versi | --vers | -V)
  1092     ac_init_version=: ;;
  1094   -with-* | --with-*)
  1095     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1096     # Reject names that are not valid shell variable names.
  1097     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1098       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1099    { (exit 1); exit 1; }; }
  1100     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1101     eval with_$ac_package=\$ac_optarg ;;
  1103   -without-* | --without-*)
  1104     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1105     # Reject names that are not valid shell variable names.
  1106     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1107       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1108    { (exit 1); exit 1; }; }
  1109     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1110     eval with_$ac_package=no ;;
  1112   --x)
  1113     # Obsolete; use --with-x.
  1114     with_x=yes ;;
  1116   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1117   | --x-incl | --x-inc | --x-in | --x-i)
  1118     ac_prev=x_includes ;;
  1119   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1120   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1121     x_includes=$ac_optarg ;;
  1123   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125     ac_prev=x_libraries ;;
  1126   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128     x_libraries=$ac_optarg ;;
  1130   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1131 Try \`$0 --help' for more information." >&2
  1132    { (exit 1); exit 1; }; }
  1133     ;;
  1135   *=*)
  1136     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1137     # Reject names that are not valid shell variable names.
  1138     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1139       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1140    { (exit 1); exit 1; }; }
  1141     eval $ac_envvar=\$ac_optarg
  1142     export $ac_envvar ;;
  1144   *)
  1145     # FIXME: should be removed in autoconf 3.0.
  1146     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1147     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1148       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1149     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1150     ;;
  1152   esac
  1153 done
  1155 if test -n "$ac_prev"; then
  1156   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1157   { echo "$as_me: error: missing argument to $ac_option" >&2
  1158    { (exit 1); exit 1; }; }
  1159 fi
  1161 # Be sure to have absolute directory names.
  1162 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1163 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1164 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1165 		libdir localedir mandir
  1166 do
  1167   eval ac_val=\$$ac_var
  1168   case $ac_val in
  1169     [\\/$]* | ?:[\\/]* )  continue;;
  1170     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1171   esac
  1172   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1173    { (exit 1); exit 1; }; }
  1174 done
  1176 # There might be people who depend on the old broken behavior: `$host'
  1177 # used to hold the argument of --host etc.
  1178 # FIXME: To remove some day.
  1179 build=$build_alias
  1180 host=$host_alias
  1181 target=$target_alias
  1183 # FIXME: To remove some day.
  1184 if test "x$host_alias" != x; then
  1185   if test "x$build_alias" = x; then
  1186     cross_compiling=maybe
  1187     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1188     If a cross compiler is detected then cross compile mode will be used." >&2
  1189   elif test "x$build_alias" != "x$host_alias"; then
  1190     cross_compiling=yes
  1191   fi
  1192 fi
  1194 ac_tool_prefix=
  1195 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1197 test "$silent" = yes && exec 6>/dev/null
  1200 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1201 ac_ls_di=`ls -di .` &&
  1202 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1203   { echo "$as_me: error: Working directory cannot be determined" >&2
  1204    { (exit 1); exit 1; }; }
  1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1206   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1207    { (exit 1); exit 1; }; }
  1210 # Find the source files, if location was not specified.
  1211 if test -z "$srcdir"; then
  1212   ac_srcdir_defaulted=yes
  1213   # Try the directory containing this script, then the parent directory.
  1214   ac_confdir=`$as_dirname -- "$0" ||
  1215 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1216 	 X"$0" : 'X\(//\)[^/]' \| \
  1217 	 X"$0" : 'X\(//\)$' \| \
  1218 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1219 echo X"$0" |
  1220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1221 	    s//\1/
  1224 	  /^X\(\/\/\)[^/].*/{
  1225 	    s//\1/
  1228 	  /^X\(\/\/\)$/{
  1229 	    s//\1/
  1232 	  /^X\(\/\).*/{
  1233 	    s//\1/
  1236 	  s/.*/./; q'`
  1237   srcdir=$ac_confdir
  1238   if test ! -r "$srcdir/$ac_unique_file"; then
  1239     srcdir=..
  1240   fi
  1241 else
  1242   ac_srcdir_defaulted=no
  1243 fi
  1244 if test ! -r "$srcdir/$ac_unique_file"; then
  1245   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1246   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1247    { (exit 1); exit 1; }; }
  1248 fi
  1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1250 ac_abs_confdir=`(
  1251 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1252    { (exit 1); exit 1; }; }
  1253 	pwd)`
  1254 # When building in place, set srcdir=.
  1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1256   srcdir=.
  1257 fi
  1258 # Remove unnecessary trailing slashes from srcdir.
  1259 # Double slashes in file names in object file debugging info
  1260 # mess up M-x gdb in Emacs.
  1261 case $srcdir in
  1262 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1263 esac
  1264 for ac_var in $ac_precious_vars; do
  1265   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266   eval ac_env_${ac_var}_value=\$${ac_var}
  1267   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269 done
  1272 # Report the --help message.
  1274 if test "$ac_init_help" = "long"; then
  1275   # Omit some internal or obsolete options to make the list less imposing.
  1276   # This message is too long to be a string in the A/UX 3.1 sh.
  1277   cat <<_ACEOF
  1278 \`configure' configures this package to adapt to many kinds of systems.
  1280 Usage: $0 [OPTION]... [VAR=VALUE]...
  1282 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1283 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1285 Defaults for the options are specified in brackets.
  1287 Configuration:
  1288   -h, --help              display this help and exit
  1289       --help=short        display options specific to this package
  1290       --help=recursive    display the short help of all the included packages
  1291   -V, --version           display version information and exit
  1292   -q, --quiet, --silent   do not print \`checking...' messages
  1293       --cache-file=FILE   cache test results in FILE [disabled]
  1294   -C, --config-cache      alias for \`--cache-file=config.cache'
  1295   -n, --no-create         do not create output files
  1296       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1298 Installation directories:
  1299   --prefix=PREFIX         install architecture-independent files in PREFIX
  1300 			  [$ac_default_prefix]
  1301   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1302 			  [PREFIX]
  1304 By default, \`make install' will install all the files in
  1305 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1306 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1307 for instance \`--prefix=\$HOME'.
  1309 For better control, use the options below.
  1311 Fine tuning of the installation directories:
  1312   --bindir=DIR           user executables [EPREFIX/bin]
  1313   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1314   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1315   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1316   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1317   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1318   --libdir=DIR           object code libraries [EPREFIX/lib]
  1319   --includedir=DIR       C header files [PREFIX/include]
  1320   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1321   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1322   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1323   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1324   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1325   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1326   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1327   --htmldir=DIR          html documentation [DOCDIR]
  1328   --dvidir=DIR           dvi documentation [DOCDIR]
  1329   --pdfdir=DIR           pdf documentation [DOCDIR]
  1330   --psdir=DIR            ps documentation [DOCDIR]
  1331 _ACEOF
  1333   cat <<\_ACEOF
  1335 Program names:
  1336   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1337   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1338   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1340 System types:
  1341   --build=BUILD     configure for building on BUILD [guessed]
  1342   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1343 _ACEOF
  1344 fi
  1346 if test -n "$ac_init_help"; then
  1348   cat <<\_ACEOF
  1350 Optional Features:
  1351   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1352   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1353   --enable-maintainer-mode enable make rules and dependencies not useful
  1354                           (and sometimes confusing) to the casual installer
  1355   --disable-dependency-tracking Speeds up one-time builds
  1356   --enable-dependency-tracking  Do not reject slow dependency extractors
  1357   --enable-trace          Enable generation of IO traces (warning: hurts
  1358                           performance)
  1359   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1360                           performance)
  1362 Some influential environment variables:
  1363   CC          C compiler command
  1364   CFLAGS      C compiler flags
  1365   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1366               nonstandard directory <lib dir>
  1367   LIBS        libraries to pass to the linker, e.g. -l<library>
  1368   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1369               you have headers in a nonstandard directory <include dir>
  1370   CPP         C preprocessor
  1371   PKG_CONFIG  path to pkg-config utility
  1372   LIBPNG_CFLAGS
  1373               C compiler flags for LIBPNG, overriding pkg-config
  1374   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1375   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1376   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1377   ESOUND_CFLAGS
  1378               C compiler flags for ESOUND, overriding pkg-config
  1379   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1380   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1381   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1383 Use these variables to override the choices made by `configure' or to help
  1384 it to find libraries and programs with nonstandard names/locations.
  1386 _ACEOF
  1387 ac_status=$?
  1388 fi
  1390 if test "$ac_init_help" = "recursive"; then
  1391   # If there are subdirs, report their specific --help.
  1392   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1393     test -d "$ac_dir" || continue
  1394     ac_builddir=.
  1396 case "$ac_dir" in
  1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398 *)
  1399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1400   # A ".." for each directory in $ac_dir_suffix.
  1401   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1402   case $ac_top_builddir_sub in
  1403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405   esac ;;
  1406 esac
  1407 ac_abs_top_builddir=$ac_pwd
  1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409 # for backward compatibility:
  1410 ac_top_builddir=$ac_top_build_prefix
  1412 case $srcdir in
  1413   .)  # We are building in place.
  1414     ac_srcdir=.
  1415     ac_top_srcdir=$ac_top_builddir_sub
  1416     ac_abs_top_srcdir=$ac_pwd ;;
  1417   [\\/]* | ?:[\\/]* )  # Absolute name.
  1418     ac_srcdir=$srcdir$ac_dir_suffix;
  1419     ac_top_srcdir=$srcdir
  1420     ac_abs_top_srcdir=$srcdir ;;
  1421   *) # Relative name.
  1422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1423     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1425 esac
  1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1428     cd "$ac_dir" || { ac_status=$?; continue; }
  1429     # Check for guested configure.
  1430     if test -f "$ac_srcdir/configure.gnu"; then
  1431       echo &&
  1432       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1433     elif test -f "$ac_srcdir/configure"; then
  1434       echo &&
  1435       $SHELL "$ac_srcdir/configure" --help=recursive
  1436     else
  1437       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1438     fi || ac_status=$?
  1439     cd "$ac_pwd" || { ac_status=$?; break; }
  1440   done
  1441 fi
  1443 test -n "$ac_init_help" && exit $ac_status
  1444 if $ac_init_version; then
  1445   cat <<\_ACEOF
  1446 configure
  1447 generated by GNU Autoconf 2.61
  1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1451 This configure script is free software; the Free Software Foundation
  1452 gives unlimited permission to copy, distribute and modify it.
  1453 _ACEOF
  1454   exit
  1455 fi
  1456 cat >config.log <<_ACEOF
  1457 This file contains any messages produced by compilers while
  1458 running configure, to aid debugging if configure makes a mistake.
  1460 It was created by $as_me, which was
  1461 generated by GNU Autoconf 2.61.  Invocation command line was
  1463   $ $0 $@
  1465 _ACEOF
  1466 exec 5>>config.log
  1468 cat <<_ASUNAME
  1469 ## --------- ##
  1470 ## Platform. ##
  1471 ## --------- ##
  1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1480 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1482 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1483 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1485 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1486 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1487 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1488 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1490 _ASUNAME
  1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1493 for as_dir in $PATH
  1494 do
  1495   IFS=$as_save_IFS
  1496   test -z "$as_dir" && as_dir=.
  1497   echo "PATH: $as_dir"
  1498 done
  1499 IFS=$as_save_IFS
  1501 } >&5
  1503 cat >&5 <<_ACEOF
  1506 ## ----------- ##
  1507 ## Core tests. ##
  1508 ## ----------- ##
  1510 _ACEOF
  1513 # Keep a trace of the command line.
  1514 # Strip out --no-create and --no-recursion so they do not pile up.
  1515 # Strip out --silent because we don't want to record it for future runs.
  1516 # Also quote any args containing shell meta-characters.
  1517 # Make two passes to allow for proper duplicate-argument suppression.
  1518 ac_configure_args=
  1519 ac_configure_args0=
  1520 ac_configure_args1=
  1521 ac_must_keep_next=false
  1522 for ac_pass in 1 2
  1523 do
  1524   for ac_arg
  1525   do
  1526     case $ac_arg in
  1527     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1528     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1529     | -silent | --silent | --silen | --sile | --sil)
  1530       continue ;;
  1531     *\'*)
  1532       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1533     esac
  1534     case $ac_pass in
  1535     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1536     2)
  1537       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1538       if test $ac_must_keep_next = true; then
  1539 	ac_must_keep_next=false # Got value, back to normal.
  1540       else
  1541 	case $ac_arg in
  1542 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1543 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1544 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1545 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1546 	    case "$ac_configure_args0 " in
  1547 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1548 	    esac
  1549 	    ;;
  1550 	  -* ) ac_must_keep_next=true ;;
  1551 	esac
  1552       fi
  1553       ac_configure_args="$ac_configure_args '$ac_arg'"
  1554       ;;
  1555     esac
  1556   done
  1557 done
  1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1561 # When interrupted or exit'd, cleanup temporary files, and complete
  1562 # config.log.  We remove comments because anyway the quotes in there
  1563 # would cause problems or look ugly.
  1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1566 trap 'exit_status=$?
  1567   # Save into config.log some information that might help in debugging.
  1569     echo
  1571     cat <<\_ASBOX
  1572 ## ---------------- ##
  1573 ## Cache variables. ##
  1574 ## ---------------- ##
  1575 _ASBOX
  1576     echo
  1577     # The following way of writing the cache mishandles newlines in values,
  1579   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1580     eval ac_val=\$$ac_var
  1581     case $ac_val in #(
  1582     *${as_nl}*)
  1583       case $ac_var in #(
  1584       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1586       esac
  1587       case $ac_var in #(
  1588       _ | IFS | as_nl) ;; #(
  1589       *) $as_unset $ac_var ;;
  1590       esac ;;
  1591     esac
  1592   done
  1593   (set) 2>&1 |
  1594     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1595     *${as_nl}ac_space=\ *)
  1596       sed -n \
  1597 	"s/'\''/'\''\\\\'\'''\''/g;
  1598 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1599       ;; #(
  1600     *)
  1601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1602       ;;
  1603     esac |
  1604     sort
  1606     echo
  1608     cat <<\_ASBOX
  1609 ## ----------------- ##
  1610 ## Output variables. ##
  1611 ## ----------------- ##
  1612 _ASBOX
  1613     echo
  1614     for ac_var in $ac_subst_vars
  1615     do
  1616       eval ac_val=\$$ac_var
  1617       case $ac_val in
  1618       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1619       esac
  1620       echo "$ac_var='\''$ac_val'\''"
  1621     done | sort
  1622     echo
  1624     if test -n "$ac_subst_files"; then
  1625       cat <<\_ASBOX
  1626 ## ------------------- ##
  1627 ## File substitutions. ##
  1628 ## ------------------- ##
  1629 _ASBOX
  1630       echo
  1631       for ac_var in $ac_subst_files
  1632       do
  1633 	eval ac_val=\$$ac_var
  1634 	case $ac_val in
  1635 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1636 	esac
  1637 	echo "$ac_var='\''$ac_val'\''"
  1638       done | sort
  1639       echo
  1640     fi
  1642     if test -s confdefs.h; then
  1643       cat <<\_ASBOX
  1644 ## ----------- ##
  1645 ## confdefs.h. ##
  1646 ## ----------- ##
  1647 _ASBOX
  1648       echo
  1649       cat confdefs.h
  1650       echo
  1651     fi
  1652     test "$ac_signal" != 0 &&
  1653       echo "$as_me: caught signal $ac_signal"
  1654     echo "$as_me: exit $exit_status"
  1655   } >&5
  1656   rm -f core *.core core.conftest.* &&
  1657     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1658     exit $exit_status
  1659 ' 0
  1660 for ac_signal in 1 2 13 15; do
  1661   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1662 done
  1663 ac_signal=0
  1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1666 rm -f -r conftest* confdefs.h
  1668 # Predefined preprocessor variables.
  1670 cat >>confdefs.h <<_ACEOF
  1671 #define PACKAGE_NAME "$PACKAGE_NAME"
  1672 _ACEOF
  1675 cat >>confdefs.h <<_ACEOF
  1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1677 _ACEOF
  1680 cat >>confdefs.h <<_ACEOF
  1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1682 _ACEOF
  1685 cat >>confdefs.h <<_ACEOF
  1686 #define PACKAGE_STRING "$PACKAGE_STRING"
  1687 _ACEOF
  1690 cat >>confdefs.h <<_ACEOF
  1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1692 _ACEOF
  1695 # Let the site file select an alternate cache file if it wants to.
  1696 # Prefer explicitly selected file to automatically selected ones.
  1697 if test -n "$CONFIG_SITE"; then
  1698   set x "$CONFIG_SITE"
  1699 elif test "x$prefix" != xNONE; then
  1700   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1701 else
  1702   set x "$ac_default_prefix/share/config.site" \
  1703 	"$ac_default_prefix/etc/config.site"
  1704 fi
  1705 shift
  1706 for ac_site_file
  1707 do
  1708   if test -r "$ac_site_file"; then
  1709     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1710 echo "$as_me: loading site script $ac_site_file" >&6;}
  1711     sed 's/^/| /' "$ac_site_file" >&5
  1712     . "$ac_site_file"
  1713   fi
  1714 done
  1716 if test -r "$cache_file"; then
  1717   # Some versions of bash will fail to source /dev/null (special
  1718   # files actually), so we avoid doing that.
  1719   if test -f "$cache_file"; then
  1720     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1721 echo "$as_me: loading cache $cache_file" >&6;}
  1722     case $cache_file in
  1723       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1724       *)                      . "./$cache_file";;
  1725     esac
  1726   fi
  1727 else
  1728   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1729 echo "$as_me: creating cache $cache_file" >&6;}
  1730   >$cache_file
  1731 fi
  1733 # Check that the precious variables saved in the cache have kept the same
  1734 # value.
  1735 ac_cache_corrupted=false
  1736 for ac_var in $ac_precious_vars; do
  1737   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1738   eval ac_new_set=\$ac_env_${ac_var}_set
  1739   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1740   eval ac_new_val=\$ac_env_${ac_var}_value
  1741   case $ac_old_set,$ac_new_set in
  1742     set,)
  1743       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1745       ac_cache_corrupted=: ;;
  1746     ,set)
  1747       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1749       ac_cache_corrupted=: ;;
  1750     ,);;
  1751     *)
  1752       if test "x$ac_old_val" != "x$ac_new_val"; then
  1753 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1755 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1756 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1757 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1758 echo "$as_me:   current value: $ac_new_val" >&2;}
  1759 	ac_cache_corrupted=:
  1760       fi;;
  1761   esac
  1762   # Pass precious variables to config.status.
  1763   if test "$ac_new_set" = set; then
  1764     case $ac_new_val in
  1765     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1766     *) ac_arg=$ac_var=$ac_new_val ;;
  1767     esac
  1768     case " $ac_configure_args " in
  1769       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1770       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1771     esac
  1772   fi
  1773 done
  1774 if $ac_cache_corrupted; then
  1775   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1777   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1779    { (exit 1); exit 1; }; }
  1780 fi
  1798 ac_ext=c
  1799 ac_cpp='$CPP $CPPFLAGS'
  1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1805 am__api_version="1.7"
  1806 ac_aux_dir=
  1807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1808   if test -f "$ac_dir/install-sh"; then
  1809     ac_aux_dir=$ac_dir
  1810     ac_install_sh="$ac_aux_dir/install-sh -c"
  1811     break
  1812   elif test -f "$ac_dir/install.sh"; then
  1813     ac_aux_dir=$ac_dir
  1814     ac_install_sh="$ac_aux_dir/install.sh -c"
  1815     break
  1816   elif test -f "$ac_dir/shtool"; then
  1817     ac_aux_dir=$ac_dir
  1818     ac_install_sh="$ac_aux_dir/shtool install -c"
  1819     break
  1820   fi
  1821 done
  1822 if test -z "$ac_aux_dir"; then
  1823   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1824 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1825    { (exit 1); exit 1; }; }
  1826 fi
  1828 # These three variables are undocumented and unsupported,
  1829 # and are intended to be withdrawn in a future Autoconf release.
  1830 # They can cause serious problems if a builder's source tree is in a directory
  1831 # whose full name contains unusual characters.
  1832 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1833 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1834 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1837 # Find a good install program.  We prefer a C program (faster),
  1838 # so one script is as good as another.  But avoid the broken or
  1839 # incompatible versions:
  1840 # SysV /etc/install, /usr/sbin/install
  1841 # SunOS /usr/etc/install
  1842 # IRIX /sbin/install
  1843 # AIX /bin/install
  1844 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1848 # OS/2's system install, which has a completely different semantic
  1849 # ./install, which can be erroneously created by make from ./install.sh.
  1850 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1851 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1852 if test -z "$INSTALL"; then
  1853 if test "${ac_cv_path_install+set}" = set; then
  1854   echo $ECHO_N "(cached) $ECHO_C" >&6
  1855 else
  1856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1857 for as_dir in $PATH
  1858 do
  1859   IFS=$as_save_IFS
  1860   test -z "$as_dir" && as_dir=.
  1861   # Account for people who put trailing slashes in PATH elements.
  1862 case $as_dir/ in
  1863   ./ | .// | /cC/* | \
  1864   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1865   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1866   /usr/ucb/* ) ;;
  1867   *)
  1868     # OSF1 and SCO ODT 3.0 have their own names for install.
  1869     # Don't use installbsd from OSF since it installs stuff as root
  1870     # by default.
  1871     for ac_prog in ginstall scoinst install; do
  1872       for ac_exec_ext in '' $ac_executable_extensions; do
  1873 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1874 	  if test $ac_prog = install &&
  1875 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1876 	    # AIX install.  It has an incompatible calling convention.
  1878 	  elif test $ac_prog = install &&
  1879 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1880 	    # program-specific install script used by HP pwplus--don't use.
  1882 	  else
  1883 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1884 	    break 3
  1885 	  fi
  1886 	fi
  1887       done
  1888     done
  1889     ;;
  1890 esac
  1891 done
  1892 IFS=$as_save_IFS
  1895 fi
  1896   if test "${ac_cv_path_install+set}" = set; then
  1897     INSTALL=$ac_cv_path_install
  1898   else
  1899     # As a last resort, use the slow shell script.  Don't cache a
  1900     # value for INSTALL within a source directory, because that will
  1901     # break other packages using the cache if that directory is
  1902     # removed, or if the value is a relative name.
  1903     INSTALL=$ac_install_sh
  1904   fi
  1905 fi
  1906 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1907 echo "${ECHO_T}$INSTALL" >&6; }
  1909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1910 # It thinks the first close brace ends the variable substitution.
  1911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1917 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1918 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1919 # Just in case
  1920 sleep 1
  1921 echo timestamp > conftest.file
  1922 # Do `set' in a subshell so we don't clobber the current shell's
  1923 # arguments.  Must try -L first in case configure is actually a
  1924 # symlink; some systems play weird games with the mod time of symlinks
  1925 # (eg FreeBSD returns the mod time of the symlink's containing
  1926 # directory).
  1927 if (
  1928    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1929    if test "$*" = "X"; then
  1930       # -L didn't work.
  1931       set X `ls -t $srcdir/configure conftest.file`
  1932    fi
  1933    rm -f conftest.file
  1934    if test "$*" != "X $srcdir/configure conftest.file" \
  1935       && test "$*" != "X conftest.file $srcdir/configure"; then
  1937       # If neither matched, then we have a broken ls.  This can happen
  1938       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1939       # broken ls alias from the environment.  This has actually
  1940       # happened.  Such a system could not be considered "sane".
  1941       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1942 alias in your environment" >&5
  1943 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1944 alias in your environment" >&2;}
  1945    { (exit 1); exit 1; }; }
  1946    fi
  1948    test "$2" = conftest.file
  1950 then
  1951    # Ok.
  1953 else
  1954    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1955 Check your system clock" >&5
  1956 echo "$as_me: error: newly created file is older than distributed files!
  1957 Check your system clock" >&2;}
  1958    { (exit 1); exit 1; }; }
  1959 fi
  1960 { echo "$as_me:$LINENO: result: yes" >&5
  1961 echo "${ECHO_T}yes" >&6; }
  1962 test "$program_prefix" != NONE &&
  1963   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1964 # Use a double $ so make ignores it.
  1965 test "$program_suffix" != NONE &&
  1966   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1967 # Double any \ or $.  echo might interpret backslashes.
  1968 # By default was `s,x,x', remove it if useless.
  1969 cat <<\_ACEOF >conftest.sed
  1970 s/[\\$]/&&/g;s/;s,x,x,$//
  1971 _ACEOF
  1972 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1973 rm -f conftest.sed
  1976 # expand $ac_aux_dir to an absolute path
  1977 am_aux_dir=`cd $ac_aux_dir && pwd`
  1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1980 # Use eval to expand $SHELL
  1981 if eval "$MISSING --run true"; then
  1982   am_missing_run="$MISSING --run "
  1983 else
  1984   am_missing_run=
  1985   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1987 fi
  1989 for ac_prog in gawk mawk nawk awk
  1990 do
  1991   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1992 set dummy $ac_prog; ac_word=$2
  1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1995 if test "${ac_cv_prog_AWK+set}" = set; then
  1996   echo $ECHO_N "(cached) $ECHO_C" >&6
  1997 else
  1998   if test -n "$AWK"; then
  1999   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2000 else
  2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002 for as_dir in $PATH
  2003 do
  2004   IFS=$as_save_IFS
  2005   test -z "$as_dir" && as_dir=.
  2006   for ac_exec_ext in '' $ac_executable_extensions; do
  2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2008     ac_cv_prog_AWK="$ac_prog"
  2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2010     break 2
  2011   fi
  2012 done
  2013 done
  2014 IFS=$as_save_IFS
  2016 fi
  2017 fi
  2018 AWK=$ac_cv_prog_AWK
  2019 if test -n "$AWK"; then
  2020   { echo "$as_me:$LINENO: result: $AWK" >&5
  2021 echo "${ECHO_T}$AWK" >&6; }
  2022 else
  2023   { echo "$as_me:$LINENO: result: no" >&5
  2024 echo "${ECHO_T}no" >&6; }
  2025 fi
  2028   test -n "$AWK" && break
  2029 done
  2031 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2032 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2033 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2034 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2035   echo $ECHO_N "(cached) $ECHO_C" >&6
  2036 else
  2037   cat >conftest.make <<\_ACEOF
  2038 SHELL = /bin/sh
  2039 all:
  2040 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2041 _ACEOF
  2042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2044   *@@@%%%=?*=@@@%%%*)
  2045     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2046   *)
  2047     eval ac_cv_prog_make_${ac_make}_set=no;;
  2048 esac
  2049 rm -f conftest.make
  2050 fi
  2051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2052   { echo "$as_me:$LINENO: result: yes" >&5
  2053 echo "${ECHO_T}yes" >&6; }
  2054   SET_MAKE=
  2055 else
  2056   { echo "$as_me:$LINENO: result: no" >&5
  2057 echo "${ECHO_T}no" >&6; }
  2058   SET_MAKE="MAKE=${MAKE-make}"
  2059 fi
  2061 rm -rf .tst 2>/dev/null
  2062 mkdir .tst 2>/dev/null
  2063 if test -d .tst; then
  2064   am__leading_dot=.
  2065 else
  2066   am__leading_dot=_
  2067 fi
  2068 rmdir .tst 2>/dev/null
  2070  # test to see if srcdir already configured
  2071 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2072    test -f $srcdir/config.status; then
  2073   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2074 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2075    { (exit 1); exit 1; }; }
  2076 fi
  2078 # test whether we have cygpath
  2079 if test -z "$CYGPATH_W"; then
  2080   if (cygpath --version) >/dev/null 2>/dev/null; then
  2081     CYGPATH_W='cygpath -w'
  2082   else
  2083     CYGPATH_W=echo
  2084   fi
  2085 fi
  2088 # Define the identity of the package.
  2089  PACKAGE=lxdream
  2090  VERSION=0.8.1
  2093 cat >>confdefs.h <<_ACEOF
  2094 #define PACKAGE "$PACKAGE"
  2095 _ACEOF
  2098 cat >>confdefs.h <<_ACEOF
  2099 #define VERSION "$VERSION"
  2100 _ACEOF
  2102 # Some tools Automake needs.
  2104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2121 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2123 # Installed binaries are usually stripped using `strip' when the user
  2124 # run `make install-strip'.  However `strip' might not be the right
  2125 # tool to use in cross-compilation environments, therefore Automake
  2126 # will honor the `STRIP' environment variable to overrule this program.
  2127 if test "$cross_compiling" != no; then
  2128   if test -n "$ac_tool_prefix"; then
  2129   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133 if test "${ac_cv_prog_STRIP+set}" = set; then
  2134   echo $ECHO_N "(cached) $ECHO_C" >&6
  2135 else
  2136   if test -n "$STRIP"; then
  2137   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138 else
  2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140 for as_dir in $PATH
  2141 do
  2142   IFS=$as_save_IFS
  2143   test -z "$as_dir" && as_dir=.
  2144   for ac_exec_ext in '' $ac_executable_extensions; do
  2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148     break 2
  2149   fi
  2150 done
  2151 done
  2152 IFS=$as_save_IFS
  2154 fi
  2155 fi
  2156 STRIP=$ac_cv_prog_STRIP
  2157 if test -n "$STRIP"; then
  2158   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2159 echo "${ECHO_T}$STRIP" >&6; }
  2160 else
  2161   { echo "$as_me:$LINENO: result: no" >&5
  2162 echo "${ECHO_T}no" >&6; }
  2163 fi
  2166 fi
  2167 if test -z "$ac_cv_prog_STRIP"; then
  2168   ac_ct_STRIP=$STRIP
  2169   # Extract the first word of "strip", so it can be a program name with args.
  2170 set dummy strip; ac_word=$2
  2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2173 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2174   echo $ECHO_N "(cached) $ECHO_C" >&6
  2175 else
  2176   if test -n "$ac_ct_STRIP"; then
  2177   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2178 else
  2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2180 for as_dir in $PATH
  2181 do
  2182   IFS=$as_save_IFS
  2183   test -z "$as_dir" && as_dir=.
  2184   for ac_exec_ext in '' $ac_executable_extensions; do
  2185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2186     ac_cv_prog_ac_ct_STRIP="strip"
  2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2188     break 2
  2189   fi
  2190 done
  2191 done
  2192 IFS=$as_save_IFS
  2194 fi
  2195 fi
  2196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2197 if test -n "$ac_ct_STRIP"; then
  2198   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2199 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2200 else
  2201   { echo "$as_me:$LINENO: result: no" >&5
  2202 echo "${ECHO_T}no" >&6; }
  2203 fi
  2205   if test "x$ac_ct_STRIP" = x; then
  2206     STRIP=":"
  2207   else
  2208     case $cross_compiling:$ac_tool_warned in
  2209 yes:)
  2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2211 whose name does not start with the host triplet.  If you think this
  2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2214 whose name does not start with the host triplet.  If you think this
  2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2216 ac_tool_warned=yes ;;
  2217 esac
  2218     STRIP=$ac_ct_STRIP
  2219   fi
  2220 else
  2221   STRIP="$ac_cv_prog_STRIP"
  2222 fi
  2224 fi
  2225 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2227 # We need awk for the "check" target.  The system "awk" is bad on
  2228 # some platforms.
  2232 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2233 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2234     # Check whether --enable-maintainer-mode was given.
  2235 if test "${enable_maintainer_mode+set}" = set; then
  2236   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2237 else
  2238   USE_MAINTAINER_MODE=no
  2239 fi
  2241   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2242 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2245 if test $USE_MAINTAINER_MODE = yes; then
  2246   MAINTAINER_MODE_TRUE=
  2247   MAINTAINER_MODE_FALSE='#'
  2248 else
  2249   MAINTAINER_MODE_TRUE='#'
  2250   MAINTAINER_MODE_FALSE=
  2251 fi
  2253   MAINT=$MAINTAINER_MODE_TRUE
  2256 ac_config_headers="$ac_config_headers config.h"
  2259 DEPDIR="${am__leading_dot}deps"
  2261 ac_config_commands="$ac_config_commands depfiles"
  2264 am_make=${MAKE-make}
  2265 cat > confinc << 'END'
  2266 am__doit:
  2267 	@echo done
  2268 .PHONY: am__doit
  2269 END
  2270 # If we don't find an include directive, just comment out the code.
  2271 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2272 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2273 am__include="#"
  2274 am__quote=
  2275 _am_result=none
  2276 # First try GNU make style include.
  2277 echo "include confinc" > confmf
  2278 # We grep out `Entering directory' and `Leaving directory'
  2279 # messages which can occur if `w' ends up in MAKEFLAGS.
  2280 # In particular we don't look at `^make:' because GNU make might
  2281 # be invoked under some other name (usually "gmake"), in which
  2282 # case it prints its new name instead of `make'.
  2283 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2284    am__include=include
  2285    am__quote=
  2286    _am_result=GNU
  2287 fi
  2288 # Now try BSD make style include.
  2289 if test "$am__include" = "#"; then
  2290    echo '.include "confinc"' > confmf
  2291    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2292       am__include=.include
  2293       am__quote="\""
  2294       _am_result=BSD
  2295    fi
  2296 fi
  2299 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2300 echo "${ECHO_T}$_am_result" >&6; }
  2301 rm -f confinc confmf
  2303 # Check whether --enable-dependency-tracking was given.
  2304 if test "${enable_dependency_tracking+set}" = set; then
  2305   enableval=$enable_dependency_tracking;
  2306 fi
  2308 if test "x$enable_dependency_tracking" != xno; then
  2309   am_depcomp="$ac_aux_dir/depcomp"
  2310   AMDEPBACKSLASH='\'
  2311 fi
  2314 if test "x$enable_dependency_tracking" != xno; then
  2315   AMDEP_TRUE=
  2316   AMDEP_FALSE='#'
  2317 else
  2318   AMDEP_TRUE='#'
  2319   AMDEP_FALSE=
  2320 fi
  2324 ac_ext=c
  2325 ac_cpp='$CPP $CPPFLAGS'
  2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2329 if test -n "$ac_tool_prefix"; then
  2330   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2334 if test "${ac_cv_prog_CC+set}" = set; then
  2335   echo $ECHO_N "(cached) $ECHO_C" >&6
  2336 else
  2337   if test -n "$CC"; then
  2338   ac_cv_prog_CC="$CC" # Let the user override the test.
  2339 else
  2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341 for as_dir in $PATH
  2342 do
  2343   IFS=$as_save_IFS
  2344   test -z "$as_dir" && as_dir=.
  2345   for ac_exec_ext in '' $ac_executable_extensions; do
  2346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2347     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2349     break 2
  2350   fi
  2351 done
  2352 done
  2353 IFS=$as_save_IFS
  2355 fi
  2356 fi
  2357 CC=$ac_cv_prog_CC
  2358 if test -n "$CC"; then
  2359   { echo "$as_me:$LINENO: result: $CC" >&5
  2360 echo "${ECHO_T}$CC" >&6; }
  2361 else
  2362   { echo "$as_me:$LINENO: result: no" >&5
  2363 echo "${ECHO_T}no" >&6; }
  2364 fi
  2367 fi
  2368 if test -z "$ac_cv_prog_CC"; then
  2369   ac_ct_CC=$CC
  2370   # Extract the first word of "gcc", so it can be a program name with args.
  2371 set dummy gcc; ac_word=$2
  2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2375   echo $ECHO_N "(cached) $ECHO_C" >&6
  2376 else
  2377   if test -n "$ac_ct_CC"; then
  2378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2379 else
  2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381 for as_dir in $PATH
  2382 do
  2383   IFS=$as_save_IFS
  2384   test -z "$as_dir" && as_dir=.
  2385   for ac_exec_ext in '' $ac_executable_extensions; do
  2386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2387     ac_cv_prog_ac_ct_CC="gcc"
  2388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389     break 2
  2390   fi
  2391 done
  2392 done
  2393 IFS=$as_save_IFS
  2395 fi
  2396 fi
  2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2398 if test -n "$ac_ct_CC"; then
  2399   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2401 else
  2402   { echo "$as_me:$LINENO: result: no" >&5
  2403 echo "${ECHO_T}no" >&6; }
  2404 fi
  2406   if test "x$ac_ct_CC" = x; then
  2407     CC=""
  2408   else
  2409     case $cross_compiling:$ac_tool_warned in
  2410 yes:)
  2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2412 whose name does not start with the host triplet.  If you think this
  2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2415 whose name does not start with the host triplet.  If you think this
  2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2417 ac_tool_warned=yes ;;
  2418 esac
  2419     CC=$ac_ct_CC
  2420   fi
  2421 else
  2422   CC="$ac_cv_prog_CC"
  2423 fi
  2425 if test -z "$CC"; then
  2426           if test -n "$ac_tool_prefix"; then
  2427     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2428 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2431 if test "${ac_cv_prog_CC+set}" = set; then
  2432   echo $ECHO_N "(cached) $ECHO_C" >&6
  2433 else
  2434   if test -n "$CC"; then
  2435   ac_cv_prog_CC="$CC" # Let the user override the test.
  2436 else
  2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2438 for as_dir in $PATH
  2439 do
  2440   IFS=$as_save_IFS
  2441   test -z "$as_dir" && as_dir=.
  2442   for ac_exec_ext in '' $ac_executable_extensions; do
  2443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2444     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2446     break 2
  2447   fi
  2448 done
  2449 done
  2450 IFS=$as_save_IFS
  2452 fi
  2453 fi
  2454 CC=$ac_cv_prog_CC
  2455 if test -n "$CC"; then
  2456   { echo "$as_me:$LINENO: result: $CC" >&5
  2457 echo "${ECHO_T}$CC" >&6; }
  2458 else
  2459   { echo "$as_me:$LINENO: result: no" >&5
  2460 echo "${ECHO_T}no" >&6; }
  2461 fi
  2464   fi
  2465 fi
  2466 if test -z "$CC"; then
  2467   # Extract the first word of "cc", so it can be a program name with args.
  2468 set dummy cc; ac_word=$2
  2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2471 if test "${ac_cv_prog_CC+set}" = set; then
  2472   echo $ECHO_N "(cached) $ECHO_C" >&6
  2473 else
  2474   if test -n "$CC"; then
  2475   ac_cv_prog_CC="$CC" # Let the user override the test.
  2476 else
  2477   ac_prog_rejected=no
  2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2479 for as_dir in $PATH
  2480 do
  2481   IFS=$as_save_IFS
  2482   test -z "$as_dir" && as_dir=.
  2483   for ac_exec_ext in '' $ac_executable_extensions; do
  2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2485     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2486        ac_prog_rejected=yes
  2487        continue
  2488      fi
  2489     ac_cv_prog_CC="cc"
  2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2491     break 2
  2492   fi
  2493 done
  2494 done
  2495 IFS=$as_save_IFS
  2497 if test $ac_prog_rejected = yes; then
  2498   # We found a bogon in the path, so make sure we never use it.
  2499   set dummy $ac_cv_prog_CC
  2500   shift
  2501   if test $# != 0; then
  2502     # We chose a different compiler from the bogus one.
  2503     # However, it has the same basename, so the bogon will be chosen
  2504     # first if we set CC to just the basename; use the full file name.
  2505     shift
  2506     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2507   fi
  2508 fi
  2509 fi
  2510 fi
  2511 CC=$ac_cv_prog_CC
  2512 if test -n "$CC"; then
  2513   { echo "$as_me:$LINENO: result: $CC" >&5
  2514 echo "${ECHO_T}$CC" >&6; }
  2515 else
  2516   { echo "$as_me:$LINENO: result: no" >&5
  2517 echo "${ECHO_T}no" >&6; }
  2518 fi
  2521 fi
  2522 if test -z "$CC"; then
  2523   if test -n "$ac_tool_prefix"; then
  2524   for ac_prog in cl.exe
  2525   do
  2526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2530 if test "${ac_cv_prog_CC+set}" = set; then
  2531   echo $ECHO_N "(cached) $ECHO_C" >&6
  2532 else
  2533   if test -n "$CC"; then
  2534   ac_cv_prog_CC="$CC" # Let the user override the test.
  2535 else
  2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537 for as_dir in $PATH
  2538 do
  2539   IFS=$as_save_IFS
  2540   test -z "$as_dir" && as_dir=.
  2541   for ac_exec_ext in '' $ac_executable_extensions; do
  2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2543     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2545     break 2
  2546   fi
  2547 done
  2548 done
  2549 IFS=$as_save_IFS
  2551 fi
  2552 fi
  2553 CC=$ac_cv_prog_CC
  2554 if test -n "$CC"; then
  2555   { echo "$as_me:$LINENO: result: $CC" >&5
  2556 echo "${ECHO_T}$CC" >&6; }
  2557 else
  2558   { echo "$as_me:$LINENO: result: no" >&5
  2559 echo "${ECHO_T}no" >&6; }
  2560 fi
  2563     test -n "$CC" && break
  2564   done
  2565 fi
  2566 if test -z "$CC"; then
  2567   ac_ct_CC=$CC
  2568   for ac_prog in cl.exe
  2569 do
  2570   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2571 set dummy $ac_prog; ac_word=$2
  2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2575   echo $ECHO_N "(cached) $ECHO_C" >&6
  2576 else
  2577   if test -n "$ac_ct_CC"; then
  2578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2579 else
  2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581 for as_dir in $PATH
  2582 do
  2583   IFS=$as_save_IFS
  2584   test -z "$as_dir" && as_dir=.
  2585   for ac_exec_ext in '' $ac_executable_extensions; do
  2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2587     ac_cv_prog_ac_ct_CC="$ac_prog"
  2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589     break 2
  2590   fi
  2591 done
  2592 done
  2593 IFS=$as_save_IFS
  2595 fi
  2596 fi
  2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2598 if test -n "$ac_ct_CC"; then
  2599   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2601 else
  2602   { echo "$as_me:$LINENO: result: no" >&5
  2603 echo "${ECHO_T}no" >&6; }
  2604 fi
  2607   test -n "$ac_ct_CC" && break
  2608 done
  2610   if test "x$ac_ct_CC" = x; then
  2611     CC=""
  2612   else
  2613     case $cross_compiling:$ac_tool_warned in
  2614 yes:)
  2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2616 whose name does not start with the host triplet.  If you think this
  2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2619 whose name does not start with the host triplet.  If you think this
  2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2621 ac_tool_warned=yes ;;
  2622 esac
  2623     CC=$ac_ct_CC
  2624   fi
  2625 fi
  2627 fi
  2630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2631 See \`config.log' for more details." >&5
  2632 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2633 See \`config.log' for more details." >&2;}
  2634    { (exit 1); exit 1; }; }
  2636 # Provide some information about the compiler.
  2637 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2638 ac_compiler=`set X $ac_compile; echo $2`
  2639 { (ac_try="$ac_compiler --version >&5"
  2640 case "(($ac_try" in
  2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2642   *) ac_try_echo=$ac_try;;
  2643 esac
  2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2645   (eval "$ac_compiler --version >&5") 2>&5
  2646   ac_status=$?
  2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648   (exit $ac_status); }
  2649 { (ac_try="$ac_compiler -v >&5"
  2650 case "(($ac_try" in
  2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2652   *) ac_try_echo=$ac_try;;
  2653 esac
  2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2655   (eval "$ac_compiler -v >&5") 2>&5
  2656   ac_status=$?
  2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2658   (exit $ac_status); }
  2659 { (ac_try="$ac_compiler -V >&5"
  2660 case "(($ac_try" in
  2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662   *) ac_try_echo=$ac_try;;
  2663 esac
  2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2665   (eval "$ac_compiler -V >&5") 2>&5
  2666   ac_status=$?
  2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668   (exit $ac_status); }
  2670 cat >conftest.$ac_ext <<_ACEOF
  2671 /* confdefs.h.  */
  2672 _ACEOF
  2673 cat confdefs.h >>conftest.$ac_ext
  2674 cat >>conftest.$ac_ext <<_ACEOF
  2675 /* end confdefs.h.  */
  2677 int
  2678 main ()
  2682   return 0;
  2684 _ACEOF
  2685 ac_clean_files_save=$ac_clean_files
  2686 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2687 # Try to create an executable without -o first, disregard a.out.
  2688 # It will help us diagnose broken compilers, and finding out an intuition
  2689 # of exeext.
  2690 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2691 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2692 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2694 # List of possible output files, starting from the most likely.
  2695 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2696 # only as a last resort.  b.out is created by i960 compilers.
  2697 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2699 # The IRIX 6 linker writes into existing files which may not be
  2700 # executable, retaining their permissions.  Remove them first so a
  2701 # subsequent execution test works.
  2702 ac_rmfiles=
  2703 for ac_file in $ac_files
  2704 do
  2705   case $ac_file in
  2706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2707     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2708   esac
  2709 done
  2710 rm -f $ac_rmfiles
  2712 if { (ac_try="$ac_link_default"
  2713 case "(($ac_try" in
  2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715   *) ac_try_echo=$ac_try;;
  2716 esac
  2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2718   (eval "$ac_link_default") 2>&5
  2719   ac_status=$?
  2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2721   (exit $ac_status); }; then
  2722   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2724 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2725 # so that the user can short-circuit this test for compilers unknown to
  2726 # Autoconf.
  2727 for ac_file in $ac_files ''
  2728 do
  2729   test -f "$ac_file" || continue
  2730   case $ac_file in
  2731     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2732 	;;
  2733     [ab].out )
  2734 	# We found the default executable, but exeext='' is most
  2735 	# certainly right.
  2736 	break;;
  2737     *.* )
  2738         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2739 	then :; else
  2740 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2741 	fi
  2742 	# We set ac_cv_exeext here because the later test for it is not
  2743 	# safe: cross compilers may not add the suffix if given an `-o'
  2744 	# argument, so we may need to know it at that point already.
  2745 	# Even if this section looks crufty: it has the advantage of
  2746 	# actually working.
  2747 	break;;
  2748     * )
  2749 	break;;
  2750   esac
  2751 done
  2752 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2754 else
  2755   ac_file=''
  2756 fi
  2758 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2759 echo "${ECHO_T}$ac_file" >&6; }
  2760 if test -z "$ac_file"; then
  2761   echo "$as_me: failed program was:" >&5
  2762 sed 's/^/| /' conftest.$ac_ext >&5
  2764 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2765 See \`config.log' for more details." >&5
  2766 echo "$as_me: error: C compiler cannot create executables
  2767 See \`config.log' for more details." >&2;}
  2768    { (exit 77); exit 77; }; }
  2769 fi
  2771 ac_exeext=$ac_cv_exeext
  2773 # Check that the compiler produces executables we can run.  If not, either
  2774 # the compiler is broken, or we cross compile.
  2775 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2776 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2777 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2778 # If not cross compiling, check that we can run a simple program.
  2779 if test "$cross_compiling" != yes; then
  2780   if { ac_try='./$ac_file'
  2781   { (case "(($ac_try" in
  2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783   *) ac_try_echo=$ac_try;;
  2784 esac
  2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2786   (eval "$ac_try") 2>&5
  2787   ac_status=$?
  2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789   (exit $ac_status); }; }; then
  2790     cross_compiling=no
  2791   else
  2792     if test "$cross_compiling" = maybe; then
  2793 	cross_compiling=yes
  2794     else
  2795 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2796 If you meant to cross compile, use \`--host'.
  2797 See \`config.log' for more details." >&5
  2798 echo "$as_me: error: cannot run C compiled programs.
  2799 If you meant to cross compile, use \`--host'.
  2800 See \`config.log' for more details." >&2;}
  2801    { (exit 1); exit 1; }; }
  2802     fi
  2803   fi
  2804 fi
  2805 { echo "$as_me:$LINENO: result: yes" >&5
  2806 echo "${ECHO_T}yes" >&6; }
  2808 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2809 ac_clean_files=$ac_clean_files_save
  2810 # Check that the compiler produces executables we can run.  If not, either
  2811 # the compiler is broken, or we cross compile.
  2812 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2814 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2815 echo "${ECHO_T}$cross_compiling" >&6; }
  2817 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2818 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2819 if { (ac_try="$ac_link"
  2820 case "(($ac_try" in
  2821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822   *) ac_try_echo=$ac_try;;
  2823 esac
  2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2825   (eval "$ac_link") 2>&5
  2826   ac_status=$?
  2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828   (exit $ac_status); }; then
  2829   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2830 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2831 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2832 # `rm'.
  2833 for ac_file in conftest.exe conftest conftest.*; do
  2834   test -f "$ac_file" || continue
  2835   case $ac_file in
  2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2837     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2838 	  break;;
  2839     * ) break;;
  2840   esac
  2841 done
  2842 else
  2843   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2844 See \`config.log' for more details." >&5
  2845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2846 See \`config.log' for more details." >&2;}
  2847    { (exit 1); exit 1; }; }
  2848 fi
  2850 rm -f conftest$ac_cv_exeext
  2851 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2852 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2854 rm -f conftest.$ac_ext
  2855 EXEEXT=$ac_cv_exeext
  2856 ac_exeext=$EXEEXT
  2857 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2859 if test "${ac_cv_objext+set}" = set; then
  2860   echo $ECHO_N "(cached) $ECHO_C" >&6
  2861 else
  2862   cat >conftest.$ac_ext <<_ACEOF
  2863 /* confdefs.h.  */
  2864 _ACEOF
  2865 cat confdefs.h >>conftest.$ac_ext
  2866 cat >>conftest.$ac_ext <<_ACEOF
  2867 /* end confdefs.h.  */
  2869 int
  2870 main ()
  2874   return 0;
  2876 _ACEOF
  2877 rm -f conftest.o conftest.obj
  2878 if { (ac_try="$ac_compile"
  2879 case "(($ac_try" in
  2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2881   *) ac_try_echo=$ac_try;;
  2882 esac
  2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2884   (eval "$ac_compile") 2>&5
  2885   ac_status=$?
  2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887   (exit $ac_status); }; then
  2888   for ac_file in conftest.o conftest.obj conftest.*; do
  2889   test -f "$ac_file" || continue;
  2890   case $ac_file in
  2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2892     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2893        break;;
  2894   esac
  2895 done
  2896 else
  2897   echo "$as_me: failed program was:" >&5
  2898 sed 's/^/| /' conftest.$ac_ext >&5
  2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2901 See \`config.log' for more details." >&5
  2902 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2903 See \`config.log' for more details." >&2;}
  2904    { (exit 1); exit 1; }; }
  2905 fi
  2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2908 fi
  2909 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2910 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2911 OBJEXT=$ac_cv_objext
  2912 ac_objext=$OBJEXT
  2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2916   echo $ECHO_N "(cached) $ECHO_C" >&6
  2917 else
  2918   cat >conftest.$ac_ext <<_ACEOF
  2919 /* confdefs.h.  */
  2920 _ACEOF
  2921 cat confdefs.h >>conftest.$ac_ext
  2922 cat >>conftest.$ac_ext <<_ACEOF
  2923 /* end confdefs.h.  */
  2925 int
  2926 main ()
  2928 #ifndef __GNUC__
  2929        choke me
  2930 #endif
  2933   return 0;
  2935 _ACEOF
  2936 rm -f conftest.$ac_objext
  2937 if { (ac_try="$ac_compile"
  2938 case "(($ac_try" in
  2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940   *) ac_try_echo=$ac_try;;
  2941 esac
  2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943   (eval "$ac_compile") 2>conftest.er1
  2944   ac_status=$?
  2945   grep -v '^ *+' conftest.er1 >conftest.err
  2946   rm -f conftest.er1
  2947   cat conftest.err >&5
  2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949   (exit $ac_status); } && {
  2950 	 test -z "$ac_c_werror_flag" ||
  2951 	 test ! -s conftest.err
  2952        } && test -s conftest.$ac_objext; then
  2953   ac_compiler_gnu=yes
  2954 else
  2955   echo "$as_me: failed program was:" >&5
  2956 sed 's/^/| /' conftest.$ac_ext >&5
  2958 	ac_compiler_gnu=no
  2959 fi
  2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2964 fi
  2965 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2967 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2968 ac_test_CFLAGS=${CFLAGS+set}
  2969 ac_save_CFLAGS=$CFLAGS
  2970 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2972 if test "${ac_cv_prog_cc_g+set}" = set; then
  2973   echo $ECHO_N "(cached) $ECHO_C" >&6
  2974 else
  2975   ac_save_c_werror_flag=$ac_c_werror_flag
  2976    ac_c_werror_flag=yes
  2977    ac_cv_prog_cc_g=no
  2978    CFLAGS="-g"
  2979    cat >conftest.$ac_ext <<_ACEOF
  2980 /* confdefs.h.  */
  2981 _ACEOF
  2982 cat confdefs.h >>conftest.$ac_ext
  2983 cat >>conftest.$ac_ext <<_ACEOF
  2984 /* end confdefs.h.  */
  2986 int
  2987 main ()
  2991   return 0;
  2993 _ACEOF
  2994 rm -f conftest.$ac_objext
  2995 if { (ac_try="$ac_compile"
  2996 case "(($ac_try" in
  2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998   *) ac_try_echo=$ac_try;;
  2999 esac
  3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3001   (eval "$ac_compile") 2>conftest.er1
  3002   ac_status=$?
  3003   grep -v '^ *+' conftest.er1 >conftest.err
  3004   rm -f conftest.er1
  3005   cat conftest.err >&5
  3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3007   (exit $ac_status); } && {
  3008 	 test -z "$ac_c_werror_flag" ||
  3009 	 test ! -s conftest.err
  3010        } && test -s conftest.$ac_objext; then
  3011   ac_cv_prog_cc_g=yes
  3012 else
  3013   echo "$as_me: failed program was:" >&5
  3014 sed 's/^/| /' conftest.$ac_ext >&5
  3016 	CFLAGS=""
  3017       cat >conftest.$ac_ext <<_ACEOF
  3018 /* confdefs.h.  */
  3019 _ACEOF
  3020 cat confdefs.h >>conftest.$ac_ext
  3021 cat >>conftest.$ac_ext <<_ACEOF
  3022 /* end confdefs.h.  */
  3024 int
  3025 main ()
  3029   return 0;
  3031 _ACEOF
  3032 rm -f conftest.$ac_objext
  3033 if { (ac_try="$ac_compile"
  3034 case "(($ac_try" in
  3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036   *) ac_try_echo=$ac_try;;
  3037 esac
  3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3039   (eval "$ac_compile") 2>conftest.er1
  3040   ac_status=$?
  3041   grep -v '^ *+' conftest.er1 >conftest.err
  3042   rm -f conftest.er1
  3043   cat conftest.err >&5
  3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3045   (exit $ac_status); } && {
  3046 	 test -z "$ac_c_werror_flag" ||
  3047 	 test ! -s conftest.err
  3048        } && test -s conftest.$ac_objext; then
  3050 else
  3051   echo "$as_me: failed program was:" >&5
  3052 sed 's/^/| /' conftest.$ac_ext >&5
  3054 	ac_c_werror_flag=$ac_save_c_werror_flag
  3055 	 CFLAGS="-g"
  3056 	 cat >conftest.$ac_ext <<_ACEOF
  3057 /* confdefs.h.  */
  3058 _ACEOF
  3059 cat confdefs.h >>conftest.$ac_ext
  3060 cat >>conftest.$ac_ext <<_ACEOF
  3061 /* end confdefs.h.  */
  3063 int
  3064 main ()
  3068   return 0;
  3070 _ACEOF
  3071 rm -f conftest.$ac_objext
  3072 if { (ac_try="$ac_compile"
  3073 case "(($ac_try" in
  3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075   *) ac_try_echo=$ac_try;;
  3076 esac
  3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3078   (eval "$ac_compile") 2>conftest.er1
  3079   ac_status=$?
  3080   grep -v '^ *+' conftest.er1 >conftest.err
  3081   rm -f conftest.er1
  3082   cat conftest.err >&5
  3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084   (exit $ac_status); } && {
  3085 	 test -z "$ac_c_werror_flag" ||
  3086 	 test ! -s conftest.err
  3087        } && test -s conftest.$ac_objext; then
  3088   ac_cv_prog_cc_g=yes
  3089 else
  3090   echo "$as_me: failed program was:" >&5
  3091 sed 's/^/| /' conftest.$ac_ext >&5
  3094 fi
  3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097 fi
  3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100 fi
  3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3103    ac_c_werror_flag=$ac_save_c_werror_flag
  3104 fi
  3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3107 if test "$ac_test_CFLAGS" = set; then
  3108   CFLAGS=$ac_save_CFLAGS
  3109 elif test $ac_cv_prog_cc_g = yes; then
  3110   if test "$GCC" = yes; then
  3111     CFLAGS="-g -O2"
  3112   else
  3113     CFLAGS="-g"
  3114   fi
  3115 else
  3116   if test "$GCC" = yes; then
  3117     CFLAGS="-O2"
  3118   else
  3119     CFLAGS=
  3120   fi
  3121 fi
  3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3125   echo $ECHO_N "(cached) $ECHO_C" >&6
  3126 else
  3127   ac_cv_prog_cc_c89=no
  3128 ac_save_CC=$CC
  3129 cat >conftest.$ac_ext <<_ACEOF
  3130 /* confdefs.h.  */
  3131 _ACEOF
  3132 cat confdefs.h >>conftest.$ac_ext
  3133 cat >>conftest.$ac_ext <<_ACEOF
  3134 /* end confdefs.h.  */
  3135 #include <stdarg.h>
  3136 #include <stdio.h>
  3137 #include <sys/types.h>
  3138 #include <sys/stat.h>
  3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3140 struct buf { int x; };
  3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3142 static char *e (p, i)
  3143      char **p;
  3144      int i;
  3146   return p[i];
  3148 static char *f (char * (*g) (char **, int), char **p, ...)
  3150   char *s;
  3151   va_list v;
  3152   va_start (v,p);
  3153   s = g (p, va_arg (v,int));
  3154   va_end (v);
  3155   return s;
  3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3159    function prototypes and stuff, but not '\xHH' hex character constants.
  3160    These don't provoke an error unfortunately, instead are silently treated
  3161    as 'x'.  The following induces an error, until -std is added to get
  3162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3163    array size at least.  It's necessary to write '\x00'==0 to get something
  3164    that's true only with -std.  */
  3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3168    inside strings and character constants.  */
  3169 #define FOO(x) 'x'
  3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3172 int test (int i, double x);
  3173 struct s1 {int (*f) (int a);};
  3174 struct s2 {int (*f) (double a);};
  3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3176 int argc;
  3177 char **argv;
  3178 int
  3179 main ()
  3181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3183   return 0;
  3185 _ACEOF
  3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3187 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3188 do
  3189   CC="$ac_save_CC $ac_arg"
  3190   rm -f conftest.$ac_objext
  3191 if { (ac_try="$ac_compile"
  3192 case "(($ac_try" in
  3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194   *) ac_try_echo=$ac_try;;
  3195 esac
  3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3197   (eval "$ac_compile") 2>conftest.er1
  3198   ac_status=$?
  3199   grep -v '^ *+' conftest.er1 >conftest.err
  3200   rm -f conftest.er1
  3201   cat conftest.err >&5
  3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3203   (exit $ac_status); } && {
  3204 	 test -z "$ac_c_werror_flag" ||
  3205 	 test ! -s conftest.err
  3206        } && test -s conftest.$ac_objext; then
  3207   ac_cv_prog_cc_c89=$ac_arg
  3208 else
  3209   echo "$as_me: failed program was:" >&5
  3210 sed 's/^/| /' conftest.$ac_ext >&5
  3213 fi
  3215 rm -f core conftest.err conftest.$ac_objext
  3216   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3217 done
  3218 rm -f conftest.$ac_ext
  3219 CC=$ac_save_CC
  3221 fi
  3222 # AC_CACHE_VAL
  3223 case "x$ac_cv_prog_cc_c89" in
  3224   x)
  3225     { echo "$as_me:$LINENO: result: none needed" >&5
  3226 echo "${ECHO_T}none needed" >&6; } ;;
  3227   xno)
  3228     { echo "$as_me:$LINENO: result: unsupported" >&5
  3229 echo "${ECHO_T}unsupported" >&6; } ;;
  3230   *)
  3231     CC="$CC $ac_cv_prog_cc_c89"
  3232     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3234 esac
  3237 ac_ext=c
  3238 ac_cpp='$CPP $CPPFLAGS'
  3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3243 depcc="$CC"   am_compiler_list=
  3245 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3248   echo $ECHO_N "(cached) $ECHO_C" >&6
  3249 else
  3250   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3251   # We make a subdir and do the tests there.  Otherwise we can end up
  3252   # making bogus files that we don't know about and never remove.  For
  3253   # instance it was reported that on HP-UX the gcc test will end up
  3254   # making a dummy file named `D' -- because `-MD' means `put the output
  3255   # in D'.
  3256   mkdir conftest.dir
  3257   # Copy depcomp to subdir because otherwise we won't find it if we're
  3258   # using a relative directory.
  3259   cp "$am_depcomp" conftest.dir
  3260   cd conftest.dir
  3261   # We will build objects and dependencies in a subdirectory because
  3262   # it helps to detect inapplicable dependency modes.  For instance
  3263   # both Tru64's cc and ICC support -MD to output dependencies as a
  3264   # side effect of compilation, but ICC will put the dependencies in
  3265   # the current directory while Tru64 will put them in the object
  3266   # directory.
  3267   mkdir sub
  3269   am_cv_CC_dependencies_compiler_type=none
  3270   if test "$am_compiler_list" = ""; then
  3271      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3272   fi
  3273   for depmode in $am_compiler_list; do
  3274     # Setup a source with many dependencies, because some compilers
  3275     # like to wrap large dependency lists on column 80 (with \), and
  3276     # we should not choose a depcomp mode which is confused by this.
  3278     # We need to recreate these files for each test, as the compiler may
  3279     # overwrite some of them when testing with obscure command lines.
  3280     # This happens at least with the AIX C compiler.
  3281     : > sub/conftest.c
  3282     for i in 1 2 3 4 5 6; do
  3283       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3284       : > sub/conftst$i.h
  3285     done
  3286     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3288     case $depmode in
  3289     nosideeffect)
  3290       # after this tag, mechanisms are not by side-effect, so they'll
  3291       # only be used when explicitly requested
  3292       if test "x$enable_dependency_tracking" = xyes; then
  3293 	continue
  3294       else
  3295 	break
  3296       fi
  3297       ;;
  3298     none) break ;;
  3299     esac
  3300     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3301     # mode.  It turns out that the SunPro C++ compiler does not properly
  3302     # handle `-M -o', and we need to detect this.
  3303     if depmode=$depmode \
  3304        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3305        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3306        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3307          >/dev/null 2>conftest.err &&
  3308        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3309        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3310        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3311       # icc doesn't choke on unknown options, it will just issue warnings
  3312       # (even with -Werror).  So we grep stderr for any message
  3313       # that says an option was ignored.
  3314       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3315         am_cv_CC_dependencies_compiler_type=$depmode
  3316         break
  3317       fi
  3318     fi
  3319   done
  3321   cd ..
  3322   rm -rf conftest.dir
  3323 else
  3324   am_cv_CC_dependencies_compiler_type=none
  3325 fi
  3327 fi
  3328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3334 if
  3335   test "x$enable_dependency_tracking" != xno \
  3336   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3337   am__fastdepCC_TRUE=
  3338   am__fastdepCC_FALSE='#'
  3339 else
  3340   am__fastdepCC_TRUE='#'
  3341   am__fastdepCC_FALSE=
  3342 fi
  3346 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3347 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  3348 if test "${ac_cv_search_strerror+set}" = set; then
  3349   echo $ECHO_N "(cached) $ECHO_C" >&6
  3350 else
  3351   ac_func_search_save_LIBS=$LIBS
  3352 cat >conftest.$ac_ext <<_ACEOF
  3353 /* confdefs.h.  */
  3354 _ACEOF
  3355 cat confdefs.h >>conftest.$ac_ext
  3356 cat >>conftest.$ac_ext <<_ACEOF
  3357 /* end confdefs.h.  */
  3359 /* Override any GCC internal prototype to avoid an error.
  3360    Use char because int might match the return type of a GCC
  3361    builtin and then its argument prototype would still apply.  */
  3362 #ifdef __cplusplus
  3363 extern "C"
  3364 #endif
  3365 char strerror ();
  3366 int
  3367 main ()
  3369 return strerror ();
  3371   return 0;
  3373 _ACEOF
  3374 for ac_lib in '' cposix; do
  3375   if test -z "$ac_lib"; then
  3376     ac_res="none required"
  3377   else
  3378     ac_res=-l$ac_lib
  3379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3380   fi
  3381   rm -f conftest.$ac_objext conftest$ac_exeext
  3382 if { (ac_try="$ac_link"
  3383 case "(($ac_try" in
  3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3385   *) ac_try_echo=$ac_try;;
  3386 esac
  3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3388   (eval "$ac_link") 2>conftest.er1
  3389   ac_status=$?
  3390   grep -v '^ *+' conftest.er1 >conftest.err
  3391   rm -f conftest.er1
  3392   cat conftest.err >&5
  3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3394   (exit $ac_status); } && {
  3395 	 test -z "$ac_c_werror_flag" ||
  3396 	 test ! -s conftest.err
  3397        } && test -s conftest$ac_exeext &&
  3398        $as_test_x conftest$ac_exeext; then
  3399   ac_cv_search_strerror=$ac_res
  3400 else
  3401   echo "$as_me: failed program was:" >&5
  3402 sed 's/^/| /' conftest.$ac_ext >&5
  3405 fi
  3407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3408       conftest$ac_exeext
  3409   if test "${ac_cv_search_strerror+set}" = set; then
  3410   break
  3411 fi
  3412 done
  3413 if test "${ac_cv_search_strerror+set}" = set; then
  3415 else
  3416   ac_cv_search_strerror=no
  3417 fi
  3418 rm conftest.$ac_ext
  3419 LIBS=$ac_func_search_save_LIBS
  3420 fi
  3421 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3422 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  3423 ac_res=$ac_cv_search_strerror
  3424 if test "$ac_res" != no; then
  3425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3427 fi
  3429 ac_ext=c
  3430 ac_cpp='$CPP $CPPFLAGS'
  3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3434 if test -n "$ac_tool_prefix"; then
  3435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3439 if test "${ac_cv_prog_CC+set}" = set; then
  3440   echo $ECHO_N "(cached) $ECHO_C" >&6
  3441 else
  3442   if test -n "$CC"; then
  3443   ac_cv_prog_CC="$CC" # Let the user override the test.
  3444 else
  3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446 for as_dir in $PATH
  3447 do
  3448   IFS=$as_save_IFS
  3449   test -z "$as_dir" && as_dir=.
  3450   for ac_exec_ext in '' $ac_executable_extensions; do
  3451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3454     break 2
  3455   fi
  3456 done
  3457 done
  3458 IFS=$as_save_IFS
  3460 fi
  3461 fi
  3462 CC=$ac_cv_prog_CC
  3463 if test -n "$CC"; then
  3464   { echo "$as_me:$LINENO: result: $CC" >&5
  3465 echo "${ECHO_T}$CC" >&6; }
  3466 else
  3467   { echo "$as_me:$LINENO: result: no" >&5
  3468 echo "${ECHO_T}no" >&6; }
  3469 fi
  3472 fi
  3473 if test -z "$ac_cv_prog_CC"; then
  3474   ac_ct_CC=$CC
  3475   # Extract the first word of "gcc", so it can be a program name with args.
  3476 set dummy gcc; ac_word=$2
  3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3480   echo $ECHO_N "(cached) $ECHO_C" >&6
  3481 else
  3482   if test -n "$ac_ct_CC"; then
  3483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3484 else
  3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3486 for as_dir in $PATH
  3487 do
  3488   IFS=$as_save_IFS
  3489   test -z "$as_dir" && as_dir=.
  3490   for ac_exec_ext in '' $ac_executable_extensions; do
  3491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3492     ac_cv_prog_ac_ct_CC="gcc"
  3493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3494     break 2
  3495   fi
  3496 done
  3497 done
  3498 IFS=$as_save_IFS
  3500 fi
  3501 fi
  3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3503 if test -n "$ac_ct_CC"; then
  3504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3505 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3506 else
  3507   { echo "$as_me:$LINENO: result: no" >&5
  3508 echo "${ECHO_T}no" >&6; }
  3509 fi
  3511   if test "x$ac_ct_CC" = x; then
  3512     CC=""
  3513   else
  3514     case $cross_compiling:$ac_tool_warned in
  3515 yes:)
  3516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3517 whose name does not start with the host triplet.  If you think this
  3518 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3520 whose name does not start with the host triplet.  If you think this
  3521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3522 ac_tool_warned=yes ;;
  3523 esac
  3524     CC=$ac_ct_CC
  3525   fi
  3526 else
  3527   CC="$ac_cv_prog_CC"
  3528 fi
  3530 if test -z "$CC"; then
  3531           if test -n "$ac_tool_prefix"; then
  3532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3536 if test "${ac_cv_prog_CC+set}" = set; then
  3537   echo $ECHO_N "(cached) $ECHO_C" >&6
  3538 else
  3539   if test -n "$CC"; then
  3540   ac_cv_prog_CC="$CC" # Let the user override the test.
  3541 else
  3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543 for as_dir in $PATH
  3544 do
  3545   IFS=$as_save_IFS
  3546   test -z "$as_dir" && as_dir=.
  3547   for ac_exec_ext in '' $ac_executable_extensions; do
  3548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3549     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551     break 2
  3552   fi
  3553 done
  3554 done
  3555 IFS=$as_save_IFS
  3557 fi
  3558 fi
  3559 CC=$ac_cv_prog_CC
  3560 if test -n "$CC"; then
  3561   { echo "$as_me:$LINENO: result: $CC" >&5
  3562 echo "${ECHO_T}$CC" >&6; }
  3563 else
  3564   { echo "$as_me:$LINENO: result: no" >&5
  3565 echo "${ECHO_T}no" >&6; }
  3566 fi
  3569   fi
  3570 fi
  3571 if test -z "$CC"; then
  3572   # Extract the first word of "cc", so it can be a program name with args.
  3573 set dummy cc; ac_word=$2
  3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3576 if test "${ac_cv_prog_CC+set}" = set; then
  3577   echo $ECHO_N "(cached) $ECHO_C" >&6
  3578 else
  3579   if test -n "$CC"; then
  3580   ac_cv_prog_CC="$CC" # Let the user override the test.
  3581 else
  3582   ac_prog_rejected=no
  3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584 for as_dir in $PATH
  3585 do
  3586   IFS=$as_save_IFS
  3587   test -z "$as_dir" && as_dir=.
  3588   for ac_exec_ext in '' $ac_executable_extensions; do
  3589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3591        ac_prog_rejected=yes
  3592        continue
  3593      fi
  3594     ac_cv_prog_CC="cc"
  3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596     break 2
  3597   fi
  3598 done
  3599 done
  3600 IFS=$as_save_IFS
  3602 if test $ac_prog_rejected = yes; then
  3603   # We found a bogon in the path, so make sure we never use it.
  3604   set dummy $ac_cv_prog_CC
  3605   shift
  3606   if test $# != 0; then
  3607     # We chose a different compiler from the bogus one.
  3608     # However, it has the same basename, so the bogon will be chosen
  3609     # first if we set CC to just the basename; use the full file name.
  3610     shift
  3611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3612   fi
  3613 fi
  3614 fi
  3615 fi
  3616 CC=$ac_cv_prog_CC
  3617 if test -n "$CC"; then
  3618   { echo "$as_me:$LINENO: result: $CC" >&5
  3619 echo "${ECHO_T}$CC" >&6; }
  3620 else
  3621   { echo "$as_me:$LINENO: result: no" >&5
  3622 echo "${ECHO_T}no" >&6; }
  3623 fi
  3626 fi
  3627 if test -z "$CC"; then
  3628   if test -n "$ac_tool_prefix"; then
  3629   for ac_prog in cl.exe
  3630   do
  3631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3635 if test "${ac_cv_prog_CC+set}" = set; then
  3636   echo $ECHO_N "(cached) $ECHO_C" >&6
  3637 else
  3638   if test -n "$CC"; then
  3639   ac_cv_prog_CC="$CC" # Let the user override the test.
  3640 else
  3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3642 for as_dir in $PATH
  3643 do
  3644   IFS=$as_save_IFS
  3645   test -z "$as_dir" && as_dir=.
  3646   for ac_exec_ext in '' $ac_executable_extensions; do
  3647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3650     break 2
  3651   fi
  3652 done
  3653 done
  3654 IFS=$as_save_IFS
  3656 fi
  3657 fi
  3658 CC=$ac_cv_prog_CC
  3659 if test -n "$CC"; then
  3660   { echo "$as_me:$LINENO: result: $CC" >&5
  3661 echo "${ECHO_T}$CC" >&6; }
  3662 else
  3663   { echo "$as_me:$LINENO: result: no" >&5
  3664 echo "${ECHO_T}no" >&6; }
  3665 fi
  3668     test -n "$CC" && break
  3669   done
  3670 fi
  3671 if test -z "$CC"; then
  3672   ac_ct_CC=$CC
  3673   for ac_prog in cl.exe
  3674 do
  3675   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3676 set dummy $ac_prog; ac_word=$2
  3677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3680   echo $ECHO_N "(cached) $ECHO_C" >&6
  3681 else
  3682   if test -n "$ac_ct_CC"; then
  3683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3684 else
  3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3686 for as_dir in $PATH
  3687 do
  3688   IFS=$as_save_IFS
  3689   test -z "$as_dir" && as_dir=.
  3690   for ac_exec_ext in '' $ac_executable_extensions; do
  3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3692     ac_cv_prog_ac_ct_CC="$ac_prog"
  3693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3694     break 2
  3695   fi
  3696 done
  3697 done
  3698 IFS=$as_save_IFS
  3700 fi
  3701 fi
  3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3703 if test -n "$ac_ct_CC"; then
  3704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3705 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3706 else
  3707   { echo "$as_me:$LINENO: result: no" >&5
  3708 echo "${ECHO_T}no" >&6; }
  3709 fi
  3712   test -n "$ac_ct_CC" && break
  3713 done
  3715   if test "x$ac_ct_CC" = x; then
  3716     CC=""
  3717   else
  3718     case $cross_compiling:$ac_tool_warned in
  3719 yes:)
  3720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3721 whose name does not start with the host triplet.  If you think this
  3722 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3724 whose name does not start with the host triplet.  If you think this
  3725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3726 ac_tool_warned=yes ;;
  3727 esac
  3728     CC=$ac_ct_CC
  3729   fi
  3730 fi
  3732 fi
  3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3736 See \`config.log' for more details." >&5
  3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3738 See \`config.log' for more details." >&2;}
  3739    { (exit 1); exit 1; }; }
  3741 # Provide some information about the compiler.
  3742 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3743 ac_compiler=`set X $ac_compile; echo $2`
  3744 { (ac_try="$ac_compiler --version >&5"
  3745 case "(($ac_try" in
  3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3747   *) ac_try_echo=$ac_try;;
  3748 esac
  3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3750   (eval "$ac_compiler --version >&5") 2>&5
  3751   ac_status=$?
  3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3753   (exit $ac_status); }
  3754 { (ac_try="$ac_compiler -v >&5"
  3755 case "(($ac_try" in
  3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757   *) ac_try_echo=$ac_try;;
  3758 esac
  3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3760   (eval "$ac_compiler -v >&5") 2>&5
  3761   ac_status=$?
  3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763   (exit $ac_status); }
  3764 { (ac_try="$ac_compiler -V >&5"
  3765 case "(($ac_try" in
  3766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3767   *) ac_try_echo=$ac_try;;
  3768 esac
  3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3770   (eval "$ac_compiler -V >&5") 2>&5
  3771   ac_status=$?
  3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3773   (exit $ac_status); }
  3775 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3776 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3778   echo $ECHO_N "(cached) $ECHO_C" >&6
  3779 else
  3780   cat >conftest.$ac_ext <<_ACEOF
  3781 /* confdefs.h.  */
  3782 _ACEOF
  3783 cat confdefs.h >>conftest.$ac_ext
  3784 cat >>conftest.$ac_ext <<_ACEOF
  3785 /* end confdefs.h.  */
  3787 int
  3788 main ()
  3790 #ifndef __GNUC__
  3791        choke me
  3792 #endif
  3795   return 0;
  3797 _ACEOF
  3798 rm -f conftest.$ac_objext
  3799 if { (ac_try="$ac_compile"
  3800 case "(($ac_try" in
  3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3802   *) ac_try_echo=$ac_try;;
  3803 esac
  3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3805   (eval "$ac_compile") 2>conftest.er1
  3806   ac_status=$?
  3807   grep -v '^ *+' conftest.er1 >conftest.err
  3808   rm -f conftest.er1
  3809   cat conftest.err >&5
  3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811   (exit $ac_status); } && {
  3812 	 test -z "$ac_c_werror_flag" ||
  3813 	 test ! -s conftest.err
  3814        } && test -s conftest.$ac_objext; then
  3815   ac_compiler_gnu=yes
  3816 else
  3817   echo "$as_me: failed program was:" >&5
  3818 sed 's/^/| /' conftest.$ac_ext >&5
  3820 	ac_compiler_gnu=no
  3821 fi
  3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3826 fi
  3827 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3828 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3829 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3830 ac_test_CFLAGS=${CFLAGS+set}
  3831 ac_save_CFLAGS=$CFLAGS
  3832 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3833 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3834 if test "${ac_cv_prog_cc_g+set}" = set; then
  3835   echo $ECHO_N "(cached) $ECHO_C" >&6
  3836 else
  3837   ac_save_c_werror_flag=$ac_c_werror_flag
  3838    ac_c_werror_flag=yes
  3839    ac_cv_prog_cc_g=no
  3840    CFLAGS="-g"
  3841    cat >conftest.$ac_ext <<_ACEOF
  3842 /* confdefs.h.  */
  3843 _ACEOF
  3844 cat confdefs.h >>conftest.$ac_ext
  3845 cat >>conftest.$ac_ext <<_ACEOF
  3846 /* end confdefs.h.  */
  3848 int
  3849 main ()
  3853   return 0;
  3855 _ACEOF
  3856 rm -f conftest.$ac_objext
  3857 if { (ac_try="$ac_compile"
  3858 case "(($ac_try" in
  3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3860   *) ac_try_echo=$ac_try;;
  3861 esac
  3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3863   (eval "$ac_compile") 2>conftest.er1
  3864   ac_status=$?
  3865   grep -v '^ *+' conftest.er1 >conftest.err
  3866   rm -f conftest.er1
  3867   cat conftest.err >&5
  3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3869   (exit $ac_status); } && {
  3870 	 test -z "$ac_c_werror_flag" ||
  3871 	 test ! -s conftest.err
  3872        } && test -s conftest.$ac_objext; then
  3873   ac_cv_prog_cc_g=yes
  3874 else
  3875   echo "$as_me: failed program was:" >&5
  3876 sed 's/^/| /' conftest.$ac_ext >&5
  3878 	CFLAGS=""
  3879       cat >conftest.$ac_ext <<_ACEOF
  3880 /* confdefs.h.  */
  3881 _ACEOF
  3882 cat confdefs.h >>conftest.$ac_ext
  3883 cat >>conftest.$ac_ext <<_ACEOF
  3884 /* end confdefs.h.  */
  3886 int
  3887 main ()
  3891   return 0;
  3893 _ACEOF
  3894 rm -f conftest.$ac_objext
  3895 if { (ac_try="$ac_compile"
  3896 case "(($ac_try" in
  3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3898   *) ac_try_echo=$ac_try;;
  3899 esac
  3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3901   (eval "$ac_compile") 2>conftest.er1
  3902   ac_status=$?
  3903   grep -v '^ *+' conftest.er1 >conftest.err
  3904   rm -f conftest.er1
  3905   cat conftest.err >&5
  3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3907   (exit $ac_status); } && {
  3908 	 test -z "$ac_c_werror_flag" ||
  3909 	 test ! -s conftest.err
  3910        } && test -s conftest.$ac_objext; then
  3912 else
  3913   echo "$as_me: failed program was:" >&5
  3914 sed 's/^/| /' conftest.$ac_ext >&5
  3916 	ac_c_werror_flag=$ac_save_c_werror_flag
  3917 	 CFLAGS="-g"
  3918 	 cat >conftest.$ac_ext <<_ACEOF
  3919 /* confdefs.h.  */
  3920 _ACEOF
  3921 cat confdefs.h >>conftest.$ac_ext
  3922 cat >>conftest.$ac_ext <<_ACEOF
  3923 /* end confdefs.h.  */
  3925 int
  3926 main ()
  3930   return 0;
  3932 _ACEOF
  3933 rm -f conftest.$ac_objext
  3934 if { (ac_try="$ac_compile"
  3935 case "(($ac_try" in
  3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3937   *) ac_try_echo=$ac_try;;
  3938 esac
  3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3940   (eval "$ac_compile") 2>conftest.er1
  3941   ac_status=$?
  3942   grep -v '^ *+' conftest.er1 >conftest.err
  3943   rm -f conftest.er1
  3944   cat conftest.err >&5
  3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946   (exit $ac_status); } && {
  3947 	 test -z "$ac_c_werror_flag" ||
  3948 	 test ! -s conftest.err
  3949        } && test -s conftest.$ac_objext; then
  3950   ac_cv_prog_cc_g=yes
  3951 else
  3952   echo "$as_me: failed program was:" >&5
  3953 sed 's/^/| /' conftest.$ac_ext >&5
  3956 fi
  3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959 fi
  3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3962 fi
  3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3965    ac_c_werror_flag=$ac_save_c_werror_flag
  3966 fi
  3967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3969 if test "$ac_test_CFLAGS" = set; then
  3970   CFLAGS=$ac_save_CFLAGS
  3971 elif test $ac_cv_prog_cc_g = yes; then
  3972   if test "$GCC" = yes; then
  3973     CFLAGS="-g -O2"
  3974   else
  3975     CFLAGS="-g"
  3976   fi
  3977 else
  3978   if test "$GCC" = yes; then
  3979     CFLAGS="-O2"
  3980   else
  3981     CFLAGS=
  3982   fi
  3983 fi
  3984 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3985 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3986 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3987   echo $ECHO_N "(cached) $ECHO_C" >&6
  3988 else
  3989   ac_cv_prog_cc_c89=no
  3990 ac_save_CC=$CC
  3991 cat >conftest.$ac_ext <<_ACEOF
  3992 /* confdefs.h.  */
  3993 _ACEOF
  3994 cat confdefs.h >>conftest.$ac_ext
  3995 cat >>conftest.$ac_ext <<_ACEOF
  3996 /* end confdefs.h.  */
  3997 #include <stdarg.h>
  3998 #include <stdio.h>
  3999 #include <sys/types.h>
  4000 #include <sys/stat.h>
  4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4002 struct buf { int x; };
  4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4004 static char *e (p, i)
  4005      char **p;
  4006      int i;
  4008   return p[i];
  4010 static char *f (char * (*g) (char **, int), char **p, ...)
  4012   char *s;
  4013   va_list v;
  4014   va_start (v,p);
  4015   s = g (p, va_arg (v,int));
  4016   va_end (v);
  4017   return s;
  4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4021    function prototypes and stuff, but not '\xHH' hex character constants.
  4022    These don't provoke an error unfortunately, instead are silently treated
  4023    as 'x'.  The following induces an error, until -std is added to get
  4024    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4025    array size at least.  It's necessary to write '\x00'==0 to get something
  4026    that's true only with -std.  */
  4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4030    inside strings and character constants.  */
  4031 #define FOO(x) 'x'
  4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4034 int test (int i, double x);
  4035 struct s1 {int (*f) (int a);};
  4036 struct s2 {int (*f) (double a);};
  4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4038 int argc;
  4039 char **argv;
  4040 int
  4041 main ()
  4043 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4045   return 0;
  4047 _ACEOF
  4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4049 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4050 do
  4051   CC="$ac_save_CC $ac_arg"
  4052   rm -f conftest.$ac_objext
  4053 if { (ac_try="$ac_compile"
  4054 case "(($ac_try" in
  4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4056   *) ac_try_echo=$ac_try;;
  4057 esac
  4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4059   (eval "$ac_compile") 2>conftest.er1
  4060   ac_status=$?
  4061   grep -v '^ *+' conftest.er1 >conftest.err
  4062   rm -f conftest.er1
  4063   cat conftest.err >&5
  4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065   (exit $ac_status); } && {
  4066 	 test -z "$ac_c_werror_flag" ||
  4067 	 test ! -s conftest.err
  4068        } && test -s conftest.$ac_objext; then
  4069   ac_cv_prog_cc_c89=$ac_arg
  4070 else
  4071   echo "$as_me: failed program was:" >&5
  4072 sed 's/^/| /' conftest.$ac_ext >&5
  4075 fi
  4077 rm -f core conftest.err conftest.$ac_objext
  4078   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4079 done
  4080 rm -f conftest.$ac_ext
  4081 CC=$ac_save_CC
  4083 fi
  4084 # AC_CACHE_VAL
  4085 case "x$ac_cv_prog_cc_c89" in
  4086   x)
  4087     { echo "$as_me:$LINENO: result: none needed" >&5
  4088 echo "${ECHO_T}none needed" >&6; } ;;
  4089   xno)
  4090     { echo "$as_me:$LINENO: result: unsupported" >&5
  4091 echo "${ECHO_T}unsupported" >&6; } ;;
  4092   *)
  4093     CC="$CC $ac_cv_prog_cc_c89"
  4094     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4095 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4096 esac
  4099 ac_ext=c
  4100 ac_cpp='$CPP $CPPFLAGS'
  4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105 depcc="$CC"   am_compiler_list=
  4107 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4110   echo $ECHO_N "(cached) $ECHO_C" >&6
  4111 else
  4112   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4113   # We make a subdir and do the tests there.  Otherwise we can end up
  4114   # making bogus files that we don't know about and never remove.  For
  4115   # instance it was reported that on HP-UX the gcc test will end up
  4116   # making a dummy file named `D' -- because `-MD' means `put the output
  4117   # in D'.
  4118   mkdir conftest.dir
  4119   # Copy depcomp to subdir because otherwise we won't find it if we're
  4120   # using a relative directory.
  4121   cp "$am_depcomp" conftest.dir
  4122   cd conftest.dir
  4123   # We will build objects and dependencies in a subdirectory because
  4124   # it helps to detect inapplicable dependency modes.  For instance
  4125   # both Tru64's cc and ICC support -MD to output dependencies as a
  4126   # side effect of compilation, but ICC will put the dependencies in
  4127   # the current directory while Tru64 will put them in the object
  4128   # directory.
  4129   mkdir sub
  4131   am_cv_CC_dependencies_compiler_type=none
  4132   if test "$am_compiler_list" = ""; then
  4133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4134   fi
  4135   for depmode in $am_compiler_list; do
  4136     # Setup a source with many dependencies, because some compilers
  4137     # like to wrap large dependency lists on column 80 (with \), and
  4138     # we should not choose a depcomp mode which is confused by this.
  4140     # We need to recreate these files for each test, as the compiler may
  4141     # overwrite some of them when testing with obscure command lines.
  4142     # This happens at least with the AIX C compiler.
  4143     : > sub/conftest.c
  4144     for i in 1 2 3 4 5 6; do
  4145       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4146       : > sub/conftst$i.h
  4147     done
  4148     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4150     case $depmode in
  4151     nosideeffect)
  4152       # after this tag, mechanisms are not by side-effect, so they'll
  4153       # only be used when explicitly requested
  4154       if test "x$enable_dependency_tracking" = xyes; then
  4155 	continue
  4156       else
  4157 	break
  4158       fi
  4159       ;;
  4160     none) break ;;
  4161     esac
  4162     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4163     # mode.  It turns out that the SunPro C++ compiler does not properly
  4164     # handle `-M -o', and we need to detect this.
  4165     if depmode=$depmode \
  4166        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4167        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4168        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4169          >/dev/null 2>conftest.err &&
  4170        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4171        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4172        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4173       # icc doesn't choke on unknown options, it will just issue warnings
  4174       # (even with -Werror).  So we grep stderr for any message
  4175       # that says an option was ignored.
  4176       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  4177         am_cv_CC_dependencies_compiler_type=$depmode
  4178         break
  4179       fi
  4180     fi
  4181   done
  4183   cd ..
  4184   rm -rf conftest.dir
  4185 else
  4186   am_cv_CC_dependencies_compiler_type=none
  4187 fi
  4189 fi
  4190 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4191 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4196 if
  4197   test "x$enable_dependency_tracking" != xno \
  4198   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4199   am__fastdepCC_TRUE=
  4200   am__fastdepCC_FALSE='#'
  4201 else
  4202   am__fastdepCC_TRUE='#'
  4203   am__fastdepCC_FALSE=
  4204 fi
  4210 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  4211 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
  4212 if test "${am_cv_prog_cc_stdc+set}" = set; then
  4213   echo $ECHO_N "(cached) $ECHO_C" >&6
  4214 else
  4215   am_cv_prog_cc_stdc=no
  4216 ac_save_CC="$CC"
  4217 # Don't try gcc -ansi; that turns off useful extensions and
  4218 # breaks some systems' header files.
  4219 # AIX			-qlanglvl=ansi
  4220 # Ultrix and OSF/1	-std1
  4221 # HP-UX 10.20 and later	-Ae
  4222 # HP-UX older versions	-Aa -D_HPUX_SOURCE
  4223 # SVR4			-Xc -D__EXTENSIONS__
  4224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4225 do
  4226   CC="$ac_save_CC $ac_arg"
  4227   cat >conftest.$ac_ext <<_ACEOF
  4228 /* confdefs.h.  */
  4229 _ACEOF
  4230 cat confdefs.h >>conftest.$ac_ext
  4231 cat >>conftest.$ac_ext <<_ACEOF
  4232 /* end confdefs.h.  */
  4233 #include <stdarg.h>
  4234 #include <stdio.h>
  4235 #include <sys/types.h>
  4236 #include <sys/stat.h>
  4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4238 struct buf { int x; };
  4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4240 static char *e (p, i)
  4241      char **p;
  4242      int i;
  4244   return p[i];
  4246 static char *f (char * (*g) (char **, int), char **p, ...)
  4248   char *s;
  4249   va_list v;
  4250   va_start (v,p);
  4251   s = g (p, va_arg (v,int));
  4252   va_end (v);
  4253   return s;
  4255 int test (int i, double x);
  4256 struct s1 {int (*f) (int a);};
  4257 struct s2 {int (*f) (double a);};
  4258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4259 int argc;
  4260 char **argv;
  4262 int
  4263 main ()
  4266 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4269   return 0;
  4271 _ACEOF
  4272 rm -f conftest.$ac_objext
  4273 if { (ac_try="$ac_compile"
  4274 case "(($ac_try" in
  4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4276   *) ac_try_echo=$ac_try;;
  4277 esac
  4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4279   (eval "$ac_compile") 2>conftest.er1
  4280   ac_status=$?
  4281   grep -v '^ *+' conftest.er1 >conftest.err
  4282   rm -f conftest.er1
  4283   cat conftest.err >&5
  4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285   (exit $ac_status); } && {
  4286 	 test -z "$ac_c_werror_flag" ||
  4287 	 test ! -s conftest.err
  4288        } && test -s conftest.$ac_objext; then
  4289   am_cv_prog_cc_stdc="$ac_arg"; break
  4290 else
  4291   echo "$as_me: failed program was:" >&5
  4292 sed 's/^/| /' conftest.$ac_ext >&5
  4295 fi
  4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298 done
  4299 CC="$ac_save_CC"
  4301 fi
  4303 if test -z "$am_cv_prog_cc_stdc"; then
  4304   { echo "$as_me:$LINENO: result: none needed" >&5
  4305 echo "${ECHO_T}none needed" >&6; }
  4306 else
  4307   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  4308 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
  4309 fi
  4310 case "x$am_cv_prog_cc_stdc" in
  4311   x|xno) ;;
  4312   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4313 esac
  4315 # By default we simply use the C compiler to build assembly code.
  4317 : ${CCAS='$(CC)'}
  4318 # Set ASFLAGS if not already set.
  4319 : ${CCASFLAGS='$(CFLAGS)'}
  4322 ac_ext=c
  4323 ac_cpp='$CPP $CPPFLAGS'
  4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4329 # On Suns, sometimes $CPP names a directory.
  4330 if test -n "$CPP" && test -d "$CPP"; then
  4331   CPP=
  4332 fi
  4333 if test -z "$CPP"; then
  4334   if test "${ac_cv_prog_CPP+set}" = set; then
  4335   echo $ECHO_N "(cached) $ECHO_C" >&6
  4336 else
  4337       # Double quotes because CPP needs to be expanded
  4338     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4339     do
  4340       ac_preproc_ok=false
  4341 for ac_c_preproc_warn_flag in '' yes
  4342 do
  4343   # Use a header file that comes with gcc, so configuring glibc
  4344   # with a fresh cross-compiler works.
  4345   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4346   # <limits.h> exists even on freestanding compilers.
  4347   # On the NeXT, cc -E runs the code through the compiler's parser,
  4348   # not just through cpp. "Syntax error" is here to catch this case.
  4349   cat >conftest.$ac_ext <<_ACEOF
  4350 /* confdefs.h.  */
  4351 _ACEOF
  4352 cat confdefs.h >>conftest.$ac_ext
  4353 cat >>conftest.$ac_ext <<_ACEOF
  4354 /* end confdefs.h.  */
  4355 #ifdef __STDC__
  4356 # include <limits.h>
  4357 #else
  4358 # include <assert.h>
  4359 #endif
  4360 		     Syntax error
  4361 _ACEOF
  4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4363 case "(($ac_try" in
  4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4365   *) ac_try_echo=$ac_try;;
  4366 esac
  4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4369   ac_status=$?
  4370   grep -v '^ *+' conftest.er1 >conftest.err
  4371   rm -f conftest.er1
  4372   cat conftest.err >&5
  4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4374   (exit $ac_status); } >/dev/null && {
  4375 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4376 	 test ! -s conftest.err
  4377        }; then
  4379 else
  4380   echo "$as_me: failed program was:" >&5
  4381 sed 's/^/| /' conftest.$ac_ext >&5
  4383   # Broken: fails on valid input.
  4384 continue
  4385 fi
  4387 rm -f conftest.err conftest.$ac_ext
  4389   # OK, works on sane cases.  Now check whether nonexistent headers
  4390   # can be detected and how.
  4391   cat >conftest.$ac_ext <<_ACEOF
  4392 /* confdefs.h.  */
  4393 _ACEOF
  4394 cat confdefs.h >>conftest.$ac_ext
  4395 cat >>conftest.$ac_ext <<_ACEOF
  4396 /* end confdefs.h.  */
  4397 #include <ac_nonexistent.h>
  4398 _ACEOF
  4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4400 case "(($ac_try" in
  4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402   *) ac_try_echo=$ac_try;;
  4403 esac
  4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4406   ac_status=$?
  4407   grep -v '^ *+' conftest.er1 >conftest.err
  4408   rm -f conftest.er1
  4409   cat conftest.err >&5
  4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4411   (exit $ac_status); } >/dev/null && {
  4412 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4413 	 test ! -s conftest.err
  4414        }; then
  4415   # Broken: success on invalid input.
  4416 continue
  4417 else
  4418   echo "$as_me: failed program was:" >&5
  4419 sed 's/^/| /' conftest.$ac_ext >&5
  4421   # Passes both tests.
  4422 ac_preproc_ok=:
  4423 break
  4424 fi
  4426 rm -f conftest.err conftest.$ac_ext
  4428 done
  4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4430 rm -f conftest.err conftest.$ac_ext
  4431 if $ac_preproc_ok; then
  4432   break
  4433 fi
  4435     done
  4436     ac_cv_prog_CPP=$CPP
  4438 fi
  4439   CPP=$ac_cv_prog_CPP
  4440 else
  4441   ac_cv_prog_CPP=$CPP
  4442 fi
  4443 { echo "$as_me:$LINENO: result: $CPP" >&5
  4444 echo "${ECHO_T}$CPP" >&6; }
  4445 ac_preproc_ok=false
  4446 for ac_c_preproc_warn_flag in '' yes
  4447 do
  4448   # Use a header file that comes with gcc, so configuring glibc
  4449   # with a fresh cross-compiler works.
  4450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4451   # <limits.h> exists even on freestanding compilers.
  4452   # On the NeXT, cc -E runs the code through the compiler's parser,
  4453   # not just through cpp. "Syntax error" is here to catch this case.
  4454   cat >conftest.$ac_ext <<_ACEOF
  4455 /* confdefs.h.  */
  4456 _ACEOF
  4457 cat confdefs.h >>conftest.$ac_ext
  4458 cat >>conftest.$ac_ext <<_ACEOF
  4459 /* end confdefs.h.  */
  4460 #ifdef __STDC__
  4461 # include <limits.h>
  4462 #else
  4463 # include <assert.h>
  4464 #endif
  4465 		     Syntax error
  4466 _ACEOF
  4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4468 case "(($ac_try" in
  4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4470   *) ac_try_echo=$ac_try;;
  4471 esac
  4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4474   ac_status=$?
  4475   grep -v '^ *+' conftest.er1 >conftest.err
  4476   rm -f conftest.er1
  4477   cat conftest.err >&5
  4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4479   (exit $ac_status); } >/dev/null && {
  4480 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4481 	 test ! -s conftest.err
  4482        }; then
  4484 else
  4485   echo "$as_me: failed program was:" >&5
  4486 sed 's/^/| /' conftest.$ac_ext >&5
  4488   # Broken: fails on valid input.
  4489 continue
  4490 fi
  4492 rm -f conftest.err conftest.$ac_ext
  4494   # OK, works on sane cases.  Now check whether nonexistent headers
  4495   # can be detected and how.
  4496   cat >conftest.$ac_ext <<_ACEOF
  4497 /* confdefs.h.  */
  4498 _ACEOF
  4499 cat confdefs.h >>conftest.$ac_ext
  4500 cat >>conftest.$ac_ext <<_ACEOF
  4501 /* end confdefs.h.  */
  4502 #include <ac_nonexistent.h>
  4503 _ACEOF
  4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
  4505 case "(($ac_try" in
  4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4507   *) ac_try_echo=$ac_try;;
  4508 esac
  4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4511   ac_status=$?
  4512   grep -v '^ *+' conftest.er1 >conftest.err
  4513   rm -f conftest.er1
  4514   cat conftest.err >&5
  4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4516   (exit $ac_status); } >/dev/null && {
  4517 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4518 	 test ! -s conftest.err
  4519        }; then
  4520   # Broken: success on invalid input.
  4521 continue
  4522 else
  4523   echo "$as_me: failed program was:" >&5
  4524 sed 's/^/| /' conftest.$ac_ext >&5
  4526   # Passes both tests.
  4527 ac_preproc_ok=:
  4528 break
  4529 fi
  4531 rm -f conftest.err conftest.$ac_ext
  4533 done
  4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4535 rm -f conftest.err conftest.$ac_ext
  4536 if $ac_preproc_ok; then
  4538 else
  4539   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4540 See \`config.log' for more details." >&5
  4541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4542 See \`config.log' for more details." >&2;}
  4543    { (exit 1); exit 1; }; }
  4544 fi
  4546 ac_ext=c
  4547 ac_cpp='$CPP $CPPFLAGS'
  4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4553 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4554 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4555 if test "${ac_cv_path_GREP+set}" = set; then
  4556   echo $ECHO_N "(cached) $ECHO_C" >&6
  4557 else
  4558   # Extract the first word of "grep ggrep" to use in msg output
  4559 if test -z "$GREP"; then
  4560 set dummy grep ggrep; ac_prog_name=$2
  4561 if test "${ac_cv_path_GREP+set}" = set; then
  4562   echo $ECHO_N "(cached) $ECHO_C" >&6
  4563 else
  4564   ac_path_GREP_found=false
  4565 # Loop through the user's path and test for each of PROGNAME-LIST
  4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4568 do
  4569   IFS=$as_save_IFS
  4570   test -z "$as_dir" && as_dir=.
  4571   for ac_prog in grep ggrep; do
  4572   for ac_exec_ext in '' $ac_executable_extensions; do
  4573     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4574     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4575     # Check for GNU ac_path_GREP and select it if it is found.
  4576   # Check for GNU $ac_path_GREP
  4577 case `"$ac_path_GREP" --version 2>&1` in
  4578 *GNU*)
  4579   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4580 *)
  4581   ac_count=0
  4582   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4583   while :
  4584   do
  4585     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4586     mv "conftest.tmp" "conftest.in"
  4587     cp "conftest.in" "conftest.nl"
  4588     echo 'GREP' >> "conftest.nl"
  4589     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4591     ac_count=`expr $ac_count + 1`
  4592     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4593       # Best one so far, save it but keep looking for a better one
  4594       ac_cv_path_GREP="$ac_path_GREP"
  4595       ac_path_GREP_max=$ac_count
  4596     fi
  4597     # 10*(2^10) chars as input seems more than enough
  4598     test $ac_count -gt 10 && break
  4599   done
  4600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4601 esac
  4604     $ac_path_GREP_found && break 3
  4605   done
  4606 done
  4608 done
  4609 IFS=$as_save_IFS
  4612 fi
  4614 GREP="$ac_cv_path_GREP"
  4615 if test -z "$GREP"; then
  4616   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4618    { (exit 1); exit 1; }; }
  4619 fi
  4621 else
  4622   ac_cv_path_GREP=$GREP
  4623 fi
  4626 fi
  4627 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4628 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4629  GREP="$ac_cv_path_GREP"
  4632 { echo "$as_me:$LINENO: checking for egrep" >&5
  4633 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4634 if test "${ac_cv_path_EGREP+set}" = set; then
  4635   echo $ECHO_N "(cached) $ECHO_C" >&6
  4636 else
  4637   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4638    then ac_cv_path_EGREP="$GREP -E"
  4639    else
  4640      # Extract the first word of "egrep" to use in msg output
  4641 if test -z "$EGREP"; then
  4642 set dummy egrep; ac_prog_name=$2
  4643 if test "${ac_cv_path_EGREP+set}" = set; then
  4644   echo $ECHO_N "(cached) $ECHO_C" >&6
  4645 else
  4646   ac_path_EGREP_found=false
  4647 # Loop through the user's path and test for each of PROGNAME-LIST
  4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4650 do
  4651   IFS=$as_save_IFS
  4652   test -z "$as_dir" && as_dir=.
  4653   for ac_prog in egrep; do
  4654   for ac_exec_ext in '' $ac_executable_extensions; do
  4655     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4656     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4657     # Check for GNU ac_path_EGREP and select it if it is found.
  4658   # Check for GNU $ac_path_EGREP
  4659 case `"$ac_path_EGREP" --version 2>&1` in
  4660 *GNU*)
  4661   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4662 *)
  4663   ac_count=0
  4664   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4665   while :
  4666   do
  4667     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4668     mv "conftest.tmp" "conftest.in"
  4669     cp "conftest.in" "conftest.nl"
  4670     echo 'EGREP' >> "conftest.nl"
  4671     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4673     ac_count=`expr $ac_count + 1`
  4674     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4675       # Best one so far, save it but keep looking for a better one
  4676       ac_cv_path_EGREP="$ac_path_EGREP"
  4677       ac_path_EGREP_max=$ac_count
  4678     fi
  4679     # 10*(2^10) chars as input seems more than enough
  4680     test $ac_count -gt 10 && break
  4681   done
  4682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4683 esac
  4686     $ac_path_EGREP_found && break 3
  4687   done
  4688 done
  4690 done
  4691 IFS=$as_save_IFS
  4694 fi
  4696 EGREP="$ac_cv_path_EGREP"
  4697 if test -z "$EGREP"; then
  4698   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4699 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4700    { (exit 1); exit 1; }; }
  4701 fi
  4703 else
  4704   ac_cv_path_EGREP=$EGREP
  4705 fi
  4708    fi
  4709 fi
  4710 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4711 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4712  EGREP="$ac_cv_path_EGREP"
  4715 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4717 if test "${ac_cv_header_stdc+set}" = set; then
  4718   echo $ECHO_N "(cached) $ECHO_C" >&6
  4719 else
  4720   cat >conftest.$ac_ext <<_ACEOF
  4721 /* confdefs.h.  */
  4722 _ACEOF
  4723 cat confdefs.h >>conftest.$ac_ext
  4724 cat >>conftest.$ac_ext <<_ACEOF
  4725 /* end confdefs.h.  */
  4726 #include <stdlib.h>
  4727 #include <stdarg.h>
  4728 #include <string.h>
  4729 #include <float.h>
  4731 int
  4732 main ()
  4736   return 0;
  4738 _ACEOF
  4739 rm -f conftest.$ac_objext
  4740 if { (ac_try="$ac_compile"
  4741 case "(($ac_try" in
  4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4743   *) ac_try_echo=$ac_try;;
  4744 esac
  4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4746   (eval "$ac_compile") 2>conftest.er1
  4747   ac_status=$?
  4748   grep -v '^ *+' conftest.er1 >conftest.err
  4749   rm -f conftest.er1
  4750   cat conftest.err >&5
  4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752   (exit $ac_status); } && {
  4753 	 test -z "$ac_c_werror_flag" ||
  4754 	 test ! -s conftest.err
  4755        } && test -s conftest.$ac_objext; then
  4756   ac_cv_header_stdc=yes
  4757 else
  4758   echo "$as_me: failed program was:" >&5
  4759 sed 's/^/| /' conftest.$ac_ext >&5
  4761 	ac_cv_header_stdc=no
  4762 fi
  4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766 if test $ac_cv_header_stdc = yes; then
  4767   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4768   cat >conftest.$ac_ext <<_ACEOF
  4769 /* confdefs.h.  */
  4770 _ACEOF
  4771 cat confdefs.h >>conftest.$ac_ext
  4772 cat >>conftest.$ac_ext <<_ACEOF
  4773 /* end confdefs.h.  */
  4774 #include <string.h>
  4776 _ACEOF
  4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4778   $EGREP "memchr" >/dev/null 2>&1; then
  4780 else
  4781   ac_cv_header_stdc=no
  4782 fi
  4783 rm -f conftest*
  4785 fi
  4787 if test $ac_cv_header_stdc = yes; then
  4788   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4789   cat >conftest.$ac_ext <<_ACEOF
  4790 /* confdefs.h.  */
  4791 _ACEOF
  4792 cat confdefs.h >>conftest.$ac_ext
  4793 cat >>conftest.$ac_ext <<_ACEOF
  4794 /* end confdefs.h.  */
  4795 #include <stdlib.h>
  4797 _ACEOF
  4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4799   $EGREP "free" >/dev/null 2>&1; then
  4801 else
  4802   ac_cv_header_stdc=no
  4803 fi
  4804 rm -f conftest*
  4806 fi
  4808 if test $ac_cv_header_stdc = yes; then
  4809   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4810   if test "$cross_compiling" = yes; then
  4812 else
  4813   cat >conftest.$ac_ext <<_ACEOF
  4814 /* confdefs.h.  */
  4815 _ACEOF
  4816 cat confdefs.h >>conftest.$ac_ext
  4817 cat >>conftest.$ac_ext <<_ACEOF
  4818 /* end confdefs.h.  */
  4819 #include <ctype.h>
  4820 #include <stdlib.h>
  4821 #if ((' ' & 0x0FF) == 0x020)
  4822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4824 #else
  4825 # define ISLOWER(c) \
  4826 		   (('a' <= (c) && (c) <= 'i') \
  4827 		     || ('j' <= (c) && (c) <= 'r') \
  4828 		     || ('s' <= (c) && (c) <= 'z'))
  4829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4830 #endif
  4832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4833 int
  4834 main ()
  4836   int i;
  4837   for (i = 0; i < 256; i++)
  4838     if (XOR (islower (i), ISLOWER (i))
  4839 	|| toupper (i) != TOUPPER (i))
  4840       return 2;
  4841   return 0;
  4843 _ACEOF
  4844 rm -f conftest$ac_exeext
  4845 if { (ac_try="$ac_link"
  4846 case "(($ac_try" in
  4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4848   *) ac_try_echo=$ac_try;;
  4849 esac
  4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4851   (eval "$ac_link") 2>&5
  4852   ac_status=$?
  4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4855   { (case "(($ac_try" in
  4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4857   *) ac_try_echo=$ac_try;;
  4858 esac
  4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4860   (eval "$ac_try") 2>&5
  4861   ac_status=$?
  4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4863   (exit $ac_status); }; }; then
  4865 else
  4866   echo "$as_me: program exited with status $ac_status" >&5
  4867 echo "$as_me: failed program was:" >&5
  4868 sed 's/^/| /' conftest.$ac_ext >&5
  4870 ( exit $ac_status )
  4871 ac_cv_header_stdc=no
  4872 fi
  4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4874 fi
  4877 fi
  4878 fi
  4879 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4880 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4881 if test $ac_cv_header_stdc = yes; then
  4883 cat >>confdefs.h <<\_ACEOF
  4884 #define STDC_HEADERS 1
  4885 _ACEOF
  4887 fi
  4889 # Make sure we can run config.sub.
  4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4891   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4892 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4893    { (exit 1); exit 1; }; }
  4895 { echo "$as_me:$LINENO: checking build system type" >&5
  4896 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  4897 if test "${ac_cv_build+set}" = set; then
  4898   echo $ECHO_N "(cached) $ECHO_C" >&6
  4899 else
  4900   ac_build_alias=$build_alias
  4901 test "x$ac_build_alias" = x &&
  4902   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4903 test "x$ac_build_alias" = x &&
  4904   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4905 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4906    { (exit 1); exit 1; }; }
  4907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4908   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4910    { (exit 1); exit 1; }; }
  4912 fi
  4913 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4914 echo "${ECHO_T}$ac_cv_build" >&6; }
  4915 case $ac_cv_build in
  4916 *-*-*) ;;
  4917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4918 echo "$as_me: error: invalid value of canonical build" >&2;}
  4919    { (exit 1); exit 1; }; };;
  4920 esac
  4921 build=$ac_cv_build
  4922 ac_save_IFS=$IFS; IFS='-'
  4923 set x $ac_cv_build
  4924 shift
  4925 build_cpu=$1
  4926 build_vendor=$2
  4927 shift; shift
  4928 # Remember, the first character of IFS is used to create $*,
  4929 # except with old shells:
  4930 build_os=$*
  4931 IFS=$ac_save_IFS
  4932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4935 { echo "$as_me:$LINENO: checking host system type" >&5
  4936 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  4937 if test "${ac_cv_host+set}" = set; then
  4938   echo $ECHO_N "(cached) $ECHO_C" >&6
  4939 else
  4940   if test "x$host_alias" = x; then
  4941   ac_cv_host=$ac_cv_build
  4942 else
  4943   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4944     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4946    { (exit 1); exit 1; }; }
  4947 fi
  4949 fi
  4950 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4951 echo "${ECHO_T}$ac_cv_host" >&6; }
  4952 case $ac_cv_host in
  4953 *-*-*) ;;
  4954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4955 echo "$as_me: error: invalid value of canonical host" >&2;}
  4956    { (exit 1); exit 1; }; };;
  4957 esac
  4958 host=$ac_cv_host
  4959 ac_save_IFS=$IFS; IFS='-'
  4960 set x $ac_cv_host
  4961 shift
  4962 host_cpu=$1
  4963 host_vendor=$2
  4964 shift; shift
  4965 # Remember, the first character of IFS is used to create $*,
  4966 # except with old shells:
  4967 host_os=$*
  4968 IFS=$ac_save_IFS
  4969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4972 # Check whether --enable-trace was given.
  4973 if test "${enable_trace+set}" = set; then
  4974   enableval=$enable_trace; if test "$enableval" == "yes"; then
  4976 cat >>confdefs.h <<\_ACEOF
  4977 #define ENABLE_TRACE_IO 1
  4978 _ACEOF
  4980     fi
  4981 fi
  4983 # Check whether --enable-watch was given.
  4984 if test "${enable_watch+set}" = set; then
  4985   enableval=$enable_watch; if test "$enableval" == "yes"; then
  4987 cat >>confdefs.h <<\_ACEOF
  4988 #define ENABLE_WATCH 1
  4989 _ACEOF
  4991    fi
  4992 fi
  4994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5005 		  inttypes.h stdint.h unistd.h
  5006 do
  5007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5011   echo $ECHO_N "(cached) $ECHO_C" >&6
  5012 else
  5013   cat >conftest.$ac_ext <<_ACEOF
  5014 /* confdefs.h.  */
  5015 _ACEOF
  5016 cat confdefs.h >>conftest.$ac_ext
  5017 cat >>conftest.$ac_ext <<_ACEOF
  5018 /* end confdefs.h.  */
  5019 $ac_includes_default
  5021 #include <$ac_header>
  5022 _ACEOF
  5023 rm -f conftest.$ac_objext
  5024 if { (ac_try="$ac_compile"
  5025 case "(($ac_try" in
  5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5027   *) ac_try_echo=$ac_try;;
  5028 esac
  5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5030   (eval "$ac_compile") 2>conftest.er1
  5031   ac_status=$?
  5032   grep -v '^ *+' conftest.er1 >conftest.err
  5033   rm -f conftest.er1
  5034   cat conftest.err >&5
  5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036   (exit $ac_status); } && {
  5037 	 test -z "$ac_c_werror_flag" ||
  5038 	 test ! -s conftest.err
  5039        } && test -s conftest.$ac_objext; then
  5040   eval "$as_ac_Header=yes"
  5041 else
  5042   echo "$as_me: failed program was:" >&5
  5043 sed 's/^/| /' conftest.$ac_ext >&5
  5045 	eval "$as_ac_Header=no"
  5046 fi
  5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5049 fi
  5050 ac_res=`eval echo '${'$as_ac_Header'}'`
  5051 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5052 echo "${ECHO_T}$ac_res" >&6; }
  5053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5054   cat >>confdefs.h <<_ACEOF
  5055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5056 _ACEOF
  5058 fi
  5060 done
  5063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5064   { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5065 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5066 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5067   echo $ECHO_N "(cached) $ECHO_C" >&6
  5068 fi
  5069 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5070 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5071 else
  5072   # Is the header compilable?
  5073 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
  5074 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
  5075 cat >conftest.$ac_ext <<_ACEOF
  5076 /* confdefs.h.  */
  5077 _ACEOF
  5078 cat confdefs.h >>conftest.$ac_ext
  5079 cat >>conftest.$ac_ext <<_ACEOF
  5080 /* end confdefs.h.  */
  5081 $ac_includes_default
  5082 #include <Carbon/Carbon.h>
  5083 _ACEOF
  5084 rm -f conftest.$ac_objext
  5085 if { (ac_try="$ac_compile"
  5086 case "(($ac_try" in
  5087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5088   *) ac_try_echo=$ac_try;;
  5089 esac
  5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5091   (eval "$ac_compile") 2>conftest.er1
  5092   ac_status=$?
  5093   grep -v '^ *+' conftest.er1 >conftest.err
  5094   rm -f conftest.er1
  5095   cat conftest.err >&5
  5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5097   (exit $ac_status); } && {
  5098 	 test -z "$ac_c_werror_flag" ||
  5099 	 test ! -s conftest.err
  5100        } && test -s conftest.$ac_objext; then
  5101   ac_header_compiler=yes
  5102 else
  5103   echo "$as_me: failed program was:" >&5
  5104 sed 's/^/| /' conftest.$ac_ext >&5
  5106 	ac_header_compiler=no
  5107 fi
  5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5111 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5113 # Is the header present?
  5114 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
  5115 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
  5116 cat >conftest.$ac_ext <<_ACEOF
  5117 /* confdefs.h.  */
  5118 _ACEOF
  5119 cat confdefs.h >>conftest.$ac_ext
  5120 cat >>conftest.$ac_ext <<_ACEOF
  5121 /* end confdefs.h.  */
  5122 #include <Carbon/Carbon.h>
  5123 _ACEOF
  5124 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5125 case "(($ac_try" in
  5126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5127   *) ac_try_echo=$ac_try;;
  5128 esac
  5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5131   ac_status=$?
  5132   grep -v '^ *+' conftest.er1 >conftest.err
  5133   rm -f conftest.er1
  5134   cat conftest.err >&5
  5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5136   (exit $ac_status); } >/dev/null && {
  5137 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5138 	 test ! -s conftest.err
  5139        }; then
  5140   ac_header_preproc=yes
  5141 else
  5142   echo "$as_me: failed program was:" >&5
  5143 sed 's/^/| /' conftest.$ac_ext >&5
  5145   ac_header_preproc=no
  5146 fi
  5148 rm -f conftest.err conftest.$ac_ext
  5149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5150 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5152 # So?  What about this header?
  5153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5154   yes:no: )
  5155     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5156 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5157     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
  5158 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
  5159     ac_header_preproc=yes
  5160     ;;
  5161   no:yes:* )
  5162     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
  5163 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
  5164     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
  5165 echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
  5166     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
  5167 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
  5168     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
  5169 echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5170     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
  5171 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
  5172     { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
  5173 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
  5175     ;;
  5176 esac
  5177 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
  5178 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
  5179 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
  5180   echo $ECHO_N "(cached) $ECHO_C" >&6
  5181 else
  5182   ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
  5183 fi
  5184 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
  5185 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
  5187 fi
  5188 if test $ac_cv_header_Carbon_Carbon_h = yes; then
  5190    HAVE_CARBON='yes'
  5191    APPLE_BUILD='yes'
  5192    LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
  5194 cat >>confdefs.h <<\_ACEOF
  5195 #define HAVE_CARBON 1
  5196 _ACEOF
  5199 cat >>confdefs.h <<\_ACEOF
  5200 #define APPLE_BUILD 1
  5201 _ACEOF
  5204 fi
  5210 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5211 	if test -n "$ac_tool_prefix"; then
  5212   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5213 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5216 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5217   echo $ECHO_N "(cached) $ECHO_C" >&6
  5218 else
  5219   case $PKG_CONFIG in
  5220   [\\/]* | ?:[\\/]*)
  5221   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5222   ;;
  5223   *)
  5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5225 for as_dir in $PATH
  5226 do
  5227   IFS=$as_save_IFS
  5228   test -z "$as_dir" && as_dir=.
  5229   for ac_exec_ext in '' $ac_executable_extensions; do
  5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5231     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5233     break 2
  5234   fi
  5235 done
  5236 done
  5237 IFS=$as_save_IFS
  5239   ;;
  5240 esac
  5241 fi
  5242 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5243 if test -n "$PKG_CONFIG"; then
  5244   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5245 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  5246 else
  5247   { echo "$as_me:$LINENO: result: no" >&5
  5248 echo "${ECHO_T}no" >&6; }
  5249 fi
  5252 fi
  5253 if test -z "$ac_cv_path_PKG_CONFIG"; then
  5254   ac_pt_PKG_CONFIG=$PKG_CONFIG
  5255   # Extract the first word of "pkg-config", so it can be a program name with args.
  5256 set dummy pkg-config; ac_word=$2
  5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5259 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5260   echo $ECHO_N "(cached) $ECHO_C" >&6
  5261 else
  5262   case $ac_pt_PKG_CONFIG in
  5263   [\\/]* | ?:[\\/]*)
  5264   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5265   ;;
  5266   *)
  5267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268 for as_dir in $PATH
  5269 do
  5270   IFS=$as_save_IFS
  5271   test -z "$as_dir" && as_dir=.
  5272   for ac_exec_ext in '' $ac_executable_extensions; do
  5273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5274     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5276     break 2
  5277   fi
  5278 done
  5279 done
  5280 IFS=$as_save_IFS
  5282   ;;
  5283 esac
  5284 fi
  5285 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5286 if test -n "$ac_pt_PKG_CONFIG"; then
  5287   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5288 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  5289 else
  5290   { echo "$as_me:$LINENO: result: no" >&5
  5291 echo "${ECHO_T}no" >&6; }
  5292 fi
  5294   if test "x$ac_pt_PKG_CONFIG" = x; then
  5295     PKG_CONFIG=""
  5296   else
  5297     case $cross_compiling:$ac_tool_warned in
  5298 yes:)
  5299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5300 whose name does not start with the host triplet.  If you think this
  5301 configuration is useful to you, please write to autoconf@gnu.org." >&5
  5302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5303 whose name does not start with the host triplet.  If you think this
  5304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5305 ac_tool_warned=yes ;;
  5306 esac
  5307     PKG_CONFIG=$ac_pt_PKG_CONFIG
  5308   fi
  5309 else
  5310   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5311 fi
  5313 fi
  5314 if test -n "$PKG_CONFIG"; then
  5315 	_pkg_min_version=0.9.0
  5316 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5317 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  5318 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5319 		{ echo "$as_me:$LINENO: result: yes" >&5
  5320 echo "${ECHO_T}yes" >&6; }
  5321 	else
  5322 		{ echo "$as_me:$LINENO: result: no" >&5
  5323 echo "${ECHO_T}no" >&6; }
  5324 		PKG_CONFIG=""
  5325 	fi
  5327 fi
  5329 pkg_failed=no
  5330 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  5331 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  5333 if test -n "$PKG_CONFIG"; then
  5334     if test -n "$LIBPNG_CFLAGS"; then
  5335         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  5336     else
  5337         if test -n "$PKG_CONFIG" && \
  5338     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5339   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5340   ac_status=$?
  5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342   (exit $ac_status); }; then
  5343   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  5344 else
  5345   pkg_failed=yes
  5346 fi
  5347     fi
  5348 else
  5349 	pkg_failed=untried
  5350 fi
  5351 if test -n "$PKG_CONFIG"; then
  5352     if test -n "$LIBPNG_LIBS"; then
  5353         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  5354     else
  5355         if test -n "$PKG_CONFIG" && \
  5356     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  5357   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  5358   ac_status=$?
  5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360   (exit $ac_status); }; then
  5361   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  5362 else
  5363   pkg_failed=yes
  5364 fi
  5365     fi
  5366 else
  5367 	pkg_failed=untried
  5368 fi
  5372 if test $pkg_failed = yes; then
  5374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5375         _pkg_short_errors_supported=yes
  5376 else
  5377         _pkg_short_errors_supported=no
  5378 fi
  5379         if test $_pkg_short_errors_supported = yes; then
  5380 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  5381         else
  5382 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  5383         fi
  5384 	# Put the nasty error message in config.log where it belongs
  5385 	echo "$LIBPNG_PKG_ERRORS" >&5
  5387 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  5389 $LIBPNG_PKG_ERRORS
  5391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5392 installed software in a non-standard prefix.
  5394 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5395 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5396 See the pkg-config man page for more details.
  5397 " >&5
  5398 echo "$as_me: error: Package requirements (libpng ) were not met:
  5400 $LIBPNG_PKG_ERRORS
  5402 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5403 installed software in a non-standard prefix.
  5405 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5406 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5407 See the pkg-config man page for more details.
  5408 " >&2;}
  5409    { (exit 1); exit 1; }; }
  5410 elif test $pkg_failed = untried; then
  5411 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5412 is in your PATH or set the PKG_CONFIG environment variable to the full
  5413 path to pkg-config.
  5415 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5416 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5417 See the pkg-config man page for more details.
  5419 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5420 See \`config.log' for more details." >&5
  5421 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5422 is in your PATH or set the PKG_CONFIG environment variable to the full
  5423 path to pkg-config.
  5425 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  5426 and LIBPNG_LIBS to avoid the need to call pkg-config.
  5427 See the pkg-config man page for more details.
  5429 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5430 See \`config.log' for more details." >&2;}
  5431    { (exit 1); exit 1; }; }
  5432 else
  5433 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  5434 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  5435         { echo "$as_me:$LINENO: result: yes" >&5
  5436 echo "${ECHO_T}yes" >&6; }
  5438 fi
  5441 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  5442 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  5443 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  5444   echo $ECHO_N "(cached) $ECHO_C" >&6
  5445 else
  5446   ac_check_lib_save_LIBS=$LIBS
  5447 LIBS="-lz  $LIBS"
  5448 cat >conftest.$ac_ext <<_ACEOF
  5449 /* confdefs.h.  */
  5450 _ACEOF
  5451 cat confdefs.h >>conftest.$ac_ext
  5452 cat >>conftest.$ac_ext <<_ACEOF
  5453 /* end confdefs.h.  */
  5455 /* Override any GCC internal prototype to avoid an error.
  5456    Use char because int might match the return type of a GCC
  5457    builtin and then its argument prototype would still apply.  */
  5458 #ifdef __cplusplus
  5459 extern "C"
  5460 #endif
  5461 char uncompress ();
  5462 int
  5463 main ()
  5465 return uncompress ();
  5467   return 0;
  5469 _ACEOF
  5470 rm -f conftest.$ac_objext conftest$ac_exeext
  5471 if { (ac_try="$ac_link"
  5472 case "(($ac_try" in
  5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5474   *) ac_try_echo=$ac_try;;
  5475 esac
  5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5477   (eval "$ac_link") 2>conftest.er1
  5478   ac_status=$?
  5479   grep -v '^ *+' conftest.er1 >conftest.err
  5480   rm -f conftest.er1
  5481   cat conftest.err >&5
  5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5483   (exit $ac_status); } && {
  5484 	 test -z "$ac_c_werror_flag" ||
  5485 	 test ! -s conftest.err
  5486        } && test -s conftest$ac_exeext &&
  5487        $as_test_x conftest$ac_exeext; then
  5488   ac_cv_lib_z_uncompress=yes
  5489 else
  5490   echo "$as_me: failed program was:" >&5
  5491 sed 's/^/| /' conftest.$ac_ext >&5
  5493 	ac_cv_lib_z_uncompress=no
  5494 fi
  5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5497       conftest$ac_exeext conftest.$ac_ext
  5498 LIBS=$ac_check_lib_save_LIBS
  5499 fi
  5500 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  5501 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  5502 if test $ac_cv_lib_z_uncompress = yes; then
  5503   cat >>confdefs.h <<_ACEOF
  5504 #define HAVE_LIBZ 1
  5505 _ACEOF
  5507   LIBS="-lz $LIBS"
  5509 else
  5511     echo "Zlib (libz.so) could not be found, but is required."
  5512     exit 1
  5513 fi
  5516 if test "$APPLE_BUILD" != 'yes'; then
  5518 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
  5519 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
  5520 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
  5521   echo $ECHO_N "(cached) $ECHO_C" >&6
  5522 else
  5523   ac_check_lib_save_LIBS=$LIBS
  5524 LIBS="-lGL  $LIBS"
  5525 cat >conftest.$ac_ext <<_ACEOF
  5526 /* confdefs.h.  */
  5527 _ACEOF
  5528 cat confdefs.h >>conftest.$ac_ext
  5529 cat >>conftest.$ac_ext <<_ACEOF
  5530 /* end confdefs.h.  */
  5532 /* Override any GCC internal prototype to avoid an error.
  5533    Use char because int might match the return type of a GCC
  5534    builtin and then its argument prototype would still apply.  */
  5535 #ifdef __cplusplus
  5536 extern "C"
  5537 #endif
  5538 char glXQueryVersion ();
  5539 int
  5540 main ()
  5542 return glXQueryVersion ();
  5544   return 0;
  5546 _ACEOF
  5547 rm -f conftest.$ac_objext conftest$ac_exeext
  5548 if { (ac_try="$ac_link"
  5549 case "(($ac_try" in
  5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5551   *) ac_try_echo=$ac_try;;
  5552 esac
  5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5554   (eval "$ac_link") 2>conftest.er1
  5555   ac_status=$?
  5556   grep -v '^ *+' conftest.er1 >conftest.err
  5557   rm -f conftest.er1
  5558   cat conftest.err >&5
  5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560   (exit $ac_status); } && {
  5561 	 test -z "$ac_c_werror_flag" ||
  5562 	 test ! -s conftest.err
  5563        } && test -s conftest$ac_exeext &&
  5564        $as_test_x conftest$ac_exeext; then
  5565   ac_cv_lib_GL_glXQueryVersion=yes
  5566 else
  5567   echo "$as_me: failed program was:" >&5
  5568 sed 's/^/| /' conftest.$ac_ext >&5
  5570 	ac_cv_lib_GL_glXQueryVersion=no
  5571 fi
  5573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5574       conftest$ac_exeext conftest.$ac_ext
  5575 LIBS=$ac_check_lib_save_LIBS
  5576 fi
  5577 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
  5578 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
  5579 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
  5580   cat >>confdefs.h <<_ACEOF
  5581 #define HAVE_LIBGL 1
  5582 _ACEOF
  5584   LIBS="-lGL $LIBS"
  5586 else
  5588     echo "The OpenGL library (libGL.so) could not be found, but is required."
  5589     exit 1
  5590 fi
  5592 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5593   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5594 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5595 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5596   echo $ECHO_N "(cached) $ECHO_C" >&6
  5597 fi
  5598 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5599 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5600 else
  5601   # Is the header compilable?
  5602 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  5603 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  5604 cat >conftest.$ac_ext <<_ACEOF
  5605 /* confdefs.h.  */
  5606 _ACEOF
  5607 cat confdefs.h >>conftest.$ac_ext
  5608 cat >>conftest.$ac_ext <<_ACEOF
  5609 /* end confdefs.h.  */
  5610 $ac_includes_default
  5611 #include <GL/gl.h>
  5612 _ACEOF
  5613 rm -f conftest.$ac_objext
  5614 if { (ac_try="$ac_compile"
  5615 case "(($ac_try" in
  5616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5617   *) ac_try_echo=$ac_try;;
  5618 esac
  5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5620   (eval "$ac_compile") 2>conftest.er1
  5621   ac_status=$?
  5622   grep -v '^ *+' conftest.er1 >conftest.err
  5623   rm -f conftest.er1
  5624   cat conftest.err >&5
  5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5626   (exit $ac_status); } && {
  5627 	 test -z "$ac_c_werror_flag" ||
  5628 	 test ! -s conftest.err
  5629        } && test -s conftest.$ac_objext; then
  5630   ac_header_compiler=yes
  5631 else
  5632   echo "$as_me: failed program was:" >&5
  5633 sed 's/^/| /' conftest.$ac_ext >&5
  5635 	ac_header_compiler=no
  5636 fi
  5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5640 echo "${ECHO_T}$ac_header_compiler" >&6; }
  5642 # Is the header present?
  5643 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  5644 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  5645 cat >conftest.$ac_ext <<_ACEOF
  5646 /* confdefs.h.  */
  5647 _ACEOF
  5648 cat confdefs.h >>conftest.$ac_ext
  5649 cat >>conftest.$ac_ext <<_ACEOF
  5650 /* end confdefs.h.  */
  5651 #include <GL/gl.h>
  5652 _ACEOF
  5653 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5654 case "(($ac_try" in
  5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5656   *) ac_try_echo=$ac_try;;
  5657 esac
  5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5660   ac_status=$?
  5661   grep -v '^ *+' conftest.er1 >conftest.err
  5662   rm -f conftest.er1
  5663   cat conftest.err >&5
  5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5665   (exit $ac_status); } >/dev/null && {
  5666 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5667 	 test ! -s conftest.err
  5668        }; then
  5669   ac_header_preproc=yes
  5670 else
  5671   echo "$as_me: failed program was:" >&5
  5672 sed 's/^/| /' conftest.$ac_ext >&5
  5674   ac_header_preproc=no
  5675 fi
  5677 rm -f conftest.err conftest.$ac_ext
  5678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5679 echo "${ECHO_T}$ac_header_preproc" >&6; }
  5681 # So?  What about this header?
  5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5683   yes:no: )
  5684     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5685 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5686     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  5687 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  5688     ac_header_preproc=yes
  5689     ;;
  5690   no:yes:* )
  5691     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  5692 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  5693     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  5694 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  5695     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  5696 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  5697     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  5698 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  5699     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  5700 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  5701     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  5702 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  5704     ;;
  5705 esac
  5706 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  5707 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  5708 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  5709   echo $ECHO_N "(cached) $ECHO_C" >&6
  5710 else
  5711   ac_cv_header_GL_gl_h=$ac_header_preproc
  5712 fi
  5713 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  5714 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  5716 fi
  5717 if test $ac_cv_header_GL_gl_h = yes; then
  5719 else
  5721     echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
  5722     exit 1
  5723 fi
  5726 fi
  5729 pkg_failed=no
  5730 { echo "$as_me:$LINENO: checking for GTK" >&5
  5731 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  5733 if test -n "$PKG_CONFIG"; then
  5734     if test -n "$GTK_CFLAGS"; then
  5735         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  5736     else
  5737         if test -n "$PKG_CONFIG" && \
  5738     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5739   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5740   ac_status=$?
  5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5742   (exit $ac_status); }; then
  5743   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  5744 else
  5745   pkg_failed=yes
  5746 fi
  5747     fi
  5748 else
  5749 	pkg_failed=untried
  5750 fi
  5751 if test -n "$PKG_CONFIG"; then
  5752     if test -n "$GTK_LIBS"; then
  5753         pkg_cv_GTK_LIBS="$GTK_LIBS"
  5754     else
  5755         if test -n "$PKG_CONFIG" && \
  5756     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  5757   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  5758   ac_status=$?
  5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5760   (exit $ac_status); }; then
  5761   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  5762 else
  5763   pkg_failed=yes
  5764 fi
  5765     fi
  5766 else
  5767 	pkg_failed=untried
  5768 fi
  5772 if test $pkg_failed = yes; then
  5774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5775         _pkg_short_errors_supported=yes
  5776 else
  5777         _pkg_short_errors_supported=no
  5778 fi
  5779         if test $_pkg_short_errors_supported = yes; then
  5780 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  5781         else
  5782 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  5783         fi
  5784 	# Put the nasty error message in config.log where it belongs
  5785 	echo "$GTK_PKG_ERRORS" >&5
  5787 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  5789 $GTK_PKG_ERRORS
  5791 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5792 installed software in a non-standard prefix.
  5794 Alternatively, you may set the environment variables GTK_CFLAGS
  5795 and GTK_LIBS to avoid the need to call pkg-config.
  5796 See the pkg-config man page for more details.
  5797 " >&5
  5798 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  5800 $GTK_PKG_ERRORS
  5802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5803 installed software in a non-standard prefix.
  5805 Alternatively, you may set the environment variables GTK_CFLAGS
  5806 and GTK_LIBS to avoid the need to call pkg-config.
  5807 See the pkg-config man page for more details.
  5808 " >&2;}
  5809    { (exit 1); exit 1; }; }
  5810 elif test $pkg_failed = untried; then
  5811 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  5812 is in your PATH or set the PKG_CONFIG environment variable to the full
  5813 path to pkg-config.
  5815 Alternatively, you may set the environment variables GTK_CFLAGS
  5816 and GTK_LIBS to avoid the need to call pkg-config.
  5817 See the pkg-config man page for more details.
  5819 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5820 See \`config.log' for more details." >&5
  5821 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  5822 is in your PATH or set the PKG_CONFIG environment variable to the full
  5823 path to pkg-config.
  5825 Alternatively, you may set the environment variables GTK_CFLAGS
  5826 and GTK_LIBS to avoid the need to call pkg-config.
  5827 See the pkg-config man page for more details.
  5829 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  5830 See \`config.log' for more details." >&2;}
  5831    { (exit 1); exit 1; }; }
  5832 else
  5833 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  5834 	GTK_LIBS=$pkg_cv_GTK_LIBS
  5835         { echo "$as_me:$LINENO: result: yes" >&5
  5836 echo "${ECHO_T}yes" >&6; }
  5838     HAVE_GTK='yes'
  5840 cat >>confdefs.h <<\_ACEOF
  5841 #define HAVE_GTK 1
  5842 _ACEOF
  5845 fi
  5849 if test "$HAVE_CARBON" = 'yes'; then
  5850   GUI_CARBON_TRUE=
  5851   GUI_CARBON_FALSE='#'
  5852 else
  5853   GUI_CARBON_TRUE='#'
  5854   GUI_CARBON_FALSE=
  5855 fi
  5859 if test "$HAVE_GTK" = 'yes'; then
  5860   GUI_GTK_TRUE=
  5861   GUI_GTK_FALSE='#'
  5862 else
  5863   GUI_GTK_TRUE='#'
  5864   GUI_GTK_FALSE=
  5865 fi
  5868 case $host_cpu in
  5869     i386|i486|i586|i686)
  5870 	SH4_TRANSLATOR="x86"
  5872 cat >>confdefs.h <<_ACEOF
  5873 #define SH4_TRANSLATOR TARGET_X86
  5874 _ACEOF
  5875 ;;
  5876     x86_64)
  5877 	SH4_TRANSLATOR="x86_64"
  5879 cat >>confdefs.h <<_ACEOF
  5880 #define SH4_TRANSLATOR TARGET_X86_64
  5881 _ACEOF
  5882 ;;
  5883     *)
  5884 	echo "Warning: No translator available for $host. Building emulation core only";;
  5885 esac
  5888 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  5889   BUILD_SH4X86_TRUE=
  5890   BUILD_SH4X86_FALSE='#'
  5891 else
  5892   BUILD_SH4X86_TRUE='#'
  5893   BUILD_SH4X86_FALSE=
  5894 fi
  5898 if test "$SH4_TRANSLATOR" = "x86_64"; then
  5899   BUILD_X86_64_TRUE=
  5900   BUILD_X86_64_FALSE='#'
  5901 else
  5902   BUILD_X86_64_TRUE='#'
  5903   BUILD_X86_64_FALSE=
  5904 fi
  5908 pkg_failed=no
  5909 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  5910 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  5912 if test -n "$PKG_CONFIG"; then
  5913     if test -n "$ESOUND_CFLAGS"; then
  5914         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  5915     else
  5916         if test -n "$PKG_CONFIG" && \
  5917     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5918   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5919   ac_status=$?
  5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5921   (exit $ac_status); }; then
  5922   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  5923 else
  5924   pkg_failed=yes
  5925 fi
  5926     fi
  5927 else
  5928 	pkg_failed=untried
  5929 fi
  5930 if test -n "$PKG_CONFIG"; then
  5931     if test -n "$ESOUND_LIBS"; then
  5932         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  5933     else
  5934         if test -n "$PKG_CONFIG" && \
  5935     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  5936   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  5937   ac_status=$?
  5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5939   (exit $ac_status); }; then
  5940   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  5941 else
  5942   pkg_failed=yes
  5943 fi
  5944     fi
  5945 else
  5946 	pkg_failed=untried
  5947 fi
  5951 if test $pkg_failed = yes; then
  5953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5954         _pkg_short_errors_supported=yes
  5955 else
  5956         _pkg_short_errors_supported=no
  5957 fi
  5958         if test $_pkg_short_errors_supported = yes; then
  5959 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  5960         else
  5961 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  5962         fi
  5963 	# Put the nasty error message in config.log where it belongs
  5964 	echo "$ESOUND_PKG_ERRORS" >&5
  5966 	{ echo "$as_me:$LINENO: result: no" >&5
  5967 echo "${ECHO_T}no" >&6; }
  5968                  echo "Warning: esound not found - building without esd audio support"
  5969 elif test $pkg_failed = untried; then
  5970 	 echo "Warning: esound not found - building without esd audio support"
  5971 else
  5972 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  5973 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  5974         { echo "$as_me:$LINENO: result: yes" >&5
  5975 echo "${ECHO_T}yes" >&6; }
  5977      HAVE_ESOUND='yes'
  5979 cat >>confdefs.h <<\_ACEOF
  5980 #define HAVE_ESOUND 1
  5981 _ACEOF
  5983 fi
  5986 if test "$HAVE_ESOUND" = 'yes' ; then
  5987   AUDIO_ESOUND_TRUE=
  5988   AUDIO_ESOUND_FALSE='#'
  5989 else
  5990   AUDIO_ESOUND_TRUE='#'
  5991   AUDIO_ESOUND_FALSE=
  5992 fi
  5996 pkg_failed=no
  5997 { echo "$as_me:$LINENO: checking for ALSA" >&5
  5998 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
  6000 if test -n "$PKG_CONFIG"; then
  6001     if test -n "$ALSA_CFLAGS"; then
  6002         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  6003     else
  6004         if test -n "$PKG_CONFIG" && \
  6005     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6006   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6007   ac_status=$?
  6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6009   (exit $ac_status); }; then
  6010   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  6011 else
  6012   pkg_failed=yes
  6013 fi
  6014     fi
  6015 else
  6016 	pkg_failed=untried
  6017 fi
  6018 if test -n "$PKG_CONFIG"; then
  6019     if test -n "$ALSA_LIBS"; then
  6020         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  6021     else
  6022         if test -n "$PKG_CONFIG" && \
  6023     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  6024   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  6025   ac_status=$?
  6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027   (exit $ac_status); }; then
  6028   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  6029 else
  6030   pkg_failed=yes
  6031 fi
  6032     fi
  6033 else
  6034 	pkg_failed=untried
  6035 fi
  6039 if test $pkg_failed = yes; then
  6041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6042         _pkg_short_errors_supported=yes
  6043 else
  6044         _pkg_short_errors_supported=no
  6045 fi
  6046         if test $_pkg_short_errors_supported = yes; then
  6047 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  6048         else
  6049 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  6050         fi
  6051 	# Put the nasty error message in config.log where it belongs
  6052 	echo "$ALSA_PKG_ERRORS" >&5
  6054 	{ echo "$as_me:$LINENO: result: no" >&5
  6055 echo "${ECHO_T}no" >&6; }
  6056                  echo "Warning: alsa not found - building without alsa audio support"
  6057 elif test $pkg_failed = untried; then
  6058 	 echo "Warning: alsa not found - building without alsa audio support"
  6059 else
  6060 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  6061 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  6062         { echo "$as_me:$LINENO: result: yes" >&5
  6063 echo "${ECHO_T}yes" >&6; }
  6065      HAVE_ALSA='yes'
  6067 cat >>confdefs.h <<\_ACEOF
  6068 #define HAVE_ALSA 1
  6069 _ACEOF
  6071 fi
  6074 if test "$HAVE_ALSA" = 'yes' ; then
  6075   AUDIO_ALSA_TRUE=
  6076   AUDIO_ALSA_FALSE='#'
  6077 else
  6078   AUDIO_ALSA_TRUE='#'
  6079   AUDIO_ALSA_FALSE=
  6080 fi
  6083 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6084   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6085 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6086 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6087   echo $ECHO_N "(cached) $ECHO_C" >&6
  6088 fi
  6089 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6090 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6091 else
  6092   # Is the header compilable?
  6093 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  6094 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  6095 cat >conftest.$ac_ext <<_ACEOF
  6096 /* confdefs.h.  */
  6097 _ACEOF
  6098 cat confdefs.h >>conftest.$ac_ext
  6099 cat >>conftest.$ac_ext <<_ACEOF
  6100 /* end confdefs.h.  */
  6101 $ac_includes_default
  6102 #include <linux/cdrom.h>
  6103 _ACEOF
  6104 rm -f conftest.$ac_objext
  6105 if { (ac_try="$ac_compile"
  6106 case "(($ac_try" in
  6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6108   *) ac_try_echo=$ac_try;;
  6109 esac
  6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6111   (eval "$ac_compile") 2>conftest.er1
  6112   ac_status=$?
  6113   grep -v '^ *+' conftest.er1 >conftest.err
  6114   rm -f conftest.er1
  6115   cat conftest.err >&5
  6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6117   (exit $ac_status); } && {
  6118 	 test -z "$ac_c_werror_flag" ||
  6119 	 test ! -s conftest.err
  6120        } && test -s conftest.$ac_objext; then
  6121   ac_header_compiler=yes
  6122 else
  6123   echo "$as_me: failed program was:" >&5
  6124 sed 's/^/| /' conftest.$ac_ext >&5
  6126 	ac_header_compiler=no
  6127 fi
  6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6131 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6133 # Is the header present?
  6134 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  6135 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  6136 cat >conftest.$ac_ext <<_ACEOF
  6137 /* confdefs.h.  */
  6138 _ACEOF
  6139 cat confdefs.h >>conftest.$ac_ext
  6140 cat >>conftest.$ac_ext <<_ACEOF
  6141 /* end confdefs.h.  */
  6142 #include <linux/cdrom.h>
  6143 _ACEOF
  6144 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6145 case "(($ac_try" in
  6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6147   *) ac_try_echo=$ac_try;;
  6148 esac
  6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6151   ac_status=$?
  6152   grep -v '^ *+' conftest.er1 >conftest.err
  6153   rm -f conftest.er1
  6154   cat conftest.err >&5
  6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156   (exit $ac_status); } >/dev/null && {
  6157 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6158 	 test ! -s conftest.err
  6159        }; then
  6160   ac_header_preproc=yes
  6161 else
  6162   echo "$as_me: failed program was:" >&5
  6163 sed 's/^/| /' conftest.$ac_ext >&5
  6165   ac_header_preproc=no
  6166 fi
  6168 rm -f conftest.err conftest.$ac_ext
  6169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6170 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6172 # So?  What about this header?
  6173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6174   yes:no: )
  6175     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6176 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6177     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  6178 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  6179     ac_header_preproc=yes
  6180     ;;
  6181   no:yes:* )
  6182     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  6183 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  6184     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  6185 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  6186     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  6187 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  6188     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  6189 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6190     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  6191 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  6192     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  6193 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  6195     ;;
  6196 esac
  6197 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  6198 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  6199 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  6200   echo $ECHO_N "(cached) $ECHO_C" >&6
  6201 else
  6202   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  6203 fi
  6204 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  6205 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  6207 fi
  6208 if test $ac_cv_header_linux_cdrom_h = yes; then
  6209   HAVE_LINUX_CDROM_H=yes
  6210 else
  6212     echo "Linux CDROM support not found, building without it."
  6213 fi
  6218 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  6219   CDROM_LINUX_TRUE=
  6220   CDROM_LINUX_FALSE='#'
  6221 else
  6222   CDROM_LINUX_TRUE='#'
  6223   CDROM_LINUX_FALSE=
  6224 fi
  6227 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6228   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6229 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6230 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6231   echo $ECHO_N "(cached) $ECHO_C" >&6
  6232 fi
  6233 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6234 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6235 else
  6236   # Is the header compilable?
  6237 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  6238 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
  6239 cat >conftest.$ac_ext <<_ACEOF
  6240 /* confdefs.h.  */
  6241 _ACEOF
  6242 cat confdefs.h >>conftest.$ac_ext
  6243 cat >>conftest.$ac_ext <<_ACEOF
  6244 /* end confdefs.h.  */
  6245 $ac_includes_default
  6246 #include <linux/joystick.h>
  6247 _ACEOF
  6248 rm -f conftest.$ac_objext
  6249 if { (ac_try="$ac_compile"
  6250 case "(($ac_try" in
  6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6252   *) ac_try_echo=$ac_try;;
  6253 esac
  6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6255   (eval "$ac_compile") 2>conftest.er1
  6256   ac_status=$?
  6257   grep -v '^ *+' conftest.er1 >conftest.err
  6258   rm -f conftest.er1
  6259   cat conftest.err >&5
  6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6261   (exit $ac_status); } && {
  6262 	 test -z "$ac_c_werror_flag" ||
  6263 	 test ! -s conftest.err
  6264        } && test -s conftest.$ac_objext; then
  6265   ac_header_compiler=yes
  6266 else
  6267   echo "$as_me: failed program was:" >&5
  6268 sed 's/^/| /' conftest.$ac_ext >&5
  6270 	ac_header_compiler=no
  6271 fi
  6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6275 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6277 # Is the header present?
  6278 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  6279 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
  6280 cat >conftest.$ac_ext <<_ACEOF
  6281 /* confdefs.h.  */
  6282 _ACEOF
  6283 cat confdefs.h >>conftest.$ac_ext
  6284 cat >>conftest.$ac_ext <<_ACEOF
  6285 /* end confdefs.h.  */
  6286 #include <linux/joystick.h>
  6287 _ACEOF
  6288 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6289 case "(($ac_try" in
  6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6291   *) ac_try_echo=$ac_try;;
  6292 esac
  6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6295   ac_status=$?
  6296   grep -v '^ *+' conftest.er1 >conftest.err
  6297   rm -f conftest.er1
  6298   cat conftest.err >&5
  6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6300   (exit $ac_status); } >/dev/null && {
  6301 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6302 	 test ! -s conftest.err
  6303        }; then
  6304   ac_header_preproc=yes
  6305 else
  6306   echo "$as_me: failed program was:" >&5
  6307 sed 's/^/| /' conftest.$ac_ext >&5
  6309   ac_header_preproc=no
  6310 fi
  6312 rm -f conftest.err conftest.$ac_ext
  6313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6314 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6316 # So?  What about this header?
  6317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6318   yes:no: )
  6319     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6320 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6321     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  6322 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  6323     ac_header_preproc=yes
  6324     ;;
  6325   no:yes:* )
  6326     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  6327 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  6328     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  6329 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  6330     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  6331 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  6332     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  6333 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6334     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  6335 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  6336     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  6337 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  6339     ;;
  6340 esac
  6341 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  6342 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  6343 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  6344   echo $ECHO_N "(cached) $ECHO_C" >&6
  6345 else
  6346   ac_cv_header_linux_joystick_h=$ac_header_preproc
  6347 fi
  6348 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  6349 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  6351 fi
  6352 if test $ac_cv_header_linux_joystick_h = yes; then
  6354     HAVE_LINUX_JOYSTICK_H=yes
  6356 cat >>confdefs.h <<\_ACEOF
  6357 #define HAVE_LINUX_JOYSTICK 1
  6358 _ACEOF
  6360 else
  6361    echo "Linux Joystick support not found, building without it."
  6362 fi
  6367 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  6368   JOY_LINUX_TRUE=
  6369   JOY_LINUX_FALSE='#'
  6370 else
  6371   JOY_LINUX_TRUE='#'
  6372   JOY_LINUX_FALSE=
  6373 fi
  6376 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  6377 set dummy sh-elf-gcc; ac_word=$2
  6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6380 if test "${ac_cv_path_SHCC+set}" = set; then
  6381   echo $ECHO_N "(cached) $ECHO_C" >&6
  6382 else
  6383   case $SHCC in
  6384   [\\/]* | ?:[\\/]*)
  6385   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  6386   ;;
  6387   *)
  6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6389 for as_dir in $PATH
  6390 do
  6391   IFS=$as_save_IFS
  6392   test -z "$as_dir" && as_dir=.
  6393   for ac_exec_ext in '' $ac_executable_extensions; do
  6394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6395     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6397     break 2
  6398   fi
  6399 done
  6400 done
  6401 IFS=$as_save_IFS
  6403   ;;
  6404 esac
  6405 fi
  6406 SHCC=$ac_cv_path_SHCC
  6407 if test -n "$SHCC"; then
  6408   { echo "$as_me:$LINENO: result: $SHCC" >&5
  6409 echo "${ECHO_T}$SHCC" >&6; }
  6410 else
  6411   { echo "$as_me:$LINENO: result: no" >&5
  6412 echo "${ECHO_T}no" >&6; }
  6413 fi
  6416 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  6417 set dummy sh-elf-ld; ac_word=$2
  6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6420 if test "${ac_cv_path_SHLD+set}" = set; then
  6421   echo $ECHO_N "(cached) $ECHO_C" >&6
  6422 else
  6423   case $SHLD in
  6424   [\\/]* | ?:[\\/]*)
  6425   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  6426   ;;
  6427   *)
  6428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429 for as_dir in $PATH
  6430 do
  6431   IFS=$as_save_IFS
  6432   test -z "$as_dir" && as_dir=.
  6433   for ac_exec_ext in '' $ac_executable_extensions; do
  6434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  6436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437     break 2
  6438   fi
  6439 done
  6440 done
  6441 IFS=$as_save_IFS
  6443   ;;
  6444 esac
  6445 fi
  6446 SHLD=$ac_cv_path_SHLD
  6447 if test -n "$SHLD"; then
  6448   { echo "$as_me:$LINENO: result: $SHLD" >&5
  6449 echo "${ECHO_T}$SHLD" >&6; }
  6450 else
  6451   { echo "$as_me:$LINENO: result: no" >&5
  6452 echo "${ECHO_T}no" >&6; }
  6453 fi
  6456 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  6457 set dummy sh-elf-objcopy; ac_word=$2
  6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6460 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  6461   echo $ECHO_N "(cached) $ECHO_C" >&6
  6462 else
  6463   case $SHOBJCOPY in
  6464   [\\/]* | ?:[\\/]*)
  6465   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  6466   ;;
  6467   *)
  6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469 for as_dir in $PATH
  6470 do
  6471   IFS=$as_save_IFS
  6472   test -z "$as_dir" && as_dir=.
  6473   for ac_exec_ext in '' $ac_executable_extensions; do
  6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6475     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477     break 2
  6478   fi
  6479 done
  6480 done
  6481 IFS=$as_save_IFS
  6483   ;;
  6484 esac
  6485 fi
  6486 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  6487 if test -n "$SHOBJCOPY"; then
  6488   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  6489 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  6490 else
  6491   { echo "$as_me:$LINENO: result: no" >&5
  6492 echo "${ECHO_T}no" >&6; }
  6493 fi
  6496 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  6497 set dummy arm-elf-gcc; ac_word=$2
  6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6500 if test "${ac_cv_path_ARMCC+set}" = set; then
  6501   echo $ECHO_N "(cached) $ECHO_C" >&6
  6502 else
  6503   case $ARMCC in
  6504   [\\/]* | ?:[\\/]*)
  6505   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  6506   ;;
  6507   *)
  6508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509 for as_dir in $PATH
  6510 do
  6511   IFS=$as_save_IFS
  6512   test -z "$as_dir" && as_dir=.
  6513   for ac_exec_ext in '' $ac_executable_extensions; do
  6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6515     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  6516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6517     break 2
  6518   fi
  6519 done
  6520 done
  6521 IFS=$as_save_IFS
  6523   ;;
  6524 esac
  6525 fi
  6526 ARMCC=$ac_cv_path_ARMCC
  6527 if test -n "$ARMCC"; then
  6528   { echo "$as_me:$LINENO: result: $ARMCC" >&5
  6529 echo "${ECHO_T}$ARMCC" >&6; }
  6530 else
  6531   { echo "$as_me:$LINENO: result: no" >&5
  6532 echo "${ECHO_T}no" >&6; }
  6533 fi
  6536 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  6537 set dummy arm-elf-ld; ac_word=$2
  6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6540 if test "${ac_cv_path_ARMLD+set}" = set; then
  6541   echo $ECHO_N "(cached) $ECHO_C" >&6
  6542 else
  6543   case $ARMLD in
  6544   [\\/]* | ?:[\\/]*)
  6545   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  6546   ;;
  6547   *)
  6548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6549 for as_dir in $PATH
  6550 do
  6551   IFS=$as_save_IFS
  6552   test -z "$as_dir" && as_dir=.
  6553   for ac_exec_ext in '' $ac_executable_extensions; do
  6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6555     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  6556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6557     break 2
  6558   fi
  6559 done
  6560 done
  6561 IFS=$as_save_IFS
  6563   ;;
  6564 esac
  6565 fi
  6566 ARMLD=$ac_cv_path_ARMLD
  6567 if test -n "$ARMLD"; then
  6568   { echo "$as_me:$LINENO: result: $ARMLD" >&5
  6569 echo "${ECHO_T}$ARMLD" >&6; }
  6570 else
  6571   { echo "$as_me:$LINENO: result: no" >&5
  6572 echo "${ECHO_T}no" >&6; }
  6573 fi
  6576 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  6577 set dummy arm-elf-objcopy; ac_word=$2
  6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6580 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  6581   echo $ECHO_N "(cached) $ECHO_C" >&6
  6582 else
  6583   case $ARMOBJCOPY in
  6584   [\\/]* | ?:[\\/]*)
  6585   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  6586   ;;
  6587   *)
  6588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589 for as_dir in $PATH
  6590 do
  6591   IFS=$as_save_IFS
  6592   test -z "$as_dir" && as_dir=.
  6593   for ac_exec_ext in '' $ac_executable_extensions; do
  6594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  6596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597     break 2
  6598   fi
  6599 done
  6600 done
  6601 IFS=$as_save_IFS
  6603   ;;
  6604 esac
  6605 fi
  6606 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  6607 if test -n "$ARMOBJCOPY"; then
  6608   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  6609 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
  6610 else
  6611   { echo "$as_me:$LINENO: result: no" >&5
  6612 echo "${ECHO_T}no" >&6; }
  6613 fi
  6617 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  6618   BUILD_SH="no"
  6619   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  6620 else
  6621   BUILD_SH="yes"
  6622 fi
  6623 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  6624   BUILD_ARM="no"
  6625   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  6626 else
  6627   BUILD_ARM="yes"
  6628 fi
  6631 if test "$BUILD_SH" = "yes"; then
  6632   BUILD_SYSTEST_TRUE=
  6633   BUILD_SYSTEST_FALSE='#'
  6634 else
  6635   BUILD_SYSTEST_TRUE='#'
  6636   BUILD_SYSTEST_FALSE=
  6637 fi
  6641 if test "$BUILD_ARM" = "yes"; then
  6642   BUILD_ARMTEST_TRUE=
  6643   BUILD_ARMTEST_FALSE='#'
  6644 else
  6645   BUILD_ARMTEST_TRUE='#'
  6646   BUILD_ARMTEST_FALSE=
  6647 fi
  6651 GETTEXT_PACKAGE=lxdream
  6654 cat >>confdefs.h <<_ACEOF
  6655 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  6656 _ACEOF
  6659 ALL_LINGUAS="de pt_BR"
  6662 for ac_header in locale.h
  6663 do
  6664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6669   echo $ECHO_N "(cached) $ECHO_C" >&6
  6670 fi
  6671 ac_res=`eval echo '${'$as_ac_Header'}'`
  6672 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  6673 echo "${ECHO_T}$ac_res" >&6; }
  6674 else
  6675   # Is the header compilable?
  6676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6678 cat >conftest.$ac_ext <<_ACEOF
  6679 /* confdefs.h.  */
  6680 _ACEOF
  6681 cat confdefs.h >>conftest.$ac_ext
  6682 cat >>conftest.$ac_ext <<_ACEOF
  6683 /* end confdefs.h.  */
  6684 $ac_includes_default
  6685 #include <$ac_header>
  6686 _ACEOF
  6687 rm -f conftest.$ac_objext
  6688 if { (ac_try="$ac_compile"
  6689 case "(($ac_try" in
  6690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6691   *) ac_try_echo=$ac_try;;
  6692 esac
  6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6694   (eval "$ac_compile") 2>conftest.er1
  6695   ac_status=$?
  6696   grep -v '^ *+' conftest.er1 >conftest.err
  6697   rm -f conftest.er1
  6698   cat conftest.err >&5
  6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700   (exit $ac_status); } && {
  6701 	 test -z "$ac_c_werror_flag" ||
  6702 	 test ! -s conftest.err
  6703        } && test -s conftest.$ac_objext; then
  6704   ac_header_compiler=yes
  6705 else
  6706   echo "$as_me: failed program was:" >&5
  6707 sed 's/^/| /' conftest.$ac_ext >&5
  6709 	ac_header_compiler=no
  6710 fi
  6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6714 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6716 # Is the header present?
  6717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6719 cat >conftest.$ac_ext <<_ACEOF
  6720 /* confdefs.h.  */
  6721 _ACEOF
  6722 cat confdefs.h >>conftest.$ac_ext
  6723 cat >>conftest.$ac_ext <<_ACEOF
  6724 /* end confdefs.h.  */
  6725 #include <$ac_header>
  6726 _ACEOF
  6727 if { (ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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); } >/dev/null && {
  6740 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6741 	 test ! -s conftest.err
  6742        }; then
  6743   ac_header_preproc=yes
  6744 else
  6745   echo "$as_me: failed program was:" >&5
  6746 sed 's/^/| /' conftest.$ac_ext >&5
  6748   ac_header_preproc=no
  6749 fi
  6751 rm -f conftest.err conftest.$ac_ext
  6752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6753 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6755 # So?  What about this header?
  6756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6757   yes:no: )