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