test/configure
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Jul 2013 12:47:47 -0700
changeset 7495 c4ba5e5c2765
parent 6785 c094c438c0a6
child 7703 982abfefd19d
permissions -rwxr-xr-x
Fixed bug 1973 - test/Makefile.in fails on Mac OS X with X11 enabled...

Ryan C. Gordon

If you have the X11 SDK installed on Mac OS X, you'll build with X11 support, but the Makefile doesn't build anything but the Cocoa testnative code for Mac OS X, which is fine, but then testnative fails to link because testnative.h enables the X11 support based on the SDL config header.

Building the testnativex11.c code on Mac OS X doesn't work because you need to explicitly link with "-L/usr/X11/lib -lX11" if this code is enabled, but you can't link with that by default because the X11 SDK might be missing.

So this needs a little configure magic to do the right thing (or forcibly disabling X11 support on Mac OS X in testnative.h).
slouken@5310
     1
#! /bin/sh
slouken@5310
     2
# Guess values for system-dependent variables and create Makefiles.
slouken@6785
     3
# Generated by GNU Autoconf 2.69.
slouken@6689
     4
#
icculus@6390
     5
#
slouken@6785
     6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
slouken@6689
     7
#
slouken@6689
     8
#
slouken@5310
     9
# This configure script is free software; the Free Software Foundation
slouken@5310
    10
# gives unlimited permission to copy, distribute and modify it.
slouken@6689
    11
## -------------------- ##
slouken@6689
    12
## M4sh Initialization. ##
slouken@6689
    13
## -------------------- ##
slouken@5310
    14
slouken@5310
    15
# Be more Bourne compatible
slouken@5310
    16
DUALCASE=1; export DUALCASE # for MKS sh
slouken@6689
    17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
slouken@5310
    18
  emulate sh
slouken@5310
    19
  NULLCMD=:
slouken@6689
    20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
slouken@5310
    21
  # is contrary to our usage.  Disable this feature.
slouken@5310
    22
  alias -g '${1+"$@"}'='"$@"'
slouken@5310
    23
  setopt NO_GLOB_SUBST
slouken@5310
    24
else
slouken@6689
    25
  case `(set -o) 2>/dev/null` in #(
slouken@6689
    26
  *posix*) :
slouken@6689
    27
    set -o posix ;; #(
slouken@6689
    28
  *) :
slouken@6689
    29
     ;;
slouken@5310
    30
esac
slouken@5310
    31
fi
slouken@5310
    32
slouken@5310
    33
slouken@6689
    34
as_nl='
slouken@6689
    35
'
slouken@6689
    36
export as_nl
slouken@6689
    37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
slouken@6689
    38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
slouken@6689
    39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
slouken@6689
    40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
slouken@6689
    41
# Prefer a ksh shell builtin over an external printf program on Solaris,
slouken@6689
    42
# but without wasting forks for bash or zsh.
slouken@6689
    43
if test -z "$BASH_VERSION$ZSH_VERSION" \
slouken@6689
    44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
slouken@6689
    45
  as_echo='print -r --'
slouken@6689
    46
  as_echo_n='print -rn --'
slouken@6689
    47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
slouken@6689
    48
  as_echo='printf %s\n'
slouken@6689
    49
  as_echo_n='printf %s'
slouken@6689
    50
else
slouken@6689
    51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
slouken@6689
    52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
slouken@6689
    53
    as_echo_n='/usr/ucb/echo -n'
slouken@6689
    54
  else
slouken@6689
    55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
slouken@6689
    56
    as_echo_n_body='eval
slouken@6689
    57
      arg=$1;
slouken@6689
    58
      case $arg in #(
slouken@6689
    59
      *"$as_nl"*)
slouken@6689
    60
	expr "X$arg" : "X\\(.*\\)$as_nl";
slouken@6689
    61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
slouken@6689
    62
      esac;
slouken@6689
    63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
slouken@6689
    64
    '
slouken@6689
    65
    export as_echo_n_body
slouken@6689
    66
    as_echo_n='sh -c $as_echo_n_body as_echo'
slouken@6689
    67
  fi
slouken@6689
    68
  export as_echo_body
slouken@6689
    69
  as_echo='sh -c $as_echo_body as_echo'
slouken@6689
    70
fi
slouken@5310
    71
slouken@5310
    72
# The user is always right.
slouken@5310
    73
if test "${PATH_SEPARATOR+set}" != set; then
slouken@6689
    74
  PATH_SEPARATOR=:
slouken@6689
    75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
slouken@6689
    76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
slouken@6689
    77
      PATH_SEPARATOR=';'
slouken@6689
    78
  }
slouken@5310
    79
fi
slouken@5310
    80
slouken@5310
    81
slouken@5310
    82
# IFS
slouken@5310
    83
# We need space, tab and new line, in precisely that order.  Quoting is
slouken@5310
    84
# there to prevent editors from complaining about space-tab.
slouken@5310
    85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
slouken@5310
    86
# splitting by setting IFS to empty value.)
slouken@5310
    87
IFS=" ""	$as_nl"
slouken@5310
    88
slouken@5310
    89
# Find who we are.  Look in the path if we contain no directory separator.
slouken@6689
    90
as_myself=
slouken@6689
    91
case $0 in #((
slouken@5310
    92
  *[\\/]* ) as_myself=$0 ;;
slouken@5310
    93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
    94
for as_dir in $PATH
slouken@5310
    95
do
slouken@5310
    96
  IFS=$as_save_IFS
slouken@5310
    97
  test -z "$as_dir" && as_dir=.
slouken@6689
    98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
slouken@6689
    99
  done
slouken@5310
   100
IFS=$as_save_IFS
slouken@5310
   101
slouken@5310
   102
     ;;
slouken@5310
   103
esac
slouken@5310
   104
# We did not find ourselves, most probably we were run as `sh COMMAND'
slouken@5310
   105
# in which case we are not to be found in the path.
slouken@5310
   106
if test "x$as_myself" = x; then
slouken@5310
   107
  as_myself=$0
slouken@5310
   108
fi
slouken@5310
   109
if test ! -f "$as_myself"; then
slouken@6689
   110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
slouken@6689
   111
  exit 1
slouken@5310
   112
fi
slouken@5310
   113
slouken@6689
   114
# Unset variables that we do not need and which cause bugs (e.g. in
slouken@6689
   115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
slouken@6689
   116
# suppresses any "Segmentation fault" message there.  '((' could
slouken@6689
   117
# trigger a bug in pdksh 5.2.14.
slouken@6689
   118
for as_var in BASH_ENV ENV MAIL MAILPATH
slouken@6689
   119
do eval test x\${$as_var+set} = xset \
slouken@6689
   120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
slouken@5310
   121
done
slouken@5310
   122
PS1='$ '
slouken@5310
   123
PS2='> '
slouken@5310
   124
PS4='+ '
slouken@5310
   125
slouken@5310
   126
# NLS nuisances.
slouken@6689
   127
LC_ALL=C
slouken@6689
   128
export LC_ALL
slouken@6689
   129
LANGUAGE=C
slouken@6689
   130
export LANGUAGE
slouken@6689
   131
slouken@6689
   132
# CDPATH.
slouken@6689
   133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
slouken@6689
   134
slouken@6785
   135
# Use a proper internal environment variable to ensure we don't fall
slouken@6785
   136
  # into an infinite loop, continuously re-executing ourselves.
slouken@6785
   137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
slouken@6785
   138
    _as_can_reexec=no; export _as_can_reexec;
slouken@6785
   139
    # We cannot yet assume a decent shell, so we have to provide a
slouken@6785
   140
# neutralization value for shells without unset; and this also
slouken@6785
   141
# works around shells that cannot unset nonexistent variables.
slouken@6785
   142
# Preserve -v and -x to the replacement shell.
slouken@6785
   143
BASH_ENV=/dev/null
slouken@6785
   144
ENV=/dev/null
slouken@6785
   145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
slouken@6785
   146
case $- in # ((((
slouken@6785
   147
  *v*x* | *x*v* ) as_opts=-vx ;;
slouken@6785
   148
  *v* ) as_opts=-v ;;
slouken@6785
   149
  *x* ) as_opts=-x ;;
slouken@6785
   150
  * ) as_opts= ;;
slouken@6785
   151
esac
slouken@6785
   152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
slouken@6785
   153
# Admittedly, this is quite paranoid, since all the known shells bail
slouken@6785
   154
# out after a failed `exec'.
slouken@6785
   155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
slouken@6785
   156
as_fn_exit 255
slouken@6785
   157
  fi
slouken@6785
   158
  # We don't want this to propagate to other subprocesses.
slouken@6785
   159
          { _as_can_reexec=; unset _as_can_reexec;}
slouken@6689
   160
if test "x$CONFIG_SHELL" = x; then
slouken@6689
   161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
slouken@6689
   162
  emulate sh
slouken@6689
   163
  NULLCMD=:
slouken@6689
   164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
slouken@6689
   165
  # is contrary to our usage.  Disable this feature.
slouken@6689
   166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
slouken@6689
   167
  setopt NO_GLOB_SUBST
slouken@6689
   168
else
slouken@6689
   169
  case \`(set -o) 2>/dev/null\` in #(
slouken@6689
   170
  *posix*) :
slouken@6689
   171
    set -o posix ;; #(
slouken@6689
   172
  *) :
slouken@6689
   173
     ;;
slouken@6689
   174
esac
slouken@6689
   175
fi
slouken@6689
   176
"
slouken@6689
   177
  as_required="as_fn_return () { (exit \$1); }
slouken@6689
   178
as_fn_success () { as_fn_return 0; }
slouken@6689
   179
as_fn_failure () { as_fn_return 1; }
slouken@6689
   180
as_fn_ret_success () { return 0; }
slouken@6689
   181
as_fn_ret_failure () { return 1; }
slouken@6689
   182
slouken@6689
   183
exitcode=0
slouken@6689
   184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
slouken@6689
   185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
slouken@6689
   186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
slouken@6689
   187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
slouken@6689
   188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
slouken@6689
   189
slouken@6689
   190
else
slouken@6689
   191
  exitcode=1; echo positional parameters were not saved.
slouken@6689
   192
fi
slouken@6785
   193
test x\$exitcode = x0 || exit 1
slouken@6785
   194
test -x / || exit 1"
slouken@6689
   195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
slouken@6689
   196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
slouken@6689
   197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
slouken@6689
   198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
slouken@6689
   199
  if (eval "$as_required") 2>/dev/null; then :
slouken@6689
   200
  as_have_required=yes
slouken@6689
   201
else
slouken@6689
   202
  as_have_required=no
slouken@6689
   203
fi
slouken@6689
   204
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
slouken@6689
   205
slouken@6689
   206
else
slouken@6689
   207
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@6689
   208
as_found=false
slouken@6689
   209
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
slouken@6688
   210
do
slouken@6689
   211
  IFS=$as_save_IFS
slouken@6689
   212
  test -z "$as_dir" && as_dir=.
slouken@6689
   213
  as_found=:
slouken@6689
   214
  case $as_dir in #(
slouken@6689
   215
	 /*)
slouken@6689
   216
	   for as_base in sh bash ksh sh5; do
slouken@6689
   217
	     # Try only shells that exist, to save several forks.
slouken@6689
   218
	     as_shell=$as_dir/$as_base
slouken@6689
   219
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
slouken@6689
   220
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
slouken@6689
   221
  CONFIG_SHELL=$as_shell as_have_required=yes
slouken@6689
   222
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
slouken@6689
   223
  break 2
slouken@6689
   224
fi
slouken@6689
   225
fi
slouken@6689
   226
	   done;;
slouken@6689
   227
       esac
slouken@6689
   228
  as_found=false
slouken@6689
   229
done
slouken@6689
   230
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
slouken@6689
   231
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
slouken@6689
   232
  CONFIG_SHELL=$SHELL as_have_required=yes
slouken@6689
   233
fi; }
slouken@6689
   234
IFS=$as_save_IFS
slouken@6689
   235
slouken@6689
   236
slouken@6689
   237
      if test "x$CONFIG_SHELL" != x; then :
slouken@6785
   238
  export CONFIG_SHELL
slouken@6785
   239
             # We cannot yet assume a decent shell, so we have to provide a
slouken@6785
   240
# neutralization value for shells without unset; and this also
slouken@6785
   241
# works around shells that cannot unset nonexistent variables.
slouken@6785
   242
# Preserve -v and -x to the replacement shell.
slouken@6785
   243
BASH_ENV=/dev/null
slouken@6785
   244
ENV=/dev/null
slouken@6785
   245
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
slouken@6785
   246
case $- in # ((((
slouken@6785
   247
  *v*x* | *x*v* ) as_opts=-vx ;;
slouken@6785
   248
  *v* ) as_opts=-v ;;
slouken@6785
   249
  *x* ) as_opts=-x ;;
slouken@6785
   250
  * ) as_opts= ;;
slouken@6785
   251
esac
slouken@6785
   252
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
slouken@6785
   253
# Admittedly, this is quite paranoid, since all the known shells bail
slouken@6785
   254
# out after a failed `exec'.
slouken@6785
   255
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
slouken@6785
   256
exit 255
slouken@6689
   257
fi
slouken@6689
   258
slouken@6689
   259
    if test x$as_have_required = xno; then :
slouken@6689
   260
  $as_echo "$0: This script requires a shell more modern than all"
slouken@6689
   261
  $as_echo "$0: the shells that I found on your system."
slouken@6689
   262
  if test x${ZSH_VERSION+set} = xset ; then
slouken@6689
   263
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
slouken@6689
   264
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
slouken@6688
   265
  else
slouken@6689
   266
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
slouken@6689
   267
$0: including any error possibly output before this
slouken@6689
   268
$0: message. Then install a modern shell, or manually run
slouken@6689
   269
$0: the script under such a shell if you do have one."
slouken@6606
   270
  fi
slouken@6689
   271
  exit 1
slouken@6689
   272
fi
slouken@6689
   273
fi
slouken@6689
   274
fi
slouken@6689
   275
SHELL=${CONFIG_SHELL-/bin/sh}
slouken@6689
   276
export SHELL
slouken@6689
   277
# Unset more variables known to interfere with behavior of common tools.
slouken@6689
   278
CLICOLOR_FORCE= GREP_OPTIONS=
slouken@6689
   279
unset CLICOLOR_FORCE GREP_OPTIONS
slouken@6689
   280
slouken@6689
   281
## --------------------- ##
slouken@6689
   282
## M4sh Shell Functions. ##
slouken@6689
   283
## --------------------- ##
slouken@6689
   284
# as_fn_unset VAR
slouken@6689
   285
# ---------------
slouken@6689
   286
# Portably unset VAR.
slouken@6689
   287
as_fn_unset ()
slouken@6689
   288
{
slouken@6689
   289
  { eval $1=; unset $1;}
slouken@6689
   290
}
slouken@6689
   291
as_unset=as_fn_unset
slouken@6689
   292
slouken@6689
   293
# as_fn_set_status STATUS
slouken@6689
   294
# -----------------------
slouken@6689
   295
# Set $? to STATUS, without forking.
slouken@6689
   296
as_fn_set_status ()
slouken@6689
   297
{
slouken@6689
   298
  return $1
slouken@6689
   299
} # as_fn_set_status
slouken@6689
   300
slouken@6689
   301
# as_fn_exit STATUS
slouken@6689
   302
# -----------------
slouken@6689
   303
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
slouken@6689
   304
as_fn_exit ()
slouken@6689
   305
{
slouken@6689
   306
  set +e
slouken@6689
   307
  as_fn_set_status $1
slouken@6689
   308
  exit $1
slouken@6689
   309
} # as_fn_exit
slouken@6689
   310
