OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 532

Go to most recent revision | Details | Compare with Previous | View Log

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