sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

configure (148775B)


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