slouken@6689
   311
# as_fn_mkdir_p
slouken@6689
   312
# -------------
slouken@6689
   313
# Create "$as_dir" as a directory, including parents if necessary.
slouken@6689
   314
as_fn_mkdir_p ()
slouken@6689
   315
{
slouken@6689
   316
slouken@6689
   317
  case $as_dir in #(
slouken@6689
   318
  -*) as_dir=./$as_dir;;
slouken@6689
   319
  esac
slouken@6689
   320
  test -d "$as_dir" || eval $as_mkdir_p || {
slouken@6689
   321
    as_dirs=
slouken@6689
   322
    while :; do
slouken@6689
   323
      case $as_dir in #(
slouken@6689
   324
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
slouken@6689
   325
      *) as_qdir=$as_dir;;
slouken@6689
   326
      esac
slouken@6689
   327
      as_dirs="'$as_qdir' $as_dirs"
slouken@6689
   328
      as_dir=`$as_dirname -- "$as_dir" ||
slouken@6689
   329
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
slouken@6689
   330
	 X"$as_dir" : 'X\(//\)[^/]' \| \
slouken@6689
   331
	 X"$as_dir" : 'X\(//\)$' \| \
slouken@6689
   332
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
slouken@6689
   333
$as_echo X"$as_dir" |
slouken@6689
   334
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
slouken@6689
   335
	    s//\1/
slouken@6689
   336
	    q
slouken@6689
   337
	  }
slouken@6689
   338
	  /^X\(\/\/\)[^/].*/{
slouken@6689
   339
	    s//\1/
slouken@6689
   340
	    q
slouken@6689
   341
	  }
slouken@6689
   342
	  /^X\(\/\/\)$/{
slouken@6689
   343
	    s//\1/
slouken@6689
   344
	    q
slouken@6689
   345
	  }
slouken@6689
   346
	  /^X\(\/\).*/{
slouken@6689
   347
	    s//\1/
slouken@6689
   348
	    q
slouken@6689
   349
	  }
slouken@6689
   350
	  s/.*/./; q'`
slouken@6689
   351
      test -d "$as_dir" && break
slouken@6689
   352
    done
slouken@6689
   353
    test -z "$as_dirs" || eval "mkdir $as_dirs"
slouken@6689
   354
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
slouken@6689
   355
slouken@6689
   356
slouken@6689
   357
} # as_fn_mkdir_p
slouken@6785
   358
slouken@6785
   359
# as_fn_executable_p FILE
slouken@6785
   360
# -----------------------
slouken@6785
   361
# Test if FILE is an executable regular file.
slouken@6785
   362
as_fn_executable_p ()
slouken@6785
   363
{
slouken@6785
   364
  test -f "$1" && test -x "$1"
slouken@6785
   365
} # as_fn_executable_p
slouken@6689
   366
# as_fn_append VAR VALUE
slouken@6689
   367
# ----------------------
slouken@6689
   368
# Append the text in VALUE to the end of the definition contained in VAR. Take
slouken@6689
   369
# advantage of any shell optimizations that allow amortized linear growth over
slouken@6689
   370
# repeated appends, instead of the typical quadratic growth present in naive
slouken@6689
   371
# implementations.
slouken@6689
   372
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
slouken@6689
   373
  eval 'as_fn_append ()
slouken@6689
   374
  {
slouken@6689
   375
    eval $1+=\$2
slouken@6689
   376
  }'
slouken@6689
   377
else
slouken@6689
   378
  as_fn_append ()
slouken@6689
   379
  {
slouken@6689
   380
    eval $1=\$$1\$2
slouken@6689
   381
  }
slouken@6689
   382
fi # as_fn_append
slouken@6689
   383
slouken@6689
   384
# as_fn_arith ARG...
slouken@6689
   385
# ------------------
slouken@6689
   386
# Perform arithmetic evaluation on the ARGs, and store the result in the
slouken@6689
   387
# global $as_val. Take advantage of shells that can avoid forks. The arguments
slouken@6689
   388
# must be portable across $(()) and expr.
slouken@6689
   389
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
slouken@6689
   390
  eval 'as_fn_arith ()
slouken@6689
   391
  {
slouken@6689
   392
    as_val=$(( $* ))
slouken@6689
   393
  }'
slouken@6689
   394
else
slouken@6689
   395
  as_fn_arith ()
slouken@6689
   396
  {
slouken@6689
   397
    as_val=`expr "$@" || test $? -eq 1`
slouken@6689
   398
  }
slouken@6689
   399
fi # as_fn_arith
slouken@6689
   400
slouken@6689
   401
slouken@6689
   402
# as_fn_error STATUS ERROR [LINENO LOG_FD]
slouken@6689
   403
# ----------------------------------------
slouken@6689
   404
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
slouken@6689
   405
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
slouken@6689
   406
# script with STATUS, using 1 if that was 0.
slouken@6689
   407
as_fn_error ()
slouken@6689
   408
{
slouken@6689
   409
  as_status=$1; test $as_status -eq 0 && as_status=1
slouken@6689
   410
  if test "$4"; then
slouken@6689
   411
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
slouken@6689
   412
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
slouken@6689
   413
  fi
slouken@6689
   414
  $as_echo "$as_me: error: $2" >&2
slouken@6689
   415
  as_fn_exit $as_status
slouken@6689
   416
} # as_fn_error
slouken@6689
   417
slouken@5310
   418
if expr a : '\(a\)' >/dev/null 2>&1 &&
slouken@5310
   419
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
slouken@5310
   420
  as_expr=expr
slouken@5310
   421
else
slouken@5310
   422
  as_expr=false
slouken@5310
   423
fi
slouken@5310
   424
slouken@5310
   425
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
slouken@5310
   426
  as_basename=basename
slouken@5310
   427
else
slouken@5310
   428
  as_basename=false
slouken@5310
   429
fi
slouken@5310
   430
slouken@6689
   431
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
slouken@6689
   432
  as_dirname=dirname
slouken@6689
   433
else
slouken@6689
   434
  as_dirname=false
slouken@6689
   435
fi
slouken@6689
   436
slouken@5310
   437
as_me=`$as_basename -- "$0" ||
slouken@5310
   438
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
slouken@5310
   439
	 X"$0" : 'X\(//\)$' \| \
slouken@5310
   440
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
slouken@6689
   441
$as_echo X/"$0" |
slouken@5310
   442
    sed '/^.*\/\([^/][^/]*\)\/*$/{
slouken@5310
   443
	    s//\1/
slouken@5310
   444
	    q
slouken@5310
   445
	  }
slouken@5310
   446
	  /^X\/\(\/\/\)$/{
slouken@5310
   447
	    s//\1/
slouken@5310
   448
	    q
slouken@5310
   449
	  }
slouken@5310
   450
	  /^X\/\(\/\).*/{
slouken@5310
   451
	    s//\1/
slouken@5310
   452
	    q
slouken@5310
   453
	  }
slouken@5310
   454
	  s/.*/./; q'`
slouken@5310
   455
slouken@6689
   456
# Avoid depending upon Character Ranges.
slouken@6689
   457
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
slouken@6689
   458
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
slouken@6689
   459
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
slouken@6689
   460
as_cr_digits='0123456789'
slouken@6689
   461
as_cr_alnum=$as_cr_Letters$as_cr_digits
slouken@6689
   462
slouken@6689
   463
slouken@6689
   464
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
slouken@6689
   465
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
slouken@6689
   466
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
slouken@6689
   467
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
slouken@6689
   468
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
slouken@5310
   469
  sed -n '
slouken@5310
   470
    p
slouken@5310
   471
    /[$]LINENO/=
slouken@5310
   472
  ' <$as_myself |
slouken@5310
   473
    sed '
slouken@5310
   474
      s/[$]LINENO.*/&-/
slouken@5310
   475
      t lineno
slouken@5310
   476
      b
slouken@5310
   477
      :lineno
slouken@5310
   478
      N
slouken@5310
   479
      :loop
slouken@5310
   480
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
slouken@5310
   481
      t loop
slouken@5310
   482
      s/-\n.*//
slouken@5310
   483
    ' >$as_me.lineno &&
slouken@5310
   484
  chmod +x "$as_me.lineno" ||
slouken@6689
   485
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
slouken@6688
   486
slouken@6785
   487
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
slouken@6785
   488
  # already done that, so ensure we don't try to do so again and fall
slouken@6785
   489
  # in an infinite loop.  This has already happened in practice.
slouken@6785
   490
  _as_can_reexec=no; export _as_can_reexec
slouken@5310
   491
  # Don't try to exec as it changes $[0], causing all sort of problems
slouken@5310
   492
  # (the dirname of $[0] is not the place where we might find the
slouken@5310
   493
  # original and so on.  Autoconf is especially sensitive to this).
slouken@5310
   494
  . "./$as_me.lineno"
slouken@5310
   495
  # Exit status is that of the last command.
slouken@5310
   496
  exit
slouken@5310
   497
}
slouken@5310
   498
slouken@5310
   499
ECHO_C= ECHO_N= ECHO_T=
slouken@6689
   500
case `echo -n x` in #(((((
slouken@5310
   501
-n*)
slouken@6689
   502
  case `echo 'xy\c'` in
slouken@5310
   503
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
slouken@6689
   504
  xy)  ECHO_C='\c';;
slouken@6689
   505
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
slouken@6689
   506
       ECHO_T='	';;
slouken@5310
   507
  esac;;
slouken@5310
   508
*)
slouken@5310
   509
  ECHO_N='-n';;
slouken@5310
   510
esac
slouken@5310
   511
slouken@5310
   512
rm -f conf$$ conf$$.exe conf$$.file
slouken@5310
   513
if test -d conf$$.dir; then
slouken@5310
   514
  rm -f conf$$.dir/conf$$.file
slouken@5310
   515
else
slouken@5310
   516
  rm -f conf$$.dir
slouken@6689
   517
  mkdir conf$$.dir 2>/dev/null
slouken@5310
   518
fi
slouken@6689
   519
if (echo >conf$$.file) 2>/dev/null; then
slouken@6689
   520
  if ln -s conf$$.file conf$$ 2>/dev/null; then
slouken@6689
   521
    as_ln_s='ln -s'
slouken@6689
   522
    # ... but there are two gotchas:
slouken@6689
   523
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
slouken@6689
   524
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
slouken@6785
   525
    # In both cases, we have to default to `cp -pR'.
slouken@6689
   526
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
slouken@6785
   527
      as_ln_s='cp -pR'
slouken@6689
   528
  elif ln conf$$.file conf$$ 2>/dev/null; then
slouken@6689
   529
    as_ln_s=ln
slouken@6689
   530
  else
slouken@6785
   531
    as_ln_s='cp -pR'
slouken@6689
   532
  fi
slouken@5310
   533
else
slouken@6785
   534
  as_ln_s='cp -pR'
slouken@5310
   535
fi
slouken@5310
   536
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
slouken@5310
   537
rmdir conf$$.dir 2>/dev/null
slouken@5310
   538
slouken@5310
   539
if mkdir -p . 2>/dev/null; then
slouken@6689
   540
  as_mkdir_p='mkdir -p "$as_dir"'
slouken@5310
   541
else
slouken@5310
   542
  test -d ./-p && rmdir ./-p
slouken@5310
   543
  as_mkdir_p=false
slouken@5310
   544
fi
slouken@5310
   545
slouken@6785
   546
as_test_x='test -x'
slouken@6785
   547
as_executable_p=as_fn_executable_p
slouken@5310
   548
slouken@5310
   549
# Sed expression to map a string onto a valid CPP name.
slouken@5310
   550
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
slouken@5310
   551
slouken@5310
   552
# Sed expression to map a string onto a valid variable name.
slouken@5310
   553
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
slouken@5310
   554
slouken@5310
   555
slouken@6689
   556
test -n "$DJDIR" || exec 7<&0 </dev/null
slouken@6689
   557
exec 6>&1
slouken@5310
   558
slouken@5310
   559
# Name of the host.
slouken@6689
   560
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
slouken@5310
   561
# so uname gets run too.
slouken@5310
   562
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
slouken@5310
   563
slouken@5310
   564
#
slouken@5310
   565
# Initializations.
slouken@5310
   566
#
slouken@5310
   567
ac_default_prefix=/usr/local
slouken@5310
   568
ac_clean_files=
slouken@5310
   569
ac_config_libobj_dir=.
slouken@5310
   570
LIBOBJS=
slouken@5310
   571
cross_compiling=no
slouken@5310
   572
subdirs=
slouken@5310
   573
MFLAGS=
slouken@5310
   574
MAKEFLAGS=
slouken@5310
   575
slouken@5310
   576
# Identity of this package.
slouken@5310
   577
PACKAGE_NAME=
slouken@5310
   578
PACKAGE_TARNAME=
slouken@5310
   579
PACKAGE_VERSION=
slouken@5310
   580
PACKAGE_STRING=
slouken@5310
   581
PACKAGE_BUGREPORT=
slouken@6689
   582
PACKAGE_URL=
slouken@5310
   583
slouken@5310
   584
ac_unique_file="README"
slouken@6689
   585
ac_subst_vars='LTLIBOBJS
slouken@6689
   586
LIBOBJS
slouken@6689
   587
SDL_TTF_LIB
slouken@7495
   588
XLIB
slouken@6689
   589
GLLIB
slouken@6689
   590
CPP
slouken@6689
   591
XMKMF
slouken@6689
   592
SDL_CONFIG
slouken@6689
   593
SDL_LIBS
slouken@6689
   594
SDL_CFLAGS
slouken@6689
   595
PKG_CONFIG_LIBDIR
slouken@6689
   596
PKG_CONFIG_PATH
slouken@6689
   597
PKG_CONFIG
slouken@6689
   598
ISUNIX
slouken@6689
   599
ISWINDOWS
slouken@6689
   600
ISMACOSX
slouken@6689
   601
MATHLIB
slouken@6689
   602
EXE
slouken@6689
   603
OSMESA_CONFIG
slouken@6689
   604
OBJEXT
slouken@6689
   605
EXEEXT
slouken@6689
   606
ac_ct_CC
slouken@6689
   607
CPPFLAGS
slouken@6689
   608
LDFLAGS
slouken@6689
   609
CFLAGS
slouken@6689
   610
CC
slouken@6689
   611
host_os
slouken@6689
   612
host_vendor
slouken@6689
   613
host_cpu
slouken@6689
   614
host
slouken@6689
   615
build_os
slouken@6689
   616
build_vendor
slouken@6689
   617
build_cpu
slouken@6689
   618
build
slouken@6689
   619
target_alias
slouken@6689
   620
host_alias
slouken@6689
   621
build_alias
slouken@6689
   622
LIBS
slouken@6689
   623
ECHO_T
slouken@6689
   624
ECHO_N
slouken@6689
   625
ECHO_C
slouken@6689
   626
DEFS
slouken@6689
   627
mandir
slouken@6689
   628
localedir
slouken@6689
   629
libdir
slouken@6689
   630
psdir
slouken@6689
   631
pdfdir
slouken@6689
   632
dvidir
slouken@6689
   633
htmldir
slouken@6689
   634
infodir
slouken@6689
   635
docdir
slouken@6689
   636
oldincludedir
slouken@6689
   637
includedir
slouken@6689
   638
localstatedir
slouken@6689
   639
sharedstatedir
slouken@6689
   640
sysconfdir
slouken@6689
   641
datadir
slouken@6689
   642
datarootdir
slouken@6689
   643
libexecdir
slouken@6689
   644
