test/configure
author Sam Lantinga <slouken@libsdl.org>
Wed, 16 Feb 2011 02:37:09 -0800
changeset 5310 a9945ce48999
child 5670 bdaa6299e107
permissions -rwxr-xr-x
Made it possible to build SDL from a fresh checkout without any additional steps.

The trick is that if you're using configure and you don't want to have SDL_config.h and SDL_revision.h to show up as modified, you need to configure and build from a separate directory.

You also need to include SDL_revision.h directly if you want to use the SDL_REVISION constant, as a side effect of these changes.
     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 ## --------------------- ##
    12 
    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
    26 
    27 fi
    28 
    29 
    30 
    31 
    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
    39 
    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
    52 
    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
    59 
    60 
    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"
    69 
    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
    81 
    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
    93 
    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='+ '
   101 
   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
   114 
   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
   122 
   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
   128 
   129 
   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'`
   149 
   150 # CDPATH.
   151 $as_unset CDPATH
   152 
   153 
   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
   160 
   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 }
   177 
   178 exitcode=0
   179 if as_func_success; then
   180   :
   181 else
   182   exitcode=1
   183   echo as_func_success failed.
   184 fi
   185 
   186 if as_func_failure; then
   187   exitcode=1
   188   echo as_func_failure succeeded.
   189 fi
   190 
   191 if as_func_ret_success; then
   192   :
   193 else
   194   exitcode=1
   195   echo as_func_ret_success failed.
   196 fi
   197 
   198 if as_func_ret_failure; then
   199   exitcode=1
   200   echo as_func_ret_failure succeeded.
   201 fi
   202 
   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
   209 
   210 test \$exitcode = 0) || { (exit 1); exit 1; }
   211 
   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
   234 
   235 
   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
   251 
   252 fi
   253 
   254 
   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
   272 
   273 fi
   274 
   275 
   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 }
   292 
   293 exitcode=0
   294 if as_func_success; then
   295   :
   296 else
   297   exitcode=1
   298   echo as_func_success failed.
   299 fi
   300 
   301 if as_func_failure; then
   302   exitcode=1
   303   echo as_func_failure succeeded.
   304 fi
   305 
   306 if as_func_ret_success; then
   307   :
   308 else
   309   exitcode=1
   310   echo as_func_ret_success failed.
   311 fi
   312 
   313 if as_func_ret_failure; then
   314   exitcode=1
   315   echo as_func_ret_failure succeeded.
   316 fi
   317 
   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
   324 
   325 test $exitcode = 0) || { (exit 1); exit 1; }
   326 
   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; }
   332 
   333 _ASEOF
   334 }; then
   335   break
   336 fi
   337 
   338 fi
   339 
   340       done
   341 
   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
   349 
   350 
   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
   358 
   359 
   360 fi
   361 
   362 fi
   363 
   364 
   365 
   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 }
   381 
   382 exitcode=0
   383 if as_func_success; then
   384   :
   385 else
   386   exitcode=1
   387   echo as_func_success failed.
   388 fi
   389 
   390 if as_func_failure; then
   391   exitcode=1
   392   echo as_func_failure succeeded.
   393 fi
   394 
   395 if as_func_ret_success; then
   396   :
   397 else
   398   exitcode=1
   399   echo as_func_ret_success failed.
   400 fi
   401 
   402 if as_func_ret_failure; then
   403   exitcode=1
   404   echo as_func_ret_failure succeeded.
   405 fi
   406 
   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
   413 
   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 }
   420 
   421 
   422 
   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" || {
   427 
   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; }; }
   456 
   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 }
   464 
   465 
   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
   471 
   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
   482 
   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
   489 
   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
   513 
   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
   520 
   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
   543 
   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'"
   546 
   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'"
   549 
   550 
   551 
   552 exec 7<&0 </dev/null 6>&1
   553 
   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`
   558 
   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}
   571 
   572 # Identity of this package.
   573 PACKAGE_NAME=
   574 PACKAGE_TARNAME=
   575 PACKAGE_VERSION=
   576 PACKAGE_STRING=
   577 PACKAGE_BUGREPORT=
   578 
   579 ac_unique_file="README"
   580 ac_subst_vars='SHELL
   581 PATH_SEPARATOR
   582 PACKAGE_NAME
   583 PACKAGE_TARNAME
   584 PACKAGE_VERSION
   585 PACKAGE_STRING
   586 PACKAGE_BUGREPORT
   587 exec_prefix
   588 prefix
   589 program_transform_name
   590 bindir
   591 sbindir
   592 libexecdir
   593 datarootdir
   594 datadir
   595 sysconfdir
   596 sharedstatedir
   597 localstatedir
   598 includedir
   599 oldincludedir
   600 docdir
   601 infodir
   602 htmldir
   603 dvidir
   604 pdfdir
   605 psdir
   606 libdir
   607 localedir
   608 mandir
   609 DEFS
   610 ECHO_C
   611 ECHO_N
   612 ECHO_T
   613 LIBS
   614 build_alias
   615 host_alias
   616 target_alias
   617 build
   618 build_cpu
   619 build_vendor
   620 build_os
   621 host
   622 host_cpu
   623 host_vendor
   624 host_os
   625 CC
   626 CFLAGS
   627 LDFLAGS
   628 CPPFLAGS
   629 ac_ct_CC
   630 EXEEXT
   631 OBJEXT
   632 OSMESA_CONFIG
   633 EXE
   634 MATHLIB
   635 SDL_CONFIG
   636 SDL_CFLAGS
   637 SDL_LIBS
   638 XMKMF
   639 CPP
   640 GLLIB
   641 SDL_TTF_LIB
   642 LIBOBJS
   643 LTLIBOBJS'
   644 ac_subst_files=''
   645       ac_precious_vars='build_alias
   646 host_alias
   647 target_alias
   648 CC
   649 CFLAGS
   650 LDFLAGS
   651 LIBS
   652 CPPFLAGS
   653 XMKMF
   654 CPP'
   655 
   656 
   657 # Initialize some variables set by options.
   658 ac_init_help=
   659 ac_init_version=false
   660 # The variables have the same names as the options, with
   661 # dashes changed to underlines.
   662 cache_file=/dev/null
   663 exec_prefix=NONE
   664 no_create=
   665 no_recursion=
   666 prefix=NONE
   667 program_prefix=NONE
   668 program_suffix=NONE
   669 program_transform_name=s,x,x,
   670 silent=
   671 site=
   672 srcdir=
   673 verbose=
   674 x_includes=NONE
   675 x_libraries=NONE
   676 
   677 # Installation directory options.
   678 # These are left unexpanded so users can "make install exec_prefix=/foo"
   679 # and all the variables that are supposed to be based on exec_prefix
   680 # by default will actually change.
   681 # Use braces instead of parens because sh, perl, etc. also accept them.
   682 # (The list follows the same order as the GNU Coding Standards.)
   683 bindir='${exec_prefix}/bin'
   684 sbindir='${exec_prefix}/sbin'
   685 libexecdir='${exec_prefix}/libexec'
   686 datarootdir='${prefix}/share'
   687 datadir='${datarootdir}'
   688 sysconfdir='${prefix}/etc'
   689 sharedstatedir='${prefix}/com'
   690 localstatedir='${prefix}/var'
   691 includedir='${prefix}/include'
   692 oldincludedir='/usr/include'
   693 docdir='${datarootdir}/doc/${PACKAGE}'
   694 infodir='${datarootdir}/info'
   695 htmldir='${docdir}'
   696 dvidir='${docdir}'
   697 pdfdir='${docdir}'
   698 psdir='${docdir}'
   699 libdir='${exec_prefix}/lib'
   700 localedir='${datarootdir}/locale'
   701 mandir='${datarootdir}/man'
   702 
   703 ac_prev=
   704 ac_dashdash=
   705 for ac_option
   706 do
   707   # If the previous option needs an argument, assign it.
   708   if test -n "$ac_prev"; then
   709     eval $ac_prev=\$ac_option
   710     ac_prev=
   711     continue
   712   fi
   713 
   714   case $ac_option in
   715   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   716   *)	ac_optarg=yes ;;
   717   esac
   718 
   719   # Accept the important Cygnus configure options, so we can diagnose typos.
   720 
   721   case $ac_dashdash$ac_option in
   722   --)
   723     ac_dashdash=yes ;;
   724 
   725   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   726     ac_prev=bindir ;;
   727   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   728     bindir=$ac_optarg ;;
   729 
   730   -build | --build | --buil | --bui | --bu)
   731     ac_prev=build_alias ;;
   732   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   733     build_alias=$ac_optarg ;;
   734 
   735   -cache-file | --cache-file | --cache-fil | --cache-fi \
   736   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   737     ac_prev=cache_file ;;
   738   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   739   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   740     cache_file=$ac_optarg ;;
   741 
   742   --config-cache | -C)
   743     cache_file=config.cache ;;
   744 
   745   -datadir | --datadir | --datadi | --datad)
   746     ac_prev=datadir ;;
   747   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   748     datadir=$ac_optarg ;;
   749 
   750   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   751   | --dataroo | --dataro | --datar)
   752     ac_prev=datarootdir ;;
   753   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   754   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   755     datarootdir=$ac_optarg ;;
   756 
   757   -disable-* | --disable-*)
   758     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   759     # Reject names that are not valid shell variable names.
   760     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   761       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   762    { (exit 1); exit 1; }; }
   763     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   764     eval enable_$ac_feature=no ;;
   765 
   766   -docdir | --docdir | --docdi | --doc | --do)
   767     ac_prev=docdir ;;
   768   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   769     docdir=$ac_optarg ;;
   770 
   771   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   772     ac_prev=dvidir ;;
   773   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   774     dvidir=$ac_optarg ;;
   775 
   776   -enable-* | --enable-*)
   777     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   778     # Reject names that are not valid shell variable names.
   779     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   780       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   781    { (exit 1); exit 1; }; }
   782     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   783     eval enable_$ac_feature=\$ac_optarg ;;
   784 
   785   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   786   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   787   | --exec | --exe | --ex)
   788     ac_prev=exec_prefix ;;
   789   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   790   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   791   | --exec=* | --exe=* | --ex=*)
   792     exec_prefix=$ac_optarg ;;
   793 
   794   -gas | --gas | --ga | --g)
   795     # Obsolete; use --with-gas.
   796     with_gas=yes ;;
   797 
   798   -help | --help | --hel | --he | -h)
   799     ac_init_help=long ;;
   800   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   801     ac_init_help=recursive ;;
   802   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   803     ac_init_help=short ;;
   804 
   805   -host | --host | --hos | --ho)
   806     ac_prev=host_alias ;;
   807   -host=* | --host=* | --hos=* | --ho=*)
   808     host_alias=$ac_optarg ;;
   809 
   810   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   811     ac_prev=htmldir ;;
   812   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   813   | --ht=*)
   814     htmldir=$ac_optarg ;;
   815 
   816   -includedir | --includedir | --includedi | --included | --include \
   817   | --includ | --inclu | --incl | --inc)
   818     ac_prev=includedir ;;
   819   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   820   | --includ=* | --inclu=* | --incl=* | --inc=*)
   821     includedir=$ac_optarg ;;
   822 
   823   -infodir | --infodir | --infodi | --infod | --info | --inf)
   824     ac_prev=infodir ;;
   825   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   826     infodir=$ac_optarg ;;
   827 
   828   -libdir | --libdir | --libdi | --libd)
   829     ac_prev=libdir ;;
   830   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   831     libdir=$ac_optarg ;;
   832 
   833   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   834   | --libexe | --libex | --libe)
   835     ac_prev=libexecdir ;;
   836   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   837   | --libexe=* | --libex=* | --libe=*)
   838     libexecdir=$ac_optarg ;;
   839 
   840   -localedir | --localedir | --localedi | --localed | --locale)
   841     ac_prev=localedir ;;
   842   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   843     localedir=$ac_optarg ;;
   844 
   845   -localstatedir | --localstatedir | --localstatedi | --localstated \
   846   | --localstate | --localstat | --localsta | --localst | --locals)
   847     ac_prev=localstatedir ;;
   848   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   849   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   850     localstatedir=$ac_optarg ;;
   851 
   852   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   853     ac_prev=mandir ;;
   854   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   855     mandir=$ac_optarg ;;
   856 
   857   -nfp | --nfp | --nf)
   858     # Obsolete; use --without-fp.
   859     with_fp=no ;;
   860 
   861   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   862   | --no-cr | --no-c | -n)
   863     no_create=yes ;;
   864 
   865   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   866   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   867     no_recursion=yes ;;
   868 
   869   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   870   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   871   | --oldin | --oldi | --old | --ol | --o)
   872     ac_prev=oldincludedir ;;
   873   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   874   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   875   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   876     oldincludedir=$ac_optarg ;;
   877 
   878   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   879     ac_prev=prefix ;;
   880   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   881     prefix=$ac_optarg ;;
   882 
   883   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   884   | --program-pre | --program-pr | --program-p)
   885     ac_prev=program_prefix ;;
   886   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   887   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   888     program_prefix=$ac_optarg ;;
   889 
   890   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   891   | --program-suf | --program-su | --program-s)
   892     ac_prev=program_suffix ;;
   893   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   894   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   895     program_suffix=$ac_optarg ;;
   896 
   897   -program-transform-name | --program-transform-name \
   898   | --program-transform-nam | --program-transform-na \
   899   | --program-transform-n | --program-transform- \
   900   | --program-transform | --program-transfor \
   901   | --program-transfo | --program-transf \
   902   | --program-trans | --program-tran \
   903   | --progr-tra | --program-tr | --program-t)
   904     ac_prev=program_transform_name ;;
   905   -program-transform-name=* | --program-transform-name=* \
   906   | --program-transform-nam=* | --program-transform-na=* \
   907   | --program-transform-n=* | --program-transform-=* \
   908   | --program-transform=* | --program-transfor=* \
   909   | --program-transfo=* | --program-transf=* \
   910   | --program-trans=* | --program-tran=* \
   911   | --progr-tra=* | --program-tr=* | --program-t=*)
   912     program_transform_name=$ac_optarg ;;
   913 
   914   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   915     ac_prev=pdfdir ;;
   916   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   917     pdfdir=$ac_optarg ;;
   918 
   919   -psdir | --psdir | --psdi | --psd | --ps)
   920     ac_prev=psdir ;;
   921   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   922     psdir=$ac_optarg ;;
   923 
   924   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   925   | -silent | --silent | --silen | --sile | --sil)
   926     silent=yes ;;
   927 
   928   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   929     ac_prev=sbindir ;;
   930   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   931   | --sbi=* | --sb=*)
   932     sbindir=$ac_optarg ;;
   933 
   934   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   935   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   936   | --sharedst | --shareds | --shared | --share | --shar \
   937   | --sha | --sh)
   938     ac_prev=sharedstatedir ;;
   939   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   940   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   941   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   942   | --sha=* | --sh=*)
   943     sharedstatedir=$ac_optarg ;;
   944 
   945   -site | --site | --sit)
   946     ac_prev=site ;;
   947   -site=* | --site=* | --sit=*)
   948     site=$ac_optarg ;;
   949 
   950   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   951     ac_prev=srcdir ;;
   952   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   953     srcdir=$ac_optarg ;;
   954 
   955   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   956   | --syscon | --sysco | --sysc | --sys | --sy)
   957     ac_prev=sysconfdir ;;
   958   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   959   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   960     sysconfdir=$ac_optarg ;;
   961 
   962   -target | --target | --targe | --targ | --tar | --ta | --t)
   963     ac_prev=target_alias ;;
   964   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   965     target_alias=$ac_optarg ;;
   966 
   967   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   968     verbose=yes ;;
   969 
   970   -version | --version | --versio | --versi | --vers | -V)
   971     ac_init_version=: ;;
   972 
   973   -with-* | --with-*)
   974     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   975     # Reject names that are not valid shell variable names.
   976     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   977       { echo "$as_me: error: invalid package name: $ac_package" >&2
   978    { (exit 1); exit 1; }; }
   979     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   980     eval with_$ac_package=\$ac_optarg ;;
   981 
   982   -without-* | --without-*)
   983     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   984     # Reject names that are not valid shell variable names.
   985     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   986       { echo "$as_me: error: invalid package name: $ac_package" >&2
   987    { (exit 1); exit 1; }; }
   988     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   989     eval with_$ac_package=no ;;
   990 
   991   --x)
   992     # Obsolete; use --with-x.
   993     with_x=yes ;;
   994 
   995   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   996   | --x-incl | --x-inc | --x-in | --x-i)
   997     ac_prev=x_includes ;;
   998   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   999   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1000     x_includes=$ac_optarg ;;
  1001 
  1002   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1003   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1004     ac_prev=x_libraries ;;
  1005   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1006   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1007     x_libraries=$ac_optarg ;;
  1008 
  1009   -*) { echo "$as_me: error: unrecognized option: $ac_option
  1010 Try \`$0 --help' for more information." >&2
  1011    { (exit 1); exit 1; }; }
  1012     ;;
  1013 
  1014   *=*)
  1015     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1016     # Reject names that are not valid shell variable names.
  1017     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1018       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1019    { (exit 1); exit 1; }; }
  1020     eval $ac_envvar=\$ac_optarg
  1021     export $ac_envvar ;;
  1022 
  1023   *)
  1024     # FIXME: should be removed in autoconf 3.0.
  1025     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1026     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1027       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1028     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1029     ;;
  1030 
  1031   esac
  1032 done
  1033 
  1034 if test -n "$ac_prev"; then
  1035   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1036   { echo "$as_me: error: missing argument to $ac_option" >&2
  1037    { (exit 1); exit 1; }; }
  1038 fi
  1039 
  1040 # Be sure to have absolute directory names.
  1041 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1042 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1043 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1044 		libdir localedir mandir
  1045 do
  1046   eval ac_val=\$$ac_var
  1047   case $ac_val in
  1048     [\\/$]* | ?:[\\/]* )  continue;;
  1049     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1050   esac
  1051   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1052    { (exit 1); exit 1; }; }
  1053 done
  1054 
  1055 # There might be people who depend on the old broken behavior: `$host'
  1056 # used to hold the argument of --host etc.
  1057 # FIXME: To remove some day.
  1058 build=$build_alias
  1059 host=$host_alias
  1060 target=$target_alias
  1061 
  1062 # FIXME: To remove some day.
  1063 if test "x$host_alias" != x; then
  1064   if test "x$build_alias" = x; then
  1065     cross_compiling=maybe
  1066     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1067     If a cross compiler is detected then cross compile mode will be used." >&2
  1068   elif test "x$build_alias" != "x$host_alias"; then
  1069     cross_compiling=yes
  1070   fi
  1071 fi
  1072 
  1073 ac_tool_prefix=
  1074 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1075 
  1076 test "$silent" = yes && exec 6>/dev/null
  1077 
  1078 
  1079 ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1080 ac_ls_di=`ls -di .` &&
  1081 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1082   { echo "$as_me: error: Working directory cannot be determined" >&2
  1083    { (exit 1); exit 1; }; }
  1084 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1085   { echo "$as_me: error: pwd does not report name of working directory" >&2
  1086    { (exit 1); exit 1; }; }
  1087 
  1088 
  1089 # Find the source files, if location was not specified.
  1090 if test -z "$srcdir"; then
  1091   ac_srcdir_defaulted=yes
  1092   # Try the directory containing this script, then the parent directory.
  1093   ac_confdir=`$as_dirname -- "$0" ||
  1094 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1095 	 X"$0" : 'X\(//\)[^/]' \| \
  1096 	 X"$0" : 'X\(//\)$' \| \
  1097 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1098 echo X"$0" |
  1099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1100 	    s//\1/
  1101 	    q
  1102 	  }
  1103 	  /^X\(\/\/\)[^/].*/{
  1104 	    s//\1/
  1105 	    q
  1106 	  }
  1107 	  /^X\(\/\/\)$/{
  1108 	    s//\1/
  1109 	    q
  1110 	  }
  1111 	  /^X\(\/\).*/{
  1112 	    s//\1/
  1113 	    q
  1114 	  }
  1115 	  s/.*/./; q'`
  1116   srcdir=$ac_confdir
  1117   if test ! -r "$srcdir/$ac_unique_file"; then
  1118     srcdir=..
  1119   fi
  1120 else
  1121   ac_srcdir_defaulted=no
  1122 fi
  1123 if test ! -r "$srcdir/$ac_unique_file"; then
  1124   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1125   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1126    { (exit 1); exit 1; }; }
  1127 fi
  1128 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1129 ac_abs_confdir=`(
  1130 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1131    { (exit 1); exit 1; }; }
  1132 	pwd)`
  1133 # When building in place, set srcdir=.
  1134 if test "$ac_abs_confdir" = "$ac_pwd"; then
  1135   srcdir=.
  1136 fi
  1137 # Remove unnecessary trailing slashes from srcdir.
  1138 # Double slashes in file names in object file debugging info
  1139 # mess up M-x gdb in Emacs.
  1140 case $srcdir in
  1141 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1142 esac
  1143 for ac_var in $ac_precious_vars; do
  1144   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1145   eval ac_env_${ac_var}_value=\$${ac_var}
  1146   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1147   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1148 done
  1149 
  1150 #
  1151 # Report the --help message.
  1152 #
  1153 if test "$ac_init_help" = "long"; then
  1154   # Omit some internal or obsolete options to make the list less imposing.
  1155   # This message is too long to be a string in the A/UX 3.1 sh.
  1156   cat <<_ACEOF
  1157 \`configure' configures this package to adapt to many kinds of systems.
  1158 
  1159 Usage: $0 [OPTION]... [VAR=VALUE]...
  1160 
  1161 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1162 VAR=VALUE.  See below for descriptions of some of the useful variables.
  1163 
  1164 Defaults for the options are specified in brackets.
  1165 
  1166 Configuration:
  1167   -h, --help              display this help and exit
  1168       --help=short        display options specific to this package
  1169       --help=recursive    display the short help of all the included packages
  1170   -V, --version           display version information and exit
  1171   -q, --quiet, --silent   do not print \`checking...' messages
  1172       --cache-file=FILE   cache test results in FILE [disabled]
  1173   -C, --config-cache      alias for \`--cache-file=config.cache'
  1174   -n, --no-create         do not create output files
  1175       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1176 
  1177 Installation directories:
  1178   --prefix=PREFIX         install architecture-independent files in PREFIX
  1179 			  [$ac_default_prefix]
  1180   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1181 			  [PREFIX]
  1182 
  1183 By default, \`make install' will install all the files in
  1184 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1185 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1186 for instance \`--prefix=\$HOME'.
  1187 
  1188 For better control, use the options below.
  1189 
  1190 Fine tuning of the installation directories:
  1191   --bindir=DIR           user executables [EPREFIX/bin]
  1192   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1193   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1194   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1195   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1196   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1197   --libdir=DIR           object code libraries [EPREFIX/lib]
  1198   --includedir=DIR       C header files [PREFIX/include]
  1199   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1200   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  1201   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  1202   --infodir=DIR          info documentation [DATAROOTDIR/info]
  1203   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  1204   --mandir=DIR           man documentation [DATAROOTDIR/man]
  1205   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  1206   --htmldir=DIR          html documentation [DOCDIR]
  1207   --dvidir=DIR           dvi documentation [DOCDIR]
  1208   --pdfdir=DIR           pdf documentation [DOCDIR]
  1209   --psdir=DIR            ps documentation [DOCDIR]
  1210 _ACEOF
  1211 
  1212   cat <<\_ACEOF
  1213 
  1214 X features:
  1215   --x-includes=DIR    X include files are in DIR
  1216   --x-libraries=DIR   X library files are in DIR
  1217 
  1218 System types:
  1219   --build=BUILD     configure for building on BUILD [guessed]
  1220   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1221 _ACEOF
  1222 fi
  1223 
  1224 if test -n "$ac_init_help"; then
  1225 
  1226   cat <<\_ACEOF
  1227 
  1228 Optional Features:
  1229   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1230   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1231   --disable-sdltest       Do not try to compile and run a test SDL program
  1232 
  1233 Optional Packages:
  1234   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1235   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1236   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
  1237   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1238   --with-x                use the X Window System
  1239 
  1240 Some influential environment variables:
  1241   CC          C compiler command
  1242   CFLAGS      C compiler flags
  1243   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1244               nonstandard directory <lib dir>
  1245   LIBS        libraries to pass to the linker, e.g. -l<library>
  1246   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1247               you have headers in a nonstandard directory <include dir>
  1248   XMKMF       Path to xmkmf, Makefile generator for X Window System
  1249   CPP         C preprocessor
  1250 
  1251 Use these variables to override the choices made by `configure' or to help
  1252 it to find libraries and programs with nonstandard names/locations.
  1253 
  1254 _ACEOF
  1255 ac_status=$?
  1256 fi
  1257 
  1258 if test "$ac_init_help" = "recursive"; then
  1259   # If there are subdirs, report their specific --help.
  1260   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1261     test -d "$ac_dir" || continue
  1262     ac_builddir=.
  1263 
  1264 case "$ac_dir" in
  1265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1266 *)
  1267   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1268   # A ".." for each directory in $ac_dir_suffix.
  1269   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1270   case $ac_top_builddir_sub in
  1271   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1272   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1273   esac ;;
  1274 esac
  1275 ac_abs_top_builddir=$ac_pwd
  1276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1277 # for backward compatibility:
  1278 ac_top_builddir=$ac_top_build_prefix
  1279 
  1280 case $srcdir in
  1281   .)  # We are building in place.
  1282     ac_srcdir=.
  1283     ac_top_srcdir=$ac_top_builddir_sub
  1284     ac_abs_top_srcdir=$ac_pwd ;;
  1285   [\\/]* | ?:[\\/]* )  # Absolute name.
  1286     ac_srcdir=$srcdir$ac_dir_suffix;
  1287     ac_top_srcdir=$srcdir
  1288     ac_abs_top_srcdir=$srcdir ;;
  1289   *) # Relative name.
  1290     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1291     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1292     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1293 esac
  1294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1295 
  1296     cd "$ac_dir" || { ac_status=$?; continue; }
  1297     # Check for guested configure.
  1298     if test -f "$ac_srcdir/configure.gnu"; then
  1299       echo &&
  1300       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1301     elif test -f "$ac_srcdir/configure"; then
  1302       echo &&
  1303       $SHELL "$ac_srcdir/configure" --help=recursive
  1304     else
  1305       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1306     fi || ac_status=$?
  1307     cd "$ac_pwd" || { ac_status=$?; break; }
  1308   done
  1309 fi
  1310 
  1311 test -n "$ac_init_help" && exit $ac_status
  1312 if $ac_init_version; then
  1313   cat <<\_ACEOF
  1314 configure
  1315 generated by GNU Autoconf 2.61
  1316 
  1317 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1318 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1319 This configure script is free software; the Free Software Foundation
  1320 gives unlimited permission to copy, distribute and modify it.
  1321 _ACEOF
  1322   exit
  1323 fi
  1324 cat >config.log <<_ACEOF
  1325 This file contains any messages produced by compilers while
  1326 running configure, to aid debugging if configure makes a mistake.
  1327 
  1328 It was created by $as_me, which was
  1329 generated by GNU Autoconf 2.61.  Invocation command line was
  1330 
  1331   $ $0 $@
  1332 
  1333 _ACEOF
  1334 exec 5>>config.log
  1335 {
  1336 cat <<_ASUNAME
  1337 ## --------- ##
  1338 ## Platform. ##
  1339 ## --------- ##
  1340 
  1341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1346 
  1347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1348 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1349 
  1350 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1351 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1353 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1354 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1355 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1356 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1357 
  1358 _ASUNAME
  1359 
  1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1361 for as_dir in $PATH
  1362 do
  1363   IFS=$as_save_IFS
  1364   test -z "$as_dir" && as_dir=.
  1365   echo "PATH: $as_dir"
  1366 done
  1367 IFS=$as_save_IFS
  1368 
  1369 } >&5
  1370 
  1371 cat >&5 <<_ACEOF
  1372 
  1373 
  1374 ## ----------- ##
  1375 ## Core tests. ##
  1376 ## ----------- ##
  1377 
  1378 _ACEOF
  1379 
  1380 
  1381 # Keep a trace of the command line.
  1382 # Strip out --no-create and --no-recursion so they do not pile up.
  1383 # Strip out --silent because we don't want to record it for future runs.
  1384 # Also quote any args containing shell meta-characters.
  1385 # Make two passes to allow for proper duplicate-argument suppression.
  1386 ac_configure_args=
  1387 ac_configure_args0=
  1388 ac_configure_args1=
  1389 ac_must_keep_next=false
  1390 for ac_pass in 1 2
  1391 do
  1392   for ac_arg
  1393   do
  1394     case $ac_arg in
  1395     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1396     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1397     | -silent | --silent | --silen | --sile | --sil)
  1398       continue ;;
  1399     *\'*)
  1400       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1401     esac
  1402     case $ac_pass in
  1403     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1404     2)
  1405       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1406       if test $ac_must_keep_next = true; then
  1407 	ac_must_keep_next=false # Got value, back to normal.
  1408       else
  1409 	case $ac_arg in
  1410 	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1411 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1412 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1413 	  | -with-* | --with-* | -without-* | --without-* | --x)
  1414 	    case "$ac_configure_args0 " in
  1415 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1416 	    esac
  1417 	    ;;
  1418 	  -* ) ac_must_keep_next=true ;;
  1419 	esac
  1420       fi
  1421       ac_configure_args="$ac_configure_args '$ac_arg'"
  1422       ;;
  1423     esac
  1424   done
  1425 done
  1426 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1427 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1428 
  1429 # When interrupted or exit'd, cleanup temporary files, and complete
  1430 # config.log.  We remove comments because anyway the quotes in there
  1431 # would cause problems or look ugly.
  1432 # WARNING: Use '\'' to represent an apostrophe within the trap.
  1433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1434 trap 'exit_status=$?
  1435   # Save into config.log some information that might help in debugging.
  1436   {
  1437     echo
  1438 
  1439     cat <<\_ASBOX
  1440 ## ---------------- ##
  1441 ## Cache variables. ##
  1442 ## ---------------- ##
  1443 _ASBOX
  1444     echo
  1445     # The following way of writing the cache mishandles newlines in values,
  1446 (
  1447   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1448     eval ac_val=\$$ac_var
  1449     case $ac_val in #(
  1450     *${as_nl}*)
  1451       case $ac_var in #(
  1452       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1453 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1454       esac
  1455       case $ac_var in #(
  1456       _ | IFS | as_nl) ;; #(
  1457       *) $as_unset $ac_var ;;
  1458       esac ;;
  1459     esac
  1460   done
  1461   (set) 2>&1 |
  1462     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1463     *${as_nl}ac_space=\ *)
  1464       sed -n \
  1465 	"s/'\''/'\''\\\\'\'''\''/g;
  1466 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1467       ;; #(
  1468     *)
  1469       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1470       ;;
  1471     esac |
  1472     sort
  1473 )
  1474     echo
  1475 
  1476     cat <<\_ASBOX
  1477 ## ----------------- ##
  1478 ## Output variables. ##
  1479 ## ----------------- ##
  1480 _ASBOX
  1481     echo
  1482     for ac_var in $ac_subst_vars
  1483     do
  1484       eval ac_val=\$$ac_var
  1485       case $ac_val in
  1486       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1487       esac
  1488       echo "$ac_var='\''$ac_val'\''"
  1489     done | sort
  1490     echo
  1491 
  1492     if test -n "$ac_subst_files"; then
  1493       cat <<\_ASBOX
  1494 ## ------------------- ##
  1495 ## File substitutions. ##
  1496 ## ------------------- ##
  1497 _ASBOX
  1498       echo
  1499       for ac_var in $ac_subst_files
  1500       do
  1501 	eval ac_val=\$$ac_var
  1502 	case $ac_val in
  1503 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1504 	esac
  1505 	echo "$ac_var='\''$ac_val'\''"
  1506       done | sort
  1507       echo
  1508     fi
  1509 
  1510     if test -s confdefs.h; then
  1511       cat <<\_ASBOX
  1512 ## ----------- ##
  1513 ## confdefs.h. ##
  1514 ## ----------- ##
  1515 _ASBOX
  1516       echo
  1517       cat confdefs.h
  1518       echo
  1519     fi
  1520     test "$ac_signal" != 0 &&
  1521       echo "$as_me: caught signal $ac_signal"
  1522     echo "$as_me: exit $exit_status"
  1523   } >&5
  1524   rm -f core *.core core.conftest.* &&
  1525     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1526     exit $exit_status
  1527 ' 0
  1528 for ac_signal in 1 2 13 15; do
  1529   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1530 done
  1531 ac_signal=0
  1532 
  1533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1534 rm -f -r conftest* confdefs.h
  1535 
  1536 # Predefined preprocessor variables.
  1537 
  1538 cat >>confdefs.h <<_ACEOF
  1539 #define PACKAGE_NAME "$PACKAGE_NAME"
  1540 _ACEOF
  1541 
  1542 
  1543 cat >>confdefs.h <<_ACEOF
  1544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1545 _ACEOF
  1546 
  1547 
  1548 cat >>confdefs.h <<_ACEOF
  1549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1550 _ACEOF
  1551 
  1552 
  1553 cat >>confdefs.h <<_ACEOF
  1554 #define PACKAGE_STRING "$PACKAGE_STRING"
  1555 _ACEOF
  1556 
  1557 
  1558 cat >>confdefs.h <<_ACEOF
  1559 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1560 _ACEOF
  1561 
  1562 
  1563 # Let the site file select an alternate cache file if it wants to.
  1564 # Prefer explicitly selected file to automatically selected ones.
  1565 if test -n "$CONFIG_SITE"; then
  1566   set x "$CONFIG_SITE"
  1567 elif test "x$prefix" != xNONE; then
  1568   set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1569 else
  1570   set x "$ac_default_prefix/share/config.site" \
  1571 	"$ac_default_prefix/etc/config.site"
  1572 fi
  1573 shift
  1574 for ac_site_file
  1575 do
  1576   if test -r "$ac_site_file"; then
  1577     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1578 echo "$as_me: loading site script $ac_site_file" >&6;}
  1579     sed 's/^/| /' "$ac_site_file" >&5
  1580     . "$ac_site_file"
  1581   fi
  1582 done
  1583 
  1584 if test -r "$cache_file"; then
  1585   # Some versions of bash will fail to source /dev/null (special
  1586   # files actually), so we avoid doing that.
  1587   if test -f "$cache_file"; then
  1588     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1589 echo "$as_me: loading cache $cache_file" >&6;}
  1590     case $cache_file in
  1591       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1592       *)                      . "./$cache_file";;
  1593     esac
  1594   fi
  1595 else
  1596   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1597 echo "$as_me: creating cache $cache_file" >&6;}
  1598   >$cache_file
  1599 fi
  1600 
  1601 # Check that the precious variables saved in the cache have kept the same
  1602 # value.
  1603 ac_cache_corrupted=false
  1604 for ac_var in $ac_precious_vars; do
  1605   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1606   eval ac_new_set=\$ac_env_${ac_var}_set
  1607   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1608   eval ac_new_val=\$ac_env_${ac_var}_value
  1609   case $ac_old_set,$ac_new_set in
  1610     set,)
  1611       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1612 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1613       ac_cache_corrupted=: ;;
  1614     ,set)
  1615       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1616 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1617       ac_cache_corrupted=: ;;
  1618     ,);;
  1619     *)
  1620       if test "x$ac_old_val" != "x$ac_new_val"; then
  1621 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1622 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1623 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1624 echo "$as_me:   former value:  $ac_old_val" >&2;}
  1625 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1626 echo "$as_me:   current value: $ac_new_val" >&2;}
  1627 	ac_cache_corrupted=:
  1628       fi;;
  1629   esac
  1630   # Pass precious variables to config.status.
  1631   if test "$ac_new_set" = set; then
  1632     case $ac_new_val in
  1633     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1634     *) ac_arg=$ac_var=$ac_new_val ;;
  1635     esac
  1636     case " $ac_configure_args " in
  1637       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1638       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1639     esac
  1640   fi
  1641 done
  1642 if $ac_cache_corrupted; then
  1643   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1644 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1645   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1646 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1647    { (exit 1); exit 1; }; }
  1648 fi
  1649 
  1650 
  1651 
  1652 
  1653 
  1654 
  1655 
  1656 
  1657 
  1658 
  1659 
  1660 
  1661 
  1662 
  1663 
  1664 
  1665 
  1666 ac_ext=c
  1667 ac_cpp='$CPP $CPPFLAGS'
  1668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1671 
  1672 
  1673 
  1674 ac_aux_dir=
  1675 for ac_dir in $srcdir/../build-scripts; do
  1676   if test -f "$ac_dir/install-sh"; then
  1677     ac_aux_dir=$ac_dir
  1678     ac_install_sh="$ac_aux_dir/install-sh -c"
  1679     break
  1680   elif test -f "$ac_dir/install.sh"; then
  1681     ac_aux_dir=$ac_dir
  1682     ac_install_sh="$ac_aux_dir/install.sh -c"
  1683     break
  1684   elif test -f "$ac_dir/shtool"; then
  1685     ac_aux_dir=$ac_dir
  1686     ac_install_sh="$ac_aux_dir/shtool install -c"
  1687     break
  1688   fi
  1689 done
  1690 if test -z "$ac_aux_dir"; then
  1691   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
  1692 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
  1693    { (exit 1); exit 1; }; }
  1694 fi
  1695 
  1696 # These three variables are undocumented and unsupported,
  1697 # and are intended to be withdrawn in a future Autoconf release.
  1698 # They can cause serious problems if a builder's source tree is in a directory
  1699 # whose full name contains unusual characters.
  1700 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  1701 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  1702 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  1703 
  1704 
  1705 # Make sure we can run config.sub.
  1706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1707   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1708 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1709    { (exit 1); exit 1; }; }
  1710 
  1711 { echo "$as_me:$LINENO: checking build system type" >&5
  1712 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1713 if test "${ac_cv_build+set}" = set; then
  1714   echo $ECHO_N "(cached) $ECHO_C" >&6
  1715 else
  1716   ac_build_alias=$build_alias
  1717 test "x$ac_build_alias" = x &&
  1718   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1719 test "x$ac_build_alias" = x &&
  1720   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1721 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1722    { (exit 1); exit 1; }; }
  1723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1724   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1726    { (exit 1); exit 1; }; }
  1727 
  1728 fi
  1729 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1730 echo "${ECHO_T}$ac_cv_build" >&6; }
  1731 case $ac_cv_build in
  1732 *-*-*) ;;
  1733 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1734 echo "$as_me: error: invalid value of canonical build" >&2;}
  1735    { (exit 1); exit 1; }; };;
  1736 esac
  1737 build=$ac_cv_build
  1738 ac_save_IFS=$IFS; IFS='-'
  1739 set x $ac_cv_build
  1740 shift
  1741 build_cpu=$1
  1742 build_vendor=$2
  1743 shift; shift
  1744 # Remember, the first character of IFS is used to create $*,
  1745 # except with old shells:
  1746 build_os=$*
  1747 IFS=$ac_save_IFS
  1748 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1749 
  1750 
  1751 { echo "$as_me:$LINENO: checking host system type" >&5
  1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1753 if test "${ac_cv_host+set}" = set; then
  1754   echo $ECHO_N "(cached) $ECHO_C" >&6
  1755 else
  1756   if test "x$host_alias" = x; then
  1757   ac_cv_host=$ac_cv_build
  1758 else
  1759   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1760     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1761 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1762    { (exit 1); exit 1; }; }
  1763 fi
  1764 
  1765 fi
  1766 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1767 echo "${ECHO_T}$ac_cv_host" >&6; }
  1768 case $ac_cv_host in
  1769 *-*-*) ;;
  1770 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1771 echo "$as_me: error: invalid value of canonical host" >&2;}
  1772    { (exit 1); exit 1; }; };;
  1773 esac
  1774 host=$ac_cv_host
  1775 ac_save_IFS=$IFS; IFS='-'
  1776 set x $ac_cv_host
  1777 shift
  1778 host_cpu=$1
  1779 host_vendor=$2
  1780 shift; shift
  1781 # Remember, the first character of IFS is used to create $*,
  1782 # except with old shells:
  1783 host_os=$*
  1784 IFS=$ac_save_IFS
  1785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1786 
  1787 
  1788 
  1789 
  1790 ac_ext=c
  1791 ac_cpp='$CPP $CPPFLAGS'
  1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1795 if test -n "$ac_tool_prefix"; then
  1796   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1800 if test "${ac_cv_prog_CC+set}" = set; then
  1801   echo $ECHO_N "(cached) $ECHO_C" >&6
  1802 else
  1803   if test -n "$CC"; then
  1804   ac_cv_prog_CC="$CC" # Let the user override the test.
  1805 else
  1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1807 for as_dir in $PATH
  1808 do
  1809   IFS=$as_save_IFS
  1810   test -z "$as_dir" && as_dir=.
  1811   for ac_exec_ext in '' $ac_executable_extensions; do
  1812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1813     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1815     break 2
  1816   fi
  1817 done
  1818 done
  1819 IFS=$as_save_IFS
  1820 
  1821 fi
  1822 fi
  1823 CC=$ac_cv_prog_CC
  1824 if test -n "$CC"; then
  1825   { echo "$as_me:$LINENO: result: $CC" >&5
  1826 echo "${ECHO_T}$CC" >&6; }
  1827 else
  1828   { echo "$as_me:$LINENO: result: no" >&5
  1829 echo "${ECHO_T}no" >&6; }
  1830 fi
  1831 
  1832 
  1833 fi
  1834 if test -z "$ac_cv_prog_CC"; then
  1835   ac_ct_CC=$CC
  1836   # Extract the first word of "gcc", so it can be a program name with args.
  1837 set dummy gcc; ac_word=$2
  1838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1841   echo $ECHO_N "(cached) $ECHO_C" >&6
  1842 else
  1843   if test -n "$ac_ct_CC"; then
  1844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1845 else
  1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1847 for as_dir in $PATH
  1848 do
  1849   IFS=$as_save_IFS
  1850   test -z "$as_dir" && as_dir=.
  1851   for ac_exec_ext in '' $ac_executable_extensions; do
  1852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1853     ac_cv_prog_ac_ct_CC="gcc"
  1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1855     break 2
  1856   fi
  1857 done
  1858 done
  1859 IFS=$as_save_IFS
  1860 
  1861 fi
  1862 fi
  1863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1864 if test -n "$ac_ct_CC"; then
  1865   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1866 echo "${ECHO_T}$ac_ct_CC" >&6; }
  1867 else
  1868   { echo "$as_me:$LINENO: result: no" >&5
  1869 echo "${ECHO_T}no" >&6; }
  1870 fi
  1871 
  1872   if test "x$ac_ct_CC" = x; then
  1873     CC=""
  1874   else
  1875     case $cross_compiling:$ac_tool_warned in
  1876 yes:)
  1877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1878 whose name does not start with the host triplet.  If you think this
  1879 configuration is useful to you, please write to autoconf@gnu.org." >&5
  1880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1881 whose name does not start with the host triplet.  If you think this
  1882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1883 ac_tool_warned=yes ;;
  1884 esac
  1885     CC=$ac_ct_CC
  1886   fi
  1887 else
  1888   CC="$ac_cv_prog_CC"
  1889 fi
  1890 
  1891 if test -z "$CC"; then
  1892           if test -n "$ac_tool_prefix"; then
  1893     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1894 set dummy ${ac_tool_prefix}cc; ac_word=$2
  1895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1897 if test "${ac_cv_prog_CC+set}" = set; then
  1898   echo $ECHO_N "(cached) $ECHO_C" >&6
  1899 else
  1900   if test -n "$CC"; then
  1901   ac_cv_prog_CC="$CC" # Let the user override the test.
  1902 else
  1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1904 for as_dir in $PATH
  1905 do
  1906   IFS=$as_save_IFS
  1907   test -z "$as_dir" && as_dir=.
  1908   for ac_exec_ext in '' $ac_executable_extensions; do
  1909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1910     ac_cv_prog_CC="${ac_tool_prefix}cc"
  1911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1912     break 2
  1913   fi
  1914 done
  1915 done
  1916 IFS=$as_save_IFS
  1917 
  1918 fi
  1919 fi
  1920 CC=$ac_cv_prog_CC
  1921 if test -n "$CC"; then
  1922   { echo "$as_me:$LINENO: result: $CC" >&5
  1923 echo "${ECHO_T}$CC" >&6; }
  1924 else
  1925   { echo "$as_me:$LINENO: result: no" >&5
  1926 echo "${ECHO_T}no" >&6; }
  1927 fi
  1928 
  1929 
  1930   fi
  1931 fi
  1932 if test -z "$CC"; then
  1933   # Extract the first word of "cc", so it can be a program name with args.
  1934 set dummy cc; ac_word=$2
  1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1937 if test "${ac_cv_prog_CC+set}" = set; then
  1938   echo $ECHO_N "(cached) $ECHO_C" >&6
  1939 else
  1940   if test -n "$CC"; then
  1941   ac_cv_prog_CC="$CC" # Let the user override the test.
  1942 else
  1943   ac_prog_rejected=no
  1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1945 for as_dir in $PATH
  1946 do
  1947   IFS=$as_save_IFS
  1948   test -z "$as_dir" && as_dir=.
  1949   for ac_exec_ext in '' $ac_executable_extensions; do
  1950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1951     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1952        ac_prog_rejected=yes
  1953        continue
  1954      fi
  1955     ac_cv_prog_CC="cc"
  1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1957     break 2
  1958   fi
  1959 done
  1960 done
  1961 IFS=$as_save_IFS
  1962 
  1963 if test $ac_prog_rejected = yes; then
  1964   # We found a bogon in the path, so make sure we never use it.
  1965   set dummy $ac_cv_prog_CC
  1966   shift
  1967   if test $# != 0; then
  1968     # We chose a different compiler from the bogus one.
  1969     # However, it has the same basename, so the bogon will be chosen
  1970     # first if we set CC to just the basename; use the full file name.
  1971     shift
  1972     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1973   fi
  1974 fi
  1975 fi
  1976 fi
  1977 CC=$ac_cv_prog_CC
  1978 if test -n "$CC"; then
  1979   { echo "$as_me:$LINENO: result: $CC" >&5
  1980 echo "${ECHO_T}$CC" >&6; }
  1981 else
  1982   { echo "$as_me:$LINENO: result: no" >&5
  1983 echo "${ECHO_T}no" >&6; }
  1984 fi
  1985 
  1986 
  1987 fi
  1988 if test -z "$CC"; then
  1989   if test -n "$ac_tool_prefix"; then
  1990   for ac_prog in cl.exe
  1991   do
  1992     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1996 if test "${ac_cv_prog_CC+set}" = set; then
  1997   echo $ECHO_N "(cached) $ECHO_C" >&6
  1998 else
  1999   if test -n "$CC"; then
  2000   ac_cv_prog_CC="$CC" # Let the user override the test.
  2001 else
  2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003 for as_dir in $PATH
  2004 do
  2005   IFS=$as_save_IFS
  2006   test -z "$as_dir" && as_dir=.
  2007   for ac_exec_ext in '' $ac_executable_extensions; do
  2008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2009     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2011     break 2
  2012   fi
  2013 done
  2014 done
  2015 IFS=$as_save_IFS
  2016 
  2017 fi
  2018 fi
  2019 CC=$ac_cv_prog_CC
  2020 if test -n "$CC"; then
  2021   { echo "$as_me:$LINENO: result: $CC" >&5
  2022 echo "${ECHO_T}$CC" >&6; }
  2023 else
  2024   { echo "$as_me:$LINENO: result: no" >&5
  2025 echo "${ECHO_T}no" >&6; }
  2026 fi
  2027 
  2028 
  2029     test -n "$CC" && break
  2030   done
  2031 fi
  2032 if test -z "$CC"; then
  2033   ac_ct_CC=$CC
  2034   for ac_prog in cl.exe
  2035 do
  2036   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2037 set dummy $ac_prog; ac_word=$2
  2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2041   echo $ECHO_N "(cached) $ECHO_C" >&6
  2042 else
  2043   if test -n "$ac_ct_CC"; then
  2044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2045 else
  2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047 for as_dir in $PATH
  2048 do
  2049   IFS=$as_save_IFS
  2050   test -z "$as_dir" && as_dir=.
  2051   for ac_exec_ext in '' $ac_executable_extensions; do
  2052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2053     ac_cv_prog_ac_ct_CC="$ac_prog"
  2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2055     break 2
  2056   fi
  2057 done
  2058 done
  2059 IFS=$as_save_IFS
  2060 
  2061 fi
  2062 fi
  2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2064 if test -n "$ac_ct_CC"; then
  2065   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
  2067 else
  2068   { echo "$as_me:$LINENO: result: no" >&5
  2069 echo "${ECHO_T}no" >&6; }
  2070 fi
  2071 
  2072 
  2073   test -n "$ac_ct_CC" && break
  2074 done
  2075 
  2076   if test "x$ac_ct_CC" = x; then
  2077     CC=""
  2078   else
  2079     case $cross_compiling:$ac_tool_warned in
  2080 yes:)
  2081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2082 whose name does not start with the host triplet.  If you think this
  2083 configuration is useful to you, please write to autoconf@gnu.org." >&5
  2084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2085 whose name does not start with the host triplet.  If you think this
  2086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2087 ac_tool_warned=yes ;;
  2088 esac
  2089     CC=$ac_ct_CC
  2090   fi
  2091 fi
  2092 
  2093 fi
  2094 
  2095 
  2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2097 See \`config.log' for more details." >&5
  2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
  2099 See \`config.log' for more details." >&2;}
  2100    { (exit 1); exit 1; }; }
  2101 
  2102 # Provide some information about the compiler.
  2103 echo "$as_me:$LINENO: checking for C compiler version" >&5
  2104 ac_compiler=`set X $ac_compile; echo $2`
  2105 { (ac_try="$ac_compiler --version >&5"
  2106 case "(($ac_try" in
  2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2108   *) ac_try_echo=$ac_try;;
  2109 esac
  2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2111   (eval "$ac_compiler --version >&5") 2>&5
  2112   ac_status=$?
  2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114   (exit $ac_status); }
  2115 { (ac_try="$ac_compiler -v >&5"
  2116 case "(($ac_try" in
  2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2118   *) ac_try_echo=$ac_try;;
  2119 esac
  2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2121   (eval "$ac_compiler -v >&5") 2>&5
  2122   ac_status=$?
  2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124   (exit $ac_status); }
  2125 { (ac_try="$ac_compiler -V >&5"
  2126 case "(($ac_try" in
  2127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2128   *) ac_try_echo=$ac_try;;
  2129 esac
  2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2131   (eval "$ac_compiler -V >&5") 2>&5
  2132   ac_status=$?
  2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134   (exit $ac_status); }
  2135 
  2136 cat >conftest.$ac_ext <<_ACEOF
  2137 /* confdefs.h.  */
  2138 _ACEOF
  2139 cat confdefs.h >>conftest.$ac_ext
  2140 cat >>conftest.$ac_ext <<_ACEOF
  2141 /* end confdefs.h.  */
  2142 
  2143 int
  2144 main ()
  2145 {
  2146 
  2147   ;
  2148   return 0;
  2149 }
  2150 _ACEOF
  2151 ac_clean_files_save=$ac_clean_files
  2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2153 # Try to create an executable without -o first, disregard a.out.
  2154 # It will help us diagnose broken compilers, and finding out an intuition
  2155 # of exeext.
  2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2159 #
  2160 # List of possible output files, starting from the most likely.
  2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2162 # only as a last resort.  b.out is created by i960 compilers.
  2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2164 #
  2165 # The IRIX 6 linker writes into existing files which may not be
  2166 # executable, retaining their permissions.  Remove them first so a
  2167 # subsequent execution test works.
  2168 ac_rmfiles=
  2169 for ac_file in $ac_files
  2170 do
  2171   case $ac_file in
  2172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2173     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2174   esac
  2175 done
  2176 rm -f $ac_rmfiles
  2177 
  2178 if { (ac_try="$ac_link_default"
  2179 case "(($ac_try" in
  2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2181   *) ac_try_echo=$ac_try;;
  2182 esac
  2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2184   (eval "$ac_link_default") 2>&5
  2185   ac_status=$?
  2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187   (exit $ac_status); }; then
  2188   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2190 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2191 # so that the user can short-circuit this test for compilers unknown to
  2192 # Autoconf.
  2193 for ac_file in $ac_files ''
  2194 do
  2195   test -f "$ac_file" || continue
  2196   case $ac_file in
  2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2198 	;;
  2199     [ab].out )
  2200 	# We found the default executable, but exeext='' is most
  2201 	# certainly right.
  2202 	break;;
  2203     *.* )
  2204         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2205 	then :; else
  2206 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2207 	fi
  2208 	# We set ac_cv_exeext here because the later test for it is not
  2209 	# safe: cross compilers may not add the suffix if given an `-o'
  2210 	# argument, so we may need to know it at that point already.
  2211 	# Even if this section looks crufty: it has the advantage of
  2212 	# actually working.
  2213 	break;;
  2214     * )
  2215 	break;;
  2216   esac
  2217 done
  2218 test "$ac_cv_exeext" = no && ac_cv_exeext=
  2219 
  2220 else
  2221   ac_file=''
  2222 fi
  2223 
  2224 { echo "$as_me:$LINENO: result: $ac_file" >&5
  2225 echo "${ECHO_T}$ac_file" >&6; }
  2226 if test -z "$ac_file"; then
  2227   echo "$as_me: failed program was:" >&5
  2228 sed 's/^/| /' conftest.$ac_ext >&5
  2229 
  2230 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2231 See \`config.log' for more details." >&5
  2232 echo "$as_me: error: C compiler cannot create executables
  2233 See \`config.log' for more details." >&2;}
  2234    { (exit 77); exit 77; }; }
  2235 fi
  2236 
  2237 ac_exeext=$ac_cv_exeext
  2238 
  2239 # Check that the compiler produces executables we can run.  If not, either
  2240 # the compiler is broken, or we cross compile.
  2241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2244 # If not cross compiling, check that we can run a simple program.
  2245 if test "$cross_compiling" != yes; then
  2246   if { ac_try='./$ac_file'
  2247   { (case "(($ac_try" in
  2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2249   *) ac_try_echo=$ac_try;;
  2250 esac
  2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2252   (eval "$ac_try") 2>&5
  2253   ac_status=$?
  2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2255   (exit $ac_status); }; }; then
  2256     cross_compiling=no
  2257   else
  2258     if test "$cross_compiling" = maybe; then
  2259 	cross_compiling=yes
  2260     else
  2261 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2262 If you meant to cross compile, use \`--host'.
  2263 See \`config.log' for more details." >&5
  2264 echo "$as_me: error: cannot run C compiled programs.
  2265 If you meant to cross compile, use \`--host'.
  2266 See \`config.log' for more details." >&2;}
  2267    { (exit 1); exit 1; }; }
  2268     fi
  2269   fi
  2270 fi
  2271 { echo "$as_me:$LINENO: result: yes" >&5
  2272 echo "${ECHO_T}yes" >&6; }
  2273 
  2274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2275 ac_clean_files=$ac_clean_files_save
  2276 # Check that the compiler produces executables we can run.  If not, either
  2277 # the compiler is broken, or we cross compile.
  2278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2281 echo "${ECHO_T}$cross_compiling" >&6; }
  2282 
  2283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2285 if { (ac_try="$ac_link"
  2286 case "(($ac_try" in
  2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2288   *) ac_try_echo=$ac_try;;
  2289 esac
  2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2291   (eval "$ac_link") 2>&5
  2292   ac_status=$?
  2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2294   (exit $ac_status); }; then
  2295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
  2298 # `rm'.
  2299 for ac_file in conftest.exe conftest conftest.*; do
  2300   test -f "$ac_file" || continue
  2301   case $ac_file in
  2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2304 	  break;;
  2305     * ) break;;
  2306   esac
  2307 done
  2308 else
  2309   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2310 See \`config.log' for more details." >&5
  2311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2312 See \`config.log' for more details." >&2;}
  2313    { (exit 1); exit 1; }; }
  2314 fi
  2315 
  2316 rm -f conftest$ac_cv_exeext
  2317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2319 
  2320 rm -f conftest.$ac_ext
  2321 EXEEXT=$ac_cv_exeext
  2322 ac_exeext=$EXEEXT
  2323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2325 if test "${ac_cv_objext+set}" = set; then
  2326   echo $ECHO_N "(cached) $ECHO_C" >&6
  2327 else
  2328   cat >conftest.$ac_ext <<_ACEOF
  2329 /* confdefs.h.  */
  2330 _ACEOF
  2331 cat confdefs.h >>conftest.$ac_ext
  2332 cat >>conftest.$ac_ext <<_ACEOF
  2333 /* end confdefs.h.  */
  2334 
  2335 int
  2336 main ()
  2337 {
  2338 
  2339   ;
  2340   return 0;
  2341 }
  2342 _ACEOF
  2343 rm -f conftest.o conftest.obj
  2344 if { (ac_try="$ac_compile"
  2345 case "(($ac_try" in
  2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2347   *) ac_try_echo=$ac_try;;
  2348 esac
  2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2350   (eval "$ac_compile") 2>&5
  2351   ac_status=$?
  2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353   (exit $ac_status); }; then
  2354   for ac_file in conftest.o conftest.obj conftest.*; do
  2355   test -f "$ac_file" || continue;
  2356   case $ac_file in
  2357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2359        break;;
  2360   esac
  2361 done
  2362 else
  2363   echo "$as_me: failed program was:" >&5
  2364 sed 's/^/| /' conftest.$ac_ext >&5
  2365 
  2366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2367 See \`config.log' for more details." >&5
  2368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2369 See \`config.log' for more details." >&2;}
  2370    { (exit 1); exit 1; }; }
  2371 fi
  2372 
  2373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2374 fi
  2375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2376 echo "${ECHO_T}$ac_cv_objext" >&6; }
  2377 OBJEXT=$ac_cv_objext
  2378 ac_objext=$OBJEXT
  2379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2382   echo $ECHO_N "(cached) $ECHO_C" >&6
  2383 else
  2384   cat >conftest.$ac_ext <<_ACEOF
  2385 /* confdefs.h.  */
  2386 _ACEOF
  2387 cat confdefs.h >>conftest.$ac_ext
  2388 cat >>conftest.$ac_ext <<_ACEOF
  2389 /* end confdefs.h.  */
  2390 
  2391 int
  2392 main ()
  2393 {
  2394 #ifndef __GNUC__
  2395        choke me
  2396 #endif
  2397 
  2398   ;
  2399   return 0;
  2400 }
  2401 _ACEOF
  2402 rm -f conftest.$ac_objext
  2403 if { (ac_try="$ac_compile"
  2404 case "(($ac_try" in
  2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2406   *) ac_try_echo=$ac_try;;
  2407 esac
  2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2409   (eval "$ac_compile") 2>conftest.er1
  2410   ac_status=$?
  2411   grep -v '^ *+' conftest.er1 >conftest.err
  2412   rm -f conftest.er1
  2413   cat conftest.err >&5
  2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2415   (exit $ac_status); } && {
  2416 	 test -z "$ac_c_werror_flag" ||
  2417 	 test ! -s conftest.err
  2418        } && test -s conftest.$ac_objext; then
  2419   ac_compiler_gnu=yes
  2420 else
  2421   echo "$as_me: failed program was:" >&5
  2422 sed 's/^/| /' conftest.$ac_ext >&5
  2423 
  2424 	ac_compiler_gnu=no
  2425 fi
  2426 
  2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2429 
  2430 fi
  2431 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
  2434 ac_test_CFLAGS=${CFLAGS+set}
  2435 ac_save_CFLAGS=$CFLAGS
  2436 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2438 if test "${ac_cv_prog_cc_g+set}" = set; then
  2439   echo $ECHO_N "(cached) $ECHO_C" >&6
  2440 else
  2441   ac_save_c_werror_flag=$ac_c_werror_flag
  2442    ac_c_werror_flag=yes
  2443    ac_cv_prog_cc_g=no
  2444    CFLAGS="-g"
  2445    cat >conftest.$ac_ext <<_ACEOF
  2446 /* confdefs.h.  */
  2447 _ACEOF
  2448 cat confdefs.h >>conftest.$ac_ext
  2449 cat >>conftest.$ac_ext <<_ACEOF
  2450 /* end confdefs.h.  */
  2451 
  2452 int
  2453 main ()
  2454 {
  2455 
  2456   ;
  2457   return 0;
  2458 }
  2459 _ACEOF
  2460 rm -f conftest.$ac_objext
  2461 if { (ac_try="$ac_compile"
  2462 case "(($ac_try" in
  2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464   *) ac_try_echo=$ac_try;;
  2465 esac
  2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2467   (eval "$ac_compile") 2>conftest.er1
  2468   ac_status=$?
  2469   grep -v '^ *+' conftest.er1 >conftest.err
  2470   rm -f conftest.er1
  2471   cat conftest.err >&5
  2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2473   (exit $ac_status); } && {
  2474 	 test -z "$ac_c_werror_flag" ||
  2475 	 test ! -s conftest.err
  2476        } && test -s conftest.$ac_objext; then
  2477   ac_cv_prog_cc_g=yes
  2478 else
  2479   echo "$as_me: failed program was:" >&5
  2480 sed 's/^/| /' conftest.$ac_ext >&5
  2481 
  2482 	CFLAGS=""
  2483       cat >conftest.$ac_ext <<_ACEOF
  2484 /* confdefs.h.  */
  2485 _ACEOF
  2486 cat confdefs.h >>conftest.$ac_ext
  2487 cat >>conftest.$ac_ext <<_ACEOF
  2488 /* end confdefs.h.  */
  2489 
  2490 int
  2491 main ()
  2492 {
  2493 
  2494   ;
  2495   return 0;
  2496 }
  2497 _ACEOF
  2498 rm -f conftest.$ac_objext
  2499 if { (ac_try="$ac_compile"
  2500 case "(($ac_try" in
  2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502   *) ac_try_echo=$ac_try;;
  2503 esac
  2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2505   (eval "$ac_compile") 2>conftest.er1
  2506   ac_status=$?
  2507   grep -v '^ *+' conftest.er1 >conftest.err
  2508   rm -f conftest.er1
  2509   cat conftest.err >&5
  2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511   (exit $ac_status); } && {
  2512 	 test -z "$ac_c_werror_flag" ||
  2513 	 test ! -s conftest.err
  2514        } && test -s conftest.$ac_objext; then
  2515   :
  2516 else
  2517   echo "$as_me: failed program was:" >&5
  2518 sed 's/^/| /' conftest.$ac_ext >&5
  2519 
  2520 	ac_c_werror_flag=$ac_save_c_werror_flag
  2521 	 CFLAGS="-g"
  2522 	 cat >conftest.$ac_ext <<_ACEOF
  2523 /* confdefs.h.  */
  2524 _ACEOF
  2525 cat confdefs.h >>conftest.$ac_ext
  2526 cat >>conftest.$ac_ext <<_ACEOF
  2527 /* end confdefs.h.  */
  2528 
  2529 int
  2530 main ()
  2531 {
  2532 
  2533   ;
  2534   return 0;
  2535 }
  2536 _ACEOF
  2537 rm -f conftest.$ac_objext
  2538 if { (ac_try="$ac_compile"
  2539 case "(($ac_try" in
  2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2541   *) ac_try_echo=$ac_try;;
  2542 esac
  2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2544   (eval "$ac_compile") 2>conftest.er1
  2545   ac_status=$?
  2546   grep -v '^ *+' conftest.er1 >conftest.err
  2547   rm -f conftest.er1
  2548   cat conftest.err >&5
  2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2550   (exit $ac_status); } && {
  2551 	 test -z "$ac_c_werror_flag" ||
  2552 	 test ! -s conftest.err
  2553        } && test -s conftest.$ac_objext; then
  2554   ac_cv_prog_cc_g=yes
  2555 else
  2556   echo "$as_me: failed program was:" >&5
  2557 sed 's/^/| /' conftest.$ac_ext >&5
  2558 
  2559 
  2560 fi
  2561 
  2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2563 fi
  2564 
  2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2566 fi
  2567 
  2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2569    ac_c_werror_flag=$ac_save_c_werror_flag
  2570 fi
  2571 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2572 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2573 if test "$ac_test_CFLAGS" = set; then
  2574   CFLAGS=$ac_save_CFLAGS
  2575 elif test $ac_cv_prog_cc_g = yes; then
  2576   if test "$GCC" = yes; then
  2577     CFLAGS="-g -O2"
  2578   else
  2579     CFLAGS="-g"
  2580   fi
  2581 else
  2582   if test "$GCC" = yes; then
  2583     CFLAGS="-O2"
  2584   else
  2585     CFLAGS=
  2586   fi
  2587 fi
  2588 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2589 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2590 if test "${ac_cv_prog_cc_c89+set}" = set; then
  2591   echo $ECHO_N "(cached) $ECHO_C" >&6
  2592 else
  2593   ac_cv_prog_cc_c89=no
  2594 ac_save_CC=$CC
  2595 cat >conftest.$ac_ext <<_ACEOF
  2596 /* confdefs.h.  */
  2597 _ACEOF
  2598 cat confdefs.h >>conftest.$ac_ext
  2599 cat >>conftest.$ac_ext <<_ACEOF
  2600 /* end confdefs.h.  */
  2601 #include <stdarg.h>
  2602 #include <stdio.h>
  2603 #include <sys/types.h>
  2604 #include <sys/stat.h>
  2605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2606 struct buf { int x; };
  2607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2608 static char *e (p, i)
  2609      char **p;
  2610      int i;
  2611 {
  2612   return p[i];
  2613 }
  2614 static char *f (char * (*g) (char **, int), char **p, ...)
  2615 {
  2616   char *s;
  2617   va_list v;
  2618   va_start (v,p);
  2619   s = g (p, va_arg (v,int));
  2620   va_end (v);
  2621   return s;
  2622 }
  2623 
  2624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2625    function prototypes and stuff, but not '\xHH' hex character constants.
  2626    These don't provoke an error unfortunately, instead are silently treated
  2627    as 'x'.  The following induces an error, until -std is added to get
  2628    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2629    array size at least.  It's necessary to write '\x00'==0 to get something
  2630    that's true only with -std.  */
  2631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2632 
  2633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2634    inside strings and character constants.  */
  2635 #define FOO(x) 'x'
  2636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2637 
  2638 int test (int i, double x);
  2639 struct s1 {int (*f) (int a);};
  2640 struct s2 {int (*f) (double a);};
  2641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2642 int argc;
  2643 char **argv;
  2644 int
  2645 main ()
  2646 {
  2647 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2648   ;
  2649   return 0;
  2650 }
  2651 _ACEOF
  2652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2653 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2654 do
  2655   CC="$ac_save_CC $ac_arg"
  2656   rm -f conftest.$ac_objext
  2657 if { (ac_try="$ac_compile"
  2658 case "(($ac_try" in
  2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2660   *) ac_try_echo=$ac_try;;
  2661 esac
  2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2663   (eval "$ac_compile") 2>conftest.er1
  2664   ac_status=$?
  2665   grep -v '^ *+' conftest.er1 >conftest.err
  2666   rm -f conftest.er1
  2667   cat conftest.err >&5
  2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2669   (exit $ac_status); } && {
  2670 	 test -z "$ac_c_werror_flag" ||
  2671 	 test ! -s conftest.err
  2672        } && test -s conftest.$ac_objext; then
  2673   ac_cv_prog_cc_c89=$ac_arg
  2674 else
  2675   echo "$as_me: failed program was:" >&5
  2676 sed 's/^/| /' conftest.$ac_ext >&5
  2677 
  2678 
  2679 fi
  2680 
  2681 rm -f core conftest.err conftest.$ac_objext
  2682   test "x$ac_cv_prog_cc_c89" != "xno" && break
  2683 done
  2684 rm -f conftest.$ac_ext
  2685 CC=$ac_save_CC
  2686 
  2687 fi
  2688 # AC_CACHE_VAL
  2689 case "x$ac_cv_prog_cc_c89" in
  2690   x)
  2691     { echo "$as_me:$LINENO: result: none needed" >&5
  2692 echo "${ECHO_T}none needed" >&6; } ;;
  2693   xno)
  2694     { echo "$as_me:$LINENO: result: unsupported" >&5
  2695 echo "${ECHO_T}unsupported" >&6; } ;;
  2696   *)
  2697     CC="$CC $ac_cv_prog_cc_c89"
  2698     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2699 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2700 esac
  2701 
  2702 
  2703 ac_ext=c
  2704 ac_cpp='$CPP $CPPFLAGS'
  2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2708 
  2709 
  2710 
  2711 
  2712 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  2714 if test "${ac_cv_c_const+set}" = set; then
  2715   echo $ECHO_N "(cached) $ECHO_C" >&6
  2716 else
  2717   cat >conftest.$ac_ext <<_ACEOF
  2718 /* confdefs.h.  */
  2719 _ACEOF
  2720 cat confdefs.h >>conftest.$ac_ext
  2721 cat >>conftest.$ac_ext <<_ACEOF
  2722 /* end confdefs.h.  */
  2723 
  2724 int
  2725 main ()
  2726 {
  2727 /* FIXME: Include the comments suggested by Paul. */
  2728 #ifndef __cplusplus
  2729   /* Ultrix mips cc rejects this.  */
  2730   typedef int charset[2];
  2731   const charset cs;
  2732   /* SunOS 4.1.1 cc rejects this.  */
  2733   char const *const *pcpcc;
  2734   char **ppc;
  2735   /* NEC SVR4.0.2 mips cc rejects this.  */
  2736   struct point {int x, y;};
  2737   static struct point const zero = {0,0};
  2738   /* AIX XL C 1.02.0.0 rejects this.
  2739      It does not let you subtract one const X* pointer from another in
  2740      an arm of an if-expression whose if-part is not a constant
  2741      expression */
  2742   const char *g = "string";
  2743   pcpcc = &g + (g ? g-g : 0);
  2744   /* HPUX 7.0 cc rejects these. */
  2745   ++pcpcc;
  2746   ppc = (char**) pcpcc;
  2747   pcpcc = (char const *const *) ppc;
  2748   { /* SCO 3.2v4 cc rejects this.  */
  2749     char *t;
  2750     char const *s = 0 ? (char *) 0 : (char const *) 0;
  2751 
  2752     *t++ = 0;
  2753     if (s) return 0;
  2754   }
  2755   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2756     int x[] = {25, 17};
  2757     const int *foo = &x[0];
  2758     ++foo;
  2759   }
  2760   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2761     typedef const int *iptr;
  2762     iptr p = 0;
  2763     ++p;
  2764   }
  2765   { /* AIX XL C 1.02.0.0 rejects this saying
  2766        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2767     struct s { int j; const int *ap[3]; };
  2768     struct s *b; b->j = 5;
  2769   }
  2770   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2771     const int foo = 10;
  2772     if (!foo) return 0;
  2773   }
  2774   return !cs[0] && !zero.x;
  2775 #endif
  2776 
  2777   ;
  2778   return 0;
  2779 }
  2780 _ACEOF
  2781 rm -f conftest.$ac_objext
  2782 if { (ac_try="$ac_compile"
  2783 case "(($ac_try" in
  2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785   *) ac_try_echo=$ac_try;;
  2786 esac
  2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2788   (eval "$ac_compile") 2>conftest.er1
  2789   ac_status=$?
  2790   grep -v '^ *+' conftest.er1 >conftest.err
  2791   rm -f conftest.er1
  2792   cat conftest.err >&5
  2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2794   (exit $ac_status); } && {
  2795 	 test -z "$ac_c_werror_flag" ||
  2796 	 test ! -s conftest.err
  2797        } && test -s conftest.$ac_objext; then
  2798   ac_cv_c_const=yes
  2799 else
  2800   echo "$as_me: failed program was:" >&5
  2801 sed 's/^/| /' conftest.$ac_ext >&5
  2802 
  2803 	ac_cv_c_const=no
  2804 fi
  2805 
  2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2807 fi
  2808 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  2809 echo "${ECHO_T}$ac_cv_c_const" >&6; }
  2810 if test $ac_cv_c_const = no; then
  2811 
  2812 cat >>confdefs.h <<\_ACEOF
  2813 #define const
  2814 _ACEOF
  2815 
  2816 fi
  2817 
  2818 
  2819 case "$host" in
  2820     *-*-cygwin* | *-*-mingw32*)
  2821         EXE=".exe"
  2822         MATHLIB=""
  2823         SYS_GL_LIBS="-lopengl32"
  2824         ;;
  2825     *-*-beos* | *-*-haiku*)
  2826         EXE=""
  2827         MATHLIB=""
  2828         SYS_GL_LIBS="-lGL"
  2829         ;;
  2830     *-*-darwin* )
  2831         EXE=""
  2832         MATHLIB=""
  2833         SYS_GL_LIBS="-Wl,-framework,OpenGL"
  2834         ;;
  2835     *-*-aix*)
  2836         EXE=""
  2837         if test x$ac_cv_c_compiler_gnu = xyes; then
  2838             CFLAGS="-mthreads"
  2839         fi
  2840         SYS_GL_LIBS=""
  2841         ;;
  2842     *-*-mint*)
  2843         EXE=""
  2844         MATHLIB=""
  2845         # Extract the first word of "osmesa-config", so it can be a program name with args.
  2846 set dummy osmesa-config; ac_word=$2
  2847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2849 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
  2850   echo $ECHO_N "(cached) $ECHO_C" >&6
  2851 else
  2852   case $OSMESA_CONFIG in
  2853   [\\/]* | ?:[\\/]*)
  2854   ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
  2855   ;;
  2856   *)
  2857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858 for as_dir in $PATH
  2859 do
  2860   IFS=$as_save_IFS
  2861   test -z "$as_dir" && as_dir=.
  2862   for ac_exec_ext in '' $ac_executable_extensions; do
  2863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2864     ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866     break 2
  2867   fi
  2868 done
  2869 done
  2870 IFS=$as_save_IFS
  2871 
  2872   test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
  2873   ;;
  2874 esac
  2875 fi
  2876 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
  2877 if test -n "$OSMESA_CONFIG"; then
  2878   { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
  2879 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
  2880 else
  2881   { echo "$as_me:$LINENO: result: no" >&5
  2882 echo "${ECHO_T}no" >&6; }
  2883 fi
  2884 
  2885 
  2886         if test "x$OSMESA_CONFIG" = "xyes"; then
  2887             OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
  2888             OSMESA_LIBS=`$OSMESA_CONFIG --libs`
  2889             CFLAGS="$CFLAGS $OSMESA_CFLAGS"
  2890             SYS_GL_LIBS="$OSMESA_LIBS"
  2891         else
  2892             SYS_GL_LIBS="-lOSMesa"
  2893         fi
  2894         ;;
  2895     *-*-qnx*)
  2896         EXE=""
  2897         MATHLIB=""
  2898         SYS_GL_LIBS="-lGLES_CM"
  2899         ;;
  2900     *)
  2901         EXE=""
  2902         MATHLIB="-lm"
  2903         SYS_GL_LIBS="-lGL"
  2904         ;;
  2905 esac
  2906 
  2907 
  2908 
  2909 SDL_VERSION=1.3.0
  2910 
  2911 # Check whether --with-sdl-prefix was given.
  2912 if test "${with_sdl_prefix+set}" = set; then
  2913   withval=$with_sdl_prefix; sdl_prefix="$withval"
  2914 else
  2915   sdl_prefix=""
  2916 fi
  2917 
  2918 
  2919 # Check whether --with-sdl-exec-prefix was given.
  2920 if test "${with_sdl_exec_prefix+set}" = set; then
  2921   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  2922 else
  2923   sdl_exec_prefix=""
  2924 fi
  2925 
  2926 # Check whether --enable-sdltest was given.
  2927 if test "${enable_sdltest+set}" = set; then
  2928   enableval=$enable_sdltest;
  2929 else
  2930   enable_sdltest=yes
  2931 fi
  2932 
  2933 
  2934   if test x$sdl_exec_prefix != x ; then
  2935     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
  2936     if test x${SDL_CONFIG+set} != xset ; then
  2937        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  2938     fi
  2939   fi
  2940   if test x$sdl_prefix != x ; then
  2941     sdl_args="$sdl_args --prefix=$sdl_prefix"
  2942     if test x${SDL_CONFIG+set} != xset ; then
  2943        SDL_CONFIG=$sdl_prefix/bin/sdl-config
  2944     fi
  2945   fi
  2946 
  2947   if test "x$prefix" != xNONE; then
  2948     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  2949   fi
  2950   # Extract the first word of "sdl-config", so it can be a program name with args.
  2951 set dummy sdl-config; ac_word=$2
  2952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2954 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  2955   echo $ECHO_N "(cached) $ECHO_C" >&6
  2956 else
  2957   case $SDL_CONFIG in
  2958   [\\/]* | ?:[\\/]*)
  2959   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  2960   ;;
  2961   *)
  2962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963 for as_dir in $PATH
  2964 do
  2965   IFS=$as_save_IFS
  2966   test -z "$as_dir" && as_dir=.
  2967   for ac_exec_ext in '' $ac_executable_extensions; do
  2968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2969     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971     break 2
  2972   fi
  2973 done
  2974 done
  2975 IFS=$as_save_IFS
  2976 
  2977   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  2978   ;;
  2979 esac
  2980 fi
  2981 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  2982 if test -n "$SDL_CONFIG"; then
  2983   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  2984 echo "${ECHO_T}$SDL_CONFIG" >&6; }
  2985 else
  2986   { echo "$as_me:$LINENO: result: no" >&5
  2987 echo "${ECHO_T}no" >&6; }
  2988 fi
  2989 
  2990 
  2991   min_sdl_version=$SDL_VERSION
  2992   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  2993 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
  2994   no_sdl=""
  2995   if test "$SDL_CONFIG" = "no" ; then
  2996     no_sdl=yes
  2997   else
  2998     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  2999     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
  3000 
  3001     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
  3002            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3003     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
  3004            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3005     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  3006            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3007     if test "x$enable_sdltest" = "xyes" ; then
  3008       ac_save_CFLAGS="$CFLAGS"
  3009       ac_save_CXXFLAGS="$CXXFLAGS"
  3010       ac_save_LIBS="$LIBS"
  3011       CFLAGS="$CFLAGS $SDL_CFLAGS"
  3012       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3013       LIBS="$LIBS $SDL_LIBS"
  3014       rm -f conf.sdltest
  3015       if test "$cross_compiling" = yes; then
  3016   echo $ac_n "cross compiling; assumed OK... $ac_c"
  3017 else
  3018   cat >conftest.$ac_ext <<_ACEOF
  3019 /* confdefs.h.  */
  3020 _ACEOF
  3021 cat confdefs.h >>conftest.$ac_ext
  3022 cat >>conftest.$ac_ext <<_ACEOF
  3023 /* end confdefs.h.  */
  3024 
  3025 #include <stdio.h>
  3026 #include <stdlib.h>
  3027 #include <string.h>
  3028 #include "SDL.h"
  3029 
  3030 char*
  3031 my_strdup (char *str)
  3032 {
  3033   char *new_str;
  3034 
  3035   if (str)
  3036     {
  3037       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  3038       strcpy (new_str, str);
  3039     }
  3040   else
  3041     new_str = NULL;
  3042 
  3043   return new_str;
  3044 }
  3045 
  3046 int main (int argc, char *argv[])
  3047 {
  3048   int major, minor, micro;
  3049   char *tmp_version;
  3050 
  3051   /* This hangs on some systems (?)
  3052   system ("touch conf.sdltest");
  3053   */
  3054   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  3055 
  3056   /* HP/UX 9 (%@#!) writes to sscanf strings */
  3057   tmp_version = my_strdup("$min_sdl_version");
  3058   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3059      printf("%s, bad version string\n", "$min_sdl_version");
  3060      exit(1);
  3061    }
  3062 
  3063    if (($sdl_major_version > major) ||
  3064       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  3065       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  3066     {
  3067       return 0;
  3068     }
  3069   else
  3070     {
  3071       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  3072       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  3073       printf("*** best to upgrade to the required version.\n");
  3074       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  3075       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  3076       printf("*** config.cache before re-running configure\n");
  3077       return 1;
  3078     }
  3079 }
  3080 
  3081 
  3082 _ACEOF
  3083 rm -f conftest$ac_exeext
  3084 if { (ac_try="$ac_link"
  3085 case "(($ac_try" in
  3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3087   *) ac_try_echo=$ac_try;;
  3088 esac
  3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3090   (eval "$ac_link") 2>&5
  3091   ac_status=$?
  3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3094   { (case "(($ac_try" in
  3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3096   *) ac_try_echo=$ac_try;;
  3097 esac
  3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3099   (eval "$ac_try") 2>&5
  3100   ac_status=$?
  3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102   (exit $ac_status); }; }; then
  3103   :
  3104 else
  3105   echo "$as_me: program exited with status $ac_status" >&5
  3106 echo "$as_me: failed program was:" >&5
  3107 sed 's/^/| /' conftest.$ac_ext >&5
  3108 
  3109 ( exit $ac_status )
  3110 no_sdl=yes
  3111 fi
  3112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3113 fi
  3114 
  3115 
  3116        CFLAGS="$ac_save_CFLAGS"
  3117        CXXFLAGS="$ac_save_CXXFLAGS"
  3118        LIBS="$ac_save_LIBS"
  3119      fi
  3120   fi
  3121   if test "x$no_sdl" = x ; then
  3122      { echo "$as_me:$LINENO: result: yes" >&5
  3123 echo "${ECHO_T}yes" >&6; }
  3124      :
  3125   else
  3126      { echo "$as_me:$LINENO: result: no" >&5
  3127 echo "${ECHO_T}no" >&6; }
  3128      if test "$SDL_CONFIG" = "no" ; then
  3129        echo "*** The sdl-config script installed by SDL could not be found"
  3130        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  3131        echo "*** your path, or set the SDL_CONFIG environment variable to the"
  3132        echo "*** full path to sdl-config."
  3133      else
  3134        if test -f conf.sdltest ; then
  3135         :
  3136        else
  3137           echo "*** Could not run SDL test program, checking why..."
  3138           CFLAGS="$CFLAGS $SDL_CFLAGS"
  3139           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3140           LIBS="$LIBS $SDL_LIBS"
  3141           cat >conftest.$ac_ext <<_ACEOF
  3142 /* confdefs.h.  */
  3143 _ACEOF
  3144 cat confdefs.h >>conftest.$ac_ext
  3145 cat >>conftest.$ac_ext <<_ACEOF
  3146 /* end confdefs.h.  */
  3147 
  3148 #include <stdio.h>
  3149 #include "SDL.h"
  3150 
  3151 int main(int argc, char *argv[])
  3152 { return 0; }
  3153 #undef  main
  3154 #define main K_and_R_C_main
  3155 
  3156 int
  3157 main ()
  3158 {
  3159  return 0;
  3160   ;
  3161   return 0;
  3162 }
  3163 _ACEOF
  3164 rm -f conftest.$ac_objext conftest$ac_exeext
  3165 if { (ac_try="$ac_link"
  3166 case "(($ac_try" in
  3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168   *) ac_try_echo=$ac_try;;
  3169 esac
  3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3171   (eval "$ac_link") 2>conftest.er1
  3172   ac_status=$?
  3173   grep -v '^ *+' conftest.er1 >conftest.err
  3174   rm -f conftest.er1
  3175   cat conftest.err >&5
  3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3177   (exit $ac_status); } && {
  3178 	 test -z "$ac_c_werror_flag" ||
  3179 	 test ! -s conftest.err
  3180        } && test -s conftest$ac_exeext &&
  3181        $as_test_x conftest$ac_exeext; then
  3182    echo "*** The test program compiled, but did not run. This usually means"
  3183           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  3184           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  3185           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3186           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  3187           echo "*** is required on your system"
  3188 	  echo "***"
  3189           echo "*** If you have an old version installed, it is best to remove it, although"
  3190           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3191 else
  3192   echo "$as_me: failed program was:" >&5
  3193 sed 's/^/| /' conftest.$ac_ext >&5
  3194 
  3195 	 echo "*** The test program failed to compile or link. See the file config.log for the"
  3196           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  3197           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  3198           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  3199 fi
  3200 
  3201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3202       conftest$ac_exeext conftest.$ac_ext
  3203           CFLAGS="$ac_save_CFLAGS"
  3204           CXXFLAGS="$ac_save_CXXFLAGS"
  3205           LIBS="$ac_save_LIBS"
  3206        fi
  3207      fi
  3208      SDL_CFLAGS=""
  3209      SDL_LIBS=""
  3210      { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
  3211 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
  3212    { (exit 1); exit 1; }; }
  3213 
  3214   fi
  3215 
  3216 
  3217   rm -f conf.sdltest
  3218 
  3219 CFLAGS="$CFLAGS $SDL_CFLAGS"
  3220 LIBS="$LIBS $SDL_LIBS"
  3221 
  3222 ac_ext=c
  3223 ac_cpp='$CPP $CPPFLAGS'
  3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3229 # On Suns, sometimes $CPP names a directory.
  3230 if test -n "$CPP" && test -d "$CPP"; then
  3231   CPP=
  3232 fi
  3233 if test -z "$CPP"; then
  3234   if test "${ac_cv_prog_CPP+set}" = set; then
  3235   echo $ECHO_N "(cached) $ECHO_C" >&6
  3236 else
  3237       # Double quotes because CPP needs to be expanded
  3238     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3239     do
  3240       ac_preproc_ok=false
  3241 for ac_c_preproc_warn_flag in '' yes
  3242 do
  3243   # Use a header file that comes with gcc, so configuring glibc
  3244   # with a fresh cross-compiler works.
  3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3246   # <limits.h> exists even on freestanding compilers.
  3247   # On the NeXT, cc -E runs the code through the compiler's parser,
  3248   # not just through cpp. "Syntax error" is here to catch this case.
  3249   cat >conftest.$ac_ext <<_ACEOF
  3250 /* confdefs.h.  */
  3251 _ACEOF
  3252 cat confdefs.h >>conftest.$ac_ext
  3253 cat >>conftest.$ac_ext <<_ACEOF
  3254 /* end confdefs.h.  */
  3255 #ifdef __STDC__
  3256 # include <limits.h>
  3257 #else
  3258 # include <assert.h>
  3259 #endif
  3260 		     Syntax error
  3261 _ACEOF
  3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
  3263 case "(($ac_try" in
  3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3265   *) ac_try_echo=$ac_try;;
  3266 esac
  3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3269   ac_status=$?
  3270   grep -v '^ *+' conftest.er1 >conftest.err
  3271   rm -f conftest.er1
  3272   cat conftest.err >&5
  3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274   (exit $ac_status); } >/dev/null && {
  3275 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3276 	 test ! -s conftest.err
  3277        }; then
  3278   :
  3279 else
  3280   echo "$as_me: failed program was:" >&5
  3281 sed 's/^/| /' conftest.$ac_ext >&5
  3282 
  3283   # Broken: fails on valid input.
  3284 continue
  3285 fi
  3286 
  3287 rm -f conftest.err conftest.$ac_ext
  3288 
  3289   # OK, works on sane cases.  Now check whether nonexistent headers
  3290   # can be detected and how.
  3291   cat >conftest.$ac_ext <<_ACEOF
  3292 /* confdefs.h.  */
  3293 _ACEOF
  3294 cat confdefs.h >>conftest.$ac_ext
  3295 cat >>conftest.$ac_ext <<_ACEOF
  3296 /* end confdefs.h.  */
  3297 #include <ac_nonexistent.h>
  3298 _ACEOF
  3299 if { (ac_try="$ac_cpp conftest.$ac_ext"
  3300 case "(($ac_try" in
  3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3302   *) ac_try_echo=$ac_try;;
  3303 esac
  3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3306   ac_status=$?
  3307   grep -v '^ *+' conftest.er1 >conftest.err
  3308   rm -f conftest.er1
  3309   cat conftest.err >&5
  3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311   (exit $ac_status); } >/dev/null && {
  3312 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3313 	 test ! -s conftest.err
  3314        }; then
  3315   # Broken: success on invalid input.
  3316 continue
  3317 else
  3318   echo "$as_me: failed program was:" >&5
  3319 sed 's/^/| /' conftest.$ac_ext >&5
  3320 
  3321   # Passes both tests.
  3322 ac_preproc_ok=:
  3323 break
  3324 fi
  3325 
  3326 rm -f conftest.err conftest.$ac_ext
  3327 
  3328 done
  3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3330 rm -f conftest.err conftest.$ac_ext
  3331 if $ac_preproc_ok; then
  3332   break
  3333 fi
  3334 
  3335     done
  3336     ac_cv_prog_CPP=$CPP
  3337 
  3338 fi
  3339   CPP=$ac_cv_prog_CPP
  3340 else
  3341   ac_cv_prog_CPP=$CPP
  3342 fi
  3343 { echo "$as_me:$LINENO: result: $CPP" >&5
  3344 echo "${ECHO_T}$CPP" >&6; }
  3345 ac_preproc_ok=false
  3346 for ac_c_preproc_warn_flag in '' yes
  3347 do
  3348   # Use a header file that comes with gcc, so configuring glibc
  3349   # with a fresh cross-compiler works.
  3350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3351   # <limits.h> exists even on freestanding compilers.
  3352   # On the NeXT, cc -E runs the code through the compiler's parser,
  3353   # not just through cpp. "Syntax error" is here to catch this case.
  3354   cat >conftest.$ac_ext <<_ACEOF
  3355 /* confdefs.h.  */
  3356 _ACEOF
  3357 cat confdefs.h >>conftest.$ac_ext
  3358 cat >>conftest.$ac_ext <<_ACEOF
  3359 /* end confdefs.h.  */
  3360 #ifdef __STDC__
  3361 # include <limits.h>
  3362 #else
  3363 # include <assert.h>
  3364 #endif
  3365 		     Syntax error
  3366 _ACEOF
  3367 if { (ac_try="$ac_cpp conftest.$ac_ext"
  3368 case "(($ac_try" in
  3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370   *) ac_try_echo=$ac_try;;
  3371 esac
  3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3374   ac_status=$?
  3375   grep -v '^ *+' conftest.er1 >conftest.err
  3376   rm -f conftest.er1
  3377   cat conftest.err >&5
  3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379   (exit $ac_status); } >/dev/null && {
  3380 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3381 	 test ! -s conftest.err
  3382        }; then
  3383   :
  3384 else
  3385   echo "$as_me: failed program was:" >&5
  3386 sed 's/^/| /' conftest.$ac_ext >&5
  3387 
  3388   # Broken: fails on valid input.
  3389 continue
  3390 fi
  3391 
  3392 rm -f conftest.err conftest.$ac_ext
  3393 
  3394   # OK, works on sane cases.  Now check whether nonexistent headers
  3395   # can be detected and how.
  3396   cat >conftest.$ac_ext <<_ACEOF
  3397 /* confdefs.h.  */
  3398 _ACEOF
  3399 cat confdefs.h >>conftest.$ac_ext
  3400 cat >>conftest.$ac_ext <<_ACEOF
  3401 /* end confdefs.h.  */
  3402 #include <ac_nonexistent.h>
  3403 _ACEOF
  3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
  3405 case "(($ac_try" in
  3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3407   *) ac_try_echo=$ac_try;;
  3408 esac
  3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3411   ac_status=$?
  3412   grep -v '^ *+' conftest.er1 >conftest.err
  3413   rm -f conftest.er1
  3414   cat conftest.err >&5
  3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3416   (exit $ac_status); } >/dev/null && {
  3417 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3418 	 test ! -s conftest.err
  3419        }; then
  3420   # Broken: success on invalid input.
  3421 continue
  3422 else
  3423   echo "$as_me: failed program was:" >&5
  3424 sed 's/^/| /' conftest.$ac_ext >&5
  3425 
  3426   # Passes both tests.
  3427 ac_preproc_ok=:
  3428 break
  3429 fi
  3430 
  3431 rm -f conftest.err conftest.$ac_ext
  3432 
  3433 done
  3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3435 rm -f conftest.err conftest.$ac_ext
  3436 if $ac_preproc_ok; then
  3437   :
  3438 else
  3439   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3440 See \`config.log' for more details." >&5
  3441 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3442 See \`config.log' for more details." >&2;}
  3443    { (exit 1); exit 1; }; }
  3444 fi
  3445 
  3446 ac_ext=c
  3447 ac_cpp='$CPP $CPPFLAGS'
  3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3451 
  3452 
  3453 { echo "$as_me:$LINENO: checking for X" >&5
  3454 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  3455 
  3456 
  3457 # Check whether --with-x was given.
  3458 if test "${with_x+set}" = set; then
  3459   withval=$with_x;
  3460 fi
  3461 
  3462 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3463 if test "x$with_x" = xno; then
  3464   # The user explicitly disabled X.
  3465   have_x=disabled
  3466 else
  3467   case $x_includes,$x_libraries in #(
  3468     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  3469 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  3470    { (exit 1); exit 1; }; };; #(
  3471     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  3472   echo $ECHO_N "(cached) $ECHO_C" >&6
  3473 else
  3474   # One or both of the vars are not set, and there is no cached value.
  3475 ac_x_includes=no ac_x_libraries=no
  3476 rm -f -r conftest.dir
  3477 if mkdir conftest.dir; then
  3478   cd conftest.dir
  3479   cat >Imakefile <<'_ACEOF'
  3480 incroot:
  3481 	@echo incroot='${INCROOT}'
  3482 usrlibdir:
  3483 	@echo usrlibdir='${USRLIBDIR}'
  3484 libdir:
  3485 	@echo libdir='${LIBDIR}'
  3486 _ACEOF
  3487   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3488     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3489     for ac_var in incroot usrlibdir libdir; do
  3490       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3491     done
  3492     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3493     for ac_extension in a so sl dylib la dll; do
  3494       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  3495 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
  3496 	ac_im_usrlibdir=$ac_im_libdir; break
  3497       fi
  3498     done
  3499     # Screen out bogus values from the imake configuration.  They are
  3500     # bogus both because they are the default anyway, and because
  3501     # using them would break gcc on systems where it needs fixed includes.
  3502     case $ac_im_incroot in
  3503 	/usr/include) ac_x_includes= ;;
  3504 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3505     esac
  3506     case $ac_im_usrlibdir in
  3507 	/usr/lib | /lib) ;;
  3508 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3509     esac
  3510   fi
  3511   cd ..
  3512   rm -f -r conftest.dir
  3513 fi
  3514 
  3515 # Standard set of common directories for X headers.
  3516 # Check X11 before X11Rn because it is often a symlink to the current release.
  3517 ac_x_header_dirs='
  3518 /usr/X11/include
  3519 /usr/X11R6/include
  3520 /usr/X11R5/include
  3521 /usr/X11R4/include
  3522 
  3523 /usr/include/X11
  3524 /usr/include/X11R6
  3525 /usr/include/X11R5
  3526 /usr/include/X11R4
  3527 
  3528 /usr/local/X11/include
  3529 /usr/local/X11R6/include
  3530 /usr/local/X11R5/include
  3531 /usr/local/X11R4/include
  3532 
  3533 /usr/local/include/X11
  3534 /usr/local/include/X11R6
  3535 /usr/local/include/X11R5
  3536 /usr/local/include/X11R4
  3537 
  3538 /usr/X386/include
  3539 /usr/x386/include
  3540 /usr/XFree86/include/X11
  3541 
  3542 /usr/include
  3543 /usr/local/include
  3544 /usr/unsupported/include
  3545 /usr/athena/include
  3546 /usr/local/x11r5/include
  3547 /usr/lpp/Xamples/include
  3548 
  3549 /usr/openwin/include
  3550 /usr/openwin/share/include'
  3551 
  3552 if test "$ac_x_includes" = no; then
  3553   # Guess where to find include files, by looking for Xlib.h.
  3554   # First, try using that file with no special directory specified.
  3555   cat >conftest.$ac_ext <<_ACEOF
  3556 /* confdefs.h.  */
  3557 _ACEOF
  3558 cat confdefs.h >>conftest.$ac_ext
  3559 cat >>conftest.$ac_ext <<_ACEOF
  3560 /* end confdefs.h.  */
  3561 #include <X11/Xlib.h>
  3562 _ACEOF
  3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
  3564 case "(($ac_try" in
  3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3566   *) ac_try_echo=$ac_try;;
  3567 esac
  3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3570   ac_status=$?
  3571   grep -v '^ *+' conftest.er1 >conftest.err
  3572   rm -f conftest.er1
  3573   cat conftest.err >&5
  3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3575   (exit $ac_status); } >/dev/null && {
  3576 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3577 	 test ! -s conftest.err
  3578        }; then
  3579   # We can compile using X headers with no special include directory.
  3580 ac_x_includes=
  3581 else
  3582   echo "$as_me: failed program was:" >&5
  3583 sed 's/^/| /' conftest.$ac_ext >&5
  3584 
  3585   for ac_dir in $ac_x_header_dirs; do
  3586   if test -r "$ac_dir/X11/Xlib.h"; then
  3587     ac_x_includes=$ac_dir
  3588     break
  3589   fi
  3590 done
  3591 fi
  3592 
  3593 rm -f conftest.err conftest.$ac_ext
  3594 fi # $ac_x_includes = no
  3595 
  3596 if test "$ac_x_libraries" = no; then
  3597   # Check for the libraries.
  3598   # See if we find them without any special options.
  3599   # Don't add to $LIBS permanently.
  3600   ac_save_LIBS=$LIBS
  3601   LIBS="-lX11 $LIBS"
  3602   cat >conftest.$ac_ext <<_ACEOF
  3603 /* confdefs.h.  */
  3604 _ACEOF
  3605 cat confdefs.h >>conftest.$ac_ext
  3606 cat >>conftest.$ac_ext <<_ACEOF
  3607 /* end confdefs.h.  */
  3608 #include <X11/Xlib.h>
  3609 int
  3610 main ()
  3611 {
  3612 XrmInitialize ()
  3613   ;
  3614   return 0;
  3615 }
  3616 _ACEOF
  3617 rm -f conftest.$ac_objext conftest$ac_exeext
  3618 if { (ac_try="$ac_link"
  3619 case "(($ac_try" in
  3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3621   *) ac_try_echo=$ac_try;;
  3622 esac
  3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3624   (eval "$ac_link") 2>conftest.er1
  3625   ac_status=$?
  3626   grep -v '^ *+' conftest.er1 >conftest.err
  3627   rm -f conftest.er1
  3628   cat conftest.err >&5
  3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3630   (exit $ac_status); } && {
  3631 	 test -z "$ac_c_werror_flag" ||
  3632 	 test ! -s conftest.err
  3633        } && test -s conftest$ac_exeext &&
  3634        $as_test_x conftest$ac_exeext; then
  3635   LIBS=$ac_save_LIBS
  3636 # We can link X programs with no special library path.
  3637 ac_x_libraries=
  3638 else
  3639   echo "$as_me: failed program was:" >&5
  3640 sed 's/^/| /' conftest.$ac_ext >&5
  3641 
  3642 	LIBS=$ac_save_LIBS
  3643 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3644 do
  3645   # Don't even attempt the hair of trying to link an X program!
  3646   for ac_extension in a so sl dylib la dll; do
  3647     if test -r "$ac_dir/libX11.$ac_extension"; then
  3648       ac_x_libraries=$ac_dir
  3649       break 2
  3650     fi
  3651   done
  3652 done
  3653 fi
  3654 
  3655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3656       conftest$ac_exeext conftest.$ac_ext
  3657 fi # $ac_x_libraries = no
  3658 
  3659 case $ac_x_includes,$ac_x_libraries in #(
  3660   no,* | *,no | *\'*)
  3661     # Didn't find X, or a directory has "'" in its name.
  3662     ac_cv_have_x="have_x=no";; #(
  3663   *)
  3664     # Record where we found X for the cache.
  3665     ac_cv_have_x="have_x=yes\
  3666 	ac_x_includes='$ac_x_includes'\
  3667 	ac_x_libraries='$ac_x_libraries'"
  3668 esac
  3669 fi
  3670 ;; #(
  3671     *) have_x=yes;;
  3672   esac
  3673   eval "$ac_cv_have_x"
  3674 fi # $with_x != no
  3675 
  3676 if test "$have_x" != yes; then
  3677   { echo "$as_me:$LINENO: result: $have_x" >&5
  3678 echo "${ECHO_T}$have_x" >&6; }
  3679   no_x=yes
  3680 else
  3681   # If each of the values was on the command line, it overrides each guess.
  3682   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3683   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3684   # Update the cache value to reflect the command line values.
  3685   ac_cv_have_x="have_x=yes\
  3686 	ac_x_includes='$x_includes'\
  3687 	ac_x_libraries='$x_libraries'"
  3688   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  3689 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  3690 fi
  3691 
  3692 if test x$have_x = xyes; then
  3693     if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
  3694         :
  3695     else
  3696         CFLAGS="$CFLAGS -I$ac_x_includes"
  3697     fi
  3698     if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
  3699         :
  3700     else
  3701         XPATH="-L$ac_x_libraries"
  3702     fi
  3703 fi
  3704 
  3705 { echo "$as_me:$LINENO: checking for OpenGL support" >&5
  3706 echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
  3707 have_opengl=no
  3708 cat >conftest.$ac_ext <<_ACEOF
  3709 /* confdefs.h.  */
  3710 _ACEOF
  3711 cat confdefs.h >>conftest.$ac_ext
  3712 cat >>conftest.$ac_ext <<_ACEOF
  3713 /* end confdefs.h.  */
  3714 
  3715  #include "SDL_opengl.h"
  3716 
  3717 int
  3718 main ()
  3719 {
  3720 
  3721 
  3722   ;
  3723   return 0;
  3724 }
  3725 _ACEOF
  3726 rm -f conftest.$ac_objext
  3727 if { (ac_try="$ac_compile"
  3728 case "(($ac_try" in
  3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3730   *) ac_try_echo=$ac_try;;
  3731 esac
  3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3733   (eval "$ac_compile") 2>conftest.er1
  3734   ac_status=$?
  3735   grep -v '^ *+' conftest.er1 >conftest.err
  3736   rm -f conftest.er1
  3737   cat conftest.err >&5
  3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3739   (exit $ac_status); } && {
  3740 	 test -z "$ac_c_werror_flag" ||
  3741 	 test ! -s conftest.err
  3742        } && test -s conftest.$ac_objext; then
  3743 
  3744 have_opengl=yes
  3745 
  3746 else
  3747   echo "$as_me: failed program was:" >&5
  3748 sed 's/^/| /' conftest.$ac_ext >&5
  3749 
  3750 
  3751 fi
  3752 
  3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3754 { echo "$as_me:$LINENO: result: $have_opengl" >&5
  3755 echo "${ECHO_T}$have_opengl" >&6; }
  3756 
  3757 { echo "$as_me:$LINENO: checking for OpenGL ES support" >&5
  3758 echo $ECHO_N "checking for OpenGL ES support... $ECHO_C" >&6; }
  3759 have_opengles=no
  3760 cat >conftest.$ac_ext <<_ACEOF
  3761 /* confdefs.h.  */
  3762 _ACEOF
  3763 cat confdefs.h >>conftest.$ac_ext
  3764 cat >>conftest.$ac_ext <<_ACEOF
  3765 /* end confdefs.h.  */
  3766 
  3767  #if defined (__QNXNTO__)
  3768     #include <GLES/gl.h>
  3769  #elif defined (__IPHONEOS__)
  3770     #include <OpenGLES/ES1/gl.h>
  3771  #else
  3772     #error "No OpenGL ES support"
  3773  #endif /* __QNXNTO__ */
  3774 
  3775 int
  3776 main ()
  3777 {
  3778 
  3779 
  3780   ;
  3781   return 0;
  3782 }
  3783 _ACEOF
  3784 rm -f conftest.$ac_objext
  3785 if { (ac_try="$ac_compile"
  3786 case "(($ac_try" in
  3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3788   *) ac_try_echo=$ac_try;;
  3789 esac
  3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3791   (eval "$ac_compile") 2>conftest.er1
  3792   ac_status=$?
  3793   grep -v '^ *+' conftest.er1 >conftest.err
  3794   rm -f conftest.er1
  3795   cat conftest.err >&5
  3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3797   (exit $ac_status); } && {
  3798 	 test -z "$ac_c_werror_flag" ||
  3799 	 test ! -s conftest.err
  3800        } && test -s conftest.$ac_objext; then
  3801 
  3802 have_opengles=yes
  3803 
  3804 else
  3805   echo "$as_me: failed program was:" >&5
  3806 sed 's/^/| /' conftest.$ac_ext >&5
  3807 
  3808 
  3809 fi
  3810 
  3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812 { echo "$as_me:$LINENO: result: $have_opengles" >&5
  3813 echo "${ECHO_T}$have_opengles" >&6; }
  3814 
  3815 if test x$have_opengl = xyes; then
  3816     CFLAGS="$CFLAGS -DHAVE_OPENGL"
  3817     GLLIB="$XPATH $SYS_GL_LIBS"
  3818 elif test x$have_opengles = xyes; then
  3819     CFLAGS="$CFLAGS -DHAVE_OPENGLES"
  3820     GLLIB="$XPATH $SYS_GL_LIBS"
  3821 else
  3822     GLLIB=""
  3823 fi
  3824 
  3825 
  3826 
  3827 { echo "$as_me:$LINENO: checking for SDL_ttf" >&5
  3828 echo $ECHO_N "checking for SDL_ttf... $ECHO_C" >&6; }
  3829 have_SDL_ttf=no
  3830 cat >conftest.$ac_ext <<_ACEOF
  3831 /* confdefs.h.  */
  3832 _ACEOF
  3833 cat confdefs.h >>conftest.$ac_ext
  3834 cat >>conftest.$ac_ext <<_ACEOF
  3835 /* end confdefs.h.  */
  3836 
  3837  #include "SDL_ttf.h"
  3838 
  3839 int
  3840 main ()
  3841 {
  3842 
  3843 
  3844   ;
  3845   return 0;
  3846 }
  3847 _ACEOF
  3848 rm -f conftest.$ac_objext
  3849 if { (ac_try="$ac_compile"
  3850 case "(($ac_try" in
  3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852   *) ac_try_echo=$ac_try;;
  3853 esac
  3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3855   (eval "$ac_compile") 2>conftest.er1
  3856   ac_status=$?
  3857   grep -v '^ *+' conftest.er1 >conftest.err
  3858   rm -f conftest.er1
  3859   cat conftest.err >&5
  3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3861   (exit $ac_status); } && {
  3862 	 test -z "$ac_c_werror_flag" ||
  3863 	 test ! -s conftest.err
  3864        } && test -s conftest.$ac_objext; then
  3865 
  3866 have_SDL_ttf=yes
  3867 
  3868 else
  3869   echo "$as_me: failed program was:" >&5
  3870 sed 's/^/| /' conftest.$ac_ext >&5
  3871 
  3872 
  3873 fi
  3874 
  3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3876 { echo "$as_me:$LINENO: result: $have_SDL_ttf" >&5
  3877 echo "${ECHO_T}$have_SDL_ttf" >&6; }
  3878 
  3879 if test x$have_SDL_ttf = xyes; then
  3880     CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
  3881     SDL_TTF_LIB="-lSDL_ttf"
  3882 fi
  3883 
  3884 
  3885 
  3886 ac_config_files="$ac_config_files Makefile"
  3887 
  3888 cat >confcache <<\_ACEOF
  3889 # This file is a shell script that caches the results of configure
  3890 # tests run on this system so they can be shared between configure
  3891 # scripts and configure runs, see configure's option --config-cache.
  3892 # It is not useful on other systems.  If it contains results you don't
  3893 # want to keep, you may remove or edit it.
  3894 #
  3895 # config.status only pays attention to the cache file if you give it
  3896 # the --recheck option to rerun configure.
  3897 #
  3898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3900 # following values.
  3901 
  3902 _ACEOF
  3903 
  3904 # The following way of writing the cache mishandles newlines in values,
  3905 # but we know of no workaround that is simple, portable, and efficient.
  3906 # So, we kill variables containing newlines.
  3907 # Ultrix sh set writes to stderr and can't be redirected directly,
  3908 # and sets the high bit in the cache file unless we assign to the vars.
  3909 (
  3910   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3911     eval ac_val=\$$ac_var
  3912     case $ac_val in #(
  3913     *${as_nl}*)
  3914       case $ac_var in #(
  3915       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3916 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3917       esac
  3918       case $ac_var in #(
  3919       _ | IFS | as_nl) ;; #(
  3920       *) $as_unset $ac_var ;;
  3921       esac ;;
  3922     esac
  3923   done
  3924 
  3925   (set) 2>&1 |
  3926     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3927     *${as_nl}ac_space=\ *)
  3928       # `set' does not quote correctly, so add quotes (double-quote
  3929       # substitution turns \\\\ into \\, and sed turns \\ into \).
  3930       sed -n \
  3931 	"s/'/'\\\\''/g;
  3932 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3933       ;; #(
  3934     *)
  3935       # `set' quotes correctly as required by POSIX, so do not add quotes.
  3936       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3937       ;;
  3938     esac |
  3939     sort
  3940 ) |
  3941   sed '
  3942      /^ac_cv_env_/b end
  3943      t clear
  3944      :clear
  3945      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3946      t end
  3947      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3948      :end' >>confcache
  3949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3950   if test -w "$cache_file"; then
  3951     test "x$cache_file" != "x/dev/null" &&
  3952       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3953 echo "$as_me: updating cache $cache_file" >&6;}
  3954     cat confcache >$cache_file
  3955   else
  3956     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3957 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3958   fi
  3959 fi
  3960 rm -f confcache
  3961 
  3962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3963 # Let make expand exec_prefix.
  3964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3965 
  3966 # Transform confdefs.h into DEFS.
  3967 # Protect against shell expansion while executing Makefile rules.
  3968 # Protect against Makefile macro expansion.
  3969 #
  3970 # If the first sed substitution is executed (which looks for macros that
  3971 # take arguments), then branch to the quote section.  Otherwise,
  3972 # look for a macro that doesn't take arguments.
  3973 ac_script='
  3974 t clear
  3975 :clear
  3976 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
  3977 t quote
  3978 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
  3979 t quote
  3980 b any
  3981 :quote
  3982 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3983 s/\[/\\&/g
  3984 s/\]/\\&/g
  3985 s/\$/$$/g
  3986 H
  3987 :any
  3988 ${
  3989 	g
  3990 	s/^\n//
  3991 	s/\n/ /g
  3992 	p
  3993 }
  3994 '
  3995 DEFS=`sed -n "$ac_script" confdefs.h`
  3996 
  3997 
  3998 ac_libobjs=
  3999 ac_ltlibobjs=
  4000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4001   # 1. Remove the extension, and $U if already installed.
  4002   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4003   ac_i=`echo "$ac_i" | sed "$ac_script"`
  4004   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  4005   #    will be set to the directory where LIBOBJS objects are built.
  4006   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4007   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  4008 done
  4009 LIBOBJS=$ac_libobjs
  4010 
  4011 LTLIBOBJS=$ac_ltlibobjs
  4012 
  4013 
  4014 
  4015 : ${CONFIG_STATUS=./config.status}
  4016 ac_clean_files_save=$ac_clean_files
  4017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4018 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4019 echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4020 cat >$CONFIG_STATUS <<_ACEOF
  4021 #! $SHELL
  4022 # Generated by $as_me.
  4023 # Run this file to recreate the current configuration.
  4024 # Compiler output produced by configure, useful for debugging
  4025 # configure, is in config.log if it exists.
  4026 
  4027 debug=false
  4028 ac_cs_recheck=false
  4029 ac_cs_silent=false
  4030 SHELL=\${CONFIG_SHELL-$SHELL}
  4031 _ACEOF
  4032 
  4033 cat >>$CONFIG_STATUS <<\_ACEOF
  4034 ## --------------------- ##
  4035 ## M4sh Initialization.  ##
  4036 ## --------------------- ##
  4037 
  4038 # Be more Bourne compatible
  4039 DUALCASE=1; export DUALCASE # for MKS sh
  4040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4041   emulate sh
  4042   NULLCMD=:
  4043   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4044   # is contrary to our usage.  Disable this feature.
  4045   alias -g '${1+"$@"}'='"$@"'
  4046   setopt NO_GLOB_SUBST
  4047 else
  4048   case `(set -o) 2>/dev/null` in
  4049   *posix*) set -o posix ;;
  4050 esac
  4051 
  4052 fi
  4053 
  4054 
  4055 
  4056 
  4057 # PATH needs CR
  4058 # Avoid depending upon Character Ranges.
  4059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4062 as_cr_digits='0123456789'
  4063 as_cr_alnum=$as_cr_Letters$as_cr_digits
  4064 
  4065 # The user is always right.
  4066 if test "${PATH_SEPARATOR+set}" != set; then
  4067   echo "#! /bin/sh" >conf$$.sh
  4068   echo  "exit 0"   >>conf$$.sh
  4069   chmod +x conf$$.sh
  4070   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4071     PATH_SEPARATOR=';'
  4072   else
  4073     PATH_SEPARATOR=:
  4074   fi
  4075   rm -f conf$$.sh
  4076 fi
  4077 
  4078 # Support unset when possible.
  4079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4080   as_unset=unset
  4081 else
  4082   as_unset=false
  4083 fi
  4084 
  4085 
  4086 # IFS
  4087 # We need space, tab and new line, in precisely that order.  Quoting is
  4088 # there to prevent editors from complaining about space-tab.
  4089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4090 # splitting by setting IFS to empty value.)
  4091 as_nl='
  4092 '
  4093 IFS=" ""	$as_nl"
  4094 
  4095 # Find who we are.  Look in the path if we contain no directory separator.
  4096 case $0 in
  4097   *[\\/]* ) as_myself=$0 ;;
  4098   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4099 for as_dir in $PATH
  4100 do
  4101   IFS=$as_save_IFS
  4102   test -z "$as_dir" && as_dir=.
  4103   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4104 done
  4105 IFS=$as_save_IFS
  4106 
  4107      ;;
  4108 esac
  4109 # We did not find ourselves, most probably we were run as `sh COMMAND'
  4110 # in which case we are not to be found in the path.
  4111 if test "x$as_myself" = x; then
  4112   as_myself=$0
  4113 fi
  4114 if test ! -f "$as_myself"; then
  4115   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4116   { (exit 1); exit 1; }
  4117 fi
  4118 
  4119 # Work around bugs in pre-3.0 UWIN ksh.
  4120 for as_var in ENV MAIL MAILPATH
  4121 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4122 done
  4123 PS1='$ '
  4124 PS2='> '
  4125 PS4='+ '
  4126 
  4127 # NLS nuisances.
  4128 for as_var in \
  4129   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4130   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4131   LC_TELEPHONE LC_TIME
  4132 do
  4133   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4134     eval $as_var=C; export $as_var
  4135   else
  4136     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4137   fi
  4138 done
  4139 
  4140 # Required to use basename.
  4141 if expr a : '\(a\)' >/dev/null 2>&1 &&
  4142    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4143   as_expr=expr
  4144 else
  4145   as_expr=false
  4146 fi
  4147 
  4148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4149   as_basename=basename
  4150 else
  4151   as_basename=false
  4152 fi
  4153 
  4154 
  4155 # Name of the executable.
  4156 as_me=`$as_basename -- "$0" ||
  4157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4158 	 X"$0" : 'X\(//\)$' \| \
  4159 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4160 echo X/"$0" |
  4161     sed '/^.*\/\([^/][^/]*\)\/*$/{
  4162 	    s//\1/
  4163 	    q
  4164 	  }
  4165 	  /^X\/\(\/\/\)$/{
  4166 	    s//\1/
  4167 	    q
  4168 	  }
  4169 	  /^X\/\(\/\).*/{
  4170 	    s//\1/
  4171 	    q
  4172 	  }
  4173 	  s/.*/./; q'`
  4174 
  4175 # CDPATH.
  4176 $as_unset CDPATH
  4177 
  4178 
  4179 
  4180   as_lineno_1=$LINENO
  4181   as_lineno_2=$LINENO
  4182   test "x$as_lineno_1" != "x$as_lineno_2" &&
  4183   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  4184 
  4185   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4186   # uniformly replaced by the line number.  The first 'sed' inserts a
  4187   # line-number line after each line using $LINENO; the second 'sed'
  4188   # does the real work.  The second script uses 'N' to pair each
  4189   # line-number line with the line containing $LINENO, and appends
  4190   # trailing '-' during substitution so that $LINENO is not a special
  4191   # case at line end.
  4192   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4193   # scripts with optimization help from Paolo Bonzini.  Blame Lee
  4194   # E. McMahon (1931-1989) for sed's syntax.  :-)
  4195   sed -n '
  4196     p
  4197     /[$]LINENO/=
  4198   ' <$as_myself |
  4199     sed '
  4200       s/[$]LINENO.*/&-/
  4201       t lineno
  4202       b
  4203       :lineno
  4204       N
  4205       :loop
  4206       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4207       t loop
  4208       s/-\n.*//
  4209     ' >$as_me.lineno &&
  4210   chmod +x "$as_me.lineno" ||
  4211     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  4212    { (exit 1); exit 1; }; }
  4213 
  4214   # Don't try to exec as it changes $[0], causing all sort of problems
  4215   # (the dirname of $[0] is not the place where we might find the
  4216   # original and so on.  Autoconf is especially sensitive to this).
  4217   . "./$as_me.lineno"
  4218   # Exit status is that of the last command.
  4219   exit
  4220 }
  4221 
  4222 
  4223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4224   as_dirname=dirname
  4225 else
  4226   as_dirname=false
  4227 fi
  4228 
  4229 ECHO_C= ECHO_N= ECHO_T=
  4230 case `echo -n x` in
  4231 -n*)
  4232   case `echo 'x\c'` in
  4233   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  4234   *)   ECHO_C='\c';;
  4235   esac;;
  4236 *)
  4237   ECHO_N='-n';;
  4238 esac
  4239 
  4240 if expr a : '\(a\)' >/dev/null 2>&1 &&
  4241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4242   as_expr=expr
  4243 else
  4244   as_expr=false
  4245 fi
  4246 
  4247 rm -f conf$$ conf$$.exe conf$$.file
  4248 if test -d conf$$.dir; then
  4249   rm -f conf$$.dir/conf$$.file
  4250 else
  4251   rm -f conf$$.dir
  4252   mkdir conf$$.dir
  4253 fi
  4254 echo >conf$$.file
  4255 if ln -s conf$$.file conf$$ 2>/dev/null; then
  4256   as_ln_s='ln -s'
  4257   # ... but there are two gotchas:
  4258   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4259   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4260   # In both cases, we have to default to `cp -p'.
  4261   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4262     as_ln_s='cp -p'
  4263 elif ln conf$$.file conf$$ 2>/dev/null; then
  4264   as_ln_s=ln
  4265 else
  4266   as_ln_s='cp -p'
  4267 fi
  4268 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4269 rmdir conf$$.dir 2>/dev/null
  4270 
  4271 if mkdir -p . 2>/dev/null; then
  4272   as_mkdir_p=:
  4273 else
  4274   test -d ./-p && rmdir ./-p
  4275   as_mkdir_p=false
  4276 fi
  4277 
  4278 if test -x / >/dev/null 2>&1; then
  4279   as_test_x='test -x'
  4280 else
  4281   if ls -dL / >/dev/null 2>&1; then
  4282     as_ls_L_option=L
  4283   else
  4284     as_ls_L_option=
  4285   fi
  4286   as_test_x='
  4287     eval sh -c '\''
  4288       if test -d "$1"; then
  4289         test -d "$1/.";
  4290       else
  4291 	case $1 in
  4292         -*)set "./$1";;
  4293 	esac;
  4294 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4295 	???[sx]*):;;*)false;;esac;fi
  4296     '\'' sh
  4297   '
  4298 fi
  4299 as_executable_p=$as_test_x
  4300 
  4301 # Sed expression to map a string onto a valid CPP name.
  4302 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4303 
  4304 # Sed expression to map a string onto a valid variable name.
  4305 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4306 
  4307 
  4308 exec 6>&1
  4309 
  4310 # Save the log message, to keep $[0] and so on meaningful, and to
  4311 # report actual input values of CONFIG_FILES etc. instead of their
  4312 # values after options handling.
  4313 ac_log="
  4314 This file was extended by $as_me, which was
  4315 generated by GNU Autoconf 2.61.  Invocation command line was
  4316 
  4317   CONFIG_FILES    = $CONFIG_FILES
  4318   CONFIG_HEADERS  = $CONFIG_HEADERS
  4319   CONFIG_LINKS    = $CONFIG_LINKS
  4320   CONFIG_COMMANDS = $CONFIG_COMMANDS
  4321   $ $0 $@
  4322 
  4323 on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4324 "
  4325 
  4326 _ACEOF
  4327 
  4328 cat >>$CONFIG_STATUS <<_ACEOF
  4329 # Files that config.status was made for.
  4330 config_files="$ac_config_files"
  4331 
  4332 _ACEOF
  4333 
  4334 cat >>$CONFIG_STATUS <<\_ACEOF
  4335 ac_cs_usage="\
  4336 \`$as_me' instantiates files from templates according to the
  4337 current configuration.
  4338 
  4339 Usage: $0 [OPTIONS] [FILE]...
  4340 
  4341   -h, --help       print this help, then exit
  4342   -V, --version    print version number and configuration settings, then exit
  4343   -q, --quiet      do not print progress messages
  4344   -d, --debug      don't remove temporary files
  4345       --recheck    update $as_me by reconfiguring in the same conditions
  4346   --file=FILE[:TEMPLATE]
  4347 		   instantiate the configuration file FILE
  4348 
  4349 Configuration files:
  4350 $config_files
  4351 
  4352 Report bugs to <bug-autoconf@gnu.org>."
  4353 
  4354 _ACEOF
  4355 cat >>$CONFIG_STATUS <<_ACEOF
  4356 ac_cs_version="\\
  4357 config.status
  4358 configured by $0, generated by GNU Autoconf 2.61,
  4359   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4360 
  4361 Copyright (C) 2006 Free Software Foundation, Inc.
  4362 This config.status script is free software; the Free Software Foundation
  4363 gives unlimited permission to copy, distribute and modify it."
  4364 
  4365 ac_pwd='$ac_pwd'
  4366 srcdir='$srcdir'
  4367 _ACEOF
  4368 
  4369 cat >>$CONFIG_STATUS <<\_ACEOF
  4370 # If no file are specified by the user, then we need to provide default
  4371 # value.  By we need to know if files were specified by the user.
  4372 ac_need_defaults=:
  4373 while test $# != 0
  4374 do
  4375   case $1 in
  4376   --*=*)
  4377     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4378     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4379     ac_shift=:
  4380     ;;
  4381   *)
  4382     ac_option=$1
  4383     ac_optarg=$2
  4384     ac_shift=shift
  4385     ;;
  4386   esac
  4387 
  4388   case $ac_option in
  4389   # Handling of the options.
  4390   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4391     ac_cs_recheck=: ;;
  4392   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4393     echo "$ac_cs_version"; exit ;;
  4394   --debug | --debu | --deb | --de | --d | -d )
  4395     debug=: ;;
  4396   --file | --fil | --fi | --f )
  4397     $ac_shift
  4398     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4399     ac_need_defaults=false;;
  4400   --he | --h |  --help | --hel | -h )
  4401     echo "$ac_cs_usage"; exit ;;
  4402   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4403   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4404     ac_cs_silent=: ;;
  4405 
  4406   # This is an error.
  4407   -*) { echo "$as_me: error: unrecognized option: $1
  4408 Try \`$0 --help' for more information." >&2
  4409    { (exit 1); exit 1; }; } ;;
  4410 
  4411   *) ac_config_targets="$ac_config_targets $1"
  4412      ac_need_defaults=false ;;
  4413 
  4414   esac
  4415   shift
  4416 done
  4417 
  4418 ac_configure_extra_args=
  4419 
  4420 if $ac_cs_silent; then
  4421   exec 6>/dev/null
  4422   ac_configure_extra_args="$ac_configure_extra_args --silent"
  4423 fi
  4424 
  4425 _ACEOF
  4426 cat >>$CONFIG_STATUS <<_ACEOF
  4427 if \$ac_cs_recheck; then
  4428   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4429   CONFIG_SHELL=$SHELL
  4430   export CONFIG_SHELL
  4431   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4432 fi
  4433 
  4434 _ACEOF
  4435 cat >>$CONFIG_STATUS <<\_ACEOF
  4436 exec 5>>config.log
  4437 {
  4438   echo
  4439   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4440 ## Running $as_me. ##
  4441 _ASBOX
  4442   echo "$ac_log"
  4443 } >&5
  4444 
  4445 _ACEOF
  4446 cat >>$CONFIG_STATUS <<_ACEOF
  4447 _ACEOF
  4448 
  4449 cat >>$CONFIG_STATUS <<\_ACEOF
  4450 
  4451 # Handling of arguments.
  4452 for ac_config_target in $ac_config_targets
  4453 do
  4454   case $ac_config_target in
  4455     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4456 
  4457   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4458 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4459    { (exit 1); exit 1; }; };;
  4460   esac
  4461 done
  4462 
  4463 
  4464 # If the user did not use the arguments to specify the items to instantiate,
  4465 # then the envvar interface is used.  Set only those that are not.
  4466 # We use the long form for the default assignment because of an extremely
  4467 # bizarre bug on SunOS 4.1.3.
  4468 if $ac_need_defaults; then
  4469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4470 fi
  4471 
  4472 # Have a temporary directory for convenience.  Make it in the build tree
  4473 # simply because there is no reason against having it here, and in addition,
  4474 # creating and moving files from /tmp can sometimes cause problems.
  4475 # Hook for its removal unless debugging.
  4476 # Note that there is a small window in which the directory will not be cleaned:
  4477 # after its creation but before its name has been assigned to `$tmp'.
  4478 $debug ||
  4479 {
  4480   tmp=
  4481   trap 'exit_status=$?
  4482   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4483 ' 0
  4484   trap '{ (exit 1); exit 1; }' 1 2 13 15
  4485 }
  4486 # Create a (secure) tmp directory for tmp files.
  4487 
  4488 {
  4489   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4490   test -n "$tmp" && test -d "$tmp"
  4491 }  ||
  4492 {
  4493   tmp=./conf$$-$RANDOM
  4494   (umask 077 && mkdir "$tmp")
  4495 } ||
  4496 {
  4497    echo "$me: cannot create a temporary directory in ." >&2
  4498    { (exit 1); exit 1; }
  4499 }
  4500 
  4501 #
  4502 # Set up the sed scripts for CONFIG_FILES section.
  4503 #
  4504 
  4505 # No need to generate the scripts if there are no CONFIG_FILES.
  4506 # This happens for instance when ./config.status config.h
  4507 if test -n "$CONFIG_FILES"; then
  4508 
  4509 _ACEOF
  4510 
  4511 
  4512 
  4513 ac_delim='%!_!# '
  4514 for ac_last_try in false false false false false :; do
  4515   cat >conf$$subs.sed <<_ACEOF
  4516 SHELL!$SHELL$ac_delim
  4517 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  4518 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  4519 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  4520 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  4521 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  4522 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  4523 exec_prefix!$exec_prefix$ac_delim
  4524 prefix!$prefix$ac_delim
  4525 program_transform_name!$program_transform_name$ac_delim
  4526 bindir!$bindir$ac_delim
  4527 sbindir!$sbindir$ac_delim
  4528 libexecdir!$libexecdir$ac_delim
  4529 datarootdir!$datarootdir$ac_delim
  4530 datadir!$datadir$ac_delim
  4531 sysconfdir!$sysconfdir$ac_delim
  4532 sharedstatedir!$sharedstatedir$ac_delim
  4533 localstatedir!$localstatedir$ac_delim
  4534 includedir!$includedir$ac_delim
  4535 oldincludedir!$oldincludedir$ac_delim
  4536 docdir!$docdir$ac_delim
  4537 infodir!$infodir$ac_delim
  4538 htmldir!$htmldir$ac_delim
  4539 dvidir!$dvidir$ac_delim
  4540 pdfdir!$pdfdir$ac_delim
  4541 psdir!$psdir$ac_delim
  4542 libdir!$libdir$ac_delim
  4543 localedir!$localedir$ac_delim
  4544 mandir!$mandir$ac_delim
  4545 DEFS!$DEFS$ac_delim
  4546 ECHO_C!$ECHO_C$ac_delim
  4547 ECHO_N!$ECHO_N$ac_delim
  4548 ECHO_T!$ECHO_T$ac_delim
  4549 LIBS!$LIBS$ac_delim
  4550 build_alias!$build_alias$ac_delim
  4551 host_alias!$host_alias$ac_delim
  4552 target_alias!$target_alias$ac_delim
  4553 build!$build$ac_delim
  4554 build_cpu!$build_cpu$ac_delim
  4555 build_vendor!$build_vendor$ac_delim
  4556 build_os!$build_os$ac_delim
  4557 host!$host$ac_delim
  4558 host_cpu!$host_cpu$ac_delim
  4559 host_vendor!$host_vendor$ac_delim
  4560 host_os!$host_os$ac_delim
  4561 CC!$CC$ac_delim
  4562 CFLAGS!$CFLAGS$ac_delim
  4563 LDFLAGS!$LDFLAGS$ac_delim
  4564 CPPFLAGS!$CPPFLAGS$ac_delim
  4565 ac_ct_CC!$ac_ct_CC$ac_delim
  4566 EXEEXT!$EXEEXT$ac_delim
  4567 OBJEXT!$OBJEXT$ac_delim
  4568 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
  4569 EXE!$EXE$ac_delim
  4570 MATHLIB!$MATHLIB$ac_delim
  4571 SDL_CONFIG!$SDL_CONFIG$ac_delim
  4572 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
  4573 SDL_LIBS!$SDL_LIBS$ac_delim
  4574 XMKMF!$XMKMF$ac_delim
  4575 CPP!$CPP$ac_delim
  4576 GLLIB!$GLLIB$ac_delim
  4577 SDL_TTF_LIB!$SDL_TTF_LIB$ac_delim
  4578 LIBOBJS!$LIBOBJS$ac_delim
  4579 LTLIBOBJS!$LTLIBOBJS$ac_delim
  4580 _ACEOF
  4581 
  4582   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
  4583     break
  4584   elif $ac_last_try; then
  4585     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4587    { (exit 1); exit 1; }; }
  4588   else
  4589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4590   fi
  4591 done
  4592 
  4593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4594 if test -n "$ac_eof"; then
  4595   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4596   ac_eof=`expr $ac_eof + 1`
  4597 fi
  4598 
  4599 cat >>$CONFIG_STATUS <<_ACEOF
  4600 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4602 _ACEOF
  4603 sed '
  4604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4605 s/^/s,@/; s/!/@,|#_!!_#|/
  4606 :n
  4607 t n
  4608 s/'"$ac_delim"'$/,g/; t
  4609 s/$/\\/; p
  4610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4611 ' >>$CONFIG_STATUS <conf$$subs.sed
  4612 rm -f conf$$subs.sed
  4613 cat >>$CONFIG_STATUS <<_ACEOF
  4614 :end
  4615 s/|#_!!_#|//g
  4616 CEOF$ac_eof
  4617 _ACEOF
  4618 
  4619 
  4620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4622 # trailing colons and then remove the whole line if VPATH becomes empty
  4623 # (actually we leave an empty line to preserve line numbers).
  4624 if test "x$srcdir" = x.; then
  4625   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
  4626 s/:*\$(srcdir):*/:/
  4627 s/:*\${srcdir}:*/:/
  4628 s/:*@srcdir@:*/:/
  4629 s/^\([^=]*=[	 ]*\):*/\1/
  4630 s/:*$//
  4631 s/^[^=]*=[	 ]*$//
  4632 }'
  4633 fi
  4634 
  4635 cat >>$CONFIG_STATUS <<\_ACEOF
  4636 fi # test -n "$CONFIG_FILES"
  4637 
  4638 
  4639 for ac_tag in  :F $CONFIG_FILES
  4640 do
  4641   case $ac_tag in
  4642   :[FHLC]) ac_mode=$ac_tag; continue;;
  4643   esac
  4644   case $ac_mode$ac_tag in
  4645   :[FHL]*:*);;
  4646   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4648    { (exit 1); exit 1; }; };;
  4649   :[FH]-) ac_tag=-:-;;
  4650   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4651   esac
  4652   ac_save_IFS=$IFS
  4653   IFS=:
  4654   set x $ac_tag
  4655   IFS=$ac_save_IFS
  4656   shift
  4657   ac_file=$1
  4658   shift
  4659 
  4660   case $ac_mode in
  4661   :L) ac_source=$1;;
  4662   :[FH])
  4663     ac_file_inputs=
  4664     for ac_f
  4665     do
  4666       case $ac_f in
  4667       -) ac_f="$tmp/stdin";;
  4668       *) # Look for the file first in the build tree, then in the source tree
  4669 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  4670 	 # because $ac_f cannot contain `:'.
  4671 	 test -f "$ac_f" ||
  4672 	   case $ac_f in
  4673 	   [\\/$]*) false;;
  4674 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4675 	   esac ||
  4676 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4678    { (exit 1); exit 1; }; };;
  4679       esac
  4680       ac_file_inputs="$ac_file_inputs $ac_f"
  4681     done
  4682 
  4683     # Let's still pretend it is `configure' which instantiates (i.e., don't
  4684     # use $as_me), people would be surprised to read:
  4685     #    /* config.h.  Generated by config.status.  */
  4686     configure_input="Generated from "`IFS=:
  4687 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4688     if test x"$ac_file" != x-; then
  4689       configure_input="$ac_file.  $configure_input"
  4690       { echo "$as_me:$LINENO: creating $ac_file" >&5
  4691 echo "$as_me: creating $ac_file" >&6;}
  4692     fi
  4693 
  4694     case $ac_tag in
  4695     *:-:* | *:-) cat >"$tmp/stdin";;
  4696     esac
  4697     ;;
  4698   esac
  4699 
  4700   ac_dir=`$as_dirname -- "$ac_file" ||
  4701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4702 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  4703 	 X"$ac_file" : 'X\(//\)$' \| \
  4704 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4705 echo X"$ac_file" |
  4706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4707 	    s//\1/
  4708 	    q
  4709 	  }
  4710 	  /^X\(\/\/\)[^/].*/{
  4711 	    s//\1/
  4712 	    q
  4713 	  }
  4714 	  /^X\(\/\/\)$/{
  4715 	    s//\1/
  4716 	    q
  4717 	  }
  4718 	  /^X\(\/\).*/{
  4719 	    s//\1/
  4720 	    q
  4721 	  }
  4722 	  s/.*/./; q'`
  4723   { as_dir="$ac_dir"
  4724   case $as_dir in #(
  4725   -*) as_dir=./$as_dir;;
  4726   esac
  4727   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4728     as_dirs=
  4729     while :; do
  4730       case $as_dir in #(
  4731       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4732       *) as_qdir=$as_dir;;
  4733       esac
  4734       as_dirs="'$as_qdir' $as_dirs"
  4735       as_dir=`$as_dirname -- "$as_dir" ||
  4736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4737 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  4738 	 X"$as_dir" : 'X\(//\)$' \| \
  4739 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4740 echo X"$as_dir" |
  4741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4742 	    s//\1/
  4743 	    q
  4744 	  }
  4745 	  /^X\(\/\/\)[^/].*/{
  4746 	    s//\1/
  4747 	    q
  4748 	  }
  4749 	  /^X\(\/\/\)$/{
  4750 	    s//\1/
  4751 	    q
  4752 	  }
  4753 	  /^X\(\/\).*/{
  4754 	    s//\1/
  4755 	    q
  4756 	  }
  4757 	  s/.*/./; q'`
  4758       test -d "$as_dir" && break
  4759     done
  4760     test -z "$as_dirs" || eval "mkdir $as_dirs"
  4761   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4763    { (exit 1); exit 1; }; }; }
  4764   ac_builddir=.
  4765 
  4766 case "$ac_dir" in
  4767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4768 *)
  4769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4770   # A ".." for each directory in $ac_dir_suffix.
  4771   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  4772   case $ac_top_builddir_sub in
  4773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4775   esac ;;
  4776 esac
  4777 ac_abs_top_builddir=$ac_pwd
  4778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4779 # for backward compatibility:
  4780 ac_top_builddir=$ac_top_build_prefix
  4781 
  4782 case $srcdir in
  4783   .)  # We are building in place.
  4784     ac_srcdir=.
  4785     ac_top_srcdir=$ac_top_builddir_sub
  4786     ac_abs_top_srcdir=$ac_pwd ;;
  4787   [\\/]* | ?:[\\/]* )  # Absolute name.
  4788     ac_srcdir=$srcdir$ac_dir_suffix;
  4789     ac_top_srcdir=$srcdir
  4790     ac_abs_top_srcdir=$srcdir ;;
  4791   *) # Relative name.
  4792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4793     ac_top_srcdir=$ac_top_build_prefix$srcdir
  4794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4795 esac
  4796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4797 
  4798 
  4799   case $ac_mode in
  4800   :F)
  4801   #
  4802   # CONFIG_FILE
  4803   #
  4804 
  4805 _ACEOF
  4806 
  4807 cat >>$CONFIG_STATUS <<\_ACEOF
  4808 # If the template does not know about datarootdir, expand it.
  4809 # FIXME: This hack should be removed a few years after 2.60.
  4810 ac_datarootdir_hack=; ac_datarootdir_seen=
  4811 
  4812 case `sed -n '/datarootdir/ {
  4813   p
  4814   q
  4815 }
  4816 /@datadir@/p
  4817 /@docdir@/p
  4818 /@infodir@/p
  4819 /@localedir@/p
  4820 /@mandir@/p
  4821 ' $ac_file_inputs` in
  4822 *datarootdir*) ac_datarootdir_seen=yes;;
  4823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4824   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4825 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4826 _ACEOF
  4827 cat >>$CONFIG_STATUS <<_ACEOF
  4828   ac_datarootdir_hack='
  4829   s&@datadir@&$datadir&g
  4830   s&@docdir@&$docdir&g
  4831   s&@infodir@&$infodir&g
  4832   s&@localedir@&$localedir&g
  4833   s&@mandir@&$mandir&g
  4834     s&\\\${datarootdir}&$datarootdir&g' ;;
  4835 esac
  4836 _ACEOF
  4837 
  4838 # Neutralize VPATH when `$srcdir' = `.'.
  4839 # Shell code in configure.ac might set extrasub.
  4840 # FIXME: do we really want to maintain this feature?
  4841 cat >>$CONFIG_STATUS <<_ACEOF
  4842   sed "$ac_vpsub
  4843 $extrasub
  4844 _ACEOF
  4845 cat >>$CONFIG_STATUS <<\_ACEOF
  4846 :t
  4847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4848 s&@configure_input@&$configure_input&;t t
  4849 s&@top_builddir@&$ac_top_builddir_sub&;t t
  4850 s&@srcdir@&$ac_srcdir&;t t
  4851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4852 s&@top_srcdir@&$ac_top_srcdir&;t t
  4853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4854 s&@builddir@&$ac_builddir&;t t
  4855 s&@abs_builddir@&$ac_abs_builddir&;t t
  4856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4857 $ac_datarootdir_hack
  4858 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  4859 
  4860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4861   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  4862   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  4863   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4864 which seems to be undefined.  Please make sure it is defined." >&5
  4865 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4866 which seems to be undefined.  Please make sure it is defined." >&2;}
  4867 
  4868   rm -f "$tmp/stdin"
  4869   case $ac_file in
  4870   -) cat "$tmp/out"; rm -f "$tmp/out";;
  4871   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  4872   esac
  4873  ;;
  4874 
  4875 
  4876 
  4877   esac
  4878 
  4879 done # for ac_tag
  4880 
  4881 
  4882 { (exit 0); exit 0; }
  4883 _ACEOF
  4884 chmod +x $CONFIG_STATUS
  4885 ac_clean_files=$ac_clean_files_save
  4886 
  4887 
  4888 # configure is writing to config.log, and then calls config.status.
  4889 # config.status does its own redirection, appending to config.log.
  4890 # Unfortunately, on DOS this fails, as config.log is still kept open
  4891 # by configure, so config.status won't be able to write to it; its
  4892 # output is simply discarded.  So we exec the FD to /dev/null,
  4893 # effectively closing config.log, so it can be properly (re)opened and
  4894 # appended to by config.status.  When coming back to configure, we
  4895 # need to make the FD available again.
  4896 if test "$no_create" != yes; then
  4897   ac_cs_success=:
  4898   ac_config_status_args=
  4899   test "$silent" = yes &&
  4900     ac_config_status_args="$ac_config_status_args --quiet"
  4901   exec 5>/dev/null
  4902   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4903   exec 5>>config.log
  4904   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4905   # would make configure fail if this is the last instruction.
  4906   $ac_cs_success || { (exit 1); exit 1; }
  4907 fi
  4908