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