sbindir
slouken@6689
   645
bindir
slouken@6689
   646
program_transform_name
slouken@6689
   647
prefix
slouken@6689
   648
exec_prefix
slouken@6689
   649
PACKAGE_URL
slouken@6689
   650
PACKAGE_BUGREPORT
slouken@6689
   651
PACKAGE_STRING
slouken@6689
   652
PACKAGE_VERSION
slouken@6689
   653
PACKAGE_TARNAME
slouken@6689
   654
PACKAGE_NAME
slouken@6688
   655
PATH_SEPARATOR
slouken@6689
   656
SHELL'
slouken@5310
   657
ac_subst_files=''
slouken@6689
   658
ac_user_opts='
slouken@6689
   659
enable_option_checking
slouken@6689
   660
with_sdl_prefix
slouken@6689
   661
with_sdl_exec_prefix
slouken@6689
   662
enable_sdltest
slouken@6689
   663
with_x
slouken@6689
   664
'
slouken@5310
   665
      ac_precious_vars='build_alias
slouken@5310
   666
host_alias
slouken@5310
   667
target_alias
slouken@5310
   668
CC
slouken@5310
   669
CFLAGS
slouken@5310
   670
LDFLAGS
slouken@5310
   671
LIBS
slouken@5310
   672
CPPFLAGS
slouken@6250
   673
PKG_CONFIG
slouken@6250
   674
PKG_CONFIG_PATH
slouken@6250
   675
PKG_CONFIG_LIBDIR
slouken@6250
   676
SDL_CFLAGS
slouken@6250
   677
SDL_LIBS
slouken@5310
   678
XMKMF
slouken@5310
   679
CPP'
slouken@5310
   680
slouken@5310
   681
slouken@5310
   682
# Initialize some variables set by options.
slouken@5310
   683
ac_init_help=
slouken@5310
   684
ac_init_version=false
slouken@6689
   685
ac_unrecognized_opts=
slouken@6689
   686
ac_unrecognized_sep=
slouken@5310
   687
# The variables have the same names as the options, with
slouken@5310
   688
# dashes changed to underlines.
slouken@5310
   689
cache_file=/dev/null
slouken@5310
   690
exec_prefix=NONE
slouken@5310
   691
no_create=
slouken@5310
   692
no_recursion=
slouken@5310
   693
prefix=NONE
slouken@5310
   694
program_prefix=NONE
slouken@5310
   695
program_suffix=NONE
slouken@5310
   696
program_transform_name=s,x,x,
slouken@5310
   697
silent=
slouken@5310
   698
site=
slouken@5310
   699
srcdir=
slouken@5310
   700
verbose=
slouken@5310
   701
x_includes=NONE
slouken@5310
   702
x_libraries=NONE
slouken@5310
   703
slouken@5310
   704
# Installation directory options.
slouken@5310
   705
# These are left unexpanded so users can "make install exec_prefix=/foo"
slouken@5310
   706
# and all the variables that are supposed to be based on exec_prefix
slouken@5310
   707
# by default will actually change.
slouken@5310
   708
# Use braces instead of parens because sh, perl, etc. also accept them.
slouken@5310
   709
# (The list follows the same order as the GNU Coding Standards.)
slouken@5310
   710
bindir='${exec_prefix}/bin'
slouken@5310
   711
sbindir='${exec_prefix}/sbin'
slouken@5310
   712
libexecdir='${exec_prefix}/libexec'
slouken@5310
   713
datarootdir='${prefix}/share'
slouken@5310
   714
datadir='${datarootdir}'
slouken@5310
   715
sysconfdir='${prefix}/etc'
slouken@5310
   716
sharedstatedir='${prefix}/com'
slouken@5310
   717
localstatedir='${prefix}/var'
slouken@5310
   718
includedir='${prefix}/include'
slouken@5310
   719
oldincludedir='/usr/include'
slouken@5310
   720
docdir='${datarootdir}/doc/${PACKAGE}'
slouken@5310
   721
infodir='${datarootdir}/info'
slouken@5310
   722
htmldir='${docdir}'
slouken@5310
   723
dvidir='${docdir}'
slouken@5310
   724
pdfdir='${docdir}'
slouken@5310
   725
psdir='${docdir}'
slouken@5310
   726
libdir='${exec_prefix}/lib'
slouken@5310
   727
localedir='${datarootdir}/locale'
slouken@5310
   728
mandir='${datarootdir}/man'
slouken@5310
   729
slouken@5310
   730
ac_prev=
slouken@5310
   731
ac_dashdash=
slouken@5310
   732
for ac_option
slouken@5310
   733
do
slouken@5310
   734
  # If the previous option needs an argument, assign it.
slouken@5310
   735
  if test -n "$ac_prev"; then
slouken@5310
   736
    eval $ac_prev=\$ac_option
slouken@5310
   737
    ac_prev=
slouken@5310
   738
    continue
slouken@5310
   739
  fi
slouken@5310
   740
slouken@5310
   741
  case $ac_option in
slouken@6689
   742
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
slouken@6689
   743
  *=)   ac_optarg= ;;
slouken@6689
   744
  *)    ac_optarg=yes ;;
slouken@5310
   745
  esac
slouken@5310
   746
slouken@5310
   747
  # Accept the important Cygnus configure options, so we can diagnose typos.
slouken@5310
   748
slouken@5310
   749
  case $ac_dashdash$ac_option in
slouken@5310
   750
  --)
slouken@5310
   751
    ac_dashdash=yes ;;
slouken@5310
   752
slouken@5310
   753
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
slouken@5310
   754
    ac_prev=bindir ;;
slouken@5310
   755
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
slouken@5310
   756
    bindir=$ac_optarg ;;
slouken@5310
   757
slouken@5310
   758
  -build | --build | --buil | --bui | --bu)
slouken@5310
   759
    ac_prev=build_alias ;;
slouken@5310
   760
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
slouken@5310
   761
    build_alias=$ac_optarg ;;
slouken@5310
   762
slouken@5310
   763
  -cache-file | --cache-file | --cache-fil | --cache-fi \
slouken@5310
   764
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
slouken@5310
   765
    ac_prev=cache_file ;;
slouken@5310
   766
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
slouken@5310
   767
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
slouken@5310
   768
    cache_file=$ac_optarg ;;
slouken@5310
   769
slouken@5310
   770
  --config-cache | -C)
slouken@5310
   771
    cache_file=config.cache ;;
slouken@5310
   772
slouken@5310
   773
  -datadir | --datadir | --datadi | --datad)
slouken@5310
   774
    ac_prev=datadir ;;
slouken@5310
   775
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
slouken@5310
   776
    datadir=$ac_optarg ;;
slouken@5310
   777
slouken@5310
   778
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
slouken@5310
   779
  | --dataroo | --dataro | --datar)
slouken@5310
   780
    ac_prev=datarootdir ;;
slouken@5310
   781
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
slouken@5310
   782
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
slouken@5310
   783
    datarootdir=$ac_optarg ;;
slouken@5310
   784
slouken@5310
   785
  -disable-* | --disable-*)
slouken@6689
   786
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
slouken@5310
   787
    # Reject names that are not valid shell variable names.
slouken@6689
   788
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
slouken@6689
   789
      as_fn_error $? "invalid feature name: $ac_useropt"
slouken@6689
   790
    ac_useropt_orig=$ac_useropt
slouken@6689
   791
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
slouken@6689
   792
    case $ac_user_opts in
slouken@6689
   793
      *"
slouken@6689
   794
"enable_$ac_useropt"
slouken@6689
   795
"*) ;;
slouken@6689
   796
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
slouken@6689
   797
	 ac_unrecognized_sep=', ';;
slouken@6689
   798
    esac
slouken@6689
   799
    eval enable_$ac_useropt=no ;;
slouken@5310
   800
slouken@5310
   801
  -docdir | --docdir | --docdi | --doc | --do)
slouken@5310
   802
    ac_prev=docdir ;;
slouken@5310
   803
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
slouken@5310
   804
    docdir=$ac_optarg ;;
slouken@5310
   805
slouken@5310
   806
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
slouken@5310
   807
    ac_prev=dvidir ;;
slouken@5310
   808
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
slouken@5310
   809
    dvidir=$ac_optarg ;;
slouken@5310
   810
slouken@5310
   811
  -enable-* | --enable-*)
slouken@6689
   812
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
slouken@5310
   813
    # Reject names that are not valid shell variable names.
slouken@6689
   814
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
slouken@6689
   815
      as_fn_error $? "invalid feature name: $ac_useropt"
slouken@6689
   816
    ac_useropt_orig=$ac_useropt
slouken@6689
   817
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
slouken@6689
   818
    case $ac_user_opts in
slouken@6689
   819
      *"
slouken@6689
   820
"enable_$ac_useropt"
slouken@6689
   821
"*) ;;
slouken@6689
   822
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
slouken@6689
   823
	 ac_unrecognized_sep=', ';;
slouken@6689
   824
    esac
slouken@6689
   825
    eval enable_$ac_useropt=\$ac_optarg ;;
slouken@5310
   826
slouken@5310
   827
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
slouken@5310
   828
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
slouken@5310
   829
  | --exec | --exe | --ex)
slouken@5310
   830
    ac_prev=exec_prefix ;;
slouken@5310
   831
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
slouken@5310
   832
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
slouken@5310
   833
  | --exec=* | --exe=* | --ex=*)
slouken@5310
   834
    exec_prefix=$ac_optarg ;;
slouken@5310
   835
slouken@5310
   836
  -gas | --gas | --ga | --g)
slouken@5310
   837
    # Obsolete; use --with-gas.
slouken@5310
   838
    with_gas=yes ;;
slouken@5310
   839
slouken@5310
   840
  -help | --help | --hel | --he | -h)
slouken@5310
   841
    ac_init_help=long ;;
slouken@5310
   842
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
slouken@5310
   843
    ac_init_help=recursive ;;
slouken@5310
   844
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
slouken@5310
   845
    ac_init_help=short ;;
slouken@5310
   846
slouken@5310
   847
  -host | --host | --hos | --ho)
slouken@5310
   848
    ac_prev=host_alias ;;
slouken@5310
   849
  -host=* | --host=* | --hos=* | --ho=*)
slouken@5310
   850
    host_alias=$ac_optarg ;;
slouken@5310
   851
slouken@5310
   852
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
slouken@5310
   853
    ac_prev=htmldir ;;
slouken@5310
   854
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
slouken@5310
   855
  | --ht=*)
slouken@5310
   856
    htmldir=$ac_optarg ;;
slouken@5310
   857
slouken@5310
   858
  -includedir | --includedir | --includedi | --included | --include \
slouken@5310
   859
  | --includ | --inclu | --incl | --inc)
slouken@5310
   860
    ac_prev=includedir ;;
slouken@5310
   861
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
slouken@5310
   862
  | --includ=* | --inclu=* | --incl=* | --inc=*)
slouken@5310
   863
    includedir=$ac_optarg ;;
slouken@5310
   864
slouken@5310
   865
  -infodir | --infodir | --infodi | --infod | --info | --inf)
slouken@5310
   866
    ac_prev=infodir ;;
slouken@5310
   867
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
slouken@5310
   868
    infodir=$ac_optarg ;;
slouken@5310
   869
slouken@5310
   870
  -libdir | --libdir | --libdi | --libd)
slouken@5310
   871
    ac_prev=libdir ;;
slouken@5310
   872
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
slouken@5310
   873
    libdir=$ac_optarg ;;
slouken@5310
   874
slouken@5310
   875
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
slouken@5310
   876
  | --libexe | --libex | --libe)
slouken@5310
   877
    ac_prev=libexecdir ;;
slouken@5310
   878
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
slouken@5310
   879
  | --libexe=* | --libex=* | --libe=*)
slouken@5310
   880
    libexecdir=$ac_optarg ;;
slouken@5310
   881
slouken@5310
   882
  -localedir | --localedir | --localedi | --localed | --locale)
slouken@5310
   883
    ac_prev=localedir ;;
slouken@5310
   884
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
slouken@5310
   885
    localedir=$ac_optarg ;;
slouken@5310
   886
slouken@5310
   887
  -localstatedir | --localstatedir | --localstatedi | --localstated \
slouken@5310
   888
  | --localstate | --localstat | --localsta | --localst | --locals)
slouken@5310
   889
    ac_prev=localstatedir ;;
slouken@5310
   890
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
slouken@5310
   891
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
slouken@5310
   892
    localstatedir=$ac_optarg ;;
slouken@5310
   893
slouken@5310
   894
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
slouken@5310
   895
    ac_prev=mandir ;;
slouken@5310
   896
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
slouken@5310
   897
    mandir=$ac_optarg ;;
slouken@5310
   898
slouken@5310
   899
  -nfp | --nfp | --nf)
slouken@5310
   900
    # Obsolete; use --without-fp.
slouken@5310
   901
    with_fp=no ;;
slouken@5310
   902
slouken@5310
   903
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@5310
   904
  | --no-cr | --no-c | -n)
slouken@5310
   905
    no_create=yes ;;
slouken@5310
   906
slouken@5310
   907
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@5310
   908
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
slouken@5310
   909
    no_recursion=yes ;;
slouken@5310
   910
slouken@5310
   911
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
slouken@5310
   912
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
slouken@5310
   913
  | --oldin | --oldi | --old | --ol | --o)
slouken@5310
   914
    ac_prev=oldincludedir ;;
slouken@5310
   915
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
slouken@5310
   916
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
slouken@5310
   917
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
slouken@5310
   918
    oldincludedir=$ac_optarg ;;
slouken@5310
   919
slouken@5310
   920
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
slouken@5310
   921
    ac_prev=prefix ;;
slouken@5310
   922
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
slouken@5310
   923
    prefix=$ac_optarg ;;
slouken@5310
   924
slouken@5310
   925
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
slouken@5310
   926
  | --program-pre | --program-pr | --program-p)
slouken@5310
   927
    ac_prev=program_prefix ;;
slouken@5310
   928
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
slouken@5310
   929
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
slouken@5310
   930
    program_prefix=$ac_optarg ;;
slouken@5310
   931
slouken@5310
   932
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
slouken@5310
   933
  | --program-suf | --program-su | --program-s)
slouken@5310
   934
    ac_prev=program_suffix ;;
slouken@5310
   935
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
slouken@5310
   936
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
slouken@5310
   937
    program_suffix=$ac_optarg ;;
slouken@5310
   938
slouken@5310
   939
  -program-transform-name | --program-transform-name \
slouken@5310
   940
  | --program-transform-nam | --program-transform-na \
slouken@5310
   941
  | --program-transform-n | --program-transform- \
slouken@5310
   942
  | --program-transform | --program-transfor \
slouken@5310
   943
  | --program-transfo | --program-transf \
slouken@5310
   944
  | --program-trans | --program-tran \
slouken@5310
   945
  | --progr-tra | --program-tr | --program-t)
slouken@5310
   946
    ac_prev=program_transform_name ;;
slouken@5310
   947
  -program-transform-name=* | --program-transform-name=* \
slouken@5310
   948
  | --program-transform-nam=* | --program-transform-na=* \
slouken@5310
   949
  | --program-transform-n=* | --program-transform-=* \
slouken@5310
   950
  | --program-transform=* | --program-transfor=* \
slouken@5310
   951
  | --program-transfo=* | --program-transf=* \
slouken@5310
   952
  | --program-trans=* | --program-tran=* \
slouken@5310
   953
  | --progr-tra=* | --program-tr=* | --program-t=*)
slouken@5310
   954
    program_transform_name=$ac_optarg ;;
slouken@5310
   955
