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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [test-code-or1k/] [configure] - Blame information for rev 510

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

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