test/configure
author Ryan C. Gordon <icculus@icculus.org>
Sun, 27 Aug 2017 22:15:57 -0400
changeset 11365 a9bd2625fa01
parent 10924 abfe0c4d98ac
child 11369 78b2c58e31da
permissions -rwxr-xr-x
vulkan: Initial Vulkan support!

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