slouken@5310
   956
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
slouken@5310
   957
    ac_prev=pdfdir ;;
slouken@5310
   958
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
slouken@5310
   959
    pdfdir=$ac_optarg ;;
slouken@5310
   960
slouken@5310
   961
  -psdir | --psdir | --psdi | --psd | --ps)
slouken@5310
   962
    ac_prev=psdir ;;
slouken@5310
   963
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
slouken@5310
   964
    psdir=$ac_optarg ;;
slouken@5310
   965
slouken@5310
   966
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@5310
   967
  | -silent | --silent | --silen | --sile | --sil)
slouken@5310
   968
    silent=yes ;;
slouken@5310
   969
slouken@5310
   970
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
slouken@5310
   971
    ac_prev=sbindir ;;
slouken@5310
   972
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
slouken@5310
   973
  | --sbi=* | --sb=*)
slouken@5310
   974
    sbindir=$ac_optarg ;;
slouken@5310
   975
slouken@5310
   976
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
slouken@5310
   977
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
slouken@5310
   978
  | --sharedst | --shareds | --shared | --share | --shar \
slouken@5310
   979
  | --sha | --sh)
slouken@5310
   980
    ac_prev=sharedstatedir ;;
slouken@5310
   981
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
slouken@5310
   982
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
slouken@5310
   983
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
slouken@5310
   984
  | --sha=* | --sh=*)
slouken@5310
   985
    sharedstatedir=$ac_optarg ;;
slouken@5310
   986
slouken@5310
   987
  -site | --site | --sit)
slouken@5310
   988
    ac_prev=site ;;
slouken@5310
   989
  -site=* | --site=* | --sit=*)
slouken@5310
   990
    site=$ac_optarg ;;
slouken@5310
   991
slouken@5310
   992
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
slouken@5310
   993
    ac_prev=srcdir ;;
slouken@5310
   994
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
slouken@5310
   995
    srcdir=$ac_optarg ;;
slouken@5310
   996
slouken@5310
   997
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
slouken@5310
   998
  | --syscon | --sysco | --sysc | --sys | --sy)
slouken@5310
   999
    ac_prev=sysconfdir ;;
slouken@5310
  1000
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
slouken@5310
  1001
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
slouken@5310
  1002
    sysconfdir=$ac_optarg ;;
slouken@5310
  1003
slouken@5310
  1004
  -target | --target | --targe | --targ | --tar | --ta | --t)
slouken@5310
  1005
    ac_prev=target_alias ;;
slouken@5310
  1006
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
slouken@5310
  1007
    target_alias=$ac_optarg ;;
slouken@5310
  1008
slouken@5310
  1009
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
slouken@5310
  1010
    verbose=yes ;;
slouken@5310
  1011
slouken@5310
  1012
  -version | --version | --versio | --versi | --vers | -V)
slouken@5310
  1013
    ac_init_version=: ;;
slouken@5310
  1014
slouken@5310
  1015
  -with-* | --with-*)
slouken@6689
  1016
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
slouken@5310
  1017
    # Reject names that are not valid shell variable names.
slouken@6689
  1018
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
slouken@6689
  1019
      as_fn_error $? "invalid package name: $ac_useropt"
slouken@6689
  1020
    ac_useropt_orig=$ac_useropt
slouken@6689
  1021
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
slouken@6689
  1022
    case $ac_user_opts in
slouken@6689
  1023
      *"
slouken@6689
  1024
"with_$ac_useropt"
slouken@6689
  1025
"*) ;;
slouken@6689
  1026
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
slouken@6689
  1027
	 ac_unrecognized_sep=', ';;
slouken@6689
  1028
    esac
slouken@6689
  1029
    eval with_$ac_useropt=\$ac_optarg ;;
slouken@5310
  1030
slouken@5310
  1031
  -without-* | --without-*)
slouken@6689
  1032
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
slouken@5310
  1033
    # Reject names that are not valid shell variable names.
slouken@6689
  1034
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
slouken@6689
  1035
      as_fn_error $? "invalid package name: $ac_useropt"
slouken@6689
  1036
    ac_useropt_orig=$ac_useropt
slouken@6689
  1037
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
slouken@6689
  1038
    case $ac_user_opts in
slouken@6689
  1039
      *"
slouken@6689
  1040
"with_$ac_useropt"
slouken@6689
  1041
"*) ;;
slouken@6689
  1042
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
slouken@6689
  1043
	 ac_unrecognized_sep=', ';;
slouken@6689
  1044
    esac
slouken@6689
  1045
    eval with_$ac_useropt=no ;;
slouken@5310
  1046
slouken@5310
  1047
  --x)
slouken@5310
  1048
    # Obsolete; use --with-x.
slouken@5310
  1049
    with_x=yes ;;
slouken@5310
  1050
slouken@5310
  1051
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
slouken@5310
  1052
  | --x-incl | --x-inc | --x-in | --x-i)
slouken@5310
  1053
    ac_prev=x_includes ;;
slouken@5310
  1054
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
slouken@5310
  1055
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
slouken@5310
  1056
    x_includes=$ac_optarg ;;
slouken@5310
  1057
slouken@5310
  1058
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
slouken@5310
  1059
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
slouken@5310
  1060
    ac_prev=x_libraries ;;
slouken@5310
  1061
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
slouken@5310
  1062
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
slouken@5310
  1063
    x_libraries=$ac_optarg ;;
slouken@5310
  1064
slouken@6689
  1065
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
slouken@6689
  1066
Try \`$0 --help' for more information"
slouken@5310
  1067
    ;;
slouken@5310
  1068
slouken@5310
  1069
  *=*)
slouken@5310
  1070
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
slouken@5310
  1071
    # Reject names that are not valid shell variable names.
slouken@6689
  1072
    case $ac_envvar in #(
slouken@6689
  1073
      '' | [0-9]* | *[!_$as_cr_alnum]* )
slouken@6689
  1074
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
slouken@6689
  1075
    esac
slouken@5310
  1076
    eval $ac_envvar=\$ac_optarg
slouken@5310
  1077
    export $ac_envvar ;;
slouken@5310
  1078
slouken@5310
  1079
  *)
slouken@5310
  1080
    # FIXME: should be removed in autoconf 3.0.
slouken@6689
  1081
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
slouken@5310
  1082
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
slouken@6689
  1083
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
slouken@6689
  1084
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
slouken@5310
  1085
    ;;
slouken@5310
  1086
slouken@5310
  1087
  esac
slouken@5310
  1088
done
slouken@5310
  1089
slouken@5310
  1090
if test -n "$ac_prev"; then
slouken@5310
  1091
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
slouken@6689
  1092
  as_fn_error $? "missing argument to $ac_option"
slouken@5310
  1093
fi
slouken@5310
  1094
slouken@6689
  1095
if test -n "$ac_unrecognized_opts"; then
slouken@6689
  1096
  case $enable_option_checking in
slouken@6689
  1097
    no) ;;
slouken@6689
  1098
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
slouken@6689
  1099
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
slouken@6689
  1100
  esac
slouken@6689
  1101
fi
slouken@6689
  1102
slouken@6689
  1103
# Check all directory arguments for consistency.
slouken@5310
  1104
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
slouken@5310
  1105
		datadir sysconfdir sharedstatedir localstatedir includedir \
slouken@5310
  1106
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
slouken@5310
  1107
		libdir localedir mandir
slouken@5310
  1108
do
slouken@5310
  1109
  eval ac_val=\$$ac_var
slouken@6689
  1110
  # Remove trailing slashes.
slouken@6689
  1111
  case $ac_val in
slouken@6689
  1112
    */ )
slouken@6689
  1113
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
slouken@6689
  1114
      eval $ac_var=\$ac_val;;
slouken@6689
  1115
  esac
slouken@6689
  1116
  # Be sure to have absolute directory names.
slouken@5310
  1117
  case $ac_val in
slouken@5310
  1118
    [\\/$]* | ?:[\\/]* )  continue;;
slouken@5310
  1119
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
slouken@5310
  1120
  esac
slouken@6689
  1121
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
slouken@5310
  1122
done
slouken@5310
  1123
slouken@5310
  1124
# There might be people who depend on the old broken behavior: `$host'
slouken@5310
  1125
# used to hold the argument of --host etc.
slouken@5310
  1126
# FIXME: To remove some day.
slouken@5310
  1127
build=$build_alias
slouken@5310
  1128
host=$host_alias
slouken@5310
  1129
target=$target_alias
slouken@5310
  1130
slouken@5310
  1131
# FIXME: To remove some day.
slouken@5310
  1132
if test "x$host_alias" != x; then
slouken@5310
  1133
  if test "x$build_alias" = x; then
slouken@5310
  1134
    cross_compiling=maybe
slouken@5310
  1135
  elif test "x$build_alias" != "x$host_alias"; then
slouken@5310
  1136
    cross_compiling=yes
slouken@5310
  1137
  fi
slouken@5310
  1138
fi
slouken@5310
  1139
slouken@5310
  1140
ac_tool_prefix=
slouken@5310
  1141
test -n "$host_alias" && ac_tool_prefix=$host_alias-
slouken@5310
  1142
slouken@5310
  1143
test "$silent" = yes && exec 6>/dev/null
slouken@5310
  1144
slouken@5310
  1145
slouken@5310
  1146
ac_pwd=`pwd` && test -n "$ac_pwd" &&
slouken@5310
  1147
ac_ls_di=`ls -di .` &&
slouken@5310
  1148
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
slouken@6689
  1149
  as_fn_error $? "working directory cannot be determined"
slouken@5310
  1150
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
slouken@6689
  1151
  as_fn_error $? "pwd does not report name of working directory"
slouken@5310
  1152
slouken@5310
  1153
slouken@5310
  1154
# Find the source files, if location was not specified.
slouken@5310
  1155
if test -z "$srcdir"; then
slouken@5310
  1156
  ac_srcdir_defaulted=yes
slouken@5310
  1157
  # Try the directory containing this script, then the parent directory.
slouken@6689
  1158
  ac_confdir=`$as_dirname -- "$as_myself" ||
slouken@6689
  1159
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
slouken@6689
  1160
	 X"$as_myself" : 'X\(//\)[^/]' \| \
slouken@6689
  1161
	 X"$as_myself" : 'X\(//\)$' \| \
slouken@6689
  1162
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
slouken@6689
  1163
$as_echo X"$as_myself" |
slouken@5310
  1164
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
slouken@5310
  1165
	    s//\1/
slouken@5310
  1166
	    q
slouken@5310
  1167
	  }
slouken@5310
  1168
	  /^X\(\/\/\)[^/].*/{
slouken@5310
  1169
	    s//\1/
slouken@5310
  1170
	    q
slouken@5310
  1171
	  }
slouken@5310
  1172
	  /^X\(\/\/\)$/{
slouken@5310
  1173
	    s//\1/
slouken@5310
  1174
	    q
slouken@5310
  1175
	  }
slouken@5310
  1176
	  /^X\(\/\).*/{
slouken@5310
  1177
	    s//\1/
slouken@5310
  1178
	    q
slouken@5310
  1179
	  }
slouken@5310
  1180
	  s/.*/./; q'`
slouken@5310
  1181
  srcdir=$ac_confdir
slouken@5310
  1182
  if test ! -r "$srcdir/$ac_unique_file"; then
slouken@5310
  1183
    srcdir=..
slouken@5310
  1184
  fi
slouken@5310
  1185
else
slouken@5310
  1186
  ac_srcdir_defaulted=no
slouken@5310
  1187
fi
slouken@5310
  1188
if test ! -r "$srcdir/$ac_unique_file"; then
slouken@5310
  1189
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
slouken@6689
  1190
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
slouken@5310
  1191
fi
slouken@5310
  1192
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
slouken@5310
  1193
ac_abs_confdir=`(
slouken@6689
  1194
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
slouken@5310
  1195
	pwd)`
slouken@5310
  1196
# When building in place, set srcdir=.
slouken@5310
  1197
if test "$ac_abs_confdir" = "$ac_pwd"; then
slouken@5310
  1198
  srcdir=.
slouken@5310
  1199
fi
slouken@5310
  1200
# Remove unnecessary trailing slashes from srcdir.
slouken@5310
  1201
# Double slashes in file names in object file debugging info
slouken@5310
  1202
# mess up M-x gdb in Emacs.
slouken@5310
  1203
case $srcdir in
slouken@5310
  1204
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
slouken@5310
  1205
esac
slouken@5310
  1206
for ac_var in $ac_precious_vars; do
slouken@5310
  1207
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
slouken@5310
  1208
  eval ac_env_${ac_var}_value=\$${ac_var}
slouken@5310
  1209
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
slouken@5310
  1210
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
slouken@5310
  1211
done
slouken@5310
  1212
slouken@5310
  1213
#
slouken@5310
  1214
# Report the --help message.
slouken@5310
  1215
#
slouken@5310
  1216
if test "$ac_init_help" = "long"; then
slouken@5310
  1217
  # Omit some internal or obsolete options to make the list less imposing.
slouken@5310
  1218
  # This message is too long to be a string in the A/UX 3.1 sh.
slouken@5310
  1219
  cat <<_ACEOF
slouken@5310
  1220
