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