Search
lxdream.org :: lxdream/configure
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 675:b97020f9af1c
prev671:a530ea88eebd
next681:1755a126b109
author nkeynes
date Tue May 27 23:59:54 2008 +0000 (15 years ago)
permissions -rwxr-xr-x
last change Add a fallback to 16-bit depth buffers (with appropriate warnings). Could probably be cleaner
view annotate diff log raw
     1 #! /bin/sh
     2 # Guess values for system-dependent variables and create Makefiles.
     3 # Generated by GNU Autoconf 2.61.
     4 #
     5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    13 # Be more Bourne compatible
    14 DUALCASE=1; export DUALCASE # for MKS sh
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21   setopt NO_GLOB_SUBST
    22 else
    23   case `(set -o) 2>/dev/null` in
    24   *posix*) set -o posix ;;
    25 esac
    27 fi
    32 # PATH needs CR
    33 # Avoid depending upon Character Ranges.
    34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    37 as_cr_digits='0123456789'
    38 as_cr_alnum=$as_cr_Letters$as_cr_digits
    40 # The user is always right.
    41 if test "${PATH_SEPARATOR+set}" != set; then
    42   echo "#! /bin/sh" >conf$$.sh
    43   echo  "exit 0"   >>conf$$.sh
    44   chmod +x conf$$.sh
    45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    46     PATH_SEPARATOR=';'
    47   else
    48     PATH_SEPARATOR=:
    49   fi
    50   rm -f conf$$.sh
    51 fi
    53 # Support unset when possible.
    54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    55   as_unset=unset
    56 else
    57   as_unset=false
    58 fi
    61 # IFS
    62 # We need space, tab and new line, in precisely that order.  Quoting is
    63 # there to prevent editors from complaining about space-tab.
    64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    65 # splitting by setting IFS to empty value.)
    66 as_nl='
    67 '
    68 IFS=" ""	$as_nl"
    70 # Find who we are.  Look in the path if we contain no directory separator.
    71 case $0 in
    72   *[\\/]* ) as_myself=$0 ;;
    73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    74 for as_dir in $PATH
    75 do
    76   IFS=$as_save_IFS
    77   test -z "$as_dir" && as_dir=.
    78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    79 done
    80 IFS=$as_save_IFS
    82      ;;
    83 esac
    84 # We did not find ourselves, most probably we were run as `sh COMMAND'
    85 # in which case we are not to be found in the path.
    86 if test "x$as_myself" = x; then
    87   as_myself=$0
    88 fi
    89 if test ! -f "$as_myself"; then
    90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    91   { (exit 1); exit 1; }
    92 fi
    94 # Work around bugs in pre-3.0 UWIN ksh.
    95 for as_var in ENV MAIL MAILPATH
    96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    97 done
    98 PS1='$ '
    99 PS2='> '
   100 PS4='+ '
   102 # NLS nuisances.
   103 for as_var in \
   104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   106   LC_TELEPHONE LC_TIME
   107 do
   108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   109     eval $as_var=C; export $as_var
   110   else
   111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   112   fi
   113 done
   115 # Required to use basename.
   116 if expr a : '\(a\)' >/dev/null 2>&1 &&
   117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   118   as_expr=expr
   119 else
   120   as_expr=false
   121 fi
   123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   124   as_basename=basename
   125 else
   126   as_basename=false
   127 fi
   130 # Name of the executable.
   131 as_me=`$as_basename -- "$0" ||
   132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   133 	 X"$0" : 'X\(//\)$' \| \
   134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   135 echo X/"$0" |
   136     sed '/^.*\/\([^/][^/]*\)\/*$/{
   137 	    s//\1/
   138 	    q
   139 	  }
   140 	  /^X\/\(\/\/\)$/{
   141 	    s//\1/
   142 	    q
   143 	  }
   144 	  /^X\/\(\/\).*/{
   145 	    s//\1/
   146 	    q
   147 	  }
   148 	  s/.*/./; q'`
   150 # CDPATH.
   151 $as_unset CDPATH
   154 if test "x$CONFIG_SHELL" = x; then
   155   if (eval ":") 2>/dev/null; then
   156   as_have_required=yes
   157 else
   158   as_have_required=no
   159 fi
   161   if test $as_have_required = yes && 	 (eval ":
   162 (as_func_return () {
   163   (exit \$1)
   164 }
   165 as_func_success () {
   166   as_func_return 0
   167 }
   168 as_func_failure () {
   169   as_func_return 1
   170 }
   171 as_func_ret_success () {
   172   return 0
   173 }
   174 as_func_ret_failure () {
   175   return 1
   176 }
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   204   :
   205 else
   206   exitcode=1
   207   echo positional parameters were not saved.
   208 fi
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   212 (
   213   as_lineno_1=\$LINENO
   214   as_lineno_2=\$LINENO
   215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   217 ") 2> /dev/null; then
   218   :
   219 else
   220   as_candidate_shells=
   221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   223 do
   224   IFS=$as_save_IFS
   225   test -z "$as_dir" && as_dir=.
   226   case $as_dir in
   227 	 /*)
   228 	   for as_base in sh bash ksh sh5; do
   229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   230 	   done;;
   231        esac
   232 done
   233 IFS=$as_save_IFS
   236       for as_shell in $as_candidate_shells $SHELL; do
   237 	 # Try only shells that exist, to save several forks.
   238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   241   emulate sh
   242   NULLCMD=:
   243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   244   # is contrary to our usage.  Disable this feature.
   245   alias -g '${1+"$@"}'='"$@"'
   246   setopt NO_GLOB_SUBST
   247 else
   248   case `(set -o) 2>/dev/null` in
   249   *posix*) set -o posix ;;
   250 esac
   252 fi
   255 :
   256 _ASEOF
   257 }; then
   258   CONFIG_SHELL=$as_shell
   259 	       as_have_required=yes
   260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   262   emulate sh
   263   NULLCMD=:
   264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   265   # is contrary to our usage.  Disable this feature.
   266   alias -g '${1+"$@"}'='"$@"'
   267   setopt NO_GLOB_SUBST
   268 else
   269   case `(set -o) 2>/dev/null` in
   270   *posix*) set -o posix ;;
   271 esac
   273 fi
   276 :
   277 (as_func_return () {
   278   (exit $1)
   279 }
   280 as_func_success () {
   281   as_func_return 0
   282 }
   283 as_func_failure () {
   284   as_func_return 1
   285 }
   286 as_func_ret_success () {
   287   return 0
   288 }
   289 as_func_ret_failure () {
   290   return 1
   291 }
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   318 if ( set x; as_func_ret_success y && test x = "$1" ); then
   319   :
   320 else
   321   exitcode=1
   322   echo positional parameters were not saved.
   323 fi
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   327 (
   328   as_lineno_1=$LINENO
   329   as_lineno_2=$LINENO
   330   test "x$as_lineno_1" != "x$as_lineno_2" &&
   331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   338 fi
   340       done
   342       if test "x$CONFIG_SHELL" != x; then
   343   for as_var in BASH_ENV ENV
   344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   345         done
   346         export CONFIG_SHELL
   347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   348 fi
   351     if test $as_have_required = no; then
   352   echo This script requires a shell more modern than all the
   353       echo shells that I found on your system.  Please install a
   354       echo modern shell, or manually run the script under such a
   355       echo shell if you do have one.
   356       { (exit 1); exit 1; }
   357 fi
   360 fi
   362 fi
   366 (eval "as_func_return () {
   367   (exit \$1)
   368 }
   369 as_func_success () {
   370   as_func_return 0
   371 }
   372 as_func_failure () {
   373   as_func_return 1
   374 }
   375 as_func_ret_success () {
   376   return 0
   377 }
   378 as_func_ret_failure () {
   379   return 1
   380 }
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   408   :
   409 else
   410   exitcode=1
   411   echo positional parameters were not saved.
   412 fi
   414 test \$exitcode = 0") || {
   415   echo No shell found that supports shell functions.
   416   echo Please tell autoconf@gnu.org about your system,
   417   echo including any error possibly output before this
   418   echo message
   419 }
   423   as_lineno_1=$LINENO
   424   as_lineno_2=$LINENO
   425   test "x$as_lineno_1" != "x$as_lineno_2" &&
   426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   429   # uniformly replaced by the line number.  The first 'sed' inserts a
   430   # line-number line after each line using $LINENO; the second 'sed'
   431   # does the real work.  The second script uses 'N' to pair each
   432   # line-number line with the line containing $LINENO, and appends
   433   # trailing '-' during substitution so that $LINENO is not a special
   434   # case at line end.
   435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   437   # E. McMahon (1931-1989) for sed's syntax.  :-)
   438   sed -n '
   439     p
   440     /[$]LINENO/=
   441   ' <$as_myself |
   442     sed '
   443       s/[$]LINENO.*/&-/
   444       t lineno
   445       b
   446       :lineno
   447       N
   448       :loop
   449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   450       t loop
   451       s/-\n.*//
   452     ' >$as_me.lineno &&
   453   chmod +x "$as_me.lineno" ||
   454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   455    { (exit 1); exit 1; }; }
   457   # Don't try to exec as it changes $[0], causing all sort of problems
   458   # (the dirname of $[0] is not the place where we might find the
   459   # original and so on.  Autoconf is especially sensitive to this).
   460   . "./$as_me.lineno"
   461   # Exit status is that of the last command.
   462   exit
   463 }
   466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   467   as_dirname=dirname
   468 else
   469   as_dirname=false
   470 fi
   472 ECHO_C= ECHO_N= ECHO_T=
   473 case `echo -n x` in
   474 -n*)
   475   case `echo 'x\c'` in
   476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   477   *)   ECHO_C='\c';;
   478   esac;;
   479 *)
   480   ECHO_N='-n';;
   481 esac
   483 if expr a : '\(a\)' >/dev/null 2>&1 &&
   484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   485   as_expr=expr
   486 else
   487   as_expr=false
   488 fi
   490 rm -f conf$$ conf$$.exe conf$$.file
   491 if test -d conf$$.dir; then
   492   rm -f conf$$.dir/conf$$.file
   493 else
   494   rm -f conf$$.dir
   495   mkdir conf$$.dir
   496 fi
   497 echo >conf$$.file
   498 if ln -s conf$$.file conf$$ 2>/dev/null; then
   499   as_ln_s='ln -s'
   500   # ... but there are two gotchas:
   501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   503   # In both cases, we have to default to `cp -p'.
   504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   505     as_ln_s='cp -p'
   506 elif ln conf$$.file conf$$ 2>/dev/null; then
   507   as_ln_s=ln
   508 else
   509   as_ln_s='cp -p'
   510 fi
   511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   512 rmdir conf$$.dir 2>/dev/null
   514 if mkdir -p . 2>/dev/null; then
   515   as_mkdir_p=:
   516 else
   517   test -d ./-p && rmdir ./-p
   518   as_mkdir_p=false
   519 fi
   521 if test -x / >/dev/null 2>&1; then
   522   as_test_x='test -x'
   523 else
   524   if ls -dL / >/dev/null 2>&1; then
   525     as_ls_L_option=L
   526   else
   527     as_ls_L_option=
   528   fi
   529   as_test_x='
   530     eval sh -c '\''
   531       if test -d "$1"; then
   532         test -d "$1/.";
   533       else
   534 	case $1 in
   535         -*)set "./$1";;
   536 	esac;
   537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   538 	???[sx]*):;;*)false;;esac;fi
   539     '\'' sh
   540   '
   541 fi
   542 as_executable_p=$as_test_x
   544 # Sed expression to map a string onto a valid CPP name.
   545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   547 # Sed expression to map a string onto a valid variable name.
   548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   552 exec 7<&0 </dev/null 6>&1
   554 # Name of the host.
   555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   556 # so uname gets run too.
   557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   559 #
   560 # Initializations.
   561 #
   562 ac_default_prefix=/usr/local
   563 ac_clean_files=
   564 ac_config_libobj_dir=.
   565 LIBOBJS=
   566 cross_compiling=no
   567 subdirs=
   568 MFLAGS=
   569 MAKEFLAGS=
   570 SHELL=${CONFIG_SHELL-/bin/sh}
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   579 ac_unique_file="configure.in"
   580 # Factoring default headers for most tests.
   581 ac_includes_default="\
   582 #include <stdio.h>
   583 #ifdef HAVE_SYS_TYPES_H
   584 # include <sys/types.h>
   585 #endif
   586 #ifdef HAVE_SYS_STAT_H
   587 # include <sys/stat.h>
   588 #endif
   589 #ifdef STDC_HEADERS
   590 # include <stdlib.h>
   591 # include <stddef.h>
   592 #else
   593 # ifdef HAVE_STDLIB_H
   594 #  include <stdlib.h>
   595 # endif
   596 #endif
   597 #ifdef HAVE_STRING_H
   598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   599 #  include <memory.h>
   600 # endif
   601 # include <string.h>
   602 #endif
   603 #ifdef HAVE_STRINGS_H
   604 # include <strings.h>
   605 #endif
   606 #ifdef HAVE_INTTYPES_H
   607 # include <inttypes.h>
   608 #endif
   609 #ifdef HAVE_STDINT_H
   610 # include <stdint.h>
   611 #endif
   612 #ifdef HAVE_UNISTD_H
   613 # include <unistd.h>
   614 #endif"
   616 ac_subst_vars='SHELL
   617 PATH_SEPARATOR
   618 PACKAGE_NAME
   619 PACKAGE_TARNAME
   620 PACKAGE_VERSION
   621 PACKAGE_STRING
   622 PACKAGE_BUGREPORT
   623 exec_prefix
   624 prefix
   625 program_transform_name
   626 bindir
   627 sbindir
   628 libexecdir
   629 datarootdir
   630 datadir
   631 sysconfdir
   632 sharedstatedir
   633 localstatedir
   634 includedir
   635 oldincludedir
   636 docdir
   637 infodir
   638 htmldir
   639 dvidir
   640 pdfdir
   641 psdir
   642 libdir
   643 localedir
   644 mandir
   645 DEFS
   646 ECHO_C
   647 ECHO_N
   648 ECHO_T
   649 LIBS
   650 build_alias
   651 host_alias
   652 target_alias
   653 INSTALL_PROGRAM
   654 INSTALL_SCRIPT
   655 INSTALL_DATA
   656 CYGPATH_W
   657 PACKAGE
   658 VERSION
   659 ACLOCAL
   660 AUTOCONF
   661 AUTOMAKE
   662 AUTOHEADER
   663 MAKEINFO
   664 install_sh
   665 STRIP
   666 INSTALL_STRIP_PROGRAM
   667 mkdir_p
   668 AWK
   669 SET_MAKE
   670 am__leading_dot
   671 AMTAR
   672 am__tar
   673 am__untar
   674 MAINTAINER_MODE_TRUE
   675 MAINTAINER_MODE_FALSE
   676 MAINT
   677 CC
   678 CFLAGS
   679 LDFLAGS
   680 CPPFLAGS
   681 ac_ct_CC
   682 EXEEXT
   683 OBJEXT
   684 DEPDIR
   685 am__include
   686 am__quote
   687 AMDEP_TRUE
   688 AMDEP_FALSE
   689 AMDEPBACKSLASH
   690 CCDEPMODE
   691 am__fastdepCC_TRUE
   692 am__fastdepCC_FALSE
   693 CCAS
   694 CCASFLAGS
   695 CPP
   696 GREP
   697 EGREP
   698 build
   699 build_cpu
   700 build_vendor
   701 build_os
   702 host
   703 host_cpu
   704 host_vendor
   705 host_os
   706 GUI_COCOA_TRUE
   707 GUI_COCOA_FALSE
   708 PKG_CONFIG
   709 LIBPNG_CFLAGS
   710 LIBPNG_LIBS
   711 GTK_CFLAGS
   712 GTK_LIBS
   713 GUI_GTK_TRUE
   714 GUI_GTK_FALSE
   715 VIDEO_OSMESA_TRUE
   716 VIDEO_OSMESA_FALSE
   717 VIDEO_GLX_TRUE
   718 VIDEO_GLX_FALSE
   719 VIDEO_NSGL_TRUE
   720 VIDEO_NSGL_FALSE
   721 BUILD_SH4X86_TRUE
   722 BUILD_SH4X86_FALSE
   723 BUILD_X86_64_TRUE
   724 BUILD_X86_64_FALSE
   725 PULSE_CFLAGS
   726 PULSE_LIBS
   727 AUDIO_PULSE_TRUE
   728 AUDIO_PULSE_FALSE
   729 ESOUND_CFLAGS
   730 ESOUND_LIBS
   731 AUDIO_ESOUND_TRUE
   732 AUDIO_ESOUND_FALSE
   733 ALSA_CFLAGS
   734 ALSA_LIBS
   735 AUDIO_ALSA_TRUE
   736 AUDIO_ALSA_FALSE
   737 CDROM_LINUX_TRUE
   738 CDROM_LINUX_FALSE
   739 JOY_LINUX_TRUE
   740 JOY_LINUX_FALSE
   741 SHCC
   742 SHLD
   743 SHOBJCOPY
   744 ARMCC
   745 ARMLD
   746 ARMOBJCOPY
   747 BUILD_SYSTEST_TRUE
   748 BUILD_SYSTEST_FALSE
   749 BUILD_ARMTEST_TRUE
   750 BUILD_ARMTEST_FALSE
   751 GETTEXT_PACKAGE
   752 USE_NLS
   753 MSGFMT
   754 MSGFMT_OPTS
   755 GMSGFMT
   756 XGETTEXT
   757 CATALOGS
   758 CATOBJEXT
   759 DATADIRNAME
   760 GMOFILES
   761 INSTOBJEXT
   762 INTLLIBS
   763 PO_IN_DATADIR_TRUE
   764 PO_IN_DATADIR_FALSE
   765 POFILES
   766 POSUB
   767 MKINSTALLDIRS
   768 LIBOBJS
   769 LTLIBOBJS'
   770 ac_subst_files=''
   771       ac_precious_vars='build_alias
   772 host_alias
   773 target_alias
   774 CC
   775 CFLAGS
   776 LDFLAGS
   777 LIBS
   778 CPPFLAGS
   779 CCAS
   780 CCASFLAGS
   781 CPP
   782 PKG_CONFIG
   783 LIBPNG_CFLAGS
   784 LIBPNG_LIBS
   785 GTK_CFLAGS
   786 GTK_LIBS
   787 PULSE_CFLAGS
   788 PULSE_LIBS
   789 ESOUND_CFLAGS
   790 ESOUND_LIBS
   791 ALSA_CFLAGS
   792 ALSA_LIBS'
   795 # Initialize some variables set by options.
   796 ac_init_help=
   797 ac_init_version=false
   798 # The variables have the same names as the options, with
   799 # dashes changed to underlines.
   800 cache_file=/dev/null
   801 exec_prefix=NONE
   802 no_create=
   803 no_recursion=
   804 prefix=NONE
   805 program_prefix=NONE
   806 program_suffix=NONE
   807 program_transform_name=s,x,x,
   808 silent=
   809 site=
   810 srcdir=
   811 verbose=
   812 x_includes=NONE
   813 x_libraries=NONE
   815 # Installation directory options.
   816 # These are left unexpanded so users can "make install exec_prefix=/foo"
   817 # and all the variables that are supposed to be based on exec_prefix
   818 # by default will actually change.
   819 # Use braces instead of parens because sh, perl, etc. also accept them.
   820 # (The list follows the same order as the GNU Coding Standards.)
   821 bindir='${exec_prefix}/bin'
   822 sbindir='${exec_prefix}/sbin'
   823 libexecdir='${exec_prefix}/libexec'
   824 datarootdir='${prefix}/share'
   825 datadir='${datarootdir}'
   826 sysconfdir='${prefix}/etc'
   827 sharedstatedir='${prefix}/com'
   828 localstatedir='${prefix}/var'
   829 includedir='${prefix}/include'
   830 oldincludedir='/usr/include'
   831 docdir='${datarootdir}/doc/${PACKAGE}'
   832 infodir='${datarootdir}/info'
   833 htmldir='${docdir}'
   834 dvidir='${docdir}'
   835 pdfdir='${docdir}'
   836 psdir='${docdir}'
   837 libdir='${exec_prefix}/lib'
   838 localedir='${datarootdir}/locale'
   839 mandir='${datarootdir}/man'
   841 ac_prev=
   842 ac_dashdash=
   843 for ac_option
   844 do
   845   # If the previous option needs an argument, assign it.
   846   if test -n "$ac_prev"; then
   847     eval $ac_prev=\$ac_option
   848     ac_prev=
   849     continue
   850   fi
   852   case $ac_option in
   853   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   854   *)	ac_optarg=yes ;;
   855   esac
   857   # Accept the important Cygnus configure options, so we can diagnose typos.
   859   case $ac_dashdash$ac_option in
   860   --)
   861     ac_dashdash=yes ;;
   863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   864     ac_prev=bindir ;;
   865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   866     bindir=$ac_optarg ;;
   868   -build | --build | --buil | --bui | --bu)
   869     ac_prev=build_alias ;;
   870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   871     build_alias=$ac_optarg ;;
   873   -cache-file | --cache-file | --cache-fil | --cache-fi \
   874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   875     ac_prev=cache_file ;;
   876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   878     cache_file=$ac_optarg ;;
   880   --config-cache | -C)
   881     cache_file=config.cache ;;
   883   -datadir | --datadir | --datadi | --datad)
   884     ac_prev=datadir ;;
   885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   886     datadir=$ac_optarg ;;
   888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   889   | --dataroo | --dataro | --datar)
   890     ac_prev=datarootdir ;;
   891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   893     datarootdir=$ac_optarg ;;
   895   -disable-* | --disable-*)
   896     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   897     # Reject names that are not valid shell variable names.
   898     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   900    { (exit 1); exit 1; }; }
   901     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   902     eval enable_$ac_feature=no ;;
   904   -docdir | --docdir | --docdi | --doc | --do)
   905     ac_prev=docdir ;;
   906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   907     docdir=$ac_optarg ;;
   909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   910     ac_prev=dvidir ;;
   911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   912     dvidir=$ac_optarg ;;
   914   -enable-* | --enable-*)
   915     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   916     # Reject names that are not valid shell variable names.
   917     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   918       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   919    { (exit 1); exit 1; }; }
   920     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   921     eval enable_$ac_feature=\$ac_optarg ;;
   923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   925   | --exec | --exe | --ex)
   926     ac_prev=exec_prefix ;;
   927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   929   | --exec=* | --exe=* | --ex=*)
   930     exec_prefix=$ac_optarg ;;
   932   -gas | --gas | --ga | --g)
   933     # Obsolete; use --with-gas.
   934     with_gas=yes ;;
   936   -help | --help | --hel | --he | -h)
   937     ac_init_help=long ;;
   938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   939     ac_init_help=recursive ;;
   940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   941     ac_init_help=short ;;
   943   -host | --host | --hos | --ho)
   944     ac_prev=host_alias ;;
   945   -host=* | --host=* | --hos=* | --ho=*)
   946     host_alias=$ac_optarg ;;
   948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   949     ac_prev=htmldir ;;
   950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   951   | --ht=*)
   952     htmldir=$ac_optarg ;;
   954   -includedir | --includedir | --includedi | --included | --include \
   955   | --includ | --inclu | --incl | --inc)
   956     ac_prev=includedir ;;
   957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   958   | --includ=* | --inclu=* | --incl=* | --inc=*)
   959     includedir=$ac_optarg ;;
   961   -infodir | --infodir | --infodi | --infod | --info | --inf)
   962     ac_prev=infodir ;;
   963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   964     infodir=$ac_optarg ;;
   966   -libdir | --libdir | --libdi | --libd)
   967     ac_prev=libdir ;;
   968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   969     libdir=$ac_optarg ;;
   971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   972   | --libexe | --libex | --libe)
   973     ac_prev=libexecdir ;;
   974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   975   | --libexe=* | --libex=* | --libe=*)
   976     libexecdir=$ac_optarg ;;
   978   -localedir | --localedir | --localedi | --localed | --locale)
   979     ac_prev=localedir ;;
   980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   981     localedir=$ac_optarg ;;
   983   -localstatedir | --localstatedir | --localstatedi | --localstated \
   984   | --localstate | --localstat | --localsta | --localst | --locals)
   985     ac_prev=localstatedir ;;
   986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   988     localstatedir=$ac_optarg ;;
   990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   991     ac_prev=mandir ;;
   992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   993     mandir=$ac_optarg ;;
   995   -nfp | --nfp | --nf)
   996     # Obsolete; use --without-fp.
   997     with_fp=no ;;
   999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1000   | --no-cr | --no-c | -n)
  1001     no_create=yes ;;
  1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1005     no_recursion=yes ;;
  1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1009   | --oldin | --oldi | --old | --ol | --o)
  1010     ac_prev=oldincludedir ;;
  1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1014     oldincludedir=$ac_optarg ;;
  1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017     ac_prev=prefix ;;
  1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019     prefix=$ac_optarg ;;
  1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1022   | --program-pre | --program-pr | --program-p)
  1023     ac_prev=program_prefix ;;
  1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1026     program_prefix=$ac_optarg ;;
  1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029   | --program-suf | --program-su | --program-s)
  1030     ac_prev=program_suffix ;;
  1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033     program_suffix=$ac_optarg ;;
  1035   -program-transform-name | --program-transform-name \
  1036   | --program-transform-nam | --program-transform-na \
  1037   | --program-transform-n | --program-transform- \
  1038   | --program-transform | --program-transfor \
  1039   | --program-transfo | --program-transf \
  1040   | --program-trans | --program-tran \
  1041   | --progr-tra | --program-tr | --program-t)
  1042     ac_prev=program_transform_name ;;
  1043   -program-transform-name=* | --program-transform-name=* \
  1044   | --program-transform-nam=* | --program-transform-na=* \
  1045   | --program-transform-n=* | --program-transform-=* \
  1046   | --program-transform=* | --program-transfor=* \
  1047   | --program-transfo=* | --program-transf=* \
  1048   | --program-trans=* | --program-tran=* \
  1049   | --progr-tra=* | --program-tr=* | --program-t=*)
  1050     program_transform_name=$ac_optarg ;;
  1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1053     ac_prev=pdfdir ;;
  1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1055     pdfdir=$ac_optarg ;;
  1057   -psdir | --psdir | --psdi | --psd | --ps)
  1058     ac_prev=psdir ;;
  1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1060     psdir=$ac_optarg ;;
  1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1063   | -silent | --silent | --silen | --sile | --sil)
  1064     silent=yes ;;
  1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1067     ac_prev=sbindir ;;
  1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1069   | --sbi=* | --sb=*)
  1070     sbindir=$ac_optarg ;;
  1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1074   | --sharedst | --shareds | --shared | --share | --shar \
  1075   | --sha | --sh)
  1076     ac_prev=sharedstatedir ;;
  1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1080   | --sha=* | --sh=*)
  1081     sharedstatedir=$ac_optarg ;;
  1083   -site | --site | --sit)
  1084     ac_prev=site ;;
  1085   -site=* | --site=* | --sit=*)
  1086     site=$ac_optarg ;;
  1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089     ac_prev=srcdir ;;
  1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091     srcdir=$ac_optarg ;;
  1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1094   | --syscon | --sysco | --sysc | --sys | --sy)
  1095     ac_prev=sysconfdir ;;
  1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1098     sysconfdir=$ac_optarg ;;
  1100   -target | --target | --targe | --targ | --tar | --ta | --t)
  1101     ac_prev=target_alias ;;
  1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1103     target_alias=$ac_optarg ;;
  1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1106     verbose=yes ;;
  1108   -version | --version | --versio | --versi | --vers | -V)
  1109     ac_init_version=: ;;
  1111   -with-* | --with-*)
  1112     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1113     # Reject names that are not valid shell variable names.
  1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1116    { (exit 1); exit 1; }; }
  1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1118     eval with_$ac_package=\$ac_optarg ;;
  1120   -without-* | --without-*)
  1121     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1122     # Reject names that are not valid shell variable names.
  1123     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
  1125    { (exit 1); exit 1; }; }
  1126     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1127     eval with_$ac_package=no ;;
  1129   --x)
  1130     # Obsolete; use --with-x.
  1131     with_x=yes ;;
  1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1134   | --x-incl | --x-inc | --x-in | --x-i)
  1135     ac_prev=x_includes ;;
  1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1138     x_includes=$ac_optarg ;;
  1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1142     ac_prev=x_libraries ;;
  1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1145     x_libraries=$ac_optarg ;;
  1147   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1148 Try \`$0 --help' for more information." >&2
  1149    { (exit 1); exit 1; }; }
  1150     ;;
  1152   *=*)
  1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1154     # Reject names that are not valid shell variable names.
  1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1156       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1157    { (exit 1); exit 1; }; }
  1158     eval $ac_envvar=\$ac_optarg
  1159     export $ac_envvar ;;
  1161   *)
  1162     # FIXME: should be removed in autoconf 3.0.
  1163     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1165       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1167     ;;
  1169   esac
  1170 done
  1172 if test -n "$ac_prev"; then
  1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174   { echo "$as_me: error: missing argument to $ac_option" >&2
  1175    { (exit 1); exit 1; }; }
  1176 fi
  1178 # Be sure to have absolute directory names.
  1179 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1180 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1181 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1182 		libdir localedir mandir
  1183 do
  1184   eval ac_val=\$$ac_var
  1185   case $ac_val in
  1186     [\\/$]* | ?:[\\/]* )  continue;;
  1187     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1188   esac
  1189   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1190    { (exit 1); exit 1; }; }
  1191 done
  1193 # There might be people who depend on the old broken behavior: `$host'
  1194 # used to hold the argument of --host etc.
  1195 # FIXME: To remove some day.
  1196 build=$build_alias
  1197 host=$host_alias
  1198 target=$target_alias
  1200 # FIXME: To remove some day.
  1201 if test "x$host_alias" != x; then
  1202   if test "x$build_alias" = x; then
  1203     cross_compiling=maybe
  1204     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1205     If a cross compiler is detected then cross compile mode will be used." >&2
  1206   elif test "x$build_alias" != "x$host_alias"; then
  1207     cross_compiling=yes
  1208   fi
  1209 fi
  1211 ac_tool_prefix=
  1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1214 test "$silent" = yes && exec 6>/dev/null
  1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218 ac_ls_di=`ls -di .` &&
  1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220   { echo "$as_me: error: Working directory cannot be determined" >&2
  1221    { (exit 1); exit 1; }; }
  1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1224    { (exit 1); exit 1; }; }
  1227 # Find the source files, if location was not specified.
  1228 if test -z "$srcdir"; then
  1229   ac_srcdir_defaulted=yes
  1230   # Try the directory containing this script, then the parent directory.
  1231   ac_confdir=`$as_dirname -- "$0" ||
  1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1233 	 X"$0" : 'X\(//\)[^/]' \| \
  1234 	 X"$0" : 'X\(//\)$' \| \
  1235 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1236 echo X"$0" |
  1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1238 	    s//\1/
  1241 	  /^X\(\/\/\)[^/].*/{
  1242 	    s//\1/
  1245 	  /^X\(\/\/\)$/{
  1246 	    s//\1/
  1249 	  /^X\(\/\).*/{
  1250 	    s//\1/
  1253 	  s/.*/./; q'`
  1254   srcdir=$ac_confdir
  1255   if test ! -r "$srcdir/$ac_unique_file"; then
  1256     srcdir=..
  1257   fi
  1258 else
  1259   ac_srcdir_defaulted=no
  1260 fi
  1261 if test ! -r "$srcdir/$ac_unique_file"; then
  1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1263   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1264    { (exit 1); exit 1; }; }
  1265 fi
  1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1267 ac_abs_confdir=`(
  1268 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1269    { (exit 1); exit 1; }; }
  1270 	pwd)`
  1271 # When building in place, set srcdir=.
  1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1273   srcdir=.
  1274 fi
  1275 # Remove unnecessary trailing slashes from srcdir.
  1276 # Double slashes in file names in object file debugging info
  1277 # mess up M-x gdb in Emacs.
  1278 case $srcdir in
  1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1280 esac
  1281 for ac_var in $ac_precious_vars; do
  1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1283   eval ac_env_${ac_var}_value=\$${ac_var}
  1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1286 done
  1289 # Report the --help message.
  1291 if test "$ac_init_help" = "long"; then
  1292   # Omit some internal or obsolete options to make the list less imposing.
  1293   # This message is too long to be a string in the A/UX 3.1 sh.
  1294   cat <<_ACEOF
  1295 \`configure' configures this package to adapt to many kinds of systems.
  1297 Usage: $0 [OPTION]... [VAR=VALUE]...
  1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1302 Defaults for the options are specified in brackets.
  1304 Configuration:
  1305   -h, --help              display this help and exit
  1306       --help=short        display options specific to this package
  1307       --help=recursive    display the short help of all the included packages
  1308   -V, --version           display version information and exit
  1309   -q, --quiet, --silent   do not print \`checking...' messages
  1310       --cache-file=FILE   cache test results in FILE [disabled]
  1311   -C, --config-cache      alias for \`--cache-file=config.cache'
  1312   -n, --no-create         do not create output files
  1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1315 Installation directories:
  1316   --prefix=PREFIX         install architecture-independent files in PREFIX
  1317 			  [$ac_default_prefix]
  1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1319 			  [PREFIX]
  1321 By default, \`make install' will install all the files in
  1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1324 for instance \`--prefix=\$HOME'.
  1326 For better control, use the options below.
  1328 Fine tuning of the installation directories:
  1329   --bindir=DIR           user executables [EPREFIX/bin]
  1330   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1331   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1332   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1333   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1334   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1335   --libdir=DIR           object code libraries [EPREFIX/lib]
  1336   --includedir=DIR       C header files [PREFIX/include]
  1337   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1338   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1339   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1340   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1341   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1342   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1343   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1344   --htmldir=DIR          html documentation [DOCDIR]
  1345   --dvidir=DIR           dvi documentation [DOCDIR]
  1346   --pdfdir=DIR           pdf documentation [DOCDIR]
  1347   --psdir=DIR            ps documentation [DOCDIR]
  1348 _ACEOF
  1350   cat <<\_ACEOF
  1352 Program names:
  1353   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1354   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1355   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1357 System types:
  1358   --build=BUILD     configure for building on BUILD [guessed]
  1359   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1360 _ACEOF
  1361 fi
  1363 if test -n "$ac_init_help"; then
  1365   cat <<\_ACEOF
  1367 Optional Features:
  1368   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1369   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1370   --enable-maintainer-mode  enable make rules and dependencies not useful
  1371 			  (and sometimes confusing) to the casual installer
  1372   --disable-dependency-tracking  speeds up one-time build
  1373   --enable-dependency-tracking   do not reject slow dependency extractors
  1374   --enable-trace          Enable generation of IO traces (warning: hurts
  1375                           performance)
  1376   --enable-watch          Enable watchpoints in the debugger (warning: hurts
  1377                           performance)
  1378   --enable-sh4stats       Enable statistics on executed sh4 instructions
  1380 Optional Packages:
  1381   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1382   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1383   --with-osmesa           Build with the osmesa GL library (software
  1384                           rendering)
  1386 Some influential environment variables:
  1387   CC          C compiler command
  1388   CFLAGS      C compiler flags
  1389   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1390               nonstandard directory <lib dir>
  1391   LIBS        libraries to pass to the linker, e.g. -l<library>
  1392   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1393               you have headers in a nonstandard directory <include dir>
  1394   CCAS        assembler compiler command (defaults to CC)
  1395   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1396   CPP         C preprocessor
  1397   PKG_CONFIG  path to pkg-config utility
  1398   LIBPNG_CFLAGS
  1399               C compiler flags for LIBPNG, overriding pkg-config
  1400   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1401   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1402   GTK_LIBS    linker flags for GTK, overriding pkg-config
  1403   PULSE_CFLAGS
  1404               C compiler flags for PULSE, overriding pkg-config
  1405   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
  1406   ESOUND_CFLAGS
  1407               C compiler flags for ESOUND, overriding pkg-config
  1408   ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
  1409   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  1410   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  1412 Use these variables to override the choices made by `configure' or to help
  1413 it to find libraries and programs with nonstandard names/locations.
  1415 _ACEOF
  1416 ac_status=$?
  1417 fi
  1419 if test "$ac_init_help" = "recursive"; then
  1420   # If there are subdirs, report their specific --help.
  1421   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1422     test -d "$ac_dir" || continue
  1423     ac_builddir=.
  1425 case "$ac_dir" in
  1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1427 *)
  1428   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1429   # A ".." for each directory in $ac_dir_suffix.
  1430   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1431   case $ac_top_builddir_sub in
  1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1434   esac ;;
  1435 esac
  1436 ac_abs_top_builddir=$ac_pwd
  1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1438 # for backward compatibility:
  1439 ac_top_builddir=$ac_top_build_prefix
  1441 case $srcdir in
  1442   .)  # We are building in place.
  1443     ac_srcdir=.
  1444     ac_top_srcdir=$ac_top_builddir_sub
  1445     ac_abs_top_srcdir=$ac_pwd ;;
  1446   [\\/]* | ?:[\\/]* )  # Absolute name.
  1447     ac_srcdir=$srcdir$ac_dir_suffix;
  1448     ac_top_srcdir=$srcdir
  1449     ac_abs_top_srcdir=$srcdir ;;
  1450   *) # Relative name.
  1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1454 esac
  1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1457     cd "$ac_dir" || { ac_status=$?; continue; }
  1458     # Check for guested configure.
  1459     if test -f "$ac_srcdir/configure.gnu"; then
  1460       echo &&
  1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1462     elif test -f "$ac_srcdir/configure"; then
  1463       echo &&
  1464       $SHELL "$ac_srcdir/configure" --help=recursive
  1465     else
  1466       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1467     fi || ac_status=$?
  1468     cd "$ac_pwd" || { ac_status=$?; break; }
  1469   done
  1470 fi
  1472 test -n "$ac_init_help" && exit $ac_status
  1473 if $ac_init_version; then
  1474   cat <<\_ACEOF
  1475 configure
  1476 generated by GNU Autoconf 2.61
  1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1480 This configure script is free software; the Free Software Foundation
  1481 gives unlimited permission to copy, distribute and modify it.
  1482 _ACEOF
  1483   exit
  1484 fi
  1485 cat >config.log <<_ACEOF
  1486 This file contains any messages produced by compilers while
  1487 running configure, to aid debugging if configure makes a mistake.
  1489 It was created by $as_me, which was
  1490 generated by GNU Autoconf 2.61.  Invocation command line was
  1492   $ $0 $@
  1494 _ACEOF
  1495 exec 5>>config.log
  1497 cat <<_ASUNAME
  1498 ## --------- ##
  1499 ## Platform. ##
  1500 ## --------- ##
  1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1509 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1511 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1512 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1514 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1515 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1516 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1517 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1519 _ASUNAME
  1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1522 for as_dir in $PATH
  1523 do
  1524   IFS=$as_save_IFS
  1525   test -z "$as_dir" && as_dir=.
  1526   echo "PATH: $as_dir"
  1527 done
  1528 IFS=$as_save_IFS
  1530 } >&5
  1532 cat >&5 <<_ACEOF
  1535 ## ----------- ##
  1536 ## Core tests. ##
  1537 ## ----------- ##
  1539 _ACEOF
  1542 # Keep a trace of the command line.
  1543 # Strip out --no-create and --no-recursion so they do not pile up.
  1544 # Strip out --silent because we don't want to record it for future runs.
  1545 # Also quote any args containing shell meta-characters.
  1546 # Make two passes to allow for proper duplicate-argument suppression.
  1547 ac_configure_args=
  1548 ac_configure_args0=
  1549 ac_configure_args1=
  1550 ac_must_keep_next=false
  1551 for ac_pass in 1 2
  1552 do
  1553   for ac_arg
  1554   do
  1555     case $ac_arg in
  1556     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1557     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1558     | -silent | --silent | --silen | --sile | --sil)
  1559       continue ;;
  1560     *\'*)
  1561       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1562     esac
  1563     case $ac_pass in
  1564     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1565     2)
  1566       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1567       if test $ac_must_keep_next = true; then
  1568 	ac_must_keep_next=false # Got value, back to normal.
  1569       else
  1570 	case $ac_arg in
  1571 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1572 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1573 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1574 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1575 	    case "$ac_configure_args0 " in
  1576 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1577 	    esac
  1578 	    ;;
  1579 	  -* ) ac_must_keep_next=true ;;
  1580 	esac
  1581       fi
  1582       ac_configure_args="$ac_configure_args '$ac_arg'"
  1583       ;;
  1584     esac
  1585   done
  1586 done
  1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1590 # When interrupted or exit'd, cleanup temporary files, and complete
  1591 # config.log.  We remove comments because anyway the quotes in there
  1592 # would cause problems or look ugly.
  1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1595 trap 'exit_status=$?
  1596   # Save into config.log some information that might help in debugging.
  1598     echo
  1600     cat <<\_ASBOX
  1601 ## ---------------- ##
  1602 ## Cache variables. ##
  1603 ## ---------------- ##
  1604 _ASBOX
  1605     echo
  1606     # The following way of writing the cache mishandles newlines in values,
  1608   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1609     eval ac_val=\$$ac_var
  1610     case $ac_val in #(
  1611     *${as_nl}*)
  1612       case $ac_var in #(
  1613       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1615       esac
  1616       case $ac_var in #(
  1617       _ | IFS | as_nl) ;; #(
  1618       *) $as_unset $ac_var ;;
  1619       esac ;;
  1620     esac
  1621   done
  1622   (set) 2>&1 |
  1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1624     *${as_nl}ac_space=\ *)
  1625       sed -n \
  1626 	"s/'\''/'\''\\\\'\'''\''/g;
  1627 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1628       ;; #(
  1629     *)
  1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1631       ;;
  1632     esac |
  1633     sort
  1635     echo
  1637     cat <<\_ASBOX
  1638 ## ----------------- ##
  1639 ## Output variables. ##
  1640 ## ----------------- ##
  1641 _ASBOX
  1642     echo
  1643     for ac_var in $ac_subst_vars
  1644     do
  1645       eval ac_val=\$$ac_var
  1646       case $ac_val in
  1647       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1648       esac
  1649       echo "$ac_var='\''$ac_val'\''"
  1650     done | sort
  1651     echo
  1653     if test -n "$ac_subst_files"; then
  1654       cat <<\_ASBOX
  1655 ## ------------------- ##
  1656 ## File substitutions. ##
  1657 ## ------------------- ##
  1658 _ASBOX
  1659       echo
  1660       for ac_var in $ac_subst_files
  1661       do
  1662 	eval ac_val=\$$ac_var
  1663 	case $ac_val in
  1664 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1665 	esac
  1666 	echo "$ac_var='\''$ac_val'\''"
  1667       done | sort
  1668       echo
  1669     fi
  1671     if test -s confdefs.h; then
  1672       cat <<\_ASBOX
  1673 ## ----------- ##
  1674 ## confdefs.h. ##
  1675 ## ----------- ##
  1676 _ASBOX
  1677       echo
  1678       cat confdefs.h
  1679       echo
  1680     fi
  1681     test "$ac_signal" != 0 &&
  1682       echo "$as_me: caught signal $ac_signal"
  1683     echo "$as_me: exit $exit_status"
  1684   } >&5
  1685   rm -f core *.core core.conftest.* &&
  1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1687     exit $exit_status
  1688 ' 0
  1689 for ac_signal in 1 2 13 15; do
  1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1691 done
  1692 ac_signal=0
  1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1695 rm -f -r conftest* confdefs.h
  1697 # Predefined preprocessor variables.
  1699 cat >>confdefs.h <<_ACEOF
  1700 #define PACKAGE_NAME "$PACKAGE_NAME"
  1701 _ACEOF
  1704 cat >>confdefs.h <<_ACEOF
  1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1706 _ACEOF
  1709 cat >>confdefs.h <<_ACEOF
  1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1711 _ACEOF
  1714 cat >>confdefs.h <<_ACEOF
  1715 #define PACKAGE_STRING "$PACKAGE_STRING"
  1716 _ACEOF
  1719 cat >>confdefs.h <<_ACEOF
  1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1721 _ACEOF
  1724 # Let the site file select an alternate cache file if it wants to.
  1725 # Prefer explicitly selected file to automatically selected ones.
  1726 if test -n "$CONFIG_SITE"; then
  1727   set x "$CONFIG_SITE"
  1728 elif test "x$prefix" != xNONE; then
  1729   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1730 else
  1731   set x "$ac_default_prefix/share/config.site" \
  1732 	"$ac_default_prefix/etc/config.site"
  1733 fi
  1734 shift
  1735 for ac_site_file
  1736 do
  1737   if test -r "$ac_site_file"; then
  1738     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1739 echo "$as_me: loading site script $ac_site_file" >&6;}
  1740     sed 's/^/| /' "$ac_site_file" >&5
  1741     . "$ac_site_file"
  1742   fi
  1743 done
  1745 if test -r "$cache_file"; then
  1746   # Some versions of bash will fail to source /dev/null (special
  1747   # files actually), so we avoid doing that.
  1748   if test -f "$cache_file"; then
  1749     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1750 echo "$as_me: loading cache $cache_file" >&6;}
  1751     case $cache_file in
  1752       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1753       *)                      . "./$cache_file";;
  1754     esac
  1755   fi
  1756 else
  1757   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1758 echo "$as_me: creating cache $cache_file" >&6;}
  1759   >$cache_file
  1760 fi
  1762 # Check that the precious variables saved in the cache have kept the same
  1763 # value.
  1764 ac_cache_corrupted=false
  1765 for ac_var in $ac_precious_vars; do
  1766   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1767   eval ac_new_set=\$ac_env_${ac_var}_set
  1768   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1769   eval ac_new_val=\$ac_env_${ac_var}_value
  1770   case $ac_old_set,$ac_new_set in
  1771     set,)
  1772       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1774       ac_cache_corrupted=: ;;
  1775     ,set)
  1776       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1778       ac_cache_corrupted=: ;;
  1779     ,);;
  1780     *)
  1781       if test "x$ac_old_val" != "x$ac_new_val"; then
  1782 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1784 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1785 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1786 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1787 echo "$as_me:   current value: $ac_new_val" >&2;}
  1788 	ac_cache_corrupted=:
  1789       fi;;
  1790   esac
  1791   # Pass precious variables to config.status.
  1792   if test "$ac_new_set" = set; then
  1793     case $ac_new_val in
  1794     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1795     *) ac_arg=$ac_var=$ac_new_val ;;
  1796     esac
  1797     case " $ac_configure_args " in
  1798       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1799       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1800     esac
  1801   fi
  1802 done
  1803 if $ac_cache_corrupted; then
  1804   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1806   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1808    { (exit 1); exit 1; }; }
  1809 fi
  1827 ac_ext=c
  1828 ac_cpp='$CPP $CPPFLAGS'
  1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1834 am__api_version="1.9"
  1835 ac_aux_dir=
  1836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1837   if test -f "$ac_dir/install-sh"; then
  1838     ac_aux_dir=$ac_dir
  1839     ac_install_sh="$ac_aux_dir/install-sh -c"
  1840     break
  1841   elif test -f "$ac_dir/install.sh"; then
  1842     ac_aux_dir=$ac_dir
  1843     ac_install_sh="$ac_aux_dir/install.sh -c"
  1844     break
  1845   elif test -f "$ac_dir/shtool"; then
  1846     ac_aux_dir=$ac_dir
  1847     ac_install_sh="$ac_aux_dir/shtool install -c"
  1848     break
  1849   fi
  1850 done
  1851 if test -z "$ac_aux_dir"; then
  1852   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1853 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1854    { (exit 1); exit 1; }; }
  1855 fi
  1857 # These three variables are undocumented and unsupported,
  1858 # and are intended to be withdrawn in a future Autoconf release.
  1859 # They can cause serious problems if a builder's source tree is in a directory
  1860 # whose full name contains unusual characters.
  1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1863 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1866 # Find a good install program.  We prefer a C program (faster),
  1867 # so one script is as good as another.  But avoid the broken or
  1868 # incompatible versions:
  1869 # SysV /etc/install, /usr/sbin/install
  1870 # SunOS /usr/etc/install
  1871 # IRIX /sbin/install
  1872 # AIX /bin/install
  1873 # AmigaOS /C/install, which installs bootblocks on floppy discs
  1874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1877 # OS/2's system install, which has a completely different semantic
  1878 # ./install, which can be erroneously created by make from ./install.sh.
  1879 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1880 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1881 if test -z "$INSTALL"; then
  1882 if test "${ac_cv_path_install+set}" = set; then
  1883   echo $ECHO_N "(cached) $ECHO_C" >&6
  1884 else
  1885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1886 for as_dir in $PATH
  1887 do
  1888   IFS=$as_save_IFS
  1889   test -z "$as_dir" && as_dir=.
  1890   # Account for people who put trailing slashes in PATH elements.
  1891 case $as_dir/ in
  1892   ./ | .// | /cC/* | \
  1893   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1894   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1895   /usr/ucb/* ) ;;
  1896   *)
  1897     # OSF1 and SCO ODT 3.0 have their own names for install.
  1898     # Don't use installbsd from OSF since it installs stuff as root
  1899     # by default.
  1900     for ac_prog in ginstall scoinst install; do
  1901       for ac_exec_ext in '' $ac_executable_extensions; do
  1902 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1903 	  if test $ac_prog = install &&
  1904 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1905 	    # AIX install.  It has an incompatible calling convention.
  1907 	  elif test $ac_prog = install &&
  1908 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1909 	    # program-specific install script used by HP pwplus--don't use.
  1911 	  else
  1912 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1913 	    break 3
  1914 	  fi
  1915 	fi
  1916       done
  1917     done
  1918     ;;
  1919 esac
  1920 done
  1921 IFS=$as_save_IFS
  1924 fi
  1925   if test "${ac_cv_path_install+set}" = set; then
  1926     INSTALL=$ac_cv_path_install
  1927   else
  1928     # As a last resort, use the slow shell script.  Don't cache a
  1929     # value for INSTALL within a source directory, because that will
  1930     # break other packages using the cache if that directory is
  1931     # removed, or if the value is a relative name.
  1932     INSTALL=$ac_install_sh
  1933   fi
  1934 fi
  1935 { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1936 echo "${ECHO_T}$INSTALL" >&6; }
  1938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1939 # It thinks the first close brace ends the variable substitution.
  1940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1946 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1947 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1948 # Just in case
  1949 sleep 1
  1950 echo timestamp > conftest.file
  1951 # Do `set' in a subshell so we don't clobber the current shell's
  1952 # arguments.  Must try -L first in case configure is actually a
  1953 # symlink; some systems play weird games with the mod time of symlinks
  1954 # (eg FreeBSD returns the mod time of the symlink's containing
  1955 # directory).
  1956 if (
  1957    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1958    if test "$*" = "X"; then
  1959       # -L didn't work.
  1960       set X `ls -t $srcdir/configure conftest.file`
  1961    fi
  1962    rm -f conftest.file
  1963    if test "$*" != "X $srcdir/configure conftest.file" \
  1964       && test "$*" != "X conftest.file $srcdir/configure"; then
  1966       # If neither matched, then we have a broken ls.  This can happen
  1967       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1968       # broken ls alias from the environment.  This has actually
  1969       # happened.  Such a system could not be considered "sane".
  1970       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1971 alias in your environment" >&5
  1972 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1973 alias in your environment" >&2;}
  1974    { (exit 1); exit 1; }; }
  1975    fi
  1977    test "$2" = conftest.file
  1979 then
  1980    # Ok.
  1982 else
  1983    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1984 Check your system clock" >&5
  1985 echo "$as_me: error: newly created file is older than distributed files!
  1986 Check your system clock" >&2;}
  1987    { (exit 1); exit 1; }; }
  1988 fi
  1989 { echo "$as_me:$LINENO: result: yes" >&5
  1990 echo "${ECHO_T}yes" >&6; }
  1991 test "$program_prefix" != NONE &&
  1992   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1993 # Use a double $ so make ignores it.
  1994 test "$program_suffix" != NONE &&
  1995   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1996 # Double any \ or $.  echo might interpret backslashes.
  1997 # By default was `s,x,x', remove it if useless.
  1998 cat <<\_ACEOF >conftest.sed
  1999 s/[\\$]/&&/g;s/;s,x,x,$//
  2000 _ACEOF
  2001 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2002 rm -f conftest.sed
  2004 # expand $ac_aux_dir to an absolute path
  2005 am_aux_dir=`cd $ac_aux_dir && pwd`
  2007 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2008 # Use eval to expand $SHELL
  2009 if eval "$MISSING --run true"; then
  2010   am_missing_run="$MISSING --run "
  2011 else
  2012   am_missing_run=
  2013   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2014 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2015 fi
  2017 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2018   # We used to keeping the `.' as first argument, in order to
  2019   # allow $(mkdir_p) to be used without argument.  As in
  2020   #   $(mkdir_p) $(somedir)
  2021   # where $(somedir) is conditionally defined.  However this is wrong
  2022   # for two reasons:
  2023   #  1. if the package is installed by a user who cannot write `.'
  2024   #     make install will fail,
  2025   #  2. the above comment should most certainly read
  2026   #     $(mkdir_p) $(DESTDIR)$(somedir)
  2027   #     so it does not work when $(somedir) is undefined and
  2028   #     $(DESTDIR) is not.
  2029   #  To support the latter case, we have to write
  2030   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2031   #  so the `.' trick is pointless.
  2032   mkdir_p='mkdir -p --'
  2033 else
  2034   # On NextStep and OpenStep, the `mkdir' command does not
  2035   # recognize any option.  It will interpret all options as
  2036   # directories to create, and then abort because `.' already
  2037   # exists.
  2038   for d in ./-p ./--version;
  2039   do
  2040     test -d $d && rmdir $d
  2041   done
  2042   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2043   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2044     mkdir_p='$(mkinstalldirs)'
  2045   else
  2046     mkdir_p='$(install_sh) -d'
  2047   fi
  2048 fi
  2050 for ac_prog in gawk mawk nawk awk
  2051 do
  2052   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2053 set dummy $ac_prog; ac_word=$2
  2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2056 if test "${ac_cv_prog_AWK+set}" = set; then
  2057   echo $ECHO_N "(cached) $ECHO_C" >&6
  2058 else
  2059   if test -n "$AWK"; then
  2060   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2061 else
  2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063 for as_dir in $PATH
  2064 do
  2065   IFS=$as_save_IFS
  2066   test -z "$as_dir" && as_dir=.
  2067   for ac_exec_ext in '' $ac_executable_extensions; do
  2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2069     ac_cv_prog_AWK="$ac_prog"
  2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2071     break 2
  2072   fi
  2073 done
  2074 done
  2075 IFS=$as_save_IFS
  2077 fi
  2078 fi
  2079 AWK=$ac_cv_prog_AWK
  2080 if test -n "$AWK"; then
  2081   { echo "$as_me:$LINENO: result: $AWK" >&5
  2082 echo "${ECHO_T}$AWK" >&6; }
  2083 else
  2084   { echo "$as_me:$LINENO: result: no" >&5
  2085 echo "${ECHO_T}no" >&6; }
  2086 fi
  2089   test -n "$AWK" && break
  2090 done
  2092 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2093 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2094 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2095 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2096   echo $ECHO_N "(cached) $ECHO_C" >&6
  2097 else
  2098   cat >conftest.make <<\_ACEOF
  2099 SHELL = /bin/sh
  2100 all:
  2101 	@echo '@@@%%%=$(MAKE)=@@@%%%'
  2102 _ACEOF
  2103 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2104 case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2105   *@@@%%%=?*=@@@%%%*)
  2106     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2107   *)
  2108     eval ac_cv_prog_make_${ac_make}_set=no;;
  2109 esac
  2110 rm -f conftest.make
  2111 fi
  2112 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2113   { echo "$as_me:$LINENO: result: yes" >&5
  2114 echo "${ECHO_T}yes" >&6; }
  2115   SET_MAKE=
  2116 else
  2117   { echo "$as_me:$LINENO: result: no" >&5
  2118 echo "${ECHO_T}no" >&6; }
  2119   SET_MAKE="MAKE=${MAKE-make}"
  2120 fi
  2122 rm -rf .tst 2>/dev/null
  2123 mkdir .tst 2>/dev/null
  2124 if test -d .tst; then
  2125   am__leading_dot=.
  2126 else
  2127   am__leading_dot=_
  2128 fi
  2129 rmdir .tst 2>/dev/null
  2131 # test to see if srcdir already configured
  2132 if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2133    test -f $srcdir/config.status; then
  2134   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2135 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2136    { (exit 1); exit 1; }; }
  2137 fi
  2139 # test whether we have cygpath
  2140 if test -z "$CYGPATH_W"; then
  2141   if (cygpath --version) >/dev/null 2>/dev/null; then
  2142     CYGPATH_W='cygpath -w'
  2143   else
  2144     CYGPATH_W=echo
  2145   fi
  2146 fi
  2149 # Define the identity of the package.
  2150  PACKAGE=lxdream
  2151  VERSION=0.8.1
  2154 cat >>confdefs.h <<_ACEOF
  2155 #define PACKAGE "$PACKAGE"
  2156 _ACEOF
  2159 cat >>confdefs.h <<_ACEOF
  2160 #define VERSION "$VERSION"
  2161 _ACEOF
  2163 # Some tools Automake needs.
  2165 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2168 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2171 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2174 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2177 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2179 install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2181 # Installed binaries are usually stripped using `strip' when the user
  2182 # run `make install-strip'.  However `strip' might not be the right
  2183 # tool to use in cross-compilation environments, therefore Automake
  2184 # will honor the `STRIP' environment variable to overrule this program.
  2185 if test "$cross_compiling" != no; then
  2186   if test -n "$ac_tool_prefix"; then
  2187   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2188 set dummy ${ac_tool_prefix}strip; ac_word=$2
  2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2191 if test "${ac_cv_prog_STRIP+set}" = set; then
  2192   echo $ECHO_N "(cached) $ECHO_C" >&6
  2193 else
  2194   if test -n "$STRIP"; then
  2195   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2196 else
  2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2198 for as_dir in $PATH
  2199 do
  2200   IFS=$as_save_IFS
  2201   test -z "$as_dir" && as_dir=.
  2202   for ac_exec_ext in '' $ac_executable_extensions; do
  2203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2204     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2206     break 2
  2207   fi
  2208 done
  2209 done
  2210 IFS=$as_save_IFS
  2212 fi
  2213 fi
  2214 STRIP=$ac_cv_prog_STRIP
  2215 if test -n "$STRIP"; then
  2216   { echo "$as_me:$LINENO: result: $STRIP" >&5
  2217 echo "${ECHO_T}$STRIP" >&6; }
  2218 else
  2219   { echo "$as_me:$LINENO: result: no" >&5
  2220 echo "${ECHO_T}no" >&6; }
  2221 fi
  2224 fi
  2225 if test -z "$ac_cv_prog_STRIP"; then
  2226   ac_ct_STRIP=$STRIP
  2227   # Extract the first word of "strip", so it can be a program name with args.
  2228 set dummy strip; ac_word=$2
  2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2231 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2232   echo $ECHO_N "(cached) $ECHO_C" >&6
  2233 else
  2234   if test -n "$ac_ct_STRIP"; then
  2235   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2236 else
  2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238 for as_dir in $PATH
  2239 do
  2240   IFS=$as_save_IFS
  2241   test -z "$as_dir" && as_dir=.
  2242   for ac_exec_ext in '' $ac_executable_extensions; do
  2243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2244     ac_cv_prog_ac_ct_STRIP="strip"
  2245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2246     break 2
  2247   fi
  2248 done
  2249 done
  2250 IFS=$as_save_IFS
  2252 fi
  2253 fi
  2254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2255 if test -n "$ac_ct_STRIP"; then
  2256   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2257 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2258 else
  2259   { echo "$as_me:$LINENO: result: no" >&5
  2260 echo "${ECHO_T}no" >&6; }
  2261 fi
  2263   if test "x$ac_ct_STRIP" = x; then
  2264     STRIP=":"
  2265   else
  2266     case $cross_compiling:$ac_tool_warned in
  2267 yes:)
  2268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2269 whose name does not start with the host triplet.  If you think this
  2270 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2272 whose name does not start with the host triplet.  If you think this
  2273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2274 ac_tool_warned=yes ;;
  2275 esac
  2276     STRIP=$ac_ct_STRIP
  2277   fi
  2278 else
  2279   STRIP="$ac_cv_prog_STRIP"
  2280 fi
  2282 fi
  2283 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2285 # We need awk for the "check" target.  The system "awk" is bad on
  2286 # some platforms.
  2287 # Always define AMTAR for backward compatibility.
  2289 AMTAR=${AMTAR-"${am_missing_run}tar"}
  2291 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2297 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2298 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2299     # Check whether --enable-maintainer-mode was given.
  2300 if test "${enable_maintainer_mode+set}" = set; then
  2301   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2302 else
  2303   USE_MAINTAINER_MODE=no
  2304 fi
  2306   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2307 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2310 if test $USE_MAINTAINER_MODE = yes; then
  2311   MAINTAINER_MODE_TRUE=
  2312   MAINTAINER_MODE_FALSE='#'
  2313 else
  2314   MAINTAINER_MODE_TRUE='#'
  2315   MAINTAINER_MODE_FALSE=
  2316 fi
  2318   MAINT=$MAINTAINER_MODE_TRUE
  2321 ac_config_headers="$ac_config_headers config.h"
  2324 DEPDIR="${am__leading_dot}deps"
  2326 ac_config_commands="$ac_config_commands depfiles"
  2329 am_make=${MAKE-make}
  2330 cat > confinc << 'END'
  2331 am__doit:
  2332 	@echo done
  2333 .PHONY: am__doit
  2334 END
  2335 # If we don't find an include directive, just comment out the code.
  2336 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2337 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2338 am__include="#"
  2339 am__quote=
  2340 _am_result=none
  2341 # First try GNU make style include.
  2342 echo "include confinc" > confmf
  2343 # We grep out `Entering directory' and `Leaving directory'
  2344 # messages which can occur if `w' ends up in MAKEFLAGS.
  2345 # In particular we don't look at `^make:' because GNU make might
  2346 # be invoked under some other name (usually "gmake"), in which
  2347 # case it prints its new name instead of `make'.
  2348 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2349    am__include=include
  2350    am__quote=
  2351    _am_result=GNU
  2352 fi
  2353 # Now try BSD make style include.
  2354 if test "$am__include" = "#"; then
  2355    echo '.include "confinc"' > confmf
  2356    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2357       am__include=.include
  2358       am__quote="\""
  2359       _am_result=BSD
  2360    fi
  2361 fi
  2364 { echo "$as_me:$LINENO: result: $_am_result" >&5
  2365 echo "${ECHO_T}$_am_result" >&6; }
  2366 rm -f confinc confmf
  2368 # Check whether --enable-dependency-tracking was given.
  2369 if test "${enable_dependency_tracking+set}" = set; then
  2370   enableval=$enable_dependency_tracking;
  2371 fi
  2373 if test "x$enable_dependency_tracking" != xno; then
  2374   am_depcomp="$ac_aux_dir/depcomp"
  2375   AMDEPBACKSLASH='\'
  2376 fi
  2379 if test "x$enable_dependency_tracking" != xno; then
  2380   AMDEP_TRUE=
  2381   AMDEP_FALSE='#'
  2382 else
  2383   AMDEP_TRUE='#'
  2384   AMDEP_FALSE=
  2385 fi
  2389 ac_ext=c
  2390 ac_cpp='$CPP $CPPFLAGS'
  2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2394 if test -n "$ac_tool_prefix"; then
  2395   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2399 if test "${ac_cv_prog_CC+set}" = set; then
  2400   echo $ECHO_N "(cached) $ECHO_C" >&6
  2401 else
  2402   if test -n "$CC"; then
  2403   ac_cv_prog_CC="$CC" # Let the user override the test.
  2404 else
  2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2406 for as_dir in $PATH
  2407 do
  2408   IFS=$as_save_IFS
  2409   test -z "$as_dir" && as_dir=.
  2410   for ac_exec_ext in '' $ac_executable_extensions; do
  2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2412     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2414     break 2
  2415   fi
  2416 done
  2417 done
  2418 IFS=$as_save_IFS
  2420 fi
  2421 fi
  2422 CC=$ac_cv_prog_CC
  2423 if test -n "$CC"; then
  2424   { echo "$as_me:$LINENO: result: $CC" >&5
  2425 echo "${ECHO_T}$CC" >&6; }
  2426 else
  2427   { echo "$as_me:$LINENO: result: no" >&5
  2428 echo "${ECHO_T}no" >&6; }
  2429 fi
  2432 fi
  2433 if test -z "$ac_cv_prog_CC"; then
  2434   ac_ct_CC=$CC
  2435   # Extract the first word of "gcc", so it can be a program name with args.
  2436 set dummy gcc; ac_word=$2
  2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2440   echo $ECHO_N "(cached) $ECHO_C" >&6
  2441 else
  2442   if test -n "$ac_ct_CC"; then
  2443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2444 else
  2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446 for as_dir in $PATH
  2447 do
  2448   IFS=$as_save_IFS
  2449   test -z "$as_dir" && as_dir=.
  2450   for ac_exec_ext in '' $ac_executable_extensions; do
  2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452     ac_cv_prog_ac_ct_CC="gcc"
  2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454     break 2
  2455   fi
  2456 done
  2457 done
  2458 IFS=$as_save_IFS
  2460 fi
  2461 fi
  2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2463 if test -n "$ac_ct_CC"; then
  2464   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2466 else
  2467   { echo "$as_me:$LINENO: result: no" >&5
  2468 echo "${ECHO_T}no" >&6; }
  2469 fi
  2471   if test "x$ac_ct_CC" = x; then
  2472     CC=""
  2473   else
  2474     case $cross_compiling:$ac_tool_warned in
  2475 yes:)
  2476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2477 whose name does not start with the host triplet.  If you think this
  2478 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2480 whose name does not start with the host triplet.  If you think this
  2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2482 ac_tool_warned=yes ;;
  2483 esac
  2484     CC=$ac_ct_CC
  2485   fi
  2486 else
  2487   CC="$ac_cv_prog_CC"
  2488 fi
  2490 if test -z "$CC"; then
  2491           if test -n "$ac_tool_prefix"; then
  2492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
  2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2496 if test "${ac_cv_prog_CC+set}" = set; then
  2497   echo $ECHO_N "(cached) $ECHO_C" >&6
  2498 else
  2499   if test -n "$CC"; then
  2500   ac_cv_prog_CC="$CC" # Let the user override the test.
  2501 else
  2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503 for as_dir in $PATH
  2504 do
  2505   IFS=$as_save_IFS
  2506   test -z "$as_dir" && as_dir=.
  2507   for ac_exec_ext in '' $ac_executable_extensions; do
  2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2509     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511     break 2
  2512   fi
  2513 done
  2514 done
  2515 IFS=$as_save_IFS
  2517 fi
  2518 fi
  2519 CC=$ac_cv_prog_CC
  2520 if test -n "$CC"; then
  2521   { echo "$as_me:$LINENO: result: $CC" >&5
  2522 echo "${ECHO_T}$CC" >&6; }
  2523 else
  2524   { echo "$as_me:$LINENO: result: no" >&5
  2525 echo "${ECHO_T}no" >&6; }
  2526 fi
  2529   fi
  2530 fi
  2531 if test -z "$CC"; then
  2532   # Extract the first word of "cc", so it can be a program name with args.
  2533 set dummy cc; ac_word=$2
  2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2536 if test "${ac_cv_prog_CC+set}" = set; then
  2537   echo $ECHO_N "(cached) $ECHO_C" >&6
  2538 else
  2539   if test -n "$CC"; then
  2540   ac_cv_prog_CC="$CC" # Let the user override the test.
  2541 else
  2542   ac_prog_rejected=no
  2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544 for as_dir in $PATH
  2545 do
  2546   IFS=$as_save_IFS
  2547   test -z "$as_dir" && as_dir=.
  2548   for ac_exec_ext in '' $ac_executable_extensions; do
  2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2551        ac_prog_rejected=yes
  2552        continue
  2553      fi
  2554     ac_cv_prog_CC="cc"
  2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2556     break 2
  2557   fi
  2558 done
  2559 done
  2560 IFS=$as_save_IFS
  2562 if test $ac_prog_rejected = yes; then
  2563   # We found a bogon in the path, so make sure we never use it.
  2564   set dummy $ac_cv_prog_CC
  2565   shift
  2566   if test $# != 0; then
  2567     # We chose a different compiler from the bogus one.
  2568     # However, it has the same basename, so the bogon will be chosen
  2569     # first if we set CC to just the basename; use the full file name.
  2570     shift
  2571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2572   fi
  2573 fi
  2574 fi
  2575 fi
  2576 CC=$ac_cv_prog_CC
  2577 if test -n "$CC"; then
  2578   { echo "$as_me:$LINENO: result: $CC" >&5
  2579 echo "${ECHO_T}$CC" >&6; }
  2580 else
  2581   { echo "$as_me:$LINENO: result: no" >&5
  2582 echo "${ECHO_T}no" >&6; }
  2583 fi
  2586 fi
  2587 if test -z "$CC"; then
  2588   if test -n "$ac_tool_prefix"; then
  2589   for ac_prog in cl.exe
  2590   do
  2591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2595 if test "${ac_cv_prog_CC+set}" = set; then
  2596   echo $ECHO_N "(cached) $ECHO_C" >&6
  2597 else
  2598   if test -n "$CC"; then
  2599   ac_cv_prog_CC="$CC" # Let the user override the test.
  2600 else
  2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602 for as_dir in $PATH
  2603 do
  2604   IFS=$as_save_IFS
  2605   test -z "$as_dir" && as_dir=.
  2606   for ac_exec_ext in '' $ac_executable_extensions; do
  2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610     break 2
  2611   fi
  2612 done
  2613 done
  2614 IFS=$as_save_IFS
  2616 fi
  2617 fi
  2618 CC=$ac_cv_prog_CC
  2619 if test -n "$CC"; then
  2620   { echo "$as_me:$LINENO: result: $CC" >&5
  2621 echo "${ECHO_T}$CC" >&6; }
  2622 else
  2623   { echo "$as_me:$LINENO: result: no" >&5
  2624 echo "${ECHO_T}no" >&6; }
  2625 fi
  2628     test -n "$CC" && break
  2629   done
  2630 fi
  2631 if test -z "$CC"; then
  2632   ac_ct_CC=$CC
  2633   for ac_prog in cl.exe
  2634 do
  2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2636 set dummy $ac_prog; ac_word=$2
  2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2640   echo $ECHO_N "(cached) $ECHO_C" >&6
  2641 else
  2642   if test -n "$ac_ct_CC"; then
  2643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2644 else
  2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2646 for as_dir in $PATH
  2647 do
  2648   IFS=$as_save_IFS
  2649   test -z "$as_dir" && as_dir=.
  2650   for ac_exec_ext in '' $ac_executable_extensions; do
  2651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2652     ac_cv_prog_ac_ct_CC="$ac_prog"
  2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2654     break 2
  2655   fi
  2656 done
  2657 done
  2658 IFS=$as_save_IFS
  2660 fi
  2661 fi
  2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2663 if test -n "$ac_ct_CC"; then
  2664   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2666 else
  2667   { echo "$as_me:$LINENO: result: no" >&5
  2668 echo "${ECHO_T}no" >&6; }
  2669 fi
  2672   test -n "$ac_ct_CC" && break
  2673 done
  2675   if test "x$ac_ct_CC" = x; then
  2676     CC=""
  2677   else
  2678     case $cross_compiling:$ac_tool_warned in
  2679 yes:)
  2680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2681 whose name does not start with the host triplet.  If you think this
  2682 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2684 whose name does not start with the host triplet.  If you think this
  2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2686 ac_tool_warned=yes ;;
  2687 esac
  2688     CC=$ac_ct_CC
  2689   fi
  2690 fi
  2692 fi
  2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2696 See \`config.log' for more details." >&5
  2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2698 See \`config.log' for more details." >&2;}
  2699    { (exit 1); exit 1; }; }
  2701 # Provide some information about the compiler.
  2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2703 ac_compiler=`set X $ac_compile; echo $2`
  2704 { (ac_try="$ac_compiler --version >&5"
  2705 case "(($ac_try" in
  2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2707   *) ac_try_echo=$ac_try;;
  2708 esac
  2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2710   (eval "$ac_compiler --version >&5") 2>&5
  2711   ac_status=$?
  2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713   (exit $ac_status); }
  2714 { (ac_try="$ac_compiler -v >&5"
  2715 case "(($ac_try" in
  2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2717   *) ac_try_echo=$ac_try;;
  2718 esac
  2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2720   (eval "$ac_compiler -v >&5") 2>&5
  2721   ac_status=$?
  2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2723   (exit $ac_status); }
  2724 { (ac_try="$ac_compiler -V >&5"
  2725 case "(($ac_try" in
  2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727   *) ac_try_echo=$ac_try;;
  2728 esac
  2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2730   (eval "$ac_compiler -V >&5") 2>&5
  2731   ac_status=$?
  2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2733   (exit $ac_status); }
  2735 cat >conftest.$ac_ext <<_ACEOF
  2736 /* confdefs.h.  */
  2737 _ACEOF
  2738 cat confdefs.h >>conftest.$ac_ext
  2739 cat >>conftest.$ac_ext <<_ACEOF
  2740 /* end confdefs.h.  */
  2742 int
  2743 main ()
  2747   return 0;
  2749 _ACEOF
  2750 ac_clean_files_save=$ac_clean_files
  2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2752 # Try to create an executable without -o first, disregard a.out.
  2753 # It will help us diagnose broken compilers, and finding out an intuition
  2754 # of exeext.
  2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2757 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2759 # List of possible output files, starting from the most likely.
  2760 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2761 # only as a last resort.  b.out is created by i960 compilers.
  2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2764 # The IRIX 6 linker writes into existing files which may not be
  2765 # executable, retaining their permissions.  Remove them first so a
  2766 # subsequent execution test works.
  2767 ac_rmfiles=
  2768 for ac_file in $ac_files
  2769 do
  2770   case $ac_file in
  2771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2772     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2773   esac
  2774 done
  2775 rm -f $ac_rmfiles
  2777 if { (ac_try="$ac_link_default"
  2778 case "(($ac_try" in
  2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780   *) ac_try_echo=$ac_try;;
  2781 esac
  2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2783   (eval "$ac_link_default") 2>&5
  2784   ac_status=$?
  2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786   (exit $ac_status); }; then
  2787   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2789 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2790 # so that the user can short-circuit this test for compilers unknown to
  2791 # Autoconf.
  2792 for ac_file in $ac_files ''
  2793 do
  2794   test -f "$ac_file" || continue
  2795   case $ac_file in
  2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2797 	;;
  2798     [ab].out )
  2799 	# We found the default executable, but exeext='' is most
  2800 	# certainly right.
  2801 	break;;
  2802     *.* )
  2803         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2804 	then :; else
  2805 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2806 	fi
  2807 	# We set ac_cv_exeext here because the later test for it is not
  2808 	# safe: cross compilers may not add the suffix if given an `-o'
  2809 	# argument, so we may need to know it at that point already.
  2810 	# Even if this section looks crufty: it has the advantage of
  2811 	# actually working.
  2812 	break;;
  2813     * )
  2814 	break;;
  2815   esac
  2816 done
  2817 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2819 else
  2820   ac_file=''
  2821 fi
  2823 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2824 echo "${ECHO_T}$ac_file" >&6; }
  2825 if test -z "$ac_file"; then
  2826   echo "$as_me: failed program was:" >&5
  2827 sed 's/^/| /' conftest.$ac_ext >&5
  2829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2830 See \`config.log' for more details." >&5
  2831 echo "$as_me: error: C compiler cannot create executables
  2832 See \`config.log' for more details." >&2;}
  2833    { (exit 77); exit 77; }; }
  2834 fi
  2836 ac_exeext=$ac_cv_exeext
  2838 # Check that the compiler produces executables we can run.  If not, either
  2839 # the compiler is broken, or we cross compile.
  2840 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2843 # If not cross compiling, check that we can run a simple program.
  2844 if test "$cross_compiling" != yes; then
  2845   if { ac_try='./$ac_file'
  2846   { (case "(($ac_try" in
  2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2848   *) ac_try_echo=$ac_try;;
  2849 esac
  2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2851   (eval "$ac_try") 2>&5
  2852   ac_status=$?
  2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2854   (exit $ac_status); }; }; then
  2855     cross_compiling=no
  2856   else
  2857     if test "$cross_compiling" = maybe; then
  2858 	cross_compiling=yes
  2859     else
  2860 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2861 If you meant to cross compile, use \`--host'.
  2862 See \`config.log' for more details." >&5
  2863 echo "$as_me: error: cannot run C compiled programs.
  2864 If you meant to cross compile, use \`--host'.
  2865 See \`config.log' for more details." >&2;}
  2866    { (exit 1); exit 1; }; }
  2867     fi
  2868   fi
  2869 fi
  2870 { echo "$as_me:$LINENO: result: yes" >&5
  2871 echo "${ECHO_T}yes" >&6; }
  2873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2874 ac_clean_files=$ac_clean_files_save
  2875 # Check that the compiler produces executables we can run.  If not, either
  2876 # the compiler is broken, or we cross compile.
  2877 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2879 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2880 echo "${ECHO_T}$cross_compiling" >&6; }
  2882 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2884 if { (ac_try="$ac_link"
  2885 case "(($ac_try" in
  2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2887   *) ac_try_echo=$ac_try;;
  2888 esac
  2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2890   (eval "$ac_link") 2>&5
  2891   ac_status=$?
  2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893   (exit $ac_status); }; then
  2894   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2895 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2896 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2897 # `rm'.
  2898 for ac_file in conftest.exe conftest conftest.*; do
  2899   test -f "$ac_file" || continue
  2900   case $ac_file in
  2901     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2902     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2903 	  break;;
  2904     * ) break;;
  2905   esac
  2906 done
  2907 else
  2908   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2909 See \`config.log' for more details." >&5
  2910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2911 See \`config.log' for more details." >&2;}
  2912    { (exit 1); exit 1; }; }
  2913 fi
  2915 rm -f conftest$ac_cv_exeext
  2916 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2917 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2919 rm -f conftest.$ac_ext
  2920 EXEEXT=$ac_cv_exeext
  2921 ac_exeext=$EXEEXT
  2922 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2924 if test "${ac_cv_objext+set}" = set; then
  2925   echo $ECHO_N "(cached) $ECHO_C" >&6
  2926 else
  2927   cat >conftest.$ac_ext <<_ACEOF
  2928 /* confdefs.h.  */
  2929 _ACEOF
  2930 cat confdefs.h >>conftest.$ac_ext
  2931 cat >>conftest.$ac_ext <<_ACEOF
  2932 /* end confdefs.h.  */
  2934 int
  2935 main ()
  2939   return 0;
  2941 _ACEOF
  2942 rm -f conftest.o conftest.obj
  2943 if { (ac_try="$ac_compile"
  2944 case "(($ac_try" in
  2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946   *) ac_try_echo=$ac_try;;
  2947 esac
  2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2949   (eval "$ac_compile") 2>&5
  2950   ac_status=$?
  2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2952   (exit $ac_status); }; then
  2953   for ac_file in conftest.o conftest.obj conftest.*; do
  2954   test -f "$ac_file" || continue;
  2955   case $ac_file in
  2956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2957     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2958        break;;
  2959   esac
  2960 done
  2961 else
  2962   echo "$as_me: failed program was:" >&5
  2963 sed 's/^/| /' conftest.$ac_ext >&5
  2965 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2966 See \`config.log' for more details." >&5
  2967 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2968 See \`config.log' for more details." >&2;}
  2969    { (exit 1); exit 1; }; }
  2970 fi
  2972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2973 fi
  2974 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2975 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2976 OBJEXT=$ac_cv_objext
  2977 ac_objext=$OBJEXT
  2978 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2979 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2980 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2981   echo $ECHO_N "(cached) $ECHO_C" >&6
  2982 else
  2983   cat >conftest.$ac_ext <<_ACEOF
  2984 /* confdefs.h.  */
  2985 _ACEOF
  2986 cat confdefs.h >>conftest.$ac_ext
  2987 cat >>conftest.$ac_ext <<_ACEOF
  2988 /* end confdefs.h.  */
  2990 int
  2991 main ()
  2993 #ifndef __GNUC__
  2994        choke me
  2995 #endif
  2998   return 0;
  3000 _ACEOF
  3001 rm -f conftest.$ac_objext
  3002 if { (ac_try="$ac_compile"
  3003 case "(($ac_try" in
  3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005   *) ac_try_echo=$ac_try;;
  3006 esac
  3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3008   (eval "$ac_compile") 2>conftest.er1
  3009   ac_status=$?
  3010   grep -v '^ *+' conftest.er1 >conftest.err
  3011   rm -f conftest.er1
  3012   cat conftest.err >&5
  3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3014   (exit $ac_status); } && {
  3015 	 test -z "$ac_c_werror_flag" ||
  3016 	 test ! -s conftest.err
  3017        } && test -s conftest.$ac_objext; then
  3018   ac_compiler_gnu=yes
  3019 else
  3020   echo "$as_me: failed program was:" >&5
  3021 sed 's/^/| /' conftest.$ac_ext >&5
  3023 	ac_compiler_gnu=no
  3024 fi
  3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3029 fi
  3030 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3031 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3032 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3033 ac_test_CFLAGS=${CFLAGS+set}
  3034 ac_save_CFLAGS=$CFLAGS
  3035 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3036 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3037 if test "${ac_cv_prog_cc_g+set}" = set; then
  3038   echo $ECHO_N "(cached) $ECHO_C" >&6
  3039 else
  3040   ac_save_c_werror_flag=$ac_c_werror_flag
  3041    ac_c_werror_flag=yes
  3042    ac_cv_prog_cc_g=no
  3043    CFLAGS="-g"
  3044    cat >conftest.$ac_ext <<_ACEOF
  3045 /* confdefs.h.  */
  3046 _ACEOF
  3047 cat confdefs.h >>conftest.$ac_ext
  3048 cat >>conftest.$ac_ext <<_ACEOF
  3049 /* end confdefs.h.  */
  3051 int
  3052 main ()
  3056   return 0;
  3058 _ACEOF
  3059 rm -f conftest.$ac_objext
  3060 if { (ac_try="$ac_compile"
  3061 case "(($ac_try" in
  3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063   *) ac_try_echo=$ac_try;;
  3064 esac
  3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3066   (eval "$ac_compile") 2>conftest.er1
  3067   ac_status=$?
  3068   grep -v '^ *+' conftest.er1 >conftest.err
  3069   rm -f conftest.er1
  3070   cat conftest.err >&5
  3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3072   (exit $ac_status); } && {
  3073 	 test -z "$ac_c_werror_flag" ||
  3074 	 test ! -s conftest.err
  3075        } && test -s conftest.$ac_objext; then
  3076   ac_cv_prog_cc_g=yes
  3077 else
  3078   echo "$as_me: failed program was:" >&5
  3079 sed 's/^/| /' conftest.$ac_ext >&5
  3081 	CFLAGS=""
  3082       cat >conftest.$ac_ext <<_ACEOF
  3083 /* confdefs.h.  */
  3084 _ACEOF
  3085 cat confdefs.h >>conftest.$ac_ext
  3086 cat >>conftest.$ac_ext <<_ACEOF
  3087 /* end confdefs.h.  */
  3089 int
  3090 main ()
  3094   return 0;
  3096 _ACEOF
  3097 rm -f conftest.$ac_objext
  3098 if { (ac_try="$ac_compile"
  3099 case "(($ac_try" in
  3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3101   *) ac_try_echo=$ac_try;;
  3102 esac
  3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3104   (eval "$ac_compile") 2>conftest.er1
  3105   ac_status=$?
  3106   grep -v '^ *+' conftest.er1 >conftest.err
  3107   rm -f conftest.er1
  3108   cat conftest.err >&5
  3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3110   (exit $ac_status); } && {
  3111 	 test -z "$ac_c_werror_flag" ||
  3112 	 test ! -s conftest.err
  3113        } && test -s conftest.$ac_objext; then
  3115 else
  3116   echo "$as_me: failed program was:" >&5
  3117 sed 's/^/| /' conftest.$ac_ext >&5
  3119 	ac_c_werror_flag=$ac_save_c_werror_flag
  3120 	 CFLAGS="-g"
  3121 	 cat >conftest.$ac_ext <<_ACEOF
  3122 /* confdefs.h.  */
  3123 _ACEOF
  3124 cat confdefs.h >>conftest.$ac_ext
  3125 cat >>conftest.$ac_ext <<_ACEOF
  3126 /* end confdefs.h.  */
  3128 int
  3129 main ()
  3133   return 0;
  3135 _ACEOF
  3136 rm -f conftest.$ac_objext
  3137 if { (ac_try="$ac_compile"
  3138 case "(($ac_try" in
  3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3140   *) ac_try_echo=$ac_try;;
  3141 esac
  3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3143   (eval "$ac_compile") 2>conftest.er1
  3144   ac_status=$?
  3145   grep -v '^ *+' conftest.er1 >conftest.err
  3146   rm -f conftest.er1
  3147   cat conftest.err >&5
  3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149   (exit $ac_status); } && {
  3150 	 test -z "$ac_c_werror_flag" ||
  3151 	 test ! -s conftest.err
  3152        } && test -s conftest.$ac_objext; then
  3153   ac_cv_prog_cc_g=yes
  3154 else
  3155   echo "$as_me: failed program was:" >&5
  3156 sed 's/^/| /' conftest.$ac_ext >&5
  3159 fi
  3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162 fi
  3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3165 fi
  3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3168    ac_c_werror_flag=$ac_save_c_werror_flag
  3169 fi
  3170 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3172 if test "$ac_test_CFLAGS" = set; then
  3173   CFLAGS=$ac_save_CFLAGS
  3174 elif test $ac_cv_prog_cc_g = yes; then
  3175   if test "$GCC" = yes; then
  3176     CFLAGS="-g -O2"
  3177   else
  3178     CFLAGS="-g"
  3179   fi
  3180 else
  3181   if test "$GCC" = yes; then
  3182     CFLAGS="-O2"
  3183   else
  3184     CFLAGS=
  3185   fi
  3186 fi
  3187 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3188 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3189 if test "${ac_cv_prog_cc_c89+set}" = set; then
  3190   echo $ECHO_N "(cached) $ECHO_C" >&6
  3191 else
  3192   ac_cv_prog_cc_c89=no
  3193 ac_save_CC=$CC
  3194 cat >conftest.$ac_ext <<_ACEOF
  3195 /* confdefs.h.  */
  3196 _ACEOF
  3197 cat confdefs.h >>conftest.$ac_ext
  3198 cat >>conftest.$ac_ext <<_ACEOF
  3199 /* end confdefs.h.  */
  3200 #include <stdarg.h>
  3201 #include <stdio.h>
  3202 #include <sys/types.h>
  3203 #include <sys/stat.h>
  3204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3205 struct buf { int x; };
  3206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3207 static char *e (p, i)
  3208      char **p;
  3209      int i;
  3211   return p[i];
  3213 static char *f (char * (*g) (char **, int), char **p, ...)
  3215   char *s;
  3216   va_list v;
  3217   va_start (v,p);
  3218   s = g (p, va_arg (v,int));
  3219   va_end (v);
  3220   return s;
  3223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3224    function prototypes and stuff, but not '\xHH' hex character constants.
  3225    These don't provoke an error unfortunately, instead are silently treated
  3226    as 'x'.  The following induces an error, until -std is added to get
  3227    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3228    array size at least.  It's necessary to write '\x00'==0 to get something
  3229    that's true only with -std.  */
  3230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3232 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3233    inside strings and character constants.  */
  3234 #define FOO(x) 'x'
  3235 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3237 int test (int i, double x);
  3238 struct s1 {int (*f) (int a);};
  3239 struct s2 {int (*f) (double a);};
  3240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3241 int argc;
  3242 char **argv;
  3243 int
  3244 main ()
  3246 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3248   return 0;
  3250 _ACEOF
  3251 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3252 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3253 do
  3254   CC="$ac_save_CC $ac_arg"
  3255   rm -f conftest.$ac_objext
  3256 if { (ac_try="$ac_compile"
  3257 case "(($ac_try" in
  3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3259   *) ac_try_echo=$ac_try;;
  3260 esac
  3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3262   (eval "$ac_compile") 2>conftest.er1
  3263   ac_status=$?
  3264   grep -v '^ *+' conftest.er1 >conftest.err
  3265   rm -f conftest.er1
  3266   cat conftest.err >&5
  3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3268   (exit $ac_status); } && {
  3269 	 test -z "$ac_c_werror_flag" ||
  3270 	 test ! -s conftest.err
  3271        } && test -s conftest.$ac_objext; then
  3272   ac_cv_prog_cc_c89=$ac_arg
  3273 else
  3274   echo "$as_me: failed program was:" >&5
  3275 sed 's/^/| /' conftest.$ac_ext >&5
  3278 fi
  3280 rm -f core conftest.err conftest.$ac_objext
  3281   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3282 done
  3283 rm -f conftest.$ac_ext
  3284 CC=$ac_save_CC
  3286 fi
  3287 # AC_CACHE_VAL
  3288 case "x$ac_cv_prog_cc_c89" in
  3289   x)
  3290     { echo "$as_me:$LINENO: result: none needed" >&5
  3291 echo "${ECHO_T}none needed" >&6; } ;;
  3292   xno)
  3293     { echo "$as_me:$LINENO: result: unsupported" >&5
  3294 echo "${ECHO_T}unsupported" >&6; } ;;
  3295   *)
  3296     CC="$CC $ac_cv_prog_cc_c89"
  3297     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3298 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3299 esac
  3302 ac_ext=c
  3303 ac_cpp='$CPP $CPPFLAGS'
  3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3308 depcc="$CC"   am_compiler_list=
  3310 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3311 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3312 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3313   echo $ECHO_N "(cached) $ECHO_C" >&6
  3314 else
  3315   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3316   # We make a subdir and do the tests there.  Otherwise we can end up
  3317   # making bogus files that we don't know about and never remove.  For
  3318   # instance it was reported that on HP-UX the gcc test will end up
  3319   # making a dummy file named `D' -- because `-MD' means `put the output
  3320   # in D'.
  3321   mkdir conftest.dir
  3322   # Copy depcomp to subdir because otherwise we won't find it if we're
  3323   # using a relative directory.
  3324   cp "$am_depcomp" conftest.dir
  3325   cd conftest.dir
  3326   # We will build objects and dependencies in a subdirectory because
  3327   # it helps to detect inapplicable dependency modes.  For instance
  3328   # both Tru64's cc and ICC support -MD to output dependencies as a
  3329   # side effect of compilation, but ICC will put the dependencies in
  3330   # the current directory while Tru64 will put them in the object
  3331   # directory.
  3332   mkdir sub
  3334   am_cv_CC_dependencies_compiler_type=none
  3335   if test "$am_compiler_list" = ""; then
  3336      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3337   fi
  3338   for depmode in $am_compiler_list; do
  3339     # Setup a source with many dependencies, because some compilers
  3340     # like to wrap large dependency lists on column 80 (with \), and
  3341     # we should not choose a depcomp mode which is confused by this.
  3343     # We need to recreate these files for each test, as the compiler may
  3344     # overwrite some of them when testing with obscure command lines.
  3345     # This happens at least with the AIX C compiler.
  3346     : > sub/conftest.c
  3347     for i in 1 2 3 4 5 6; do
  3348       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3349       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3350       # Solaris 8's {/usr,}/bin/sh.
  3351       touch sub/conftst$i.h
  3352     done
  3353     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3355     case $depmode in
  3356     nosideeffect)
  3357       # after this tag, mechanisms are not by side-effect, so they'll
  3358       # only be used when explicitly requested
  3359       if test "x$enable_dependency_tracking" = xyes; then
  3360 	continue
  3361       else
  3362 	break
  3363       fi
  3364       ;;
  3365     none) break ;;
  3366     esac
  3367     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3368     # mode.  It turns out that the SunPro C++ compiler does not properly
  3369     # handle `-M -o', and we need to detect this.
  3370     if depmode=$depmode \
  3371        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3372        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3373        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3374          >/dev/null 2>conftest.err &&
  3375        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3376        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3377        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3378       # icc doesn't choke on unknown options, it will just issue warnings
  3379       # or remarks (even with -Werror).  So we grep stderr for any message
  3380       # that says an option was ignored or not supported.
  3381       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3382       #   icc: Command line warning: ignoring option '-M'; no argument required
  3383       # The diagnosis changed in icc 8.0:
  3384       #   icc: Command line remark: option '-MP' not supported
  3385       if (grep 'ignoring option' conftest.err ||
  3386           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3387         am_cv_CC_dependencies_compiler_type=$depmode
  3388         break
  3389       fi
  3390     fi
  3391   done
  3393   cd ..
  3394   rm -rf conftest.dir
  3395 else
  3396   am_cv_CC_dependencies_compiler_type=none
  3397 fi
  3399 fi
  3400 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3401 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3402 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3406 if
  3407   test "x$enable_dependency_tracking" != xno \
  3408   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3409   am__fastdepCC_TRUE=
  3410   am__fastdepCC_FALSE='#'
  3411 else
  3412   am__fastdepCC_TRUE='#'
  3413   am__fastdepCC_FALSE=
  3414 fi
  3419         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  3420 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  3421 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  3422   echo $ECHO_N "(cached) $ECHO_C" >&6
  3423 else
  3424   ac_check_lib_save_LIBS=$LIBS
  3425 LIBS="-lcposix  $LIBS"
  3426 cat >conftest.$ac_ext <<_ACEOF
  3427 /* confdefs.h.  */
  3428 _ACEOF
  3429 cat confdefs.h >>conftest.$ac_ext
  3430 cat >>conftest.$ac_ext <<_ACEOF
  3431 /* end confdefs.h.  */
  3433 /* Override any GCC internal prototype to avoid an error.
  3434    Use char because int might match the return type of a GCC
  3435    builtin and then its argument prototype would still apply.  */
  3436 #ifdef __cplusplus
  3437 extern "C"
  3438 #endif
  3439 char strerror ();
  3440 int
  3441 main ()
  3443 return strerror ();
  3445   return 0;
  3447 _ACEOF
  3448 rm -f conftest.$ac_objext conftest$ac_exeext
  3449 if { (ac_try="$ac_link"
  3450 case "(($ac_try" in
  3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3452   *) ac_try_echo=$ac_try;;
  3453 esac
  3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3455   (eval "$ac_link") 2>conftest.er1
  3456   ac_status=$?
  3457   grep -v '^ *+' conftest.er1 >conftest.err
  3458   rm -f conftest.er1
  3459   cat conftest.err >&5
  3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3461   (exit $ac_status); } && {
  3462 	 test -z "$ac_c_werror_flag" ||
  3463 	 test ! -s conftest.err
  3464        } && test -s conftest$ac_exeext &&
  3465        $as_test_x conftest$ac_exeext; then
  3466   ac_cv_lib_cposix_strerror=yes
  3467 else
  3468   echo "$as_me: failed program was:" >&5
  3469 sed 's/^/| /' conftest.$ac_ext >&5
  3471 	ac_cv_lib_cposix_strerror=no
  3472 fi
  3474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3475       conftest$ac_exeext conftest.$ac_ext
  3476 LIBS=$ac_check_lib_save_LIBS
  3477 fi
  3478 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3479 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  3480 if test $ac_cv_lib_cposix_strerror = yes; then
  3481   LIBS="$LIBS -lcposix"
  3482 fi
  3486 ac_ext=c
  3487 ac_cpp='$CPP $CPPFLAGS'
  3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491 if test -n "$ac_tool_prefix"; then
  3492   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3496 if test "${ac_cv_prog_CC+set}" = set; then
  3497   echo $ECHO_N "(cached) $ECHO_C" >&6
  3498 else
  3499   if test -n "$CC"; then
  3500   ac_cv_prog_CC="$CC" # Let the user override the test.
  3501 else
  3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503 for as_dir in $PATH
  3504 do
  3505   IFS=$as_save_IFS
  3506   test -z "$as_dir" && as_dir=.
  3507   for ac_exec_ext in '' $ac_executable_extensions; do
  3508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3509     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3511     break 2
  3512   fi
  3513 done
  3514 done
  3515 IFS=$as_save_IFS
  3517 fi
  3518 fi
  3519 CC=$ac_cv_prog_CC
  3520 if test -n "$CC"; then
  3521   { echo "$as_me:$LINENO: result: $CC" >&5
  3522 echo "${ECHO_T}$CC" >&6; }
  3523 else
  3524   { echo "$as_me:$LINENO: result: no" >&5
  3525 echo "${ECHO_T}no" >&6; }
  3526 fi
  3529 fi
  3530 if test -z "$ac_cv_prog_CC"; then
  3531   ac_ct_CC=$CC
  3532   # Extract the first word of "gcc", so it can be a program name with args.
  3533 set dummy gcc; 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_ac_ct_CC+set}" = set; then
  3537   echo $ECHO_N "(cached) $ECHO_C" >&6
  3538 else
  3539   if test -n "$ac_ct_CC"; then
  3540   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
  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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3560 if test -n "$ac_ct_CC"; then
  3561   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3562 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3563 else
  3564   { echo "$as_me:$LINENO: result: no" >&5
  3565 echo "${ECHO_T}no" >&6; }
  3566 fi
  3568   if test "x$ac_ct_CC" = x; then
  3569     CC=""
  3570   else
  3571     case $cross_compiling:$ac_tool_warned in
  3572 yes:)
  3573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3574 whose name does not start with the host triplet.  If you think this
  3575 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3577 whose name does not start with the host triplet.  If you think this
  3578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3579 ac_tool_warned=yes ;;
  3580 esac
  3581     CC=$ac_ct_CC
  3582   fi
  3583 else
  3584   CC="$ac_cv_prog_CC"
  3585 fi
  3587 if test -z "$CC"; then
  3588           if test -n "$ac_tool_prefix"; then
  3589     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3590 set dummy ${ac_tool_prefix}cc; ac_word=$2
  3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3593 if test "${ac_cv_prog_CC+set}" = set; then
  3594   echo $ECHO_N "(cached) $ECHO_C" >&6
  3595 else
  3596   if test -n "$CC"; then
  3597   ac_cv_prog_CC="$CC" # Let the user override the test.
  3598 else
  3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600 for as_dir in $PATH
  3601 do
  3602   IFS=$as_save_IFS
  3603   test -z "$as_dir" && as_dir=.
  3604   for ac_exec_ext in '' $ac_executable_extensions; do
  3605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3606     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3608     break 2
  3609   fi
  3610 done
  3611 done
  3612 IFS=$as_save_IFS
  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 fi
  3628 if test -z "$CC"; then
  3629   # Extract the first word of "cc", so it can be a program name with args.
  3630 set dummy cc; ac_word=$2
  3631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3633 if test "${ac_cv_prog_CC+set}" = set; then
  3634   echo $ECHO_N "(cached) $ECHO_C" >&6
  3635 else
  3636   if test -n "$CC"; then
  3637   ac_cv_prog_CC="$CC" # Let the user override the test.
  3638 else
  3639   ac_prog_rejected=no
  3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641 for as_dir in $PATH
  3642 do
  3643   IFS=$as_save_IFS
  3644   test -z "$as_dir" && as_dir=.
  3645   for ac_exec_ext in '' $ac_executable_extensions; do
  3646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3647     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3648        ac_prog_rejected=yes
  3649        continue
  3650      fi
  3651     ac_cv_prog_CC="cc"
  3652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3653     break 2
  3654   fi
  3655 done
  3656 done
  3657 IFS=$as_save_IFS
  3659 if test $ac_prog_rejected = yes; then
  3660   # We found a bogon in the path, so make sure we never use it.
  3661   set dummy $ac_cv_prog_CC
  3662   shift
  3663   if test $# != 0; then
  3664     # We chose a different compiler from the bogus one.
  3665     # However, it has the same basename, so the bogon will be chosen
  3666     # first if we set CC to just the basename; use the full file name.
  3667     shift
  3668     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3669   fi
  3670 fi
  3671 fi
  3672 fi
  3673 CC=$ac_cv_prog_CC
  3674 if test -n "$CC"; then
  3675   { echo "$as_me:$LINENO: result: $CC" >&5
  3676 echo "${ECHO_T}$CC" >&6; }
  3677 else
  3678   { echo "$as_me:$LINENO: result: no" >&5
  3679 echo "${ECHO_T}no" >&6; }
  3680 fi
  3683 fi
  3684 if test -z "$CC"; then
  3685   if test -n "$ac_tool_prefix"; then
  3686   for ac_prog in cl.exe
  3687   do
  3688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3692 if test "${ac_cv_prog_CC+set}" = set; then
  3693   echo $ECHO_N "(cached) $ECHO_C" >&6
  3694 else
  3695   if test -n "$CC"; then
  3696   ac_cv_prog_CC="$CC" # Let the user override the test.
  3697 else
  3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699 for as_dir in $PATH
  3700 do
  3701   IFS=$as_save_IFS
  3702   test -z "$as_dir" && as_dir=.
  3703   for ac_exec_ext in '' $ac_executable_extensions; do
  3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707     break 2
  3708   fi
  3709 done
  3710 done
  3711 IFS=$as_save_IFS
  3713 fi
  3714 fi
  3715 CC=$ac_cv_prog_CC
  3716 if test -n "$CC"; then
  3717   { echo "$as_me:$LINENO: result: $CC" >&5
  3718 echo "${ECHO_T}$CC" >&6; }
  3719 else
  3720   { echo "$as_me:$LINENO: result: no" >&5
  3721 echo "${ECHO_T}no" >&6; }
  3722 fi
  3725     test -n "$CC" && break
  3726   done
  3727 fi
  3728 if test -z "$CC"; then
  3729   ac_ct_CC=$CC
  3730   for ac_prog in cl.exe
  3731 do
  3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3733 set dummy $ac_prog; ac_word=$2
  3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3737   echo $ECHO_N "(cached) $ECHO_C" >&6
  3738 else
  3739   if test -n "$ac_ct_CC"; then
  3740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3741 else
  3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3743 for as_dir in $PATH
  3744 do
  3745   IFS=$as_save_IFS
  3746   test -z "$as_dir" && as_dir=.
  3747   for ac_exec_ext in '' $ac_executable_extensions; do
  3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3749     ac_cv_prog_ac_ct_CC="$ac_prog"
  3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3751     break 2
  3752   fi
  3753 done
  3754 done
  3755 IFS=$as_save_IFS
  3757 fi
  3758 fi
  3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3760 if test -n "$ac_ct_CC"; then
  3761   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3762 echo "${ECHO_T}$ac_ct_CC" >&6; }
  3763 else
  3764   { echo "$as_me:$LINENO: result: no" >&5
  3765 echo "${ECHO_T}no" >&6; }
  3766 fi
  3769   test -n "$ac_ct_CC" && break
  3770 done
  3772   if test "x$ac_ct_CC" = x; then
  3773     CC=""
  3774   else
  3775     case $cross_compiling:$ac_tool_warned in
  3776 yes:)
  3777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3778 whose name does not start with the host triplet.  If you think this
  3779 configuration is useful to you, please write to autoconf@gnu.org." >&5
  3780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3781 whose name does not start with the host triplet.  If you think this
  3782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3783 ac_tool_warned=yes ;;
  3784 esac
  3785     CC=$ac_ct_CC
  3786   fi
  3787 fi
  3789 fi
  3792 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3793 See \`config.log' for more details." >&5
  3794 echo "$as_me: error: no acceptable C compiler found in \$PATH
  3795 See \`config.log' for more details." >&2;}
  3796    { (exit 1); exit 1; }; }
  3798 # Provide some information about the compiler.
  3799 echo "$as_me:$LINENO: checking for C compiler version" >&5
  3800 ac_compiler=`set X $ac_compile; echo $2`
  3801 { (ac_try="$ac_compiler --version >&5"
  3802 case "(($ac_try" in
  3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804   *) ac_try_echo=$ac_try;;
  3805 esac
  3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3807   (eval "$ac_compiler --version >&5") 2>&5
  3808   ac_status=$?
  3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810   (exit $ac_status); }
  3811 { (ac_try="$ac_compiler -v >&5"
  3812 case "(($ac_try" in
  3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3814   *) ac_try_echo=$ac_try;;
  3815 esac
  3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3817   (eval "$ac_compiler -v >&5") 2>&5
  3818   ac_status=$?
  3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3820   (exit $ac_status); }
  3821 { (ac_try="$ac_compiler -V >&5"
  3822 case "(($ac_try" in
  3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3824   *) ac_try_echo=$ac_try;;
  3825 esac
  3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3827   (eval "$ac_compiler -V >&5") 2>&5
  3828   ac_status=$?
  3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830   (exit $ac_status); }
  3832 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3833 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3834 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3835   echo $ECHO_N "(cached) $ECHO_C" >&6
  3836 else
  3837   cat >conftest.$ac_ext <<_ACEOF
  3838 /* confdefs.h.  */
  3839 _ACEOF
  3840 cat confdefs.h >>conftest.$ac_ext
  3841 cat >>conftest.$ac_ext <<_ACEOF
  3842 /* end confdefs.h.  */
  3844 int
  3845 main ()
  3847 #ifndef __GNUC__
  3848        choke me
  3849 #endif
  3852   return 0;
  3854 _ACEOF
  3855 rm -f conftest.$ac_objext
  3856 if { (ac_try="$ac_compile"
  3857 case "(($ac_try" in
  3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3859   *) ac_try_echo=$ac_try;;
  3860 esac
  3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3862   (eval "$ac_compile") 2>conftest.er1
  3863   ac_status=$?
  3864   grep -v '^ *+' conftest.er1 >conftest.err
  3865   rm -f conftest.er1
  3866   cat conftest.err >&5
  3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868   (exit $ac_status); } && {
  3869 	 test -z "$ac_c_werror_flag" ||
  3870 	 test ! -s conftest.err
  3871        } && test -s conftest.$ac_objext; then
  3872   ac_compiler_gnu=yes
  3873 else
  3874   echo "$as_me: failed program was:" >&5
  3875 sed 's/^/| /' conftest.$ac_ext >&5
  3877 	ac_compiler_gnu=no
  3878 fi
  3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3883 fi
  3884 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3886 GCC=`test $ac_compiler_gnu = yes && echo yes`
  3887 ac_test_CFLAGS=${CFLAGS+set}
  3888 ac_save_CFLAGS=$CFLAGS
  3889 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3891 if test "${ac_cv_prog_cc_g+set}" = set; then
  3892   echo $ECHO_N "(cached) $ECHO_C" >&6
  3893 else
  3894   ac_save_c_werror_flag=$ac_c_werror_flag
  3895    ac_c_werror_flag=yes
  3896    ac_cv_prog_cc_g=no
  3897    CFLAGS="-g"
  3898    cat >conftest.$ac_ext <<_ACEOF
  3899 /* confdefs.h.  */
  3900 _ACEOF
  3901 cat confdefs.h >>conftest.$ac_ext
  3902 cat >>conftest.$ac_ext <<_ACEOF
  3903 /* end confdefs.h.  */
  3905 int
  3906 main ()
  3910   return 0;
  3912 _ACEOF
  3913 rm -f conftest.$ac_objext
  3914 if { (ac_try="$ac_compile"
  3915 case "(($ac_try" in
  3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3917   *) ac_try_echo=$ac_try;;
  3918 esac
  3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3920   (eval "$ac_compile") 2>conftest.er1
  3921   ac_status=$?
  3922   grep -v '^ *+' conftest.er1 >conftest.err
  3923   rm -f conftest.er1
  3924   cat conftest.err >&5
  3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3926   (exit $ac_status); } && {
  3927 	 test -z "$ac_c_werror_flag" ||
  3928 	 test ! -s conftest.err
  3929        } && test -s conftest.$ac_objext; then
  3930   ac_cv_prog_cc_g=yes
  3931 else
  3932   echo "$as_me: failed program was:" >&5
  3933 sed 's/^/| /' conftest.$ac_ext >&5
  3935 	CFLAGS=""
  3936       cat >conftest.$ac_ext <<_ACEOF
  3937 /* confdefs.h.  */
  3938 _ACEOF
  3939 cat confdefs.h >>conftest.$ac_ext
  3940 cat >>conftest.$ac_ext <<_ACEOF
  3941 /* end confdefs.h.  */
  3943 int
  3944 main ()
  3948   return 0;
  3950 _ACEOF
  3951 rm -f conftest.$ac_objext
  3952 if { (ac_try="$ac_compile"
  3953 case "(($ac_try" in
  3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3955   *) ac_try_echo=$ac_try;;
  3956 esac
  3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3958   (eval "$ac_compile") 2>conftest.er1
  3959   ac_status=$?
  3960   grep -v '^ *+' conftest.er1 >conftest.err
  3961   rm -f conftest.er1
  3962   cat conftest.err >&5
  3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964   (exit $ac_status); } && {
  3965 	 test -z "$ac_c_werror_flag" ||
  3966 	 test ! -s conftest.err
  3967        } && test -s conftest.$ac_objext; then
  3969 else
  3970   echo "$as_me: failed program was:" >&5
  3971 sed 's/^/| /' conftest.$ac_ext >&5
  3973 	ac_c_werror_flag=$ac_save_c_werror_flag
  3974 	 CFLAGS="-g"
  3975 	 cat >conftest.$ac_ext <<_ACEOF
  3976 /* confdefs.h.  */
  3977 _ACEOF
  3978 cat confdefs.h >>conftest.$ac_ext
  3979 cat >>conftest.$ac_ext <<_ACEOF
  3980 /* end confdefs.h.  */
  3982 int
  3983 main ()
  3987   return 0;
  3989 _ACEOF
  3990 rm -f conftest.$ac_objext
  3991 if { (ac_try="$ac_compile"
  3992 case "(($ac_try" in
  3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3994   *) ac_try_echo=$ac_try;;
  3995 esac
  3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3997   (eval "$ac_compile") 2>conftest.er1
  3998   ac_status=$?
  3999   grep -v '^ *+' conftest.er1 >conftest.err
  4000   rm -f conftest.er1
  4001   cat conftest.err >&5
  4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4003   (exit $ac_status); } && {
  4004 	 test -z "$ac_c_werror_flag" ||
  4005 	 test ! -s conftest.err
  4006        } && test -s conftest.$ac_objext; then
  4007   ac_cv_prog_cc_g=yes
  4008 else
  4009   echo "$as_me: failed program was:" >&5
  4010 sed 's/^/| /' conftest.$ac_ext >&5
  4013 fi
  4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4016 fi
  4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4019 fi
  4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022    ac_c_werror_flag=$ac_save_c_werror_flag
  4023 fi
  4024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4026 if test "$ac_test_CFLAGS" = set; then
  4027   CFLAGS=$ac_save_CFLAGS
  4028 elif test $ac_cv_prog_cc_g = yes; then
  4029   if test "$GCC" = yes; then
  4030     CFLAGS="-g -O2"
  4031   else
  4032     CFLAGS="-g"
  4033   fi
  4034 else
  4035   if test "$GCC" = yes; then
  4036     CFLAGS="-O2"
  4037   else
  4038     CFLAGS=
  4039   fi
  4040 fi
  4041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4044   echo $ECHO_N "(cached) $ECHO_C" >&6
  4045 else
  4046   ac_cv_prog_cc_c89=no
  4047 ac_save_CC=$CC
  4048 cat >conftest.$ac_ext <<_ACEOF
  4049 /* confdefs.h.  */
  4050 _ACEOF
  4051 cat confdefs.h >>conftest.$ac_ext
  4052 cat >>conftest.$ac_ext <<_ACEOF
  4053 /* end confdefs.h.  */
  4054 #include <stdarg.h>
  4055 #include <stdio.h>
  4056 #include <sys/types.h>
  4057 #include <sys/stat.h>
  4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4059 struct buf { int x; };
  4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4061 static char *e (p, i)
  4062      char **p;
  4063      int i;
  4065   return p[i];
  4067 static char *f (char * (*g) (char **, int), char **p, ...)
  4069   char *s;
  4070   va_list v;
  4071   va_start (v,p);
  4072   s = g (p, va_arg (v,int));
  4073   va_end (v);
  4074   return s;
  4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4078    function prototypes and stuff, but not '\xHH' hex character constants.
  4079    These don't provoke an error unfortunately, instead are silently treated
  4080    as 'x'.  The following induces an error, until -std is added to get
  4081    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4082    array size at least.  It's necessary to write '\x00'==0 to get something
  4083    that's true only with -std.  */
  4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4087    inside strings and character constants.  */
  4088 #define FOO(x) 'x'
  4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4091 int test (int i, double x);
  4092 struct s1 {int (*f) (int a);};
  4093 struct s2 {int (*f) (double a);};
  4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4095 int argc;
  4096 char **argv;
  4097 int
  4098 main ()
  4100 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4102   return 0;
  4104 _ACEOF
  4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4106 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4107 do
  4108   CC="$ac_save_CC $ac_arg"
  4109   rm -f conftest.$ac_objext
  4110 if { (ac_try="$ac_compile"
  4111 case "(($ac_try" in
  4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4113   *) ac_try_echo=$ac_try;;
  4114 esac
  4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4116   (eval "$ac_compile") 2>conftest.er1
  4117   ac_status=$?
  4118   grep -v '^ *+' conftest.er1 >conftest.err
  4119   rm -f conftest.er1
  4120   cat conftest.err >&5
  4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122   (exit $ac_status); } && {
  4123 	 test -z "$ac_c_werror_flag" ||
  4124 	 test ! -s conftest.err
  4125        } && test -s conftest.$ac_objext; then
  4126   ac_cv_prog_cc_c89=$ac_arg
  4127 else
  4128   echo "$as_me: failed program was:" >&5
  4129 sed 's/^/| /' conftest.$ac_ext >&5
  4132 fi
  4134 rm -f core conftest.err conftest.$ac_objext
  4135   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4136 done
  4137 rm -f conftest.$ac_ext
  4138 CC=$ac_save_CC
  4140 fi
  4141 # AC_CACHE_VAL
  4142 case "x$ac_cv_prog_cc_c89" in
  4143   x)
  4144     { echo "$as_me:$LINENO: result: none needed" >&5
  4145 echo "${ECHO_T}none needed" >&6; } ;;
  4146   xno)
  4147     { echo "$as_me:$LINENO: result: unsupported" >&5
  4148 echo "${ECHO_T}unsupported" >&6; } ;;
  4149   *)
  4150     CC="$CC $ac_cv_prog_cc_c89"
  4151     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4152 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4153 esac
  4156 ac_ext=c
  4157 ac_cpp='$CPP $CPPFLAGS'
  4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4162 depcc="$CC"   am_compiler_list=
  4164 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4165 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4166 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4167   echo $ECHO_N "(cached) $ECHO_C" >&6
  4168 else
  4169   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4170   # We make a subdir and do the tests there.  Otherwise we can end up
  4171   # making bogus files that we don't know about and never remove.  For
  4172   # instance it was reported that on HP-UX the gcc test will end up
  4173   # making a dummy file named `D' -- because `-MD' means `put the output
  4174   # in D'.
  4175   mkdir conftest.dir
  4176   # Copy depcomp to subdir because otherwise we won't find it if we're
  4177   # using a relative directory.
  4178   cp "$am_depcomp" conftest.dir
  4179   cd conftest.dir
  4180   # We will build objects and dependencies in a subdirectory because
  4181   # it helps to detect inapplicable dependency modes.  For instance
  4182   # both Tru64's cc and ICC support -MD to output dependencies as a
  4183   # side effect of compilation, but ICC will put the dependencies in
  4184   # the current directory while Tru64 will put them in the object
  4185   # directory.
  4186   mkdir sub
  4188   am_cv_CC_dependencies_compiler_type=none
  4189   if test "$am_compiler_list" = ""; then
  4190      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4191   fi
  4192   for depmode in $am_compiler_list; do
  4193     # Setup a source with many dependencies, because some compilers
  4194     # like to wrap large dependency lists on column 80 (with \), and
  4195     # we should not choose a depcomp mode which is confused by this.
  4197     # We need to recreate these files for each test, as the compiler may
  4198     # overwrite some of them when testing with obscure command lines.
  4199     # This happens at least with the AIX C compiler.
  4200     : > sub/conftest.c
  4201     for i in 1 2 3 4 5 6; do
  4202       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4203       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4204       # Solaris 8's {/usr,}/bin/sh.
  4205       touch sub/conftst$i.h
  4206     done
  4207     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4209     case $depmode in
  4210     nosideeffect)
  4211       # after this tag, mechanisms are not by side-effect, so they'll
  4212       # only be used when explicitly requested
  4213       if test "x$enable_dependency_tracking" = xyes; then
  4214 	continue
  4215       else
  4216 	break
  4217       fi
  4218       ;;
  4219     none) break ;;
  4220     esac
  4221     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4222     # mode.  It turns out that the SunPro C++ compiler does not properly
  4223     # handle `-M -o', and we need to detect this.
  4224     if depmode=$depmode \
  4225        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4226        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4227        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4228          >/dev/null 2>conftest.err &&
  4229        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4230        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4231        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4232       # icc doesn't choke on unknown options, it will just issue warnings
  4233       # or remarks (even with -Werror).  So we grep stderr for any message
  4234       # that says an option was ignored or not supported.
  4235       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4236       #   icc: Command line warning: ignoring option '-M'; no argument required
  4237       # The diagnosis changed in icc 8.0:
  4238       #   icc: Command line remark: option '-MP' not supported
  4239       if (grep 'ignoring option' conftest.err ||
  4240           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4241         am_cv_CC_dependencies_compiler_type=$depmode
  4242         break
  4243       fi
  4244     fi
  4245   done
  4247   cd ..
  4248   rm -rf conftest.dir
  4249 else
  4250   am_cv_CC_dependencies_compiler_type=none
  4251 fi
  4253 fi
  4254 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4255 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  4256 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4260 if
  4261   test "x$enable_dependency_tracking" != xno \
  4262   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4263   am__fastdepCC_TRUE=
  4264   am__fastdepCC_FALSE='#'
  4265 else
  4266   am__fastdepCC_TRUE='#'
  4267   am__fastdepCC_FALSE=
  4268 fi
  4271 ac_ext=c
  4272 ac_cpp='$CPP $CPPFLAGS'
  4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4276 if test -n "$ac_tool_prefix"; then
  4277   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4281 if test "${ac_cv_prog_CC+set}" = set; then
  4282   echo $ECHO_N "(cached) $ECHO_C" >&6
  4283 else
  4284   if test -n "$CC"; then
  4285   ac_cv_prog_CC="$CC" # Let the user override the test.
  4286 else
  4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4288 for as_dir in $PATH
  4289 do
  4290   IFS=$as_save_IFS
  4291   test -z "$as_dir" && as_dir=.
  4292   for ac_exec_ext in '' $ac_executable_extensions; do
  4293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4294     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4296     break 2
  4297   fi
  4298 done
  4299 done
  4300 IFS=$as_save_IFS
  4302 fi
  4303 fi
  4304 CC=$ac_cv_prog_CC
  4305 if test -n "$CC"; then
  4306   { echo "$as_me:$LINENO: result: $CC" >&5
  4307 echo "${ECHO_T}$CC" >&6; }
  4308 else
  4309   { echo "$as_me:$LINENO: result: no" >&5
  4310 echo "${ECHO_T}no" >&6; }
  4311 fi
  4314 fi
  4315 if test -z "$ac_cv_prog_CC"; then
  4316   ac_ct_CC=$CC
  4317   # Extract the first word of "gcc", so it can be a program name with args.
  4318 set dummy gcc; ac_word=$2
  4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4322   echo $ECHO_N "(cached) $ECHO_C" >&6
  4323 else
  4324   if test -n "$ac_ct_CC"; then
  4325   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4326 else
  4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328 for as_dir in $PATH
  4329 do
  4330   IFS=$as_save_IFS
  4331   test -z "$as_dir" && as_dir=.
  4332   for ac_exec_ext in '' $ac_executable_extensions; do
  4333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4334     ac_cv_prog_ac_ct_CC="gcc"
  4335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336     break 2
  4337   fi
  4338 done
  4339 done
  4340 IFS=$as_save_IFS
  4342 fi
  4343 fi
  4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4345 if test -n "$ac_ct_CC"; then
  4346   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4347 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4348 else
  4349   { echo "$as_me:$LINENO: result: no" >&5
  4350 echo "${ECHO_T}no" >&6; }
  4351 fi
  4353   if test "x$ac_ct_CC" = x; then
  4354     CC=""
  4355   else
  4356     case $cross_compiling:$ac_tool_warned in
  4357 yes:)
  4358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4359 whose name does not start with the host triplet.  If you think this
  4360 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4362 whose name does not start with the host triplet.  If you think this
  4363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4364 ac_tool_warned=yes ;;
  4365 esac
  4366     CC=$ac_ct_CC
  4367   fi
  4368 else
  4369   CC="$ac_cv_prog_CC"
  4370 fi
  4372 if test -z "$CC"; then
  4373           if test -n "$ac_tool_prefix"; then
  4374     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4375 set dummy ${ac_tool_prefix}cc; ac_word=$2
  4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4378 if test "${ac_cv_prog_CC+set}" = set; then
  4379   echo $ECHO_N "(cached) $ECHO_C" >&6
  4380 else
  4381   if test -n "$CC"; then
  4382   ac_cv_prog_CC="$CC" # Let the user override the test.
  4383 else
  4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4385 for as_dir in $PATH
  4386 do
  4387   IFS=$as_save_IFS
  4388   test -z "$as_dir" && as_dir=.
  4389   for ac_exec_ext in '' $ac_executable_extensions; do
  4390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4391     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4393     break 2
  4394   fi
  4395 done
  4396 done
  4397 IFS=$as_save_IFS
  4399 fi
  4400 fi
  4401 CC=$ac_cv_prog_CC
  4402 if test -n "$CC"; then
  4403   { echo "$as_me:$LINENO: result: $CC" >&5
  4404 echo "${ECHO_T}$CC" >&6; }
  4405 else
  4406   { echo "$as_me:$LINENO: result: no" >&5
  4407 echo "${ECHO_T}no" >&6; }
  4408 fi
  4411   fi
  4412 fi
  4413 if test -z "$CC"; then
  4414   # Extract the first word of "cc", so it can be a program name with args.
  4415 set dummy cc; ac_word=$2
  4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4418 if test "${ac_cv_prog_CC+set}" = set; then
  4419   echo $ECHO_N "(cached) $ECHO_C" >&6
  4420 else
  4421   if test -n "$CC"; then
  4422   ac_cv_prog_CC="$CC" # Let the user override the test.
  4423 else
  4424   ac_prog_rejected=no
  4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4426 for as_dir in $PATH
  4427 do
  4428   IFS=$as_save_IFS
  4429   test -z "$as_dir" && as_dir=.
  4430   for ac_exec_ext in '' $ac_executable_extensions; do
  4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4432     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4433        ac_prog_rejected=yes
  4434        continue
  4435      fi
  4436     ac_cv_prog_CC="cc"
  4437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438     break 2
  4439   fi
  4440 done
  4441 done
  4442 IFS=$as_save_IFS
  4444 if test $ac_prog_rejected = yes; then
  4445   # We found a bogon in the path, so make sure we never use it.
  4446   set dummy $ac_cv_prog_CC
  4447   shift
  4448   if test $# != 0; then
  4449     # We chose a different compiler from the bogus one.
  4450     # However, it has the same basename, so the bogon will be chosen
  4451     # first if we set CC to just the basename; use the full file name.
  4452     shift
  4453     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4454   fi
  4455 fi
  4456 fi
  4457 fi
  4458 CC=$ac_cv_prog_CC
  4459 if test -n "$CC"; then
  4460   { echo "$as_me:$LINENO: result: $CC" >&5
  4461 echo "${ECHO_T}$CC" >&6; }
  4462 else
  4463   { echo "$as_me:$LINENO: result: no" >&5
  4464 echo "${ECHO_T}no" >&6; }
  4465 fi
  4468 fi
  4469 if test -z "$CC"; then
  4470   if test -n "$ac_tool_prefix"; then
  4471   for ac_prog in cl.exe
  4472   do
  4473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4477 if test "${ac_cv_prog_CC+set}" = set; then
  4478   echo $ECHO_N "(cached) $ECHO_C" >&6
  4479 else
  4480   if test -n "$CC"; then
  4481   ac_cv_prog_CC="$CC" # Let the user override the test.
  4482 else
  4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4484 for as_dir in $PATH
  4485 do
  4486   IFS=$as_save_IFS
  4487   test -z "$as_dir" && as_dir=.
  4488   for ac_exec_ext in '' $ac_executable_extensions; do
  4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4490     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4492     break 2
  4493   fi
  4494 done
  4495 done
  4496 IFS=$as_save_IFS
  4498 fi
  4499 fi
  4500 CC=$ac_cv_prog_CC
  4501 if test -n "$CC"; then
  4502   { echo "$as_me:$LINENO: result: $CC" >&5
  4503 echo "${ECHO_T}$CC" >&6; }
  4504 else
  4505   { echo "$as_me:$LINENO: result: no" >&5
  4506 echo "${ECHO_T}no" >&6; }
  4507 fi
  4510     test -n "$CC" && break
  4511   done
  4512 fi
  4513 if test -z "$CC"; then
  4514   ac_ct_CC=$CC
  4515   for ac_prog in cl.exe
  4516 do
  4517   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4518 set dummy $ac_prog; ac_word=$2
  4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4522   echo $ECHO_N "(cached) $ECHO_C" >&6
  4523 else
  4524   if test -n "$ac_ct_CC"; then
  4525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4526 else
  4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4528 for as_dir in $PATH
  4529 do
  4530   IFS=$as_save_IFS
  4531   test -z "$as_dir" && as_dir=.
  4532   for ac_exec_ext in '' $ac_executable_extensions; do
  4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4534     ac_cv_prog_ac_ct_CC="$ac_prog"
  4535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4536     break 2
  4537   fi
  4538 done
  4539 done
  4540 IFS=$as_save_IFS
  4542 fi
  4543 fi
  4544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4545 if test -n "$ac_ct_CC"; then
  4546   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4547 echo "${ECHO_T}$ac_ct_CC" >&6; }
  4548 else
  4549   { echo "$as_me:$LINENO: result: no" >&5
  4550 echo "${ECHO_T}no" >&6; }
  4551 fi
  4554   test -n "$ac_ct_CC" && break
  4555 done
  4557   if test "x$ac_ct_CC" = x; then
  4558     CC=""
  4559   else
  4560     case $cross_compiling:$ac_tool_warned in
  4561 yes:)
  4562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4563 whose name does not start with the host triplet.  If you think this
  4564 configuration is useful to you, please write to autoconf@gnu.org." >&5
  4565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4566 whose name does not start with the host triplet.  If you think this
  4567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4568 ac_tool_warned=yes ;;
  4569 esac
  4570     CC=$ac_ct_CC
  4571   fi
  4572 fi
  4574 fi
  4577 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4578 See \`config.log' for more details." >&5
  4579 echo "$as_me: error: no acceptable C compiler found in \$PATH
  4580 See \`config.log' for more details." >&2;}
  4581    { (exit 1); exit 1; }; }
  4583 # Provide some information about the compiler.
  4584 echo "$as_me:$LINENO: checking for C compiler version" >&5
  4585 ac_compiler=`set X $ac_compile; echo $2`
  4586 { (ac_try="$ac_compiler --version >&5"
  4587 case "(($ac_try" in
  4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4589   *) ac_try_echo=$ac_try;;
  4590 esac
  4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4592   (eval "$ac_compiler --version >&5") 2>&5
  4593   ac_status=$?
  4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595   (exit $ac_status); }
  4596 { (ac_try="$ac_compiler -v >&5"
  4597 case "(($ac_try" in
  4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4599   *) ac_try_echo=$ac_try;;
  4600 esac
  4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4602   (eval "$ac_compiler -v >&5") 2>&5
  4603   ac_status=$?
  4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4605   (exit $ac_status); }
  4606 { (ac_try="$ac_compiler -V >&5"
  4607 case "(($ac_try" in
  4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4609   *) ac_try_echo=$ac_try;;
  4610 esac
  4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4612   (eval "$ac_compiler -V >&5") 2>&5
  4613   ac_status=$?
  4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4615   (exit $ac_status); }
  4617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  4619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4620   echo $ECHO_N "(cached) $ECHO_C" >&6
  4621 else
  4622   cat >conftest.$ac_ext <<_ACEOF
  4623 /* confdefs.h.  */
  4624 _ACEOF
  4625 cat confdefs.h >>conftest.$ac_ext
  4626 cat >>conftest.$ac_ext <<_ACEOF
  4627 /* end confdefs.h.  */
  4629 int
  4630 main ()
  4632 #ifndef __GNUC__
  4633        choke me
  4634 #endif
  4637   return 0;
  4639 _ACEOF
  4640 rm -f conftest.$ac_objext
  4641 if { (ac_try="$ac_compile"
  4642 case "(($ac_try" in
  4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4644   *) ac_try_echo=$ac_try;;
  4645 esac
  4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4647   (eval "$ac_compile") 2>conftest.er1
  4648   ac_status=$?
  4649   grep -v '^ *+' conftest.er1 >conftest.err
  4650   rm -f conftest.er1
  4651   cat conftest.err >&5
  4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4653   (exit $ac_status); } && {
  4654 	 test -z "$ac_c_werror_flag" ||
  4655 	 test ! -s conftest.err
  4656        } && test -s conftest.$ac_objext; then
  4657   ac_compiler_gnu=yes
  4658 else
  4659   echo "$as_me: failed program was:" >&5
  4660 sed 's/^/| /' conftest.$ac_ext >&5
  4662 	ac_compiler_gnu=no
  4663 fi
  4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4668 fi
  4669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  4671 GCC=`test $ac_compiler_gnu = yes && echo yes`
  4672 ac_test_CFLAGS=${CFLAGS+set}
  4673 ac_save_CFLAGS=$CFLAGS
  4674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  4676 if test "${ac_cv_prog_cc_g+set}" = set; then
  4677   echo $ECHO_N "(cached) $ECHO_C" >&6
  4678 else
  4679   ac_save_c_werror_flag=$ac_c_werror_flag
  4680    ac_c_werror_flag=yes
  4681    ac_cv_prog_cc_g=no
  4682    CFLAGS="-g"
  4683    cat >conftest.$ac_ext <<_ACEOF
  4684 /* confdefs.h.  */
  4685 _ACEOF
  4686 cat confdefs.h >>conftest.$ac_ext
  4687 cat >>conftest.$ac_ext <<_ACEOF
  4688 /* end confdefs.h.  */
  4690 int
  4691 main ()
  4695   return 0;
  4697 _ACEOF
  4698 rm -f conftest.$ac_objext
  4699 if { (ac_try="$ac_compile"
  4700 case "(($ac_try" in
  4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4702   *) ac_try_echo=$ac_try;;
  4703 esac
  4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4705   (eval "$ac_compile") 2>conftest.er1
  4706   ac_status=$?
  4707   grep -v '^ *+' conftest.er1 >conftest.err
  4708   rm -f conftest.er1
  4709   cat conftest.err >&5
  4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711   (exit $ac_status); } && {
  4712 	 test -z "$ac_c_werror_flag" ||
  4713 	 test ! -s conftest.err
  4714        } && test -s conftest.$ac_objext; then
  4715   ac_cv_prog_cc_g=yes
  4716 else
  4717   echo "$as_me: failed program was:" >&5
  4718 sed 's/^/| /' conftest.$ac_ext >&5
  4720 	CFLAGS=""
  4721       cat >conftest.$ac_ext <<_ACEOF
  4722 /* confdefs.h.  */
  4723 _ACEOF
  4724 cat confdefs.h >>conftest.$ac_ext
  4725 cat >>conftest.$ac_ext <<_ACEOF
  4726 /* end confdefs.h.  */
  4728 int
  4729 main ()
  4733   return 0;
  4735 _ACEOF
  4736 rm -f conftest.$ac_objext
  4737 if { (ac_try="$ac_compile"
  4738 case "(($ac_try" in
  4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4740   *) ac_try_echo=$ac_try;;
  4741 esac
  4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4743   (eval "$ac_compile") 2>conftest.er1
  4744   ac_status=$?
  4745   grep -v '^ *+' conftest.er1 >conftest.err
  4746   rm -f conftest.er1
  4747   cat conftest.err >&5
  4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4749   (exit $ac_status); } && {
  4750 	 test -z "$ac_c_werror_flag" ||
  4751 	 test ! -s conftest.err
  4752        } && test -s conftest.$ac_objext; then
  4754 else
  4755   echo "$as_me: failed program was:" >&5
  4756 sed 's/^/| /' conftest.$ac_ext >&5
  4758 	ac_c_werror_flag=$ac_save_c_werror_flag
  4759 	 CFLAGS="-g"
  4760 	 cat >conftest.$ac_ext <<_ACEOF
  4761 /* confdefs.h.  */
  4762 _ACEOF
  4763 cat confdefs.h >>conftest.$ac_ext
  4764 cat >>conftest.$ac_ext <<_ACEOF
  4765 /* end confdefs.h.  */
  4767 int
  4768 main ()
  4772   return 0;
  4774 _ACEOF
  4775 rm -f conftest.$ac_objext
  4776 if { (ac_try="$ac_compile"
  4777 case "(($ac_try" in
  4778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4779   *) ac_try_echo=$ac_try;;
  4780 esac
  4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4782   (eval "$ac_compile") 2>conftest.er1
  4783   ac_status=$?
  4784   grep -v '^ *+' conftest.er1 >conftest.err
  4785   rm -f conftest.er1
  4786   cat conftest.err >&5
  4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788   (exit $ac_status); } && {
  4789 	 test -z "$ac_c_werror_flag" ||
  4790 	 test ! -s conftest.err
  4791        } && test -s conftest.$ac_objext; then
  4792   ac_cv_prog_cc_g=yes
  4793 else
  4794   echo "$as_me: failed program was:" >&5
  4795 sed 's/^/| /' conftest.$ac_ext >&5
  4798 fi
  4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801 fi
  4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4804 fi
  4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4807    ac_c_werror_flag=$ac_save_c_werror_flag
  4808 fi
  4809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  4811 if test "$ac_test_CFLAGS" = set; then
  4812   CFLAGS=$ac_save_CFLAGS
  4813 elif test $ac_cv_prog_cc_g = yes; then
  4814   if test "$GCC" = yes; then
  4815     CFLAGS="-g -O2"
  4816   else
  4817     CFLAGS="-g"
  4818   fi
  4819 else
  4820   if test "$GCC" = yes; then
  4821     CFLAGS="-O2"
  4822   else
  4823     CFLAGS=
  4824   fi
  4825 fi
  4826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  4828 if test "${ac_cv_prog_cc_c89+set}" = set; then
  4829   echo $ECHO_N "(cached) $ECHO_C" >&6
  4830 else
  4831   ac_cv_prog_cc_c89=no
  4832 ac_save_CC=$CC
  4833 cat >conftest.$ac_ext <<_ACEOF
  4834 /* confdefs.h.  */
  4835 _ACEOF
  4836 cat confdefs.h >>conftest.$ac_ext
  4837 cat >>conftest.$ac_ext <<_ACEOF
  4838 /* end confdefs.h.  */
  4839 #include <stdarg.h>
  4840 #include <stdio.h>
  4841 #include <sys/types.h>
  4842 #include <sys/stat.h>
  4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4844 struct buf { int x; };
  4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4846 static char *e (p, i)
  4847      char **p;
  4848      int i;
  4850   return p[i];
  4852 static char *f (char * (*g) (char **, int), char **p, ...)
  4854   char *s;
  4855   va_list v;
  4856   va_start (v,p);
  4857   s = g (p, va_arg (v,int));
  4858   va_end (v);
  4859   return s;
  4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4863    function prototypes and stuff, but not '\xHH' hex character constants.
  4864    These don't provoke an error unfortunately, instead are silently treated
  4865    as 'x'.  The following induces an error, until -std is added to get
  4866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4867    array size at least.  It's necessary to write '\x00'==0 to get something
  4868    that's true only with -std.  */
  4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4872    inside strings and character constants.  */
  4873 #define FOO(x) 'x'
  4874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4876 int test (int i, double x);
  4877 struct s1 {int (*f) (int a);};
  4878 struct s2 {int (*f) (double a);};
  4879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4880 int argc;
  4881 char **argv;
  4882 int
  4883 main ()
  4885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4887   return 0;
  4889 _ACEOF
  4890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4891 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4892 do
  4893   CC="$ac_save_CC $ac_arg"
  4894   rm -f conftest.$ac_objext
  4895 if { (ac_try="$ac_compile"
  4896 case "(($ac_try" in
  4897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4898   *) ac_try_echo=$ac_try;;
  4899 esac
  4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4901   (eval "$ac_compile") 2>conftest.er1
  4902   ac_status=$?
  4903   grep -v '^ *+' conftest.er1 >conftest.err
  4904   rm -f conftest.er1
  4905   cat conftest.err >&5
  4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907   (exit $ac_status); } && {
  4908 	 test -z "$ac_c_werror_flag" ||
  4909 	 test ! -s conftest.err
  4910        } && test -s conftest.$ac_objext; then
  4911   ac_cv_prog_cc_c89=$ac_arg
  4912 else
  4913   echo "$as_me: failed program was:" >&5
  4914 sed 's/^/| /' conftest.$ac_ext >&5
  4917 fi
  4919 rm -f core conftest.err conftest.$ac_objext
  4920   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4921 done
  4922 rm -f conftest.$ac_ext
  4923 CC=$ac_save_CC
  4925 fi
  4926 # AC_CACHE_VAL
  4927 case "x$ac_cv_prog_cc_c89" in
  4928   x)
  4929     { echo "$as_me:$LINENO: result: none needed" >&5
  4930 echo "${ECHO_T}none needed" >&6; } ;;
  4931   xno)
  4932     { echo "$as_me:$LINENO: result: unsupported" >&5
  4933 echo "${ECHO_T}unsupported" >&6; } ;;
  4934   *)
  4935     CC="$CC $ac_cv_prog_cc_c89"
  4936     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  4938 esac
  4941 ac_ext=c
  4942 ac_cpp='$CPP $CPPFLAGS'
  4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4947 depcc="$CC"   am_compiler_list=
  4949 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4950 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4952   echo $ECHO_N "(cached) $ECHO_C" >&6
  4953 else
  4954   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4955   # We make a subdir and do the tests there.  Otherwise we can end up
  4956   # making bogus files that we don't know about and never remove.  For
  4957   # instance it was reported that on HP-UX the gcc test will end up
  4958   # making a dummy file named `D' -- because `-MD' means `put the output
  4959   # in D'.
  4960   mkdir conftest.dir
  4961   # Copy depcomp to subdir because otherwise we won't find it if we're
  4962   # using a relative directory.
  4963   cp "$am_depcomp" conftest.dir
  4964   cd conftest.dir
  4965   # We will build objects and dependencies in a subdirectory because
  4966   # it helps to detect inapplicable dependency modes.  For instance
  4967   # both Tru64's cc and ICC support -MD to output dependencies as a
  4968   # side effect of compilation, but ICC will put the dependencies in
  4969   # the current directory while Tru64 will put them in the object
  4970   # directory.
  4971   mkdir sub
  4973   am_cv_CC_dependencies_compiler_type=none
  4974   if test "$am_compiler_list" = ""; then
  4975      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4976   fi
  4977   for depmode in $am_compiler_list; do
  4978     # Setup a source with many dependencies, because some compilers
  4979     # like to wrap large dependency lists on column 80 (with \), and
  4980     # we should not choose a depcomp mode which is confused by this.
  4982     # We need to recreate these files for each test, as the compiler may
  4983     # overwrite some of them when testing with obscure command lines.
  4984     # This happens at least with the AIX C compiler.
  4985     : > sub/conftest.c
  4986     for i in 1 2 3 4 5 6; do
  4987       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4988       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4989       # Solaris 8's {/usr,}/bin/sh.
  4990       touch sub/conftst$i.h
  4991     done
  4992     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4994     case $depmode in
  4995     nosideeffect)
  4996       # after this tag, mechanisms are not by side-effect, so they'll
  4997       # only be used when explicitly requested
  4998       if test "x$enable_dependency_tracking" = xyes; then
  4999 	continue
  5000       else
  5001 	break
  5002       fi
  5003       ;;
  5004     none) break ;;
  5005     esac
  5006     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5007     # mode.  It turns out that the SunPro C++ compiler does not properly
  5008     # handle `-M -o', and we need to detect this.
  5009     if depmode=$depmode \
  5010        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5012        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5013          >/dev/null 2>conftest.err &&
  5014        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5015        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5016        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5017       # icc doesn't choke on unknown options, it will just issue warnings
  5018       # or remarks (even with -Werror).  So we grep stderr for any message
  5019       # that says an option was ignored or not supported.
  5020       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5021       #   icc: Command line warning: ignoring option '-M'; no argument required
  5022       # The diagnosis changed in icc 8.0:
  5023       #   icc: Command line remark: option '-MP' not supported
  5024       if (grep 'ignoring option' conftest.err ||
  5025           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5026         am_cv_CC_dependencies_compiler_type=$depmode
  5027         break
  5028       fi
  5029     fi
  5030   done
  5032   cd ..
  5033   rm -rf conftest.dir
  5034 else
  5035   am_cv_CC_dependencies_compiler_type=none
  5036 fi
  5038 fi
  5039 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  5040 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  5041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5045 if
  5046   test "x$enable_dependency_tracking" != xno \
  5047   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5048   am__fastdepCC_TRUE=
  5049   am__fastdepCC_FALSE='#'
  5050 else
  5051   am__fastdepCC_TRUE='#'
  5052   am__fastdepCC_FALSE=
  5053 fi
  5057 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  5059 # By default we simply use the C compiler to build assembly code.
  5061 test "${CCAS+set}" = set || CCAS=$CC
  5062 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5066 ac_ext=c
  5067 ac_cpp='$CPP $CPPFLAGS'
  5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5071 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5073 # On Suns, sometimes $CPP names a directory.
  5074 if test -n "$CPP" && test -d "$CPP"; then
  5075   CPP=
  5076 fi
  5077 if test -z "$CPP"; then
  5078   if test "${ac_cv_prog_CPP+set}" = set; then
  5079   echo $ECHO_N "(cached) $ECHO_C" >&6
  5080 else
  5081       # Double quotes because CPP needs to be expanded
  5082     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5083     do
  5084       ac_preproc_ok=false
  5085 for ac_c_preproc_warn_flag in '' yes
  5086 do
  5087   # Use a header file that comes with gcc, so configuring glibc
  5088   # with a fresh cross-compiler works.
  5089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5090   # <limits.h> exists even on freestanding compilers.
  5091   # On the NeXT, cc -E runs the code through the compiler's parser,
  5092   # not just through cpp. "Syntax error" is here to catch this case.
  5093   cat >conftest.$ac_ext <<_ACEOF
  5094 /* confdefs.h.  */
  5095 _ACEOF
  5096 cat confdefs.h >>conftest.$ac_ext
  5097 cat >>conftest.$ac_ext <<_ACEOF
  5098 /* end confdefs.h.  */
  5099 #ifdef __STDC__
  5100 # include <limits.h>
  5101 #else
  5102 # include <assert.h>
  5103 #endif
  5104 		     Syntax error
  5105 _ACEOF
  5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5107 case "(($ac_try" in
  5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5109   *) ac_try_echo=$ac_try;;
  5110 esac
  5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5113   ac_status=$?
  5114   grep -v '^ *+' conftest.er1 >conftest.err
  5115   rm -f conftest.er1
  5116   cat conftest.err >&5
  5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118   (exit $ac_status); } >/dev/null && {
  5119 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5120 	 test ! -s conftest.err
  5121        }; then
  5123 else
  5124   echo "$as_me: failed program was:" >&5
  5125 sed 's/^/| /' conftest.$ac_ext >&5
  5127   # Broken: fails on valid input.
  5128 continue
  5129 fi
  5131 rm -f conftest.err conftest.$ac_ext
  5133   # OK, works on sane cases.  Now check whether nonexistent headers
  5134   # can be detected and how.
  5135   cat >conftest.$ac_ext <<_ACEOF
  5136 /* confdefs.h.  */
  5137 _ACEOF
  5138 cat confdefs.h >>conftest.$ac_ext
  5139 cat >>conftest.$ac_ext <<_ACEOF
  5140 /* end confdefs.h.  */
  5141 #include <ac_nonexistent.h>
  5142 _ACEOF
  5143 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5144 case "(($ac_try" in
  5145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5146   *) ac_try_echo=$ac_try;;
  5147 esac
  5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5150   ac_status=$?
  5151   grep -v '^ *+' conftest.er1 >conftest.err
  5152   rm -f conftest.er1
  5153   cat conftest.err >&5
  5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5155   (exit $ac_status); } >/dev/null && {
  5156 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5157 	 test ! -s conftest.err
  5158        }; then
  5159   # Broken: success on invalid input.
  5160 continue
  5161 else
  5162   echo "$as_me: failed program was:" >&5
  5163 sed 's/^/| /' conftest.$ac_ext >&5
  5165   # Passes both tests.
  5166 ac_preproc_ok=:
  5167 break
  5168 fi
  5170 rm -f conftest.err conftest.$ac_ext
  5172 done
  5173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5174 rm -f conftest.err conftest.$ac_ext
  5175 if $ac_preproc_ok; then
  5176   break
  5177 fi
  5179     done
  5180     ac_cv_prog_CPP=$CPP
  5182 fi
  5183   CPP=$ac_cv_prog_CPP
  5184 else
  5185   ac_cv_prog_CPP=$CPP
  5186 fi
  5187 { echo "$as_me:$LINENO: result: $CPP" >&5
  5188 echo "${ECHO_T}$CPP" >&6; }
  5189 ac_preproc_ok=false
  5190 for ac_c_preproc_warn_flag in '' yes
  5191 do
  5192   # Use a header file that comes with gcc, so configuring glibc
  5193   # with a fresh cross-compiler works.
  5194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5195   # <limits.h> exists even on freestanding compilers.
  5196   # On the NeXT, cc -E runs the code through the compiler's parser,
  5197   # not just through cpp. "Syntax error" is here to catch this case.
  5198   cat >conftest.$ac_ext <<_ACEOF
  5199 /* confdefs.h.  */
  5200 _ACEOF
  5201 cat confdefs.h >>conftest.$ac_ext
  5202 cat >>conftest.$ac_ext <<_ACEOF
  5203 /* end confdefs.h.  */
  5204 #ifdef __STDC__
  5205 # include <limits.h>
  5206 #else
  5207 # include <assert.h>
  5208 #endif
  5209 		     Syntax error
  5210 _ACEOF
  5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5212 case "(($ac_try" in
  5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5214   *) ac_try_echo=$ac_try;;
  5215 esac
  5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5218   ac_status=$?
  5219   grep -v '^ *+' conftest.er1 >conftest.err
  5220   rm -f conftest.er1
  5221   cat conftest.err >&5
  5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223   (exit $ac_status); } >/dev/null && {
  5224 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5225 	 test ! -s conftest.err
  5226        }; then
  5228 else
  5229   echo "$as_me: failed program was:" >&5
  5230 sed 's/^/| /' conftest.$ac_ext >&5
  5232   # Broken: fails on valid input.
  5233 continue
  5234 fi
  5236 rm -f conftest.err conftest.$ac_ext
  5238   # OK, works on sane cases.  Now check whether nonexistent headers
  5239   # can be detected and how.
  5240   cat >conftest.$ac_ext <<_ACEOF
  5241 /* confdefs.h.  */
  5242 _ACEOF
  5243 cat confdefs.h >>conftest.$ac_ext
  5244 cat >>conftest.$ac_ext <<_ACEOF
  5245 /* end confdefs.h.  */
  5246 #include <ac_nonexistent.h>
  5247 _ACEOF
  5248 if { (ac_try="$ac_cpp conftest.$ac_ext"
  5249 case "(($ac_try" in
  5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5251   *) ac_try_echo=$ac_try;;
  5252 esac
  5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5255   ac_status=$?
  5256   grep -v '^ *+' conftest.er1 >conftest.err
  5257   rm -f conftest.er1
  5258   cat conftest.err >&5
  5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5260   (exit $ac_status); } >/dev/null && {
  5261 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5262 	 test ! -s conftest.err
  5263        }; then
  5264   # Broken: success on invalid input.
  5265 continue
  5266 else
  5267   echo "$as_me: failed program was:" >&5
  5268 sed 's/^/| /' conftest.$ac_ext >&5
  5270   # Passes both tests.
  5271 ac_preproc_ok=:
  5272 break
  5273 fi
  5275 rm -f conftest.err conftest.$ac_ext
  5277 done
  5278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5279 rm -f conftest.err conftest.$ac_ext
  5280 if $ac_preproc_ok; then
  5282 else
  5283   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5284 See \`config.log' for more details." >&5
  5285 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5286 See \`config.log' for more details." >&2;}
  5287    { (exit 1); exit 1; }; }
  5288 fi
  5290 ac_ext=c
  5291 ac_cpp='$CPP $CPPFLAGS'
  5292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5297 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5298 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5299 if test "${ac_cv_path_GREP+set}" = set; then
  5300   echo $ECHO_N "(cached) $ECHO_C" >&6
  5301 else
  5302   # Extract the first word of "grep ggrep" to use in msg output
  5303 if test -z "$GREP"; then
  5304 set dummy grep ggrep; ac_prog_name=$2
  5305 if test "${ac_cv_path_GREP+set}" = set; then
  5306   echo $ECHO_N "(cached) $ECHO_C" >&6
  5307 else
  5308   ac_path_GREP_found=false
  5309 # Loop through the user's path and test for each of PROGNAME-LIST
  5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5312 do
  5313   IFS=$as_save_IFS
  5314   test -z "$as_dir" && as_dir=.
  5315   for ac_prog in grep ggrep; do
  5316   for ac_exec_ext in '' $ac_executable_extensions; do
  5317     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5318     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5319     # Check for GNU ac_path_GREP and select it if it is found.
  5320   # Check for GNU $ac_path_GREP
  5321 case `"$ac_path_GREP" --version 2>&1` in
  5322 *GNU*)
  5323   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5324 *)
  5325   ac_count=0
  5326   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5327   while :
  5328   do
  5329     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5330     mv "conftest.tmp" "conftest.in"
  5331     cp "conftest.in" "conftest.nl"
  5332     echo 'GREP' >> "conftest.nl"
  5333     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5334     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5335     ac_count=`expr $ac_count + 1`
  5336     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5337       # Best one so far, save it but keep looking for a better one
  5338       ac_cv_path_GREP="$ac_path_GREP"
  5339       ac_path_GREP_max=$ac_count
  5340     fi
  5341     # 10*(2^10) chars as input seems more than enough
  5342     test $ac_count -gt 10 && break
  5343   done
  5344   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5345 esac
  5348     $ac_path_GREP_found && break 3
  5349   done
  5350 done
  5352 done
  5353 IFS=$as_save_IFS
  5356 fi
  5358 GREP="$ac_cv_path_GREP"
  5359 if test -z "$GREP"; then
  5360   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5362    { (exit 1); exit 1; }; }
  5363 fi
  5365 else
  5366   ac_cv_path_GREP=$GREP
  5367 fi
  5370 fi
  5371 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5372 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5373  GREP="$ac_cv_path_GREP"
  5376 { echo "$as_me:$LINENO: checking for egrep" >&5
  5377 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5378 if test "${ac_cv_path_EGREP+set}" = set; then
  5379   echo $ECHO_N "(cached) $ECHO_C" >&6
  5380 else
  5381   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5382    then ac_cv_path_EGREP="$GREP -E"
  5383    else
  5384      # Extract the first word of "egrep" to use in msg output
  5385 if test -z "$EGREP"; then
  5386 set dummy egrep; ac_prog_name=$2
  5387 if test "${ac_cv_path_EGREP+set}" = set; then
  5388   echo $ECHO_N "(cached) $ECHO_C" >&6
  5389 else
  5390   ac_path_EGREP_found=false
  5391 # Loop through the user's path and test for each of PROGNAME-LIST
  5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5394 do
  5395   IFS=$as_save_IFS
  5396   test -z "$as_dir" && as_dir=.
  5397   for ac_prog in egrep; do
  5398   for ac_exec_ext in '' $ac_executable_extensions; do
  5399     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5400     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5401     # Check for GNU ac_path_EGREP and select it if it is found.
  5402   # Check for GNU $ac_path_EGREP
  5403 case `"$ac_path_EGREP" --version 2>&1` in
  5404 *GNU*)
  5405   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5406 *)
  5407   ac_count=0
  5408   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5409   while :
  5410   do
  5411     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5412     mv "conftest.tmp" "conftest.in"
  5413     cp "conftest.in" "conftest.nl"
  5414     echo 'EGREP' >> "conftest.nl"
  5415     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5416     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5417     ac_count=`expr $ac_count + 1`
  5418     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5419       # Best one so far, save it but keep looking for a better one
  5420       ac_cv_path_EGREP="$ac_path_EGREP"
  5421       ac_path_EGREP_max=$ac_count
  5422     fi
  5423     # 10*(2^10) chars as input seems more than enough
  5424     test $ac_count -gt 10 && break
  5425   done
  5426   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5427 esac
  5430     $ac_path_EGREP_found && break 3
  5431   done
  5432 done
  5434 done
  5435 IFS=$as_save_IFS
  5438 fi
  5440 EGREP="$ac_cv_path_EGREP"
  5441 if test -z "$EGREP"; then
  5442   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5443 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5444    { (exit 1); exit 1; }; }
  5445 fi
  5447 else
  5448   ac_cv_path_EGREP=$EGREP
  5449 fi
  5452    fi
  5453 fi
  5454 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5455 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5456  EGREP="$ac_cv_path_EGREP"
  5459 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5461 if test "${ac_cv_header_stdc+set}" = set; then
  5462   echo $ECHO_N "(cached) $ECHO_C" >&6
  5463 else
  5464   cat >conftest.$ac_ext <<_ACEOF
  5465 /* confdefs.h.  */
  5466 _ACEOF
  5467 cat confdefs.h >>conftest.$ac_ext
  5468 cat >>conftest.$ac_ext <<_ACEOF
  5469 /* end confdefs.h.  */
  5470 #include <stdlib.h>
  5471 #include <stdarg.h>
  5472 #include <string.h>
  5473 #include <float.h>
  5475 int
  5476 main ()
  5480   return 0;
  5482 _ACEOF
  5483 rm -f conftest.$ac_objext
  5484 if { (ac_try="$ac_compile"
  5485 case "(($ac_try" in
  5486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487   *) ac_try_echo=$ac_try;;
  5488 esac
  5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5490   (eval "$ac_compile") 2>conftest.er1
  5491   ac_status=$?
  5492   grep -v '^ *+' conftest.er1 >conftest.err
  5493   rm -f conftest.er1
  5494   cat conftest.err >&5
  5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496   (exit $ac_status); } && {
  5497 	 test -z "$ac_c_werror_flag" ||
  5498 	 test ! -s conftest.err
  5499        } && test -s conftest.$ac_objext; then
  5500   ac_cv_header_stdc=yes
  5501 else
  5502   echo "$as_me: failed program was:" >&5
  5503 sed 's/^/| /' conftest.$ac_ext >&5
  5505 	ac_cv_header_stdc=no
  5506 fi
  5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5510 if test $ac_cv_header_stdc = yes; then
  5511   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5512   cat >conftest.$ac_ext <<_ACEOF
  5513 /* confdefs.h.  */
  5514 _ACEOF
  5515 cat confdefs.h >>conftest.$ac_ext
  5516 cat >>conftest.$ac_ext <<_ACEOF
  5517 /* end confdefs.h.  */
  5518 #include <string.h>
  5520 _ACEOF
  5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5522   $EGREP "memchr" >/dev/null 2>&1; then
  5524 else
  5525   ac_cv_header_stdc=no
  5526 fi
  5527 rm -f conftest*
  5529 fi
  5531 if test $ac_cv_header_stdc = yes; then
  5532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5533   cat >conftest.$ac_ext <<_ACEOF
  5534 /* confdefs.h.  */
  5535 _ACEOF
  5536 cat confdefs.h >>conftest.$ac_ext
  5537 cat >>conftest.$ac_ext <<_ACEOF
  5538 /* end confdefs.h.  */
  5539 #include <stdlib.h>
  5541 _ACEOF
  5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5543   $EGREP "free" >/dev/null 2>&1; then
  5545 else
  5546   ac_cv_header_stdc=no
  5547 fi
  5548 rm -f conftest*
  5550 fi
  5552 if test $ac_cv_header_stdc = yes; then
  5553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5554   if test "$cross_compiling" = yes; then
  5556 else
  5557   cat >conftest.$ac_ext <<_ACEOF
  5558 /* confdefs.h.  */
  5559 _ACEOF
  5560 cat confdefs.h >>conftest.$ac_ext
  5561 cat >>conftest.$ac_ext <<_ACEOF
  5562 /* end confdefs.h.  */
  5563 #include <ctype.h>
  5564 #include <stdlib.h>
  5565 #if ((' ' & 0x0FF) == 0x020)
  5566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5568 #else
  5569 # define ISLOWER(c) \
  5570 		   (('a' <= (c) && (c) <= 'i') \
  5571 		     || ('j' <= (c) && (c) <= 'r') \
  5572 		     || ('s' <= (c) && (c) <= 'z'))
  5573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5574 #endif
  5576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5577 int
  5578 main ()
  5580   int i;
  5581   for (i = 0; i < 256; i++)
  5582     if (XOR (islower (i), ISLOWER (i))
  5583 	|| toupper (i) != TOUPPER (i))
  5584       return 2;
  5585   return 0;
  5587 _ACEOF
  5588 rm -f conftest$ac_exeext
  5589 if { (ac_try="$ac_link"
  5590 case "(($ac_try" in
  5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5592   *) ac_try_echo=$ac_try;;
  5593 esac
  5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5595   (eval "$ac_link") 2>&5
  5596   ac_status=$?
  5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5599   { (case "(($ac_try" in
  5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5601   *) ac_try_echo=$ac_try;;
  5602 esac
  5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5604   (eval "$ac_try") 2>&5
  5605   ac_status=$?
  5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607   (exit $ac_status); }; }; then
  5609 else
  5610   echo "$as_me: program exited with status $ac_status" >&5
  5611 echo "$as_me: failed program was:" >&5
  5612 sed 's/^/| /' conftest.$ac_ext >&5
  5614 ( exit $ac_status )
  5615 ac_cv_header_stdc=no
  5616 fi
  5617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5618 fi
  5621 fi
  5622 fi
  5623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5625 if test $ac_cv_header_stdc = yes; then
  5627 cat >>confdefs.h <<\_ACEOF
  5628 #define STDC_HEADERS 1
  5629 _ACEOF
  5631 fi
  5633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5644 		  inttypes.h stdint.h unistd.h
  5645 do
  5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5650   echo $ECHO_N "(cached) $ECHO_C" >&6
  5651 else
  5652   cat >conftest.$ac_ext <<_ACEOF
  5653 /* confdefs.h.  */
  5654 _ACEOF
  5655 cat confdefs.h >>conftest.$ac_ext
  5656 cat >>conftest.$ac_ext <<_ACEOF
  5657 /* end confdefs.h.  */
  5658 $ac_includes_default
  5660 #include <$ac_header>
  5661 _ACEOF
  5662 rm -f conftest.$ac_objext
  5663 if { (ac_try="$ac_compile"
  5664 case "(($ac_try" in
  5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5666   *) ac_try_echo=$ac_try;;
  5667 esac
  5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5669   (eval "$ac_compile") 2>conftest.er1
  5670   ac_status=$?
  5671   grep -v '^ *+' conftest.er1 >conftest.err
  5672   rm -f conftest.er1
  5673   cat conftest.err >&5
  5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5675   (exit $ac_status); } && {
  5676 	 test -z "$ac_c_werror_flag" ||
  5677 	 test ! -s conftest.err
  5678        } && test -s conftest.$ac_objext; then
  5679   eval "$as_ac_Header=yes"
  5680 else
  5681   echo "$as_me: failed program was:" >&5
  5682 sed 's/^/| /' conftest.$ac_ext >&5
  5684 	eval "$as_ac_Header=no"
  5685 fi
  5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5688 fi
  5689 ac_res=`eval echo '${'$as_ac_Header'}'`
  5690 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  5691 echo "${ECHO_T}$ac_res" >&6; }
  5692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5693   cat >>confdefs.h <<_ACEOF
  5694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5695 _ACEOF
  5697 fi
  5699 done
  5702 { echo "$as_me:$LINENO: checking for void *" >&5
  5703 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
  5704 if test "${ac_cv_type_void_p+set}" = set; then
  5705   echo $ECHO_N "(cached) $ECHO_C" >&6
  5706 else
  5707   cat >conftest.$ac_ext <<_ACEOF
  5708 /* confdefs.h.  */
  5709 _ACEOF
  5710 cat confdefs.h >>conftest.$ac_ext
  5711 cat >>conftest.$ac_ext <<_ACEOF
  5712 /* end confdefs.h.  */
  5713 $ac_includes_default
  5714 typedef void * ac__type_new_;
  5715 int
  5716 main ()
  5718 if ((ac__type_new_ *) 0)
  5719   return 0;
  5720 if (sizeof (ac__type_new_))
  5721   return 0;
  5723   return 0;
  5725 _ACEOF
  5726 rm -f conftest.$ac_objext
  5727 if { (ac_try="$ac_compile"
  5728 case "(($ac_try" in
  5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5730   *) ac_try_echo=$ac_try;;
  5731 esac
  5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5733   (eval "$ac_compile") 2>conftest.er1
  5734   ac_status=$?
  5735   grep -v '^ *+' conftest.er1 >conftest.err
  5736   rm -f conftest.er1
  5737   cat conftest.err >&5
  5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5739   (exit $ac_status); } && {
  5740 	 test -z "$ac_c_werror_flag" ||
  5741 	 test ! -s conftest.err
  5742        } && test -s conftest.$ac_objext; then
  5743   ac_cv_type_void_p=yes
  5744 else
  5745   echo "$as_me: failed program was:" >&5
  5746 sed 's/^/| /' conftest.$ac_ext >&5
  5748 	ac_cv_type_void_p=no
  5749 fi
  5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5752 fi
  5753 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  5754 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
  5756 # The cast to long int works around a bug in the HP C Compiler
  5757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5759 # This bug is HP SR number 8606223364.
  5760 { echo "$as_me:$LINENO: checking size of void *" >&5
  5761 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
  5762 if test "${ac_cv_sizeof_void_p+set}" = set; then
  5763   echo $ECHO_N "(cached) $ECHO_C" >&6
  5764 else
  5765   if test "$cross_compiling" = yes; then
  5766   # Depending upon the size, compute the lo and hi bounds.
  5767 cat >conftest.$ac_ext <<_ACEOF
  5768 /* confdefs.h.  */
  5769 _ACEOF
  5770 cat confdefs.h >>conftest.$ac_ext
  5771 cat >>conftest.$ac_ext <<_ACEOF
  5772 /* end confdefs.h.  */
  5773 $ac_includes_default
  5774    typedef void * ac__type_sizeof_;
  5775 int
  5776 main ()
  5778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5779 test_array [0] = 0
  5782   return 0;
  5784 _ACEOF
  5785 rm -f conftest.$ac_objext
  5786 if { (ac_try="$ac_compile"
  5787 case "(($ac_try" in
  5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5789   *) ac_try_echo=$ac_try;;
  5790 esac
  5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5792   (eval "$ac_compile") 2>conftest.er1
  5793   ac_status=$?
  5794   grep -v '^ *+' conftest.er1 >conftest.err
  5795   rm -f conftest.er1
  5796   cat conftest.err >&5
  5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5798   (exit $ac_status); } && {
  5799 	 test -z "$ac_c_werror_flag" ||
  5800 	 test ! -s conftest.err
  5801        } && test -s conftest.$ac_objext; then
  5802   ac_lo=0 ac_mid=0
  5803   while :; do
  5804     cat >conftest.$ac_ext <<_ACEOF
  5805 /* confdefs.h.  */
  5806 _ACEOF
  5807 cat confdefs.h >>conftest.$ac_ext
  5808 cat >>conftest.$ac_ext <<_ACEOF
  5809 /* end confdefs.h.  */
  5810 $ac_includes_default
  5811    typedef void * ac__type_sizeof_;
  5812 int
  5813 main ()
  5815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5816 test_array [0] = 0
  5819   return 0;
  5821 _ACEOF
  5822 rm -f conftest.$ac_objext
  5823 if { (ac_try="$ac_compile"
  5824 case "(($ac_try" in
  5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5826   *) ac_try_echo=$ac_try;;
  5827 esac
  5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5829   (eval "$ac_compile") 2>conftest.er1
  5830   ac_status=$?
  5831   grep -v '^ *+' conftest.er1 >conftest.err
  5832   rm -f conftest.er1
  5833   cat conftest.err >&5
  5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5835   (exit $ac_status); } && {
  5836 	 test -z "$ac_c_werror_flag" ||
  5837 	 test ! -s conftest.err
  5838        } && test -s conftest.$ac_objext; then
  5839   ac_hi=$ac_mid; break
  5840 else
  5841   echo "$as_me: failed program was:" >&5
  5842 sed 's/^/| /' conftest.$ac_ext >&5
  5844 	ac_lo=`expr $ac_mid + 1`
  5845 			if test $ac_lo -le $ac_mid; then
  5846 			  ac_lo= ac_hi=
  5847 			  break
  5848 			fi
  5849 			ac_mid=`expr 2 '*' $ac_mid + 1`
  5850 fi
  5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5853   done
  5854 else
  5855   echo "$as_me: failed program was:" >&5
  5856 sed 's/^/| /' conftest.$ac_ext >&5
  5858 	cat >conftest.$ac_ext <<_ACEOF
  5859 /* confdefs.h.  */
  5860 _ACEOF
  5861 cat confdefs.h >>conftest.$ac_ext
  5862 cat >>conftest.$ac_ext <<_ACEOF
  5863 /* end confdefs.h.  */
  5864 $ac_includes_default
  5865    typedef void * ac__type_sizeof_;
  5866 int
  5867 main ()
  5869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5870 test_array [0] = 0
  5873   return 0;
  5875 _ACEOF
  5876 rm -f conftest.$ac_objext
  5877 if { (ac_try="$ac_compile"
  5878 case "(($ac_try" in
  5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5880   *) ac_try_echo=$ac_try;;
  5881 esac
  5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5883   (eval "$ac_compile") 2>conftest.er1
  5884   ac_status=$?
  5885   grep -v '^ *+' conftest.er1 >conftest.err
  5886   rm -f conftest.er1
  5887   cat conftest.err >&5
  5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889   (exit $ac_status); } && {
  5890 	 test -z "$ac_c_werror_flag" ||
  5891 	 test ! -s conftest.err
  5892        } && test -s conftest.$ac_objext; then
  5893   ac_hi=-1 ac_mid=-1
  5894   while :; do
  5895     cat >conftest.$ac_ext <<_ACEOF
  5896 /* confdefs.h.  */
  5897 _ACEOF
  5898 cat confdefs.h >>conftest.$ac_ext
  5899 cat >>conftest.$ac_ext <<_ACEOF
  5900 /* end confdefs.h.  */
  5901 $ac_includes_default
  5902    typedef void * ac__type_sizeof_;
  5903 int
  5904 main ()
  5906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5907 test_array [0] = 0
  5910   return 0;
  5912 _ACEOF
  5913 rm -f conftest.$ac_objext
  5914 if { (ac_try="$ac_compile"
  5915 case "(($ac_try" in
  5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5917   *) ac_try_echo=$ac_try;;
  5918 esac
  5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5920   (eval "$ac_compile") 2>conftest.er1
  5921   ac_status=$?
  5922   grep -v '^ *+' conftest.er1 >conftest.err
  5923   rm -f conftest.er1
  5924   cat conftest.err >&5
  5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5926   (exit $ac_status); } && {
  5927 	 test -z "$ac_c_werror_flag" ||
  5928 	 test ! -s conftest.err
  5929        } && test -s conftest.$ac_objext; then
  5930   ac_lo=$ac_mid; break
  5931 else
  5932   echo "$as_me: failed program was:" >&5
  5933 sed 's/^/| /' conftest.$ac_ext >&5
  5935 	ac_hi=`expr '(' $ac_mid ')' - 1`
  5936 			if test $ac_mid -le $ac_hi; then
  5937 			  ac_lo= ac_hi=
  5938 			  break
  5939 			fi
  5940 			ac_mid=`expr 2 '*' $ac_mid`
  5941 fi
  5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5944   done
  5945 else
  5946   echo "$as_me: failed program was:" >&5
  5947 sed 's/^/| /' conftest.$ac_ext >&5
  5949 	ac_lo= ac_hi=
  5950 fi
  5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5953 fi
  5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5956 # Binary search between lo and hi bounds.
  5957 while test "x$ac_lo" != "x$ac_hi"; do
  5958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5959   cat >conftest.$ac_ext <<_ACEOF
  5960 /* confdefs.h.  */
  5961 _ACEOF
  5962 cat confdefs.h >>conftest.$ac_ext
  5963 cat >>conftest.$ac_ext <<_ACEOF
  5964 /* end confdefs.h.  */
  5965 $ac_includes_default
  5966    typedef void * ac__type_sizeof_;
  5967 int
  5968 main ()
  5970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5971 test_array [0] = 0
  5974   return 0;
  5976 _ACEOF
  5977 rm -f conftest.$ac_objext
  5978 if { (ac_try="$ac_compile"
  5979 case "(($ac_try" in
  5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5981   *) ac_try_echo=$ac_try;;
  5982 esac
  5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5984   (eval "$ac_compile") 2>conftest.er1
  5985   ac_status=$?
  5986   grep -v '^ *+' conftest.er1 >conftest.err
  5987   rm -f conftest.er1
  5988   cat conftest.err >&5
  5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5990   (exit $ac_status); } && {
  5991 	 test -z "$ac_c_werror_flag" ||
  5992 	 test ! -s conftest.err
  5993        } && test -s conftest.$ac_objext; then
  5994   ac_hi=$ac_mid
  5995 else
  5996   echo "$as_me: failed program was:" >&5
  5997 sed 's/^/| /' conftest.$ac_ext >&5
  5999 	ac_lo=`expr '(' $ac_mid ')' + 1`
  6000 fi
  6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6003 done
  6004 case $ac_lo in
  6005 ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6006 '') if test "$ac_cv_type_void_p" = yes; then
  6007      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6008 See \`config.log' for more details." >&5
  6009 echo "$as_me: error: cannot compute sizeof (void *)
  6010 See \`config.log' for more details." >&2;}
  6011    { (exit 77); exit 77; }; }
  6012    else
  6013      ac_cv_sizeof_void_p=0
  6014    fi ;;
  6015 esac
  6016 else
  6017   cat >conftest.$ac_ext <<_ACEOF
  6018 /* confdefs.h.  */
  6019 _ACEOF
  6020 cat confdefs.h >>conftest.$ac_ext
  6021 cat >>conftest.$ac_ext <<_ACEOF
  6022 /* end confdefs.h.  */
  6023 $ac_includes_default
  6024    typedef void * ac__type_sizeof_;
  6025 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6026 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6027 #include <stdio.h>
  6028 #include <stdlib.h>
  6029 int
  6030 main ()
  6033   FILE *f = fopen ("conftest.val", "w");
  6034   if (! f)
  6035     return 1;
  6036   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6038       long int i = longval ();
  6039       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6040 	return 1;
  6041       fprintf (f, "%ld\n", i);
  6043   else
  6045       unsigned long int i = ulongval ();
  6046       if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6047 	return 1;
  6048       fprintf (f, "%lu\n", i);
  6050   return ferror (f) || fclose (f) != 0;
  6053   return 0;
  6055 _ACEOF
  6056 rm -f conftest$ac_exeext
  6057 if { (ac_try="$ac_link"
  6058 case "(($ac_try" in
  6059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6060   *) ac_try_echo=$ac_try;;
  6061 esac
  6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6063   (eval "$ac_link") 2>&5
  6064   ac_status=$?
  6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6067   { (case "(($ac_try" in
  6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6069   *) ac_try_echo=$ac_try;;
  6070 esac
  6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6072   (eval "$ac_try") 2>&5
  6073   ac_status=$?
  6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6075   (exit $ac_status); }; }; then
  6076   ac_cv_sizeof_void_p=`cat conftest.val`
  6077 else
  6078   echo "$as_me: program exited with status $ac_status" >&5
  6079 echo "$as_me: failed program was:" >&5
  6080 sed 's/^/| /' conftest.$ac_ext >&5
  6082 ( exit $ac_status )
  6083 if test "$ac_cv_type_void_p" = yes; then
  6084      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  6085 See \`config.log' for more details." >&5
  6086 echo "$as_me: error: cannot compute sizeof (void *)
  6087 See \`config.log' for more details." >&2;}
  6088    { (exit 77); exit 77; }; }
  6089    else
  6090      ac_cv_sizeof_void_p=0
  6091    fi
  6092 fi
  6093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6094 fi
  6095 rm -f conftest.val
  6096 fi
  6097 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6098 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
  6102 cat >>confdefs.h <<_ACEOF
  6103 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6104 _ACEOF
  6107 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6109 if test "${ac_cv_header_stdc+set}" = set; then
  6110   echo $ECHO_N "(cached) $ECHO_C" >&6
  6111 else
  6112   cat >conftest.$ac_ext <<_ACEOF
  6113 /* confdefs.h.  */
  6114 _ACEOF
  6115 cat confdefs.h >>conftest.$ac_ext
  6116 cat >>conftest.$ac_ext <<_ACEOF
  6117 /* end confdefs.h.  */
  6118 #include <stdlib.h>
  6119 #include <stdarg.h>
  6120 #include <string.h>
  6121 #include <float.h>
  6123 int
  6124 main ()
  6128   return 0;
  6130 _ACEOF
  6131 rm -f conftest.$ac_objext
  6132 if { (ac_try="$ac_compile"
  6133 case "(($ac_try" in
  6134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6135   *) ac_try_echo=$ac_try;;
  6136 esac
  6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6138   (eval "$ac_compile") 2>conftest.er1
  6139   ac_status=$?
  6140   grep -v '^ *+' conftest.er1 >conftest.err
  6141   rm -f conftest.er1
  6142   cat conftest.err >&5
  6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6144   (exit $ac_status); } && {
  6145 	 test -z "$ac_c_werror_flag" ||
  6146 	 test ! -s conftest.err
  6147        } && test -s conftest.$ac_objext; then
  6148   ac_cv_header_stdc=yes
  6149 else
  6150   echo "$as_me: failed program was:" >&5
  6151 sed 's/^/| /' conftest.$ac_ext >&5
  6153 	ac_cv_header_stdc=no
  6154 fi
  6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6158 if test $ac_cv_header_stdc = yes; then
  6159   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6160   cat >conftest.$ac_ext <<_ACEOF
  6161 /* confdefs.h.  */
  6162 _ACEOF
  6163 cat confdefs.h >>conftest.$ac_ext
  6164 cat >>conftest.$ac_ext <<_ACEOF
  6165 /* end confdefs.h.  */
  6166 #include <string.h>
  6168 _ACEOF
  6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6170   $EGREP "memchr" >/dev/null 2>&1; then
  6172 else
  6173   ac_cv_header_stdc=no
  6174 fi
  6175 rm -f conftest*
  6177 fi
  6179 if test $ac_cv_header_stdc = yes; then
  6180   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6181   cat >conftest.$ac_ext <<_ACEOF
  6182 /* confdefs.h.  */
  6183 _ACEOF
  6184 cat confdefs.h >>conftest.$ac_ext
  6185 cat >>conftest.$ac_ext <<_ACEOF
  6186 /* end confdefs.h.  */
  6187 #include <stdlib.h>
  6189 _ACEOF
  6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6191   $EGREP "free" >/dev/null 2>&1; then
  6193 else
  6194   ac_cv_header_stdc=no
  6195 fi
  6196 rm -f conftest*
  6198 fi
  6200 if test $ac_cv_header_stdc = yes; then
  6201   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6202   if test "$cross_compiling" = yes; then
  6204 else
  6205   cat >conftest.$ac_ext <<_ACEOF
  6206 /* confdefs.h.  */
  6207 _ACEOF
  6208 cat confdefs.h >>conftest.$ac_ext
  6209 cat >>conftest.$ac_ext <<_ACEOF
  6210 /* end confdefs.h.  */
  6211 #include <ctype.h>
  6212 #include <stdlib.h>
  6213 #if ((' ' & 0x0FF) == 0x020)
  6214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6216 #else
  6217 # define ISLOWER(c) \
  6218 		   (('a' <= (c) && (c) <= 'i') \
  6219 		     || ('j' <= (c) && (c) <= 'r') \
  6220 		     || ('s' <= (c) && (c) <= 'z'))
  6221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6222 #endif
  6224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6225 int
  6226 main ()
  6228   int i;
  6229   for (i = 0; i < 256; i++)
  6230     if (XOR (islower (i), ISLOWER (i))
  6231 	|| toupper (i) != TOUPPER (i))
  6232       return 2;
  6233   return 0;
  6235 _ACEOF
  6236 rm -f conftest$ac_exeext
  6237 if { (ac_try="$ac_link"
  6238 case "(($ac_try" in
  6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6240   *) ac_try_echo=$ac_try;;
  6241 esac
  6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6243   (eval "$ac_link") 2>&5
  6244   ac_status=$?
  6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6247   { (case "(($ac_try" in
  6248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6249   *) ac_try_echo=$ac_try;;
  6250 esac
  6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6252   (eval "$ac_try") 2>&5
  6253   ac_status=$?
  6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6255   (exit $ac_status); }; }; then
  6257 else
  6258   echo "$as_me: program exited with status $ac_status" >&5
  6259 echo "$as_me: failed program was:" >&5
  6260 sed 's/^/| /' conftest.$ac_ext >&5
  6262 ( exit $ac_status )
  6263 ac_cv_header_stdc=no
  6264 fi
  6265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6266 fi
  6269 fi
  6270 fi
  6271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6273 if test $ac_cv_header_stdc = yes; then
  6275 cat >>confdefs.h <<\_ACEOF
  6276 #define STDC_HEADERS 1
  6277 _ACEOF
  6279 fi
  6281 # Make sure we can run config.sub.
  6282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6283   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6284 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6285    { (exit 1); exit 1; }; }
  6287 { echo "$as_me:$LINENO: checking build system type" >&5
  6288 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  6289 if test "${ac_cv_build+set}" = set; then
  6290   echo $ECHO_N "(cached) $ECHO_C" >&6
  6291 else
  6292   ac_build_alias=$build_alias
  6293 test "x$ac_build_alias" = x &&
  6294   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6295 test "x$ac_build_alias" = x &&
  6296   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6297 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6298    { (exit 1); exit 1; }; }
  6299 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6300   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6301 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6302    { (exit 1); exit 1; }; }
  6304 fi
  6305 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6306 echo "${ECHO_T}$ac_cv_build" >&6; }
  6307 case $ac_cv_build in
  6308 *-*-*) ;;
  6309 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6310 echo "$as_me: error: invalid value of canonical build" >&2;}
  6311    { (exit 1); exit 1; }; };;
  6312 esac
  6313 build=$ac_cv_build
  6314 ac_save_IFS=$IFS; IFS='-'
  6315 set x $ac_cv_build
  6316 shift
  6317 build_cpu=$1
  6318 build_vendor=$2
  6319 shift; shift
  6320 # Remember, the first character of IFS is used to create $*,
  6321 # except with old shells:
  6322 build_os=$*
  6323 IFS=$ac_save_IFS
  6324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6327 { echo "$as_me:$LINENO: checking host system type" >&5
  6328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  6329 if test "${ac_cv_host+set}" = set; then
  6330   echo $ECHO_N "(cached) $ECHO_C" >&6
  6331 else
  6332   if test "x$host_alias" = x; then
  6333   ac_cv_host=$ac_cv_build
  6334 else
  6335   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6336     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6338    { (exit 1); exit 1; }; }
  6339 fi
  6341 fi
  6342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6343 echo "${ECHO_T}$ac_cv_host" >&6; }
  6344 case $ac_cv_host in
  6345 *-*-*) ;;
  6346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6347 echo "$as_me: error: invalid value of canonical host" >&2;}
  6348    { (exit 1); exit 1; }; };;
  6349 esac
  6350 host=$ac_cv_host
  6351 ac_save_IFS=$IFS; IFS='-'
  6352 set x $ac_cv_host
  6353 shift
  6354 host_cpu=$1
  6355 host_vendor=$2
  6356 shift; shift
  6357 # Remember, the first character of IFS is used to create $*,
  6358 # except with old shells:
  6359 host_os=$*
  6360 IFS=$ac_save_IFS
  6361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6364 # Check whether --enable-trace was given.
  6365 if test "${enable_trace+set}" = set; then
  6366   enableval=$enable_trace; if test "$enableval" == "yes"; then
  6368 cat >>confdefs.h <<\_ACEOF
  6369 #define ENABLE_TRACE_IO 1
  6370 _ACEOF
  6372     fi
  6373 fi
  6375 # Check whether --enable-watch was given.
  6376 if test "${enable_watch+set}" = set; then
  6377   enableval=$enable_watch; if test "$enableval" == "yes"; then
  6379 cat >>confdefs.h <<\_ACEOF
  6380 #define ENABLE_WATCH 1
  6381 _ACEOF
  6383    fi
  6384 fi
  6386 # Check whether --enable-sh4stats was given.
  6387 if test "${enable_sh4stats+set}" = set; then
  6388   enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
  6390 cat >>confdefs.h <<\_ACEOF
  6391 #define ENABLE_SH4STATS 1
  6392 _ACEOF
  6394     fi
  6395 fi
  6398 # Check whether --with-osmesa was given.
  6399 if test "${with_osmesa+set}" = set; then
  6400   withval=$with_osmesa;
  6401 else
  6402   with_osmesa=no
  6403 fi
  6408 lxdream_save_cppflags="$CPPFLAGS"
  6409 CPPFLAGS="$CPPFLAGS -x objective-c"
  6410 cat >conftest.$ac_ext <<_ACEOF
  6411 /* confdefs.h.  */
  6412 _ACEOF
  6413 cat confdefs.h >>conftest.$ac_ext
  6414 cat >>conftest.$ac_ext <<_ACEOF
  6415 /* end confdefs.h.  */
  6416 @interface Foo @end
  6417 int
  6418 main ()
  6422   return 0;
  6424 _ACEOF
  6425 rm -f conftest.$ac_objext
  6426 if { (ac_try="$ac_compile"
  6427 case "(($ac_try" in
  6428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6429   *) ac_try_echo=$ac_try;;
  6430 esac
  6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6432   (eval "$ac_compile") 2>conftest.er1
  6433   ac_status=$?
  6434   grep -v '^ *+' conftest.er1 >conftest.err
  6435   rm -f conftest.er1
  6436   cat conftest.err >&5
  6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6438   (exit $ac_status); } && {
  6439 	 test -z "$ac_c_werror_flag" ||
  6440 	 test ! -s conftest.err
  6441        } && test -s conftest.$ac_objext; then
  6444    if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6445   { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6446 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  6447 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6448   echo $ECHO_N "(cached) $ECHO_C" >&6
  6449 fi
  6450 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6451 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6452 else
  6453   # Is the header compilable?
  6454 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
  6455 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
  6456 cat >conftest.$ac_ext <<_ACEOF
  6457 /* confdefs.h.  */
  6458 _ACEOF
  6459 cat confdefs.h >>conftest.$ac_ext
  6460 cat >>conftest.$ac_ext <<_ACEOF
  6461 /* end confdefs.h.  */
  6462 $ac_includes_default
  6463 #include <Cocoa/Cocoa.h>
  6464 _ACEOF
  6465 rm -f conftest.$ac_objext
  6466 if { (ac_try="$ac_compile"
  6467 case "(($ac_try" in
  6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6469   *) ac_try_echo=$ac_try;;
  6470 esac
  6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6472   (eval "$ac_compile") 2>conftest.er1
  6473   ac_status=$?
  6474   grep -v '^ *+' conftest.er1 >conftest.err
  6475   rm -f conftest.er1
  6476   cat conftest.err >&5
  6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478   (exit $ac_status); } && {
  6479 	 test -z "$ac_c_werror_flag" ||
  6480 	 test ! -s conftest.err
  6481        } && test -s conftest.$ac_objext; then
  6482   ac_header_compiler=yes
  6483 else
  6484   echo "$as_me: failed program was:" >&5
  6485 sed 's/^/| /' conftest.$ac_ext >&5
  6487 	ac_header_compiler=no
  6488 fi
  6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6492 echo "${ECHO_T}$ac_header_compiler" >&6; }
  6494 # Is the header present?
  6495 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
  6496 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
  6497 cat >conftest.$ac_ext <<_ACEOF
  6498 /* confdefs.h.  */
  6499 _ACEOF
  6500 cat confdefs.h >>conftest.$ac_ext
  6501 cat >>conftest.$ac_ext <<_ACEOF
  6502 /* end confdefs.h.  */
  6503 #include <Cocoa/Cocoa.h>
  6504 _ACEOF
  6505 if { (ac_try="$ac_cpp conftest.$ac_ext"
  6506 case "(($ac_try" in
  6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6508   *) ac_try_echo=$ac_try;;
  6509 esac
  6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6512   ac_status=$?
  6513   grep -v '^ *+' conftest.er1 >conftest.err
  6514   rm -f conftest.er1
  6515   cat conftest.err >&5
  6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6517   (exit $ac_status); } >/dev/null && {
  6518 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6519 	 test ! -s conftest.err
  6520        }; then
  6521   ac_header_preproc=yes
  6522 else
  6523   echo "$as_me: failed program was:" >&5
  6524 sed 's/^/| /' conftest.$ac_ext >&5
  6526   ac_header_preproc=no
  6527 fi
  6529 rm -f conftest.err conftest.$ac_ext
  6530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6531 echo "${ECHO_T}$ac_header_preproc" >&6; }
  6533 # So?  What about this header?
  6534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6535   yes:no: )
  6536     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6537 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6538     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
  6539 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
  6540     ac_header_preproc=yes
  6541     ;;
  6542   no:yes:* )
  6543     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
  6544 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
  6545     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&5
  6546 echo "$as_me: WARNING: Cocoa/Cocoa.h:     check for missing prerequisite headers?" >&2;}
  6547     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
  6548 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
  6549     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&5
  6550 echo "$as_me: WARNING: Cocoa/Cocoa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  6551     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
  6552 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
  6553     { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
  6554 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
  6556     ;;
  6557 esac
  6558 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
  6559 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
  6560 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
  6561   echo $ECHO_N "(cached) $ECHO_C" >&6
  6562 else
  6563   ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
  6564 fi
  6565 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
  6566 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
  6568 fi
  6569 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
  6571       HAVE_COCOA='yes'
  6572       APPLE_BUILD='yes'
  6573       LIBS="$LIBS -framework AppKit"
  6574       LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
  6576 cat >>confdefs.h <<\_ACEOF
  6577 #define HAVE_COCOA 1
  6578 _ACEOF
  6581 cat >>confdefs.h <<\_ACEOF
  6582 #define APPLE_BUILD 1
  6583 _ACEOF
  6586 fi
  6591 else
  6592   echo "$as_me: failed program was:" >&5
  6593 sed 's/^/| /' conftest.$ac_ext >&5
  6595 	CPPFLAGS="$lxdream_save_cppflags"
  6596 fi
  6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6601 if test "$HAVE_COCOA" = 'yes'; then
  6602   GUI_COCOA_TRUE=
  6603   GUI_COCOA_FALSE='#'
  6604 else
  6605   GUI_COCOA_TRUE='#'
  6606   GUI_COCOA_FALSE=
  6607 fi
  6612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  6613 	if test -n "$ac_tool_prefix"; then
  6614   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  6619   echo $ECHO_N "(cached) $ECHO_C" >&6
  6620 else
  6621   case $PKG_CONFIG in
  6622   [\\/]* | ?:[\\/]*)
  6623   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6624   ;;
  6625   *)
  6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627 for as_dir in $PATH
  6628 do
  6629   IFS=$as_save_IFS
  6630   test -z "$as_dir" && as_dir=.
  6631   for ac_exec_ext in '' $ac_executable_extensions; do
  6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6633     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635     break 2
  6636   fi
  6637 done
  6638 done
  6639 IFS=$as_save_IFS
  6641   ;;
  6642 esac
  6643 fi
  6644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6645 if test -n "$PKG_CONFIG"; then
  6646   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  6647 echo "${ECHO_T}$PKG_CONFIG" >&6; }
  6648 else
  6649   { echo "$as_me:$LINENO: result: no" >&5
  6650 echo "${ECHO_T}no" >&6; }
  6651 fi
  6654 fi
  6655 if test -z "$ac_cv_path_PKG_CONFIG"; then
  6656   ac_pt_PKG_CONFIG=$PKG_CONFIG
  6657   # Extract the first word of "pkg-config", so it can be a program name with args.
  6658 set dummy pkg-config; ac_word=$2
  6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6661 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  6662   echo $ECHO_N "(cached) $ECHO_C" >&6
  6663 else
  6664   case $ac_pt_PKG_CONFIG in
  6665   [\\/]* | ?:[\\/]*)
  6666   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6667   ;;
  6668   *)
  6669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670 for as_dir in $PATH
  6671 do
  6672   IFS=$as_save_IFS
  6673   test -z "$as_dir" && as_dir=.
  6674   for ac_exec_ext in '' $ac_executable_extensions; do
  6675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6676     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6678     break 2
  6679   fi
  6680 done
  6681 done
  6682 IFS=$as_save_IFS
  6684   ;;
  6685 esac
  6686 fi
  6687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6688 if test -n "$ac_pt_PKG_CONFIG"; then
  6689   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  6690 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  6691 else
  6692   { echo "$as_me:$LINENO: result: no" >&5
  6693 echo "${ECHO_T}no" >&6; }
  6694 fi
  6696   if test "x$ac_pt_PKG_CONFIG" = x; then
  6697     PKG_CONFIG=""
  6698   else
  6699     case $cross_compiling:$ac_tool_warned in
  6700 yes:)
  6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6702 whose name does not start with the host triplet.  If you think this
  6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
  6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6705 whose name does not start with the host triplet.  If you think this
  6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6707 ac_tool_warned=yes ;;
  6708 esac
  6709     PKG_CONFIG=$ac_pt_PKG_CONFIG
  6710   fi
  6711 else
  6712   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6713 fi
  6715 fi
  6716 if test -n "$PKG_CONFIG"; then
  6717 	_pkg_min_version=0.9.0
  6718 	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  6719 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  6720 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6721 		{ echo "$as_me:$LINENO: result: yes" >&5
  6722 echo "${ECHO_T}yes" >&6; }
  6723 	else
  6724 		{ echo "$as_me:$LINENO: result: no" >&5
  6725 echo "${ECHO_T}no" >&6; }
  6726 		PKG_CONFIG=""
  6727 	fi
  6729 fi
  6731 pkg_failed=no
  6732 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
  6733 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
  6735 if test -n "$PKG_CONFIG"; then
  6736     if test -n "$LIBPNG_CFLAGS"; then
  6737         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  6738     else
  6739         if test -n "$PKG_CONFIG" && \
  6740     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6741   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6742   ac_status=$?
  6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744   (exit $ac_status); }; then
  6745   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
  6746 else
  6747   pkg_failed=yes
  6748 fi
  6749     fi
  6750 else
  6751 	pkg_failed=untried
  6752 fi
  6753 if test -n "$PKG_CONFIG"; then
  6754     if test -n "$LIBPNG_LIBS"; then
  6755         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  6756     else
  6757         if test -n "$PKG_CONFIG" && \
  6758     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
  6759   ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
  6760   ac_status=$?
  6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762   (exit $ac_status); }; then
  6763   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
  6764 else
  6765   pkg_failed=yes
  6766 fi
  6767     fi
  6768 else
  6769 	pkg_failed=untried
  6770 fi
  6774 if test $pkg_failed = yes; then
  6776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6777         _pkg_short_errors_supported=yes
  6778 else
  6779         _pkg_short_errors_supported=no
  6780 fi
  6781         if test $_pkg_short_errors_supported = yes; then
  6782 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
  6783         else
  6784 	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
  6785         fi
  6786 	# Put the nasty error message in config.log where it belongs
  6787 	echo "$LIBPNG_PKG_ERRORS" >&5
  6789 	{ { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
  6791 $LIBPNG_PKG_ERRORS
  6793 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6794 installed software in a non-standard prefix.
  6796 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6797 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6798 See the pkg-config man page for more details.
  6799 " >&5
  6800 echo "$as_me: error: Package requirements (libpng ) were not met:
  6802 $LIBPNG_PKG_ERRORS
  6804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6805 installed software in a non-standard prefix.
  6807 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6808 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6809 See the pkg-config man page for more details.
  6810 " >&2;}
  6811    { (exit 1); exit 1; }; }
  6812 elif test $pkg_failed = untried; then
  6813 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  6814 is in your PATH or set the PKG_CONFIG environment variable to the full
  6815 path to pkg-config.
  6817 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6818 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6819 See the pkg-config man page for more details.
  6821 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6822 See \`config.log' for more details." >&5
  6823 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  6824 is in your PATH or set the PKG_CONFIG environment variable to the full
  6825 path to pkg-config.
  6827 Alternatively, you may set the environment variables LIBPNG_CFLAGS
  6828 and LIBPNG_LIBS to avoid the need to call pkg-config.
  6829 See the pkg-config man page for more details.
  6831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6832 See \`config.log' for more details." >&2;}
  6833    { (exit 1); exit 1; }; }
  6834 else
  6835 	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  6836 	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  6837         { echo "$as_me:$LINENO: result: yes" >&5
  6838 echo "${ECHO_T}yes" >&6; }
  6840 fi
  6843 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
  6844 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
  6845 if test "${ac_cv_lib_z_uncompress+set}" = set; then
  6846   echo $ECHO_N "(cached) $ECHO_C" >&6
  6847 else
  6848   ac_check_lib_save_LIBS=$LIBS
  6849 LIBS="-lz  $LIBS"
  6850 cat >conftest.$ac_ext <<_ACEOF
  6851 /* confdefs.h.  */
  6852 _ACEOF
  6853 cat confdefs.h >>conftest.$ac_ext
  6854 cat >>conftest.$ac_ext <<_ACEOF
  6855 /* end confdefs.h.  */
  6857 /* Override any GCC internal prototype to avoid an error.
  6858    Use char because int might match the return type of a GCC
  6859    builtin and then its argument prototype would still apply.  */
  6860 #ifdef __cplusplus
  6861 extern "C"
  6862 #endif
  6863 char uncompress ();
  6864 int
  6865 main ()
  6867 return uncompress ();
  6869   return 0;
  6871 _ACEOF
  6872 rm -f conftest.$ac_objext conftest$ac_exeext
  6873 if { (ac_try="$ac_link"
  6874 case "(($ac_try" in
  6875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6876   *) ac_try_echo=$ac_try;;
  6877 esac
  6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6879   (eval "$ac_link") 2>conftest.er1
  6880   ac_status=$?
  6881   grep -v '^ *+' conftest.er1 >conftest.err
  6882   rm -f conftest.er1
  6883   cat conftest.err >&5
  6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885   (exit $ac_status); } && {
  6886 	 test -z "$ac_c_werror_flag" ||
  6887 	 test ! -s conftest.err
  6888        } && test -s conftest$ac_exeext &&
  6889        $as_test_x conftest$ac_exeext; then
  6890   ac_cv_lib_z_uncompress=yes
  6891 else
  6892   echo "$as_me: failed program was:" >&5
  6893 sed 's/^/| /' conftest.$ac_ext >&5
  6895 	ac_cv_lib_z_uncompress=no
  6896 fi
  6898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6899       conftest$ac_exeext conftest.$ac_ext
  6900 LIBS=$ac_check_lib_save_LIBS
  6901 fi
  6902 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
  6903 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
  6904 if test $ac_cv_lib_z_uncompress = yes; then
  6905   cat >>confdefs.h <<_ACEOF
  6906 #define HAVE_LIBZ 1
  6907 _ACEOF
  6909   LIBS="-lz $LIBS"
  6911 else
  6913     echo "Zlib (libz.so) could not be found, but is required."
  6914     exit 1
  6915 fi
  6920 pkg_failed=no
  6921 { echo "$as_me:$LINENO: checking for GTK" >&5
  6922 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
  6924 if test -n "$PKG_CONFIG"; then
  6925     if test -n "$GTK_CFLAGS"; then
  6926         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  6927     else
  6928         if test -n "$PKG_CONFIG" && \
  6929     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6930   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6931   ac_status=$?
  6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6933   (exit $ac_status); }; then
  6934   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  6935 else
  6936   pkg_failed=yes
  6937 fi
  6938     fi
  6939 else
  6940 	pkg_failed=untried
  6941 fi
  6942 if test -n "$PKG_CONFIG"; then
  6943     if test -n "$GTK_LIBS"; then
  6944         pkg_cv_GTK_LIBS="$GTK_LIBS"
  6945     else
  6946         if test -n "$PKG_CONFIG" && \
  6947     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  6948   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  6949   ac_status=$?
  6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6951   (exit $ac_status); }; then
  6952   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  6953 else
  6954   pkg_failed=yes
  6955 fi
  6956     fi
  6957 else
  6958 	pkg_failed=untried
  6959 fi
  6963 if test $pkg_failed = yes; then
  6965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6966         _pkg_short_errors_supported=yes
  6967 else
  6968         _pkg_short_errors_supported=no
  6969 fi
  6970         if test $_pkg_short_errors_supported = yes; then
  6971 	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
  6972         else
  6973 	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  6974         fi
  6975 	# Put the nasty error message in config.log where it belongs
  6976 	echo "$GTK_PKG_ERRORS" >&5
  6978 	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
  6980 $GTK_PKG_ERRORS
  6982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6983 installed software in a non-standard prefix.
  6985 Alternatively, you may set the environment variables GTK_CFLAGS
  6986 and GTK_LIBS to avoid the need to call pkg-config.
  6987 See the pkg-config man page for more details.
  6988 " >&5
  6989 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
  6991 $GTK_PKG_ERRORS
  6993 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6994 installed software in a non-standard prefix.
  6996 Alternatively, you may set the environment variables GTK_CFLAGS
  6997 and GTK_LIBS to avoid the need to call pkg-config.
  6998 See the pkg-config man page for more details.
  6999 " >&2;}
  7000    { (exit 1); exit 1; }; }
  7001 elif test $pkg_failed = untried; then
  7002 	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  7003 is in your PATH or set the PKG_CONFIG environment variable to the full
  7004 path to pkg-config.
  7006 Alternatively, you may set the environment variables GTK_CFLAGS
  7007 and GTK_LIBS to avoid the need to call pkg-config.
  7008 See the pkg-config man page for more details.
  7010 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7011 See \`config.log' for more details." >&5
  7012 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  7013 is in your PATH or set the PKG_CONFIG environment variable to the full
  7014 path to pkg-config.
  7016 Alternatively, you may set the environment variables GTK_CFLAGS
  7017 and GTK_LIBS to avoid the need to call pkg-config.
  7018 See the pkg-config man page for more details.
  7020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7021 See \`config.log' for more details." >&2;}
  7022    { (exit 1); exit 1; }; }
  7023 else
  7024 	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  7025 	GTK_LIBS=$pkg_cv_GTK_LIBS
  7026         { echo "$as_me:$LINENO: result: yes" >&5
  7027 echo "${ECHO_T}yes" >&6; }
  7029     HAVE_GTK='yes'
  7031 cat >>confdefs.h <<\_ACEOF
  7032 #define HAVE_GTK 1
  7033 _ACEOF
  7036 fi
  7039 if test "$HAVE_GTK" = 'yes'; then
  7040   GUI_GTK_TRUE=
  7041   GUI_GTK_FALSE='#'
  7042 else
  7043   GUI_GTK_TRUE='#'
  7044   GUI_GTK_FALSE=
  7045 fi
  7048 LIBS="$LIBS $GTK_LIBS"
  7049 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
  7050 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
  7051 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
  7052   echo $ECHO_N "(cached) $ECHO_C" >&6
  7053 else
  7054   cat >conftest.$ac_ext <<_ACEOF
  7055 /* confdefs.h.  */
  7056 _ACEOF
  7057 cat confdefs.h >>conftest.$ac_ext
  7058 cat >>conftest.$ac_ext <<_ACEOF
  7059 /* end confdefs.h.  */
  7060 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
  7061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7062 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
  7064 /* System header to define __stub macros and hopefully few prototypes,
  7065     which can conflict with char gdk_x11_display_get_xdisplay (); below.
  7066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7067     <limits.h> exists even on freestanding compilers.  */
  7069 #ifdef __STDC__
  7070 # include <limits.h>
  7071 #else
  7072 # include <assert.h>
  7073 #endif
  7075 #undef gdk_x11_display_get_xdisplay
  7077 /* Override any GCC internal prototype to avoid an error.
  7078    Use char because int might match the return type of a GCC
  7079    builtin and then its argument prototype would still apply.  */
  7080 #ifdef __cplusplus
  7081 extern "C"
  7082 #endif
  7083 char gdk_x11_display_get_xdisplay ();
  7084 /* The GNU C library defines this for functions which it implements
  7085     to always fail with ENOSYS.  Some functions are actually named
  7086     something starting with __ and the normal name is an alias.  */
  7087 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
  7088 choke me
  7089 #endif
  7091 int
  7092 main ()
  7094 return gdk_x11_display_get_xdisplay ();
  7096   return 0;
  7098 _ACEOF
  7099 rm -f conftest.$ac_objext conftest$ac_exeext
  7100 if { (ac_try="$ac_link"
  7101 case "(($ac_try" in
  7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7103   *) ac_try_echo=$ac_try;;
  7104 esac
  7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7106   (eval "$ac_link") 2>conftest.er1
  7107   ac_status=$?
  7108   grep -v '^ *+' conftest.er1 >conftest.err
  7109   rm -f conftest.er1
  7110   cat conftest.err >&5
  7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7112   (exit $ac_status); } && {
  7113 	 test -z "$ac_c_werror_flag" ||
  7114 	 test ! -s conftest.err
  7115        } && test -s conftest$ac_exeext &&
  7116        $as_test_x conftest$ac_exeext; then
  7117   ac_cv_func_gdk_x11_display_get_xdisplay=yes
  7118 else
  7119   echo "$as_me: failed program was:" >&5
  7120 sed 's/^/| /' conftest.$ac_ext >&5
  7122 	ac_cv_func_gdk_x11_display_get_xdisplay=no
  7123 fi
  7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7126       conftest$ac_exeext conftest.$ac_ext
  7127 fi
  7128 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
  7129 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
  7130 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
  7132    HAVE_GTK_X11='yes'
  7134 cat >>confdefs.h <<\_ACEOF
  7135 #define HAVE_GTK_X11 1
  7136 _ACEOF
  7138 fi
  7140 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
  7141 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
  7142 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
  7143   echo $ECHO_N "(cached) $ECHO_C" >&6
  7144 else
  7145   cat >conftest.$ac_ext <<_ACEOF
  7146 /* confdefs.h.  */
  7147 _ACEOF
  7148 cat confdefs.h >>conftest.$ac_ext
  7149 cat >>conftest.$ac_ext <<_ACEOF
  7150 /* end confdefs.h.  */
  7151 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
  7152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7153 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
  7155 /* System header to define __stub macros and hopefully few prototypes,
  7156     which can conflict with char gdk_quartz_window_get_nsview (); below.
  7157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7158     <limits.h> exists even on freestanding compilers.  */
  7160 #ifdef __STDC__
  7161 # include <limits.h>
  7162 #else
  7163 # include <assert.h>
  7164 #endif
  7166 #undef gdk_quartz_window_get_nsview
  7168 /* Override any GCC internal prototype to avoid an error.
  7169    Use char because int might match the return type of a GCC
  7170    builtin and then its argument prototype would still apply.  */
  7171 #ifdef __cplusplus
  7172 extern "C"
  7173 #endif
  7174 char gdk_quartz_window_get_nsview ();
  7175 /* The GNU C library defines this for functions which it implements
  7176     to always fail with ENOSYS.  Some functions are actually named
  7177     something starting with __ and the normal name is an alias.  */
  7178 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
  7179 choke me
  7180 #endif
  7182 int
  7183 main ()
  7185 return gdk_quartz_window_get_nsview ();
  7187   return 0;
  7189 _ACEOF
  7190 rm -f conftest.$ac_objext conftest$ac_exeext
  7191 if { (ac_try="$ac_link"
  7192 case "(($ac_try" in
  7193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7194   *) ac_try_echo=$ac_try;;
  7195 esac
  7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7197   (eval "$ac_link") 2>conftest.er1
  7198   ac_status=$?
  7199   grep -v '^ *+' conftest.er1 >conftest.err
  7200   rm -f conftest.er1
  7201   cat conftest.err >&5
  7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7203   (exit $ac_status); } && {
  7204 	 test -z "$ac_c_werror_flag" ||
  7205 	 test ! -s conftest.err
  7206        } && test -s conftest$ac_exeext &&
  7207        $as_test_x conftest$ac_exeext; then
  7208   ac_cv_func_gdk_quartz_window_get_nsview=yes
  7209 else
  7210   echo "$as_me: failed program was:" >&5
  7211 sed 's/^/| /' conftest.$ac_ext >&5
  7213 	ac_cv_func_gdk_quartz_window_get_nsview=no
  7214 fi
  7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7217       conftest$ac_exeext conftest.$ac_ext
  7218 fi
  7219 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
  7220 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
  7221 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
  7223    HAVE_GTK_OSX='yes'
  7225 cat >>confdefs.h <<\_ACEOF
  7226 #define HAVE_GTK_OSX 1
  7227 _ACEOF
  7229 fi
  7232 if test "x$with_osmesa" != xno; then
  7236 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
  7237 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
  7238 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
  7239   echo $ECHO_N "(cached) $ECHO_C" >&6
  7240 else
  7241   ac_check_lib_save_LIBS=$LIBS
  7242 LIBS="-lOSMesa  $LIBS"
  7243 cat >conftest.$ac_ext <<_ACEOF
  7244 /* confdefs.h.  */
  7245 _ACEOF
  7246 cat confdefs.h >>conftest.$ac_ext
  7247 cat >>conftest.$ac_ext <<_ACEOF
  7248 /* end confdefs.h.  */
  7250 /* Override any GCC internal prototype to avoid an error.
  7251    Use char because int might match the return type of a GCC
  7252    builtin and then its argument prototype would still apply.  */
  7253 #ifdef __cplusplus
  7254 extern "C"
  7255 #endif
  7256 char OSMesaCreateContext ();
  7257 int
  7258 main ()
  7260 return OSMesaCreateContext ();
  7262   return 0;
  7264 _ACEOF
  7265 rm -f conftest.$ac_objext conftest$ac_exeext
  7266 if { (ac_try="$ac_link"
  7267 case "(($ac_try" in
  7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7269   *) ac_try_echo=$ac_try;;
  7270 esac
  7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7272   (eval "$ac_link") 2>conftest.er1
  7273   ac_status=$?
  7274   grep -v '^ *+' conftest.er1 >conftest.err
  7275   rm -f conftest.er1
  7276   cat conftest.err >&5
  7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278   (exit $ac_status); } && {
  7279 	 test -z "$ac_c_werror_flag" ||
  7280 	 test ! -s conftest.err
  7281        } && test -s conftest$ac_exeext &&
  7282        $as_test_x conftest$ac_exeext; then
  7283   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
  7284 else
  7285   echo "$as_me: failed program was:" >&5
  7286 sed 's/^/| /' conftest.$ac_ext >&5
  7288 	ac_cv_lib_OSMesa_OSMesaCreateContext=no
  7289 fi
  7291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7292       conftest$ac_exeext conftest.$ac_ext
  7293 LIBS=$ac_check_lib_save_LIBS
  7294 fi
  7295 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
  7296 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
  7297 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
  7298   cat >>confdefs.h <<_ACEOF
  7299 #define HAVE_LIBOSMESA 1
  7300 _ACEOF
  7302   LIBS="-lOSMesa $LIBS"
  7304 else
  7305   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
  7306 See \`config.log' for more details." >&5
  7307 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
  7308 See \`config.log' for more details." >&2;}
  7309    { (exit 1); exit 1; }; }
  7310 fi
  7312   if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7313   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7314 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  7315 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7316   echo $ECHO_N "(cached) $ECHO_C" >&6
  7317 fi
  7318 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7319 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  7320 else
  7321   # Is the header compilable?
  7322 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
  7323 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
  7324 cat >conftest.$ac_ext <<_ACEOF
  7325 /* confdefs.h.  */
  7326 _ACEOF
  7327 cat confdefs.h >>conftest.$ac_ext
  7328 cat >>conftest.$ac_ext <<_ACEOF
  7329 /* end confdefs.h.  */
  7330 $ac_includes_default
  7331 #include <GL/osmesa.h>
  7332 _ACEOF
  7333 rm -f conftest.$ac_objext
  7334 if { (ac_try="$ac_compile"
  7335 case "(($ac_try" in
  7336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7337   *) ac_try_echo=$ac_try;;
  7338 esac
  7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7340   (eval "$ac_compile") 2>conftest.er1
  7341   ac_status=$?
  7342   grep -v '^ *+' conftest.er1 >conftest.err
  7343   rm -f conftest.er1
  7344   cat conftest.err >&5
  7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346   (exit $ac_status); } && {
  7347 	 test -z "$ac_c_werror_flag" ||
  7348 	 test ! -s conftest.err
  7349        } && test -s conftest.$ac_objext; then
  7350   ac_header_compiler=yes
  7351 else
  7352   echo "$as_me: failed program was:" >&5
  7353 sed 's/^/| /' conftest.$ac_ext >&5
  7355 	ac_header_compiler=no
  7356 fi
  7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7360 echo "${ECHO_T}$ac_header_compiler" >&6; }
  7362 # Is the header present?
  7363 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
  7364 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
  7365 cat >conftest.$ac_ext <<_ACEOF
  7366 /* confdefs.h.  */
  7367 _ACEOF
  7368 cat confdefs.h >>conftest.$ac_ext
  7369 cat >>conftest.$ac_ext <<_ACEOF
  7370 /* end confdefs.h.  */
  7371 #include <GL/osmesa.h>
  7372 _ACEOF
  7373 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7374 case "(($ac_try" in
  7375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7376   *) ac_try_echo=$ac_try;;
  7377 esac
  7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7380   ac_status=$?
  7381   grep -v '^ *+' conftest.er1 >conftest.err
  7382   rm -f conftest.er1
  7383   cat conftest.err >&5
  7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385   (exit $ac_status); } >/dev/null && {
  7386 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7387 	 test ! -s conftest.err
  7388        }; then
  7389   ac_header_preproc=yes
  7390 else
  7391   echo "$as_me: failed program was:" >&5
  7392 sed 's/^/| /' conftest.$ac_ext >&5
  7394   ac_header_preproc=no
  7395 fi
  7397 rm -f conftest.err conftest.$ac_ext
  7398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7399 echo "${ECHO_T}$ac_header_preproc" >&6; }
  7401 # So?  What about this header?
  7402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7403   yes:no: )
  7404     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7405 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7406     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
  7407 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
  7408     ac_header_preproc=yes
  7409     ;;
  7410   no:yes:* )
  7411     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
  7412 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
  7413     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
  7414 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
  7415     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
  7416 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
  7417     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
  7418 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7419     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
  7420 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
  7421     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
  7422 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
  7424     ;;
  7425 esac
  7426 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
  7427 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
  7428 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
  7429   echo $ECHO_N "(cached) $ECHO_C" >&6
  7430 else
  7431   ac_cv_header_GL_osmesa_h=$ac_header_preproc
  7432 fi
  7433 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
  7434 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
  7436 fi
  7437 if test $ac_cv_header_GL_osmesa_h = yes; then
  7439 else
  7440   { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
  7441 See \`config.log' for more details." >&5
  7442 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
  7443 See \`config.log' for more details." >&2;}
  7444    { (exit 1); exit 1; }; }
  7445 fi
  7448   HAVE_OSMESA='yes'
  7450 cat >>confdefs.h <<\_ACEOF
  7451 #define HAVE_OSMESA 1
  7452 _ACEOF
  7454 else
  7457    if test "x$APPLE_BUILD" != 'xyes'; then
  7459 { echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
  7460 echo $ECHO_N "checking for glVertex3f in -lGL... $ECHO_C" >&6; }
  7461 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
  7462   echo $ECHO_N "(cached) $ECHO_C" >&6
  7463 else
  7464   ac_check_lib_save_LIBS=$LIBS
  7465 LIBS="-lGL  $LIBS"
  7466 cat >conftest.$ac_ext <<_ACEOF
  7467 /* confdefs.h.  */
  7468 _ACEOF
  7469 cat confdefs.h >>conftest.$ac_ext
  7470 cat >>conftest.$ac_ext <<_ACEOF
  7471 /* end confdefs.h.  */
  7473 /* Override any GCC internal prototype to avoid an error.
  7474    Use char because int might match the return type of a GCC
  7475    builtin and then its argument prototype would still apply.  */
  7476 #ifdef __cplusplus
  7477 extern "C"
  7478 #endif
  7479 char glVertex3f ();
  7480 int
  7481 main ()
  7483 return glVertex3f ();
  7485   return 0;
  7487 _ACEOF
  7488 rm -f conftest.$ac_objext conftest$ac_exeext
  7489 if { (ac_try="$ac_link"
  7490 case "(($ac_try" in
  7491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7492   *) ac_try_echo=$ac_try;;
  7493 esac
  7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7495   (eval "$ac_link") 2>conftest.er1
  7496   ac_status=$?
  7497   grep -v '^ *+' conftest.er1 >conftest.err
  7498   rm -f conftest.er1
  7499   cat conftest.err >&5
  7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7501   (exit $ac_status); } && {
  7502 	 test -z "$ac_c_werror_flag" ||
  7503 	 test ! -s conftest.err
  7504        } && test -s conftest$ac_exeext &&
  7505        $as_test_x conftest$ac_exeext; then
  7506   ac_cv_lib_GL_glVertex3f=yes
  7507 else
  7508   echo "$as_me: failed program was:" >&5
  7509 sed 's/^/| /' conftest.$ac_ext >&5
  7511 	ac_cv_lib_GL_glVertex3f=no
  7512 fi
  7514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7515       conftest$ac_exeext conftest.$ac_ext
  7516 LIBS=$ac_check_lib_save_LIBS
  7517 fi
  7518 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
  7519 echo "${ECHO_T}$ac_cv_lib_GL_glVertex3f" >&6; }
  7520 if test $ac_cv_lib_GL_glVertex3f = yes; then
  7521   cat >>confdefs.h <<_ACEOF
  7522 #define HAVE_LIBGL 1
  7523 _ACEOF
  7525   LIBS="-lGL $LIBS"
  7527 else
  7529           { { echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7530 See \`config.log' for more details." >&5
  7531 echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
  7532 See \`config.log' for more details." >&2;}
  7533    { (exit 1); exit 1; }; }
  7534 fi
  7536       if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7537   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7538 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  7539 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7540   echo $ECHO_N "(cached) $ECHO_C" >&6
  7541 fi
  7542 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7543 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  7544 else
  7545   # Is the header compilable?
  7546 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
  7547 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
  7548 cat >conftest.$ac_ext <<_ACEOF
  7549 /* confdefs.h.  */
  7550 _ACEOF
  7551 cat confdefs.h >>conftest.$ac_ext
  7552 cat >>conftest.$ac_ext <<_ACEOF
  7553 /* end confdefs.h.  */
  7554 $ac_includes_default
  7555 #include <GL/gl.h>
  7556 _ACEOF
  7557 rm -f conftest.$ac_objext
  7558 if { (ac_try="$ac_compile"
  7559 case "(($ac_try" in
  7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7561   *) ac_try_echo=$ac_try;;
  7562 esac
  7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7564   (eval "$ac_compile") 2>conftest.er1
  7565   ac_status=$?
  7566   grep -v '^ *+' conftest.er1 >conftest.err
  7567   rm -f conftest.er1
  7568   cat conftest.err >&5
  7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7570   (exit $ac_status); } && {
  7571 	 test -z "$ac_c_werror_flag" ||
  7572 	 test ! -s conftest.err
  7573        } && test -s conftest.$ac_objext; then
  7574   ac_header_compiler=yes
  7575 else
  7576   echo "$as_me: failed program was:" >&5
  7577 sed 's/^/| /' conftest.$ac_ext >&5
  7579 	ac_header_compiler=no
  7580 fi
  7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7584 echo "${ECHO_T}$ac_header_compiler" >&6; }
  7586 # Is the header present?
  7587 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
  7588 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
  7589 cat >conftest.$ac_ext <<_ACEOF
  7590 /* confdefs.h.  */
  7591 _ACEOF
  7592 cat confdefs.h >>conftest.$ac_ext
  7593 cat >>conftest.$ac_ext <<_ACEOF
  7594 /* end confdefs.h.  */
  7595 #include <GL/gl.h>
  7596 _ACEOF
  7597 if { (ac_try="$ac_cpp conftest.$ac_ext"
  7598 case "(($ac_try" in
  7599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7600   *) ac_try_echo=$ac_try;;
  7601 esac
  7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7604   ac_status=$?
  7605   grep -v '^ *+' conftest.er1 >conftest.err
  7606   rm -f conftest.er1
  7607   cat conftest.err >&5
  7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7609   (exit $ac_status); } >/dev/null && {
  7610 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7611 	 test ! -s conftest.err
  7612        }; then
  7613   ac_header_preproc=yes
  7614 else
  7615   echo "$as_me: failed program was:" >&5
  7616 sed 's/^/| /' conftest.$ac_ext >&5
  7618   ac_header_preproc=no
  7619 fi
  7621 rm -f conftest.err conftest.$ac_ext
  7622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7623 echo "${ECHO_T}$ac_header_preproc" >&6; }
  7625 # So?  What about this header?
  7626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7627   yes:no: )
  7628     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7629 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7630     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
  7631 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
  7632     ac_header_preproc=yes
  7633     ;;
  7634   no:yes:* )
  7635     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
  7636 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
  7637     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
  7638 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
  7639     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
  7640 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
  7641     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
  7642 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  7643     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
  7644 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
  7645     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
  7646 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
  7648     ;;
  7649 esac
  7650 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
  7651 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
  7652 if test "${ac_cv_header_GL_gl_h+set}" = set; then
  7653   echo $ECHO_N "(cached) $ECHO_C" >&6
  7654 else
  7655   ac_cv_header_GL_gl_h=$ac_header_preproc
  7656 fi
  7657 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
  7658 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
  7660 fi
  7661 if test $ac_cv_header_GL_gl_h = yes; then
  7663 else
  7665           { { echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  7666 See \`config.log' for more details." >&5
  7667 echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
  7668 See \`config.log' for more details." >&2;}
  7669    { (exit 1); exit 1; }; }
  7670 fi
  7673    fi
  7675    if test "x$HAVE_GTK_X11" = "xyes"; then
  7676       if test "x$APPLE_BUILD" = "xyes"; then
  7677          LIBS="$LIBS -L/usr/X11/lib -lGL"
  7678       fi
  7679       { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
  7680 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
  7681 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
  7682   echo $ECHO_N "(cached) $ECHO_C" >&6
  7683 else
  7684   cat >conftest.$ac_ext <<_ACEOF
  7685 /* confdefs.h.  */
  7686 _ACEOF
  7687 cat confdefs.h >>conftest.$ac_ext
  7688 cat >>conftest.$ac_ext <<_ACEOF
  7689 /* end confdefs.h.  */
  7690 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
  7691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7692 #define glXQueryVersion innocuous_glXQueryVersion
  7694 /* System header to define __stub macros and hopefully few prototypes,
  7695     which can conflict with char glXQueryVersion (); below.
  7696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7697     <limits.h> exists even on freestanding compilers.  */
  7699 #ifdef __STDC__
  7700 # include <limits.h>
  7701 #else
  7702 # include <assert.h>
  7703 #endif
  7705 #undef glXQueryVersion
  7707 /* Override any GCC internal prototype to avoid an error.
  7708    Use char because int might match the return type of a GCC
  7709    builtin and then its argument prototype would still apply.  */
  7710 #ifdef __cplusplus
  7711 extern "C"
  7712 #endif
  7713 char glXQueryVersion ();
  7714 /* The GNU C library defines this for functions which it implements
  7715     to always fail with ENOSYS.  Some functions are actually named
  7716     something starting with __ and the normal name is an alias.  */
  7717 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
  7718 choke me
  7719 #endif
  7721 int
  7722 main ()
  7724 return glXQueryVersion ();
  7726   return 0;
  7728 _ACEOF
  7729 rm -f conftest.$ac_objext conftest$ac_exeext
  7730 if { (ac_try="$ac_link"
  7731 case "(($ac_try" in
  7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7733   *) ac_try_echo=$ac_try;;
  7734 esac
  7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7736   (eval "$ac_link") 2>conftest.er1
  7737   ac_status=$?
  7738   grep -v '^ *+' conftest.er1 >conftest.err
  7739   rm -f conftest.er1
  7740   cat conftest.err >&5
  7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7742   (exit $ac_status); } && {
  7743 	 test -z "$ac_c_werror_flag" ||
  7744 	 test ! -s conftest.err
  7745        } && test -s conftest$ac_exeext &&
  7746        $as_test_x conftest$ac_exeext; then
  7747   ac_cv_func_glXQueryVersion=yes
  7748 else
  7749   echo "$as_me: failed program was:" >&5
  7750 sed 's/^/| /' conftest.$ac_ext >&5
  7752 	ac_cv_func_glXQueryVersion=no
  7753 fi
  7755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7756       conftest$ac_exeext conftest.$ac_ext
  7757 fi
  7758 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
  7759 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
  7760 if test $ac_cv_func_glXQueryVersion = yes; then
  7762          HAVE_GLX='yes'
  7764 cat >>confdefs.h <<\_ACEOF
  7765 #define HAVE_GLX 1
  7766 _ACEOF
  7768 fi
  7770    elif test "x$HAVE_GTK_OSX" = "xyes"; then
  7771       { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
  7772 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
  7773 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
  7774   echo $ECHO_N "(cached) $ECHO_C" >&6
  7775 else
  7776   cat >conftest.$ac_ext <<_ACEOF
  7777 /* confdefs.h.  */
  7778 _ACEOF
  7779 cat confdefs.h >>conftest.$ac_ext
  7780 cat >>conftest.$ac_ext <<_ACEOF
  7781 /* end confdefs.h.  */
  7782 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
  7783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7784 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
  7786 /* System header to define __stub macros and hopefully few prototypes,
  7787     which can conflict with char NSOpenGLGetVersion (); below.
  7788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7789     <limits.h> exists even on freestanding compilers.  */
  7791 #ifdef __STDC__
  7792 # include <limits.h>
  7793 #else
  7794 # include <assert.h>
  7795 #endif
  7797 #undef NSOpenGLGetVersion
  7799 /* Override any GCC internal prototype to avoid an error.
  7800    Use char because int might match the return type of a GCC
  7801    builtin and then its argument prototype would still apply.  */
  7802 #ifdef __cplusplus
  7803 extern "C"
  7804 #endif
  7805 char NSOpenGLGetVersion ();
  7806 /* The GNU C library defines this for functions which it implements
  7807     to always fail with ENOSYS.  Some functions are actually named
  7808     something starting with __ and the normal name is an alias.  */
  7809 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
  7810 choke me
  7811 #endif
  7813 int
  7814 main ()
  7816 return NSOpenGLGetVersion ();
  7818   return 0;
  7820 _ACEOF
  7821 rm -f conftest.$ac_objext conftest$ac_exeext
  7822 if { (ac_try="$ac_link"
  7823 case "(($ac_try" in
  7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7825   *) ac_try_echo=$ac_try;;
  7826 esac
  7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7828   (eval "$ac_link") 2>conftest.er1
  7829   ac_status=$?
  7830   grep -v '^ *+' conftest.er1 >conftest.err
  7831   rm -f conftest.er1
  7832   cat conftest.err >&5
  7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834   (exit $ac_status); } && {
  7835 	 test -z "$ac_c_werror_flag" ||
  7836 	 test ! -s conftest.err
  7837        } && test -s conftest$ac_exeext &&
  7838        $as_test_x conftest$ac_exeext; then
  7839   ac_cv_func_NSOpenGLGetVersion=yes
  7840 else
  7841   echo "$as_me: failed program was:" >&5
  7842 sed 's/^/| /' conftest.$ac_ext >&5
  7844 	ac_cv_func_NSOpenGLGetVersion=no
  7845 fi
  7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7848       conftest$ac_exeext conftest.$ac_ext
  7849 fi
  7850 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
  7851 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
  7852 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
  7854          HAVE_NSGL='yes'
  7856 cat >>confdefs.h <<\_ACEOF
  7857 #define HAVE_NSGL 1
  7858 _ACEOF
  7860 fi
  7862    fi
  7865 fi
  7869 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
  7870    echo "Warning: Building with no video support"
  7871 fi
  7875 if test "x$HAVE_OSMESA" = "xyes"; then
  7876   VIDEO_OSMESA_TRUE=
  7877   VIDEO_OSMESA_FALSE='#'
  7878 else
  7879   VIDEO_OSMESA_TRUE='#'
  7880   VIDEO_OSMESA_FALSE=
  7881 fi
  7885 if test "x$HAVE_GLX" = "xyes"; then
  7886   VIDEO_GLX_TRUE=
  7887   VIDEO_GLX_FALSE='#'
  7888 else
  7889   VIDEO_GLX_TRUE='#'
  7890   VIDEO_GLX_FALSE=
  7891 fi
  7895 if test "x$HAVE_NSGL" = "xyes"; then
  7896   VIDEO_NSGL_TRUE=
  7897   VIDEO_NSGL_FALSE='#'
  7898 else
  7899   VIDEO_NSGL_TRUE='#'
  7900   VIDEO_NSGL_FALSE=
  7901 fi
  7904 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
  7905 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
  7906 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
  7907   echo $ECHO_N "(cached) $ECHO_C" >&6
  7908 else
  7909   cat >conftest.$ac_ext <<_ACEOF
  7910 /* confdefs.h.  */
  7911 _ACEOF
  7912 cat confdefs.h >>conftest.$ac_ext
  7913 cat >>conftest.$ac_ext <<_ACEOF
  7914 /* end confdefs.h.  */
  7915 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
  7916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  7917 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
  7919 /* System header to define __stub macros and hopefully few prototypes,
  7920     which can conflict with char glGenFramebuffersEXT (); below.
  7921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7922     <limits.h> exists even on freestanding compilers.  */
  7924 #ifdef __STDC__
  7925 # include <limits.h>
  7926 #else
  7927 # include <assert.h>
  7928 #endif
  7930 #undef glGenFramebuffersEXT
  7932 /* Override any GCC internal prototype to avoid an error.
  7933    Use char because int might match the return type of a GCC
  7934    builtin and then its argument prototype would still apply.  */
  7935 #ifdef __cplusplus
  7936 extern "C"
  7937 #endif
  7938 char glGenFramebuffersEXT ();
  7939 /* The GNU C library defines this for functions which it implements
  7940     to always fail with ENOSYS.  Some functions are actually named
  7941     something starting with __ and the normal name is an alias.  */
  7942 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
  7943 choke me
  7944 #endif
  7946 int
  7947 main ()
  7949 return glGenFramebuffersEXT ();
  7951   return 0;
  7953 _ACEOF
  7954 rm -f conftest.$ac_objext conftest$ac_exeext
  7955 if { (ac_try="$ac_link"
  7956 case "(($ac_try" in
  7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7958   *) ac_try_echo=$ac_try;;
  7959 esac
  7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7961   (eval "$ac_link") 2>conftest.er1
  7962   ac_status=$?
  7963   grep -v '^ *+' conftest.er1 >conftest.err
  7964   rm -f conftest.er1
  7965   cat conftest.err >&5
  7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967   (exit $ac_status); } && {
  7968 	 test -z "$ac_c_werror_flag" ||
  7969 	 test ! -s conftest.err
  7970        } && test -s conftest$ac_exeext &&
  7971        $as_test_x conftest$ac_exeext; then
  7972   ac_cv_func_glGenFramebuffersEXT=yes
  7973 else
  7974   echo "$as_me: failed program was:" >&5
  7975 sed 's/^/| /' conftest.$ac_ext >&5
  7977 	ac_cv_func_glGenFramebuffersEXT=no
  7978 fi
  7980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7981       conftest$ac_exeext conftest.$ac_ext
  7982 fi
  7983 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
  7984 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
  7985 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
  7987 cat >>confdefs.h <<\_ACEOF
  7988 #define HAVE_OPENGL_FBO 1
  7989 _ACEOF
  7991 fi
  7993 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
  7994 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
  7995 if test "${ac_cv_func_glCreateShader+set}" = set; then
  7996   echo $ECHO_N "(cached) $ECHO_C" >&6
  7997 else
  7998   cat >conftest.$ac_ext <<_ACEOF
  7999 /* confdefs.h.  */
  8000 _ACEOF
  8001 cat confdefs.h >>conftest.$ac_ext
  8002 cat >>conftest.$ac_ext <<_ACEOF
  8003 /* end confdefs.h.  */
  8004 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
  8005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8006 #define glCreateShader innocuous_glCreateShader
  8008 /* System header to define __stub macros and hopefully few prototypes,
  8009     which can conflict with char glCreateShader (); below.
  8010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8011     <limits.h> exists even on freestanding compilers.  */
  8013 #ifdef __STDC__
  8014 # include <limits.h>
  8015 #else
  8016 # include <assert.h>
  8017 #endif
  8019 #undef glCreateShader
  8021 /* Override any GCC internal prototype to avoid an error.
  8022    Use char because int might match the return type of a GCC
  8023    builtin and then its argument prototype would still apply.  */
  8024 #ifdef __cplusplus
  8025 extern "C"
  8026 #endif
  8027 char glCreateShader ();
  8028 /* The GNU C library defines this for functions which it implements
  8029     to always fail with ENOSYS.  Some functions are actually named
  8030     something starting with __ and the normal name is an alias.  */
  8031 #if defined __stub_glCreateShader || defined __stub___glCreateShader
  8032 choke me
  8033 #endif
  8035 int
  8036 main ()
  8038 return glCreateShader ();
  8040   return 0;
  8042 _ACEOF
  8043 rm -f conftest.$ac_objext conftest$ac_exeext
  8044 if { (ac_try="$ac_link"
  8045 case "(($ac_try" in
  8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8047   *) ac_try_echo=$ac_try;;
  8048 esac
  8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8050   (eval "$ac_link") 2>conftest.er1
  8051   ac_status=$?
  8052   grep -v '^ *+' conftest.er1 >conftest.err
  8053   rm -f conftest.er1
  8054   cat conftest.err >&5
  8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056   (exit $ac_status); } && {
  8057 	 test -z "$ac_c_werror_flag" ||
  8058 	 test ! -s conftest.err
  8059        } && test -s conftest$ac_exeext &&
  8060        $as_test_x conftest$ac_exeext; then
  8061   ac_cv_func_glCreateShader=yes
  8062 else
  8063   echo "$as_me: failed program was:" >&5
  8064 sed 's/^/| /' conftest.$ac_ext >&5
  8066 	ac_cv_func_glCreateShader=no
  8067 fi
  8069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8070       conftest$ac_exeext conftest.$ac_ext
  8071 fi
  8072 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
  8073 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
  8074 if test $ac_cv_func_glCreateShader = yes; then
  8076 cat >>confdefs.h <<\_ACEOF
  8077 #define HAVE_OPENGL_SHADER 1
  8078 _ACEOF
  8080 fi
  8082 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
  8083 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
  8084 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
  8085   echo $ECHO_N "(cached) $ECHO_C" >&6
  8086 else
  8087   cat >conftest.$ac_ext <<_ACEOF
  8088 /* confdefs.h.  */
  8089 _ACEOF
  8090 cat confdefs.h >>conftest.$ac_ext
  8091 cat >>conftest.$ac_ext <<_ACEOF
  8092 /* end confdefs.h.  */
  8093 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
  8094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8095 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
  8097 /* System header to define __stub macros and hopefully few prototypes,
  8098     which can conflict with char glCreateShaderObjectARB (); below.
  8099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8100     <limits.h> exists even on freestanding compilers.  */
  8102 #ifdef __STDC__
  8103 # include <limits.h>
  8104 #else
  8105 # include <assert.h>
  8106 #endif
  8108 #undef glCreateShaderObjectARB
  8110 /* Override any GCC internal prototype to avoid an error.
  8111    Use char because int might match the return type of a GCC
  8112    builtin and then its argument prototype would still apply.  */
  8113 #ifdef __cplusplus
  8114 extern "C"
  8115 #endif
  8116 char glCreateShaderObjectARB ();
  8117 /* The GNU C library defines this for functions which it implements
  8118     to always fail with ENOSYS.  Some functions are actually named
  8119     something starting with __ and the normal name is an alias.  */
  8120 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
  8121 choke me
  8122 #endif
  8124 int
  8125 main ()
  8127 return glCreateShaderObjectARB ();
  8129   return 0;
  8131 _ACEOF
  8132 rm -f conftest.$ac_objext conftest$ac_exeext
  8133 if { (ac_try="$ac_link"
  8134 case "(($ac_try" in
  8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8136   *) ac_try_echo=$ac_try;;
  8137 esac
  8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8139   (eval "$ac_link") 2>conftest.er1
  8140   ac_status=$?
  8141   grep -v '^ *+' conftest.er1 >conftest.err
  8142   rm -f conftest.er1
  8143   cat conftest.err >&5
  8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8145   (exit $ac_status); } && {
  8146 	 test -z "$ac_c_werror_flag" ||
  8147 	 test ! -s conftest.err
  8148        } && test -s conftest$ac_exeext &&
  8149        $as_test_x conftest$ac_exeext; then
  8150   ac_cv_func_glCreateShaderObjectARB=yes
  8151 else
  8152   echo "$as_me: failed program was:" >&5
  8153 sed 's/^/| /' conftest.$ac_ext >&5
  8155 	ac_cv_func_glCreateShaderObjectARB=no
  8156 fi
  8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8159       conftest$ac_exeext conftest.$ac_ext
  8160 fi
  8161 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
  8162 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
  8163 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
  8165 cat >>confdefs.h <<\_ACEOF
  8166 #define HAVE_OPENGL_SHADER_ARB 1
  8167 _ACEOF
  8169 fi
  8173 case $host_cpu in
  8174     i386|i486|i586|i686|x86_64)
  8175 	SH4_TRANSLATOR="x86"
  8177 cat >>confdefs.h <<_ACEOF
  8178 #define SH4_TRANSLATOR TARGET_X86
  8179 _ACEOF
  8180 ;;
  8181     *)
  8182 	echo "Warning: No translator available for $host. Building emulation core only";;
  8183 esac
  8186 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
  8187   BUILD_SH4X86_TRUE=
  8188   BUILD_SH4X86_FALSE='#'
  8189 else
  8190   BUILD_SH4X86_TRUE='#'
  8191   BUILD_SH4X86_FALSE=
  8192 fi
  8196 if test "$SH4_TRANSLATOR" = "x86_64"; then
  8197   BUILD_X86_64_TRUE=
  8198   BUILD_X86_64_FALSE='#'
  8199 else
  8200   BUILD_X86_64_TRUE='#'
  8201   BUILD_X86_64_FALSE=
  8202 fi
  8206 pkg_failed=no
  8207 { echo "$as_me:$LINENO: checking for PULSE" >&5
  8208 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
  8210 if test -n "$PKG_CONFIG"; then
  8211     if test -n "$PULSE_CFLAGS"; then
  8212         pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  8213     else
  8214         if test -n "$PKG_CONFIG" && \
  8215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8216   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8217   ac_status=$?
  8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219   (exit $ac_status); }; then
  8220   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  8221 else
  8222   pkg_failed=yes
  8223 fi
  8224     fi
  8225 else
  8226 	pkg_failed=untried
  8227 fi
  8228 if test -n "$PKG_CONFIG"; then
  8229     if test -n "$PULSE_LIBS"; then
  8230         pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  8231     else
  8232         if test -n "$PKG_CONFIG" && \
  8233     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
  8234   ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  8235   ac_status=$?
  8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8237   (exit $ac_status); }; then
  8238   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  8239 else
  8240   pkg_failed=yes
  8241 fi
  8242     fi
  8243 else
  8244 	pkg_failed=untried
  8245 fi
  8249 if test $pkg_failed = yes; then
  8251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8252         _pkg_short_errors_supported=yes
  8253 else
  8254         _pkg_short_errors_supported=no
  8255 fi
  8256         if test $_pkg_short_errors_supported = yes; then
  8257 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
  8258         else
  8259 	        PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
  8260         fi
  8261 	# Put the nasty error message in config.log where it belongs
  8262 	echo "$PULSE_PKG_ERRORS" >&5
  8264 	{ echo "$as_me:$LINENO: result: no" >&5
  8265 echo "${ECHO_T}no" >&6; }
  8266                 true
  8267 elif test $pkg_failed = untried; then
  8268 	true
  8269 else
  8270 	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  8271 	PULSE_LIBS=$pkg_cv_PULSE_LIBS
  8272         { echo "$as_me:$LINENO: result: yes" >&5
  8273 echo "${ECHO_T}yes" >&6; }
  8275      HAVE_PULSE='yes'
  8277 cat >>confdefs.h <<\_ACEOF
  8278 #define HAVE_PULSE 1
  8279 _ACEOF
  8281 fi
  8284 if test "$HAVE_PULSE" = 'yes' ; then
  8285   AUDIO_PULSE_TRUE=
  8286   AUDIO_PULSE_FALSE='#'
  8287 else
  8288   AUDIO_PULSE_TRUE='#'
  8289   AUDIO_PULSE_FALSE=
  8290 fi
  8294 pkg_failed=no
  8295 { echo "$as_me:$LINENO: checking for ESOUND" >&5
  8296 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
  8298 if test -n "$PKG_CONFIG"; then
  8299     if test -n "$ESOUND_CFLAGS"; then
  8300         pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
  8301     else
  8302         if test -n "$PKG_CONFIG" && \
  8303     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8304   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8305   ac_status=$?
  8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8307   (exit $ac_status); }; then
  8308   pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  8309 else
  8310   pkg_failed=yes
  8311 fi
  8312     fi
  8313 else
  8314 	pkg_failed=untried
  8315 fi
  8316 if test -n "$PKG_CONFIG"; then
  8317     if test -n "$ESOUND_LIBS"; then
  8318         pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
  8319     else
  8320         if test -n "$PKG_CONFIG" && \
  8321     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
  8322   ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  8323   ac_status=$?
  8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8325   (exit $ac_status); }; then
  8326   pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  8327 else
  8328   pkg_failed=yes
  8329 fi
  8330     fi
  8331 else
  8332 	pkg_failed=untried
  8333 fi
  8337 if test $pkg_failed = yes; then
  8339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8340         _pkg_short_errors_supported=yes
  8341 else
  8342         _pkg_short_errors_supported=no
  8343 fi
  8344         if test $_pkg_short_errors_supported = yes; then
  8345 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
  8346         else
  8347 	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
  8348         fi
  8349 	# Put the nasty error message in config.log where it belongs
  8350 	echo "$ESOUND_PKG_ERRORS" >&5
  8352 	{ echo "$as_me:$LINENO: result: no" >&5
  8353 echo "${ECHO_T}no" >&6; }
  8354                 true
  8355 elif test $pkg_failed = untried; then
  8356 	true
  8357 else
  8358 	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
  8359 	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
  8360         { echo "$as_me:$LINENO: result: yes" >&5
  8361 echo "${ECHO_T}yes" >&6; }
  8363      HAVE_ESOUND='yes'
  8365 cat >>confdefs.h <<\_ACEOF
  8366 #define HAVE_ESOUND 1
  8367 _ACEOF
  8369 fi
  8372 if test "$HAVE_ESOUND" = 'yes' ; then
  8373   AUDIO_ESOUND_TRUE=
  8374   AUDIO_ESOUND_FALSE='#'
  8375 else
  8376   AUDIO_ESOUND_TRUE='#'
  8377   AUDIO_ESOUND_FALSE=
  8378 fi
  8382 pkg_failed=no
  8383 { echo "$as_me:$LINENO: checking for ALSA" >&5
  8384 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
  8386 if test -n "$PKG_CONFIG"; then
  8387     if test -n "$ALSA_CFLAGS"; then
  8388         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
  8389     else
  8390         if test -n "$PKG_CONFIG" && \
  8391     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  8392   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  8393   ac_status=$?
  8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8395   (exit $ac_status); }; then
  8396   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
  8397 else
  8398   pkg_failed=yes
  8399 fi
  8400     fi
  8401 else
  8402 	pkg_failed=untried
  8403 fi
  8404 if test -n "$PKG_CONFIG"; then
  8405     if test -n "$ALSA_LIBS"; then
  8406         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
  8407     else
  8408         if test -n "$PKG_CONFIG" && \
  8409     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
  8410   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
  8411   ac_status=$?
  8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8413   (exit $ac_status); }; then
  8414   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
  8415 else
  8416   pkg_failed=yes
  8417 fi
  8418     fi
  8419 else
  8420 	pkg_failed=untried
  8421 fi
  8425 if test $pkg_failed = yes; then
  8427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8428         _pkg_short_errors_supported=yes
  8429 else
  8430         _pkg_short_errors_supported=no
  8431 fi
  8432         if test $_pkg_short_errors_supported = yes; then
  8433 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
  8434         else
  8435 	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  8436         fi
  8437 	# Put the nasty error message in config.log where it belongs
  8438 	echo "$ALSA_PKG_ERRORS" >&5
  8440 	{ echo "$as_me:$LINENO: result: no" >&5
  8441 echo "${ECHO_T}no" >&6; }
  8442                 true
  8443 elif test $pkg_failed = untried; then
  8444 	true
  8445 else
  8446 	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
  8447 	ALSA_LIBS=$pkg_cv_ALSA_LIBS
  8448         { echo "$as_me:$LINENO: result: yes" >&5
  8449 echo "${ECHO_T}yes" >&6; }
  8451      HAVE_ALSA='yes'
  8453 cat >>confdefs.h <<\_ACEOF
  8454 #define HAVE_ALSA 1
  8455 _ACEOF
  8457 fi
  8460 if test "$HAVE_ALSA" = 'yes' ; then
  8461   AUDIO_ALSA_TRUE=
  8462   AUDIO_ALSA_FALSE='#'
  8463 else
  8464   AUDIO_ALSA_TRUE='#'
  8465   AUDIO_ALSA_FALSE=
  8466 fi
  8469 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
  8470    echo "Warning: Building without audio support"
  8471 fi
  8473 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8474   { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  8475 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  8476 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8477   echo $ECHO_N "(cached) $ECHO_C" >&6
  8478 fi
  8479 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  8480 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  8481 else
  8482   # Is the header compilable?
  8483 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
  8484 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
  8485 cat >conftest.$ac_ext <<_ACEOF
  8486 /* confdefs.h.  */
  8487 _ACEOF
  8488 cat confdefs.h >>conftest.$ac_ext
  8489 cat >>conftest.$ac_ext <<_ACEOF
  8490 /* end confdefs.h.  */
  8491 $ac_includes_default
  8492 #include <linux/cdrom.h>
  8493 _ACEOF
  8494 rm -f conftest.$ac_objext
  8495 if { (ac_try="$ac_compile"
  8496 case "(($ac_try" in
  8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8498   *) ac_try_echo=$ac_try;;
  8499 esac
  8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8501   (eval "$ac_compile") 2>conftest.er1
  8502   ac_status=$?
  8503   grep -v '^ *+' conftest.er1 >conftest.err
  8504   rm -f conftest.er1
  8505   cat conftest.err >&5
  8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8507   (exit $ac_status); } && {
  8508 	 test -z "$ac_c_werror_flag" ||
  8509 	 test ! -s conftest.err
  8510        } && test -s conftest.$ac_objext; then
  8511   ac_header_compiler=yes
  8512 else
  8513   echo "$as_me: failed program was:" >&5
  8514 sed 's/^/| /' conftest.$ac_ext >&5
  8516 	ac_header_compiler=no
  8517 fi
  8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8521 echo "${ECHO_T}$ac_header_compiler" >&6; }
  8523 # Is the header present?
  8524 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
  8525 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
  8526 cat >conftest.$ac_ext <<_ACEOF
  8527 /* confdefs.h.  */
  8528 _ACEOF
  8529 cat confdefs.h >>conftest.$ac_ext
  8530 cat >>conftest.$ac_ext <<_ACEOF
  8531 /* end confdefs.h.  */
  8532 #include <linux/cdrom.h>
  8533 _ACEOF
  8534 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8535 case "(($ac_try" in
  8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8537   *) ac_try_echo=$ac_try;;
  8538 esac
  8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8541   ac_status=$?
  8542   grep -v '^ *+' conftest.er1 >conftest.err
  8543   rm -f conftest.er1
  8544   cat conftest.err >&5
  8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8546   (exit $ac_status); } >/dev/null && {
  8547 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8548 	 test ! -s conftest.err
  8549        }; then
  8550   ac_header_preproc=yes
  8551 else
  8552   echo "$as_me: failed program was:" >&5
  8553 sed 's/^/| /' conftest.$ac_ext >&5
  8555   ac_header_preproc=no
  8556 fi
  8558 rm -f conftest.err conftest.$ac_ext
  8559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8560 echo "${ECHO_T}$ac_header_preproc" >&6; }
  8562 # So?  What about this header?
  8563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8564   yes:no: )
  8565     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8566 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8567     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
  8568 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
  8569     ac_header_preproc=yes
  8570     ;;
  8571   no:yes:* )
  8572     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
  8573 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
  8574     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&5
  8575 echo "$as_me: WARNING: linux/cdrom.h:     check for missing prerequisite headers?" >&2;}
  8576     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
  8577 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
  8578     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&5
  8579 echo "$as_me: WARNING: linux/cdrom.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8580     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
  8581 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
  8582     { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
  8583 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
  8585     ;;
  8586 esac
  8587 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
  8588 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
  8589 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
  8590   echo $ECHO_N "(cached) $ECHO_C" >&6
  8591 else
  8592   ac_cv_header_linux_cdrom_h=$ac_header_preproc
  8593 fi
  8594 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
  8595 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
  8597 fi
  8598 if test $ac_cv_header_linux_cdrom_h = yes; then
  8599   HAVE_LINUX_CDROM_H=yes
  8600 else
  8602     echo "Linux CDROM support not found, building without it."
  8603 fi
  8608 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
  8609   CDROM_LINUX_TRUE=
  8610   CDROM_LINUX_FALSE='#'
  8611 else
  8612   CDROM_LINUX_TRUE='#'
  8613   CDROM_LINUX_FALSE=
  8614 fi
  8617 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8618   { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  8619 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  8620 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8621   echo $ECHO_N "(cached) $ECHO_C" >&6
  8622 fi
  8623 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  8624 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  8625 else
  8626   # Is the header compilable?
  8627 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
  8628 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
  8629 cat >conftest.$ac_ext <<_ACEOF
  8630 /* confdefs.h.  */
  8631 _ACEOF
  8632 cat confdefs.h >>conftest.$ac_ext
  8633 cat >>conftest.$ac_ext <<_ACEOF
  8634 /* end confdefs.h.  */
  8635 $ac_includes_default
  8636 #include <linux/joystick.h>
  8637 _ACEOF
  8638 rm -f conftest.$ac_objext
  8639 if { (ac_try="$ac_compile"
  8640 case "(($ac_try" in
  8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8642   *) ac_try_echo=$ac_try;;
  8643 esac
  8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8645   (eval "$ac_compile") 2>conftest.er1
  8646   ac_status=$?
  8647   grep -v '^ *+' conftest.er1 >conftest.err
  8648   rm -f conftest.er1
  8649   cat conftest.err >&5
  8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8651   (exit $ac_status); } && {
  8652 	 test -z "$ac_c_werror_flag" ||
  8653 	 test ! -s conftest.err
  8654        } && test -s conftest.$ac_objext; then
  8655   ac_header_compiler=yes
  8656 else
  8657   echo "$as_me: failed program was:" >&5
  8658 sed 's/^/| /' conftest.$ac_ext >&5
  8660 	ac_header_compiler=no
  8661 fi
  8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8665 echo "${ECHO_T}$ac_header_compiler" >&6; }
  8667 # Is the header present?
  8668 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
  8669 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
  8670 cat >conftest.$ac_ext <<_ACEOF
  8671 /* confdefs.h.  */
  8672 _ACEOF
  8673 cat confdefs.h >>conftest.$ac_ext
  8674 cat >>conftest.$ac_ext <<_ACEOF
  8675 /* end confdefs.h.  */
  8676 #include <linux/joystick.h>
  8677 _ACEOF
  8678 if { (ac_try="$ac_cpp conftest.$ac_ext"
  8679 case "(($ac_try" in
  8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8681   *) ac_try_echo=$ac_try;;
  8682 esac
  8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8685   ac_status=$?
  8686   grep -v '^ *+' conftest.er1 >conftest.err
  8687   rm -f conftest.er1
  8688   cat conftest.err >&5
  8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8690   (exit $ac_status); } >/dev/null && {
  8691 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8692 	 test ! -s conftest.err
  8693        }; then
  8694   ac_header_preproc=yes
  8695 else
  8696   echo "$as_me: failed program was:" >&5
  8697 sed 's/^/| /' conftest.$ac_ext >&5
  8699   ac_header_preproc=no
  8700 fi
  8702 rm -f conftest.err conftest.$ac_ext
  8703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8704 echo "${ECHO_T}$ac_header_preproc" >&6; }
  8706 # So?  What about this header?
  8707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8708   yes:no: )
  8709     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8710 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8711     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
  8712 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
  8713     ac_header_preproc=yes
  8714     ;;
  8715   no:yes:* )
  8716     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
  8717 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
  8718     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&5
  8719 echo "$as_me: WARNING: linux/joystick.h:     check for missing prerequisite headers?" >&2;}
  8720     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
  8721 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
  8722     { echo "$as_me:$LINENO: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&5
  8723 echo "$as_me: WARNING: linux/joystick.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  8724     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
  8725 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
  8726     { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
  8727 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
  8729     ;;
  8730 esac
  8731 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
  8732 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
  8733 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
  8734   echo $ECHO_N "(cached) $ECHO_C" >&6
  8735 else
  8736   ac_cv_header_linux_joystick_h=$ac_header_preproc
  8737 fi
  8738 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
  8739 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
  8741 fi
  8742 if test $ac_cv_header_linux_joystick_h = yes; then
  8744     HAVE_LINUX_JOYSTICK_H=yes
  8746 cat >>confdefs.h <<\_ACEOF
  8747 #define HAVE_LINUX_JOYSTICK 1
  8748 _ACEOF
  8750 else
  8751    echo "Linux Joystick support not found, building without it."
  8752 fi
  8757 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
  8758   JOY_LINUX_TRUE=
  8759   JOY_LINUX_FALSE='#'
  8760 else
  8761   JOY_LINUX_TRUE='#'
  8762   JOY_LINUX_FALSE=
  8763 fi
  8766 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
  8767 set dummy sh-elf-gcc; ac_word=$2
  8768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8770 if test "${ac_cv_path_SHCC+set}" = set; then
  8771   echo $ECHO_N "(cached) $ECHO_C" >&6
  8772 else
  8773   case $SHCC in
  8774   [\\/]* | ?:[\\/]*)
  8775   ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
  8776   ;;
  8777   *)
  8778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8779 for as_dir in $PATH
  8780 do
  8781   IFS=$as_save_IFS
  8782   test -z "$as_dir" && as_dir=.
  8783   for ac_exec_ext in '' $ac_executable_extensions; do
  8784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8785     ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
  8786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8787     break 2
  8788   fi
  8789 done
  8790 done
  8791 IFS=$as_save_IFS
  8793   ;;
  8794 esac
  8795 fi
  8796 SHCC=$ac_cv_path_SHCC
  8797 if test -n "$SHCC"; then
  8798   { echo "$as_me:$LINENO: result: $SHCC" >&5
  8799 echo "${ECHO_T}$SHCC" >&6; }
  8800 else
  8801   { echo "$as_me:$LINENO: result: no" >&5
  8802 echo "${ECHO_T}no" >&6; }
  8803 fi
  8806 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
  8807 set dummy sh-elf-ld; ac_word=$2
  8808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8810 if test "${ac_cv_path_SHLD+set}" = set; then
  8811   echo $ECHO_N "(cached) $ECHO_C" >&6
  8812 else
  8813   case $SHLD in
  8814   [\\/]* | ?:[\\/]*)
  8815   ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
  8816   ;;
  8817   *)
  8818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8819 for as_dir in $PATH
  8820 do
  8821   IFS=$as_save_IFS
  8822   test -z "$as_dir" && as_dir=.
  8823   for ac_exec_ext in '' $ac_executable_extensions; do
  8824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8825     ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
  8826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8827     break 2
  8828   fi
  8829 done
  8830 done
  8831 IFS=$as_save_IFS
  8833   ;;
  8834 esac
  8835 fi
  8836 SHLD=$ac_cv_path_SHLD
  8837 if test -n "$SHLD"; then
  8838   { echo "$as_me:$LINENO: result: $SHLD" >&5
  8839 echo "${ECHO_T}$SHLD" >&6; }
  8840 else
  8841   { echo "$as_me:$LINENO: result: no" >&5
  8842 echo "${ECHO_T}no" >&6; }
  8843 fi
  8846 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
  8847 set dummy sh-elf-objcopy; ac_word=$2
  8848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8850 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
  8851   echo $ECHO_N "(cached) $ECHO_C" >&6
  8852 else
  8853   case $SHOBJCOPY in
  8854   [\\/]* | ?:[\\/]*)
  8855   ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
  8856   ;;
  8857   *)
  8858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8859 for as_dir in $PATH
  8860 do
  8861   IFS=$as_save_IFS
  8862   test -z "$as_dir" && as_dir=.
  8863   for ac_exec_ext in '' $ac_executable_extensions; do
  8864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8865     ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  8866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8867     break 2
  8868   fi
  8869 done
  8870 done
  8871 IFS=$as_save_IFS
  8873   ;;
  8874 esac
  8875 fi
  8876 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
  8877 if test -n "$SHOBJCOPY"; then
  8878   { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
  8879 echo "${ECHO_T}$SHOBJCOPY" >&6; }
  8880 else
  8881   { echo "$as_me:$LINENO: result: no" >&5
  8882 echo "${ECHO_T}no" >&6; }
  8883 fi
  8886 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
  8887 set dummy arm-elf-gcc; ac_word=$2
  8888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8890 if test "${ac_cv_path_ARMCC+set}" = set; then
  8891   echo $ECHO_N "(cached) $ECHO_C" >&6
  8892 else
  8893   case $ARMCC in
  8894   [\\/]* | ?:[\\/]*)
  8895   ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
  8896   ;;
  8897   *)
  8898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8899 for as_dir in $PATH
  8900 do
  8901   IFS=$as_save_IFS
  8902   test -z "$as_dir" && as_dir=.
  8903   for ac_exec_ext in '' $ac_executable_extensions; do
  8904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8905     ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
  8906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8907     break 2
  8908   fi
  8909 done
  8910 done
  8911 IFS=$as_save_IFS
  8913   ;;
  8914 esac
  8915 fi
  8916 ARMCC=$ac_cv_path_ARMCC
  8917 if test -n "$ARMCC"; then
  8918   { echo "$as_me:$LINENO: result: $ARMCC" >&5
  8919 echo "${ECHO_T}$ARMCC" >&6; }
  8920 else
  8921   { echo "$as_me:$LINENO: result: no" >&5
  8922 echo "${ECHO_T}no" >&6; }
  8923 fi
  8926 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
  8927 set dummy arm-elf-ld; ac_word=$2
  8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8930 if test "${ac_cv_path_ARMLD+set}" = set; then
  8931   echo $ECHO_N "(cached) $ECHO_C" >&6
  8932 else
  8933   case $ARMLD in
  8934   [\\/]* | ?:[\\/]*)
  8935   ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
  8936   ;;
  8937   *)
  8938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8939 for as_dir in $PATH
  8940 do
  8941   IFS=$as_save_IFS
  8942   test -z "$as_dir" && as_dir=.
  8943   for ac_exec_ext in '' $ac_executable_extensions; do
  8944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8945     ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
  8946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8947     break 2
  8948   fi
  8949 done
  8950 done
  8951 IFS=$as_save_IFS
  8953   ;;
  8954 esac
  8955 fi
  8956 ARMLD=$ac_cv_path_ARMLD
  8957 if test -n "$ARMLD"; then
  8958   { echo "$as_me:$LINENO: result: $ARMLD" >&5
  8959 echo "${ECHO_T}$ARMLD" >&6; }
  8960 else
  8961   { echo "$as_me:$LINENO: result: no" >&5
  8962 echo "${ECHO_T}no" >&6; }
  8963 fi
  8966 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
  8967 set dummy arm-elf-objcopy; ac_word=$2
  8968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8970 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
  8971   echo $ECHO_N "(cached) $ECHO_C" >&6
  8972 else
  8973   case $ARMOBJCOPY in
  8974   [\\/]* | ?:[\\/]*)
  8975   ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
  8976   ;;
  8977   *)
  8978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8979 for as_dir in $PATH
  8980 do
  8981   IFS=$as_save_IFS
  8982   test -z "$as_dir" && as_dir=.
  8983   for ac_exec_ext in '' $ac_executable_extensions; do
  8984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8985     ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
  8986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8987     break 2
  8988   fi
  8989 done
  8990 done
  8991 IFS=$as_save_IFS
  8993   ;;
  8994 esac
  8995 fi
  8996 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
  8997 if test -n "$ARMOBJCOPY"; then
  8998   { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
  8999 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
  9000 else
  9001   { echo "$as_me:$LINENO: result: no" >&5
  9002 echo "${ECHO_T}no" >&6; }
  9003 fi
  9007 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
  9008   BUILD_SH="no"
  9009   echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
  9010 else
  9011   BUILD_SH="yes"
  9012 fi
  9013 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
  9014   BUILD_ARM="no"
  9015   echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
  9016 else
  9017   BUILD_ARM="yes"
  9018 fi
  9021 if test "$BUILD_SH" = "yes"; then
  9022   BUILD_SYSTEST_TRUE=
  9023   BUILD_SYSTEST_FALSE='#'
  9024 else
  9025   BUILD_SYSTEST_TRUE='#'
  9026   BUILD_SYSTEST_FALSE=
  9027 fi
  9031 if test "$BUILD_ARM" = "yes"; then
  9032   BUILD_ARMTEST_TRUE=
  9033   BUILD_ARMTEST_FALSE='#'
  9034 else
  9035   BUILD_ARMTEST_TRUE='#'
  9036   BUILD_ARMTEST_FALSE=
  9037 fi
  9041 GETTEXT_PACKAGE=lxdream
  9044 cat >>confdefs.h <<_ACEOF
  9045 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  9046 _ACEOF
  9049 ALL_LINGUAS="de es it pt_BR"
  9052 for ac_header in locale.h
  9053 do
  9054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9059   echo $ECHO_N "(cached) $ECHO_C" >&6
  9060 fi
  9061 ac_res=`eval echo '${'$as_ac_Header'}'`
  9062 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  9063 echo "${ECHO_T}$ac_res" >&6; }
  9064 else
  9065   # Is the header compilable?
  9066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9068 cat >conftest.$ac_ext <<_ACEOF
  9069 /* confdefs.h.  */
  9070 _ACEOF
  9071 cat confdefs.h >>conftest.$ac_ext
  9072 cat >>conftest.$ac_ext <<_ACEOF
  9073 /* end confdefs.h.  */
  9074 $ac_includes_default
  9075 #include <$ac_header>
  9076 _ACEOF
  9077 rm -f conftest.$ac_objext
  9078 if { (ac_try="$ac_compile"
  9079 case "(($ac_try" in
  9080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9081   *) ac_try_echo=$ac_try;;
  9082 esac
  9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9084   (eval "$ac_compile") 2>conftest.er1
  9085   ac_status=$?
  9086   grep -v '^ *+' conftest.er1 >conftest.err
  9087   rm -f conftest.er1
  9088   cat conftest.err >&5
  9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9090   (exit $ac_status); } && {
  9091 	 test -z "$ac_c_werror_flag" ||
  9092 	 test ! -s conftest.err
  9093        } && test -s conftest.$ac_objext; then
  9094   ac_header_compiler=yes
  9095 else
  9096   echo "$as_me: failed program was:" >&5
  9097 sed 's/^/| /' conftest.$ac_ext >&5
  9099 	ac_header_compiler=no
  9100 fi
  9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9104 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9106 # Is the header present?
  9107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9109 cat >conftest.$ac_ext <<_ACEOF
  9110 /* confdefs.h.  */
  9111 _ACEOF
  9112 cat confdefs.h >>conftest.$ac_ext
  9113 cat >>conftest.$ac_ext <<_ACEOF
  9114 /* end confdefs.h.  */
  9115 #include <$ac_header>
  9116 _ACEOF
  9117 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9118 case "(($ac_try" in
  9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9120   *) ac_try_echo=$ac_try;;
  9121 esac
  9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9124   ac_status=$?
  9125   grep -v '^ *+' conftest.er1 >conftest.err
  9126   rm -f conftest.er1
  9127   cat conftest.err >&5
  9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129   (exit $ac_status); } >/dev/null && {
  9130 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9131 	 test ! -s conftest.err
  9132        }; then
  9133   ac_header_preproc=yes
  9134 else
  9135   echo "$as_me: failed program was:" >&5
  9136 sed 's/^/| /' conftest.$ac_ext >&5
  9138   ac_header_preproc=no
  9139 fi
  9141 rm -f conftest.err conftest.$ac_ext
  9142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9143 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9145 # So?  What about this header?
  9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9147   yes:no: )
  9148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9152     ac_header_preproc=yes
  9153     ;;
  9154   no:yes:* )
  9155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  9158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  9159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  9162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  9163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9168     ;;
  9169 esac
  9170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9173   echo $ECHO_N "(cached) $ECHO_C" >&6
  9174 else
  9175   eval "$as_ac_Header=\$ac_header_preproc"
  9176 fi
  9177 ac_res=`eval echo '${'$as_ac_Header'}'`
  9178 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  9179 echo "${ECHO_T}$ac_res" >&6; }
  9181 fi
  9182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9183   cat >>confdefs.h <<_ACEOF
  9184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9185 _ACEOF
  9187 fi
  9189 done
  9191     if test $ac_cv_header_locale_h = yes; then
  9192     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9193 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  9194 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9195   echo $ECHO_N "(cached) $ECHO_C" >&6
  9196 else
  9197   cat >conftest.$ac_ext <<_ACEOF
  9198 /* confdefs.h.  */
  9199 _ACEOF
  9200 cat confdefs.h >>conftest.$ac_ext
  9201 cat >>conftest.$ac_ext <<_ACEOF
  9202 /* end confdefs.h.  */
  9203 #include <locale.h>
  9204 int
  9205 main ()
  9207 return LC_MESSAGES
  9209   return 0;
  9211 _ACEOF
  9212 rm -f conftest.$ac_objext conftest$ac_exeext
  9213 if { (ac_try="$ac_link"
  9214 case "(($ac_try" in
  9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9216   *) ac_try_echo=$ac_try;;
  9217 esac
  9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9219   (eval "$ac_link") 2>conftest.er1
  9220   ac_status=$?
  9221   grep -v '^ *+' conftest.er1 >conftest.err
  9222   rm -f conftest.er1
  9223   cat conftest.err >&5
  9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9225   (exit $ac_status); } && {
  9226 	 test -z "$ac_c_werror_flag" ||
  9227 	 test ! -s conftest.err
  9228        } && test -s conftest$ac_exeext &&
  9229        $as_test_x conftest$ac_exeext; then
  9230   am_cv_val_LC_MESSAGES=yes
  9231 else
  9232   echo "$as_me: failed program was:" >&5
  9233 sed 's/^/| /' conftest.$ac_ext >&5
  9235 	am_cv_val_LC_MESSAGES=no
  9236 fi
  9238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9239       conftest$ac_exeext conftest.$ac_ext
  9240 fi
  9241 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9242 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9243     if test $am_cv_val_LC_MESSAGES = yes; then
  9245 cat >>confdefs.h <<\_ACEOF
  9246 #define HAVE_LC_MESSAGES 1
  9247 _ACEOF
  9249     fi
  9250   fi
  9251          USE_NLS=yes
  9254     gt_cv_have_gettext=no
  9256     CATOBJEXT=NONE
  9257     XGETTEXT=:
  9258     INTLLIBS=
  9260     if test "${ac_cv_header_libintl_h+set}" = set; then
  9261   { echo "$as_me:$LINENO: checking for libintl.h" >&5
  9262 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  9263 if test "${ac_cv_header_libintl_h+set}" = set; then
  9264   echo $ECHO_N "(cached) $ECHO_C" >&6
  9265 fi
  9266 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  9267 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  9268 else
  9269   # Is the header compilable?
  9270 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
  9271 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
  9272 cat >conftest.$ac_ext <<_ACEOF
  9273 /* confdefs.h.  */
  9274 _ACEOF
  9275 cat confdefs.h >>conftest.$ac_ext
  9276 cat >>conftest.$ac_ext <<_ACEOF
  9277 /* end confdefs.h.  */
  9278 $ac_includes_default
  9279 #include <libintl.h>
  9280 _ACEOF
  9281 rm -f conftest.$ac_objext
  9282 if { (ac_try="$ac_compile"
  9283 case "(($ac_try" in
  9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9285   *) ac_try_echo=$ac_try;;
  9286 esac
  9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9288   (eval "$ac_compile") 2>conftest.er1
  9289   ac_status=$?
  9290   grep -v '^ *+' conftest.er1 >conftest.err
  9291   rm -f conftest.er1
  9292   cat conftest.err >&5
  9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294   (exit $ac_status); } && {
  9295 	 test -z "$ac_c_werror_flag" ||
  9296 	 test ! -s conftest.err
  9297        } && test -s conftest.$ac_objext; then
  9298   ac_header_compiler=yes
  9299 else
  9300   echo "$as_me: failed program was:" >&5
  9301 sed 's/^/| /' conftest.$ac_ext >&5
  9303 	ac_header_compiler=no
  9304 fi
  9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9308 echo "${ECHO_T}$ac_header_compiler" >&6; }
  9310 # Is the header present?
  9311 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
  9312 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
  9313 cat >conftest.$ac_ext <<_ACEOF
  9314 /* confdefs.h.  */
  9315 _ACEOF
  9316 cat confdefs.h >>conftest.$ac_ext
  9317 cat >>conftest.$ac_ext <<_ACEOF
  9318 /* end confdefs.h.  */
  9319 #include <libintl.h>
  9320 _ACEOF
  9321 if { (ac_try="$ac_cpp conftest.$ac_ext"
  9322 case "(($ac_try" in
  9323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9324   *) ac_try_echo=$ac_try;;
  9325 esac
  9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9328   ac_status=$?
  9329   grep -v '^ *+' conftest.er1 >conftest.err
  9330   rm -f conftest.er1
  9331   cat conftest.err >&5
  9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9333   (exit $ac_status); } >/dev/null && {
  9334 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9335 	 test ! -s conftest.err
  9336        }; then
  9337   ac_header_preproc=yes
  9338 else
  9339   echo "$as_me: failed program was:" >&5
  9340 sed 's/^/| /' conftest.$ac_ext >&5
  9342   ac_header_preproc=no
  9343 fi
  9345 rm -f conftest.err conftest.$ac_ext
  9346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9347 echo "${ECHO_T}$ac_header_preproc" >&6; }
  9349 # So?  What about this header?
  9350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9351   yes:no: )
  9352     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9353 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9354     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  9355 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  9356     ac_header_preproc=yes
  9357     ;;
  9358   no:yes:* )
  9359     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  9360 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  9361     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  9362 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  9363     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  9364 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  9365     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  9366 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  9367     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  9368 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  9369     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  9370 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  9372     ;;
  9373 esac
  9374 { echo "$as_me:$LINENO: checking for libintl.h" >&5
  9375 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
  9376 if test "${ac_cv_header_libintl_h+set}" = set; then
  9377   echo $ECHO_N "(cached) $ECHO_C" >&6
  9378 else
  9379   ac_cv_header_libintl_h=$ac_header_preproc
  9380 fi
  9381 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  9382 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
  9384 fi
  9385 if test $ac_cv_header_libintl_h = yes; then
  9386   gt_cv_func_dgettext_libintl="no"
  9387       libintl_extra_libs=""
  9390       # First check in libc
  9392       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  9393 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
  9394 if test "${gt_cv_func_ngettext_libc+set}" = set; then
  9395   echo $ECHO_N "(cached) $ECHO_C" >&6
  9396 else
  9397   cat >conftest.$ac_ext <<_ACEOF
  9398 /* confdefs.h.  */
  9399 _ACEOF
  9400 cat confdefs.h >>conftest.$ac_ext
  9401 cat >>conftest.$ac_ext <<_ACEOF
  9402 /* end confdefs.h.  */
  9404 #include <libintl.h>
  9406 int
  9407 main ()
  9409 return !ngettext ("","", 1)
  9411   return 0;
  9413 _ACEOF
  9414 rm -f conftest.$ac_objext conftest$ac_exeext
  9415 if { (ac_try="$ac_link"
  9416 case "(($ac_try" in
  9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9418   *) ac_try_echo=$ac_try;;
  9419 esac
  9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9421   (eval "$ac_link") 2>conftest.er1
  9422   ac_status=$?
  9423   grep -v '^ *+' conftest.er1 >conftest.err
  9424   rm -f conftest.er1
  9425   cat conftest.err >&5
  9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9427   (exit $ac_status); } && {
  9428 	 test -z "$ac_c_werror_flag" ||
  9429 	 test ! -s conftest.err
  9430        } && test -s conftest$ac_exeext &&
  9431        $as_test_x conftest$ac_exeext; then
  9432   gt_cv_func_ngettext_libc=yes
  9433 else
  9434   echo "$as_me: failed program was:" >&5
  9435 sed 's/^/| /' conftest.$ac_ext >&5
  9437 	gt_cv_func_ngettext_libc=no
  9438 fi
  9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9441       conftest$ac_exeext conftest.$ac_ext
  9443 fi
  9444 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  9445 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
  9447       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  9448 	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  9449 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
  9450 if test "${gt_cv_func_dgettext_libc+set}" = set; then
  9451   echo $ECHO_N "(cached) $ECHO_C" >&6
  9452 else
  9453   cat >conftest.$ac_ext <<_ACEOF
  9454 /* confdefs.h.  */
  9455 _ACEOF
  9456 cat confdefs.h >>conftest.$ac_ext
  9457 cat >>conftest.$ac_ext <<_ACEOF
  9458 /* end confdefs.h.  */
  9460 #include <libintl.h>
  9462 int
  9463 main ()
  9465 return !dgettext ("","")
  9467   return 0;
  9469 _ACEOF
  9470 rm -f conftest.$ac_objext conftest$ac_exeext
  9471 if { (ac_try="$ac_link"
  9472 case "(($ac_try" in
  9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9474   *) ac_try_echo=$ac_try;;
  9475 esac
  9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9477   (eval "$ac_link") 2>conftest.er1
  9478   ac_status=$?
  9479   grep -v '^ *+' conftest.er1 >conftest.err
  9480   rm -f conftest.er1
  9481   cat conftest.err >&5
  9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483   (exit $ac_status); } && {
  9484 	 test -z "$ac_c_werror_flag" ||
  9485 	 test ! -s conftest.err
  9486        } && test -s conftest$ac_exeext &&
  9487        $as_test_x conftest$ac_exeext; then
  9488   gt_cv_func_dgettext_libc=yes
  9489 else
  9490   echo "$as_me: failed program was:" >&5
  9491 sed 's/^/| /' conftest.$ac_ext >&5
  9493 	gt_cv_func_dgettext_libc=no
  9494 fi
  9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9497       conftest$ac_exeext conftest.$ac_ext
  9499 fi
  9500 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  9501 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
  9502       fi
  9504       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  9506 for ac_func in bind_textdomain_codeset
  9507 do
  9508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9512   echo $ECHO_N "(cached) $ECHO_C" >&6
  9513 else
  9514   cat >conftest.$ac_ext <<_ACEOF
  9515 /* confdefs.h.  */
  9516 _ACEOF
  9517 cat confdefs.h >>conftest.$ac_ext
  9518 cat >>conftest.$ac_ext <<_ACEOF
  9519 /* end confdefs.h.  */
  9520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9522 #define $ac_func innocuous_$ac_func
  9524 /* System header to define __stub macros and hopefully few prototypes,
  9525     which can conflict with char $ac_func (); below.
  9526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9527     <limits.h> exists even on freestanding compilers.  */
  9529 #ifdef __STDC__
  9530 # include <limits.h>
  9531 #else
  9532 # include <assert.h>
  9533 #endif
  9535 #undef $ac_func
  9537 /* Override any GCC internal prototype to avoid an error.
  9538    Use char because int might match the return type of a GCC
  9539    builtin and then its argument prototype would still apply.  */
  9540 #ifdef __cplusplus
  9541 extern "C"
  9542 #endif
  9543 char $ac_func ();
  9544 /* The GNU C library defines this for functions which it implements
  9545     to always fail with ENOSYS.  Some functions are actually named
  9546     something starting with __ and the normal name is an alias.  */
  9547 #if defined __stub_$ac_func || defined __stub___$ac_func
  9548 choke me
  9549 #endif
  9551 int
  9552 main ()
  9554 return $ac_func ();
  9556   return 0;
  9558 _ACEOF
  9559 rm -f conftest.$ac_objext conftest$ac_exeext
  9560 if { (ac_try="$ac_link"
  9561 case "(($ac_try" in
  9562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9563   *) ac_try_echo=$ac_try;;
  9564 esac
  9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9566   (eval "$ac_link") 2>conftest.er1
  9567   ac_status=$?
  9568   grep -v '^ *+' conftest.er1 >conftest.err
  9569   rm -f conftest.er1
  9570   cat conftest.err >&5
  9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9572   (exit $ac_status); } && {
  9573 	 test -z "$ac_c_werror_flag" ||
  9574 	 test ! -s conftest.err
  9575        } && test -s conftest$ac_exeext &&
  9576        $as_test_x conftest$ac_exeext; then
  9577   eval "$as_ac_var=yes"
  9578 else
  9579   echo "$as_me: failed program was:" >&5
  9580 sed 's/^/| /' conftest.$ac_ext >&5
  9582 	eval "$as_ac_var=no"
  9583 fi
  9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9586       conftest$ac_exeext conftest.$ac_ext
  9587 fi
  9588 ac_res=`eval echo '${'$as_ac_var'}'`
  9589 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
  9590 echo "${ECHO_T}$ac_res" >&6; }
  9591 if test `eval echo '${'$as_ac_var'}'` = yes; then
  9592   cat >>confdefs.h <<_ACEOF
  9593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9594 _ACEOF
  9596 fi
  9597 done
  9599       fi
  9602       # If we don't have everything we want, check in libintl
  9604       if test "$gt_cv_func_dgettext_libc" != "yes" \
  9605 	 || test "$gt_cv_func_ngettext_libc" != "yes" \
  9606          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  9608         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  9609 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
  9610 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  9611   echo $ECHO_N "(cached) $ECHO_C" >&6
  9612 else
  9613   ac_check_lib_save_LIBS=$LIBS
  9614 LIBS="-lintl  $LIBS"
  9615 cat >conftest.$ac_ext <<_ACEOF
  9616 /* confdefs.h.  */
  9617 _ACEOF
  9618 cat confdefs.h >>conftest.$ac_ext
  9619 cat >>conftest.$ac_ext <<_ACEOF
  9620 /* end confdefs.h.  */
  9622 /* Override any GCC internal prototype to avoid an error.
  9623    Use char because int might match the return type of a GCC
  9624    builtin and then its argument prototype would still apply.  */
  9625 #ifdef __cplusplus
  9626 extern "C"
  9627 #endif
  9628 char bindtextdomain ();
  9629 int
  9630 main ()
  9632 return bindtextdomain ();
  9634   return 0;
  9636 _ACEOF
  9637 rm -f conftest.$ac_objext conftest$ac_exeext
  9638 if { (ac_try="$ac_link"
  9639 case "(($ac_try" in
  9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9641   *) ac_try_echo=$ac_try;;
  9642 esac
  9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9644   (eval "$ac_link") 2>conftest.er1
  9645   ac_status=$?
  9646   grep -v '^ *+' conftest.er1 >conftest.err
  9647   rm -f conftest.er1
  9648   cat conftest.err >&5
  9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9650   (exit $ac_status); } && {
  9651 	 test -z "$ac_c_werror_flag" ||
  9652 	 test ! -s conftest.err
  9653        } && test -s conftest$ac_exeext &&
  9654        $as_test_x conftest$ac_exeext; then
  9655   ac_cv_lib_intl_bindtextdomain=yes
  9656 else
  9657   echo "$as_me: failed program was:" >&5
  9658 sed 's/^/| /' conftest.$ac_ext >&5
  9660 	ac_cv_lib_intl_bindtextdomain=no
  9661 fi
  9663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9664       conftest$ac_exeext conftest.$ac_ext
  9665 LIBS=$ac_check_lib_save_LIBS
  9666 fi
  9667 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  9668 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
  9669 if test $ac_cv_lib_intl_bindtextdomain = yes; then
  9670   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  9671 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  9672 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  9673   echo $ECHO_N "(cached) $ECHO_C" >&6
  9674 else
  9675   ac_check_lib_save_LIBS=$LIBS
  9676 LIBS="-lintl  $LIBS"
  9677 cat >conftest.$ac_ext <<_ACEOF
  9678 /* confdefs.h.  */
  9679 _ACEOF
  9680 cat confdefs.h >>conftest.$ac_ext
  9681 cat >>conftest.$ac_ext <<_ACEOF
  9682 /* end confdefs.h.  */
  9684 /* Override any GCC internal prototype to avoid an error.
  9685    Use char because int might match the return type of a GCC
  9686    builtin and then its argument prototype would still apply.  */
  9687 #ifdef __cplusplus
  9688 extern "C"
  9689 #endif
  9690 char ngettext ();
  9691 int
  9692 main ()
  9694 return ngettext ();
  9696   return 0;
  9698 _ACEOF
  9699 rm -f conftest.$ac_objext conftest$ac_exeext
  9700 if { (ac_try="$ac_link"
  9701 case "(($ac_try" in
  9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9703   *) ac_try_echo=$ac_try;;
  9704 esac
  9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9706   (eval "$ac_link") 2>conftest.er1
  9707   ac_status=$?
  9708   grep -v '^ *+' conftest.er1 >conftest.err
  9709   rm -f conftest.er1
  9710   cat conftest.err >&5
  9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9712   (exit $ac_status); } && {
  9713 	 test -z "$ac_c_werror_flag" ||
  9714 	 test ! -s conftest.err
  9715        } && test -s conftest$ac_exeext &&
  9716        $as_test_x conftest$ac_exeext; then
  9717   ac_cv_lib_intl_ngettext=yes
  9718 else
  9719   echo "$as_me: failed program was:" >&5
  9720 sed 's/^/| /' conftest.$ac_ext >&5
  9722 	ac_cv_lib_intl_ngettext=no
  9723 fi
  9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9726       conftest$ac_exeext conftest.$ac_ext
  9727 LIBS=$ac_check_lib_save_LIBS
  9728 fi
  9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  9730 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  9731 if test $ac_cv_lib_intl_ngettext = yes; then
  9732   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  9733 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
  9734 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  9735   echo $ECHO_N "(cached) $ECHO_C" >&6
  9736 else
  9737   ac_check_lib_save_LIBS=$LIBS
  9738 LIBS="-lintl  $LIBS"
  9739 cat >conftest.$ac_ext <<_ACEOF
  9740 /* confdefs.h.  */
  9741 _ACEOF
  9742 cat confdefs.h >>conftest.$ac_ext
  9743 cat >>conftest.$ac_ext <<_ACEOF
  9744 /* end confdefs.h.  */
  9746 /* Override any GCC internal prototype to avoid an error.
  9747    Use char because int might match the return type of a GCC
  9748    builtin and then its argument prototype would still apply.  */
  9749 #ifdef __cplusplus
  9750 extern "C"
  9751 #endif
  9752 char dgettext ();
  9753 int
  9754 main ()
  9756 return dgettext ();
  9758   return 0;
  9760 _ACEOF
  9761 rm -f conftest.$ac_objext conftest$ac_exeext
  9762 if { (ac_try="$ac_link"
  9763 case "(($ac_try" in
  9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9765   *) ac_try_echo=$ac_try;;
  9766 esac
  9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9768   (eval "$ac_link") 2>conftest.er1
  9769   ac_status=$?
  9770   grep -v '^ *+' conftest.er1 >conftest.err
  9771   rm -f conftest.er1
  9772   cat conftest.err >&5
  9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9774   (exit $ac_status); } && {
  9775 	 test -z "$ac_c_werror_flag" ||
  9776 	 test ! -s conftest.err
  9777        } && test -s conftest$ac_exeext &&
  9778        $as_test_x conftest$ac_exeext; then
  9779   ac_cv_lib_intl_dgettext=yes
  9780 else
  9781   echo "$as_me: failed program was:" >&5
  9782 sed 's/^/| /' conftest.$ac_ext >&5
  9784 	ac_cv_lib_intl_dgettext=no
  9785 fi
  9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9788       conftest$ac_exeext conftest.$ac_ext
  9789 LIBS=$ac_check_lib_save_LIBS
  9790 fi
  9791 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  9792 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
  9793 if test $ac_cv_lib_intl_dgettext = yes; then
  9794   gt_cv_func_dgettext_libintl=yes
  9795 fi
  9797 fi
  9799 fi
  9802 	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  9803 	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  9804 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
  9805 	  { echo "$as_me:$LINENO: result: " >&5
  9806 echo "${ECHO_T}" >&6; }
  9807   	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  9808 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
  9809 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  9810   echo $ECHO_N "(cached) $ECHO_C" >&6
  9811 else
  9812   ac_check_lib_save_LIBS=$LIBS
  9813 LIBS="-lintl -liconv $LIBS"
  9814 cat >conftest.$ac_ext <<_ACEOF
  9815 /* confdefs.h.  */
  9816 _ACEOF
  9817 cat confdefs.h >>conftest.$ac_ext
  9818 cat >>conftest.$ac_ext <<_ACEOF
  9819 /* end confdefs.h.  */
  9821 /* Override any GCC internal prototype to avoid an error.
  9822    Use char because int might match the return type of a GCC
  9823    builtin and then its argument prototype would still apply.  */
  9824 #ifdef __cplusplus
  9825 extern "C"
  9826 #endif
  9827 char ngettext ();
  9828 int
  9829 main ()
  9831 return ngettext ();
  9833   return 0;
  9835 _ACEOF
  9836 rm -f conftest.$ac_objext conftest$ac_exeext
  9837 if { (ac_try="$ac_link"
  9838 case "(($ac_try" in
  9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9840   *) ac_try_echo=$ac_try;;
  9841 esac
  9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9843   (eval "$ac_link") 2>conftest.er1
  9844   ac_status=$?
  9845   grep -v '^ *+' conftest.er1 >conftest.err
  9846   rm -f conftest.er1
  9847   cat conftest.err >&5
  9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849   (exit $ac_status); } && {
  9850 	 test -z "$ac_c_werror_flag" ||
  9851 	 test ! -s conftest.err
  9852        } && test -s conftest$ac_exeext &&
  9853        $as_test_x conftest$ac_exeext; then
  9854   ac_cv_lib_intl_ngettext=yes
  9855 else
  9856   echo "$as_me: failed program was:" >&5
  9857 sed 's/^/| /' conftest.$ac_ext >&5
  9859 	ac_cv_lib_intl_ngettext=no
  9860 fi
  9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9863       conftest$ac_exeext conftest.$ac_ext
  9864 LIBS=$ac_check_lib_save_LIBS
  9865 fi
  9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  9867 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
  9868 if test $ac_cv_lib_intl_ngettext = yes; then
  9869   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  9870 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
  9871 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  9872   echo $ECHO_N "(cached) $ECHO_C" >&6
  9873 else
  9874   ac_check_lib_save_LIBS=$LIBS
  9875 LIBS="-lintl -liconv $LIBS"
  9876 cat >conftest.$ac_ext <<_ACEOF
  9877 /* confdefs.h.  */
  9878 _ACEOF
  9879 cat confdefs.h >>conftest.$ac_ext
  9880 cat >>conftest.$ac_ext <<_ACEOF
  9881 /* end confdefs.h.  */
  9883 /* Override any GCC internal prototype to avoid an error.
  9884    Use char because int might match the return type of a GCC
  9885    builtin and then its argument prototype would still apply.  */
  9886 #ifdef __cplusplus
  9887 extern "C"
  9888 #endif
  9889 char dcgettext ();
  9890 int
  9891 main ()
  9893 return dcgettext ();
  9895   return 0;
  9897 _ACEOF
  9898 rm -f conftest.$ac_objext conftest$ac_exeext
  9899 if { (ac_try="$ac_link"
  9900 case "(($ac_try" in
  9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9902   *) ac_try_echo=$ac_try;;
  9903 esac
  9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9905   (eval "$ac_link") 2>conftest.er1
  9906   ac_status=$?
  9907   grep -v '^ *+' conftest.er1 >conftest.err
  9908   rm -f conftest.er1
  9909   cat conftest.err >&5
  9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9911   (exit $ac_status); } && {
  9912 	 test -z "$ac_c_werror_flag" ||
  9913 	 test ! -s conftest.err
  9914        } && test -s conftest$ac_exeext &&
  9915        $as_test_x conftest$ac_exeext; then
  9916   ac_cv_lib_intl_dcgettext=yes
  9917 else
  9918   echo "$as_me: failed program was:" >&5
  9919 sed 's/^/| /' conftest.$ac_ext >&5
  9921 	ac_cv_lib_intl_dcgettext=no
  9922 fi
  9924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9925       conftest$ac_exeext conftest.$ac_ext
  9926 LIBS=$ac_check_lib_save_LIBS
  9927 fi
  9928 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  9929 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
  9930 if test $ac_cv_lib_intl_dcgettext = yes; then
  9931   gt_cv_func_dgettext_libintl=yes
  9932 			libintl_extra_libs=-liconv
  9933 else
  9935 fi
  9937 else
  9939 fi
  9941         fi
  9944         # If we found libintl, then check in it for bind_textdomain_codeset();
  9945         # we'll prefer libc if neither have bind_textdomain_codeset(),
  9946         # and both have dgettext and ngettext
  9948         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  9949           glib_save_LIBS="$LIBS"
  9950           LIBS="$LIBS -lintl $libintl_extra_libs"
  9951           unset ac_cv_func_bind_textdomain_codeset
  9953 for ac_func in bind_textdomain_codeset
  9954 do
  9955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9959   echo $ECHO_N "(cached) $ECHO_C" >&6
  9960 else
  9961   cat >conftest.$ac_ext <<_ACEOF
  9962 /* confdefs.h.  */
  9963 _ACEOF
  9964 cat confdefs.h >>conftest.$ac_ext
  9965 cat >>conftest.$ac_ext <<_ACEOF
  9966 /* end confdefs.h.  */
  9967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9969 #define $ac_func innocuous_$ac_func
  9971 /* System header to define __stub macros and hopefully few prototypes,
  9972     which can conflict with char $ac_func (); below.
  9973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9974     <limits.h> exists even on freestanding compilers.  */
  9976 #ifdef __STDC__
  9977 # include <limits.h>
  9978 #else
  9979 # include <assert.h>
  9980 #endif
  9982 #undef $ac_func
  9984 /* Override any GCC internal prototype to avoid an error.
  9985    Use char because int might match the return type of a GCC
  9986    builtin and then its argument prototype would still apply.  */
  9987 #ifdef __cplusplus
  9988 extern "C"
  9989 #endif
  9990 char $ac_func ();
  9991 /* The GNU C library defines this for functions which it implements
  9992     to always fail with ENOSYS.  Some functions are actually named
  9993     something starting with __ and the normal name is an alias.  */
  9994 #if defined __stub_$ac_func || defined __stub___$ac_func
  9995 choke me
  9996 #endif
  9998 int
  9999 main ()
 10001 return $ac_func ();
 10003   return 0;
 10005 _ACEOF
 10006 rm -f conftest.$ac_objext conftest$ac_exeext
 10007 if { (ac_try="$ac_link"
 10008 case "(($ac_try" in
 10009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10010   *) ac_try_echo=$ac_try;;
 10011 esac
 10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10013   (eval "$ac_link") 2>conftest.er1
 10014   ac_status=$?
 10015   grep -v '^ *+' conftest.er1 >conftest.err
 10016   rm -f conftest.er1
 10017   cat conftest.err >&5
 10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10019   (exit $ac_status); } && {
 10020 	 test -z "$ac_c_werror_flag" ||
 10021 	 test ! -s conftest.err
 10022        } && test -s conftest$ac_exeext &&
 10023        $as_test_x conftest$ac_exeext; then
 10024   eval "$as_ac_var=yes"
 10025 else
 10026   echo "$as_me: failed program was:" >&5
 10027 sed 's/^/| /' conftest.$ac_ext >&5
 10029 	eval "$as_ac_var=no"
 10030 fi
 10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10033       conftest$ac_exeext conftest.$ac_ext
 10034 fi
 10035 ac_res=`eval echo '${'$as_ac_var'}'`
 10036 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 10037 echo "${ECHO_T}$ac_res" >&6; }
 10038 if test `eval echo '${'$as_ac_var'}'` = yes; then
 10039   cat >>confdefs.h <<_ACEOF
 10040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10041 _ACEOF
 10043 fi
 10044 done
 10046           LIBS="$glib_save_LIBS"
 10048           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 10049             gt_cv_func_dgettext_libc=no
 10050           else
 10051             if test "$gt_cv_func_dgettext_libc" = "yes" \
 10052 		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
 10053               gt_cv_func_dgettext_libintl=no
 10054             fi
 10055           fi
 10056         fi
 10057       fi
 10059       if test "$gt_cv_func_dgettext_libc" = "yes" \
 10060 	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10061         gt_cv_have_gettext=yes
 10062       fi
 10064       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 10065         INTLLIBS="-lintl $libintl_extra_libs"
 10066       fi
 10068       if test "$gt_cv_have_gettext" = "yes"; then
 10070 cat >>confdefs.h <<\_ACEOF
 10071 #define HAVE_GETTEXT 1
 10072 _ACEOF
 10074 	# Extract the first word of "msgfmt", so it can be a program name with args.
 10075 set dummy msgfmt; ac_word=$2
 10076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10078 if test "${ac_cv_path_MSGFMT+set}" = set; then
 10079   echo $ECHO_N "(cached) $ECHO_C" >&6
 10080 else
 10081   case "$MSGFMT" in
 10082   /*)
 10083   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 10084   ;;
 10085   *)
 10086   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10087   for ac_dir in $PATH; do
 10088     test -z "$ac_dir" && ac_dir=.
 10089     if test -f $ac_dir/$ac_word; then
 10090       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 10091 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 10092 	break
 10093       fi
 10094     fi
 10095   done
 10096   IFS="$ac_save_ifs"
 10097   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 10098   ;;
 10099 esac
 10100 fi
 10101 MSGFMT="$ac_cv_path_MSGFMT"
 10102 if test "$MSGFMT" != "no"; then
 10103   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 10104 echo "${ECHO_T}$MSGFMT" >&6; }
 10105 else
 10106   { echo "$as_me:$LINENO: result: no" >&5
 10107 echo "${ECHO_T}no" >&6; }
 10108 fi
 10109 	if test "$MSGFMT" != "no"; then
 10110           glib_save_LIBS="$LIBS"
 10111           LIBS="$LIBS $INTLLIBS"
 10113 for ac_func in dcgettext
 10114 do
 10115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 10116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
 10117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 10118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 10119   echo $ECHO_N "(cached) $ECHO_C" >&6
 10120 else
 10121   cat >conftest.$ac_ext <<_ACEOF
 10122 /* confdefs.h.  */
 10123 _ACEOF
 10124 cat confdefs.h >>conftest.$ac_ext
 10125 cat >>conftest.$ac_ext <<_ACEOF
 10126 /* end confdefs.h.  */
 10127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 10128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10129 #define $ac_func innocuous_$ac_func
 10131 /* System header to define __stub macros and hopefully few prototypes,
 10132     which can conflict with char $ac_func (); below.
 10133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10134     <limits.h> exists even on freestanding compilers.  */
 10136 #ifdef __STDC__
 10137 # include <limits.h>
 10138 #else
 10139 # include <assert.h>
 10140 #endif
 10142 #undef $ac_func
 10144 /* Override any GCC internal prototype to avoid an error.
 10145    Use char because int might match the return type of a GCC
 10146    builtin and then its argument prototype would still apply.  */
 10147 #ifdef __cplusplus
 10148 extern "C"
 10149 #endif
 10150 char $ac_func ();
 10151 /* The GNU C library defines this for functions which it implements
 10152     to always fail with ENOSYS.  Some functions are actually named
 10153     something starting with __ and the normal name is an alias.  */
 10154 #if defined __stub_$ac_func || defined __stub___$ac_func
 10155 choke me
 10156 #endif
 10158 int
 10159 main ()
 10161 return $ac_func ();
 10163   return 0;
 10165 _ACEOF
 10166 rm -f conftest.$ac_objext conftest$ac_exeext
 10167 if { (ac_try="$ac_link"
 10168 case "(($ac_try" in
 10169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10170   *) ac_try_echo=$ac_try;;
 10171 esac
 10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10173   (eval "$ac_link") 2>conftest.er1
 10174   ac_status=$?
 10175   grep -v '^ *+' conftest.er1 >conftest.err
 10176   rm -f conftest.er1
 10177   cat conftest.err >&5
 10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10179   (exit $ac_status); } && {
 10180 	 test -z "$ac_c_werror_flag" ||
 10181 	 test ! -s conftest.err
 10182        } && test -s conftest$ac_exeext &&
 10183        $as_test_x conftest$ac_exeext; then
 10184   eval "$as_ac_var=yes"
 10185 else
 10186   echo "$as_me: failed program was:" >&5
 10187 sed 's/^/| /' conftest.$ac_ext >&5
 10189 	eval "$as_ac_var=no"
 10190 fi
 10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10193       conftest$ac_exeext conftest.$ac_ext
 10194 fi
 10195 ac_res=`eval echo '${'$as_ac_var'}'`
 10196 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
 10197 echo "${ECHO_T}$ac_res" >&6; }
 10198 if test `eval echo '${'$as_ac_var'}'` = yes; then
 10199   cat >>confdefs.h <<_ACEOF
 10200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 10201 _ACEOF
 10203 fi
 10204 done
 10206 	  MSGFMT_OPTS=
 10207 	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 10208 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 10209 	  cat >conftest.foo <<_ACEOF
 10211 msgid ""
 10212 msgstr ""
 10213 "Content-Type: text/plain; charset=UTF-8\n"
 10214 "Project-Id-Version: test 1.0\n"
 10215 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
 10216 "Last-Translator: test <foo@bar.xx>\n"
 10217 "Language-Team: C <LL@li.org>\n"
 10218 "MIME-Version: 1.0\n"
 10219 "Content-Transfer-Encoding: 8bit\n"
 10221 _ACEOF
 10222 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
 10223   (msgfmt -c -o /dev/null conftest.foo) 2>&5
 10224   ac_status=$?
 10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10226   (exit $ac_status); }; then
 10227   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 10228 echo "${ECHO_T}yes" >&6; }
 10229 else { echo "$as_me:$LINENO: result: no" >&5
 10230 echo "${ECHO_T}no" >&6; }
 10231 echo "$as_me: failed input was:" >&5
 10232 sed 's/^/| /' conftest.foo >&5
 10233 fi
 10235 	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 10236 set dummy gmsgfmt; ac_word=$2
 10237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10239 if test "${ac_cv_path_GMSGFMT+set}" = set; then
 10240   echo $ECHO_N "(cached) $ECHO_C" >&6
 10241 else
 10242   case $GMSGFMT in
 10243   [\\/]* | ?:[\\/]*)
 10244   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 10245   ;;
 10246   *)
 10247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10248 for as_dir in $PATH
 10249 do
 10250   IFS=$as_save_IFS
 10251   test -z "$as_dir" && as_dir=.
 10252   for ac_exec_ext in '' $ac_executable_extensions; do
 10253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 10254     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 10255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 10256     break 2
 10257   fi
 10258 done
 10259 done
 10260 IFS=$as_save_IFS
 10262   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 10263   ;;
 10264 esac
 10265 fi
 10266 GMSGFMT=$ac_cv_path_GMSGFMT
 10267 if test -n "$GMSGFMT"; then
 10268   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 10269 echo "${ECHO_T}$GMSGFMT" >&6; }
 10270 else
 10271   { echo "$as_me:$LINENO: result: no" >&5
 10272 echo "${ECHO_T}no" >&6; }
 10273 fi
 10276 	  # Extract the first word of "xgettext", so it can be a program name with args.
 10277 set dummy xgettext; ac_word=$2
 10278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 10279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 10280 if test "${ac_cv_path_XGETTEXT+set}" = set; then
 10281   echo $ECHO_N "(cached) $ECHO_C" >&6
 10282 else
 10283   case "$XGETTEXT" in
 10284   /*)
 10285   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 10286   ;;
 10287   *)
 10288   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 10289   for ac_dir in $PATH; do
 10290     test -z "$ac_dir" && ac_dir=.
 10291     if test -f $ac_dir/$ac_word; then
 10292       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 10293 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 10294 	break
 10295       fi
 10296     fi
 10297   done
 10298   IFS="$ac_save_ifs"
 10299   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 10300   ;;
 10301 esac
 10302 fi
 10303 XGETTEXT="$ac_cv_path_XGETTEXT"
 10304 if test "$XGETTEXT" != ":"; then
 10305   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 10306 echo "${ECHO_T}$XGETTEXT" >&6; }
 10307 else
 10308   { echo "$as_me:$LINENO: result: no" >&5
 10309 echo "${ECHO_T}no" >&6; }
 10310 fi
 10312 	  cat >conftest.$ac_ext <<_ACEOF
 10313 /* confdefs.h.  */
 10314 _ACEOF
 10315 cat confdefs.h >>conftest.$ac_ext
 10316 cat >>conftest.$ac_ext <<_ACEOF
 10317 /* end confdefs.h.  */
 10319 int
 10320 main ()
 10322 extern int _nl_msg_cat_cntr;
 10323 			 return _nl_msg_cat_cntr
 10325   return 0;
 10327 _ACEOF
 10328 rm -f conftest.$ac_objext conftest$ac_exeext
 10329 if { (ac_try="$ac_link"
 10330 case "(($ac_try" in
 10331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10332   *) ac_try_echo=$ac_try;;
 10333 esac
 10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10335   (eval "$ac_link") 2>conftest.er1
 10336   ac_status=$?
 10337   grep -v '^ *+' conftest.er1 >conftest.err
 10338   rm -f conftest.er1
 10339   cat conftest.err >&5
 10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10341   (exit $ac_status); } && {
 10342 	 test -z "$ac_c_werror_flag" ||
 10343 	 test ! -s conftest.err
 10344        } && test -s conftest$ac_exeext &&
 10345        $as_test_x conftest$ac_exeext; then
 10346   CATOBJEXT=.gmo
 10347              DATADIRNAME=share
 10348 else
 10349   echo "$as_me: failed program was:" >&5
 10350 sed 's/^/| /' conftest.$ac_ext >&5
 10352 	case $host in
 10353 	    *-*-solaris*)
 10354 	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 10355 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 10356 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 10357   echo $ECHO_N "(cached) $ECHO_C" >&6
 10358 else
 10359   cat >conftest.$ac_ext <<_ACEOF
 10360 /* confdefs.h.  */
 10361 _ACEOF
 10362 cat confdefs.h >>conftest.$ac_ext
 10363 cat >>conftest.$ac_ext <<_ACEOF
 10364 /* end confdefs.h.  */
 10365 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 10366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 10367 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 10369 /* System header to define __stub macros and hopefully few prototypes,
 10370     which can conflict with char bind_textdomain_codeset (); below.
 10371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10372     <limits.h> exists even on freestanding compilers.  */
 10374 #ifdef __STDC__
 10375 # include <limits.h>
 10376 #else
 10377 # include <assert.h>
 10378 #endif
 10380 #undef bind_textdomain_codeset
 10382 /* Override any GCC internal prototype to avoid an error.
 10383    Use char because int might match the return type of a GCC
 10384    builtin and then its argument prototype would still apply.  */
 10385 #ifdef __cplusplus
 10386 extern "C"
 10387 #endif
 10388 char bind_textdomain_codeset ();
 10389 /* The GNU C library defines this for functions which it implements
 10390     to always fail with ENOSYS.  Some functions are actually named
 10391     something starting with __ and the normal name is an alias.  */
 10392 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 10393 choke me
 10394 #endif
 10396 int
 10397 main ()
 10399 return bind_textdomain_codeset ();
 10401   return 0;
 10403 _ACEOF
 10404 rm -f conftest.$ac_objext conftest$ac_exeext
 10405 if { (ac_try="$ac_link"
 10406 case "(($ac_try" in
 10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10408   *) ac_try_echo=$ac_try;;
 10409 esac
 10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 10411   (eval "$ac_link") 2>conftest.er1
 10412   ac_status=$?
 10413   grep -v '^ *+' conftest.er1 >conftest.err
 10414   rm -f conftest.er1
 10415   cat conftest.err >&5
 10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 10417   (exit $ac_status); } && {
 10418 	 test -z "$ac_c_werror_flag" ||
 10419 	 test ! -s conftest.err
 10420        } && test -s conftest$ac_exeext &&
 10421        $as_test_x conftest$ac_exeext; then
 10422   ac_cv_func_bind_textdomain_codeset=yes
 10423 else
 10424   echo "$as_me: failed program was:" >&5
 10425 sed 's/^/| /' conftest.$ac_ext >&5
 10427 	ac_cv_func_bind_textdomain_codeset=no
 10428 fi
 10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10431       conftest$ac_exeext conftest.$ac_ext
 10432 fi
 10433 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 10434 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 10435 if test $ac_cv_func_bind_textdomain_codeset = yes; then
 10436   CATOBJEXT=.gmo
 10437                DATADIRNAME=share
 10438 else
 10439   CATOBJEXT=.mo
 10440                DATADIRNAME=lib
 10441 fi
 10443 	    ;;
 10444 	    *)
 10445 	    CATOBJEXT=.mo
 10446             DATADIRNAME=lib
 10447 	    ;;
 10448 	    esac
 10449 fi
 10451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 10452       conftest$ac_exeext conftest.$ac_ext
 10453           LIBS="$glib_save_LIBS"
 10454 	  INSTOBJEXT=.mo
 10455 	else
 10456 	  gt_cv_have_gettext=no
 10457 	fi
 10458       fi
 10460 fi
 10464     if test "$gt_cv_have_gettext" = "yes" ; then
 10466 cat >>confdefs.h <<\_ACEOF
 10467 #define ENABLE_NLS 1
 10468 _ACEOF
 10470     fi
 10472         if test "$XGETTEXT" != ":"; then
 10473                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 10474         : ;
 10475       else
 10476         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 10477 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 10478         XGETTEXT=":"
 10479       fi
 10480     fi
 10482     # We need to process the po/ directory.
 10483     POSUB=po
 10485     ac_config_commands="$ac_config_commands default-1"
 10488                 for lang in $ALL_LINGUAS; do
 10489       GMOFILES="$GMOFILES $lang.gmo"
 10490       POFILES="$POFILES $lang.po"
 10491     done
 10505    if test "$gt_cv_have_gettext" = "yes"; then
 10506      if test "x$ALL_LINGUAS" = "x"; then
 10507        LINGUAS=
 10508      else
 10509        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 10510 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 10511        NEW_LINGUAS=
 10512        for presentlang in $ALL_LINGUAS; do
 10513          useit=no
 10514          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 10515            desiredlanguages="$LINGUAS"
 10516          else
 10517            desiredlanguages="$ALL_LINGUAS"
 10518          fi
 10519          for desiredlang in $desiredlanguages; do
 10520  	   # Use the presentlang catalog if desiredlang is
 10521            #   a. equal to presentlang, or
 10522            #   b. a variant of presentlang (because in this case,
 10523            #      presentlang can be used as a fallback for messages
 10524            #      which are not translated in the desiredlang catalog).
 10525            case "$desiredlang" in
 10526              "$presentlang"*) useit=yes;;
 10527            esac
 10528          done
 10529          if test $useit = yes; then
 10530            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 10531          fi
 10532        done
 10533        LINGUAS=$NEW_LINGUAS
 10534        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 10535 echo "${ECHO_T}$LINGUAS" >&6; }
 10536      fi
 10538           if test -n "$LINGUAS"; then
 10539        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 10540      fi
 10541    fi
 10543             MKINSTALLDIRS=
 10544    if test -n "$ac_aux_dir"; then
 10545      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 10546    fi
 10547    if test -z "$MKINSTALLDIRS"; then
 10548      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 10549    fi
 10552          test -d po || mkdir po
 10553    if test "x$srcdir" != "x."; then
 10554      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 10555        posrcprefix="$srcdir/"
 10556      else
 10557        posrcprefix="../$srcdir/"
 10558      fi
 10559    else
 10560      posrcprefix="../"
 10561    fi
 10562    rm -f po/POTFILES
 10563    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 10564 	< $srcdir/po/POTFILES.in > po/POTFILES
 10567 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
 10569 cat >confcache <<\_ACEOF
 10570 # This file is a shell script that caches the results of configure
 10571 # tests run on this system so they can be shared between configure
 10572 # scripts and configure runs, see configure's option --config-cache.
 10573 # It is not useful on other systems.  If it contains results you don't
 10574 # want to keep, you may remove or edit it.
 10576 # config.status only pays attention to the cache file if you give it
 10577 # the --recheck option to rerun configure.
 10579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 10580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 10581 # following values.
 10583 _ACEOF
 10585 # The following way of writing the cache mishandles newlines in values,
 10586 # but we know of no workaround that is simple, portable, and efficient.
 10587 # So, we kill variables containing newlines.
 10588 # Ultrix sh set writes to stderr and can't be redirected directly,
 10589 # and sets the high bit in the cache file unless we assign to the vars.
 10591   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 10592     eval ac_val=\$$ac_var
 10593     case $ac_val in #(
 10594     *${as_nl}*)
 10595       case $ac_var in #(
 10596       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 10597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 10598       esac
 10599       case $ac_var in #(
 10600       _ | IFS | as_nl) ;; #(
 10601       *) $as_unset $ac_var ;;
 10602       esac ;;
 10603     esac
 10604   done
 10606   (set) 2>&1 |
 10607     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 10608     *${as_nl}ac_space=\ *)
 10609       # `set' does not quote correctly, so add quotes (double-quote
 10610       # substitution turns \\\\ into \\, and sed turns \\ into \).
 10611       sed -n \
 10612 	"s/'/'\\\\''/g;
 10613 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 10614       ;; #(
 10615     *)
 10616       # `set' quotes correctly as required by POSIX, so do not add quotes.
 10617       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 10618       ;;
 10619     esac |
 10620     sort
 10621 ) |
 10622   sed '
 10623      /^ac_cv_env_/b end
 10624      t clear
 10625      :clear
 10626      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 10627      t end
 10628      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 10629      :end' >>confcache
 10630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 10631   if test -w "$cache_file"; then
 10632     test "x$cache_file" != "x/dev/null" &&
 10633       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 10634 echo "$as_me: updating cache $cache_file" >&6;}
 10635     cat confcache >$cache_file
 10636   else
 10637     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 10638 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 10639   fi
 10640 fi
 10641 rm -f confcache
 10643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 10644 # Let make expand exec_prefix.
 10645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 10647 DEFS=-DHAVE_CONFIG_H
 10649 ac_libobjs=
 10650 ac_ltlibobjs=
 10651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 10652   # 1. Remove the extension, and $U if already installed.
 10653   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 10654   ac_i=`echo "$ac_i" | sed "$ac_script"`
 10655   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 10656   #    will be set to the directory where LIBOBJS objects are built.
 10657   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 10658   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 10659 done
 10660 LIBOBJS=$ac_libobjs
 10662 LTLIBOBJS=$ac_ltlibobjs
 10665 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 10666   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 10667 Usually this means the macro was only invoked conditionally." >&5
 10668 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 10669 Usually this means the macro was only invoked conditionally." >&2;}
 10670    { (exit 1); exit 1; }; }
 10671 fi
 10672 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 10673   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 10674 Usually this means the macro was only invoked conditionally." >&5
 10675 echo "$as_me: error: conditional \"AMDEP\" was never defined.
 10676 Usually this means the macro was only invoked conditionally." >&2;}
 10677    { (exit 1); exit 1; }; }
 10678 fi
 10679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10680   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10681 Usually this means the macro was only invoked conditionally." >&5
 10682 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10683 Usually this means the macro was only invoked conditionally." >&2;}
 10684    { (exit 1); exit 1; }; }
 10685 fi
 10686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10687   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10688 Usually this means the macro was only invoked conditionally." >&5
 10689 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10690 Usually this means the macro was only invoked conditionally." >&2;}
 10691    { (exit 1); exit 1; }; }
 10692 fi
 10693 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 10694   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 10695 Usually this means the macro was only invoked conditionally." >&5
 10696 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 10697 Usually this means the macro was only invoked conditionally." >&2;}
 10698    { (exit 1); exit 1; }; }
 10699 fi
 10700 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
 10701   { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
 10702 Usually this means the macro was only invoked conditionally." >&5
 10703 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
 10704 Usually this means the macro was only invoked conditionally." >&2;}
 10705    { (exit 1); exit 1; }; }
 10706 fi
 10707 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
 10708   { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
 10709 Usually this means the macro was only invoked conditionally." >&5
 10710 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
 10711 Usually this means the macro was only invoked conditionally." >&2;}
 10712    { (exit 1); exit 1; }; }
 10713 fi
 10714 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
 10715   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
 10716 Usually this means the macro was only invoked conditionally." >&5
 10717 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
 10718 Usually this means the macro was only invoked conditionally." >&2;}
 10719    { (exit 1); exit 1; }; }
 10720 fi
 10721 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
 10722   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
 10723 Usually this means the macro was only invoked conditionally." >&5
 10724 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
 10725 Usually this means the macro was only invoked conditionally." >&2;}
 10726    { (exit 1); exit 1; }; }
 10727 fi
 10728 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
 10729   { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
 10730 Usually this means the macro was only invoked conditionally." >&5
 10731 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
 10732 Usually this means the macro was only invoked conditionally." >&2;}
 10733    { (exit 1); exit 1; }; }
 10734 fi
 10735 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
 10736   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
 10737 Usually this means the macro was only invoked conditionally." >&5
 10738 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
 10739 Usually this means the macro was only invoked conditionally." >&2;}
 10740    { (exit 1); exit 1; }; }
 10741 fi
 10742 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
 10743   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
 10744 Usually this means the macro was only invoked conditionally." >&5
 10745 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
 10746 Usually this means the macro was only invoked conditionally." >&2;}
 10747    { (exit 1); exit 1; }; }
 10748 fi
 10749 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
 10750   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
 10751 Usually this means the macro was only invoked conditionally." >&5
 10752 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
 10753 Usually this means the macro was only invoked conditionally." >&2;}
 10754    { (exit 1); exit 1; }; }
 10755 fi
 10756 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
 10757   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
 10758 Usually this means the macro was only invoked conditionally." >&5
 10759 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
 10760 Usually this means the macro was only invoked conditionally." >&2;}
 10761    { (exit 1); exit 1; }; }
 10762 fi
 10763 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
 10764   { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
 10765 Usually this means the macro was only invoked conditionally." >&5
 10766 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
 10767 Usually this means the macro was only invoked conditionally." >&2;}
 10768    { (exit 1); exit 1; }; }
 10769 fi
 10770 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
 10771   { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
 10772 Usually this means the macro was only invoked conditionally." >&5
 10773 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
 10774 Usually this means the macro was only invoked conditionally." >&2;}
 10775    { (exit 1); exit 1; }; }
 10776 fi
 10777 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
 10778   { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
 10779 Usually this means the macro was only invoked conditionally." >&5
 10780 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
 10781 Usually this means the macro was only invoked conditionally." >&2;}
 10782    { (exit 1); exit 1; }; }
 10783 fi
 10784 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
 10785   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
 10786 Usually this means the macro was only invoked conditionally." >&5
 10787 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
 10788 Usually this means the macro was only invoked conditionally." >&2;}
 10789    { (exit 1); exit 1; }; }
 10790 fi
 10791 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
 10792   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
 10793 Usually this means the macro was only invoked conditionally." >&5
 10794 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
 10795 Usually this means the macro was only invoked conditionally." >&2;}
 10796    { (exit 1); exit 1; }; }
 10797 fi
 10799 : ${CONFIG_STATUS=./config.status}
 10800 ac_clean_files_save=$ac_clean_files
 10801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 10802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 10803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 10804 cat >$CONFIG_STATUS <<_ACEOF
 10805 #! $SHELL
 10806 # Generated by $as_me.
 10807 # Run this file to recreate the current configuration.
 10808 # Compiler output produced by configure, useful for debugging
 10809 # configure, is in config.log if it exists.
 10811 debug=false
 10812 ac_cs_recheck=false
 10813 ac_cs_silent=false
 10814 SHELL=\${CONFIG_SHELL-$SHELL}
 10815 _ACEOF
 10817 cat >>$CONFIG_STATUS <<\_ACEOF
 10818 ## --------------------- ##
 10819 ## M4sh Initialization.  ##
 10820 ## --------------------- ##
 10822 # Be more Bourne compatible
 10823 DUALCASE=1; export DUALCASE # for MKS sh
 10824 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 10825   emulate sh
 10826   NULLCMD=:
 10827   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 10828   # is contrary to our usage.  Disable this feature.
 10829   alias -g '${1+"$@"}'='"$@"'
 10830   setopt NO_GLOB_SUBST
 10831 else
 10832   case `(set -o) 2>/dev/null` in
 10833   *posix*) set -o posix ;;
 10834 esac
 10836 fi
 10841 # PATH needs CR
 10842 # Avoid depending upon Character Ranges.
 10843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 10844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 10845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 10846 as_cr_digits='0123456789'
 10847 as_cr_alnum=$as_cr_Letters$as_cr_digits
 10849 # The user is always right.
 10850 if test "${PATH_SEPARATOR+set}" != set; then
 10851   echo "#! /bin/sh" >conf$$.sh
 10852   echo  "exit 0"   >>conf$$.sh
 10853   chmod +x conf$$.sh
 10854   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 10855     PATH_SEPARATOR=';'
 10856   else
 10857     PATH_SEPARATOR=:
 10858   fi
 10859   rm -f conf$$.sh
 10860 fi
 10862 # Support unset when possible.
 10863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 10864   as_unset=unset
 10865 else
 10866   as_unset=false
 10867 fi
 10870 # IFS
 10871 # We need space, tab and new line, in precisely that order.  Quoting is
 10872 # there to prevent editors from complaining about space-tab.
 10873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 10874 # splitting by setting IFS to empty value.)
 10875 as_nl='
 10877 IFS=" ""	$as_nl"
 10879 # Find who we are.  Look in the path if we contain no directory separator.
 10880 case $0 in
 10881   *[\\/]* ) as_myself=$0 ;;
 10882   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10883 for as_dir in $PATH
 10884 do
 10885   IFS=$as_save_IFS
 10886   test -z "$as_dir" && as_dir=.
 10887   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 10888 done
 10889 IFS=$as_save_IFS
 10891      ;;
 10892 esac
 10893 # We did not find ourselves, most probably we were run as `sh COMMAND'
 10894 # in which case we are not to be found in the path.
 10895 if test "x$as_myself" = x; then
 10896   as_myself=$0
 10897 fi
 10898 if test ! -f "$as_myself"; then
 10899   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 10900   { (exit 1); exit 1; }
 10901 fi
 10903 # Work around bugs in pre-3.0 UWIN ksh.
 10904 for as_var in ENV MAIL MAILPATH
 10905 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 10906 done
 10907 PS1='$ '
 10908 PS2='> '
 10909 PS4='+ '
 10911 # NLS nuisances.
 10912 for as_var in \
 10913   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 10914   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 10915   LC_TELEPHONE LC_TIME
 10916 do
 10917   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 10918     eval $as_var=C; export $as_var
 10919   else
 10920     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 10921   fi
 10922 done
 10924 # Required to use basename.
 10925 if expr a : '\(a\)' >/dev/null 2>&1 &&
 10926    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 10927   as_expr=expr
 10928 else
 10929   as_expr=false
 10930 fi
 10932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 10933   as_basename=basename
 10934 else
 10935   as_basename=false
 10936 fi
 10939 # Name of the executable.
 10940 as_me=`$as_basename -- "$0" ||
 10941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 10942 	 X"$0" : 'X\(//\)$' \| \
 10943 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 10944 echo X/"$0" |
 10945     sed '/^.*\/\([^/][^/]*\)\/*$/{
 10946 	    s//\1/
 10949 	  /^X\/\(\/\/\)$/{
 10950 	    s//\1/
 10953 	  /^X\/\(\/\).*/{
 10954 	    s//\1/
 10957 	  s/.*/./; q'`
 10959 # CDPATH.
 10960 $as_unset CDPATH
 10964   as_lineno_1=$LINENO
 10965   as_lineno_2=$LINENO
 10966   test "x$as_lineno_1" != "x$as_lineno_2" &&
 10967   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 10969   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 10970   # uniformly replaced by the line number.  The first 'sed' inserts a
 10971   # line-number line after each line using $LINENO; the second 'sed'
 10972   # does the real work.  The second script uses 'N' to pair each
 10973   # line-number line with the line containing $LINENO, and appends
 10974   # trailing '-' during substitution so that $LINENO is not a special
 10975   # case at line end.
 10976   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 10977   # scripts with optimization help from Paolo Bonzini.  Blame Lee
 10978   # E. McMahon (1931-1989) for sed's syntax.  :-)
 10979   sed -n '
 10981     /[$]LINENO/=
 10982   ' <$as_myself |
 10983     sed '
 10984       s/[$]LINENO.*/&-/
 10985       t lineno
 10987       :lineno
 10989       :loop
 10990       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 10991       t loop
 10992       s/-\n.*//
 10993     ' >$as_me.lineno &&
 10994   chmod +x "$as_me.lineno" ||
 10995     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 10996    { (exit 1); exit 1; }; }
 10998   # Don't try to exec as it changes $[0], causing all sort of problems
 10999   # (the dirname of $[0] is not the place where we might find the
 11000   # original and so on.  Autoconf is especially sensitive to this).
 11001   . "./$as_me.lineno"
 11002   # Exit status is that of the last command.
 11003   exit
 11007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 11008   as_dirname=dirname
 11009 else
 11010   as_dirname=false
 11011 fi
 11013 ECHO_C= ECHO_N= ECHO_T=
 11014 case `echo -n x` in
 11015 -n*)
 11016   case `echo 'x\c'` in
 11017   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 11018   *)   ECHO_C='\c';;
 11019   esac;;
 11020 *)
 11021   ECHO_N='-n';;
 11022 esac
 11024 if expr a : '\(a\)' >/dev/null 2>&1 &&
 11025    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 11026   as_expr=expr
 11027 else
 11028   as_expr=false
 11029 fi
 11031 rm -f conf$$ conf$$.exe conf$$.file
 11032 if test -d conf$$.dir; then
 11033   rm -f conf$$.dir/conf$$.file
 11034 else
 11035   rm -f conf$$.dir
 11036   mkdir conf$$.dir
 11037 fi
 11038 echo >conf$$.file
 11039 if ln -s conf$$.file conf$$ 2>/dev/null; then
 11040   as_ln_s='ln -s'
 11041   # ... but there are two gotchas:
 11042   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 11043   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 11044   # In both cases, we have to default to `cp -p'.
 11045   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 11046     as_ln_s='cp -p'
 11047 elif ln conf$$.file conf$$ 2>/dev/null; then
 11048   as_ln_s=ln
 11049 else
 11050   as_ln_s='cp -p'
 11051 fi
 11052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 11053 rmdir conf$$.dir 2>/dev/null
 11055 if mkdir -p . 2>/dev/null; then
 11056   as_mkdir_p=:
 11057 else
 11058   test -d ./-p && rmdir ./-p
 11059   as_mkdir_p=false
 11060 fi
 11062 if test -x / >/dev/null 2>&1; then
 11063   as_test_x='test -x'
 11064 else
 11065   if ls -dL / >/dev/null 2>&1; then
 11066     as_ls_L_option=L
 11067   else
 11068     as_ls_L_option=
 11069   fi
 11070   as_test_x='
 11071     eval sh -c '\''
 11072       if test -d "$1"; then
 11073         test -d "$1/.";
 11074       else
 11075 	case $1 in
 11076         -*)set "./$1";;
 11077 	esac;
 11078 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 11079 	???[sx]*):;;*)false;;esac;fi
 11080     '\'' sh
 11082 fi
 11083 as_executable_p=$as_test_x
 11085 # Sed expression to map a string onto a valid CPP name.
 11086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 11088 # Sed expression to map a string onto a valid variable name.
 11089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 11092 exec 6>&1
 11094 # Save the log message, to keep $[0] and so on meaningful, and to
 11095 # report actual input values of CONFIG_FILES etc. instead of their
 11096 # values after options handling.
 11097 ac_log="
 11098 This file was extended by $as_me, which was
 11099 generated by GNU Autoconf 2.61.  Invocation command line was
 11101   CONFIG_FILES    = $CONFIG_FILES
 11102   CONFIG_HEADERS  = $CONFIG_HEADERS
 11103   CONFIG_LINKS    = $CONFIG_LINKS
 11104   CONFIG_COMMANDS = $CONFIG_COMMANDS
 11105   $ $0 $@
 11107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 11110 _ACEOF
 11112 cat >>$CONFIG_STATUS <<_ACEOF
 11113 # Files that config.status was made for.
 11114 config_files="$ac_config_files"
 11115 config_headers="$ac_config_headers"
 11116 config_commands="$ac_config_commands"
 11118 _ACEOF
 11120 cat >>$CONFIG_STATUS <<\_ACEOF
 11121 ac_cs_usage="\
 11122 \`$as_me' instantiates files from templates according to the
 11123 current configuration.
 11125 Usage: $0 [OPTIONS] [FILE]...
 11127   -h, --help       print this help, then exit
 11128   -V, --version    print version number and configuration settings, then exit
 11129   -q, --quiet      do not print progress messages
 11130   -d, --debug      don't remove temporary files
 11131       --recheck    update $as_me by reconfiguring in the same conditions
 11132   --file=FILE[:TEMPLATE]
 11133 		   instantiate the configuration file FILE
 11134   --header=FILE[:TEMPLATE]
 11135 		   instantiate the configuration header FILE
 11137 Configuration files:
 11138 $config_files
 11140 Configuration headers:
 11141 $config_headers
 11143 Configuration commands:
 11144 $config_commands
 11146 Report bugs to <bug-autoconf@gnu.org>."
 11148 _ACEOF
 11149 cat >>$CONFIG_STATUS <<_ACEOF
 11150 ac_cs_version="\\
 11151 config.status
 11152 configured by $0, generated by GNU Autoconf 2.61,
 11153   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 11155 Copyright (C) 2006 Free Software Foundation, Inc.
 11156 This config.status script is free software; the Free Software Foundation
 11157 gives unlimited permission to copy, distribute and modify it."
 11159 ac_pwd='$ac_pwd'
 11160 srcdir='$srcdir'
 11161 INSTALL='$INSTALL'
 11162 _ACEOF
 11164 cat >>$CONFIG_STATUS <<\_ACEOF
 11165 # If no file are specified by the user, then we need to provide default
 11166 # value.  By we need to know if files were specified by the user.
 11167 ac_need_defaults=:
 11168 while test $# != 0
 11169 do
 11170   case $1 in
 11171   --*=*)
 11172     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 11173     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 11174     ac_shift=:
 11175     ;;
 11176   *)
 11177     ac_option=$1
 11178     ac_optarg=$2
 11179     ac_shift=shift
 11180     ;;
 11181   esac
 11183   case $ac_option in
 11184   # Handling of the options.
 11185   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 11186     ac_cs_recheck=: ;;
 11187   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 11188     echo "$ac_cs_version"; exit ;;
 11189   --debug | --debu | --deb | --de | --d | -d )
 11190     debug=: ;;
 11191   --file | --fil | --fi | --f )
 11192     $ac_shift
 11193     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 11194     ac_need_defaults=false;;
 11195   --header | --heade | --head | --hea )
 11196     $ac_shift
 11197     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 11198     ac_need_defaults=false;;
 11199   --he | --h)
 11200     # Conflict between --help and --header
 11201     { echo "$as_me: error: ambiguous option: $1
 11202 Try \`$0 --help' for more information." >&2
 11203    { (exit 1); exit 1; }; };;
 11204   --help | --hel | -h )
 11205     echo "$ac_cs_usage"; exit ;;
 11206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 11207   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 11208     ac_cs_silent=: ;;
 11210   # This is an error.
 11211   -*) { echo "$as_me: error: unrecognized option: $1
 11212 Try \`$0 --help' for more information." >&2
 11213    { (exit 1); exit 1; }; } ;;
 11215   *) ac_config_targets="$ac_config_targets $1"
 11216      ac_need_defaults=false ;;
 11218   esac
 11219   shift
 11220 done
 11222 ac_configure_extra_args=
 11224 if $ac_cs_silent; then
 11225   exec 6>/dev/null
 11226   ac_configure_extra_args="$ac_configure_extra_args --silent"
 11227 fi
 11229 _ACEOF
 11230 cat >>$CONFIG_STATUS <<_ACEOF
 11231 if \$ac_cs_recheck; then
 11232   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 11233   CONFIG_SHELL=$SHELL
 11234   export CONFIG_SHELL
 11235   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 11236 fi
 11238 _ACEOF
 11239 cat >>$CONFIG_STATUS <<\_ACEOF
 11240 exec 5>>config.log
 11242   echo
 11243   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 11244 ## Running $as_me. ##
 11245 _ASBOX
 11246   echo "$ac_log"
 11247 } >&5
 11249 _ACEOF
 11250 cat >>$CONFIG_STATUS <<_ACEOF
 11252 # INIT-COMMANDS
 11254 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 11257 _ACEOF
 11259 cat >>$CONFIG_STATUS <<\_ACEOF
 11261 # Handling of arguments.
 11262 for ac_config_target in $ac_config_targets
 11263 do
 11264   case $ac_config_target in
 11265     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 11266     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 11267     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 11268     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 11269     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 11270     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 11271     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 11273   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 11274 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 11275    { (exit 1); exit 1; }; };;
 11276   esac
 11277 done
 11280 # If the user did not use the arguments to specify the items to instantiate,
 11281 # then the envvar interface is used.  Set only those that are not.
 11282 # We use the long form for the default assignment because of an extremely
 11283 # bizarre bug on SunOS 4.1.3.
 11284 if $ac_need_defaults; then
 11285   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 11286   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 11287   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 11288 fi
 11290 # Have a temporary directory for convenience.  Make it in the build tree
 11291 # simply because there is no reason against having it here, and in addition,
 11292 # creating and moving files from /tmp can sometimes cause problems.
 11293 # Hook for its removal unless debugging.
 11294 # Note that there is a small window in which the directory will not be cleaned:
 11295 # after its creation but before its name has been assigned to `$tmp'.
 11296 $debug ||
 11298   tmp=
 11299   trap 'exit_status=$?
 11300   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 11301 ' 0
 11302   trap '{ (exit 1); exit 1; }' 1 2 13 15
 11304 # Create a (secure) tmp directory for tmp files.
 11307   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 11308   test -n "$tmp" && test -d "$tmp"
 11309 }  ||
 11311   tmp=./conf$$-$RANDOM
 11312   (umask 077 && mkdir "$tmp")
 11313 } ||
 11315    echo "$me: cannot create a temporary directory in ." >&2
 11316    { (exit 1); exit 1; }
 11320 # Set up the sed scripts for CONFIG_FILES section.
 11323 # No need to generate the scripts if there are no CONFIG_FILES.
 11324 # This happens for instance when ./config.status config.h
 11325 if test -n "$CONFIG_FILES"; then
 11327 _ACEOF
 11331 ac_delim='%!_!# '
 11332 for ac_last_try in false false false false false :; do
 11333   cat >conf$$subs.sed <<_ACEOF
 11334 SHELL!$SHELL$ac_delim
 11335 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 11336 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 11337 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 11338 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 11339 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 11340 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 11341 exec_prefix!$exec_prefix$ac_delim
 11342 prefix!$prefix$ac_delim
 11343 program_transform_name!$program_transform_name$ac_delim
 11344 bindir!$bindir$ac_delim
 11345 sbindir!$sbindir$ac_delim
 11346 libexecdir!$libexecdir$ac_delim
 11347 datarootdir!$datarootdir$ac_delim
 11348 datadir!$datadir$ac_delim
 11349 sysconfdir!$sysconfdir$ac_delim
 11350 sharedstatedir!$sharedstatedir$ac_delim
 11351 localstatedir!$localstatedir$ac_delim
 11352 includedir!$includedir$ac_delim
 11353 oldincludedir!$oldincludedir$ac_delim
 11354 docdir!$docdir$ac_delim
 11355 infodir!$infodir$ac_delim
 11356 htmldir!$htmldir$ac_delim
 11357 dvidir!$dvidir$ac_delim
 11358 pdfdir!$pdfdir$ac_delim
 11359 psdir!$psdir$ac_delim
 11360 libdir!$libdir$ac_delim
 11361 localedir!$localedir$ac_delim
 11362 mandir!$mandir$ac_delim
 11363 DEFS!$DEFS$ac_delim
 11364 ECHO_C!$ECHO_C$ac_delim
 11365 ECHO_N!$ECHO_N$ac_delim
 11366 ECHO_T!$ECHO_T$ac_delim
 11367 LIBS!$LIBS$ac_delim
 11368 build_alias!$build_alias$ac_delim
 11369 host_alias!$host_alias$ac_delim
 11370 target_alias!$target_alias$ac_delim
 11371 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 11372 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 11373 INSTALL_DATA!$INSTALL_DATA$ac_delim
 11374 CYGPATH_W!$CYGPATH_W$ac_delim
 11375 PACKAGE!$PACKAGE$ac_delim
 11376 VERSION!$VERSION$ac_delim
 11377 ACLOCAL!$ACLOCAL$ac_delim
 11378 AUTOCONF!$AUTOCONF$ac_delim
 11379 AUTOMAKE!$AUTOMAKE$ac_delim
 11380 AUTOHEADER!$AUTOHEADER$ac_delim
 11381 MAKEINFO!$MAKEINFO$ac_delim
 11382 install_sh!$install_sh$ac_delim
 11383 STRIP!$STRIP$ac_delim
 11384 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 11385 mkdir_p!$mkdir_p$ac_delim
 11386 AWK!$AWK$ac_delim
 11387 SET_MAKE!$SET_MAKE$ac_delim
 11388 am__leading_dot!$am__leading_dot$ac_delim
 11389 AMTAR!$AMTAR$ac_delim
 11390 am__tar!$am__tar$ac_delim
 11391 am__untar!$am__untar$ac_delim
 11392 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 11393 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 11394 MAINT!$MAINT$ac_delim
 11395 CC!$CC$ac_delim
 11396 CFLAGS!$CFLAGS$ac_delim
 11397 LDFLAGS!$LDFLAGS$ac_delim
 11398 CPPFLAGS!$CPPFLAGS$ac_delim
 11399 ac_ct_CC!$ac_ct_CC$ac_delim
 11400 EXEEXT!$EXEEXT$ac_delim
 11401 OBJEXT!$OBJEXT$ac_delim
 11402 DEPDIR!$DEPDIR$ac_delim
 11403 am__include!$am__include$ac_delim
 11404 am__quote!$am__quote$ac_delim
 11405 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 11406 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 11407 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 11408 CCDEPMODE!$CCDEPMODE$ac_delim
 11409 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 11410 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 11411 CCAS!$CCAS$ac_delim
 11412 CCASFLAGS!$CCASFLAGS$ac_delim
 11413 CPP!$CPP$ac_delim
 11414 GREP!$GREP$ac_delim
 11415 EGREP!$EGREP$ac_delim
 11416 build!$build$ac_delim
 11417 build_cpu!$build_cpu$ac_delim
 11418 build_vendor!$build_vendor$ac_delim
 11419 build_os!$build_os$ac_delim
 11420 host!$host$ac_delim
 11421 host_cpu!$host_cpu$ac_delim
 11422 host_vendor!$host_vendor$ac_delim
 11423 host_os!$host_os$ac_delim
 11424 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
 11425 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
 11426 PKG_CONFIG!$PKG_CONFIG$ac_delim
 11427 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
 11428 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 11429 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
 11430 GTK_LIBS!$GTK_LIBS$ac_delim
 11431 _ACEOF
 11433   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 11434     break
 11435   elif $ac_last_try; then
 11436     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 11437 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 11438    { (exit 1); exit 1; }; }
 11439   else
 11440     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 11441   fi
 11442 done
 11444 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 11445 if test -n "$ac_eof"; then
 11446   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 11447   ac_eof=`expr $ac_eof + 1`
 11448 fi
 11450 cat >>$CONFIG_STATUS <<_ACEOF
 11451 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 11452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 11453 _ACEOF
 11454 sed '
 11455 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 11456 s/^/s,@/; s/!/@,|#_!!_#|/
 11457 :n
 11458 t n
 11459 s/'"$ac_delim"'$/,g/; t
 11460 s/$/\\/; p
 11461 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 11462 ' >>$CONFIG_STATUS <conf$$subs.sed
 11463 rm -f conf$$subs.sed
 11464 cat >>$CONFIG_STATUS <<_ACEOF
 11465 CEOF$ac_eof
 11466 _ACEOF
 11469 ac_delim='%!_!# '
 11470 for ac_last_try in false false false false false :; do
 11471   cat >conf$$subs.sed <<_ACEOF
 11472 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
 11473 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
 11474 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
 11475 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
 11476 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
 11477 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
 11478 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
 11479 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
 11480 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
 11481 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
 11482 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
 11483 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
 11484 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
 11485 PULSE_LIBS!$PULSE_LIBS$ac_delim
 11486 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
 11487 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
 11488 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
 11489 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
 11490 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
 11491 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
 11492 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
 11493 ALSA_LIBS!$ALSA_LIBS$ac_delim
 11494 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
 11495 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
 11496 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
 11497 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
 11498 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
 11499 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
 11500 SHCC!$SHCC$ac_delim
 11501 SHLD!$SHLD$ac_delim
 11502 SHOBJCOPY!$SHOBJCOPY$ac_delim
 11503 ARMCC!$ARMCC$ac_delim
 11504 ARMLD!$ARMLD$ac_delim
 11505 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
 11506 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
 11507 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
 11508 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
 11509 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
 11510 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 11511 USE_NLS!$USE_NLS$ac_delim
 11512 MSGFMT!$MSGFMT$ac_delim
 11513 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 11514 GMSGFMT!$GMSGFMT$ac_delim
 11515 XGETTEXT!$XGETTEXT$ac_delim
 11516 CATALOGS!$CATALOGS$ac_delim
 11517 CATOBJEXT!$CATOBJEXT$ac_delim
 11518 DATADIRNAME!$DATADIRNAME$ac_delim
 11519 GMOFILES!$GMOFILES$ac_delim
 11520 INSTOBJEXT!$INSTOBJEXT$ac_delim
 11521 INTLLIBS!$INTLLIBS$ac_delim
 11522 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 11523 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 11524 POFILES!$POFILES$ac_delim
 11525 POSUB!$POSUB$ac_delim
 11526 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 11527 LIBOBJS!$LIBOBJS$ac_delim
 11528 LTLIBOBJS!$LTLIBOBJS$ac_delim
 11529 _ACEOF
 11531   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
 11532     break
 11533   elif $ac_last_try; then
 11534     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 11535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 11536    { (exit 1); exit 1; }; }
 11537   else
 11538     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 11539   fi
 11540 done
 11542 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 11543 if test -n "$ac_eof"; then
 11544   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 11545   ac_eof=`expr $ac_eof + 1`
 11546 fi
 11548 cat >>$CONFIG_STATUS <<_ACEOF
 11549 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 11550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 11551 _ACEOF
 11552 sed '
 11553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 11554 s/^/s,@/; s/!/@,|#_!!_#|/
 11555 :n
 11556 t n
 11557 s/'"$ac_delim"'$/,g/; t
 11558 s/$/\\/; p
 11559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 11560 ' >>$CONFIG_STATUS <conf$$subs.sed
 11561 rm -f conf$$subs.sed
 11562 cat >>$CONFIG_STATUS <<_ACEOF
 11563 :end
 11564 s/|#_!!_#|//g
 11565 CEOF$ac_eof
 11566 _ACEOF
 11569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
 11570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 11571 # trailing colons and then remove the whole line if VPATH becomes empty
 11572 # (actually we leave an empty line to preserve line numbers).
 11573 if test "x$srcdir" = x.; then
 11574   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 11575 s/:*\$(srcdir):*/:/
 11576 s/:*\${srcdir}:*/:/
 11577 s/:*@srcdir@:*/:/
 11578 s/^\([^=]*=[	 ]*\):*/\1/
 11579 s/:*$//
 11580 s/^[^=]*=[	 ]*$//
 11581 }'
 11582 fi
 11584 cat >>$CONFIG_STATUS <<\_ACEOF
 11585 fi # test -n "$CONFIG_FILES"
 11588 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 11589 do
 11590   case $ac_tag in
 11591   :[FHLC]) ac_mode=$ac_tag; continue;;
 11592   esac
 11593   case $ac_mode$ac_tag in
 11594   :[FHL]*:*);;
 11595   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 11596 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 11597    { (exit 1); exit 1; }; };;
 11598   :[FH]-) ac_tag=-:-;;
 11599   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 11600   esac
 11601   ac_save_IFS=$IFS
 11602   IFS=:
 11603   set x $ac_tag
 11604   IFS=$ac_save_IFS
 11605   shift
 11606   ac_file=$1
 11607   shift
 11609   case $ac_mode in
 11610   :L) ac_source=$1;;
 11611   :[FH])
 11612     ac_file_inputs=
 11613     for ac_f
 11614     do
 11615       case $ac_f in
 11616       -) ac_f="$tmp/stdin";;
 11617       *) # Look for the file first in the build tree, then in the source tree
 11618 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 11619 	 # because $ac_f cannot contain `:'.
 11620 	 test -f "$ac_f" ||
 11621 	   case $ac_f in
 11622 	   [\\/$]*) false;;
 11623 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 11624 	   esac ||
 11625 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 11626 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 11627    { (exit 1); exit 1; }; };;
 11628       esac
 11629       ac_file_inputs="$ac_file_inputs $ac_f"
 11630     done
 11632     # Let's still pretend it is `configure' which instantiates (i.e., don't
 11633     # use $as_me), people would be surprised to read:
 11634     #    /* config.h.  Generated by config.status.  */
 11635     configure_input="Generated from "`IFS=:
 11636 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 11637     if test x"$ac_file" != x-; then
 11638       configure_input="$ac_file.  $configure_input"
 11639       { echo "$as_me:$LINENO: creating $ac_file" >&5
 11640 echo "$as_me: creating $ac_file" >&6;}
 11641     fi
 11643     case $ac_tag in
 11644     *:-:* | *:-) cat >"$tmp/stdin";;
 11645     esac
 11646     ;;
 11647   esac
 11649   ac_dir=`$as_dirname -- "$ac_file" ||
 11650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11651 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 11652 	 X"$ac_file" : 'X\(//\)$' \| \
 11653 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 11654 echo X"$ac_file" |
 11655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11656 	    s//\1/
 11659 	  /^X\(\/\/\)[^/].*/{
 11660 	    s//\1/
 11663 	  /^X\(\/\/\)$/{
 11664 	    s//\1/
 11667 	  /^X\(\/\).*/{
 11668 	    s//\1/
 11671 	  s/.*/./; q'`
 11672   { as_dir="$ac_dir"
 11673   case $as_dir in #(
 11674   -*) as_dir=./$as_dir;;
 11675   esac
 11676   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 11677     as_dirs=
 11678     while :; do
 11679       case $as_dir in #(
 11680       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 11681       *) as_qdir=$as_dir;;
 11682       esac
 11683       as_dirs="'$as_qdir' $as_dirs"
 11684       as_dir=`$as_dirname -- "$as_dir" ||
 11685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11686 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 11687 	 X"$as_dir" : 'X\(//\)$' \| \
 11688 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 11689 echo X"$as_dir" |
 11690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11691 	    s//\1/
 11694 	  /^X\(\/\/\)[^/].*/{
 11695 	    s//\1/
 11698 	  /^X\(\/\/\)$/{
 11699 	    s//\1/
 11702 	  /^X\(\/\).*/{
 11703 	    s//\1/
 11706 	  s/.*/./; q'`
 11707       test -d "$as_dir" && break
 11708     done
 11709     test -z "$as_dirs" || eval "mkdir $as_dirs"
 11710   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 11711 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 11712    { (exit 1); exit 1; }; }; }
 11713   ac_builddir=.
 11715 case "$ac_dir" in
 11716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 11717 *)
 11718   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 11719   # A ".." for each directory in $ac_dir_suffix.
 11720   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 11721   case $ac_top_builddir_sub in
 11722   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 11723   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 11724   esac ;;
 11725 esac
 11726 ac_abs_top_builddir=$ac_pwd
 11727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 11728 # for backward compatibility:
 11729 ac_top_builddir=$ac_top_build_prefix
 11731 case $srcdir in
 11732   .)  # We are building in place.
 11733     ac_srcdir=.
 11734     ac_top_srcdir=$ac_top_builddir_sub
 11735     ac_abs_top_srcdir=$ac_pwd ;;
 11736   [\\/]* | ?:[\\/]* )  # Absolute name.
 11737     ac_srcdir=$srcdir$ac_dir_suffix;
 11738     ac_top_srcdir=$srcdir
 11739     ac_abs_top_srcdir=$srcdir ;;
 11740   *) # Relative name.
 11741     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 11742     ac_top_srcdir=$ac_top_build_prefix$srcdir
 11743     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 11744 esac
 11745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 11748   case $ac_mode in
 11749   :F)
 11751   # CONFIG_FILE
 11754   case $INSTALL in
 11755   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 11756   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 11757   esac
 11758 _ACEOF
 11760 cat >>$CONFIG_STATUS <<\_ACEOF
 11761 # If the template does not know about datarootdir, expand it.
 11762 # FIXME: This hack should be removed a few years after 2.60.
 11763 ac_datarootdir_hack=; ac_datarootdir_seen=
 11765 case `sed -n '/datarootdir/ {
 11769 /@datadir@/p
 11770 /@docdir@/p
 11771 /@infodir@/p
 11772 /@localedir@/p
 11773 /@mandir@/p
 11774 ' $ac_file_inputs` in
 11775 *datarootdir*) ac_datarootdir_seen=yes;;
 11776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 11777   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 11778 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 11779 _ACEOF
 11780 cat >>$CONFIG_STATUS <<_ACEOF
 11781   ac_datarootdir_hack='
 11782   s&@datadir@&$datadir&g
 11783   s&@docdir@&$docdir&g
 11784   s&@infodir@&$infodir&g
 11785   s&@localedir@&$localedir&g
 11786   s&@mandir@&$mandir&g
 11787     s&\\\${datarootdir}&$datarootdir&g' ;;
 11788 esac
 11789 _ACEOF
 11791 # Neutralize VPATH when `$srcdir' = `.'.
 11792 # Shell code in configure.ac might set extrasub.
 11793 # FIXME: do we really want to maintain this feature?
 11794 cat >>$CONFIG_STATUS <<_ACEOF
 11795   sed "$ac_vpsub
 11796 $extrasub
 11797 _ACEOF
 11798 cat >>$CONFIG_STATUS <<\_ACEOF
 11799 :t
 11800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 11801 s&@configure_input@&$configure_input&;t t
 11802 s&@top_builddir@&$ac_top_builddir_sub&;t t
 11803 s&@srcdir@&$ac_srcdir&;t t
 11804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
 11805 s&@top_srcdir@&$ac_top_srcdir&;t t
 11806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 11807 s&@builddir@&$ac_builddir&;t t
 11808 s&@abs_builddir@&$ac_abs_builddir&;t t
 11809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 11810 s&@INSTALL@&$ac_INSTALL&;t t
 11811 $ac_datarootdir_hack
 11812 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 11814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 11815   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 11816   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 11817   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 11818 which seems to be undefined.  Please make sure it is defined." >&5
 11819 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 11820 which seems to be undefined.  Please make sure it is defined." >&2;}
 11822   rm -f "$tmp/stdin"
 11823   case $ac_file in
 11824   -) cat "$tmp/out"; rm -f "$tmp/out";;
 11825   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 11826   esac
 11827  ;;
 11828   :H)
 11830   # CONFIG_HEADER
 11832 _ACEOF
 11834 # Transform confdefs.h into a sed script `conftest.defines', that
 11835 # substitutes the proper values into config.h.in to produce config.h.
 11836 rm -f conftest.defines conftest.tail
 11837 # First, append a space to every undef/define line, to ease matching.
 11838 echo 's/$/ /' >conftest.defines
 11839 # Then, protect against being on the right side of a sed subst, or in
 11840 # an unquoted here document, in config.status.  If some macros were
 11841 # called several times there might be several #defines for the same
 11842 # symbol, which is useless.  But do not sort them, since the last
 11843 # AC_DEFINE must be honored.
 11844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 11845 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 11846 # NAME is the cpp macro being defined, VALUE is the value it is being given.
 11847 # PARAMS is the parameter list in the macro definition--in most cases, it's
 11848 # just an empty string.
 11849 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
 11850 ac_dB='\\)[	 (].*,\\1define\\2'
 11851 ac_dC=' '
 11852 ac_dD=' ,'
 11854 uniq confdefs.h |
 11855   sed -n '
 11856 	t rset
 11857 	:rset
 11858 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
 11859 	t ok
 11861 	:ok
 11862 	s/[\\&,]/\\&/g
 11863 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 11864 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 11865   ' >>conftest.defines
 11867 # Remove the space that was appended to ease matching.
 11868 # Then replace #undef with comments.  This is necessary, for
 11869 # example, in the case of _POSIX_SOURCE, which is predefined and required
 11870 # on some systems where configure will not decide to define it.
 11871 # (The regexp can be short, since the line contains either #define or #undef.)
 11872 echo 's/ $//
 11873 s,^[	 #]*u.*,/* & */,' >>conftest.defines
 11875 # Break up conftest.defines:
 11876 ac_max_sed_lines=50
 11878 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 11879 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 11880 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 11881 # et cetera.
 11882 ac_in='$ac_file_inputs'
 11883 ac_out='"$tmp/out1"'
 11884 ac_nxt='"$tmp/out2"'
 11886 while :
 11887 do
 11888   # Write a here document:
 11889     cat >>$CONFIG_STATUS <<_ACEOF
 11890     # First, check the format of the line:
 11891     cat >"\$tmp/defines.sed" <<\\CEOF
 11892 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
 11893 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
 11895 :def
 11896 _ACEOF
 11897   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 11898   echo 'CEOF
 11899     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 11900   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 11901   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 11902   grep . conftest.tail >/dev/null || break
 11903   rm -f conftest.defines
 11904   mv conftest.tail conftest.defines
 11905 done
 11906 rm -f conftest.defines conftest.tail
 11908 echo "ac_result=$ac_in" >>$CONFIG_STATUS
 11909 cat >>$CONFIG_STATUS <<\_ACEOF
 11910   if test x"$ac_file" != x-; then
 11911     echo "/* $configure_input  */" >"$tmp/config.h"
 11912     cat "$ac_result" >>"$tmp/config.h"
 11913     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 11914       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 11915 echo "$as_me: $ac_file is unchanged" >&6;}
 11916     else
 11917       rm -f $ac_file
 11918       mv "$tmp/config.h" $ac_file
 11919     fi
 11920   else
 11921     echo "/* $configure_input  */"
 11922     cat "$ac_result"
 11923   fi
 11924   rm -f "$tmp/out12"
 11925 # Compute $ac_file's index in $config_headers.
 11926 _am_stamp_count=1
 11927 for _am_header in $config_headers :; do
 11928   case $_am_header in
 11929     $ac_file | $ac_file:* )
 11930       break ;;
 11931     * )
 11932       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 11933   esac
 11934 done
 11935 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 11936 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11937 	 X$ac_file : 'X\(//\)[^/]' \| \
 11938 	 X$ac_file : 'X\(//\)$' \| \
 11939 	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 11940 echo X$ac_file |
 11941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11942 	    s//\1/
 11945 	  /^X\(\/\/\)[^/].*/{
 11946 	    s//\1/
 11949 	  /^X\(\/\/\)$/{
 11950 	    s//\1/
 11953 	  /^X\(\/\).*/{
 11954 	    s//\1/
 11957 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 11958  ;;
 11960   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 11961 echo "$as_me: executing $ac_file commands" >&6;}
 11962  ;;
 11963   esac
 11966   case $ac_file$ac_mode in
 11967     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 11968   # Strip MF so we end up with the name of the file.
 11969   mf=`echo "$mf" | sed -e 's/:.*$//'`
 11970   # Check whether this is an Automake generated Makefile or not.
 11971   # We used to match only the files named `Makefile.in', but
 11972   # some people rename them; so instead we look at the file content.
 11973   # Grep'ing the first line is not enough: some people post-process
 11974   # each Makefile.in and add a new line on top of each file to say so.
 11975   # So let's grep whole file.
 11976   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 11977     dirpart=`$as_dirname -- "$mf" ||
 11978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 11979 	 X"$mf" : 'X\(//\)[^/]' \| \
 11980 	 X"$mf" : 'X\(//\)$' \| \
 11981 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 11982 echo X"$mf" |
 11983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 11984 	    s//\1/
 11987 	  /^X\(\/\/\)[^/].*/{
 11988 	    s//\1/
 11991 	  /^X\(\/\/\)$/{
 11992 	    s//\1/
 11995 	  /^X\(\/\).*/{
 11996 	    s//\1/
 11999 	  s/.*/./; q'`
 12000   else
 12001     continue
 12002   fi
 12003   # Extract the definition of DEPDIR, am__include, and am__quote
 12004   # from the Makefile without running `make'.
 12005   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 12006   test -z "$DEPDIR" && continue
 12007   am__include=`sed -n 's/^am__include = //p' < "$mf"`
 12008   test -z "am__include" && continue
 12009   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 12010   # When using ansi2knr, U may be empty or an underscore; expand it
 12011   U=`sed -n 's/^U = //p' < "$mf"`
 12012   # Find all dependency output files, they are included files with
 12013   # $(DEPDIR) in their names.  We invoke sed twice because it is the
 12014   # simplest approach to changing $(DEPDIR) to its actual value in the
 12015   # expansion.
 12016   for file in `sed -n "
 12017     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 12018        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 12019     # Make sure the directory exists.
 12020     test -f "$dirpart/$file" && continue
 12021     fdir=`$as_dirname -- "$file" ||
 12022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12023 	 X"$file" : 'X\(//\)[^/]' \| \
 12024 	 X"$file" : 'X\(//\)$' \| \
 12025 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 12026 echo X"$file" |
 12027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12028 	    s//\1/
 12031 	  /^X\(\/\/\)[^/].*/{
 12032 	    s//\1/
 12035 	  /^X\(\/\/\)$/{
 12036 	    s//\1/
 12039 	  /^X\(\/\).*/{
 12040 	    s//\1/
 12043 	  s/.*/./; q'`
 12044     { as_dir=$dirpart/$fdir
 12045   case $as_dir in #(
 12046   -*) as_dir=./$as_dir;;
 12047   esac
 12048   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 12049     as_dirs=
 12050     while :; do
 12051       case $as_dir in #(
 12052       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 12053       *) as_qdir=$as_dir;;
 12054       esac
 12055       as_dirs="'$as_qdir' $as_dirs"
 12056       as_dir=`$as_dirname -- "$as_dir" ||
 12057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 12058 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 12059 	 X"$as_dir" : 'X\(//\)$' \| \
 12060 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 12061 echo X"$as_dir" |
 12062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 12063 	    s//\1/
 12066 	  /^X\(\/\/\)[^/].*/{
 12067 	    s//\1/
 12070 	  /^X\(\/\/\)$/{
 12071 	    s//\1/
 12074 	  /^X\(\/\).*/{
 12075 	    s//\1/
 12078 	  s/.*/./; q'`
 12079       test -d "$as_dir" && break
 12080     done
 12081     test -z "$as_dirs" || eval "mkdir $as_dirs"
 12082   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 12083 echo "$as_me: error: cannot create directory $as_dir" >&2;}
 12084    { (exit 1); exit 1; }; }; }
 12085     # echo "creating $dirpart/$file"
 12086     echo '# dummy' > "$dirpart/$file"
 12087   done
 12088 done
 12089  ;;
 12090     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 12091         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 12092       esac ;;
 12094   esac
 12095 done # for ac_tag
 12098 { (exit 0); exit 0; }
 12099 _ACEOF
 12100 chmod +x $CONFIG_STATUS
 12101 ac_clean_files=$ac_clean_files_save
 12104 # configure is writing to config.log, and then calls config.status.
 12105 # config.status does its own redirection, appending to config.log.
 12106 # Unfortunately, on DOS this fails, as config.log is still kept open
 12107 # by configure, so config.status won't be able to write to it; its
 12108 # output is simply discarded.  So we exec the FD to /dev/null,
 12109 # effectively closing config.log, so it can be properly (re)opened and
 12110 # appended to by config.status.  When coming back to configure, we
 12111 # need to make the FD available again.
 12112 if test "$no_create" != yes; then
 12113   ac_cs_success=:
 12114   ac_config_status_args=
 12115   test "$silent" = yes &&
 12116     ac_config_status_args="$ac_config_status_args --quiet"
 12117   exec 5>/dev/null
 12118   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 12119   exec 5>>config.log
 12120   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 12121   # would make configure fail if this is the last instruction.
 12122   $ac_cs_success || { (exit 1); exit 1; }
 12123 fi
.