\`configure' configures this package to adapt to many kinds of systems.
slouken@5310
  1221
slouken@5310
  1222
Usage: $0 [OPTION]... [VAR=VALUE]...
slouken@5310
  1223
slouken@5310
  1224
To assign environment variables (e.g., CC, CFLAGS...), specify them as
slouken@5310
  1225
VAR=VALUE.  See below for descriptions of some of the useful variables.
slouken@5310
  1226
slouken@5310
  1227
Defaults for the options are specified in brackets.
slouken@5310
  1228
slouken@5310
  1229
Configuration:
slouken@5310
  1230
  -h, --help              display this help and exit
slouken@5310
  1231
      --help=short        display options specific to this package
slouken@5310
  1232
      --help=recursive    display the short help of all the included packages
slouken@5310
  1233
  -V, --version           display version information and exit
slouken@6689
  1234
  -q, --quiet, --silent   do not print \`checking ...' messages
slouken@5310
  1235
      --cache-file=FILE   cache test results in FILE [disabled]
slouken@5310
  1236
  -C, --config-cache      alias for \`--cache-file=config.cache'
slouken@5310
  1237
  -n, --no-create         do not create output files
slouken@5310
  1238
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
slouken@5310
  1239
slouken@5310
  1240
Installation directories:
slouken@5310
  1241
  --prefix=PREFIX         install architecture-independent files in PREFIX
slouken@6689
  1242
                          [$ac_default_prefix]
slouken@5310
  1243
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
slouken@6689
  1244
                          [PREFIX]
slouken@5310
  1245
slouken@5310
  1246
By default, \`make install' will install all the files in
slouken@5310
  1247
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
slouken@5310
  1248
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
slouken@5310
  1249
for instance \`--prefix=\$HOME'.
slouken@5310
  1250
slouken@5310
  1251
For better control, use the options below.
slouken@5310
  1252
slouken@5310
  1253
Fine tuning of the installation directories:
slouken@6689
  1254
  --bindir=DIR            user executables [EPREFIX/bin]
slouken@6689
  1255
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
slouken@6689
  1256
  --libexecdir=DIR        program executables [EPREFIX/libexec]
slouken@6689
  1257
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
slouken@6689
  1258
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
slouken@6689
  1259
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
slouken@6689
  1260
  --libdir=DIR            object code libraries [EPREFIX/lib]
slouken@6689
  1261
  --includedir=DIR        C header files [PREFIX/include]
slouken@6689
  1262
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
slouken@6689
  1263
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
slouken@6689
  1264
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
slouken@6689
  1265
  --infodir=DIR           info documentation [DATAROOTDIR/info]
slouken@6689
  1266
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
slouken@6689
  1267
  --mandir=DIR            man documentation [DATAROOTDIR/man]
slouken@6689
  1268
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
slouken@6689
  1269
  --htmldir=DIR           html documentation [DOCDIR]
slouken@6689
  1270
  --dvidir=DIR            dvi documentation [DOCDIR]
slouken@6689
  1271
  --pdfdir=DIR            pdf documentation [DOCDIR]
slouken@6689
  1272
  --psdir=DIR             ps documentation [DOCDIR]
slouken@5310
  1273
_ACEOF
slouken@5310
  1274
slouken@5310
  1275
  cat <<\_ACEOF
slouken@5310
  1276
slouken@5310
  1277
X features:
slouken@5310
  1278
  --x-includes=DIR    X include files are in DIR
slouken@5310
  1279
  --x-libraries=DIR   X library files are in DIR
slouken@5310
  1280
slouken@5310
  1281
System types:
slouken@5310
  1282
  --build=BUILD     configure for building on BUILD [guessed]
slouken@5310
  1283
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
slouken@5310
  1284
_ACEOF
slouken@5310
  1285
fi
slouken@5310
  1286
slouken@5310
  1287
if test -n "$ac_init_help"; then
slouken@5310
  1288
slouken@5310
  1289
  cat <<\_ACEOF
slouken@5310
  1290
slouken@5310
  1291
Optional Features:
slouken@6689
  1292
  --disable-option-checking  ignore unrecognized --enable/--with options
slouken@5310
  1293
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
slouken@5310
  1294
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
slouken@5310
  1295
  --disable-sdltest       Do not try to compile and run a test SDL program
slouken@5310
  1296
slouken@5310
  1297
Optional Packages:
slouken@5310
  1298
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
slouken@5310
  1299
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
slouken@5310
  1300
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
slouken@5310
  1301
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
slouken@5310
  1302
  --with-x                use the X Window System
slouken@5310
  1303
slouken@5310
  1304
Some influential environment variables:
slouken@5310
  1305
  CC          C compiler command
slouken@5310
  1306
  CFLAGS      C compiler flags
slouken@5310
  1307
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
slouken@5310
  1308
              nonstandard directory <lib dir>
slouken@5310
  1309
  LIBS        libraries to pass to the linker, e.g. -l<library>
slouken@6689
  1310
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
slouken@5310
  1311
              you have headers in a nonstandard directory <include dir>
slouken@6250
  1312
  PKG_CONFIG  path to pkg-config utility
slouken@6250
  1313
  PKG_CONFIG_PATH
slouken@6250
  1314
              directories to add to pkg-config's search path
slouken@6250
  1315
  PKG_CONFIG_LIBDIR
slouken@6250
  1316
              path overriding pkg-config's built-in search path
slouken@6250
  1317
  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
slouken@6250
  1318
  SDL_LIBS    linker flags for SDL, overriding pkg-config
slouken@5310
  1319
  XMKMF       Path to xmkmf, Makefile generator for X Window System
slouken@5310
  1320
  CPP         C preprocessor
slouken@5310
  1321
slouken@5310
  1322
Use these variables to override the choices made by `configure' or to help
slouken@5310
  1323
it to find libraries and programs with nonstandard names/locations.
slouken@5310
  1324
slouken@6689
  1325
Report bugs to the package provider.
slouken@5310
  1326
_ACEOF
slouken@5310
  1327
ac_status=$?
slouken@5310
  1328
fi
slouken@5310
  1329
slouken@5310
  1330
if test "$ac_init_help" = "recursive"; then
slouken@5310
  1331
  # If there are subdirs, report their specific --help.
slouken@5310
  1332
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
slouken@6689
  1333
    test -d "$ac_dir" ||
slouken@6689
  1334
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
slouken@6689
  1335
      continue
slouken@5310
  1336
    ac_builddir=.
slouken@5310
  1337
slouken@5310
  1338
case "$ac_dir" in
slouken@5310
  1339
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
slouken@5310
  1340
*)
slouken@6689
  1341
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
slouken@5310
  1342
  # A ".." for each directory in $ac_dir_suffix.
slouken@6689
  1343
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
slouken@5310
  1344
  case $ac_top_builddir_sub in
slouken@5310
  1345
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
slouken@5310
  1346
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
slouken@5310
  1347
  esac ;;
slouken@5310
  1348
esac
slouken@5310
  1349
ac_abs_top_builddir=$ac_pwd
slouken@5310
  1350
ac_abs_builddir=$ac_pwd$ac_dir_suffix
slouken@5310
  1351
# for backward compatibility:
slouken@5310
  1352
ac_top_builddir=$ac_top_build_prefix
slouken@5310
  1353
slouken@5310
  1354
case $srcdir in
slouken@5310
  1355
  .)  # We are building in place.
slouken@5310
  1356
    ac_srcdir=.
slouken@5310
  1357
    ac_top_srcdir=$ac_top_builddir_sub
slouken@5310
  1358
    ac_abs_top_srcdir=$ac_pwd ;;
slouken@5310
  1359
  [\\/]* | ?:[\\/]* )  # Absolute name.
slouken@5310
  1360
    ac_srcdir=$srcdir$ac_dir_suffix;
slouken@5310
  1361
    ac_top_srcdir=$srcdir
slouken@5310
  1362
    ac_abs_top_srcdir=$srcdir ;;
slouken@5310
  1363
  *) # Relative name.
slouken@5310
  1364
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
slouken@5310
  1365
    ac_top_srcdir=$ac_top_build_prefix$srcdir
slouken@5310
  1366
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
slouken@5310
  1367
esac
slouken@5310
  1368
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
slouken@5310
  1369
slouken@5310
  1370
    cd "$ac_dir" || { ac_status=$?; continue; }
slouken@5310
  1371
    # Check for guested configure.
slouken@5310
  1372
    if test -f "$ac_srcdir/configure.gnu"; then
slouken@5310
  1373
      echo &&
slouken@5310
  1374
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
slouken@5310
  1375
    elif test -f "$ac_srcdir/configure"; then
slouken@5310
  1376
      echo &&
slouken@5310
  1377
      $SHELL "$ac_srcdir/configure" --help=recursive
slouken@5310
  1378
    else
slouken@6689
  1379
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
slouken@5310
  1380
    fi || ac_status=$?
slouken@5310
  1381
    cd "$ac_pwd" || { ac_status=$?; break; }
slouken@5310
  1382
  done
slouken@5310
  1383
fi
slouken@5310
  1384
slouken@5310
  1385
test -n "$ac_init_help" && exit $ac_status
slouken@5310
  1386
if $ac_init_version; then
slouken@5310
  1387
  cat <<\_ACEOF
slouken@5310
  1388
configure
slouken@6785
  1389
generated by GNU Autoconf 2.69
slouken@6785
  1390
slouken@6785
  1391
Copyright (C) 2012 Free Software Foundation, Inc.
slouken@5310
  1392
This configure script is free software; the Free Software Foundation
slouken@5310
  1393
gives unlimited permission to copy, distribute and modify it.
slouken@5310
  1394
_ACEOF
slouken@5310
  1395
  exit
slouken@5310
  1396
fi
slouken@6689
  1397
slouken@6689
  1398
## ------------------------ ##
slouken@6689
  1399
## Autoconf initialization. ##
slouken@6689
  1400
## ------------------------ ##
slouken@6689
  1401
slouken@6689
  1402
# ac_fn_c_try_compile LINENO
slouken@6689
  1403
# --------------------------
slouken@6689
  1404
# Try to compile conftest.$ac_ext, and return whether this succeeded.
slouken@6689
  1405
ac_fn_c_try_compile ()
slouken@6689
  1406
{
slouken@6689
  1407
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
slouken@6689
  1408
  rm -f conftest.$ac_objext
slouken@6689
  1409
  if { { ac_try="$ac_compile"
slouken@6689
  1410
case "(($ac_try" in
slouken@6689
  1411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  1412
  *) ac_try_echo=$ac_try;;
slouken@6689
  1413
esac
slouken@6689
  1414
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  1415
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  1416
  (eval "$ac_compile") 2>conftest.err
slouken@6689
  1417
  ac_status=$?
slouken@6689
  1418
  if test -s conftest.err; then
slouken@6689
  1419
    grep -v '^ *+' conftest.err >conftest.er1
slouken@6689
  1420
    cat conftest.er1 >&5
slouken@6689
  1421
    mv -f conftest.er1 conftest.err
slouken@6689
  1422
  fi
slouken@6689
  1423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  1424
  test $ac_status = 0; } && {
slouken@6689
  1425
	 test -z "$ac_c_werror_flag" ||
slouken@6689
  1426
	 test ! -s conftest.err
slouken@6689
  1427
       } && test -s conftest.$ac_objext; then :
slouken@6689
  1428
  ac_retval=0
slouken@6689
  1429
else
slouken@6689
  1430
  $as_echo "$as_me: failed program was:" >&5
slouken@6689
  1431
sed 's/^/| /' conftest.$ac_ext >&5
slouken@6689
  1432
slouken@6689
  1433
	ac_retval=1
slouken@6689
  1434
fi
slouken@6689
  1435
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
slouken@6689
  1436
  as_fn_set_status $ac_retval
slouken@6689
  1437
slouken@6689
  1438
} # ac_fn_c_try_compile
slouken@6689
  1439
slouken@6689
  1440
# ac_fn_c_try_run LINENO
slouken@6689
  1441
# ----------------------
slouken@6689
  1442
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
slouken@6689
  1443
# that executables *can* be run.
slouken@6689
  1444
ac_fn_c_try_run ()
slouken@6689
  1445
{
slouken@6689
  1446
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
slouken@6689
  1447
  if { { ac_try="$ac_link"
slouken@6689
  1448
case "(($ac_try" in
slouken@6689
  1449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  1450
  *) ac_try_echo=$ac_try;;
slouken@6689
  1451
esac
slouken@6689
  1452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  1453
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  1454
  (eval "$ac_link") 2>&5
slouken@6689
  1455
  ac_status=$?
slouken@6689
  1456
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  1457
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
slouken@6689
  1458
  { { case "(($ac_try" in
slouken@6689
  1459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  1460
  *) ac_try_echo=$ac_try;;
slouken@6689
  1461
esac
slouken@6689
  1462
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  1463
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  1464
  (eval "$ac_try") 2>&5
slouken@6689
  1465
  ac_status=$?
slouken@6689
  1466
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  1467
  test $ac_status = 0; }; }; then :
slouken@6689
  1468
  ac_retval=0
slouken@6689
  1469
else
slouken@6689
  1470
  $as_echo "$as_me: program exited with status $ac_status" >&5
slouken@6689
  1471
       $as_echo "$as_me: failed program was:" >&5
slouken@6689
  1472
sed 's/^/| /' conftest.$ac_ext >&5
slouken@6689
  1473
slouken@6689
  1474
       ac_retval=$ac_status
slouken@6689
  1475
fi
slouken@6689
  1476
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
slouken@6689
  1477
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
slouken@6689
  1478
  as_fn_set_status $ac_retval
slouken@6689
  1479
slouken@6689
  1480
} # ac_fn_c_try_run
slouken@6689
  1481
slouken@6689
  1482
# ac_fn_c_try_link LINENO
slouken@6689
  1483
# -----------------------
slouken@6689
  1484
# Try to link conftest.$ac_ext, and return whether this succeeded.
slouken@6689
  1485
ac_fn_c_try_link ()
slouken@6689
  1486
{
slouken@6689
  1487
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
slouken@6689
  1488
  rm -f conftest.$ac_objext conftest$ac_exeext
slouken@6689
  1489
  if { { ac_try="$ac_link"
slouken@6689
  1490
case "(($ac_try" in
slouken@6689
  1491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  1492
  *) ac_try_echo=$ac_try;;
slouken@6689
  1493
esac
slouken@6689
  1494
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  1495
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  1496
  (eval "$ac_link") 2>conftest.err
slouken@6689
  1497
  ac_status=$?
slouken@6689
  1498
  if test -s conftest.err; then
slouken@6689
  1499
    grep -v '^ *+' conftest.err >conftest.er1
slouken@6689
  1500
    cat conftest.er1 >&5
slouken@6689
  1501
    mv -f conftest.er1 conftest.err
slouken@6689
  1502
  fi
slouken@6689
  1503
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  1504
  test $ac_status = 0; } && {
slouken@6689
  1505
	 test -z "$ac_c_werror_flag" ||
slouken@6689
  1506
	 test ! -s conftest.err
slouken@6689
  1507
       } && test -s conftest$ac_exeext && {
slouken@6689
  1508
	 test "$cross_compiling" = yes ||
slouken@6785
  1509
	 test -x conftest$ac_exeext
slouken@6689
  1510
       }; then :
slouken@6689
  1511
  ac_retval=0
slouken@6689
  1512
else
slouken@6689
  1513
  $as_echo "$as_me: failed program was:" >&5
slouken@6689
  1514
sed 's/^/| /' conftest.$ac_ext >&5
slouken@6689
  1515
slouken@6689
  1516
	ac_retval=1
slouken@6689
  1517
fi
slouken@6689
  1518
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
slouken@6689
  1519
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
slouken@6689
  1520
  # interfere with the next link command; also delete a directory that is
slouken@6689
  1521
  # left behind by Apple's compiler.  We do this before executing the actions.
slouken@6689
  1522
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
slouken@6689
  1523
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
slouken@6689
  1524
  as_fn_set_status $ac_retval
slouken@6689
  1525
slouken@6689
  1526
} # ac_fn_c_try_link
slouken@6689
  1527
slouken@6689
  1528
# ac_fn_c_try_cpp LINENO
slouken@6689
  1529
# ----------------------
slouken@6689
  1530
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
slouken@6689
  1531
ac_fn_c_try_cpp ()
slouken@6689
  1532
{
slouken@6689
  1533
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
slouken@6689
  1534
  if { { ac_try="$ac_cpp conftest.$ac_ext"
slouken@6689
  1535
case "(($ac_try" in
slouken@6689
  1536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  1537
  *) ac_try_echo=$ac_try;;
slouken@6689
  1538
esac
slouken@6689
  1539
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  1540
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  1541
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
slouken@6689
  1542
  ac_status=$?
slouken@6689
  1543
  if test -s conftest.err; then
slouken@6689
  1544
    grep -v '^ *+' conftest.err >conftest.er1
slouken@6689
  1545
    cat conftest.er1 >&5
slouken@6689
  1546
    mv -f conftest.er1 conftest.err
slouken@6689
  1547
  fi
slouken@6689
  1548
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  1549
  test $ac_status = 0; } > conftest.i && {
slouken@6689
  1550
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
slouken@6689
  1551
	 test ! -s conftest.err
slouken@6689
  1552
       }; then :
slouken@6689
  1553
  ac_retval=0
slouken@6689
  1554
else
slouken@6689
  1555
  $as_echo "$as_me: failed program was:" >&5
slouken@6689
  1556
sed 's/^/| /' conftest.$ac_ext >&5
slouken@6689
  1557
slouken@6689
  1558
    ac_retval=1
slouken@6689
  1559
fi
slouken@6689
  1560
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
slouken@6689
  1561
  as_fn_set_status $ac_retval
slouken@6689
  1562
slouken@6689
  1563
} # ac_fn_c_try_cpp
slouken@5310
  1564
cat >config.log <<_ACEOF
slouken@5310
  1565
This file contains any messages produced by compilers while
slouken@5310
  1566
running configure, to aid debugging if configure makes a mistake.
slouken@5310
  1567
slouken@5310
  1568
It was created by $as_me, which was
slouken@6785
  1569
generated by GNU Autoconf 2.69.  Invocation command line was
slouken@5310
  1570
slouken@5310
  1571
  $ $0 $@
slouken@5310
  1572
slouken@5310
  1573
_ACEOF
slouken@5310
  1574
exec 5>>config.log
slouken@5310
  1575
{
slouken@5310
  1576
cat <<_ASUNAME
slouken@5310
  1577
## --------- ##
slouken@5310
  1578
## Platform. ##
slouken@5310
  1579
## --------- ##
slouken@5310
  1580
slouken@5310
  1581
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
slouken@5310
  1582
uname -m = `(uname -m) 2>/dev/null || echo unknown`
slouken@5310
  1583
uname -r = `(uname -r) 2>/dev/null || echo unknown`
slouken@5310
  1584
uname -s = `(uname -s) 2>/dev/null || echo unknown`
slouken@5310
  1585
uname -v = `(uname -v) 2>/dev/null || echo unknown`
slouken@5310
  1586
slouken@5310
  1587
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
slouken@5310
  1588
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
slouken@5310
  1589
slouken@5310
  1590
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
slouken@5310
  1591
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
slouken@5310
  1592
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
slouken@5310
  1593
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
slouken@5310
  1594
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
slouken@5310
  1595
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
slouken@5310
  1596
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
slouken@5310
  1597
slouken@5310
  1598
_ASUNAME
slouken@5310
  1599
slouken@5310
  1600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  1601
for as_dir in $PATH
slouken@5310
  1602
do
slouken@5310
  1603
  IFS=$as_save_IFS
slouken@5310
  1604
  test -z "$as_dir" && as_dir=.
slouken@6689
  1605
    $as_echo "PATH: $as_dir"
slouken@6689
  1606
  done
slouken@5310
  1607
IFS=$as_save_IFS
slouken@5310
  1608
slouken@5310
  1609
} >&5
slouken@5310
  1610
slouken@5310
  1611
cat >&5 <<_ACEOF
slouken@5310
  1612
slouken@5310
  1613
slouken@5310
  1614
## ----------- ##
slouken@5310
  1615
## Core tests. ##
slouken@5310
  1616
## ----------- ##
slouken@5310
  1617
slouken@5310
  1618
_ACEOF
slouken@5310
  1619
slouken@5310
  1620
slouken@5310
  1621
# Keep a trace of the command line.
slouken@5310
  1622
# Strip out --no-create and --no-recursion so they do not pile up.
slouken@5310
  1623
# Strip out --silent because we don't want to record it for future runs.
slouken@5310
  1624
# Also quote any args containing shell meta-characters.
slouken@5310
  1625
# Make two passes to allow for proper duplicate-argument suppression.
slouken@5310
  1626
ac_configure_args=
slouken@5310
  1627
ac_configure_args0=
slouken@5310
  1628
ac_configure_args1=
slouken@5310
  1629
ac_must_keep_next=false
slouken@5310
  1630
for ac_pass in 1 2
slouken@5310
  1631
do
slouken@5310
  1632
  for ac_arg
slouken@5310
  1633
  do
slouken@5310
  1634
    case $ac_arg in
slouken@5310
  1635
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
slouken@5310
  1636
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@5310
  1637
    | -silent | --silent | --silen | --sile | --sil)
slouken@5310
  1638
      continue ;;
slouken@5310
  1639
    *\'*)
slouken@6689
  1640
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
slouken@5310
  1641
    esac
slouken@5310
  1642
    case $ac_pass in
slouken@6689
  1643
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
slouken@5310
  1644
    2)
slouken@6689
  1645
      as_fn_append ac_configure_args1 " '$ac_arg'"
slouken@5310
  1646
      if test $ac_must_keep_next = true; then
slouken@5310
  1647
	ac_must_keep_next=false # Got value, back to normal.
slouken@5310
  1648
      else
slouken@5310
  1649
	case $ac_arg in
slouken@5310
  1650
	  *=* | --config-cache | -C | -disable-* | --disable-* \
slouken@5310
  1651
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
slouken@5310
  1652
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
slouken@5310
  1653
	  | -with-* | --with-* | -without-* | --without-* | --x)
slouken@5310
  1654
	    case "$ac_configure_args0 " in
slouken@5310
  1655
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
slouken@5310
  1656
	    esac
slouken@5310
  1657
	    ;;
slouken@5310
  1658
	  -* ) ac_must_keep_next=true ;;
slouken@5310
  1659
	esac
slouken@5310
  1660
      fi
slouken@6689
  1661
      as_fn_append ac_configure_args " '$ac_arg'"
slouken@5310
  1662
      ;;
slouken@5310
  1663
    esac
slouken@5310
  1664
  done
slouken@5310
  1665
done
slouken@6689
  1666
{ ac_configure_args0=; unset ac_configure_args0;}
slouken@6689
  1667
{ ac_configure_args1=; unset ac_configure_args1;}
slouken@5310
  1668
slouken@5310
  1669
# When interrupted or exit'd, cleanup temporary files, and complete
slouken@5310
  1670
# config.log.  We remove comments because anyway the quotes in there
slouken@5310
  1671
# would cause problems or look ugly.
slouken@5310
  1672
# WARNING: Use '\'' to represent an apostrophe within the trap.
slouken@5310
  1673
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
slouken@5310
  1674
trap 'exit_status=$?
slouken@5310
  1675
  # Save into config.log some information that might help in debugging.
slouken@5310
  1676
  {
slouken@5310
  1677
    echo
slouken@5310
  1678
slouken@6689
  1679
    $as_echo "## ---------------- ##
slouken@5310
  1680
## Cache variables. ##
slouken@6689
  1681
## ---------------- ##"
slouken@5310
  1682
    echo
slouken@5310
  1683
    # The following way of writing the cache mishandles newlines in values,
slouken@5310
  1684
(
slouken@5310
  1685
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
slouken@5310
  1686
    eval ac_val=\$$ac_var
slouken@5310
  1687
    case $ac_val in #(
slouken@5310
  1688
    *${as_nl}*)
slouken@5310
  1689
      case $ac_var in #(
slouken@6689
  1690
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
slouken@6689
  1691
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
slouken@5310
  1692
      esac
slouken@5310
  1693
      case $ac_var in #(
slouken@5310
  1694
      _ | IFS | as_nl) ;; #(
slouken@6689
  1695
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
slouken@6689
  1696
      *) { eval $ac_var=; unset $ac_var;} ;;
slouken@5310
  1697
      esac ;;
slouken@5310
  1698
    esac
slouken@5310
  1699
  done
slouken@5310
  1700
  (set) 2>&1 |
slouken@5310
  1701
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
slouken@5310
  1702
    *${as_nl}ac_space=\ *)
slouken@5310
  1703
      sed -n \
slouken@5310
  1704
	"s/'\''/'\''\\\\'\'''\''/g;
slouken@5310
  1705
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
slouken@5310
  1706
      ;; #(
slouken@5310
  1707
    *)
slouken@5310
  1708
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
slouken@5310
  1709
      ;;
slouken@5310
  1710
    esac |
slouken@5310
  1711
    sort
slouken@5310
  1712
)
slouken@5310
  1713
    echo
slouken@5310
  1714
slouken@6689
  1715
    $as_echo "## ----------------- ##
slouken@5310
  1716
## Output variables. ##
slouken@6689
  1717
## ----------------- ##"
slouken@5310
  1718
    echo
slouken@5310
  1719
    for ac_var in $ac_subst_vars
slouken@5310
  1720
    do
slouken@5310
  1721
      eval ac_val=\$$ac_var
slouken@5310
  1722
      case $ac_val in
slouken@6689
  1723
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
slouken@5310
  1724
      esac
slouken@6689
  1725
      $as_echo "$ac_var='\''$ac_val'\''"
slouken@5310
  1726
    done | sort
slouken@5310
  1727
    echo
slouken@5310
  1728
slouken@5310
  1729
    if test -n "$ac_subst_files"; then
slouken@6689
  1730
      $as_echo "## ------------------- ##
slouken@5310
  1731
## File substitutions. ##
slouken@6689
  1732
## ------------------- ##"
slouken@5310
  1733
      echo
slouken@5310
  1734
      for ac_var in $ac_subst_files
slouken@5310
  1735
      do
slouken@5310
  1736
	eval ac_val=\$$ac_var
slouken@5310
  1737
	case $ac_val in
slouken@6689
  1738
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
slouken@5310
  1739
	esac
slouken@6689
  1740
	$as_echo "$ac_var='\''$ac_val'\''"
slouken@5310
  1741
      done | sort
slouken@5310
  1742
      echo
slouken@5310
  1743
    fi
slouken@5310
  1744
slouken@5310
  1745
    if test -s confdefs.h; then
slouken@6689
  1746
      $as_echo "## ----------- ##
slouken@5310
  1747
## confdefs.h. ##
slouken@6689
  1748
## ----------- ##"
slouken@5310
  1749
      echo
slouken@5310
  1750
      cat confdefs.h
slouken@5310
  1751
      echo
slouken@5310
  1752
    fi
slouken@5310
  1753
    test "$ac_signal" != 0 &&
slouken@6689
  1754
      $as_echo "$as_me: caught signal $ac_signal"
slouken@6689
  1755
    $as_echo "$as_me: exit $exit_status"
slouken@5310
  1756
  } >&5
slouken@5310
  1757
  rm -f core *.core core.conftest.* &&
slouken@5310
  1758
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
slouken@5310
  1759
    exit $exit_status
slouken@5310
  1760
' 0
slouken@5310
  1761
for ac_signal in 1 2 13 15; do
slouken@6689
  1762
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
slouken@5310
  1763
done
slouken@5310
  1764
ac_signal=0
slouken@5310
  1765
slouken@5310
  1766
# confdefs.h avoids OS command line length limits that DEFS can exceed.
slouken@5310
  1767
rm -f -r conftest* confdefs.h
slouken@5310
  1768
slouken@6689
  1769
$as_echo "/* confdefs.h */" > confdefs.h
slouken@6689
  1770
slouken@5310
  1771
# Predefined preprocessor variables.
slouken@5310
  1772
slouken@5310
  1773
cat >>confdefs.h <<_ACEOF
slouken@5310
  1774
#define PACKAGE_NAME "$PACKAGE_NAME"
slouken@5310
  1775
_ACEOF
slouken@5310
  1776
slouken@5310
  1777
cat >>confdefs.h <<_ACEOF
slouken@5310
  1778
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
slouken@5310
  1779
_ACEOF
slouken@5310
  1780
slouken@5310
  1781
cat >>confdefs.h <<_ACEOF
slouken@5310
  1782
#define PACKAGE_VERSION "$PACKAGE_VERSION"
slouken@5310
  1783
_ACEOF
slouken@5310
  1784
slouken@5310
  1785
cat >>confdefs.h <<_ACEOF
slouken@5310
  1786
#define PACKAGE_STRING "$PACKAGE_STRING"
slouken@5310
  1787
_ACEOF
slouken@5310
  1788
slouken@5310
  1789
cat >>confdefs.h <<_ACEOF
slouken@5310
  1790
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
slouken@5310
  1791
_ACEOF
slouken@5310
  1792
slouken@6689
  1793
cat >>confdefs.h <<_ACEOF
slouken@6689
  1794
#define PACKAGE_URL "$PACKAGE_URL"
slouken@6689
  1795
_ACEOF
slouken@6689
  1796
slouken@5310
  1797
slouken@5310
  1798
# Let the site file select an alternate cache file if it wants to.
slouken@6689
  1799
# Prefer an explicitly selected file to automatically selected ones.
slouken@6689
  1800
ac_site_file1=NONE
slouken@6689
  1801
ac_site_file2=NONE
slouken@5310
  1802
if test -n "$CONFIG_SITE"; then
slouken@6689
  1803
  # We do not want a PATH search for config.site.
slouken@6689
  1804
  case $CONFIG_SITE in #((
slouken@6689
  1805
    -*)  ac_site_file1=./$CONFIG_SITE;;
slouken@6689
  1806
    */*) ac_site_file1=$CONFIG_SITE;;
slouken@6689
  1807
    *)   ac_site_file1=./$CONFIG_SITE;;
slouken@6689
  1808
  esac
slouken@5310
  1809
elif test "x$prefix" != xNONE; then
slouken@6689
  1810
  ac_site_file1=$prefix/share/config.site
slouken@6689
  1811
  ac_site_file2=$prefix/etc/config.site
slouken@5310
  1812
else
slouken@6689
  1813
  ac_site_file1=$ac_default_prefix/share/config.site
slouken@6689
  1814
  ac_site_file2=$ac_default_prefix/etc/config.site
slouken@5310
  1815
fi
slouken@6689
  1816
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
slouken@5310
  1817
do
slouken@6689
  1818
  test "x$ac_site_file" = xNONE && continue
slouken@6689
  1819
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
slouken@6689
  1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
slouken@6689
  1821
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
slouken@5310
  1822
    sed 's/^/| /' "$ac_site_file" >&5
slouken@6689
  1823
    . "$ac_site_file" \
slouken@6689
  1824
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  1825
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  1826
as_fn_error $? "failed to load site script $ac_site_file
slouken@6689
  1827
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  1828
  fi
slouken@5310
  1829
done
slouken@5310
  1830
slouken@5310
  1831
if test -r "$cache_file"; then
slouken@6689
  1832
  # Some versions of bash will fail to source /dev/null (special files
slouken@6689
  1833
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
slouken@6689
  1834
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
slouken@6689
  1835
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
slouken@6689
  1836
$as_echo "$as_me: loading cache $cache_file" >&6;}
slouken@5310
  1837
    case $cache_file in
slouken@5310
  1838
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
slouken@5310
  1839
      *)                      . "./$cache_file";;
slouken@5310
  1840
    esac
slouken@5310
  1841
  fi
slouken@5310
  1842
else
slouken@6689
  1843
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
slouken@6689
  1844
$as_echo "$as_me: creating cache $cache_file" >&6;}
slouken@5310
  1845
  >$cache_file
slouken@5310
  1846
fi
slouken@5310
  1847
slouken@5310
  1848
# Check that the precious variables saved in the cache have kept the same
slouken@5310
  1849
# value.
slouken@5310
  1850
ac_cache_corrupted=false
slouken@5310
  1851
for ac_var in $ac_precious_vars; do
slouken@5310
  1852
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
slouken@5310
  1853
  eval ac_new_set=\$ac_env_${ac_var}_set
slouken@5310
  1854
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
slouken@5310
  1855
  eval ac_new_val=\$ac_env_${ac_var}_value
slouken@5310
  1856
  case $ac_old_set,$ac_new_set in
slouken@5310
  1857
    set,)
slouken@6689
  1858
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
slouken@6689
  1859
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
slouken@5310
  1860
      ac_cache_corrupted=: ;;
slouken@5310
  1861
    ,set)
slouken@6689
  1862
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
slouken@6689
  1863
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
slouken@5310
  1864
      ac_cache_corrupted=: ;;
slouken@5310
  1865
    ,);;
slouken@5310
  1866
    *)
slouken@5310
  1867
      if test "x$ac_old_val" != "x$ac_new_val"; then
slouken@6689
  1868
	# differences in whitespace do not lead to failure.
slouken@6689
  1869
	ac_old_val_w=`echo x $ac_old_val`
slouken@6689
  1870
	ac_new_val_w=`echo x $ac_new_val`
slouken@6689
  1871
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
slouken@6689
  1872
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
slouken@6689
  1873
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
slouken@6689
  1874
	  ac_cache_corrupted=:
slouken@6689
  1875
	else
slouken@6689
  1876
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
slouken@6689
  1877
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
slouken@6689
  1878
	  eval $ac_var=\$ac_old_val
slouken@6689
  1879
	fi
slouken@6689
  1880
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
slouken@6689
  1881
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
slouken@6689
  1882
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
slouken@6689
  1883
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
slouken@5310
  1884
      fi;;
slouken@5310
  1885
  esac
slouken@5310
  1886
  # Pass precious variables to config.status.
slouken@5310
  1887
  if test "$ac_new_set" = set; then
slouken@5310
  1888
    case $ac_new_val in
slouken@6689
  1889
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
slouken@5310
  1890
    *) ac_arg=$ac_var=$ac_new_val ;;
slouken@5310
  1891
    esac
slouken@5310
  1892
    case " $ac_configure_args " in
slouken@5310
  1893
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
slouken@6689
  1894
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
slouken@5310
  1895
    esac
slouken@5310
  1896
  fi
slouken@5310
  1897
done
slouken@5310
  1898
if $ac_cache_corrupted; then
slouken@6689
  1899
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  1900
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  1901
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
slouken@6689
  1902
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
slouken@6689
  1903
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
slouken@5310
  1904
fi
slouken@6689
  1905
## -------------------- ##
slouken@6689
  1906
## Main body of script. ##
slouken@6689
  1907
## -------------------- ##
slouken@5310
  1908
slouken@5310
  1909
ac_ext=c
slouken@5310
  1910
ac_cpp='$CPP $CPPFLAGS'
slouken@5310
  1911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
slouken@5310
  1912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
slouken@5310
  1913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
slouken@5310
  1914
slouken@5310
  1915
slouken@5310
  1916
slouken@5310
  1917
ac_aux_dir=
slouken@5310
  1918
for ac_dir in $srcdir/../build-scripts; do
icculus@5876
  1919
  if test -f "$ac_dir/install-sh"; then
icculus@5876
  1920
    ac_aux_dir=$ac_dir
icculus@5876
  1921
    ac_install_sh="$ac_aux_dir/install-sh -c"
icculus@5876
  1922
    break
icculus@5876
  1923
  elif test -f "$ac_dir/install.sh"; then
icculus@5876
  1924
    ac_aux_dir=$ac_dir
icculus@5876
  1925
    ac_install_sh="$ac_aux_dir/install.sh -c"
icculus@5876
  1926
    break
icculus@5876
  1927
  elif test -f "$ac_dir/shtool"; then
icculus@5876
  1928
    ac_aux_dir=$ac_dir
icculus@5876
  1929
    ac_install_sh="$ac_aux_dir/shtool install -c"
icculus@5876
  1930
    break
icculus@5876
  1931
  fi
slouken@5310
  1932
done
slouken@5310
  1933
if test -z "$ac_aux_dir"; then
slouken@6689
  1934
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
slouken@5310
  1935
fi
slouken@5310
  1936
slouken@5310
  1937
# These three variables are undocumented and unsupported,
slouken@5310
  1938
# and are intended to be withdrawn in a future Autoconf release.
slouken@5310
  1939
# They can cause serious problems if a builder's source tree is in a directory
slouken@5310
  1940
# whose full name contains unusual characters.
slouken@5310
  1941
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
slouken@5310
  1942
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
slouken@5310
  1943
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
slouken@5310
  1944
slouken@5310
  1945
slouken@5310
  1946
# Make sure we can run config.sub.
slouken@5310
  1947
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
slouken@6689
  1948
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
slouken@6689
  1949
slouken@6689
  1950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
slouken@6689
  1951
$as_echo_n "checking build system type... " >&6; }
slouken@6689
  1952
if ${ac_cv_build+:} false; then :
slouken@6689
  1953
  $as_echo_n "(cached) " >&6
slouken@5310
  1954
else
slouken@5310
  1955
  ac_build_alias=$build_alias
slouken@5310
  1956
test "x$ac_build_alias" = x &&
slouken@5310
  1957
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
slouken@5310
  1958
test "x$ac_build_alias" = x &&
slouken@6689
  1959
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
slouken@5310
  1960
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
slouken@6689
  1961
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
slouken@5310
  1962
slouken@5310
  1963
fi
slouken@6689
  1964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
slouken@6689
  1965
$as_echo "$ac_cv_build" >&6; }
slouken@5310
  1966
case $ac_cv_build in
slouken@5310
  1967
*-*-*) ;;
slouken@6689
  1968
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
slouken@5310
  1969
esac
slouken@5310
  1970
build=$ac_cv_build
slouken@5310
  1971
ac_save_IFS=$IFS; IFS='-'
slouken@5310
  1972
set x $ac_cv_build
slouken@5310
  1973
shift
slouken@5310
  1974
build_cpu=$1
slouken@5310
  1975
build_vendor=$2
slouken@5310
  1976
shift; shift
slouken@5310
  1977
# Remember, the first character of IFS is used to create $*,
slouken@5310
  1978
# except with old shells:
slouken@5310
  1979
build_os=$*
slouken@5310
  1980
IFS=$ac_save_IFS
slouken@5310
  1981
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
slouken@5310
  1982
slouken@5310
  1983
slouken@6689
  1984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
slouken@6689
  1985
$as_echo_n "checking host system type... " >&6; }
slouken@6689
  1986
if ${ac_cv_host+:} false; then :
slouken@6689
  1987
  $as_echo_n "(cached) " >&6
slouken@5310
  1988
else
slouken@5310
  1989
  if test "x$host_alias" = x; then
slouken@5310
  1990
  ac_cv_host=$ac_cv_build
slouken@5310
  1991
else
slouken@5310
  1992
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
slouken@6689
  1993
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
slouken@5310
  1994
fi
slouken@5310
  1995
slouken@5310
  1996
fi
slouken@6689
  1997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
slouken@6689
  1998
$as_echo "$ac_cv_host" >&6; }
slouken@5310
  1999
case $ac_cv_host in
slouken@5310
  2000
*-*-*) ;;
slouken@6689
  2001
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
slouken@5310
  2002
esac
slouken@5310
  2003
host=$ac_cv_host
slouken@5310
  2004
ac_save_IFS=$IFS; IFS='-'
slouken@5310
  2005
set x $ac_cv_host
slouken@5310
  2006
shift
slouken@5310
  2007
host_cpu=$1
slouken@5310
  2008
host_vendor=$2
slouken@5310
  2009
shift; shift
slouken@5310
  2010
# Remember, the first character of IFS is used to create $*,
slouken@5310
  2011
# except with old shells:
slouken@5310
  2012
host_os=$*
slouken@5310
  2013
IFS=$ac_save_IFS
slouken@5310
  2014
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
slouken@5310
  2015
slouken@5310
  2016
slouken@5310
  2017
slouken@5310
  2018
slouken@5310
  2019
ac_ext=c
slouken@5310
  2020
ac_cpp='$CPP $CPPFLAGS'
slouken@5310
  2021
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
slouken@5310
  2022
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
slouken@5310
  2023
ac_compiler_gnu=$ac_cv_c_compiler_gnu
slouken@5310
  2024
if test -n "$ac_tool_prefix"; then
slouken@5310
  2025
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
slouken@5310
  2026
set dummy ${ac_tool_prefix}gcc; ac_word=$2
slouken@6689
  2027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2028
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2029
if ${ac_cv_prog_CC+:} false; then :
slouken@6689
  2030
  $as_echo_n "(cached) " >&6
slouken@5310
  2031
else
slouken@5310
  2032
  if test -n "$CC"; then
slouken@5310
  2033
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2034
else
slouken@5310
  2035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2036
for as_dir in $PATH
slouken@5310
  2037
do
slouken@5310
  2038
  IFS=$as_save_IFS
slouken@5310
  2039
  test -z "$as_dir" && as_dir=.
slouken@6689
  2040
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2041
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2042
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
slouken@6689
  2043
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2044
    break 2
slouken@5310
  2045
  fi
slouken@5310
  2046
done
slouken@6689
  2047
  done
slouken@5310
  2048
IFS=$as_save_IFS
slouken@5310
  2049
slouken@5310
  2050
fi
slouken@5310
  2051
fi
slouken@5310
  2052
CC=$ac_cv_prog_CC
slouken@5310
  2053
if test -n "$CC"; then
slouken@6689
  2054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
slouken@6689
  2055
$as_echo "$CC" >&6; }
slouken@5310
  2056
else
slouken@6689
  2057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2058
$as_echo "no" >&6; }
slouken@5310
  2059
fi
slouken@5310
  2060
slouken@5310
  2061
slouken@5310
  2062
fi
slouken@5310
  2063
if test -z "$ac_cv_prog_CC"; then
slouken@5310
  2064
  ac_ct_CC=$CC
slouken@5310
  2065
  # Extract the first word of "gcc", so it can be a program name with args.
slouken@5310
  2066
set dummy gcc; ac_word=$2
slouken@6689
  2067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2068
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2069
if ${ac_cv_prog_ac_ct_CC+:} false; then :
slouken@6689
  2070
  $as_echo_n "(cached) " >&6
slouken@5310
  2071
else
slouken@5310
  2072
  if test -n "$ac_ct_CC"; then
slouken@5310
  2073
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
slouken@5310
  2074
else
slouken@5310
  2075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2076
for as_dir in $PATH
slouken@5310
  2077
do
slouken@5310
  2078
  IFS=$as_save_IFS
slouken@5310
  2079
  test -z "$as_dir" && as_dir=.
slouken@6689
  2080
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2081
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2082
    ac_cv_prog_ac_ct_CC="gcc"
slouken@6689
  2083
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2084
    break 2
slouken@5310
  2085
  fi
slouken@5310
  2086
done
slouken@6689
  2087
  done
slouken@5310
  2088
IFS=$as_save_IFS
slouken@5310
  2089
slouken@5310
  2090
fi
slouken@5310
  2091
fi
slouken@5310
  2092
ac_ct_CC=$ac_cv_prog_ac_ct_CC
slouken@5310
  2093
if test -n "$ac_ct_CC"; then
slouken@6689
  2094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
slouken@6689
  2095
$as_echo "$ac_ct_CC" >&6; }
slouken@5310
  2096
else
slouken@6689
  2097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2098
$as_echo "no" >&6; }
slouken@5310
  2099
fi
slouken@5310
  2100
slouken@5310
  2101
  if test "x$ac_ct_CC" = x; then
slouken@5310
  2102
    CC=""
slouken@5310
  2103
  else
slouken@5310
  2104
    case $cross_compiling:$ac_tool_warned in
slouken@5310
  2105
yes:)
slouken@6689
  2106
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
slouken@6689
  2107
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
slouken@5310
  2108
ac_tool_warned=yes ;;
slouken@5310
  2109
esac
slouken@5310
  2110
    CC=$ac_ct_CC
slouken@5310
  2111
  fi
slouken@5310
  2112
else
slouken@5310
  2113
  CC="$ac_cv_prog_CC"
slouken@5310
  2114
fi
slouken@5310
  2115
slouken@5310
  2116
if test -z "$CC"; then
slouken@5310
  2117
          if test -n "$ac_tool_prefix"; then
slouken@5310
  2118
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
slouken@5310
  2119
set dummy ${ac_tool_prefix}cc; ac_word=$2
slouken@6689
  2120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2121
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2122
if ${ac_cv_prog_CC+:} false; then :
slouken@6689
  2123
  $as_echo_n "(cached) " >&6
slouken@5310
  2124
else
slouken@5310
  2125
  if test -n "$CC"; then
slouken@5310
  2126
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2127
else
slouken@5310
  2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2129
for as_dir in $PATH
slouken@5310
  2130
do
slouken@5310
  2131
  IFS=$as_save_IFS
slouken@5310
  2132
  test -z "$as_dir" && as_dir=.
slouken@6689
  2133
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2134
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2135
    ac_cv_prog_CC="${ac_tool_prefix}cc"
slouken@6689
  2136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2137
    break 2
slouken@5310
  2138
  fi
slouken@5310
  2139
done
slouken@6689
  2140
  done
slouken@5310
  2141
IFS=$as_save_IFS
slouken@5310
  2142
slouken@5310
  2143
fi
slouken@5310
  2144
fi
slouken@5310
  2145
CC=$ac_cv_prog_CC
slouken@5310
  2146
if test -n "$CC"; then
slouken@6689
  2147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
slouken@6689
  2148
$as_echo "$CC" >&6; }
slouken@5310
  2149
else
slouken@6689
  2150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2151
$as_echo "no" >&6; }
slouken@5310
  2152
fi
slouken@5310
  2153
slouken@5310
  2154
slouken@5310
  2155
  fi
slouken@5310
  2156
fi
slouken@5310
  2157
if test -z "$CC"; then
slouken@5310
  2158
  # Extract the first word of "cc", so it can be a program name with args.
slouken@5310
  2159
set dummy cc; ac_word=$2
slouken@6689
  2160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2161
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2162
if ${ac_cv_prog_CC+:} false; then :
slouken@6689
  2163
  $as_echo_n "(cached) " >&6
slouken@5310
  2164
else
slouken@5310
  2165
  if test -n "$CC"; then
slouken@5310
  2166
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2167
else
slouken@5310
  2168
  ac_prog_rejected=no
slouken@5310
  2169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2170
for as_dir in $PATH
slouken@5310
  2171
do
slouken@5310
  2172
  IFS=$as_save_IFS
slouken@5310
  2173
  test -z "$as_dir" && as_dir=.
slouken@6689
  2174
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2175
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2176
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
slouken@5310
  2177
       ac_prog_rejected=yes
slouken@5310
  2178
       continue
slouken@5310
  2179
     fi
slouken@5310
  2180
    ac_cv_prog_CC="cc"
slouken@6689
  2181
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2182
    break 2
slouken@5310
  2183
  fi
slouken@5310
  2184
done
slouken@6689
  2185
  done
slouken@5310
  2186
IFS=$as_save_IFS
slouken@5310
  2187
slouken@5310
  2188
if test $ac_prog_rejected = yes; then
slouken@5310
  2189
  # We found a bogon in the path, so make sure we never use it.
slouken@5310
  2190
  set dummy $ac_cv_prog_CC
slouken@5310
  2191
  shift
slouken@5310
  2192
  if test $# != 0; then
slouken@5310
  2193
    # We chose a different compiler from the bogus one.
slouken@5310
  2194
    # However, it has the same basename, so the bogon will be chosen
slouken@5310
  2195
    # first if we set CC to just the basename; use the full file name.
slouken@5310
  2196
    shift
slouken@5310
  2197
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
slouken@5310
  2198
  fi
slouken@5310
  2199
fi
slouken@5310
  2200
fi
slouken@5310
  2201
fi
slouken@5310
  2202
CC=$ac_cv_prog_CC
slouken@5310
  2203
if test -n "$CC"; then
slouken@6689
  2204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
slouken@6689
  2205
$as_echo "$CC" >&6; }
slouken@5310
  2206
else
slouken@6689
  2207
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2208
$as_echo "no" >&6; }
slouken@5310
  2209
fi
slouken@5310
  2210
slouken@5310
  2211
slouken@5310
  2212
fi
slouken@5310
  2213
if test -z "$CC"; then
slouken@5310
  2214
  if test -n "$ac_tool_prefix"; then
slouken@5310
  2215
  for ac_prog in cl.exe
slouken@5310
  2216
  do
slouken@5310
  2217
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
slouken@5310
  2218
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
slouken@6689
  2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2220
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2221
if ${ac_cv_prog_CC+:} false; then :
slouken@6689
  2222
  $as_echo_n "(cached) " >&6
slouken@5310
  2223
else
slouken@5310
  2224
  if test -n "$CC"; then
slouken@5310
  2225
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@5310
  2226
else
slouken@5310
  2227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2228
for as_dir in $PATH
slouken@5310
  2229
do
slouken@5310
  2230
  IFS=$as_save_IFS
slouken@5310
  2231
  test -z "$as_dir" && as_dir=.
slouken@6689
  2232
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2233
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2234
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
slouken@6689
  2235
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2236
    break 2
slouken@5310
  2237
  fi
slouken@5310
  2238
done
slouken@6689
  2239
  done
slouken@5310
  2240
IFS=$as_save_IFS
slouken@5310
  2241
slouken@5310
  2242
fi
slouken@5310
  2243
fi
slouken@5310
  2244
CC=$ac_cv_prog_CC
slouken@5310
  2245
if test -n "$CC"; then
slouken@6689
  2246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
slouken@6689
  2247
$as_echo "$CC" >&6; }
slouken@5310
  2248
else
slouken@6689
  2249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2250
$as_echo "no" >&6; }
slouken@5310
  2251
fi
slouken@5310
  2252
slouken@5310
  2253
slouken@5310
  2254
    test -n "$CC" && break
slouken@5310
  2255
  done
slouken@5310
  2256
fi
slouken@5310
  2257
if test -z "$CC"; then
slouken@5310
  2258
  ac_ct_CC=$CC
slouken@5310
  2259
  for ac_prog in cl.exe
slouken@5310
  2260
do
slouken@5310
  2261
  # Extract the first word of "$ac_prog", so it can be a program name with args.
slouken@5310
  2262
set dummy $ac_prog; ac_word=$2
slouken@6689
  2263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
slouken@6689
  2264
$as_echo_n "checking for $ac_word... " >&6; }
slouken@6689
  2265
if ${ac_cv_prog_ac_ct_CC+:} false; then :
slouken@6689
  2266
  $as_echo_n "(cached) " >&6
slouken@5310
  2267
else
slouken@5310
  2268
  if test -n "$ac_ct_CC"; then
slouken@5310
  2269
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
slouken@5310
  2270
else
slouken@5310
  2271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
slouken@5310
  2272
for as_dir in $PATH
slouken@5310
  2273
do
slouken@5310
  2274
  IFS=$as_save_IFS
slouken@5310
  2275
  test -z "$as_dir" && as_dir=.
slouken@6689
  2276
    for ac_exec_ext in '' $ac_executable_extensions; do
slouken@6785
  2277
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
slouken@5310
  2278
    ac_cv_prog_ac_ct_CC="$ac_prog"
slouken@6689
  2279
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
slouken@5310
  2280
    break 2
slouken@5310
  2281
  fi
slouken@5310
  2282
done
slouken@6689
  2283
  done
slouken@5310
  2284
IFS=$as_save_IFS
slouken@5310
  2285
slouken@5310
  2286
fi
slouken@5310
  2287
fi
slouken@5310
  2288
ac_ct_CC=$ac_cv_prog_ac_ct_CC
slouken@5310
  2289
if test -n "$ac_ct_CC"; then
slouken@6689
  2290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
slouken@6689
  2291
$as_echo "$ac_ct_CC" >&6; }
slouken@5310
  2292
else
slouken@6689
  2293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2294
$as_echo "no" >&6; }
slouken@5310
  2295
fi
slouken@5310
  2296
slouken@5310
  2297
slouken@5310
  2298
  test -n "$ac_ct_CC" && break
slouken@5310
  2299
done
slouken@5310
  2300
slouken@5310
  2301
  if test "x$ac_ct_CC" = x; then
slouken@5310
  2302
    CC=""
slouken@5310
  2303
  else
slouken@5310
  2304
    case $cross_compiling:$ac_tool_warned in
slouken@5310
  2305
yes:)
slouken@6689
  2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
slouken@6689
  2307
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
slouken@5310
  2308
ac_tool_warned=yes ;;
slouken@5310
  2309
esac
slouken@5310
  2310
    CC=$ac_ct_CC
slouken@5310
  2311
  fi
slouken@5310
  2312
fi
slouken@5310
  2313
slouken@5310
  2314
fi
slouken@5310
  2315
slouken@5310
  2316
slouken@6689
  2317
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  2318
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  2319
as_fn_error $? "no acceptable C compiler found in \$PATH
slouken@6689
  2320
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  2321
slouken@5310
  2322
# Provide some information about the compiler.
slouken@6689
  2323
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
slouken@6689
  2324
set X $ac_compile
slouken@6689
  2325
ac_compiler=$2
slouken@6689
  2326
for ac_option in --version -v -V -qversion; do
slouken@6689
  2327
  { { ac_try="$ac_compiler $ac_option >&5"
slouken@5310
  2328
case "(($ac_try" in
slouken@5310
  2329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2330
  *) ac_try_echo=$ac_try;;
slouken@5310
  2331
esac
slouken@6689
  2332
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  2333
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  2334
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
slouken@5310
  2335
  ac_status=$?
slouken@6689
  2336
  if test -s conftest.err; then
slouken@6689
  2337
    sed '10a\
slouken@6689
  2338
... rest of stderr output deleted ...
slouken@6689
  2339
         10q' conftest.err >conftest.er1
slouken@6689
  2340
    cat conftest.er1 >&5
slouken@6689
  2341
  fi
slouken@6689
  2342
  rm -f conftest.er1 conftest.err
slouken@6689
  2343
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  2344
  test $ac_status = 0; }
slouken@6689
  2345
done
slouken@6689
  2346
slouken@6689
  2347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
slouken@5310
  2348
/* end confdefs.h.  */
slouken@5310
  2349
slouken@5310
  2350
int
slouken@5310
  2351
main ()
slouken@5310
  2352
{
slouken@5310
  2353
slouken@5310
  2354
  ;
slouken@5310
  2355
  return 0;
slouken@5310
  2356
}
slouken@5310
  2357
_ACEOF
slouken@5310
  2358
ac_clean_files_save=$ac_clean_files
slouken@6689
  2359
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
slouken@5310
  2360
# Try to create an executable without -o first, disregard a.out.
slouken@5310
  2361
# It will help us diagnose broken compilers, and finding out an intuition
slouken@5310
  2362
# of exeext.
slouken@6689
  2363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
slouken@6689
  2364
$as_echo_n "checking whether the C compiler works... " >&6; }
slouken@6689
  2365
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
slouken@6689
  2366
slouken@6689
  2367
# The possible output files:
slouken@6689
  2368
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
slouken@6689
  2369
slouken@5310
  2370
ac_rmfiles=
slouken@5310
  2371
for ac_file in $ac_files
slouken@5310
  2372
do
slouken@5310
  2373
  case $ac_file in
slouken@6689
  2374
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
slouken@5310
  2375
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
slouken@5310
  2376
  esac
slouken@5310
  2377
done
slouken@5310
  2378
rm -f $ac_rmfiles
slouken@5310
  2379
slouken@6689
  2380
if { { ac_try="$ac_link_default"
slouken@5310
  2381
case "(($ac_try" in
slouken@5310
  2382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2383
  *) ac_try_echo=$ac_try;;
slouken@5310
  2384
esac
slouken@6689
  2385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  2386
$as_echo "$ac_try_echo"; } >&5
slouken@5310
  2387
  (eval "$ac_link_default") 2>&5
slouken@5310
  2388
  ac_status=$?
slouken@6689
  2389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  2390
  test $ac_status = 0; }; then :
slouken@5310
  2391
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
slouken@5310
  2392
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
slouken@5310
  2393
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
slouken@5310
  2394
# so that the user can short-circuit this test for compilers unknown to
slouken@5310
  2395
# Autoconf.
slouken@5310
  2396
for ac_file in $ac_files ''
slouken@5310
  2397
do
slouken@5310
  2398
  test -f "$ac_file" || continue
slouken@5310
  2399
  case $ac_file in
slouken@6689
  2400
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
slouken@5310
  2401
	;;
slouken@5310
  2402
    [ab].out )
slouken@5310
  2403
	# We found the default executable, but exeext='' is most
slouken@5310
  2404
	# certainly right.
slouken@5310
  2405
	break;;
slouken@5310
  2406
    *.* )
slouken@6689
  2407
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
slouken@5310
  2408
	then :; else
slouken@5310
  2409
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
slouken@5310
  2410
	fi
slouken@5310
  2411
	# We set ac_cv_exeext here because the later test for it is not
slouken@5310
  2412
	# safe: cross compilers may not add the suffix if given an `-o'
slouken@5310
  2413
	# argument, so we may need to know it at that point already.
slouken@5310
  2414
	# Even if this section looks crufty: it has the advantage of
slouken@5310
  2415
	# actually working.
slouken@5310
  2416
	break;;
slouken@5310
  2417
    * )
slouken@5310
  2418
	break;;
slouken@5310
  2419
  esac
slouken@5310
  2420
done
slouken@5310
  2421
test "$ac_cv_exeext" = no && ac_cv_exeext=
slouken@5310
  2422
slouken@5310
  2423
else
slouken@5310
  2424
  ac_file=''
slouken@5310
  2425
fi
slouken@6689
  2426
if test -z "$ac_file"; then :
slouken@6689
  2427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
slouken@6689
  2428
$as_echo "no" >&6; }
slouken@6689
  2429
$as_echo "$as_me: failed program was:" >&5
slouken@5310
  2430
sed 's/^/| /' conftest.$ac_ext >&5
slouken@5310
  2431
slouken@6689
  2432
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  2433
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  2434
as_fn_error 77 "C compiler cannot create executables
slouken@6689
  2435
See \`config.log' for more details" "$LINENO" 5; }
slouken@6689
  2436
else
slouken@6689
  2437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
slouken@6689
  2438
$as_echo "yes" >&6; }
slouken@5310
  2439
fi
slouken@6689
  2440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
slouken@6689
  2441
$as_echo_n "checking for C compiler default output file name... " >&6; }
slouken@6689
  2442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
slouken@6689
  2443
$as_echo "$ac_file" >&6; }
slouken@5310
  2444
ac_exeext=$ac_cv_exeext
slouken@5310
  2445
slouken@6689
  2446
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
slouken@5310
  2447
ac_clean_files=$ac_clean_files_save
slouken@6689
  2448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
slouken@6689
  2449
$as_echo_n "checking for suffix of executables... " >&6; }
slouken@6689
  2450
if { { ac_try="$ac_link"
slouken@5310
  2451
case "(($ac_try" in
slouken@5310
  2452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@5310
  2453
  *) ac_try_echo=$ac_try;;
slouken@5310
  2454
esac
slouken@6689
  2455
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  2456
$as_echo "$ac_try_echo"; } >&5
slouken@5310
  2457
  (eval "$ac_link") 2>&5
slouken@5310
  2458
  ac_status=$?
slouken@6689
  2459
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  2460
  test $ac_status = 0; }; then :
slouken@5310
  2461
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
slouken@5310
  2462
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
slouken@5310
  2463
# work properly (i.e., refer to `conftest.exe'), while it won't with
slouken@5310
  2464
# `rm'.
slouken@5310
  2465
for ac_file in conftest.exe conftest conftest.*; do
slouken@5310
  2466
  test -f "$ac_file" || continue
slouken@5310
  2467
  case $ac_file in
slouken@6689
  2468
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
slouken@5310
  2469
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
slouken@5310
  2470
	  break;;
slouken@5310
  2471
    * ) break;;
slouken@5310
  2472
  esac
slouken@5310
  2473
done
slouken@5310
  2474
else
slouken@6689
  2475
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  2476
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  2477
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
slouken@6689
  2478
See \`config.log' for more details" "$LINENO" 5; }
slouken@5310
  2479
fi
slouken@6689
  2480
rm -f conftest conftest$ac_cv_exeext
slouken@6689
  2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
slouken@6689
  2482
$as_echo "$ac_cv_exeext" >&6; }
slouken@5310
  2483
slouken@5310
  2484
rm -f conftest.$ac_ext
slouken@5310
  2485
EXEEXT=$ac_cv_exeext
slouken@5310
  2486
ac_exeext=$EXEEXT
slouken@6689
  2487
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
slouken@6689
  2488
/* end confdefs.h.  */
slouken@6689
  2489
#include <stdio.h>
slouken@6689
  2490
int
slouken@6689
  2491
main ()
slouken@6689
  2492
{
slouken@6689
  2493
FILE *f = fopen ("conftest.out", "w");
slouken@6689
  2494
 return ferror (f) || fclose (f) != 0;
slouken@6689
  2495
slouken@6689
  2496
  ;
slouken@6689
  2497
  return 0;
slouken@6689
  2498
}
slouken@6689
  2499
_ACEOF
slouken@6689
  2500
ac_clean_files="$ac_clean_files conftest.out"
slouken@6689
  2501
# Check that the compiler produces executables we can run.  If not, either
slouken@6689
  2502
# the compiler is broken, or we cross compile.
slouken@6689
  2503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
slouken@6689
  2504
$as_echo_n "checking whether we are cross compiling... " >&6; }
slouken@6689
  2505
if test "$cross_compiling" != yes; then
slouken@6689
  2506
  { { ac_try="$ac_link"
slouken@6689
  2507
case "(($ac_try" in
slouken@6689
  2508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  2509
  *) ac_try_echo=$ac_try;;
slouken@6689
  2510
esac
slouken@6689
  2511
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  2512
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  2513
  (eval "$ac_link") 2>&5
slouken@6689
  2514
  ac_status=$?
slouken@6689
  2515
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  2516
  test $ac_status = 0; }
slouken@6689
  2517
  if { ac_try='./conftest$ac_cv_exeext'
slouken@6689
  2518
  { { case "(($ac_try" in
slouken@6689
  2519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
slouken@6689
  2520
  *) ac_try_echo=$ac_try;;
slouken@6689
  2521
esac
slouken@6689
  2522
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
slouken@6689
  2523
$as_echo "$ac_try_echo"; } >&5
slouken@6689
  2524
  (eval "$ac_try") 2>&5
slouken@6689
  2525
  ac_status=$?
slouken@6689
  2526
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
slouken@6689
  2527
  test $ac_status = 0; }; }; then
slouken@6689
  2528
    cross_compiling=no
slouken@6689
  2529
  else
slouken@6689
  2530
    if test "$cross_compiling" = maybe; then
slouken@6689
  2531
	cross_compiling=yes
slouken@6689
  2532
    else
slouken@6689
  2533
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
slouken@6689
  2534
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
slouken@6689
  2535
as_fn_error $? "cannot run C compiled programs.
slouken@6689
  2536
If you meant to cross compile, use \`--host'.
slouken@6689
  2537
See \`config.log' for more details" "$LINENO" 5; }
slouken@6689
  2538
    fi
slouken@6689
  2539
  fi
slouken@6689
  2540
fi
slouken@6689
  2541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
slouken@6689
  2542
$as_echo "$cross_compiling" >&6; }
slouken@6689
  2543
slouken@6689
  2544
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
slouken@6689
  2545
ac_clean_files=$ac_clean_files_save
slouken@6689
  2546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
slouken@6689
  2547
$as_echo_n "checking for suffix of object files... " >&6; }
slouken@6689
  2548
if ${ac_cv_objext+:} false; then :
slouken@6689
  2549
  $as_echo_n "(cached) " >&6
slouken@6688
  2550
else
slouken@6689
  2551
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
slouken@5310
  2552
/* end confdefs.h.  */
slouken@5310
  2553
slouken@5310
  2554
int
slouken@5310
  2555
main ()