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

Subversion Repositories openrisc

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

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 625 jeremybenn
# Generated by GNU Autoconf 2.68 for or1ksim-testsuite 2011-08-15.
4 90 jeremybenn
#
5
# Report bugs to .
6
#
7 625 jeremybenn
#
8 90 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 625 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 538 julius
# Foundation, Inc.
11 346 jeremybenn
#
12 625 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 625 jeremybenn
as_myself=
95 346 jeremybenn
case $0 in #((
96 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
for as_dir in $PATH
99
do
100
  IFS=$as_save_IFS
101
  test -z "$as_dir" && as_dir=.
102 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103
  done
104 90 jeremybenn
IFS=$as_save_IFS
105
 
106
     ;;
107
esac
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
111
  as_myself=$0
112
fi
113
if test ! -f "$as_myself"; then
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 346 jeremybenn
  exit 1
116 90 jeremybenn
fi
117
 
118 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there.  '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 90 jeremybenn
done
126
PS1='$ '
127
PS2='> '
128
PS4='+ '
129
 
130
# NLS nuisances.
131
LC_ALL=C
132
export LC_ALL
133
LANGUAGE=C
134
export LANGUAGE
135
 
136
# CDPATH.
137 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 90 jeremybenn
 
139
if test "x$CONFIG_SHELL" = x; then
140 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
  emulate sh
142
  NULLCMD=:
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
  # is contrary to our usage.  Disable this feature.
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
  setopt NO_GLOB_SUBST
147 90 jeremybenn
else
148 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
149
  *posix*) :
150
    set -o posix ;; #(
151
  *) :
152
     ;;
153
esac
154 90 jeremybenn
fi
155 346 jeremybenn
"
156
  as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
161 90 jeremybenn
 
162
exitcode=0
163 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 90 jeremybenn
 
169
else
170 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
171 90 jeremybenn
fi
172 346 jeremybenn
test x\$exitcode = x0 || exit 1"
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1"
178
  if (eval "$as_required") 2>/dev/null; then :
179
  as_have_required=yes
180 90 jeremybenn
else
181 346 jeremybenn
  as_have_required=no
182 90 jeremybenn
fi
183 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 90 jeremybenn
 
185
else
186 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
as_found=false
188 90 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189
do
190
  IFS=$as_save_IFS
191
  test -z "$as_dir" && as_dir=.
192 346 jeremybenn
  as_found=:
193
  case $as_dir in #(
194 90 jeremybenn
         /*)
195
           for as_base in sh bash ksh sh5; do
196 346 jeremybenn
             # Try only shells that exist, to save several forks.
197
             as_shell=$as_dir/$as_base
198
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200
  CONFIG_SHELL=$as_shell as_have_required=yes
201
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202
  break 2
203
fi
204
fi
205 90 jeremybenn
           done;;
206
       esac
207 346 jeremybenn
  as_found=false
208 90 jeremybenn
done
209 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211
  CONFIG_SHELL=$SHELL as_have_required=yes
212
fi; }
213 90 jeremybenn
IFS=$as_save_IFS
214
 
215
 
216 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
217
  # We cannot yet assume a decent shell, so we have to provide a
218
        # neutralization value for shells without unset; and this also
219
        # works around shells that cannot unset nonexistent variables.
220 625 jeremybenn
        # Preserve -v and -x to the replacement shell.
221 346 jeremybenn
        BASH_ENV=/dev/null
222
        ENV=/dev/null
223
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224
        export CONFIG_SHELL
225 625 jeremybenn
        case $- in # ((((
226
          *v*x* | *x*v* ) as_opts=-vx ;;
227
          *v* ) as_opts=-v ;;
228
          *x* ) as_opts=-x ;;
229
          * ) as_opts= ;;
230
        esac
231
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 90 jeremybenn
fi
233
 
234 346 jeremybenn
    if test x$as_have_required = xno; then :
235
  $as_echo "$0: This script requires a shell more modern than all"
236
  $as_echo "$0: the shells that I found on your system."
237
  if test x${ZSH_VERSION+set} = xset ; then
238
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240
  else
241
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242
$0: openrisc@opencores.org about your system, including any
243
$0: error possibly output before this message. Then install
244
$0: a modern shell, or manually run the script under such a
245
$0: shell if you do have one."
246
  fi
247
  exit 1
248 90 jeremybenn
fi
249
fi
250
fi
251 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
252
export SHELL
253
# Unset more variables known to interfere with behavior of common tools.
254
CLICOLOR_FORCE= GREP_OPTIONS=
255
unset CLICOLOR_FORCE GREP_OPTIONS
256 90 jeremybenn
 
257 346 jeremybenn
## --------------------- ##
258
## M4sh Shell Functions. ##
259
## --------------------- ##
260
# as_fn_unset VAR
261
# ---------------
262
# Portably unset VAR.
263
as_fn_unset ()
264
{
265
  { eval $1=; unset $1;}
266
}
267
as_unset=as_fn_unset
268 90 jeremybenn
 
269 346 jeremybenn
# as_fn_set_status STATUS
270
# -----------------------
271
# Set $? to STATUS, without forking.
272
as_fn_set_status ()
273
{
274
  return $1
275
} # as_fn_set_status
276 90 jeremybenn
 
277 346 jeremybenn
# as_fn_exit STATUS
278
# -----------------
279
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280
as_fn_exit ()
281
{
282
  set +e
283
  as_fn_set_status $1
284
  exit $1
285
} # as_fn_exit
286 90 jeremybenn
 
287 346 jeremybenn
# as_fn_mkdir_p
288
# -------------
289
# Create "$as_dir" as a directory, including parents if necessary.
290
as_fn_mkdir_p ()
291
{
292 90 jeremybenn
 
293 346 jeremybenn
  case $as_dir in #(
294
  -*) as_dir=./$as_dir;;
295
  esac
296
  test -d "$as_dir" || eval $as_mkdir_p || {
297
    as_dirs=
298
    while :; do
299
      case $as_dir in #(
300
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301
      *) as_qdir=$as_dir;;
302
      esac
303
      as_dirs="'$as_qdir' $as_dirs"
304
      as_dir=`$as_dirname -- "$as_dir" ||
305
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306
         X"$as_dir" : 'X\(//\)[^/]' \| \
307
         X"$as_dir" : 'X\(//\)$' \| \
308
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309
$as_echo X"$as_dir" |
310
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311
            s//\1/
312
            q
313
          }
314
          /^X\(\/\/\)[^/].*/{
315
            s//\1/
316
            q
317
          }
318
          /^X\(\/\/\)$/{
319
            s//\1/
320
            q
321
          }
322
          /^X\(\/\).*/{
323
            s//\1/
324
            q
325
          }
326
          s/.*/./; q'`
327
      test -d "$as_dir" && break
328
    done
329
    test -z "$as_dirs" || eval "mkdir $as_dirs"
330 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 90 jeremybenn
 
332
 
333 346 jeremybenn
} # as_fn_mkdir_p
334
# as_fn_append VAR VALUE
335
# ----------------------
336
# Append the text in VALUE to the end of the definition contained in VAR. Take
337
# advantage of any shell optimizations that allow amortized linear growth over
338
# repeated appends, instead of the typical quadratic growth present in naive
339
# implementations.
340
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341
  eval 'as_fn_append ()
342
  {
343
    eval $1+=\$2
344
  }'
345
else
346
  as_fn_append ()
347
  {
348
    eval $1=\$$1\$2
349
  }
350
fi # as_fn_append
351 90 jeremybenn
 
352 346 jeremybenn
# as_fn_arith ARG...
353
# ------------------
354
# Perform arithmetic evaluation on the ARGs, and store the result in the
355
# global $as_val. Take advantage of shells that can avoid forks. The arguments
356
# must be portable across $(()) and expr.
357
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358
  eval 'as_fn_arith ()
359
  {
360
    as_val=$(( $* ))
361
  }'
362
else
363
  as_fn_arith ()
364
  {
365
    as_val=`expr "$@" || test $? -eq 1`
366
  }
367
fi # as_fn_arith
368 90 jeremybenn
 
369
 
370 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
371
# ----------------------------------------
372 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 625 jeremybenn
# script with STATUS, using 1 if that was 0.
375 346 jeremybenn
as_fn_error ()
376
{
377 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
378
  if test "$4"; then
379
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 346 jeremybenn
  fi
382 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
383 346 jeremybenn
  as_fn_exit $as_status
384
} # as_fn_error
385 90 jeremybenn
 
386 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
387
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388
  as_expr=expr
389 90 jeremybenn
else
390 346 jeremybenn
  as_expr=false
391 90 jeremybenn
fi
392
 
393 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394
  as_basename=basename
395 90 jeremybenn
else
396 346 jeremybenn
  as_basename=false
397 90 jeremybenn
fi
398
 
399 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400
  as_dirname=dirname
401 90 jeremybenn
else
402 346 jeremybenn
  as_dirname=false
403 90 jeremybenn
fi
404
 
405 346 jeremybenn
as_me=`$as_basename -- "$0" ||
406
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407
         X"$0" : 'X\(//\)$' \| \
408
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409
$as_echo X/"$0" |
410
    sed '/^.*\/\([^/][^/]*\)\/*$/{
411
            s//\1/
412
            q
413
          }
414
          /^X\/\(\/\/\)$/{
415
            s//\1/
416
            q
417
          }
418
          /^X\/\(\/\).*/{
419
            s//\1/
420
            q
421
          }
422
          s/.*/./; q'`
423 90 jeremybenn
 
424 346 jeremybenn
# Avoid depending upon Character Ranges.
425
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428
as_cr_digits='0123456789'
429
as_cr_alnum=$as_cr_Letters$as_cr_digits
430 90 jeremybenn
 
431
 
432 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437 90 jeremybenn
  sed -n '
438
    p
439
    /[$]LINENO/=
440
  ' <$as_myself |
441
    sed '
442
      s/[$]LINENO.*/&-/
443
      t lineno
444
      b
445
      :lineno
446
      N
447
      :loop
448
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449
      t loop
450
      s/-\n.*//
451
    ' >$as_me.lineno &&
452
  chmod +x "$as_me.lineno" ||
453 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454 90 jeremybenn
 
455
  # Don't try to exec as it changes $[0], causing all sort of problems
456
  # (the dirname of $[0] is not the place where we might find the
457
  # original and so on.  Autoconf is especially sensitive to this).
458
  . "./$as_me.lineno"
459
  # Exit status is that of the last command.
460
  exit
461
}
462
 
463
ECHO_C= ECHO_N= ECHO_T=
464 346 jeremybenn
case `echo -n x` in #(((((
465 90 jeremybenn
-n*)
466 346 jeremybenn
  case `echo 'xy\c'` in
467 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468 346 jeremybenn
  xy)  ECHO_C='\c';;
469
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470
       ECHO_T=' ';;
471 90 jeremybenn
  esac;;
472
*)
473
  ECHO_N='-n';;
474
esac
475
 
476
rm -f conf$$ conf$$.exe conf$$.file
477
if test -d conf$$.dir; then
478
  rm -f conf$$.dir/conf$$.file
479
else
480
  rm -f conf$$.dir
481
  mkdir conf$$.dir 2>/dev/null
482
fi
483
if (echo >conf$$.file) 2>/dev/null; then
484
  if ln -s conf$$.file conf$$ 2>/dev/null; then
485
    as_ln_s='ln -s'
486
    # ... but there are two gotchas:
487
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489
    # In both cases, we have to default to `cp -p'.
490
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491
      as_ln_s='cp -p'
492
  elif ln conf$$.file conf$$ 2>/dev/null; then
493
    as_ln_s=ln
494
  else
495
    as_ln_s='cp -p'
496
  fi
497
else
498
  as_ln_s='cp -p'
499
fi
500
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501
rmdir conf$$.dir 2>/dev/null
502
 
503
if mkdir -p . 2>/dev/null; then
504 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
505 90 jeremybenn
else
506
  test -d ./-p && rmdir ./-p
507
  as_mkdir_p=false
508
fi
509
 
510
if test -x / >/dev/null 2>&1; then
511
  as_test_x='test -x'
512
else
513
  if ls -dL / >/dev/null 2>&1; then
514
    as_ls_L_option=L
515
  else
516
    as_ls_L_option=
517
  fi
518
  as_test_x='
519
    eval sh -c '\''
520
      if test -d "$1"; then
521
        test -d "$1/.";
522
      else
523 346 jeremybenn
        case $1 in #(
524 90 jeremybenn
        -*)set "./$1";;
525
        esac;
526 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
528
    '\'' sh
529
  '
530
fi
531
as_executable_p=$as_test_x
532
 
533
# Sed expression to map a string onto a valid CPP name.
534
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
 
536
# Sed expression to map a string onto a valid variable name.
537
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
 
539
 
540
 
541
# Check that we are running under the correct shell.
542
SHELL=${CONFIG_SHELL-/bin/sh}
543
 
544
case X$lt_ECHO in
545
X*--fallback-echo)
546
  # Remove one level of quotation (which was required for Make).
547
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548
  ;;
549
esac
550
 
551
ECHO=${lt_ECHO-echo}
552
if test "X$1" = X--no-reexec; then
553
  # Discard the --no-reexec flag, and continue.
554
  shift
555
elif test "X$1" = X--fallback-echo; then
556
  # Avoid inline document here, it may be left over
557
  :
558
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559
  # Yippee, $ECHO works!
560
  :
561
else
562
  # Restart under the correct shell.
563
  exec $SHELL "$0" --no-reexec ${1+"$@"}
564
fi
565
 
566
if test "X$1" = X--fallback-echo; then
567
  # used as fallback echo
568
  shift
569
  cat <<_LT_EOF
570
$*
571
_LT_EOF
572
  exit 0
573
fi
574
 
575
# The HP-UX ksh and POSIX shell print the target directory to stdout
576
# if CDPATH is set.
577
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
 
579
if test -z "$lt_ECHO"; then
580
  if test "X${echo_test_string+set}" != Xset; then
581
    # find a string as large as possible, as long as the shell can cope with it
582
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586
      then
587
        break
588
      fi
589
    done
590
  fi
591
 
592
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594
     test "X$echo_testing_string" = "X$echo_test_string"; then
595
    :
596
  else
597
    # The Solaris, AIX, and Digital Unix default echo programs unquote
598
    # backslashes.  This makes it impossible to quote backslashes using
599
    #   echo "$something" | sed 's/\\/\\\\/g'
600
    #
601
    # So, first we look for a working echo in the user's PATH.
602
 
603
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604
    for dir in $PATH /usr/ucb; do
605
      IFS="$lt_save_ifs"
606
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609
         test "X$echo_testing_string" = "X$echo_test_string"; then
610
        ECHO="$dir/echo"
611
        break
612
      fi
613
    done
614
    IFS="$lt_save_ifs"
615
 
616
    if test "X$ECHO" = Xecho; then
617
      # We didn't find a better echo, so look for alternatives.
618
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620
         test "X$echo_testing_string" = "X$echo_test_string"; then
621
        # This shell has a builtin print -r that does the trick.
622
        ECHO='print -r'
623
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624
           test "X$CONFIG_SHELL" != X/bin/ksh; then
625
        # If we have ksh, try running configure again with it.
626
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627
        export ORIGINAL_CONFIG_SHELL
628
        CONFIG_SHELL=/bin/ksh
629
        export CONFIG_SHELL
630
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631
      else
632
        # Try using printf.
633
        ECHO='printf %s\n'
634
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636
           test "X$echo_testing_string" = "X$echo_test_string"; then
637
          # Cool, printf works
638
          :
639
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640
             test "X$echo_testing_string" = 'X\t' &&
641
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642
             test "X$echo_testing_string" = "X$echo_test_string"; then
643
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644
          export CONFIG_SHELL
645
          SHELL="$CONFIG_SHELL"
646
          export SHELL
647
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
648
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649
             test "X$echo_testing_string" = 'X\t' &&
650
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651
             test "X$echo_testing_string" = "X$echo_test_string"; then
652
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
653
        else
654
          # maybe with a smaller string...
655
          prev=:
656
 
657
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659
            then
660
              break
661
            fi
662
            prev="$cmd"
663
          done
664
 
665
          if test "$prev" != 'sed 50q "$0"'; then
666
            echo_test_string=`eval $prev`
667
            export echo_test_string
668
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669
          else
670
            # Oops.  We lost completely, so just stick with echo.
671
            ECHO=echo
672
          fi
673
        fi
674
      fi
675
    fi
676
  fi
677
fi
678
 
679
# Copy echo and quote the copy suitably for passing to libtool from
680
# the Makefile, instead of quoting the original, which is used later.
681
lt_ECHO=$ECHO
682
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684
fi
685
 
686
 
687
 
688
 
689 625 jeremybenn
test -n "$DJDIR" || exec 7<&0 
690
exec 6>&1
691 90 jeremybenn
 
692
# Name of the host.
693 625 jeremybenn
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 90 jeremybenn
# so uname gets run too.
695
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
 
697
#
698
# Initializations.
699
#
700
ac_default_prefix=/usr/local
701
ac_clean_files=
702
ac_config_libobj_dir=.
703
LIBOBJS=
704
cross_compiling=no
705
subdirs=
706
MFLAGS=
707
MAKEFLAGS=
708
 
709
# Identity of this package.
710
PACKAGE_NAME='or1ksim-testsuite'
711
PACKAGE_TARNAME='or1ksim-testsuite'
712 625 jeremybenn
PACKAGE_VERSION='2011-08-15'
713
PACKAGE_STRING='or1ksim-testsuite 2011-08-15'
714 90 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
715 346 jeremybenn
PACKAGE_URL=''
716 90 jeremybenn
 
717
# Factoring default headers for most tests.
718
ac_includes_default="\
719
#include 
720
#ifdef HAVE_SYS_TYPES_H
721
# include 
722
#endif
723
#ifdef HAVE_SYS_STAT_H
724
# include 
725
#endif
726
#ifdef STDC_HEADERS
727
# include 
728
# include 
729
#else
730
# ifdef HAVE_STDLIB_H
731
#  include 
732
# endif
733
#endif
734
#ifdef HAVE_STRING_H
735
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736
#  include 
737
# endif
738
# include 
739
#endif
740
#ifdef HAVE_STRINGS_H
741
# include 
742
#endif
743
#ifdef HAVE_INTTYPES_H
744
# include 
745
#endif
746
#ifdef HAVE_STDINT_H
747
# include 
748
#endif
749
#ifdef HAVE_UNISTD_H
750
# include 
751
#endif"
752
 
753
ac_subst_vars='am__EXEEXT_FALSE
754
am__EXEEXT_TRUE
755
LTLIBOBJS
756
LIBOBJS
757
am__fastdepCCAS_FALSE
758
am__fastdepCCAS_TRUE
759
CCASDEPMODE
760
CCASFLAGS
761
CCAS
762
SIM
763
BUILD_ALL_TESTS_FALSE
764
BUILD_ALL_TESTS_TRUE
765 625 jeremybenn
AM_BACKSLASH
766
AM_DEFAULT_VERBOSITY
767 90 jeremybenn
am__fastdepCC_FALSE
768
am__fastdepCC_TRUE
769
CCDEPMODE
770
AMDEPBACKSLASH
771
AMDEP_FALSE
772
AMDEP_TRUE
773
am__quote
774
am__include
775
DEPDIR
776
am__untar
777
am__tar
778
AMTAR
779
am__leading_dot
780
SET_MAKE
781
AWK
782
mkdir_p
783
MKDIR_P
784
INSTALL_STRIP_PROGRAM
785
install_sh
786
MAKEINFO
787
AUTOHEADER
788
AUTOMAKE
789
AUTOCONF
790
ACLOCAL
791
VERSION
792
PACKAGE
793
CYGPATH_W
794
am__isrc
795
INSTALL_DATA
796
INSTALL_SCRIPT
797
INSTALL_PROGRAM
798
CPP
799
OTOOL64
800
OTOOL
801
LIPO
802
NMEDIT
803
DSYMUTIL
804
lt_ECHO
805
RANLIB
806
STRIP
807
AR
808
OBJDUMP
809
LN_S
810
NM
811
ac_ct_DUMPBIN
812
DUMPBIN
813
LD
814
FGREP
815
EGREP
816
GREP
817
SED
818
OBJEXT
819
EXEEXT
820
ac_ct_CC
821
CPPFLAGS
822
LDFLAGS
823
CFLAGS
824
CC
825
host_os
826
host_vendor
827
host_cpu
828
host
829
build_os
830
build_vendor
831
build_cpu
832
build
833
LIBTOOL
834
target_alias
835
host_alias
836
build_alias
837
LIBS
838
ECHO_T
839
ECHO_N
840
ECHO_C
841
DEFS
842
mandir
843
localedir
844
libdir
845
psdir
846
pdfdir
847
dvidir
848
htmldir
849
infodir
850
docdir
851
oldincludedir
852
includedir
853
localstatedir
854
sharedstatedir
855
sysconfdir
856
datadir
857
datarootdir
858
libexecdir
859
sbindir
860
bindir
861
program_transform_name
862
prefix
863
exec_prefix
864 346 jeremybenn
PACKAGE_URL
865 90 jeremybenn
PACKAGE_BUGREPORT
866
PACKAGE_STRING
867
PACKAGE_VERSION
868
PACKAGE_TARNAME
869
PACKAGE_NAME
870
PATH_SEPARATOR
871
SHELL'
872
ac_subst_files=''
873
ac_user_opts='
874
enable_option_checking
875
enable_shared
876
enable_static
877
with_pic
878
enable_fast_install
879
with_gnu_ld
880
enable_libtool_lock
881
enable_dependency_tracking
882 625 jeremybenn
enable_silent_rules
883 90 jeremybenn
enable_all_tests
884 458 julius
enable_check_opt
885 90 jeremybenn
'
886
      ac_precious_vars='build_alias
887
host_alias
888
target_alias
889
CC
890
CFLAGS
891
LDFLAGS
892
LIBS
893
CPPFLAGS
894
CPP
895
CCAS
896
CCASFLAGS'
897
 
898
 
899
# Initialize some variables set by options.
900
ac_init_help=
901
ac_init_version=false
902
ac_unrecognized_opts=
903
ac_unrecognized_sep=
904
# The variables have the same names as the options, with
905
# dashes changed to underlines.
906
cache_file=/dev/null
907
exec_prefix=NONE
908
no_create=
909
no_recursion=
910
prefix=NONE
911
program_prefix=NONE
912
program_suffix=NONE
913
program_transform_name=s,x,x,
914
silent=
915
site=
916
srcdir=
917
verbose=
918
x_includes=NONE
919
x_libraries=NONE
920
 
921
# Installation directory options.
922
# These are left unexpanded so users can "make install exec_prefix=/foo"
923
# and all the variables that are supposed to be based on exec_prefix
924
# by default will actually change.
925
# Use braces instead of parens because sh, perl, etc. also accept them.
926
# (The list follows the same order as the GNU Coding Standards.)
927
bindir='${exec_prefix}/bin'
928
sbindir='${exec_prefix}/sbin'
929
libexecdir='${exec_prefix}/libexec'
930
datarootdir='${prefix}/share'
931
datadir='${datarootdir}'
932
sysconfdir='${prefix}/etc'
933
sharedstatedir='${prefix}/com'
934
localstatedir='${prefix}/var'
935
includedir='${prefix}/include'
936
oldincludedir='/usr/include'
937
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938
infodir='${datarootdir}/info'
939
htmldir='${docdir}'
940
dvidir='${docdir}'
941
pdfdir='${docdir}'
942
psdir='${docdir}'
943
libdir='${exec_prefix}/lib'
944
localedir='${datarootdir}/locale'
945
mandir='${datarootdir}/man'
946
 
947
ac_prev=
948
ac_dashdash=
949
for ac_option
950
do
951
  # If the previous option needs an argument, assign it.
952
  if test -n "$ac_prev"; then
953
    eval $ac_prev=\$ac_option
954
    ac_prev=
955
    continue
956
  fi
957
 
958
  case $ac_option in
959 625 jeremybenn
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960
  *=)   ac_optarg= ;;
961
  *)    ac_optarg=yes ;;
962 90 jeremybenn
  esac
963
 
964
  # Accept the important Cygnus configure options, so we can diagnose typos.
965
 
966
  case $ac_dashdash$ac_option in
967
  --)
968
    ac_dashdash=yes ;;
969
 
970
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971
    ac_prev=bindir ;;
972
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973
    bindir=$ac_optarg ;;
974
 
975
  -build | --build | --buil | --bui | --bu)
976
    ac_prev=build_alias ;;
977
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978
    build_alias=$ac_optarg ;;
979
 
980
  -cache-file | --cache-file | --cache-fil | --cache-fi \
981
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982
    ac_prev=cache_file ;;
983
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985
    cache_file=$ac_optarg ;;
986
 
987
  --config-cache | -C)
988
    cache_file=config.cache ;;
989
 
990
  -datadir | --datadir | --datadi | --datad)
991
    ac_prev=datadir ;;
992
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993
    datadir=$ac_optarg ;;
994
 
995
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996
  | --dataroo | --dataro | --datar)
997
    ac_prev=datarootdir ;;
998
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000
    datarootdir=$ac_optarg ;;
1001
 
1002
  -disable-* | --disable-*)
1003
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004
    # Reject names that are not valid shell variable names.
1005
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
1007 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1008
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009
    case $ac_user_opts in
1010
      *"
1011
"enable_$ac_useropt"
1012
"*) ;;
1013
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014
         ac_unrecognized_sep=', ';;
1015
    esac
1016
    eval enable_$ac_useropt=no ;;
1017
 
1018
  -docdir | --docdir | --docdi | --doc | --do)
1019
    ac_prev=docdir ;;
1020
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021
    docdir=$ac_optarg ;;
1022
 
1023
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024
    ac_prev=dvidir ;;
1025
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026
    dvidir=$ac_optarg ;;
1027
 
1028
  -enable-* | --enable-*)
1029
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030
    # Reject names that are not valid shell variable names.
1031
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
1033 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1034
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035
    case $ac_user_opts in
1036
      *"
1037
"enable_$ac_useropt"
1038
"*) ;;
1039
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040
         ac_unrecognized_sep=', ';;
1041
    esac
1042
    eval enable_$ac_useropt=\$ac_optarg ;;
1043
 
1044
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046
  | --exec | --exe | --ex)
1047
    ac_prev=exec_prefix ;;
1048
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050
  | --exec=* | --exe=* | --ex=*)
1051
    exec_prefix=$ac_optarg ;;
1052
 
1053
  -gas | --gas | --ga | --g)
1054
    # Obsolete; use --with-gas.
1055
    with_gas=yes ;;
1056
 
1057
  -help | --help | --hel | --he | -h)
1058
    ac_init_help=long ;;
1059
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060
    ac_init_help=recursive ;;
1061
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062
    ac_init_help=short ;;
1063
 
1064
  -host | --host | --hos | --ho)
1065
    ac_prev=host_alias ;;
1066
  -host=* | --host=* | --hos=* | --ho=*)
1067
    host_alias=$ac_optarg ;;
1068
 
1069
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070
    ac_prev=htmldir ;;
1071
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072
  | --ht=*)
1073
    htmldir=$ac_optarg ;;
1074
 
1075
  -includedir | --includedir | --includedi | --included | --include \
1076
  | --includ | --inclu | --incl | --inc)
1077
    ac_prev=includedir ;;
1078
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1080
    includedir=$ac_optarg ;;
1081
 
1082
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1083
    ac_prev=infodir ;;
1084
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085
    infodir=$ac_optarg ;;
1086
 
1087
  -libdir | --libdir | --libdi | --libd)
1088
    ac_prev=libdir ;;
1089
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090
    libdir=$ac_optarg ;;
1091
 
1092
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093
  | --libexe | --libex | --libe)
1094
    ac_prev=libexecdir ;;
1095
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096
  | --libexe=* | --libex=* | --libe=*)
1097
    libexecdir=$ac_optarg ;;
1098
 
1099
  -localedir | --localedir | --localedi | --localed | --locale)
1100
    ac_prev=localedir ;;
1101
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102
    localedir=$ac_optarg ;;
1103
 
1104
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1105
  | --localstate | --localstat | --localsta | --localst | --locals)
1106
    ac_prev=localstatedir ;;
1107
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109
    localstatedir=$ac_optarg ;;
1110
 
1111
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112
    ac_prev=mandir ;;
1113
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114
    mandir=$ac_optarg ;;
1115
 
1116
  -nfp | --nfp | --nf)
1117
    # Obsolete; use --without-fp.
1118
    with_fp=no ;;
1119
 
1120
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121
  | --no-cr | --no-c | -n)
1122
    no_create=yes ;;
1123
 
1124
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126
    no_recursion=yes ;;
1127
 
1128
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130
  | --oldin | --oldi | --old | --ol | --o)
1131
    ac_prev=oldincludedir ;;
1132
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135
    oldincludedir=$ac_optarg ;;
1136
 
1137
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138
    ac_prev=prefix ;;
1139
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140
    prefix=$ac_optarg ;;
1141
 
1142
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143
  | --program-pre | --program-pr | --program-p)
1144
    ac_prev=program_prefix ;;
1145
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147
    program_prefix=$ac_optarg ;;
1148
 
1149
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150
  | --program-suf | --program-su | --program-s)
1151
    ac_prev=program_suffix ;;
1152
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154
    program_suffix=$ac_optarg ;;
1155
 
1156
  -program-transform-name | --program-transform-name \
1157
  | --program-transform-nam | --program-transform-na \
1158
  | --program-transform-n | --program-transform- \
1159
  | --program-transform | --program-transfor \
1160
  | --program-transfo | --program-transf \
1161
  | --program-trans | --program-tran \
1162
  | --progr-tra | --program-tr | --program-t)
1163
    ac_prev=program_transform_name ;;
1164
  -program-transform-name=* | --program-transform-name=* \
1165
  | --program-transform-nam=* | --program-transform-na=* \
1166
  | --program-transform-n=* | --program-transform-=* \
1167
  | --program-transform=* | --program-transfor=* \
1168
  | --program-transfo=* | --program-transf=* \
1169
  | --program-trans=* | --program-tran=* \
1170
  | --progr-tra=* | --program-tr=* | --program-t=*)
1171
    program_transform_name=$ac_optarg ;;
1172
 
1173
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174
    ac_prev=pdfdir ;;
1175
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176
    pdfdir=$ac_optarg ;;
1177
 
1178
  -psdir | --psdir | --psdi | --psd | --ps)
1179
    ac_prev=psdir ;;
1180
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181
    psdir=$ac_optarg ;;
1182
 
1183
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184
  | -silent | --silent | --silen | --sile | --sil)
1185
    silent=yes ;;
1186
 
1187
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188
    ac_prev=sbindir ;;
1189
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190
  | --sbi=* | --sb=*)
1191
    sbindir=$ac_optarg ;;
1192
 
1193
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195
  | --sharedst | --shareds | --shared | --share | --shar \
1196
  | --sha | --sh)
1197
    ac_prev=sharedstatedir ;;
1198
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201
  | --sha=* | --sh=*)
1202
    sharedstatedir=$ac_optarg ;;
1203
 
1204
  -site | --site | --sit)
1205
    ac_prev=site ;;
1206
  -site=* | --site=* | --sit=*)
1207
    site=$ac_optarg ;;
1208
 
1209
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210
    ac_prev=srcdir ;;
1211
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212
    srcdir=$ac_optarg ;;
1213
 
1214
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215
  | --syscon | --sysco | --sysc | --sys | --sy)
1216
    ac_prev=sysconfdir ;;
1217
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219
    sysconfdir=$ac_optarg ;;
1220
 
1221
  -target | --target | --targe | --targ | --tar | --ta | --t)
1222
    ac_prev=target_alias ;;
1223
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224
    target_alias=$ac_optarg ;;
1225
 
1226
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227
    verbose=yes ;;
1228
 
1229
  -version | --version | --versio | --versi | --vers | -V)
1230
    ac_init_version=: ;;
1231
 
1232
  -with-* | --with-*)
1233
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234
    # Reject names that are not valid shell variable names.
1235
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1237 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1238
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239
    case $ac_user_opts in
1240
      *"
1241
"with_$ac_useropt"
1242
"*) ;;
1243
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244
         ac_unrecognized_sep=', ';;
1245
    esac
1246
    eval with_$ac_useropt=\$ac_optarg ;;
1247
 
1248
  -without-* | --without-*)
1249
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250
    # Reject names that are not valid shell variable names.
1251
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1253 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1254
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255
    case $ac_user_opts in
1256
      *"
1257
"with_$ac_useropt"
1258
"*) ;;
1259
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260
         ac_unrecognized_sep=', ';;
1261
    esac
1262
    eval with_$ac_useropt=no ;;
1263
 
1264
  --x)
1265
    # Obsolete; use --with-x.
1266
    with_x=yes ;;
1267
 
1268
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269
  | --x-incl | --x-inc | --x-in | --x-i)
1270
    ac_prev=x_includes ;;
1271
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273
    x_includes=$ac_optarg ;;
1274
 
1275
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277
    ac_prev=x_libraries ;;
1278
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280
    x_libraries=$ac_optarg ;;
1281
 
1282 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283
Try \`$0 --help' for more information"
1284 90 jeremybenn
    ;;
1285
 
1286
  *=*)
1287
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288
    # Reject names that are not valid shell variable names.
1289 346 jeremybenn
    case $ac_envvar in #(
1290
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 625 jeremybenn
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 346 jeremybenn
    esac
1293 90 jeremybenn
    eval $ac_envvar=\$ac_optarg
1294
    export $ac_envvar ;;
1295
 
1296
  *)
1297
    # FIXME: should be removed in autoconf 3.0.
1298
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 625 jeremybenn
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 90 jeremybenn
    ;;
1303
 
1304
  esac
1305
done
1306
 
1307
if test -n "$ac_prev"; then
1308
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 625 jeremybenn
  as_fn_error $? "missing argument to $ac_option"
1310 90 jeremybenn
fi
1311
 
1312
if test -n "$ac_unrecognized_opts"; then
1313
  case $enable_option_checking in
1314
    no) ;;
1315 625 jeremybenn
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 90 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317
  esac
1318
fi
1319
 
1320
# Check all directory arguments for consistency.
1321
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322
                datadir sysconfdir sharedstatedir localstatedir includedir \
1323
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324
                libdir localedir mandir
1325
do
1326
  eval ac_val=\$$ac_var
1327
  # Remove trailing slashes.
1328
  case $ac_val in
1329
    */ )
1330
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331
      eval $ac_var=\$ac_val;;
1332
  esac
1333
  # Be sure to have absolute directory names.
1334
  case $ac_val in
1335
    [\\/$]* | ?:[\\/]* )  continue;;
1336
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337
  esac
1338 625 jeremybenn
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 90 jeremybenn
done
1340
 
1341
# There might be people who depend on the old broken behavior: `$host'
1342
# used to hold the argument of --host etc.
1343
# FIXME: To remove some day.
1344
build=$build_alias
1345
host=$host_alias
1346
target=$target_alias
1347
 
1348
# FIXME: To remove some day.
1349
if test "x$host_alias" != x; then
1350
  if test "x$build_alias" = x; then
1351
    cross_compiling=maybe
1352 625 jeremybenn
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1353
    If a cross compiler is detected then cross compile mode will be used" >&2
1354 90 jeremybenn
  elif test "x$build_alias" != "x$host_alias"; then
1355
    cross_compiling=yes
1356
  fi
1357
fi
1358
 
1359
ac_tool_prefix=
1360
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
 
1362
test "$silent" = yes && exec 6>/dev/null
1363
 
1364
 
1365
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366
ac_ls_di=`ls -di .` &&
1367
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 625 jeremybenn
  as_fn_error $? "working directory cannot be determined"
1369 90 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 625 jeremybenn
  as_fn_error $? "pwd does not report name of working directory"
1371 90 jeremybenn
 
1372
 
1373
# Find the source files, if location was not specified.
1374
if test -z "$srcdir"; then
1375
  ac_srcdir_defaulted=yes
1376
  # Try the directory containing this script, then the parent directory.
1377
  ac_confdir=`$as_dirname -- "$as_myself" ||
1378
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379
         X"$as_myself" : 'X\(//\)[^/]' \| \
1380
         X"$as_myself" : 'X\(//\)$' \| \
1381
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382
$as_echo X"$as_myself" |
1383
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384
            s//\1/
1385
            q
1386
          }
1387
          /^X\(\/\/\)[^/].*/{
1388
            s//\1/
1389
            q
1390
          }
1391
          /^X\(\/\/\)$/{
1392
            s//\1/
1393
            q
1394
          }
1395
          /^X\(\/\).*/{
1396
            s//\1/
1397
            q
1398
          }
1399
          s/.*/./; q'`
1400
  srcdir=$ac_confdir
1401
  if test ! -r "$srcdir/$ac_unique_file"; then
1402
    srcdir=..
1403
  fi
1404
else
1405
  ac_srcdir_defaulted=no
1406
fi
1407
if test ! -r "$srcdir/$ac_unique_file"; then
1408
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 625 jeremybenn
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 90 jeremybenn
fi
1411
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412
ac_abs_confdir=`(
1413 625 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 90 jeremybenn
        pwd)`
1415
# When building in place, set srcdir=.
1416
if test "$ac_abs_confdir" = "$ac_pwd"; then
1417
  srcdir=.
1418
fi
1419
# Remove unnecessary trailing slashes from srcdir.
1420
# Double slashes in file names in object file debugging info
1421
# mess up M-x gdb in Emacs.
1422
case $srcdir in
1423
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424
esac
1425
for ac_var in $ac_precious_vars; do
1426
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427
  eval ac_env_${ac_var}_value=\$${ac_var}
1428
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430
done
1431
 
1432
#
1433
# Report the --help message.
1434
#
1435
if test "$ac_init_help" = "long"; then
1436
  # Omit some internal or obsolete options to make the list less imposing.
1437
  # This message is too long to be a string in the A/UX 3.1 sh.
1438
  cat <<_ACEOF
1439 625 jeremybenn
\`configure' configures or1ksim-testsuite 2011-08-15 to adapt to many kinds of systems.
1440 90 jeremybenn
 
1441
Usage: $0 [OPTION]... [VAR=VALUE]...
1442
 
1443
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444
VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
 
1446
Defaults for the options are specified in brackets.
1447
 
1448
Configuration:
1449
  -h, --help              display this help and exit
1450
      --help=short        display options specific to this package
1451
      --help=recursive    display the short help of all the included packages
1452
  -V, --version           display version information and exit
1453 625 jeremybenn
  -q, --quiet, --silent   do not print \`checking ...' messages
1454 90 jeremybenn
      --cache-file=FILE   cache test results in FILE [disabled]
1455
  -C, --config-cache      alias for \`--cache-file=config.cache'
1456
  -n, --no-create         do not create output files
1457
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
 
1459
Installation directories:
1460
  --prefix=PREFIX         install architecture-independent files in PREFIX
1461
                          [$ac_default_prefix]
1462
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463
                          [PREFIX]
1464
 
1465
By default, \`make install' will install all the files in
1466
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468
for instance \`--prefix=\$HOME'.
1469
 
1470
For better control, use the options below.
1471
 
1472
Fine tuning of the installation directories:
1473
  --bindir=DIR            user executables [EPREFIX/bin]
1474
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1475
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1476
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1477
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1478
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1479
  --libdir=DIR            object code libraries [EPREFIX/lib]
1480
  --includedir=DIR        C header files [PREFIX/include]
1481
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1482
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1483
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1484
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1485
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1486
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1487
  --docdir=DIR            documentation root
1488
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1489
  --htmldir=DIR           html documentation [DOCDIR]
1490
  --dvidir=DIR            dvi documentation [DOCDIR]
1491
  --pdfdir=DIR            pdf documentation [DOCDIR]
1492
  --psdir=DIR             ps documentation [DOCDIR]
1493
_ACEOF
1494
 
1495
  cat <<\_ACEOF
1496
 
1497
Program names:
1498
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1499
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1500
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
 
1502
System types:
1503
  --build=BUILD     configure for building on BUILD [guessed]
1504
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505
_ACEOF
1506
fi
1507
 
1508
if test -n "$ac_init_help"; then
1509
  case $ac_init_help in
1510 625 jeremybenn
     short | recursive ) echo "Configuration of or1ksim-testsuite 2011-08-15:";;
1511 90 jeremybenn
   esac
1512
  cat <<\_ACEOF
1513
 
1514
Optional Features:
1515
  --disable-option-checking  ignore unrecognized --enable/--with options
1516
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1519
  --enable-static[=PKGS]  build static libraries [default=yes]
1520
  --enable-fast-install[=PKGS]
1521
                          optimize for fast installation [default=yes]
1522
  --disable-libtool-lock  avoid locking (might break parallel builds)
1523
  --disable-dependency-tracking  speeds up one-time build
1524
  --enable-dependency-tracking   do not reject slow dependency extractors
1525 625 jeremybenn
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1526
  --disable-silent-rules         verbose build output (undo: `make V=0')
1527 90 jeremybenn
  --enable-all-tests      enable all tests, including those which do not
1528
                          compile
1529
  --enable-check-opt      enable optimizations
1530
  --enable-check-opt=level     same as gcc -O switch
1531
 
1532
Optional Packages:
1533
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535
  --with-pic              try to use only PIC/non-PIC objects [default=use
1536
                          both]
1537
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538
 
1539
Some influential environment variables:
1540
  CC          C compiler command
1541
  CFLAGS      C compiler flags
1542
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1543
              nonstandard directory 
1544
  LIBS        libraries to pass to the linker, e.g. -l
1545 625 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1546 90 jeremybenn
              you have headers in a nonstandard directory 
1547
  CPP         C preprocessor
1548
  CCAS        assembler compiler command (defaults to CC)
1549
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1550
 
1551
Use these variables to override the choices made by `configure' or to help
1552
it to find libraries and programs with nonstandard names/locations.
1553
 
1554
Report bugs to .
1555
_ACEOF
1556
ac_status=$?
1557
fi
1558
 
1559
if test "$ac_init_help" = "recursive"; then
1560
  # If there are subdirs, report their specific --help.
1561
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562
    test -d "$ac_dir" ||
1563
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564
      continue
1565
    ac_builddir=.
1566
 
1567
case "$ac_dir" in
1568
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569
*)
1570
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571
  # A ".." for each directory in $ac_dir_suffix.
1572
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573
  case $ac_top_builddir_sub in
1574
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576
  esac ;;
1577
esac
1578
ac_abs_top_builddir=$ac_pwd
1579
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580
# for backward compatibility:
1581
ac_top_builddir=$ac_top_build_prefix
1582
 
1583
case $srcdir in
1584
  .)  # We are building in place.
1585
    ac_srcdir=.
1586
    ac_top_srcdir=$ac_top_builddir_sub
1587
    ac_abs_top_srcdir=$ac_pwd ;;
1588
  [\\/]* | ?:[\\/]* )  # Absolute name.
1589
    ac_srcdir=$srcdir$ac_dir_suffix;
1590
    ac_top_srcdir=$srcdir
1591
    ac_abs_top_srcdir=$srcdir ;;
1592
  *) # Relative name.
1593
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1595
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596
esac
1597
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
 
1599
    cd "$ac_dir" || { ac_status=$?; continue; }
1600
    # Check for guested configure.
1601
    if test -f "$ac_srcdir/configure.gnu"; then
1602
      echo &&
1603
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604
    elif test -f "$ac_srcdir/configure"; then
1605
      echo &&
1606
      $SHELL "$ac_srcdir/configure" --help=recursive
1607
    else
1608
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609
    fi || ac_status=$?
1610
    cd "$ac_pwd" || { ac_status=$?; break; }
1611
  done
1612
fi
1613
 
1614
test -n "$ac_init_help" && exit $ac_status
1615
if $ac_init_version; then
1616
  cat <<\_ACEOF
1617 625 jeremybenn
or1ksim-testsuite configure 2011-08-15
1618
generated by GNU Autoconf 2.68
1619 90 jeremybenn
 
1620 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
1621 90 jeremybenn
This configure script is free software; the Free Software Foundation
1622
gives unlimited permission to copy, distribute and modify it.
1623
_ACEOF
1624
  exit
1625
fi
1626 346 jeremybenn
 
1627
## ------------------------ ##
1628
## Autoconf initialization. ##
1629
## ------------------------ ##
1630
 
1631
# ac_fn_c_try_compile LINENO
1632
# --------------------------
1633
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634
ac_fn_c_try_compile ()
1635
{
1636
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637
  rm -f conftest.$ac_objext
1638
  if { { ac_try="$ac_compile"
1639
case "(($ac_try" in
1640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641
  *) ac_try_echo=$ac_try;;
1642
esac
1643
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644
$as_echo "$ac_try_echo"; } >&5
1645
  (eval "$ac_compile") 2>conftest.err
1646
  ac_status=$?
1647
  if test -s conftest.err; then
1648
    grep -v '^ *+' conftest.err >conftest.er1
1649
    cat conftest.er1 >&5
1650
    mv -f conftest.er1 conftest.err
1651
  fi
1652
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653
  test $ac_status = 0; } && {
1654
         test -z "$ac_c_werror_flag" ||
1655
         test ! -s conftest.err
1656
       } && test -s conftest.$ac_objext; then :
1657
  ac_retval=0
1658
else
1659
  $as_echo "$as_me: failed program was:" >&5
1660
sed 's/^/| /' conftest.$ac_ext >&5
1661
 
1662
        ac_retval=1
1663
fi
1664 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
  as_fn_set_status $ac_retval
1666 346 jeremybenn
 
1667
} # ac_fn_c_try_compile
1668
 
1669
# ac_fn_c_try_link LINENO
1670
# -----------------------
1671
# Try to link conftest.$ac_ext, and return whether this succeeded.
1672
ac_fn_c_try_link ()
1673
{
1674
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675
  rm -f conftest.$ac_objext conftest$ac_exeext
1676
  if { { ac_try="$ac_link"
1677
case "(($ac_try" in
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679
  *) ac_try_echo=$ac_try;;
1680
esac
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682
$as_echo "$ac_try_echo"; } >&5
1683
  (eval "$ac_link") 2>conftest.err
1684
  ac_status=$?
1685
  if test -s conftest.err; then
1686
    grep -v '^ *+' conftest.err >conftest.er1
1687
    cat conftest.er1 >&5
1688
    mv -f conftest.er1 conftest.err
1689
  fi
1690
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691
  test $ac_status = 0; } && {
1692
         test -z "$ac_c_werror_flag" ||
1693
         test ! -s conftest.err
1694
       } && test -s conftest$ac_exeext && {
1695
         test "$cross_compiling" = yes ||
1696
         $as_test_x conftest$ac_exeext
1697
       }; then :
1698
  ac_retval=0
1699
else
1700
  $as_echo "$as_me: failed program was:" >&5
1701
sed 's/^/| /' conftest.$ac_ext >&5
1702
 
1703
        ac_retval=1
1704
fi
1705
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707
  # interfere with the next link command; also delete a directory that is
1708
  # left behind by Apple's compiler.  We do this before executing the actions.
1709
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
  as_fn_set_status $ac_retval
1712 346 jeremybenn
 
1713
} # ac_fn_c_try_link
1714
 
1715
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716
# -------------------------------------------------------
1717
# Tests whether HEADER exists and can be compiled using the include files in
1718
# INCLUDES, setting the cache variable VAR accordingly.
1719
ac_fn_c_check_header_compile ()
1720
{
1721
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723
$as_echo_n "checking for $2... " >&6; }
1724 625 jeremybenn
if eval \${$3+:} false; then :
1725 346 jeremybenn
  $as_echo_n "(cached) " >&6
1726
else
1727
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728
/* end confdefs.h.  */
1729
$4
1730
#include <$2>
1731
_ACEOF
1732
if ac_fn_c_try_compile "$LINENO"; then :
1733
  eval "$3=yes"
1734
else
1735
  eval "$3=no"
1736
fi
1737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738
fi
1739
eval ac_res=\$$3
1740
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741
$as_echo "$ac_res" >&6; }
1742 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 346 jeremybenn
 
1744
} # ac_fn_c_check_header_compile
1745
 
1746
# ac_fn_c_try_cpp LINENO
1747
# ----------------------
1748
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749
ac_fn_c_try_cpp ()
1750
{
1751
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1753
case "(($ac_try" in
1754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755
  *) ac_try_echo=$ac_try;;
1756
esac
1757
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758
$as_echo "$ac_try_echo"; } >&5
1759
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760
  ac_status=$?
1761
  if test -s conftest.err; then
1762
    grep -v '^ *+' conftest.err >conftest.er1
1763
    cat conftest.er1 >&5
1764
    mv -f conftest.er1 conftest.err
1765
  fi
1766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 625 jeremybenn
  test $ac_status = 0; } > conftest.i && {
1768 346 jeremybenn
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769
         test ! -s conftest.err
1770
       }; then :
1771
  ac_retval=0
1772
else
1773
  $as_echo "$as_me: failed program was:" >&5
1774
sed 's/^/| /' conftest.$ac_ext >&5
1775
 
1776
    ac_retval=1
1777
fi
1778 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
  as_fn_set_status $ac_retval
1780 346 jeremybenn
 
1781
} # ac_fn_c_try_cpp
1782
 
1783
# ac_fn_c_try_run LINENO
1784
# ----------------------
1785
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786
# that executables *can* be run.
1787
ac_fn_c_try_run ()
1788
{
1789
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790
  if { { ac_try="$ac_link"
1791
case "(($ac_try" in
1792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793
  *) ac_try_echo=$ac_try;;
1794
esac
1795
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796
$as_echo "$ac_try_echo"; } >&5
1797
  (eval "$ac_link") 2>&5
1798
  ac_status=$?
1799
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801
  { { case "(($ac_try" in
1802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803
  *) ac_try_echo=$ac_try;;
1804
esac
1805
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806
$as_echo "$ac_try_echo"; } >&5
1807
  (eval "$ac_try") 2>&5
1808
  ac_status=$?
1809
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810
  test $ac_status = 0; }; }; then :
1811
  ac_retval=0
1812
else
1813
  $as_echo "$as_me: program exited with status $ac_status" >&5
1814
       $as_echo "$as_me: failed program was:" >&5
1815
sed 's/^/| /' conftest.$ac_ext >&5
1816
 
1817
       ac_retval=$ac_status
1818
fi
1819
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
  as_fn_set_status $ac_retval
1822 346 jeremybenn
 
1823
} # ac_fn_c_try_run
1824
 
1825
# ac_fn_c_check_func LINENO FUNC VAR
1826
# ----------------------------------
1827
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828
ac_fn_c_check_func ()
1829
{
1830
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832
$as_echo_n "checking for $2... " >&6; }
1833 625 jeremybenn
if eval \${$3+:} false; then :
1834 346 jeremybenn
  $as_echo_n "(cached) " >&6
1835
else
1836
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837
/* end confdefs.h.  */
1838
/* Define $2 to an innocuous variant, in case  declares $2.
1839
   For example, HP-UX 11i  declares gettimeofday.  */
1840
#define $2 innocuous_$2
1841
 
1842
/* System header to define __stub macros and hopefully few prototypes,
1843
    which can conflict with char $2 (); below.
1844
    Prefer  to  if __STDC__ is defined, since
1845
     exists even on freestanding compilers.  */
1846
 
1847
#ifdef __STDC__
1848
# include 
1849
#else
1850
# include 
1851
#endif
1852
 
1853
#undef $2
1854
 
1855
/* Override any GCC internal prototype to avoid an error.
1856
   Use char because int might match the return type of a GCC
1857
   builtin and then its argument prototype would still apply.  */
1858
#ifdef __cplusplus
1859
extern "C"
1860
#endif
1861
char $2 ();
1862
/* The GNU C library defines this for functions which it implements
1863
    to always fail with ENOSYS.  Some functions are actually named
1864
    something starting with __ and the normal name is an alias.  */
1865
#if defined __stub_$2 || defined __stub___$2
1866
choke me
1867
#endif
1868
 
1869
int
1870
main ()
1871
{
1872
return $2 ();
1873
  ;
1874
  return 0;
1875
}
1876
_ACEOF
1877
if ac_fn_c_try_link "$LINENO"; then :
1878
  eval "$3=yes"
1879
else
1880
  eval "$3=no"
1881
fi
1882
rm -f core conftest.err conftest.$ac_objext \
1883
    conftest$ac_exeext conftest.$ac_ext
1884
fi
1885
eval ac_res=\$$3
1886
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887
$as_echo "$ac_res" >&6; }
1888 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 346 jeremybenn
 
1890
} # ac_fn_c_check_func
1891
 
1892
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893
# -------------------------------------------------------
1894
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895
# the include files in INCLUDES and setting the cache variable VAR
1896
# accordingly.
1897
ac_fn_c_check_header_mongrel ()
1898
{
1899
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 625 jeremybenn
  if eval \${$3+:} false; then :
1901 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902
$as_echo_n "checking for $2... " >&6; }
1903 625 jeremybenn
if eval \${$3+:} false; then :
1904 346 jeremybenn
  $as_echo_n "(cached) " >&6
1905
fi
1906
eval ac_res=\$$3
1907
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908
$as_echo "$ac_res" >&6; }
1909
else
1910
  # Is the header compilable?
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912
$as_echo_n "checking $2 usability... " >&6; }
1913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914
/* end confdefs.h.  */
1915
$4
1916
#include <$2>
1917
_ACEOF
1918
if ac_fn_c_try_compile "$LINENO"; then :
1919
  ac_header_compiler=yes
1920
else
1921
  ac_header_compiler=no
1922
fi
1923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925
$as_echo "$ac_header_compiler" >&6; }
1926
 
1927
# Is the header present?
1928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929
$as_echo_n "checking $2 presence... " >&6; }
1930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931
/* end confdefs.h.  */
1932
#include <$2>
1933
_ACEOF
1934
if ac_fn_c_try_cpp "$LINENO"; then :
1935
  ac_header_preproc=yes
1936
else
1937
  ac_header_preproc=no
1938
fi
1939 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
1940 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941
$as_echo "$ac_header_preproc" >&6; }
1942
 
1943
# So?  What about this header?
1944
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945
  yes:no: )
1946
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950
    ;;
1951
  no:yes:* )
1952
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1955
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1956
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1959
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1960
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 625 jeremybenn
( $as_echo "## ------------------------------------- ##
1963 346 jeremybenn
## Report this to openrisc@opencores.org ##
1964 625 jeremybenn
## ------------------------------------- ##"
1965 346 jeremybenn
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1966
    ;;
1967
esac
1968
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969
$as_echo_n "checking for $2... " >&6; }
1970 625 jeremybenn
if eval \${$3+:} false; then :
1971 346 jeremybenn
  $as_echo_n "(cached) " >&6
1972
else
1973
  eval "$3=\$ac_header_compiler"
1974
fi
1975
eval ac_res=\$$3
1976
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977
$as_echo "$ac_res" >&6; }
1978
fi
1979 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 346 jeremybenn
 
1981
} # ac_fn_c_check_header_mongrel
1982
 
1983
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984
# -------------------------------------------
1985
# Tests whether TYPE exists after having included INCLUDES, setting cache
1986
# variable VAR accordingly.
1987
ac_fn_c_check_type ()
1988
{
1989
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991
$as_echo_n "checking for $2... " >&6; }
1992 625 jeremybenn
if eval \${$3+:} false; then :
1993 346 jeremybenn
  $as_echo_n "(cached) " >&6
1994
else
1995
  eval "$3=no"
1996
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997
/* end confdefs.h.  */
1998
$4
1999
int
2000
main ()
2001
{
2002
if (sizeof ($2))
2003
         return 0;
2004
  ;
2005
  return 0;
2006
}
2007
_ACEOF
2008
if ac_fn_c_try_compile "$LINENO"; then :
2009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010
/* end confdefs.h.  */
2011
$4
2012
int
2013
main ()
2014
{
2015
if (sizeof (($2)))
2016
            return 0;
2017
  ;
2018
  return 0;
2019
}
2020
_ACEOF
2021
if ac_fn_c_try_compile "$LINENO"; then :
2022
 
2023
else
2024
  eval "$3=yes"
2025
fi
2026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027
fi
2028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029
fi
2030
eval ac_res=\$$3
2031
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032
$as_echo "$ac_res" >&6; }
2033 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 346 jeremybenn
 
2035
} # ac_fn_c_check_type
2036 90 jeremybenn
cat >config.log <<_ACEOF
2037
This file contains any messages produced by compilers while
2038
running configure, to aid debugging if configure makes a mistake.
2039
 
2040 625 jeremybenn
It was created by or1ksim-testsuite $as_me 2011-08-15, which was
2041
generated by GNU Autoconf 2.68.  Invocation command line was
2042 90 jeremybenn
 
2043
  $ $0 $@
2044
 
2045
_ACEOF
2046
exec 5>>config.log
2047
{
2048
cat <<_ASUNAME
2049
## --------- ##
2050
## Platform. ##
2051
## --------- ##
2052
 
2053
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2058
 
2059
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2061
 
2062
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2063
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2064
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2066
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2067
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2068
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2069
 
2070
_ASUNAME
2071
 
2072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073
for as_dir in $PATH
2074
do
2075
  IFS=$as_save_IFS
2076
  test -z "$as_dir" && as_dir=.
2077 346 jeremybenn
    $as_echo "PATH: $as_dir"
2078
  done
2079 90 jeremybenn
IFS=$as_save_IFS
2080
 
2081
} >&5
2082
 
2083
cat >&5 <<_ACEOF
2084
 
2085
 
2086
## ----------- ##
2087
## Core tests. ##
2088
## ----------- ##
2089
 
2090
_ACEOF
2091
 
2092
 
2093
# Keep a trace of the command line.
2094
# Strip out --no-create and --no-recursion so they do not pile up.
2095
# Strip out --silent because we don't want to record it for future runs.
2096
# Also quote any args containing shell meta-characters.
2097
# Make two passes to allow for proper duplicate-argument suppression.
2098
ac_configure_args=
2099
ac_configure_args0=
2100
ac_configure_args1=
2101
ac_must_keep_next=false
2102
for ac_pass in 1 2
2103
do
2104
  for ac_arg
2105
  do
2106
    case $ac_arg in
2107
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109
    | -silent | --silent | --silen | --sile | --sil)
2110
      continue ;;
2111
    *\'*)
2112
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113
    esac
2114
    case $ac_pass in
2115 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116 90 jeremybenn
    2)
2117 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2118 90 jeremybenn
      if test $ac_must_keep_next = true; then
2119
        ac_must_keep_next=false # Got value, back to normal.
2120
      else
2121
        case $ac_arg in
2122
          *=* | --config-cache | -C | -disable-* | --disable-* \
2123
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125
          | -with-* | --with-* | -without-* | --without-* | --x)
2126
            case "$ac_configure_args0 " in
2127
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128
            esac
2129
            ;;
2130
          -* ) ac_must_keep_next=true ;;
2131
        esac
2132
      fi
2133 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2134 90 jeremybenn
      ;;
2135
    esac
2136
  done
2137
done
2138 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2139
{ ac_configure_args1=; unset ac_configure_args1;}
2140 90 jeremybenn
 
2141
# When interrupted or exit'd, cleanup temporary files, and complete
2142
# config.log.  We remove comments because anyway the quotes in there
2143
# would cause problems or look ugly.
2144
# WARNING: Use '\'' to represent an apostrophe within the trap.
2145
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146
trap 'exit_status=$?
2147
  # Save into config.log some information that might help in debugging.
2148
  {
2149
    echo
2150
 
2151 625 jeremybenn
    $as_echo "## ---------------- ##
2152 90 jeremybenn
## Cache variables. ##
2153 625 jeremybenn
## ---------------- ##"
2154 90 jeremybenn
    echo
2155
    # The following way of writing the cache mishandles newlines in values,
2156
(
2157
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158
    eval ac_val=\$$ac_var
2159
    case $ac_val in #(
2160
    *${as_nl}*)
2161
      case $ac_var in #(
2162 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2163 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164
      esac
2165
      case $ac_var in #(
2166
      _ | IFS | as_nl) ;; #(
2167
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2168 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2169 90 jeremybenn
      esac ;;
2170
    esac
2171
  done
2172
  (set) 2>&1 |
2173
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2174
    *${as_nl}ac_space=\ *)
2175
      sed -n \
2176
        "s/'\''/'\''\\\\'\'''\''/g;
2177
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178
      ;; #(
2179
    *)
2180
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2181
      ;;
2182
    esac |
2183
    sort
2184
)
2185
    echo
2186
 
2187 625 jeremybenn
    $as_echo "## ----------------- ##
2188 90 jeremybenn
## Output variables. ##
2189 625 jeremybenn
## ----------------- ##"
2190 90 jeremybenn
    echo
2191
    for ac_var in $ac_subst_vars
2192
    do
2193
      eval ac_val=\$$ac_var
2194
      case $ac_val in
2195
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196
      esac
2197
      $as_echo "$ac_var='\''$ac_val'\''"
2198
    done | sort
2199
    echo
2200
 
2201
    if test -n "$ac_subst_files"; then
2202 625 jeremybenn
      $as_echo "## ------------------- ##
2203 90 jeremybenn
## File substitutions. ##
2204 625 jeremybenn
## ------------------- ##"
2205 90 jeremybenn
      echo
2206
      for ac_var in $ac_subst_files
2207
      do
2208
        eval ac_val=\$$ac_var
2209
        case $ac_val in
2210
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211
        esac
2212
        $as_echo "$ac_var='\''$ac_val'\''"
2213
      done | sort
2214
      echo
2215
    fi
2216
 
2217
    if test -s confdefs.h; then
2218 625 jeremybenn
      $as_echo "## ----------- ##
2219 90 jeremybenn
## confdefs.h. ##
2220 625 jeremybenn
## ----------- ##"
2221 90 jeremybenn
      echo
2222
      cat confdefs.h
2223
      echo
2224
    fi
2225
    test "$ac_signal" != 0 &&
2226
      $as_echo "$as_me: caught signal $ac_signal"
2227
    $as_echo "$as_me: exit $exit_status"
2228
  } >&5
2229
  rm -f core *.core core.conftest.* &&
2230
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231
    exit $exit_status
2232
' 0
2233
for ac_signal in 1 2 13 15; do
2234 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 90 jeremybenn
done
2236
ac_signal=0
2237
 
2238
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2239
rm -f -r conftest* confdefs.h
2240
 
2241 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2242
 
2243 90 jeremybenn
# Predefined preprocessor variables.
2244
 
2245
cat >>confdefs.h <<_ACEOF
2246
#define PACKAGE_NAME "$PACKAGE_NAME"
2247
_ACEOF
2248
 
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251
_ACEOF
2252
 
2253
cat >>confdefs.h <<_ACEOF
2254
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2255
_ACEOF
2256
 
2257
cat >>confdefs.h <<_ACEOF
2258
#define PACKAGE_STRING "$PACKAGE_STRING"
2259
_ACEOF
2260
 
2261
cat >>confdefs.h <<_ACEOF
2262
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263
_ACEOF
2264
 
2265 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2266
#define PACKAGE_URL "$PACKAGE_URL"
2267
_ACEOF
2268 90 jeremybenn
 
2269 346 jeremybenn
 
2270 90 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2271
# Prefer an explicitly selected file to automatically selected ones.
2272
ac_site_file1=NONE
2273
ac_site_file2=NONE
2274
if test -n "$CONFIG_SITE"; then
2275 625 jeremybenn
  # We do not want a PATH search for config.site.
2276
  case $CONFIG_SITE in #((
2277
    -*)  ac_site_file1=./$CONFIG_SITE;;
2278
    */*) ac_site_file1=$CONFIG_SITE;;
2279
    *)   ac_site_file1=./$CONFIG_SITE;;
2280
  esac
2281 90 jeremybenn
elif test "x$prefix" != xNONE; then
2282
  ac_site_file1=$prefix/share/config.site
2283
  ac_site_file2=$prefix/etc/config.site
2284
else
2285
  ac_site_file1=$ac_default_prefix/share/config.site
2286
  ac_site_file2=$ac_default_prefix/etc/config.site
2287
fi
2288
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289
do
2290
  test "x$ac_site_file" = xNONE && continue
2291 625 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2292 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293 90 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294
    sed 's/^/| /' "$ac_site_file" >&5
2295 625 jeremybenn
    . "$ac_site_file" \
2296
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298
as_fn_error $? "failed to load site script $ac_site_file
2299
See \`config.log' for more details" "$LINENO" 5; }
2300 90 jeremybenn
  fi
2301
done
2302
 
2303
if test -r "$cache_file"; then
2304 625 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2305
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2306
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2307 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2308 90 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2309
    case $cache_file in
2310
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2311
      *)                      . "./$cache_file";;
2312
    esac
2313
  fi
2314
else
2315 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2316 90 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2317
  >$cache_file
2318
fi
2319
 
2320
# Check that the precious variables saved in the cache have kept the same
2321
# value.
2322
ac_cache_corrupted=false
2323
for ac_var in $ac_precious_vars; do
2324
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2325
  eval ac_new_set=\$ac_env_${ac_var}_set
2326
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2327
  eval ac_new_val=\$ac_env_${ac_var}_value
2328
  case $ac_old_set,$ac_new_set in
2329
    set,)
2330 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2331 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2332
      ac_cache_corrupted=: ;;
2333
    ,set)
2334 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2335 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2336
      ac_cache_corrupted=: ;;
2337
    ,);;
2338
    *)
2339
      if test "x$ac_old_val" != "x$ac_new_val"; then
2340
        # differences in whitespace do not lead to failure.
2341
        ac_old_val_w=`echo x $ac_old_val`
2342
        ac_new_val_w=`echo x $ac_new_val`
2343
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2344 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2345 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2346
          ac_cache_corrupted=:
2347
        else
2348 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2349 90 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2350
          eval $ac_var=\$ac_old_val
2351
        fi
2352 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2353 90 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2354 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2355 90 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2356
      fi;;
2357
  esac
2358
  # Pass precious variables to config.status.
2359
  if test "$ac_new_set" = set; then
2360
    case $ac_new_val in
2361
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2362
    *) ac_arg=$ac_var=$ac_new_val ;;
2363
    esac
2364
    case " $ac_configure_args " in
2365
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2366 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2367 90 jeremybenn
    esac
2368
  fi
2369
done
2370
if $ac_cache_corrupted; then
2371 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2374 90 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2375 625 jeremybenn
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2376 90 jeremybenn
fi
2377 346 jeremybenn
## -------------------- ##
2378
## Main body of script. ##
2379
## -------------------- ##
2380 90 jeremybenn
 
2381
ac_ext=c
2382
ac_cpp='$CPP $CPPFLAGS'
2383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
 
2387
 
2388
 
2389
 
2390
case `pwd` in
2391
  *\ * | *\     *)
2392 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2393 90 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2394
esac
2395
 
2396
 
2397
 
2398 95 jeremybenn
macro_version='2.2.6b'
2399
macro_revision='1.3017'
2400 90 jeremybenn
 
2401
 
2402
 
2403
 
2404
 
2405
 
2406
 
2407
 
2408
 
2409
 
2410
 
2411
 
2412
 
2413
ltmain="$ac_aux_dir/ltmain.sh"
2414
 
2415
ac_aux_dir=
2416
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 625 jeremybenn
  if test -f "$ac_dir/install-sh"; then
2418
    ac_aux_dir=$ac_dir
2419
    ac_install_sh="$ac_aux_dir/install-sh -c"
2420
    break
2421
  elif test -f "$ac_dir/install.sh"; then
2422
    ac_aux_dir=$ac_dir
2423
    ac_install_sh="$ac_aux_dir/install.sh -c"
2424
    break
2425
  elif test -f "$ac_dir/shtool"; then
2426
    ac_aux_dir=$ac_dir
2427
    ac_install_sh="$ac_aux_dir/shtool install -c"
2428
    break
2429
  fi
2430 90 jeremybenn
done
2431
if test -z "$ac_aux_dir"; then
2432 625 jeremybenn
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433 90 jeremybenn
fi
2434
 
2435
# These three variables are undocumented and unsupported,
2436
# and are intended to be withdrawn in a future Autoconf release.
2437
# They can cause serious problems if a builder's source tree is in a directory
2438
# whose full name contains unusual characters.
2439
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2440
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2441
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2442
 
2443
 
2444
# Make sure we can run config.sub.
2445
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2446 625 jeremybenn
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2447 90 jeremybenn
 
2448 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449 90 jeremybenn
$as_echo_n "checking build system type... " >&6; }
2450 625 jeremybenn
if ${ac_cv_build+:} false; then :
2451 90 jeremybenn
  $as_echo_n "(cached) " >&6
2452
else
2453
  ac_build_alias=$build_alias
2454
test "x$ac_build_alias" = x &&
2455
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456
test "x$ac_build_alias" = x &&
2457 625 jeremybenn
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2458 90 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459 625 jeremybenn
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2460 90 jeremybenn
 
2461
fi
2462 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463 90 jeremybenn
$as_echo "$ac_cv_build" >&6; }
2464
case $ac_cv_build in
2465
*-*-*) ;;
2466 625 jeremybenn
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2467 90 jeremybenn
esac
2468
build=$ac_cv_build
2469
ac_save_IFS=$IFS; IFS='-'
2470
set x $ac_cv_build
2471
shift
2472
build_cpu=$1
2473
build_vendor=$2
2474
shift; shift
2475
# Remember, the first character of IFS is used to create $*,
2476
# except with old shells:
2477
build_os=$*
2478
IFS=$ac_save_IFS
2479
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
 
2481
 
2482 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483 90 jeremybenn
$as_echo_n "checking host system type... " >&6; }
2484 625 jeremybenn
if ${ac_cv_host+:} false; then :
2485 90 jeremybenn
  $as_echo_n "(cached) " >&6
2486
else
2487
  if test "x$host_alias" = x; then
2488
  ac_cv_host=$ac_cv_build
2489
else
2490
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492 90 jeremybenn
fi
2493
 
2494
fi
2495 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496 90 jeremybenn
$as_echo "$ac_cv_host" >&6; }
2497
case $ac_cv_host in
2498
*-*-*) ;;
2499 625 jeremybenn
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2500 90 jeremybenn
esac
2501
host=$ac_cv_host
2502
ac_save_IFS=$IFS; IFS='-'
2503
set x $ac_cv_host
2504
shift
2505
host_cpu=$1
2506
host_vendor=$2
2507
shift; shift
2508
# Remember, the first character of IFS is used to create $*,
2509
# except with old shells:
2510
host_os=$*
2511
IFS=$ac_save_IFS
2512
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
 
2514
 
2515
ac_ext=c
2516
ac_cpp='$CPP $CPPFLAGS'
2517
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
if test -n "$ac_tool_prefix"; then
2521
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2522
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2523 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2525 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2526 90 jeremybenn
  $as_echo_n "(cached) " >&6
2527
else
2528
  if test -n "$CC"; then
2529
  ac_cv_prog_CC="$CC" # Let the user override the test.
2530
else
2531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532
for as_dir in $PATH
2533
do
2534
  IFS=$as_save_IFS
2535
  test -z "$as_dir" && as_dir=.
2536 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2537 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2539 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 90 jeremybenn
    break 2
2541
  fi
2542
done
2543 346 jeremybenn
  done
2544 90 jeremybenn
IFS=$as_save_IFS
2545
 
2546
fi
2547
fi
2548
CC=$ac_cv_prog_CC
2549
if test -n "$CC"; then
2550 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2551 90 jeremybenn
$as_echo "$CC" >&6; }
2552
else
2553 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 90 jeremybenn
$as_echo "no" >&6; }
2555
fi
2556
 
2557
 
2558
fi
2559
if test -z "$ac_cv_prog_CC"; then
2560
  ac_ct_CC=$CC
2561
  # Extract the first word of "gcc", so it can be a program name with args.
2562
set dummy gcc; ac_word=$2
2563 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2565 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2566 90 jeremybenn
  $as_echo_n "(cached) " >&6
2567
else
2568
  if test -n "$ac_ct_CC"; then
2569
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570
else
2571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572
for as_dir in $PATH
2573
do
2574
  IFS=$as_save_IFS
2575
  test -z "$as_dir" && as_dir=.
2576 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2577 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578
    ac_cv_prog_ac_ct_CC="gcc"
2579 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 90 jeremybenn
    break 2
2581
  fi
2582
done
2583 346 jeremybenn
  done
2584 90 jeremybenn
IFS=$as_save_IFS
2585
 
2586
fi
2587
fi
2588
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589
if test -n "$ac_ct_CC"; then
2590 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2591 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2592
else
2593 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 90 jeremybenn
$as_echo "no" >&6; }
2595
fi
2596
 
2597
  if test "x$ac_ct_CC" = x; then
2598
    CC=""
2599
  else
2600
    case $cross_compiling:$ac_tool_warned in
2601
yes:)
2602 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604
ac_tool_warned=yes ;;
2605
esac
2606
    CC=$ac_ct_CC
2607
  fi
2608
else
2609
  CC="$ac_cv_prog_CC"
2610
fi
2611
 
2612
if test -z "$CC"; then
2613
          if test -n "$ac_tool_prefix"; then
2614
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2615
set dummy ${ac_tool_prefix}cc; ac_word=$2
2616 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2618 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2619 90 jeremybenn
  $as_echo_n "(cached) " >&6
2620
else
2621
  if test -n "$CC"; then
2622
  ac_cv_prog_CC="$CC" # Let the user override the test.
2623
else
2624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625
for as_dir in $PATH
2626
do
2627
  IFS=$as_save_IFS
2628
  test -z "$as_dir" && as_dir=.
2629 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2630 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2632 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 90 jeremybenn
    break 2
2634
  fi
2635
done
2636 346 jeremybenn
  done
2637 90 jeremybenn
IFS=$as_save_IFS
2638
 
2639
fi
2640
fi
2641
CC=$ac_cv_prog_CC
2642
if test -n "$CC"; then
2643 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 90 jeremybenn
$as_echo "$CC" >&6; }
2645
else
2646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 90 jeremybenn
$as_echo "no" >&6; }
2648
fi
2649
 
2650
 
2651
  fi
2652
fi
2653
if test -z "$CC"; then
2654
  # Extract the first word of "cc", so it can be a program name with args.
2655
set dummy cc; ac_word=$2
2656 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2658 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2659 90 jeremybenn
  $as_echo_n "(cached) " >&6
2660
else
2661
  if test -n "$CC"; then
2662
  ac_cv_prog_CC="$CC" # Let the user override the test.
2663
else
2664
  ac_prog_rejected=no
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
for as_dir in $PATH
2667
do
2668
  IFS=$as_save_IFS
2669
  test -z "$as_dir" && as_dir=.
2670 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2671 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2673
       ac_prog_rejected=yes
2674
       continue
2675
     fi
2676
    ac_cv_prog_CC="cc"
2677 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 90 jeremybenn
    break 2
2679
  fi
2680
done
2681 346 jeremybenn
  done
2682 90 jeremybenn
IFS=$as_save_IFS
2683
 
2684
if test $ac_prog_rejected = yes; then
2685
  # We found a bogon in the path, so make sure we never use it.
2686
  set dummy $ac_cv_prog_CC
2687
  shift
2688
  if test $# != 0; then
2689
    # We chose a different compiler from the bogus one.
2690
    # However, it has the same basename, so the bogon will be chosen
2691
    # first if we set CC to just the basename; use the full file name.
2692
    shift
2693
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2694
  fi
2695
fi
2696
fi
2697
fi
2698
CC=$ac_cv_prog_CC
2699
if test -n "$CC"; then
2700 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 90 jeremybenn
$as_echo "$CC" >&6; }
2702
else
2703 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 90 jeremybenn
$as_echo "no" >&6; }
2705
fi
2706
 
2707
 
2708
fi
2709
if test -z "$CC"; then
2710
  if test -n "$ac_tool_prefix"; then
2711
  for ac_prog in cl.exe
2712
  do
2713
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2714
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2715 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2717 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2718 90 jeremybenn
  $as_echo_n "(cached) " >&6
2719
else
2720
  if test -n "$CC"; then
2721
  ac_cv_prog_CC="$CC" # Let the user override the test.
2722
else
2723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724
for as_dir in $PATH
2725
do
2726
  IFS=$as_save_IFS
2727
  test -z "$as_dir" && as_dir=.
2728 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2729 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2731 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 90 jeremybenn
    break 2
2733
  fi
2734
done
2735 346 jeremybenn
  done
2736 90 jeremybenn
IFS=$as_save_IFS
2737
 
2738
fi
2739
fi
2740
CC=$ac_cv_prog_CC
2741
if test -n "$CC"; then
2742 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 90 jeremybenn
$as_echo "$CC" >&6; }
2744
else
2745 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 90 jeremybenn
$as_echo "no" >&6; }
2747
fi
2748
 
2749
 
2750
    test -n "$CC" && break
2751
  done
2752
fi
2753
if test -z "$CC"; then
2754
  ac_ct_CC=$CC
2755
  for ac_prog in cl.exe
2756
do
2757
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2758
set dummy $ac_prog; ac_word=$2
2759 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2761 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2762 90 jeremybenn
  $as_echo_n "(cached) " >&6
2763
else
2764
  if test -n "$ac_ct_CC"; then
2765
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766
else
2767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768
for as_dir in $PATH
2769
do
2770
  IFS=$as_save_IFS
2771
  test -z "$as_dir" && as_dir=.
2772 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2773 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774
    ac_cv_prog_ac_ct_CC="$ac_prog"
2775 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 90 jeremybenn
    break 2
2777
  fi
2778
done
2779 346 jeremybenn
  done
2780 90 jeremybenn
IFS=$as_save_IFS
2781
 
2782
fi
2783
fi
2784
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785
if test -n "$ac_ct_CC"; then
2786 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2787 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2788
else
2789 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 90 jeremybenn
$as_echo "no" >&6; }
2791
fi
2792
 
2793
 
2794
  test -n "$ac_ct_CC" && break
2795
done
2796
 
2797
  if test "x$ac_ct_CC" = x; then
2798
    CC=""
2799
  else
2800
    case $cross_compiling:$ac_tool_warned in
2801
yes:)
2802 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804
ac_tool_warned=yes ;;
2805
esac
2806
    CC=$ac_ct_CC
2807
  fi
2808
fi
2809
 
2810
fi
2811
 
2812
 
2813 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
2816
See \`config.log' for more details" "$LINENO" 5; }
2817 90 jeremybenn
 
2818
# Provide some information about the compiler.
2819 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2820 90 jeremybenn
set X $ac_compile
2821
ac_compiler=$2
2822 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2823
  { { ac_try="$ac_compiler $ac_option >&5"
2824 90 jeremybenn
case "(($ac_try" in
2825
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826
  *) ac_try_echo=$ac_try;;
2827
esac
2828 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2829
$as_echo "$ac_try_echo"; } >&5
2830
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2831 90 jeremybenn
  ac_status=$?
2832 346 jeremybenn
  if test -s conftest.err; then
2833
    sed '10a\
2834
... rest of stderr output deleted ...
2835
         10q' conftest.err >conftest.er1
2836
    cat conftest.er1 >&5
2837
  fi
2838 625 jeremybenn
  rm -f conftest.er1 conftest.err
2839 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840
  test $ac_status = 0; }
2841
done
2842 90 jeremybenn
 
2843 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 90 jeremybenn
/* end confdefs.h.  */
2845 625 jeremybenn
 
2846 90 jeremybenn
int
2847
main ()
2848
{
2849
 
2850
  ;
2851
  return 0;
2852
}
2853
_ACEOF
2854
ac_clean_files_save=$ac_clean_files
2855 625 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2856 90 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2857
# It will help us diagnose broken compilers, and finding out an intuition
2858
# of exeext.
2859 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2860
$as_echo_n "checking whether the C compiler works... " >&6; }
2861 90 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2862
 
2863
# The possible output files:
2864
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2865
 
2866
ac_rmfiles=
2867
for ac_file in $ac_files
2868
do
2869
  case $ac_file in
2870
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2871
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2872
  esac
2873
done
2874
rm -f $ac_rmfiles
2875
 
2876 346 jeremybenn
if { { ac_try="$ac_link_default"
2877 90 jeremybenn
case "(($ac_try" in
2878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879
  *) ac_try_echo=$ac_try;;
2880
esac
2881 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882
$as_echo "$ac_try_echo"; } >&5
2883 90 jeremybenn
  (eval "$ac_link_default") 2>&5
2884
  ac_status=$?
2885 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886
  test $ac_status = 0; }; then :
2887 90 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2890
# so that the user can short-circuit this test for compilers unknown to
2891
# Autoconf.
2892
for ac_file in $ac_files ''
2893
do
2894
  test -f "$ac_file" || continue
2895
  case $ac_file in
2896
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2897
        ;;
2898
    [ab].out )
2899
        # We found the default executable, but exeext='' is most
2900
        # certainly right.
2901
        break;;
2902
    *.* )
2903 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2904 90 jeremybenn
        then :; else
2905
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906
        fi
2907
        # We set ac_cv_exeext here because the later test for it is not
2908
        # safe: cross compilers may not add the suffix if given an `-o'
2909
        # argument, so we may need to know it at that point already.
2910
        # Even if this section looks crufty: it has the advantage of
2911
        # actually working.
2912
        break;;
2913
    * )
2914
        break;;
2915
  esac
2916
done
2917
test "$ac_cv_exeext" = no && ac_cv_exeext=
2918
 
2919
else
2920
  ac_file=''
2921
fi
2922 346 jeremybenn
if test -z "$ac_file"; then :
2923 625 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924
$as_echo "no" >&6; }
2925
$as_echo "$as_me: failed program was:" >&5
2926 90 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2927
 
2928 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 625 jeremybenn
as_fn_error 77 "C compiler cannot create executables
2931
See \`config.log' for more details" "$LINENO" 5; }
2932
else
2933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2934
$as_echo "yes" >&6; }
2935 90 jeremybenn
fi
2936 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2937
$as_echo_n "checking for C compiler default output file name... " >&6; }
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2939
$as_echo "$ac_file" >&6; }
2940 90 jeremybenn
ac_exeext=$ac_cv_exeext
2941
 
2942 625 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2943 90 jeremybenn
ac_clean_files=$ac_clean_files_save
2944 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2945 90 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2946 346 jeremybenn
if { { ac_try="$ac_link"
2947 90 jeremybenn
case "(($ac_try" in
2948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
  *) ac_try_echo=$ac_try;;
2950
esac
2951 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952
$as_echo "$ac_try_echo"; } >&5
2953 90 jeremybenn
  (eval "$ac_link") 2>&5
2954
  ac_status=$?
2955 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956
  test $ac_status = 0; }; then :
2957 90 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2959
# work properly (i.e., refer to `conftest.exe'), while it won't with
2960
# `rm'.
2961
for ac_file in conftest.exe conftest conftest.*; do
2962
  test -f "$ac_file" || continue
2963
  case $ac_file in
2964
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966
          break;;
2967
    * ) break;;
2968
  esac
2969
done
2970
else
2971 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973 625 jeremybenn
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2974
See \`config.log' for more details" "$LINENO" 5; }
2975 90 jeremybenn
fi
2976 625 jeremybenn
rm -f conftest conftest$ac_cv_exeext
2977 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2978 90 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2979
 
2980
rm -f conftest.$ac_ext
2981
EXEEXT=$ac_cv_exeext
2982
ac_exeext=$EXEEXT
2983 625 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984
/* end confdefs.h.  */
2985
#include 
2986
int
2987
main ()
2988
{
2989
FILE *f = fopen ("conftest.out", "w");
2990
 return ferror (f) || fclose (f) != 0;
2991
 
2992
  ;
2993
  return 0;
2994
}
2995
_ACEOF
2996
ac_clean_files="$ac_clean_files conftest.out"
2997
# Check that the compiler produces executables we can run.  If not, either
2998
# the compiler is broken, or we cross compile.
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3000
$as_echo_n "checking whether we are cross compiling... " >&6; }
3001
if test "$cross_compiling" != yes; then
3002
  { { ac_try="$ac_link"
3003
case "(($ac_try" in
3004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005
  *) ac_try_echo=$ac_try;;
3006
esac
3007
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008
$as_echo "$ac_try_echo"; } >&5
3009
  (eval "$ac_link") 2>&5
3010
  ac_status=$?
3011
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012
  test $ac_status = 0; }
3013
  if { ac_try='./conftest$ac_cv_exeext'
3014
  { { case "(($ac_try" in
3015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016
  *) ac_try_echo=$ac_try;;
3017
esac
3018
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019
$as_echo "$ac_try_echo"; } >&5
3020
  (eval "$ac_try") 2>&5
3021
  ac_status=$?
3022
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023
  test $ac_status = 0; }; }; then
3024
    cross_compiling=no
3025
  else
3026
    if test "$cross_compiling" = maybe; then
3027
        cross_compiling=yes
3028
    else
3029
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031
as_fn_error $? "cannot run C compiled programs.
3032
If you meant to cross compile, use \`--host'.
3033
See \`config.log' for more details" "$LINENO" 5; }
3034
    fi
3035
  fi
3036
fi
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3038
$as_echo "$cross_compiling" >&6; }
3039
 
3040
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3041
ac_clean_files=$ac_clean_files_save
3042 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3043 90 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3044 625 jeremybenn
if ${ac_cv_objext+:} false; then :
3045 90 jeremybenn
  $as_echo_n "(cached) " >&6
3046
else
3047 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 90 jeremybenn
/* end confdefs.h.  */
3049
 
3050
int
3051
main ()
3052
{
3053
 
3054
  ;
3055
  return 0;
3056
}
3057
_ACEOF
3058
rm -f conftest.o conftest.obj
3059 346 jeremybenn
if { { ac_try="$ac_compile"
3060 90 jeremybenn
case "(($ac_try" in
3061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062
  *) ac_try_echo=$ac_try;;
3063
esac
3064 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065
$as_echo "$ac_try_echo"; } >&5
3066 90 jeremybenn
  (eval "$ac_compile") 2>&5
3067
  ac_status=$?
3068 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069
  test $ac_status = 0; }; then :
3070 90 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3071
  test -f "$ac_file" || continue;
3072
  case $ac_file in
3073
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3074
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3075
       break;;
3076
  esac
3077
done
3078
else
3079
  $as_echo "$as_me: failed program was:" >&5
3080
sed 's/^/| /' conftest.$ac_ext >&5
3081
 
3082 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 625 jeremybenn
as_fn_error $? "cannot compute suffix of object files: cannot compile
3085
See \`config.log' for more details" "$LINENO" 5; }
3086 90 jeremybenn
fi
3087
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3088
fi
3089 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3090 90 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3091
OBJEXT=$ac_cv_objext
3092
ac_objext=$OBJEXT
3093 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3094 90 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3095 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
3096 90 jeremybenn
  $as_echo_n "(cached) " >&6
3097
else
3098 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 90 jeremybenn
/* end confdefs.h.  */
3100
 
3101
int
3102
main ()
3103
{
3104
#ifndef __GNUC__
3105
       choke me
3106
#endif
3107
 
3108
  ;
3109
  return 0;
3110
}
3111
_ACEOF
3112 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3113 90 jeremybenn
  ac_compiler_gnu=yes
3114
else
3115 346 jeremybenn
  ac_compiler_gnu=no
3116 90 jeremybenn
fi
3117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3119
 
3120
fi
3121 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3122 90 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3123
if test $ac_compiler_gnu = yes; then
3124
  GCC=yes
3125
else
3126
  GCC=
3127
fi
3128
ac_test_CFLAGS=${CFLAGS+set}
3129
ac_save_CFLAGS=$CFLAGS
3130 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3131 90 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3132 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
3133 90 jeremybenn
  $as_echo_n "(cached) " >&6
3134
else
3135
  ac_save_c_werror_flag=$ac_c_werror_flag
3136
   ac_c_werror_flag=yes
3137
   ac_cv_prog_cc_g=no
3138
   CFLAGS="-g"
3139 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 90 jeremybenn
/* end confdefs.h.  */
3141
 
3142
int
3143
main ()
3144
{
3145
 
3146
  ;
3147
  return 0;
3148
}
3149
_ACEOF
3150 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3151 90 jeremybenn
  ac_cv_prog_cc_g=yes
3152
else
3153 346 jeremybenn
  CFLAGS=""
3154
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 90 jeremybenn
/* end confdefs.h.  */
3156
 
3157
int
3158
main ()
3159
{
3160
 
3161
  ;
3162
  return 0;
3163
}
3164
_ACEOF
3165 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3166
 
3167 236 jeremybenn
else
3168 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3169 90 jeremybenn
         CFLAGS="-g"
3170 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 90 jeremybenn
/* end confdefs.h.  */
3172
 
3173
int
3174
main ()
3175
{
3176
 
3177
  ;
3178
  return 0;
3179
}
3180
_ACEOF
3181 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3182 90 jeremybenn
  ac_cv_prog_cc_g=yes
3183
fi
3184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185
fi
3186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187
fi
3188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189
   ac_c_werror_flag=$ac_save_c_werror_flag
3190
fi
3191 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3192 90 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3193
if test "$ac_test_CFLAGS" = set; then
3194
  CFLAGS=$ac_save_CFLAGS
3195
elif test $ac_cv_prog_cc_g = yes; then
3196
  if test "$GCC" = yes; then
3197
    CFLAGS="-g -O2"
3198
  else
3199
    CFLAGS="-g"
3200
  fi
3201
else
3202
  if test "$GCC" = yes; then
3203
    CFLAGS="-O2"
3204
  else
3205
    CFLAGS=
3206
  fi
3207
fi
3208 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3209 90 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3210 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
3211 90 jeremybenn
  $as_echo_n "(cached) " >&6
3212
else
3213
  ac_cv_prog_cc_c89=no
3214
ac_save_CC=$CC
3215 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 90 jeremybenn
/* end confdefs.h.  */
3217
#include 
3218
#include 
3219
#include 
3220
#include 
3221
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3222
struct buf { int x; };
3223
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224
static char *e (p, i)
3225
     char **p;
3226
     int i;
3227
{
3228
  return p[i];
3229
}
3230
static char *f (char * (*g) (char **, int), char **p, ...)
3231
{
3232
  char *s;
3233
  va_list v;
3234
  va_start (v,p);
3235
  s = g (p, va_arg (v,int));
3236
  va_end (v);
3237
  return s;
3238
}
3239
 
3240
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3241
   function prototypes and stuff, but not '\xHH' hex character constants.
3242
   These don't provoke an error unfortunately, instead are silently treated
3243
   as 'x'.  The following induces an error, until -std is added to get
3244
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3245
   array size at least.  It's necessary to write '\x00'==0 to get something
3246
   that's true only with -std.  */
3247
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248
 
3249
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250
   inside strings and character constants.  */
3251
#define FOO(x) 'x'
3252
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253
 
3254
int test (int i, double x);
3255
struct s1 {int (*f) (int a);};
3256
struct s2 {int (*f) (double a);};
3257
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258
int argc;
3259
char **argv;
3260
int
3261
main ()
3262
{
3263
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3264
  ;
3265
  return 0;
3266
}
3267
_ACEOF
3268
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270
do
3271
  CC="$ac_save_CC $ac_arg"
3272 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3273 90 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3274
fi
3275
rm -f core conftest.err conftest.$ac_objext
3276
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3277
done
3278
rm -f conftest.$ac_ext
3279
CC=$ac_save_CC
3280
 
3281
fi
3282
# AC_CACHE_VAL
3283
case "x$ac_cv_prog_cc_c89" in
3284
  x)
3285 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3286 90 jeremybenn
$as_echo "none needed" >&6; } ;;
3287
  xno)
3288 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3289 90 jeremybenn
$as_echo "unsupported" >&6; } ;;
3290
  *)
3291
    CC="$CC $ac_cv_prog_cc_c89"
3292 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3293 90 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3294
esac
3295 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3296 90 jeremybenn
 
3297 346 jeremybenn
fi
3298 90 jeremybenn
 
3299
ac_ext=c
3300
ac_cpp='$CPP $CPPFLAGS'
3301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
 
3305 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3306 90 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3307 625 jeremybenn
if ${ac_cv_path_SED+:} false; then :
3308 90 jeremybenn
  $as_echo_n "(cached) " >&6
3309
else
3310
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3311
     for ac_i in 1 2 3 4 5 6 7; do
3312
       ac_script="$ac_script$as_nl$ac_script"
3313
     done
3314
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3315 346 jeremybenn
     { ac_script=; unset ac_script;}
3316 90 jeremybenn
     if test -z "$SED"; then
3317
  ac_path_SED_found=false
3318
  # Loop through the user's path and test for each of PROGNAME-LIST
3319
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320
for as_dir in $PATH
3321
do
3322
  IFS=$as_save_IFS
3323
  test -z "$as_dir" && as_dir=.
3324 346 jeremybenn
    for ac_prog in sed gsed; do
3325 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3326
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3327
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3328
# Check for GNU ac_path_SED and select it if it is found.
3329
  # Check for GNU $ac_path_SED
3330
case `"$ac_path_SED" --version 2>&1` in
3331
*GNU*)
3332
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3333
*)
3334
  ac_count=0
3335
  $as_echo_n 0123456789 >"conftest.in"
3336
  while :
3337
  do
3338
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3339
    mv "conftest.tmp" "conftest.in"
3340
    cp "conftest.in" "conftest.nl"
3341
    $as_echo '' >> "conftest.nl"
3342
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3343
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3344 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3345 90 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3346
      # Best one so far, save it but keep looking for a better one
3347
      ac_cv_path_SED="$ac_path_SED"
3348
      ac_path_SED_max=$ac_count
3349
    fi
3350
    # 10*(2^10) chars as input seems more than enough
3351
    test $ac_count -gt 10 && break
3352
  done
3353
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3354
esac
3355
 
3356
      $ac_path_SED_found && break 3
3357
    done
3358
  done
3359 346 jeremybenn
  done
3360 90 jeremybenn
IFS=$as_save_IFS
3361
  if test -z "$ac_cv_path_SED"; then
3362 625 jeremybenn
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3363 90 jeremybenn
  fi
3364
else
3365
  ac_cv_path_SED=$SED
3366
fi
3367
 
3368
fi
3369 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3370 90 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
3371
 SED="$ac_cv_path_SED"
3372
  rm -f conftest.sed
3373
 
3374
test -z "$SED" && SED=sed
3375
Xsed="$SED -e 1s/^X//"
3376
 
3377
 
3378
 
3379
 
3380
 
3381
 
3382
 
3383
 
3384
 
3385
 
3386
 
3387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3388 90 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3389 625 jeremybenn
if ${ac_cv_path_GREP+:} false; then :
3390 90 jeremybenn
  $as_echo_n "(cached) " >&6
3391
else
3392
  if test -z "$GREP"; then
3393
  ac_path_GREP_found=false
3394
  # Loop through the user's path and test for each of PROGNAME-LIST
3395
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3397
do
3398
  IFS=$as_save_IFS
3399
  test -z "$as_dir" && as_dir=.
3400 346 jeremybenn
    for ac_prog in grep ggrep; do
3401 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3402
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3403
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3404
# Check for GNU ac_path_GREP and select it if it is found.
3405
  # Check for GNU $ac_path_GREP
3406
case `"$ac_path_GREP" --version 2>&1` in
3407
*GNU*)
3408
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3409
*)
3410
  ac_count=0
3411
  $as_echo_n 0123456789 >"conftest.in"
3412
  while :
3413
  do
3414
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3415
    mv "conftest.tmp" "conftest.in"
3416
    cp "conftest.in" "conftest.nl"
3417
    $as_echo 'GREP' >> "conftest.nl"
3418
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3419
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3420 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3421 90 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3422
      # Best one so far, save it but keep looking for a better one
3423
      ac_cv_path_GREP="$ac_path_GREP"
3424
      ac_path_GREP_max=$ac_count
3425
    fi
3426
    # 10*(2^10) chars as input seems more than enough
3427
    test $ac_count -gt 10 && break
3428
  done
3429
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3430
esac
3431
 
3432
      $ac_path_GREP_found && break 3
3433
    done
3434
  done
3435 346 jeremybenn
  done
3436 90 jeremybenn
IFS=$as_save_IFS
3437
  if test -z "$ac_cv_path_GREP"; then
3438 625 jeremybenn
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3439 90 jeremybenn
  fi
3440
else
3441
  ac_cv_path_GREP=$GREP
3442
fi
3443
 
3444
fi
3445 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3446 90 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3447
 GREP="$ac_cv_path_GREP"
3448
 
3449
 
3450 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3451 90 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3452 625 jeremybenn
if ${ac_cv_path_EGREP+:} false; then :
3453 90 jeremybenn
  $as_echo_n "(cached) " >&6
3454
else
3455
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3456
   then ac_cv_path_EGREP="$GREP -E"
3457
   else
3458
     if test -z "$EGREP"; then
3459
  ac_path_EGREP_found=false
3460
  # Loop through the user's path and test for each of PROGNAME-LIST
3461
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3463
do
3464
  IFS=$as_save_IFS
3465
  test -z "$as_dir" && as_dir=.
3466 346 jeremybenn
    for ac_prog in egrep; do
3467 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3468
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3469
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3470
# Check for GNU ac_path_EGREP and select it if it is found.
3471
  # Check for GNU $ac_path_EGREP
3472
case `"$ac_path_EGREP" --version 2>&1` in
3473
*GNU*)
3474
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3475
*)
3476
  ac_count=0
3477
  $as_echo_n 0123456789 >"conftest.in"
3478
  while :
3479
  do
3480
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3481
    mv "conftest.tmp" "conftest.in"
3482
    cp "conftest.in" "conftest.nl"
3483
    $as_echo 'EGREP' >> "conftest.nl"
3484
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3485
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3486 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3487 90 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3488
      # Best one so far, save it but keep looking for a better one
3489
      ac_cv_path_EGREP="$ac_path_EGREP"
3490
      ac_path_EGREP_max=$ac_count
3491
    fi
3492
    # 10*(2^10) chars as input seems more than enough
3493
    test $ac_count -gt 10 && break
3494
  done
3495
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3496
esac
3497
 
3498
      $ac_path_EGREP_found && break 3
3499
    done
3500
  done
3501 346 jeremybenn
  done
3502 90 jeremybenn
IFS=$as_save_IFS
3503
  if test -z "$ac_cv_path_EGREP"; then
3504 625 jeremybenn
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3505 90 jeremybenn
  fi
3506
else
3507
  ac_cv_path_EGREP=$EGREP
3508
fi
3509
 
3510
   fi
3511
fi
3512 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3513 90 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3514
 EGREP="$ac_cv_path_EGREP"
3515
 
3516
 
3517 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3518 90 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
3519 625 jeremybenn
if ${ac_cv_path_FGREP+:} false; then :
3520 90 jeremybenn
  $as_echo_n "(cached) " >&6
3521
else
3522
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3523
   then ac_cv_path_FGREP="$GREP -F"
3524
   else
3525
     if test -z "$FGREP"; then
3526
  ac_path_FGREP_found=false
3527
  # Loop through the user's path and test for each of PROGNAME-LIST
3528
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530
do
3531
  IFS=$as_save_IFS
3532
  test -z "$as_dir" && as_dir=.
3533 346 jeremybenn
    for ac_prog in fgrep; do
3534 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3535
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3536
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3537
# Check for GNU ac_path_FGREP and select it if it is found.
3538
  # Check for GNU $ac_path_FGREP
3539
case `"$ac_path_FGREP" --version 2>&1` in
3540
*GNU*)
3541
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3542
*)
3543
  ac_count=0
3544
  $as_echo_n 0123456789 >"conftest.in"
3545
  while :
3546
  do
3547
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3548
    mv "conftest.tmp" "conftest.in"
3549
    cp "conftest.in" "conftest.nl"
3550
    $as_echo 'FGREP' >> "conftest.nl"
3551
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3554 90 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3555
      # Best one so far, save it but keep looking for a better one
3556
      ac_cv_path_FGREP="$ac_path_FGREP"
3557
      ac_path_FGREP_max=$ac_count
3558
    fi
3559
    # 10*(2^10) chars as input seems more than enough
3560
    test $ac_count -gt 10 && break
3561
  done
3562
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3563
esac
3564
 
3565
      $ac_path_FGREP_found && break 3
3566
    done
3567
  done
3568 346 jeremybenn
  done
3569 90 jeremybenn
IFS=$as_save_IFS
3570
  if test -z "$ac_cv_path_FGREP"; then
3571 625 jeremybenn
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3572 90 jeremybenn
  fi
3573
else
3574
  ac_cv_path_FGREP=$FGREP
3575
fi
3576
 
3577
   fi
3578
fi
3579 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3580 90 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
3581
 FGREP="$ac_cv_path_FGREP"
3582
 
3583
 
3584
test -z "$GREP" && GREP=grep
3585
 
3586
 
3587
 
3588
 
3589
 
3590
 
3591
 
3592
 
3593
 
3594
 
3595
 
3596
 
3597
 
3598
 
3599
 
3600
 
3601
 
3602
 
3603
 
3604
# Check whether --with-gnu-ld was given.
3605 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
3606 90 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3607
else
3608
  with_gnu_ld=no
3609
fi
3610
 
3611
ac_prog=ld
3612
if test "$GCC" = yes; then
3613
  # Check if gcc -print-prog-name=ld gives a path.
3614 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3615 90 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
3616
  case $host in
3617
  *-*-mingw*)
3618
    # gcc leaves a trailing carriage return which upsets mingw
3619
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3620
  *)
3621
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3622
  esac
3623
  case $ac_prog in
3624
    # Accept absolute paths.
3625
    [\\/]* | ?:[\\/]*)
3626
      re_direlt='/[^/][^/]*/\.\./'
3627
      # Canonicalize the pathname of ld
3628
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3629
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3630
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3631
      done
3632
      test -z "$LD" && LD="$ac_prog"
3633
      ;;
3634
  "")
3635
    # If it fails, then pretend we aren't using GCC.
3636
    ac_prog=ld
3637
    ;;
3638
  *)
3639
    # If it is relative, then search for the first ld in PATH.
3640
    with_gnu_ld=unknown
3641
    ;;
3642
  esac
3643
elif test "$with_gnu_ld" = yes; then
3644 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3645 90 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
3646
else
3647 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3648 90 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
3649
fi
3650 625 jeremybenn
if ${lt_cv_path_LD+:} false; then :
3651 90 jeremybenn
  $as_echo_n "(cached) " >&6
3652
else
3653
  if test -z "$LD"; then
3654
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3655
  for ac_dir in $PATH; do
3656
    IFS="$lt_save_ifs"
3657
    test -z "$ac_dir" && ac_dir=.
3658
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3659
      lt_cv_path_LD="$ac_dir/$ac_prog"
3660
      # Check to see if the program is GNU ld.  I'd rather use --version,
3661
      # but apparently some variants of GNU ld only accept -v.
3662
      # Break only if it was the GNU/non-GNU ld that we prefer.
3663
      case `"$lt_cv_path_LD" -v 2>&1 
3664
      *GNU* | *'with BFD'*)
3665
        test "$with_gnu_ld" != no && break
3666
        ;;
3667
      *)
3668
        test "$with_gnu_ld" != yes && break
3669
        ;;
3670
      esac
3671
    fi
3672
  done
3673
  IFS="$lt_save_ifs"
3674
else
3675
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3676
fi
3677
fi
3678
 
3679
LD="$lt_cv_path_LD"
3680
if test -n "$LD"; then
3681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3682 90 jeremybenn
$as_echo "$LD" >&6; }
3683
else
3684 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 90 jeremybenn
$as_echo "no" >&6; }
3686
fi
3687 625 jeremybenn
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3688 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3689 90 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3690 625 jeremybenn
if ${lt_cv_prog_gnu_ld+:} false; then :
3691 90 jeremybenn
  $as_echo_n "(cached) " >&6
3692
else
3693
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3694
case `$LD -v 2>&1 
3695
*GNU* | *'with BFD'*)
3696
  lt_cv_prog_gnu_ld=yes
3697
  ;;
3698
*)
3699
  lt_cv_prog_gnu_ld=no
3700
  ;;
3701
esac
3702
fi
3703 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3704 90 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3705
with_gnu_ld=$lt_cv_prog_gnu_ld
3706
 
3707
 
3708
 
3709
 
3710
 
3711
 
3712
 
3713
 
3714
 
3715 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3716 90 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3717 625 jeremybenn
if ${lt_cv_path_NM+:} false; then :
3718 90 jeremybenn
  $as_echo_n "(cached) " >&6
3719
else
3720
  if test -n "$NM"; then
3721
  # Let the user override the test.
3722
  lt_cv_path_NM="$NM"
3723
else
3724
  lt_nm_to_check="${ac_tool_prefix}nm"
3725
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3726
    lt_nm_to_check="$lt_nm_to_check nm"
3727
  fi
3728
  for lt_tmp_nm in $lt_nm_to_check; do
3729
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3730
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3731
      IFS="$lt_save_ifs"
3732
      test -z "$ac_dir" && ac_dir=.
3733
      tmp_nm="$ac_dir/$lt_tmp_nm"
3734
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3735
        # Check to see if the nm accepts a BSD-compat flag.
3736
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3737
        #   nm: unknown option "B" ignored
3738
        # Tru64's nm complains that /dev/null is an invalid object file
3739
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3740
        */dev/null* | *'Invalid file or object type'*)
3741
          lt_cv_path_NM="$tmp_nm -B"
3742
          break
3743
          ;;
3744
        *)
3745
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3746
          */dev/null*)
3747
            lt_cv_path_NM="$tmp_nm -p"
3748
            break
3749
            ;;
3750
          *)
3751
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3752
            continue # so that we can try to find one that supports BSD flags
3753
            ;;
3754
          esac
3755
          ;;
3756
        esac
3757
      fi
3758
    done
3759
    IFS="$lt_save_ifs"
3760
  done
3761
  : ${lt_cv_path_NM=no}
3762
fi
3763
fi
3764 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3765 90 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
3766
if test "$lt_cv_path_NM" != "no"; then
3767
  NM="$lt_cv_path_NM"
3768
else
3769
  # Didn't find any BSD compatible name lister, look for dumpbin.
3770
  if test -n "$ac_tool_prefix"; then
3771
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3772
  do
3773
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3774
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3775 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3777 625 jeremybenn
if ${ac_cv_prog_DUMPBIN+:} false; then :
3778 90 jeremybenn
  $as_echo_n "(cached) " >&6
3779
else
3780
  if test -n "$DUMPBIN"; then
3781
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3782
else
3783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784
for as_dir in $PATH
3785
do
3786
  IFS=$as_save_IFS
3787
  test -z "$as_dir" && as_dir=.
3788 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3789 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3791 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 90 jeremybenn
    break 2
3793
  fi
3794
done
3795 346 jeremybenn
  done
3796 90 jeremybenn
IFS=$as_save_IFS
3797
 
3798
fi
3799
fi
3800
DUMPBIN=$ac_cv_prog_DUMPBIN
3801
if test -n "$DUMPBIN"; then
3802 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3803 90 jeremybenn
$as_echo "$DUMPBIN" >&6; }
3804
else
3805 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 90 jeremybenn
$as_echo "no" >&6; }
3807
fi
3808
 
3809
 
3810
    test -n "$DUMPBIN" && break
3811
  done
3812
fi
3813
if test -z "$DUMPBIN"; then
3814
  ac_ct_DUMPBIN=$DUMPBIN
3815
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3816
do
3817
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3818
set dummy $ac_prog; ac_word=$2
3819 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3821 625 jeremybenn
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3822 90 jeremybenn
  $as_echo_n "(cached) " >&6
3823
else
3824
  if test -n "$ac_ct_DUMPBIN"; then
3825
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3826
else
3827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828
for as_dir in $PATH
3829
do
3830
  IFS=$as_save_IFS
3831
  test -z "$as_dir" && as_dir=.
3832 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3833 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3835 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 90 jeremybenn
    break 2
3837
  fi
3838
done
3839 346 jeremybenn
  done
3840 90 jeremybenn
IFS=$as_save_IFS
3841
 
3842
fi
3843
fi
3844
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3845
if test -n "$ac_ct_DUMPBIN"; then
3846 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3847 90 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
3848
else
3849 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 90 jeremybenn
$as_echo "no" >&6; }
3851
fi
3852
 
3853
 
3854
  test -n "$ac_ct_DUMPBIN" && break
3855
done
3856
 
3857
  if test "x$ac_ct_DUMPBIN" = x; then
3858
    DUMPBIN=":"
3859
  else
3860
    case $cross_compiling:$ac_tool_warned in
3861
yes:)
3862 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864
ac_tool_warned=yes ;;
3865
esac
3866
    DUMPBIN=$ac_ct_DUMPBIN
3867
  fi
3868
fi
3869
 
3870
 
3871
  if test "$DUMPBIN" != ":"; then
3872
    NM="$DUMPBIN"
3873
  fi
3874
fi
3875
test -z "$NM" && NM=nm
3876
 
3877
 
3878
 
3879
 
3880
 
3881
 
3882 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3883 90 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3884 625 jeremybenn
if ${lt_cv_nm_interface+:} false; then :
3885 90 jeremybenn
  $as_echo_n "(cached) " >&6
3886
else
3887
  lt_cv_nm_interface="BSD nm"
3888
  echo "int some_variable = 0;" > conftest.$ac_ext
3889 625 jeremybenn
  (eval echo "\"\$as_me:3889: $ac_compile\"" >&5)
3890 90 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3891
  cat conftest.err >&5
3892 625 jeremybenn
  (eval echo "\"\$as_me:3892: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3893 90 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3894
  cat conftest.err >&5
3895 625 jeremybenn
  (eval echo "\"\$as_me:3895: output\"" >&5)
3896 90 jeremybenn
  cat conftest.out >&5
3897
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3898
    lt_cv_nm_interface="MS dumpbin"
3899
  fi
3900
  rm -f conftest*
3901
fi
3902 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3903 90 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
3904
 
3905 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3906 90 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
3907
LN_S=$as_ln_s
3908
if test "$LN_S" = "ln -s"; then
3909 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 90 jeremybenn
$as_echo "yes" >&6; }
3911
else
3912 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3913 90 jeremybenn
$as_echo "no, using $LN_S" >&6; }
3914
fi
3915
 
3916
# find the maximum length of command line arguments
3917 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3918 90 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3919 625 jeremybenn
if ${lt_cv_sys_max_cmd_len+:} false; then :
3920 90 jeremybenn
  $as_echo_n "(cached) " >&6
3921
else
3922
    i=0
3923
  teststring="ABCD"
3924
 
3925
  case $build_os in
3926
  msdosdjgpp*)
3927
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3928
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3929
    # during glob expansion).  Even if it were fixed, the result of this
3930
    # check would be larger than it should be.
3931
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3932
    ;;
3933
 
3934
  gnu*)
3935
    # Under GNU Hurd, this test is not required because there is
3936
    # no limit to the length of command line arguments.
3937
    # Libtool will interpret -1 as no limit whatsoever
3938
    lt_cv_sys_max_cmd_len=-1;
3939
    ;;
3940
 
3941
  cygwin* | mingw* | cegcc*)
3942
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3943
    # about 5 minutes as the teststring grows exponentially.
3944
    # Worse, since 9x/ME are not pre-emptively multitasking,
3945
    # you end up with a "frozen" computer, even though with patience
3946
    # the test eventually succeeds (with a max line length of 256k).
3947
    # Instead, let's just punt: use the minimum linelength reported by
3948
    # all of the supported platforms: 8192 (on NT/2K/XP).
3949
    lt_cv_sys_max_cmd_len=8192;
3950
    ;;
3951
 
3952
  amigaos*)
3953
    # On AmigaOS with pdksh, this test takes hours, literally.
3954
    # So we just punt and use a minimum line length of 8192.
3955
    lt_cv_sys_max_cmd_len=8192;
3956
    ;;
3957
 
3958
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3959
    # This has been around since 386BSD, at least.  Likely further.
3960
    if test -x /sbin/sysctl; then
3961
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3962
    elif test -x /usr/sbin/sysctl; then
3963
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3964
    else
3965
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3966
    fi
3967
    # And add a safety zone
3968
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3969
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3970
    ;;
3971
 
3972
  interix*)
3973
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3974
    lt_cv_sys_max_cmd_len=196608
3975
    ;;
3976
 
3977
  osf*)
3978
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3979
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3980
    # nice to cause kernel panics so lets avoid the loop below.
3981
    # First set a reasonable default.
3982
    lt_cv_sys_max_cmd_len=16384
3983
    #
3984
    if test -x /sbin/sysconfig; then
3985
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3986
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3987
      esac
3988
    fi
3989
    ;;
3990
  sco3.2v5*)
3991
    lt_cv_sys_max_cmd_len=102400
3992
    ;;
3993
  sysv5* | sco5v6* | sysv4.2uw2*)
3994
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3995
    if test -n "$kargmax"; then
3996
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3997
    else
3998
      lt_cv_sys_max_cmd_len=32768
3999
    fi
4000
    ;;
4001
  *)
4002
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4003
    if test -n "$lt_cv_sys_max_cmd_len"; then
4004
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4005
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4006
    else
4007
      # Make teststring a little bigger before we do anything with it.
4008
      # a 1K string should be a reasonable start.
4009
      for i in 1 2 3 4 5 6 7 8 ; do
4010
        teststring=$teststring$teststring
4011
      done
4012
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4013
      # If test is not a shell built-in, we'll probably end up computing a
4014
      # maximum length that is only half of the actual maximum length, but
4015
      # we can't tell.
4016
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4017
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4018
              test $i != 17 # 1/2 MB should be enough
4019
      do
4020
        i=`expr $i + 1`
4021
        teststring=$teststring$teststring
4022
      done
4023
      # Only check the string length outside the loop.
4024
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4025
      teststring=
4026
      # Add a significant safety factor because C++ compilers can tack on
4027
      # massive amounts of additional arguments before passing them to the
4028
      # linker.  It appears as though 1/2 is a usable value.
4029
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4030
    fi
4031
    ;;
4032
  esac
4033
 
4034
fi
4035
 
4036
if test -n $lt_cv_sys_max_cmd_len ; then
4037 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4038 90 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4039
else
4040 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4041 90 jeremybenn
$as_echo "none" >&6; }
4042
fi
4043
max_cmd_len=$lt_cv_sys_max_cmd_len
4044
 
4045
 
4046
 
4047
 
4048
 
4049
 
4050
: ${CP="cp -f"}
4051
: ${MV="mv -f"}
4052
: ${RM="rm -f"}
4053
 
4054 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4055 90 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4056
# Try some XSI features
4057
xsi_shell=no
4058
( _lt_dummy="a/b/c"
4059
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4060
      = c,a/b,, \
4061
    && eval 'test $(( 1 + 1 )) -eq 2 \
4062
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4063
  && xsi_shell=yes
4064 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4065 90 jeremybenn
$as_echo "$xsi_shell" >&6; }
4066
 
4067
 
4068 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4069 90 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4070
lt_shell_append=no
4071
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4072
    >/dev/null 2>&1 \
4073
  && lt_shell_append=yes
4074 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4075 90 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4076
 
4077
 
4078
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4079
  lt_unset=unset
4080
else
4081
  lt_unset=false
4082
fi
4083
 
4084
 
4085
 
4086
 
4087
 
4088
# test EBCDIC or ASCII
4089
case `echo X|tr X '\101'` in
4090
 A) # ASCII based system
4091
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4092
  lt_SP2NL='tr \040 \012'
4093
  lt_NL2SP='tr \015\012 \040\040'
4094
  ;;
4095
 *) # EBCDIC based system
4096
  lt_SP2NL='tr \100 \n'
4097
  lt_NL2SP='tr \r\n \100\100'
4098
  ;;
4099
esac
4100
 
4101
 
4102
 
4103
 
4104
 
4105
 
4106
 
4107
 
4108
 
4109 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4110 90 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4111 625 jeremybenn
if ${lt_cv_ld_reload_flag+:} false; then :
4112 90 jeremybenn
  $as_echo_n "(cached) " >&6
4113
else
4114
  lt_cv_ld_reload_flag='-r'
4115
fi
4116 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4117 90 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4118
reload_flag=$lt_cv_ld_reload_flag
4119
case $reload_flag in
4120
"" | " "*) ;;
4121
*) reload_flag=" $reload_flag" ;;
4122
esac
4123
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4124
case $host_os in
4125
  darwin*)
4126
    if test "$GCC" = yes; then
4127
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4128
    else
4129
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4130
    fi
4131
    ;;
4132
esac
4133
 
4134
 
4135
 
4136
 
4137
 
4138
 
4139
 
4140
 
4141
 
4142
if test -n "$ac_tool_prefix"; then
4143
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4144
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4145 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4147 625 jeremybenn
if ${ac_cv_prog_OBJDUMP+:} false; then :
4148 90 jeremybenn
  $as_echo_n "(cached) " >&6
4149
else
4150
  if test -n "$OBJDUMP"; then
4151
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4152
else
4153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154
for as_dir in $PATH
4155
do
4156
  IFS=$as_save_IFS
4157
  test -z "$as_dir" && as_dir=.
4158 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4159 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4161 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 90 jeremybenn
    break 2
4163
  fi
4164
done
4165 346 jeremybenn
  done
4166 90 jeremybenn
IFS=$as_save_IFS
4167
 
4168
fi
4169
fi
4170
OBJDUMP=$ac_cv_prog_OBJDUMP
4171
if test -n "$OBJDUMP"; then
4172 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4173 90 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4174
else
4175 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 90 jeremybenn
$as_echo "no" >&6; }
4177
fi
4178
 
4179
 
4180
fi
4181
if test -z "$ac_cv_prog_OBJDUMP"; then
4182
  ac_ct_OBJDUMP=$OBJDUMP
4183
  # Extract the first word of "objdump", so it can be a program name with args.
4184
set dummy objdump; ac_word=$2
4185 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4187 625 jeremybenn
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4188 90 jeremybenn
  $as_echo_n "(cached) " >&6
4189
else
4190
  if test -n "$ac_ct_OBJDUMP"; then
4191
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4192
else
4193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194
for as_dir in $PATH
4195
do
4196
  IFS=$as_save_IFS
4197
  test -z "$as_dir" && as_dir=.
4198 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4199 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4201 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 90 jeremybenn
    break 2
4203
  fi
4204
done
4205 346 jeremybenn
  done
4206 90 jeremybenn
IFS=$as_save_IFS
4207
 
4208
fi
4209
fi
4210
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4211
if test -n "$ac_ct_OBJDUMP"; then
4212 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4213 90 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4214
else
4215 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 90 jeremybenn
$as_echo "no" >&6; }
4217
fi
4218
 
4219
  if test "x$ac_ct_OBJDUMP" = x; then
4220
    OBJDUMP="false"
4221
  else
4222
    case $cross_compiling:$ac_tool_warned in
4223
yes:)
4224 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226
ac_tool_warned=yes ;;
4227
esac
4228
    OBJDUMP=$ac_ct_OBJDUMP
4229
  fi
4230
else
4231
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4232
fi
4233
 
4234
test -z "$OBJDUMP" && OBJDUMP=objdump
4235
 
4236
 
4237
 
4238
 
4239
 
4240
 
4241
 
4242
 
4243
 
4244 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4245 90 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4246 625 jeremybenn
if ${lt_cv_deplibs_check_method+:} false; then :
4247 90 jeremybenn
  $as_echo_n "(cached) " >&6
4248
else
4249
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4250
lt_cv_file_magic_test_file=
4251
lt_cv_deplibs_check_method='unknown'
4252
# Need to set the preceding variable on all platforms that support
4253
# interlibrary dependencies.
4254
# 'none' -- dependencies not supported.
4255
# `unknown' -- same as none, but documents that we really don't know.
4256
# 'pass_all' -- all dependencies passed with no checks.
4257
# 'test_compile' -- check by making test program.
4258
# 'file_magic [[regex]]' -- check by looking for files in library path
4259
# which responds to the $file_magic_cmd with a given extended regex.
4260
# If you have `file' or equivalent on your system and you're not sure
4261
# whether `pass_all' will *always* work, you probably want this one.
4262
 
4263
case $host_os in
4264
aix[4-9]*)
4265
  lt_cv_deplibs_check_method=pass_all
4266
  ;;
4267
 
4268
beos*)
4269
  lt_cv_deplibs_check_method=pass_all
4270
  ;;
4271
 
4272
bsdi[45]*)
4273
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4274
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4275
  lt_cv_file_magic_test_file=/shlib/libc.so
4276
  ;;
4277
 
4278
cygwin*)
4279
  # func_win32_libid is a shell function defined in ltmain.sh
4280
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4281
  lt_cv_file_magic_cmd='func_win32_libid'
4282
  ;;
4283
 
4284
mingw* | pw32*)
4285
  # Base MSYS/MinGW do not provide the 'file' command needed by
4286
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4287
  # unless we find 'file', for example because we are cross-compiling.
4288
  if ( file / ) >/dev/null 2>&1; then
4289
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4290
    lt_cv_file_magic_cmd='func_win32_libid'
4291
  else
4292
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4293
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4294
  fi
4295
  ;;
4296
 
4297
cegcc)
4298
  # use the weaker test based on 'objdump'. See mingw*.
4299
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4300
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4301
  ;;
4302
 
4303
darwin* | rhapsody*)
4304
  lt_cv_deplibs_check_method=pass_all
4305
  ;;
4306
 
4307
freebsd* | dragonfly*)
4308
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4309
    case $host_cpu in
4310
    i*86 )
4311
      # Not sure whether the presence of OpenBSD here was a mistake.
4312
      # Let's accept both of them until this is cleared up.
4313
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4314
      lt_cv_file_magic_cmd=/usr/bin/file
4315
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4316
      ;;
4317
    esac
4318
  else
4319
    lt_cv_deplibs_check_method=pass_all
4320
  fi
4321
  ;;
4322
 
4323
gnu*)
4324
  lt_cv_deplibs_check_method=pass_all
4325
  ;;
4326
 
4327
hpux10.20* | hpux11*)
4328
  lt_cv_file_magic_cmd=/usr/bin/file
4329
  case $host_cpu in
4330
  ia64*)
4331
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4332
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4333
    ;;
4334
  hppa*64*)
4335
    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]'
4336
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4337
    ;;
4338
  *)
4339
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4341
    ;;
4342
  esac
4343
  ;;
4344
 
4345
interix[3-9]*)
4346
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4347
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4348
  ;;
4349
 
4350
irix5* | irix6* | nonstopux*)
4351
  case $LD in
4352
  *-32|*"-32 ") libmagic=32-bit;;
4353
  *-n32|*"-n32 ") libmagic=N32;;
4354
  *-64|*"-64 ") libmagic=64-bit;;
4355
  *) libmagic=never-match;;
4356
  esac
4357
  lt_cv_deplibs_check_method=pass_all
4358
  ;;
4359
 
4360
# This must be Linux ELF.
4361
linux* | k*bsd*-gnu)
4362
  lt_cv_deplibs_check_method=pass_all
4363
  ;;
4364
 
4365 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4366 90 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4367
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4368
  else
4369
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4370
  fi
4371
  ;;
4372
 
4373
newos6*)
4374
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4375
  lt_cv_file_magic_cmd=/usr/bin/file
4376
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4377
  ;;
4378
 
4379
*nto* | *qnx*)
4380
  lt_cv_deplibs_check_method=pass_all
4381
  ;;
4382
 
4383
openbsd*)
4384
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4385
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4386
  else
4387
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4388
  fi
4389
  ;;
4390
 
4391
osf3* | osf4* | osf5*)
4392
  lt_cv_deplibs_check_method=pass_all
4393
  ;;
4394
 
4395
rdos*)
4396
  lt_cv_deplibs_check_method=pass_all
4397
  ;;
4398
 
4399
solaris*)
4400
  lt_cv_deplibs_check_method=pass_all
4401
  ;;
4402
 
4403
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4404
  lt_cv_deplibs_check_method=pass_all
4405
  ;;
4406
 
4407
sysv4 | sysv4.3*)
4408
  case $host_vendor in
4409
  motorola)
4410
    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]'
4411
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4412
    ;;
4413
  ncr)
4414
    lt_cv_deplibs_check_method=pass_all
4415
    ;;
4416
  sequent)
4417
    lt_cv_file_magic_cmd='/bin/file'
4418
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4419
    ;;
4420
  sni)
4421
    lt_cv_file_magic_cmd='/bin/file'
4422
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4423
    lt_cv_file_magic_test_file=/lib/libc.so
4424
    ;;
4425
  siemens)
4426
    lt_cv_deplibs_check_method=pass_all
4427
    ;;
4428
  pc)
4429
    lt_cv_deplibs_check_method=pass_all
4430
    ;;
4431
  esac
4432
  ;;
4433
 
4434
tpf*)
4435
  lt_cv_deplibs_check_method=pass_all
4436
  ;;
4437
esac
4438
 
4439
fi
4440 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4441 90 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4442
file_magic_cmd=$lt_cv_file_magic_cmd
4443
deplibs_check_method=$lt_cv_deplibs_check_method
4444
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4445
 
4446
 
4447
 
4448
 
4449
 
4450
 
4451
 
4452
 
4453
 
4454
 
4455
 
4456
 
4457
if test -n "$ac_tool_prefix"; then
4458
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4459
set dummy ${ac_tool_prefix}ar; ac_word=$2
4460 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4462 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
4463 90 jeremybenn
  $as_echo_n "(cached) " >&6
4464
else
4465
  if test -n "$AR"; then
4466
  ac_cv_prog_AR="$AR" # Let the user override the test.
4467
else
4468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469
for as_dir in $PATH
4470
do
4471
  IFS=$as_save_IFS
4472
  test -z "$as_dir" && as_dir=.
4473 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4474 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4476 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 90 jeremybenn
    break 2
4478
  fi
4479
done
4480 346 jeremybenn
  done
4481 90 jeremybenn
IFS=$as_save_IFS
4482
 
4483
fi
4484
fi
4485
AR=$ac_cv_prog_AR
4486
if test -n "$AR"; then
4487 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4488 90 jeremybenn
$as_echo "$AR" >&6; }
4489
else
4490 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 90 jeremybenn
$as_echo "no" >&6; }
4492
fi
4493
 
4494
 
4495
fi
4496
if test -z "$ac_cv_prog_AR"; then
4497
  ac_ct_AR=$AR
4498
  # Extract the first word of "ar", so it can be a program name with args.
4499
set dummy ar; ac_word=$2
4500 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4502 625 jeremybenn
if ${ac_cv_prog_ac_ct_AR+:} false; then :
4503 90 jeremybenn
  $as_echo_n "(cached) " >&6
4504
else
4505
  if test -n "$ac_ct_AR"; then
4506
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4507
else
4508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509
for as_dir in $PATH
4510
do
4511
  IFS=$as_save_IFS
4512
  test -z "$as_dir" && as_dir=.
4513 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4514 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515
    ac_cv_prog_ac_ct_AR="ar"
4516 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 90 jeremybenn
    break 2
4518
  fi
4519
done
4520 346 jeremybenn
  done
4521 90 jeremybenn
IFS=$as_save_IFS
4522
 
4523
fi
4524
fi
4525
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4526
if test -n "$ac_ct_AR"; then
4527 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4528 90 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
4529
else
4530 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 90 jeremybenn
$as_echo "no" >&6; }
4532
fi
4533
 
4534
  if test "x$ac_ct_AR" = x; then
4535
    AR="false"
4536
  else
4537
    case $cross_compiling:$ac_tool_warned in
4538
yes:)
4539 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4540 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4541
ac_tool_warned=yes ;;
4542
esac
4543
    AR=$ac_ct_AR
4544
  fi
4545
else
4546
  AR="$ac_cv_prog_AR"
4547
fi
4548
 
4549
test -z "$AR" && AR=ar
4550
test -z "$AR_FLAGS" && AR_FLAGS=cru
4551
 
4552
 
4553
 
4554
 
4555
 
4556
 
4557
 
4558
 
4559
 
4560
 
4561
 
4562
if test -n "$ac_tool_prefix"; then
4563
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4564
set dummy ${ac_tool_prefix}strip; ac_word=$2
4565 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4567 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
4568 90 jeremybenn
  $as_echo_n "(cached) " >&6
4569
else
4570
  if test -n "$STRIP"; then
4571
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4572
else
4573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574
for as_dir in $PATH
4575
do
4576
  IFS=$as_save_IFS
4577
  test -z "$as_dir" && as_dir=.
4578 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4579 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4581 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 90 jeremybenn
    break 2
4583
  fi
4584
done
4585 346 jeremybenn
  done
4586 90 jeremybenn
IFS=$as_save_IFS
4587
 
4588
fi
4589
fi
4590
STRIP=$ac_cv_prog_STRIP
4591
if test -n "$STRIP"; then
4592 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4593 90 jeremybenn
$as_echo "$STRIP" >&6; }
4594
else
4595 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 90 jeremybenn
$as_echo "no" >&6; }
4597
fi
4598
 
4599
 
4600
fi
4601
if test -z "$ac_cv_prog_STRIP"; then
4602
  ac_ct_STRIP=$STRIP
4603
  # Extract the first word of "strip", so it can be a program name with args.
4604
set dummy strip; ac_word=$2
4605 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4607 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4608 90 jeremybenn
  $as_echo_n "(cached) " >&6
4609
else
4610
  if test -n "$ac_ct_STRIP"; then
4611
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4612
else
4613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614
for as_dir in $PATH
4615
do
4616
  IFS=$as_save_IFS
4617
  test -z "$as_dir" && as_dir=.
4618 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4619 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620
    ac_cv_prog_ac_ct_STRIP="strip"
4621 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 90 jeremybenn
    break 2
4623
  fi
4624
done
4625 346 jeremybenn
  done
4626 90 jeremybenn
IFS=$as_save_IFS
4627
 
4628
fi
4629
fi
4630
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4631
if test -n "$ac_ct_STRIP"; then
4632 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4633 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
4634
else
4635 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 90 jeremybenn
$as_echo "no" >&6; }
4637
fi
4638
 
4639
  if test "x$ac_ct_STRIP" = x; then
4640
    STRIP=":"
4641
  else
4642
    case $cross_compiling:$ac_tool_warned in
4643
yes:)
4644 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646
ac_tool_warned=yes ;;
4647
esac
4648
    STRIP=$ac_ct_STRIP
4649
  fi
4650
else
4651
  STRIP="$ac_cv_prog_STRIP"
4652
fi
4653
 
4654
test -z "$STRIP" && STRIP=:
4655
 
4656
 
4657
 
4658
 
4659
 
4660
 
4661
if test -n "$ac_tool_prefix"; then
4662
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4663
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4664 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4666 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
4667 90 jeremybenn
  $as_echo_n "(cached) " >&6
4668
else
4669
  if test -n "$RANLIB"; then
4670
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4671
else
4672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673
for as_dir in $PATH
4674
do
4675
  IFS=$as_save_IFS
4676
  test -z "$as_dir" && as_dir=.
4677 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4678 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4680 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 90 jeremybenn
    break 2
4682
  fi
4683
done
4684 346 jeremybenn
  done
4685 90 jeremybenn
IFS=$as_save_IFS
4686
 
4687
fi
4688
fi
4689
RANLIB=$ac_cv_prog_RANLIB
4690
if test -n "$RANLIB"; then
4691 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4692 90 jeremybenn
$as_echo "$RANLIB" >&6; }
4693
else
4694 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 90 jeremybenn
$as_echo "no" >&6; }
4696
fi
4697
 
4698
 
4699
fi
4700
if test -z "$ac_cv_prog_RANLIB"; then
4701
  ac_ct_RANLIB=$RANLIB
4702
  # Extract the first word of "ranlib", so it can be a program name with args.
4703
set dummy ranlib; ac_word=$2
4704 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4706 625 jeremybenn
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4707 90 jeremybenn
  $as_echo_n "(cached) " >&6
4708
else
4709
  if test -n "$ac_ct_RANLIB"; then
4710
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4711
else
4712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713
for as_dir in $PATH
4714
do
4715
  IFS=$as_save_IFS
4716
  test -z "$as_dir" && as_dir=.
4717 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4718 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4720 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 90 jeremybenn
    break 2
4722
  fi
4723
done
4724 346 jeremybenn
  done
4725 90 jeremybenn
IFS=$as_save_IFS
4726
 
4727
fi
4728
fi
4729
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4730
if test -n "$ac_ct_RANLIB"; then
4731 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4732 90 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
4733
else
4734 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 90 jeremybenn
$as_echo "no" >&6; }
4736
fi
4737
 
4738
  if test "x$ac_ct_RANLIB" = x; then
4739
    RANLIB=":"
4740
  else
4741
    case $cross_compiling:$ac_tool_warned in
4742
yes:)
4743 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4744 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4745
ac_tool_warned=yes ;;
4746
esac
4747
    RANLIB=$ac_ct_RANLIB
4748
  fi
4749
else
4750
  RANLIB="$ac_cv_prog_RANLIB"
4751
fi
4752
 
4753
test -z "$RANLIB" && RANLIB=:
4754
 
4755
 
4756
 
4757
 
4758
 
4759
 
4760
# Determine commands to create old-style static archives.
4761
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4762
old_postinstall_cmds='chmod 644 $oldlib'
4763
old_postuninstall_cmds=
4764
 
4765
if test -n "$RANLIB"; then
4766
  case $host_os in
4767
  openbsd*)
4768
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4769
    ;;
4770
  *)
4771
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4772
    ;;
4773
  esac
4774
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4775
fi
4776
 
4777
 
4778
 
4779
 
4780
 
4781
 
4782
 
4783
 
4784
 
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
 
4796
 
4797
 
4798
 
4799
 
4800
 
4801
 
4802
 
4803
 
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
# If no C compiler was specified, use CC.
4811
LTCC=${LTCC-"$CC"}
4812
 
4813
# If no C compiler flags were specified, use CFLAGS.
4814
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4815
 
4816
# Allow CC to be a program name with arguments.
4817
compiler=$CC
4818
 
4819
 
4820
# Check for command to grab the raw symbol name followed by C symbol from nm.
4821 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4822 90 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4823 625 jeremybenn
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4824 90 jeremybenn
  $as_echo_n "(cached) " >&6
4825
else
4826
 
4827
# These are sane defaults that work on at least a few old systems.
4828
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4829
 
4830
# Character class describing NM global symbol codes.
4831
symcode='[BCDEGRST]'
4832
 
4833
# Regexp to match symbols that can be accessed directly from C.
4834
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4835
 
4836
# Define system-specific variables.
4837
case $host_os in
4838
aix*)
4839
  symcode='[BCDT]'
4840
  ;;
4841
cygwin* | mingw* | pw32* | cegcc*)
4842
  symcode='[ABCDGISTW]'
4843
  ;;
4844
hpux*)
4845
  if test "$host_cpu" = ia64; then
4846
    symcode='[ABCDEGRST]'
4847
  fi
4848
  ;;
4849
irix* | nonstopux*)
4850
  symcode='[BCDEGRST]'
4851
  ;;
4852
osf*)
4853
  symcode='[BCDEGQRST]'
4854
  ;;
4855
solaris*)
4856
  symcode='[BDRT]'
4857
  ;;
4858
sco3.2v5*)
4859
  symcode='[DT]'
4860
  ;;
4861
sysv4.2uw2*)
4862
  symcode='[DT]'
4863
  ;;
4864
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4865
  symcode='[ABDT]'
4866
  ;;
4867
sysv4)
4868
  symcode='[DFNSTU]'
4869
  ;;
4870
esac
4871
 
4872
# If we're using GNU nm, then use its standard symbol codes.
4873
case `$NM -V 2>&1` in
4874
*GNU* | *'with BFD'*)
4875
  symcode='[ABCDGIRSTW]' ;;
4876
esac
4877
 
4878
# Transform an extracted symbol line into a proper C declaration.
4879
# Some systems (esp. on ia64) link data and code symbols differently,
4880
# so use this general approach.
4881
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4882
 
4883
# Transform an extracted symbol line into symbol name and symbol address
4884
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4885
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4886
 
4887
# Handle CRLF in mingw tool chain
4888
opt_cr=
4889
case $build_os in
4890
mingw*)
4891
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4892
  ;;
4893
esac
4894
 
4895
# Try without a prefix underscore, then with it.
4896
for ac_symprfx in "" "_"; do
4897
 
4898
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4899
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4900
 
4901
  # Write the raw and C identifiers.
4902
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4903
    # Fake it for dumpbin and say T for any non-static function
4904
    # and D for any global variable.
4905
    # Also find C++ and __fastcall symbols from MSVC++,
4906
    # which start with @ or ?.
4907
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4908
"     {last_section=section; section=\$ 3};"\
4909
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4910
"     \$ 0!~/External *\|/{next};"\
4911
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4912
"     {if(hide[section]) next};"\
4913
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4914
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4915
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4916
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4917
"     ' prfx=^$ac_symprfx"
4918
  else
4919
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4920
  fi
4921
 
4922
  # Check to see that the pipe works correctly.
4923
  pipe_works=no
4924
 
4925
  rm -f conftest*
4926
  cat > conftest.$ac_ext <<_LT_EOF
4927
#ifdef __cplusplus
4928
extern "C" {
4929
#endif
4930
char nm_test_var;
4931
void nm_test_func(void);
4932
void nm_test_func(void){}
4933
#ifdef __cplusplus
4934
}
4935
#endif
4936
int main(){nm_test_var='a';nm_test_func();return(0);}
4937
_LT_EOF
4938
 
4939 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4940 90 jeremybenn
  (eval $ac_compile) 2>&5
4941
  ac_status=$?
4942 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943
  test $ac_status = 0; }; then
4944 90 jeremybenn
    # Now try to grab the symbols.
4945
    nlist=conftest.nm
4946 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4947 90 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4948
  ac_status=$?
4949 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950
  test $ac_status = 0; } && test -s "$nlist"; then
4951 90 jeremybenn
      # Try sorting and uniquifying the output.
4952
      if sort "$nlist" | uniq > "$nlist"T; then
4953
        mv -f "$nlist"T "$nlist"
4954
      else
4955
        rm -f "$nlist"T
4956
      fi
4957
 
4958
      # Make sure that we snagged all the symbols we need.
4959
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4960
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4961
          cat <<_LT_EOF > conftest.$ac_ext
4962
#ifdef __cplusplus
4963
extern "C" {
4964
#endif
4965
 
4966
_LT_EOF
4967
          # Now generate the symbol file.
4968
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4969
 
4970
          cat <<_LT_EOF >> conftest.$ac_ext
4971
 
4972
/* The mapping between symbol names and symbols.  */
4973
const struct {
4974
  const char *name;
4975
  void       *address;
4976
}
4977
lt__PROGRAM__LTX_preloaded_symbols[] =
4978
{
4979
  { "@PROGRAM@", (void *) 0 },
4980
_LT_EOF
4981
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4982
          cat <<\_LT_EOF >> conftest.$ac_ext
4983
  {0, (void *) 0}
4984
};
4985
 
4986
/* This works around a problem in FreeBSD linker */
4987
#ifdef FREEBSD_WORKAROUND
4988
static const void *lt_preloaded_setup() {
4989
  return lt__PROGRAM__LTX_preloaded_symbols;
4990
}
4991
#endif
4992
 
4993
#ifdef __cplusplus
4994
}
4995
#endif
4996
_LT_EOF
4997
          # Now try linking the two files.
4998
          mv conftest.$ac_objext conftstm.$ac_objext
4999
          lt_save_LIBS="$LIBS"
5000
          lt_save_CFLAGS="$CFLAGS"
5001
          LIBS="conftstm.$ac_objext"
5002
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5003 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5004 90 jeremybenn
  (eval $ac_link) 2>&5
5005
  ac_status=$?
5006 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5007
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5008 90 jeremybenn
            pipe_works=yes
5009
          fi
5010
          LIBS="$lt_save_LIBS"
5011
          CFLAGS="$lt_save_CFLAGS"
5012
        else
5013
          echo "cannot find nm_test_func in $nlist" >&5
5014
        fi
5015
      else
5016
        echo "cannot find nm_test_var in $nlist" >&5
5017
      fi
5018
    else
5019
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5020
    fi
5021
  else
5022
    echo "$progname: failed program was:" >&5
5023
    cat conftest.$ac_ext >&5
5024
  fi
5025
  rm -rf conftest* conftst*
5026
 
5027
  # Do not use the global_symbol_pipe unless it works.
5028
  if test "$pipe_works" = yes; then
5029
    break
5030
  else
5031
    lt_cv_sys_global_symbol_pipe=
5032
  fi
5033
done
5034
 
5035
fi
5036
 
5037
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5038
  lt_cv_sys_global_symbol_to_cdecl=
5039
fi
5040
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5041 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5042 90 jeremybenn
$as_echo "failed" >&6; }
5043
else
5044 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5045 90 jeremybenn
$as_echo "ok" >&6; }
5046
fi
5047
 
5048
 
5049
 
5050
 
5051
 
5052
 
5053
 
5054
 
5055
 
5056
 
5057
 
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
# Check whether --enable-libtool-lock was given.
5071 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5072 90 jeremybenn
  enableval=$enable_libtool_lock;
5073
fi
5074
 
5075
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5076
 
5077
# Some flags need to be propagated to the compiler or linker for good
5078
# libtool support.
5079
case $host in
5080
ia64-*-hpux*)
5081
  # Find out which ABI we are using.
5082
  echo 'int i;' > conftest.$ac_ext
5083 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5084 90 jeremybenn
  (eval $ac_compile) 2>&5
5085
  ac_status=$?
5086 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5087
  test $ac_status = 0; }; then
5088 90 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5089
      *ELF-32*)
5090
        HPUX_IA64_MODE="32"
5091
        ;;
5092
      *ELF-64*)
5093
        HPUX_IA64_MODE="64"
5094
        ;;
5095
    esac
5096
  fi
5097
  rm -rf conftest*
5098
  ;;
5099
*-*-irix6*)
5100
  # Find out which ABI we are using.
5101 625 jeremybenn
  echo '#line 5101 "configure"' > conftest.$ac_ext
5102 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5103 90 jeremybenn
  (eval $ac_compile) 2>&5
5104
  ac_status=$?
5105 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5106
  test $ac_status = 0; }; then
5107 90 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5108
      case `/usr/bin/file conftest.$ac_objext` in
5109
        *32-bit*)
5110
          LD="${LD-ld} -melf32bsmip"
5111
          ;;
5112
        *N32*)
5113
          LD="${LD-ld} -melf32bmipn32"
5114
          ;;
5115
        *64-bit*)
5116
          LD="${LD-ld} -melf64bmip"
5117
        ;;
5118
      esac
5119
    else
5120
      case `/usr/bin/file conftest.$ac_objext` in
5121
        *32-bit*)
5122
          LD="${LD-ld} -32"
5123
          ;;
5124
        *N32*)
5125
          LD="${LD-ld} -n32"
5126
          ;;
5127
        *64-bit*)
5128
          LD="${LD-ld} -64"
5129
          ;;
5130
      esac
5131
    fi
5132
  fi
5133
  rm -rf conftest*
5134
  ;;
5135
 
5136
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5137
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5138
  # Find out which ABI we are using.
5139
  echo 'int i;' > conftest.$ac_ext
5140 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5141 90 jeremybenn
  (eval $ac_compile) 2>&5
5142
  ac_status=$?
5143 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5144
  test $ac_status = 0; }; then
5145 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5146
      *32-bit*)
5147
        case $host in
5148
          x86_64-*kfreebsd*-gnu)
5149
            LD="${LD-ld} -m elf_i386_fbsd"
5150
            ;;
5151
          x86_64-*linux*)
5152
            LD="${LD-ld} -m elf_i386"
5153
            ;;
5154
          ppc64-*linux*|powerpc64-*linux*)
5155
            LD="${LD-ld} -m elf32ppclinux"
5156
            ;;
5157
          s390x-*linux*)
5158
            LD="${LD-ld} -m elf_s390"
5159
            ;;
5160
          sparc64-*linux*)
5161
            LD="${LD-ld} -m elf32_sparc"
5162
            ;;
5163
        esac
5164
        ;;
5165
      *64-bit*)
5166
        case $host in
5167
          x86_64-*kfreebsd*-gnu)
5168
            LD="${LD-ld} -m elf_x86_64_fbsd"
5169
            ;;
5170
          x86_64-*linux*)
5171
            LD="${LD-ld} -m elf_x86_64"
5172
            ;;
5173
          ppc*-*linux*|powerpc*-*linux*)
5174
            LD="${LD-ld} -m elf64ppc"
5175
            ;;
5176
          s390*-*linux*|s390*-*tpf*)
5177
            LD="${LD-ld} -m elf64_s390"
5178
            ;;
5179
          sparc*-*linux*)
5180
            LD="${LD-ld} -m elf64_sparc"
5181
            ;;
5182
        esac
5183
        ;;
5184
    esac
5185
  fi
5186
  rm -rf conftest*
5187
  ;;
5188
 
5189
*-*-sco3.2v5*)
5190
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5191
  SAVE_CFLAGS="$CFLAGS"
5192
  CFLAGS="$CFLAGS -belf"
5193 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5194 90 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5195 625 jeremybenn
if ${lt_cv_cc_needs_belf+:} false; then :
5196 90 jeremybenn
  $as_echo_n "(cached) " >&6
5197
else
5198
  ac_ext=c
5199
ac_cpp='$CPP $CPPFLAGS'
5200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
 
5204 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 90 jeremybenn
/* end confdefs.h.  */
5206
 
5207
int
5208
main ()
5209
{
5210
 
5211
  ;
5212
  return 0;
5213
}
5214
_ACEOF
5215 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5216 90 jeremybenn
  lt_cv_cc_needs_belf=yes
5217
else
5218 346 jeremybenn
  lt_cv_cc_needs_belf=no
5219 90 jeremybenn
fi
5220 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5221
    conftest$ac_exeext conftest.$ac_ext
5222 90 jeremybenn
     ac_ext=c
5223
ac_cpp='$CPP $CPPFLAGS'
5224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
 
5228
fi
5229 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5230 90 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5231
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5232
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5233
    CFLAGS="$SAVE_CFLAGS"
5234
  fi
5235
  ;;
5236
sparc*-*solaris*)
5237
  # Find out which ABI we are using.
5238
  echo 'int i;' > conftest.$ac_ext
5239 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5240 90 jeremybenn
  (eval $ac_compile) 2>&5
5241
  ac_status=$?
5242 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243
  test $ac_status = 0; }; then
5244 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5245
    *64-bit*)
5246
      case $lt_cv_prog_gnu_ld in
5247
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5248
      *)
5249
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5250
          LD="${LD-ld} -64"
5251
        fi
5252
        ;;
5253
      esac
5254
      ;;
5255
    esac
5256
  fi
5257
  rm -rf conftest*
5258
  ;;
5259
esac
5260
 
5261
need_locks="$enable_libtool_lock"
5262
 
5263
 
5264
  case $host_os in
5265
    rhapsody* | darwin*)
5266
    if test -n "$ac_tool_prefix"; then
5267
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5268
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5269 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5271 625 jeremybenn
if ${ac_cv_prog_DSYMUTIL+:} false; then :
5272 90 jeremybenn
  $as_echo_n "(cached) " >&6
5273
else
5274
  if test -n "$DSYMUTIL"; then
5275
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5276
else
5277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278
for as_dir in $PATH
5279
do
5280
  IFS=$as_save_IFS
5281
  test -z "$as_dir" && as_dir=.
5282 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5283 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5285 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 90 jeremybenn
    break 2
5287
  fi
5288
done
5289 346 jeremybenn
  done
5290 90 jeremybenn
IFS=$as_save_IFS
5291
 
5292
fi
5293
fi
5294
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5295
if test -n "$DSYMUTIL"; then
5296 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5297 90 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5298
else
5299 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 90 jeremybenn
$as_echo "no" >&6; }
5301
fi
5302
 
5303
 
5304
fi
5305
if test -z "$ac_cv_prog_DSYMUTIL"; then
5306
  ac_ct_DSYMUTIL=$DSYMUTIL
5307
  # Extract the first word of "dsymutil", so it can be a program name with args.
5308
set dummy dsymutil; ac_word=$2
5309 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5311 625 jeremybenn
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5312 90 jeremybenn
  $as_echo_n "(cached) " >&6
5313
else
5314
  if test -n "$ac_ct_DSYMUTIL"; then
5315
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5316
else
5317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318
for as_dir in $PATH
5319
do
5320
  IFS=$as_save_IFS
5321
  test -z "$as_dir" && as_dir=.
5322 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5323 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5325 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 90 jeremybenn
    break 2
5327
  fi
5328
done
5329 346 jeremybenn
  done
5330 90 jeremybenn
IFS=$as_save_IFS
5331
 
5332
fi
5333
fi
5334
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5335
if test -n "$ac_ct_DSYMUTIL"; then
5336 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5337 90 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5338
else
5339 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 90 jeremybenn
$as_echo "no" >&6; }
5341
fi
5342
 
5343
  if test "x$ac_ct_DSYMUTIL" = x; then
5344
    DSYMUTIL=":"
5345
  else
5346
    case $cross_compiling:$ac_tool_warned in
5347
yes:)
5348 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350
ac_tool_warned=yes ;;
5351
esac
5352
    DSYMUTIL=$ac_ct_DSYMUTIL
5353
  fi
5354
else
5355
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5356
fi
5357
 
5358
    if test -n "$ac_tool_prefix"; then
5359
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5360
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5361 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5363 625 jeremybenn
if ${ac_cv_prog_NMEDIT+:} false; then :
5364 90 jeremybenn
  $as_echo_n "(cached) " >&6
5365
else
5366
  if test -n "$NMEDIT"; then
5367
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5368
else
5369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370
for as_dir in $PATH
5371
do
5372
  IFS=$as_save_IFS
5373
  test -z "$as_dir" && as_dir=.
5374 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5375 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5377 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 90 jeremybenn
    break 2
5379
  fi
5380
done
5381 346 jeremybenn
  done
5382 90 jeremybenn
IFS=$as_save_IFS
5383
 
5384
fi
5385
fi
5386
NMEDIT=$ac_cv_prog_NMEDIT
5387
if test -n "$NMEDIT"; then
5388 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5389 90 jeremybenn
$as_echo "$NMEDIT" >&6; }
5390
else
5391 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 90 jeremybenn
$as_echo "no" >&6; }
5393
fi
5394
 
5395
 
5396
fi
5397
if test -z "$ac_cv_prog_NMEDIT"; then
5398
  ac_ct_NMEDIT=$NMEDIT
5399
  # Extract the first word of "nmedit", so it can be a program name with args.
5400
set dummy nmedit; ac_word=$2
5401 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5403 625 jeremybenn
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5404 90 jeremybenn
  $as_echo_n "(cached) " >&6
5405
else
5406
  if test -n "$ac_ct_NMEDIT"; then
5407
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5408
else
5409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410
for as_dir in $PATH
5411
do
5412
  IFS=$as_save_IFS
5413
  test -z "$as_dir" && as_dir=.
5414 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5415 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5417 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 90 jeremybenn
    break 2
5419
  fi
5420
done
5421 346 jeremybenn
  done
5422 90 jeremybenn
IFS=$as_save_IFS
5423
 
5424
fi
5425
fi
5426
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5427
if test -n "$ac_ct_NMEDIT"; then
5428 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5429 90 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
5430
else
5431 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 90 jeremybenn
$as_echo "no" >&6; }
5433
fi
5434
 
5435
  if test "x$ac_ct_NMEDIT" = x; then
5436
    NMEDIT=":"
5437
  else
5438
    case $cross_compiling:$ac_tool_warned in
5439
yes:)
5440 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442
ac_tool_warned=yes ;;
5443
esac
5444
    NMEDIT=$ac_ct_NMEDIT
5445
  fi
5446
else
5447
  NMEDIT="$ac_cv_prog_NMEDIT"
5448
fi
5449
 
5450
    if test -n "$ac_tool_prefix"; then
5451
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5452
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5453 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5455 625 jeremybenn
if ${ac_cv_prog_LIPO+:} false; then :
5456 90 jeremybenn
  $as_echo_n "(cached) " >&6
5457
else
5458
  if test -n "$LIPO"; then
5459
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5460
else
5461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462
for as_dir in $PATH
5463
do
5464
  IFS=$as_save_IFS
5465
  test -z "$as_dir" && as_dir=.
5466 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5467 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5469 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 90 jeremybenn
    break 2
5471
  fi
5472
done
5473 346 jeremybenn
  done
5474 90 jeremybenn
IFS=$as_save_IFS
5475
 
5476
fi
5477
fi
5478
LIPO=$ac_cv_prog_LIPO
5479
if test -n "$LIPO"; then
5480 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5481 90 jeremybenn
$as_echo "$LIPO" >&6; }
5482
else
5483 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 90 jeremybenn
$as_echo "no" >&6; }
5485
fi
5486
 
5487
 
5488
fi
5489
if test -z "$ac_cv_prog_LIPO"; then
5490
  ac_ct_LIPO=$LIPO
5491
  # Extract the first word of "lipo", so it can be a program name with args.
5492
set dummy lipo; ac_word=$2
5493 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5495 625 jeremybenn
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5496 90 jeremybenn
  $as_echo_n "(cached) " >&6
5497
else
5498
  if test -n "$ac_ct_LIPO"; then
5499
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5500
else
5501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502
for as_dir in $PATH
5503
do
5504
  IFS=$as_save_IFS
5505
  test -z "$as_dir" && as_dir=.
5506 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5507 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508
    ac_cv_prog_ac_ct_LIPO="lipo"
5509 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 90 jeremybenn
    break 2
5511
  fi
5512
done
5513 346 jeremybenn
  done
5514 90 jeremybenn
IFS=$as_save_IFS
5515
 
5516
fi
5517
fi
5518
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5519
if test -n "$ac_ct_LIPO"; then
5520 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5521 90 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
5522
else
5523 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 90 jeremybenn
$as_echo "no" >&6; }
5525
fi
5526
 
5527
  if test "x$ac_ct_LIPO" = x; then
5528
    LIPO=":"
5529
  else
5530
    case $cross_compiling:$ac_tool_warned in
5531
yes:)
5532 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534
ac_tool_warned=yes ;;
5535
esac
5536
    LIPO=$ac_ct_LIPO
5537
  fi
5538
else
5539
  LIPO="$ac_cv_prog_LIPO"
5540
fi
5541
 
5542
    if test -n "$ac_tool_prefix"; then
5543
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5544
set dummy ${ac_tool_prefix}otool; ac_word=$2
5545 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5547 625 jeremybenn
if ${ac_cv_prog_OTOOL+:} false; then :
5548 90 jeremybenn
  $as_echo_n "(cached) " >&6
5549
else
5550
  if test -n "$OTOOL"; then
5551
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5552
else
5553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554
for as_dir in $PATH
5555
do
5556
  IFS=$as_save_IFS
5557
  test -z "$as_dir" && as_dir=.
5558 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5559 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5561 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 90 jeremybenn
    break 2
5563
  fi
5564
done
5565 346 jeremybenn
  done
5566 90 jeremybenn
IFS=$as_save_IFS
5567
 
5568
fi
5569
fi
5570
OTOOL=$ac_cv_prog_OTOOL
5571
if test -n "$OTOOL"; then
5572 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5573 90 jeremybenn
$as_echo "$OTOOL" >&6; }
5574
else
5575 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 90 jeremybenn
$as_echo "no" >&6; }
5577
fi
5578
 
5579
 
5580
fi
5581
if test -z "$ac_cv_prog_OTOOL"; then
5582
  ac_ct_OTOOL=$OTOOL
5583
  # Extract the first word of "otool", so it can be a program name with args.
5584
set dummy otool; ac_word=$2
5585 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5587 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5588 90 jeremybenn
  $as_echo_n "(cached) " >&6
5589
else
5590
  if test -n "$ac_ct_OTOOL"; then
5591
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5592
else
5593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594
for as_dir in $PATH
5595
do
5596
  IFS=$as_save_IFS
5597
  test -z "$as_dir" && as_dir=.
5598 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5599 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600
    ac_cv_prog_ac_ct_OTOOL="otool"
5601 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 90 jeremybenn
    break 2
5603
  fi
5604
done
5605 346 jeremybenn
  done
5606 90 jeremybenn
IFS=$as_save_IFS
5607
 
5608
fi
5609
fi
5610
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5611
if test -n "$ac_ct_OTOOL"; then
5612 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5613 90 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
5614
else
5615 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 90 jeremybenn
$as_echo "no" >&6; }
5617
fi
5618
 
5619
  if test "x$ac_ct_OTOOL" = x; then
5620
    OTOOL=":"
5621
  else
5622
    case $cross_compiling:$ac_tool_warned in
5623
yes:)
5624 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626
ac_tool_warned=yes ;;
5627
esac
5628
    OTOOL=$ac_ct_OTOOL
5629
  fi
5630
else
5631
  OTOOL="$ac_cv_prog_OTOOL"
5632
fi
5633
 
5634
    if test -n "$ac_tool_prefix"; then
5635
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5636
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5637 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5639 625 jeremybenn
if ${ac_cv_prog_OTOOL64+:} false; then :
5640 90 jeremybenn
  $as_echo_n "(cached) " >&6
5641
else
5642
  if test -n "$OTOOL64"; then
5643
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5644
else
5645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646
for as_dir in $PATH
5647
do
5648
  IFS=$as_save_IFS
5649
  test -z "$as_dir" && as_dir=.
5650 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5651 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5652
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5653 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 90 jeremybenn
    break 2
5655
  fi
5656
done
5657 346 jeremybenn
  done
5658 90 jeremybenn
IFS=$as_save_IFS
5659
 
5660
fi
5661
fi
5662
OTOOL64=$ac_cv_prog_OTOOL64
5663
if test -n "$OTOOL64"; then
5664 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5665 90 jeremybenn
$as_echo "$OTOOL64" >&6; }
5666
else
5667 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 90 jeremybenn
$as_echo "no" >&6; }
5669
fi
5670
 
5671
 
5672
fi
5673
if test -z "$ac_cv_prog_OTOOL64"; then
5674
  ac_ct_OTOOL64=$OTOOL64
5675
  # Extract the first word of "otool64", so it can be a program name with args.
5676
set dummy otool64; ac_word=$2
5677 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5679 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5680 90 jeremybenn
  $as_echo_n "(cached) " >&6
5681
else
5682
  if test -n "$ac_ct_OTOOL64"; then
5683
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5684
else
5685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686
for as_dir in $PATH
5687
do
5688
  IFS=$as_save_IFS
5689
  test -z "$as_dir" && as_dir=.
5690 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5691 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5693 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 90 jeremybenn
    break 2
5695
  fi
5696
done
5697 346 jeremybenn
  done
5698 90 jeremybenn
IFS=$as_save_IFS
5699
 
5700
fi
5701
fi
5702
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5703
if test -n "$ac_ct_OTOOL64"; then
5704 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5705 90 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
5706
else
5707 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 90 jeremybenn
$as_echo "no" >&6; }
5709
fi
5710
 
5711
  if test "x$ac_ct_OTOOL64" = x; then
5712
    OTOOL64=":"
5713
  else
5714
    case $cross_compiling:$ac_tool_warned in
5715
yes:)
5716 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718
ac_tool_warned=yes ;;
5719
esac
5720
    OTOOL64=$ac_ct_OTOOL64
5721
  fi
5722
else
5723
  OTOOL64="$ac_cv_prog_OTOOL64"
5724
fi
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
 
5741
 
5742
 
5743
 
5744
 
5745
 
5746
 
5747
 
5748
 
5749
 
5750
 
5751
 
5752 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5753 90 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
5754 625 jeremybenn
if ${lt_cv_apple_cc_single_mod+:} false; then :
5755 90 jeremybenn
  $as_echo_n "(cached) " >&6
5756
else
5757
  lt_cv_apple_cc_single_mod=no
5758
      if test -z "${LT_MULTI_MODULE}"; then
5759
        # By default we will add the -single_module flag. You can override
5760
        # by either setting the environment variable LT_MULTI_MODULE
5761
        # non-empty at configure time, or by adding -multi_module to the
5762
        # link flags.
5763
        rm -rf libconftest.dylib*
5764
        echo "int foo(void){return 1;}" > conftest.c
5765
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5766
-dynamiclib -Wl,-single_module conftest.c" >&5
5767
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5768
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5769
        _lt_result=$?
5770
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5771
          lt_cv_apple_cc_single_mod=yes
5772
        else
5773
          cat conftest.err >&5
5774
        fi
5775
        rm -rf libconftest.dylib*
5776
        rm -f conftest.*
5777
      fi
5778
fi
5779 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5780 90 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5781 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5782 90 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5783 625 jeremybenn
if ${lt_cv_ld_exported_symbols_list+:} false; then :
5784 90 jeremybenn
  $as_echo_n "(cached) " >&6
5785
else
5786
  lt_cv_ld_exported_symbols_list=no
5787
      save_LDFLAGS=$LDFLAGS
5788
      echo "_main" > conftest.sym
5789
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5790 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 90 jeremybenn
/* end confdefs.h.  */
5792
 
5793
int
5794
main ()
5795
{
5796
 
5797
  ;
5798
  return 0;
5799
}
5800
_ACEOF
5801 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5802 90 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
5803
else
5804 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
5805 90 jeremybenn
fi
5806 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5807
    conftest$ac_exeext conftest.$ac_ext
5808 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
5809
 
5810
fi
5811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5812 90 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5813
    case $host_os in
5814
    rhapsody* | darwin1.[012])
5815
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5816
    darwin1.*)
5817
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5818
    darwin*) # darwin 5.x on
5819
      # if running on 10.5 or later, the deployment target defaults
5820
      # to the OS version, if on x86, and 10.4, the deployment
5821
      # target defaults to 10.4. Don't you love it?
5822
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5823
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5824
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5825
        10.[012]*)
5826
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5827
        10.*)
5828
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5829
      esac
5830
    ;;
5831
  esac
5832
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5833
      _lt_dar_single_mod='$single_module'
5834
    fi
5835
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5836
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5837
    else
5838
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5839
    fi
5840
    if test "$DSYMUTIL" != ":"; then
5841
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5842
    else
5843
      _lt_dsymutil=
5844
    fi
5845
    ;;
5846
  esac
5847
 
5848
ac_ext=c
5849
ac_cpp='$CPP $CPPFLAGS'
5850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5854 90 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5855
# On Suns, sometimes $CPP names a directory.
5856
if test -n "$CPP" && test -d "$CPP"; then
5857
  CPP=
5858
fi
5859
if test -z "$CPP"; then
5860 625 jeremybenn
  if ${ac_cv_prog_CPP+:} false; then :
5861 90 jeremybenn
  $as_echo_n "(cached) " >&6
5862
else
5863
      # Double quotes because CPP needs to be expanded
5864
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5865
    do
5866
      ac_preproc_ok=false
5867
for ac_c_preproc_warn_flag in '' yes
5868
do
5869
  # Use a header file that comes with gcc, so configuring glibc
5870
  # with a fresh cross-compiler works.
5871
  # Prefer  to  if __STDC__ is defined, since
5872
  #  exists even on freestanding compilers.
5873
  # On the NeXT, cc -E runs the code through the compiler's parser,
5874
  # not just through cpp. "Syntax error" is here to catch this case.
5875 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 90 jeremybenn
/* end confdefs.h.  */
5877
#ifdef __STDC__
5878
# include 
5879
#else
5880
# include 
5881
#endif
5882
                     Syntax error
5883
_ACEOF
5884 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5885
 
5886 236 jeremybenn
else
5887 90 jeremybenn
  # Broken: fails on valid input.
5888
continue
5889
fi
5890 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
5891 90 jeremybenn
 
5892
  # OK, works on sane cases.  Now check whether nonexistent headers
5893
  # can be detected and how.
5894 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 90 jeremybenn
/* end confdefs.h.  */
5896
#include 
5897
_ACEOF
5898 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5899 90 jeremybenn
  # Broken: success on invalid input.
5900
continue
5901
else
5902
  # Passes both tests.
5903
ac_preproc_ok=:
5904
break
5905
fi
5906 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
5907 90 jeremybenn
 
5908
done
5909
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
5911 346 jeremybenn
if $ac_preproc_ok; then :
5912 90 jeremybenn
  break
5913
fi
5914
 
5915
    done
5916
    ac_cv_prog_CPP=$CPP
5917
 
5918
fi
5919
  CPP=$ac_cv_prog_CPP
5920
else
5921
  ac_cv_prog_CPP=$CPP
5922
fi
5923 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5924 90 jeremybenn
$as_echo "$CPP" >&6; }
5925
ac_preproc_ok=false
5926
for ac_c_preproc_warn_flag in '' yes
5927
do
5928
  # Use a header file that comes with gcc, so configuring glibc
5929
  # with a fresh cross-compiler works.
5930
  # Prefer  to  if __STDC__ is defined, since
5931
  #  exists even on freestanding compilers.
5932
  # On the NeXT, cc -E runs the code through the compiler's parser,
5933
  # not just through cpp. "Syntax error" is here to catch this case.
5934 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 90 jeremybenn
/* end confdefs.h.  */
5936
#ifdef __STDC__
5937
# include 
5938
#else
5939
# include 
5940
#endif
5941
                     Syntax error
5942
_ACEOF
5943 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5944
 
5945 236 jeremybenn
else
5946 90 jeremybenn
  # Broken: fails on valid input.
5947
continue
5948
fi
5949 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
5950 90 jeremybenn
 
5951
  # OK, works on sane cases.  Now check whether nonexistent headers
5952
  # can be detected and how.
5953 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 90 jeremybenn
/* end confdefs.h.  */
5955
#include 
5956
_ACEOF
5957 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5958 90 jeremybenn
  # Broken: success on invalid input.
5959
continue
5960
else
5961
  # Passes both tests.
5962
ac_preproc_ok=:
5963
break
5964
fi
5965 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
5966 90 jeremybenn
 
5967
done
5968
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
5970 346 jeremybenn
if $ac_preproc_ok; then :
5971
 
5972 90 jeremybenn
else
5973 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5974 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5975 625 jeremybenn
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5976
See \`config.log' for more details" "$LINENO" 5; }
5977 90 jeremybenn
fi
5978
 
5979
ac_ext=c
5980
ac_cpp='$CPP $CPPFLAGS'
5981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
 
5985
 
5986 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5987 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
5988 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
5989 90 jeremybenn
  $as_echo_n "(cached) " >&6
5990
else
5991 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 90 jeremybenn
/* end confdefs.h.  */
5993
#include 
5994
#include 
5995
#include 
5996
#include 
5997
 
5998
int
5999
main ()
6000
{
6001
 
6002
  ;
6003
  return 0;
6004
}
6005
_ACEOF
6006 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
6007 90 jeremybenn
  ac_cv_header_stdc=yes
6008
else
6009 346 jeremybenn
  ac_cv_header_stdc=no
6010 90 jeremybenn
fi
6011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012
 
6013
if test $ac_cv_header_stdc = yes; then
6014
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6015 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 90 jeremybenn
/* end confdefs.h.  */
6017
#include 
6018
 
6019
_ACEOF
6020
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
6022
 
6023 90 jeremybenn
else
6024
  ac_cv_header_stdc=no
6025
fi
6026
rm -f conftest*
6027
 
6028
fi
6029
 
6030
if test $ac_cv_header_stdc = yes; then
6031
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6032 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 90 jeremybenn
/* end confdefs.h.  */
6034
#include 
6035
 
6036
_ACEOF
6037
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
6039
 
6040 90 jeremybenn
else
6041
  ac_cv_header_stdc=no
6042
fi
6043
rm -f conftest*
6044
 
6045
fi
6046
 
6047
if test $ac_cv_header_stdc = yes; then
6048
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6049 346 jeremybenn
  if test "$cross_compiling" = yes; then :
6050 90 jeremybenn
  :
6051
else
6052 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 90 jeremybenn
/* end confdefs.h.  */
6054
#include 
6055
#include 
6056
#if ((' ' & 0x0FF) == 0x020)
6057
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6058
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6059
#else
6060
# define ISLOWER(c) \
6061
                   (('a' <= (c) && (c) <= 'i') \
6062
                     || ('j' <= (c) && (c) <= 'r') \
6063
                     || ('s' <= (c) && (c) <= 'z'))
6064
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6065
#endif
6066
 
6067
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6068
int
6069
main ()
6070
{
6071
  int i;
6072
  for (i = 0; i < 256; i++)
6073
    if (XOR (islower (i), ISLOWER (i))
6074
        || toupper (i) != TOUPPER (i))
6075
      return 2;
6076
  return 0;
6077
}
6078
_ACEOF
6079 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
6080
 
6081 236 jeremybenn
else
6082 346 jeremybenn
  ac_cv_header_stdc=no
6083 90 jeremybenn
fi
6084 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6085
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6086 90 jeremybenn
fi
6087
 
6088
fi
6089
fi
6090 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6091 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
6092
if test $ac_cv_header_stdc = yes; then
6093
 
6094 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6095 90 jeremybenn
 
6096
fi
6097
 
6098
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6099
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6100
                  inttypes.h stdint.h unistd.h
6101 346 jeremybenn
do :
6102
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6103
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6104
"
6105 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6106 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6107
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6108
_ACEOF
6109
 
6110
fi
6111
 
6112
done
6113
 
6114
 
6115
for ac_header in dlfcn.h
6116 346 jeremybenn
do :
6117
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6118
"
6119 625 jeremybenn
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6120 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6121 346 jeremybenn
#define HAVE_DLFCN_H 1
6122 90 jeremybenn
_ACEOF
6123
 
6124
fi
6125
 
6126
done
6127
 
6128
 
6129
 
6130
# Set options
6131
 
6132
 
6133
 
6134
        enable_dlopen=no
6135
 
6136
 
6137
  enable_win32_dll=no
6138
 
6139
 
6140
            # Check whether --enable-shared was given.
6141 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6142 90 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6143
    case $enableval in
6144
    yes) enable_shared=yes ;;
6145
    no) enable_shared=no ;;
6146
    *)
6147
      enable_shared=no
6148
      # Look at the argument we got.  We use all the common list separators.
6149
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6150
      for pkg in $enableval; do
6151
        IFS="$lt_save_ifs"
6152
        if test "X$pkg" = "X$p"; then
6153
          enable_shared=yes
6154
        fi
6155
      done
6156
      IFS="$lt_save_ifs"
6157
      ;;
6158
    esac
6159
else
6160
  enable_shared=yes
6161
fi
6162
 
6163
 
6164
 
6165
 
6166
 
6167
 
6168
 
6169
 
6170
 
6171
  # Check whether --enable-static was given.
6172 346 jeremybenn
if test "${enable_static+set}" = set; then :
6173 90 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6174
    case $enableval in
6175
    yes) enable_static=yes ;;
6176
    no) enable_static=no ;;
6177
    *)
6178
     enable_static=no
6179
      # Look at the argument we got.  We use all the common list separators.
6180
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6181
      for pkg in $enableval; do
6182
        IFS="$lt_save_ifs"
6183
        if test "X$pkg" = "X$p"; then
6184
          enable_static=yes
6185
        fi
6186
      done
6187
      IFS="$lt_save_ifs"
6188
      ;;
6189
    esac
6190
else
6191
  enable_static=yes
6192
fi
6193
 
6194
 
6195
 
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
 
6203
# Check whether --with-pic was given.
6204 346 jeremybenn
if test "${with_pic+set}" = set; then :
6205 90 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6206
else
6207
  pic_mode=default
6208
fi
6209
 
6210
 
6211
test -z "$pic_mode" && pic_mode=default
6212
 
6213
 
6214
 
6215
 
6216
 
6217
 
6218
 
6219
  # Check whether --enable-fast-install was given.
6220 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6221 90 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6222
    case $enableval in
6223
    yes) enable_fast_install=yes ;;
6224
    no) enable_fast_install=no ;;
6225
    *)
6226
      enable_fast_install=no
6227
      # Look at the argument we got.  We use all the common list separators.
6228
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6229
      for pkg in $enableval; do
6230
        IFS="$lt_save_ifs"
6231
        if test "X$pkg" = "X$p"; then
6232
          enable_fast_install=yes
6233
        fi
6234
      done
6235
      IFS="$lt_save_ifs"
6236
      ;;
6237
    esac
6238
else
6239
  enable_fast_install=yes
6240
fi
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
# This can be used to rebuild libtool when needed
6253
LIBTOOL_DEPS="$ltmain"
6254
 
6255
# Always use our own libtool.
6256
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6257
 
6258
 
6259
 
6260
 
6261
 
6262
 
6263
 
6264
 
6265
 
6266
 
6267
 
6268
 
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
 
6277
 
6278
 
6279
 
6280
 
6281
 
6282
test -z "$LN_S" && LN_S="ln -s"
6283
 
6284
 
6285
 
6286
 
6287
 
6288
 
6289
 
6290
 
6291
 
6292
 
6293
 
6294
 
6295
 
6296
 
6297
if test -n "${ZSH_VERSION+set}" ; then
6298
   setopt NO_GLOB_SUBST
6299
fi
6300
 
6301 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6302 90 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6303 625 jeremybenn
if ${lt_cv_objdir+:} false; then :
6304 90 jeremybenn
  $as_echo_n "(cached) " >&6
6305
else
6306
  rm -f .libs 2>/dev/null
6307
mkdir .libs 2>/dev/null
6308
if test -d .libs; then
6309
  lt_cv_objdir=.libs
6310
else
6311
  # MS-DOS does not allow filenames that begin with a dot.
6312
  lt_cv_objdir=_libs
6313
fi
6314
rmdir .libs 2>/dev/null
6315
fi
6316 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6317 90 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6318
objdir=$lt_cv_objdir
6319
 
6320
 
6321
 
6322
 
6323
 
6324
cat >>confdefs.h <<_ACEOF
6325
#define LT_OBJDIR "$lt_cv_objdir/"
6326
_ACEOF
6327
 
6328
 
6329
 
6330
 
6331
 
6332
 
6333
 
6334
 
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
case $host_os in
6345
aix3*)
6346
  # AIX sometimes has problems with the GCC collect2 program.  For some
6347
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6348
  # vanish in a puff of smoke.
6349
  if test "X${COLLECT_NAMES+set}" != Xset; then
6350
    COLLECT_NAMES=
6351
    export COLLECT_NAMES
6352
  fi
6353
  ;;
6354
esac
6355
 
6356
# Sed substitution that helps us do robust quoting.  It backslashifies
6357
# metacharacters that are still active within double-quoted strings.
6358
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6359
 
6360
# Same as above, but do not quote variable references.
6361
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6362
 
6363
# Sed substitution to delay expansion of an escaped shell variable in a
6364
# double_quote_subst'ed string.
6365
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6366
 
6367
# Sed substitution to delay expansion of an escaped single quote.
6368
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6369
 
6370
# Sed substitution to avoid accidental globbing in evaled expressions
6371
no_glob_subst='s/\*/\\\*/g'
6372
 
6373
# Global variables:
6374
ofile=libtool
6375
can_build_shared=yes
6376
 
6377
# All known linkers require a `.a' archive for static linking (except MSVC,
6378
# which needs '.lib').
6379
libext=a
6380
 
6381
with_gnu_ld="$lt_cv_prog_gnu_ld"
6382
 
6383
old_CC="$CC"
6384
old_CFLAGS="$CFLAGS"
6385
 
6386
# Set sane defaults for various variables
6387
test -z "$CC" && CC=cc
6388
test -z "$LTCC" && LTCC=$CC
6389
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6390
test -z "$LD" && LD=ld
6391
test -z "$ac_objext" && ac_objext=o
6392
 
6393
for cc_temp in $compiler""; do
6394
  case $cc_temp in
6395
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6396
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6397
    \-*) ;;
6398
    *) break;;
6399
  esac
6400
done
6401
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6402
 
6403
 
6404
# Only perform the check for file, if the check method requires it
6405
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6406
case $deplibs_check_method in
6407
file_magic*)
6408
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6409 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6410 90 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6411 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6412 90 jeremybenn
  $as_echo_n "(cached) " >&6
6413
else
6414
  case $MAGIC_CMD in
6415
[\\/*] |  ?:[\\/]*)
6416
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6417
  ;;
6418
*)
6419
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6420
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6421
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6422
  for ac_dir in $ac_dummy; do
6423
    IFS="$lt_save_ifs"
6424
    test -z "$ac_dir" && ac_dir=.
6425
    if test -f $ac_dir/${ac_tool_prefix}file; then
6426
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6427
      if test -n "$file_magic_test_file"; then
6428
        case $deplibs_check_method in
6429
        "file_magic "*)
6430
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6431
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6432
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6433
            $EGREP "$file_magic_regex" > /dev/null; then
6434
            :
6435
          else
6436
            cat <<_LT_EOF 1>&2
6437
 
6438
*** Warning: the command libtool uses to detect shared libraries,
6439
*** $file_magic_cmd, produces output that libtool cannot recognize.
6440
*** The result is that libtool may fail to recognize shared libraries
6441
*** as such.  This will affect the creation of libtool libraries that
6442
*** depend on shared libraries, but programs linked with such libtool
6443
*** libraries will work regardless of this problem.  Nevertheless, you
6444
*** may want to report the problem to your system manager and/or to
6445
*** bug-libtool@gnu.org
6446
 
6447
_LT_EOF
6448
          fi ;;
6449
        esac
6450
      fi
6451
      break
6452
    fi
6453
  done
6454
  IFS="$lt_save_ifs"
6455
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6456
  ;;
6457
esac
6458
fi
6459
 
6460
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461
if test -n "$MAGIC_CMD"; then
6462 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6463 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6464
else
6465 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 90 jeremybenn
$as_echo "no" >&6; }
6467
fi
6468
 
6469
 
6470
 
6471
 
6472
 
6473
if test -z "$lt_cv_path_MAGIC_CMD"; then
6474
  if test -n "$ac_tool_prefix"; then
6475 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6476 90 jeremybenn
$as_echo_n "checking for file... " >&6; }
6477 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6478 90 jeremybenn
  $as_echo_n "(cached) " >&6
6479
else
6480
  case $MAGIC_CMD in
6481
[\\/*] |  ?:[\\/]*)
6482
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6483
  ;;
6484
*)
6485
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6486
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6487
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6488
  for ac_dir in $ac_dummy; do
6489
    IFS="$lt_save_ifs"
6490
    test -z "$ac_dir" && ac_dir=.
6491
    if test -f $ac_dir/file; then
6492
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6493
      if test -n "$file_magic_test_file"; then
6494
        case $deplibs_check_method in
6495
        "file_magic "*)
6496
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6497
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6499
            $EGREP "$file_magic_regex" > /dev/null; then
6500
            :
6501
          else
6502
            cat <<_LT_EOF 1>&2
6503
 
6504
*** Warning: the command libtool uses to detect shared libraries,
6505
*** $file_magic_cmd, produces output that libtool cannot recognize.
6506
*** The result is that libtool may fail to recognize shared libraries
6507
*** as such.  This will affect the creation of libtool libraries that
6508
*** depend on shared libraries, but programs linked with such libtool
6509
*** libraries will work regardless of this problem.  Nevertheless, you
6510
*** may want to report the problem to your system manager and/or to
6511
*** bug-libtool@gnu.org
6512
 
6513
_LT_EOF
6514
          fi ;;
6515
        esac
6516
      fi
6517
      break
6518
    fi
6519
  done
6520
  IFS="$lt_save_ifs"
6521
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6522
  ;;
6523
esac
6524
fi
6525
 
6526
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527
if test -n "$MAGIC_CMD"; then
6528 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6529 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6530
else
6531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 90 jeremybenn
$as_echo "no" >&6; }
6533
fi
6534
 
6535
 
6536
  else
6537
    MAGIC_CMD=:
6538
  fi
6539
fi
6540
 
6541
  fi
6542
  ;;
6543
esac
6544
 
6545
# Use C for the default configuration in the libtool script
6546
 
6547
lt_save_CC="$CC"
6548
ac_ext=c
6549
ac_cpp='$CPP $CPPFLAGS'
6550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553
 
6554
 
6555
# Source file extension for C test sources.
6556
ac_ext=c
6557
 
6558
# Object file extension for compiled C test sources.
6559
objext=o
6560
objext=$objext
6561
 
6562
# Code to be used in simple compile tests
6563
lt_simple_compile_test_code="int some_variable = 0;"
6564
 
6565
# Code to be used in simple link tests
6566
lt_simple_link_test_code='int main(){return(0);}'
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
# If no C compiler was specified, use CC.
6575
LTCC=${LTCC-"$CC"}
6576
 
6577
# If no C compiler flags were specified, use CFLAGS.
6578
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6579
 
6580
# Allow CC to be a program name with arguments.
6581
compiler=$CC
6582
 
6583
# Save the default compiler, since it gets overwritten when the other
6584
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6585
compiler_DEFAULT=$CC
6586
 
6587
# save warnings/boilerplate of simple test code
6588
ac_outfile=conftest.$ac_objext
6589
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6590
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6591
_lt_compiler_boilerplate=`cat conftest.err`
6592
$RM conftest*
6593
 
6594
ac_outfile=conftest.$ac_objext
6595
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6596
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6597
_lt_linker_boilerplate=`cat conftest.err`
6598
$RM -r conftest*
6599
 
6600
 
6601
## CAVEAT EMPTOR:
6602
## There is no encapsulation within the following macros, do not change
6603
## the running order or otherwise move them around unless you know exactly
6604
## what you are doing...
6605
if test -n "$compiler"; then
6606
 
6607
lt_prog_compiler_no_builtin_flag=
6608
 
6609
if test "$GCC" = yes; then
6610
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6611
 
6612 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6613 90 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6614 625 jeremybenn
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6615 90 jeremybenn
  $as_echo_n "(cached) " >&6
6616
else
6617
  lt_cv_prog_compiler_rtti_exceptions=no
6618
   ac_outfile=conftest.$ac_objext
6619
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6620
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6621
   # Insert the option either (1) after the last *FLAGS variable, or
6622
   # (2) before a word containing "conftest.", or (3) at the end.
6623
   # Note that $ac_compile itself does not contain backslashes and begins
6624
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6625
   # The option is referenced via a variable to avoid confusing sed.
6626
   lt_compile=`echo "$ac_compile" | $SED \
6627
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6628
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6629
   -e 's:$: $lt_compiler_flag:'`
6630 625 jeremybenn
   (eval echo "\"\$as_me:6630: $lt_compile\"" >&5)
6631 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6632
   ac_status=$?
6633
   cat conftest.err >&5
6634 625 jeremybenn
   echo "$as_me:6634: \$? = $ac_status" >&5
6635 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6636
     # The compiler can only warn and ignore the option if not recognized
6637
     # So say no if there are warnings other than the usual output.
6638
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6639
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6640
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6641
       lt_cv_prog_compiler_rtti_exceptions=yes
6642
     fi
6643
   fi
6644
   $RM conftest*
6645
 
6646
fi
6647 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6648 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6649
 
6650
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6651
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6652
else
6653
    :
6654
fi
6655
 
6656
fi
6657
 
6658
 
6659
 
6660
 
6661
 
6662
 
6663
  lt_prog_compiler_wl=
6664
lt_prog_compiler_pic=
6665
lt_prog_compiler_static=
6666
 
6667 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6668 90 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6669
 
6670
  if test "$GCC" = yes; then
6671
    lt_prog_compiler_wl='-Wl,'
6672
    lt_prog_compiler_static='-static'
6673
 
6674
    case $host_os in
6675
      aix*)
6676
      # All AIX code is PIC.
6677
      if test "$host_cpu" = ia64; then
6678
        # AIX 5 now supports IA64 processor
6679
        lt_prog_compiler_static='-Bstatic'
6680
      fi
6681
      ;;
6682
 
6683
    amigaos*)
6684
      case $host_cpu in
6685
      powerpc)
6686
            # see comment about AmigaOS4 .so support
6687
            lt_prog_compiler_pic='-fPIC'
6688
        ;;
6689
      m68k)
6690
            # FIXME: we need at least 68020 code to build shared libraries, but
6691
            # adding the `-m68020' flag to GCC prevents building anything better,
6692
            # like `-m68040'.
6693
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6694
        ;;
6695
      esac
6696
      ;;
6697
 
6698
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6699
      # PIC is the default for these OSes.
6700
      ;;
6701
 
6702
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6703
      # This hack is so that the source file can tell whether it is being
6704
      # built for inclusion in a dll (and should export symbols for example).
6705
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6706
      # (--disable-auto-import) libraries
6707
      lt_prog_compiler_pic='-DDLL_EXPORT'
6708
      ;;
6709
 
6710
    darwin* | rhapsody*)
6711
      # PIC is the default on this platform
6712
      # Common symbols not allowed in MH_DYLIB files
6713
      lt_prog_compiler_pic='-fno-common'
6714
      ;;
6715
 
6716
    hpux*)
6717
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6718
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6719
      # sets the default TLS model and affects inlining.
6720
      case $host_cpu in
6721
      hppa*64*)
6722
        # +Z the default
6723
        ;;
6724
      *)
6725
        lt_prog_compiler_pic='-fPIC'
6726
        ;;
6727
      esac
6728
      ;;
6729
 
6730
    interix[3-9]*)
6731
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6732
      # Instead, we relocate shared libraries at runtime.
6733
      ;;
6734
 
6735
    msdosdjgpp*)
6736
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6737
      # on systems that don't support them.
6738
      lt_prog_compiler_can_build_shared=no
6739
      enable_shared=no
6740
      ;;
6741
 
6742
    *nto* | *qnx*)
6743
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6744
      # it will coredump.
6745
      lt_prog_compiler_pic='-fPIC -shared'
6746
      ;;
6747
 
6748
    sysv4*MP*)
6749
      if test -d /usr/nec; then
6750
        lt_prog_compiler_pic=-Kconform_pic
6751
      fi
6752
      ;;
6753
 
6754
    *)
6755
      lt_prog_compiler_pic='-fPIC'
6756
      ;;
6757
    esac
6758
  else
6759
    # PORTME Check for flag to pass linker flags through the system compiler.
6760
    case $host_os in
6761
    aix*)
6762
      lt_prog_compiler_wl='-Wl,'
6763
      if test "$host_cpu" = ia64; then
6764
        # AIX 5 now supports IA64 processor
6765
        lt_prog_compiler_static='-Bstatic'
6766
      else
6767
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6768
      fi
6769
      ;;
6770
 
6771
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6772
      # This hack is so that the source file can tell whether it is being
6773
      # built for inclusion in a dll (and should export symbols for example).
6774
      lt_prog_compiler_pic='-DDLL_EXPORT'
6775
      ;;
6776
 
6777
    hpux9* | hpux10* | hpux11*)
6778
      lt_prog_compiler_wl='-Wl,'
6779
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6780
      # not for PA HP-UX.
6781
      case $host_cpu in
6782
      hppa*64*|ia64*)
6783
        # +Z the default
6784
        ;;
6785
      *)
6786
        lt_prog_compiler_pic='+Z'
6787
        ;;
6788
      esac
6789
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6790
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6791
      ;;
6792
 
6793
    irix5* | irix6* | nonstopux*)
6794
      lt_prog_compiler_wl='-Wl,'
6795
      # PIC (with -KPIC) is the default.
6796
      lt_prog_compiler_static='-non_shared'
6797
      ;;
6798
 
6799
    linux* | k*bsd*-gnu)
6800
      case $cc_basename in
6801
      # old Intel for x86_64 which still supported -KPIC.
6802
      ecc*)
6803
        lt_prog_compiler_wl='-Wl,'
6804
        lt_prog_compiler_pic='-KPIC'
6805
        lt_prog_compiler_static='-static'
6806
        ;;
6807
      # icc used to be incompatible with GCC.
6808
      # ICC 10 doesn't accept -KPIC any more.
6809
      icc* | ifort*)
6810
        lt_prog_compiler_wl='-Wl,'
6811
        lt_prog_compiler_pic='-fPIC'
6812
        lt_prog_compiler_static='-static'
6813
        ;;
6814
      # Lahey Fortran 8.1.
6815
      lf95*)
6816
        lt_prog_compiler_wl='-Wl,'
6817
        lt_prog_compiler_pic='--shared'
6818
        lt_prog_compiler_static='--static'
6819
        ;;
6820
      pgcc* | pgf77* | pgf90* | pgf95*)
6821
        # Portland Group compilers (*not* the Pentium gcc compiler,
6822
        # which looks to be a dead project)
6823
        lt_prog_compiler_wl='-Wl,'
6824
        lt_prog_compiler_pic='-fpic'
6825
        lt_prog_compiler_static='-Bstatic'
6826
        ;;
6827
      ccc*)
6828
        lt_prog_compiler_wl='-Wl,'
6829
        # All Alpha code is PIC.
6830
        lt_prog_compiler_static='-non_shared'
6831
        ;;
6832
      xl*)
6833
        # IBM XL C 8.0/Fortran 10.1 on PPC
6834
        lt_prog_compiler_wl='-Wl,'
6835
        lt_prog_compiler_pic='-qpic'
6836
        lt_prog_compiler_static='-qstaticlink'
6837
        ;;
6838
      *)
6839
        case `$CC -V 2>&1 | sed 5q` in
6840
        *Sun\ C*)
6841
          # Sun C 5.9
6842
          lt_prog_compiler_pic='-KPIC'
6843
          lt_prog_compiler_static='-Bstatic'
6844
          lt_prog_compiler_wl='-Wl,'
6845
          ;;
6846
        *Sun\ F*)
6847
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6848
          lt_prog_compiler_pic='-KPIC'
6849
          lt_prog_compiler_static='-Bstatic'
6850
          lt_prog_compiler_wl=''
6851
          ;;
6852
        esac
6853
        ;;
6854
      esac
6855
      ;;
6856
 
6857
    newsos6)
6858
      lt_prog_compiler_pic='-KPIC'
6859
      lt_prog_compiler_static='-Bstatic'
6860
      ;;
6861
 
6862
    *nto* | *qnx*)
6863
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6864
      # it will coredump.
6865
      lt_prog_compiler_pic='-fPIC -shared'
6866
      ;;
6867
 
6868
    osf3* | osf4* | osf5*)
6869
      lt_prog_compiler_wl='-Wl,'
6870
      # All OSF/1 code is PIC.
6871
      lt_prog_compiler_static='-non_shared'
6872
      ;;
6873
 
6874
    rdos*)
6875
      lt_prog_compiler_static='-non_shared'
6876
      ;;
6877
 
6878
    solaris*)
6879
      lt_prog_compiler_pic='-KPIC'
6880
      lt_prog_compiler_static='-Bstatic'
6881
      case $cc_basename in
6882
      f77* | f90* | f95*)
6883
        lt_prog_compiler_wl='-Qoption ld ';;
6884
      *)
6885
        lt_prog_compiler_wl='-Wl,';;
6886
      esac
6887
      ;;
6888
 
6889
    sunos4*)
6890
      lt_prog_compiler_wl='-Qoption ld '
6891
      lt_prog_compiler_pic='-PIC'
6892
      lt_prog_compiler_static='-Bstatic'
6893
      ;;
6894
 
6895
    sysv4 | sysv4.2uw2* | sysv4.3*)
6896
      lt_prog_compiler_wl='-Wl,'
6897
      lt_prog_compiler_pic='-KPIC'
6898
      lt_prog_compiler_static='-Bstatic'
6899
      ;;
6900
 
6901
    sysv4*MP*)
6902
      if test -d /usr/nec ;then
6903
        lt_prog_compiler_pic='-Kconform_pic'
6904
        lt_prog_compiler_static='-Bstatic'
6905
      fi
6906
      ;;
6907
 
6908
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6909
      lt_prog_compiler_wl='-Wl,'
6910
      lt_prog_compiler_pic='-KPIC'
6911
      lt_prog_compiler_static='-Bstatic'
6912
      ;;
6913
 
6914
    unicos*)
6915
      lt_prog_compiler_wl='-Wl,'
6916
      lt_prog_compiler_can_build_shared=no
6917
      ;;
6918
 
6919
    uts4*)
6920
      lt_prog_compiler_pic='-pic'
6921
      lt_prog_compiler_static='-Bstatic'
6922
      ;;
6923
 
6924
    *)
6925
      lt_prog_compiler_can_build_shared=no
6926
      ;;
6927
    esac
6928
  fi
6929
 
6930
case $host_os in
6931
  # For platforms which do not support PIC, -DPIC is meaningless:
6932
  *djgpp*)
6933
    lt_prog_compiler_pic=
6934
    ;;
6935
  *)
6936
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6937
    ;;
6938
esac
6939 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6940 90 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
6941
 
6942
 
6943
 
6944
 
6945
 
6946
 
6947
#
6948
# Check to make sure the PIC flag actually works.
6949
#
6950
if test -n "$lt_prog_compiler_pic"; then
6951 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6952 90 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6953 625 jeremybenn
if ${lt_cv_prog_compiler_pic_works+:} false; then :
6954 90 jeremybenn
  $as_echo_n "(cached) " >&6
6955
else
6956
  lt_cv_prog_compiler_pic_works=no
6957
   ac_outfile=conftest.$ac_objext
6958
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6959
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6960
   # Insert the option either (1) after the last *FLAGS variable, or
6961
   # (2) before a word containing "conftest.", or (3) at the end.
6962
   # Note that $ac_compile itself does not contain backslashes and begins
6963
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6964
   # The option is referenced via a variable to avoid confusing sed.
6965
   lt_compile=`echo "$ac_compile" | $SED \
6966
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6967
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6968
   -e 's:$: $lt_compiler_flag:'`
6969 625 jeremybenn
   (eval echo "\"\$as_me:6969: $lt_compile\"" >&5)
6970 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6971
   ac_status=$?
6972
   cat conftest.err >&5
6973 625 jeremybenn
   echo "$as_me:6973: \$? = $ac_status" >&5
6974 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6975
     # The compiler can only warn and ignore the option if not recognized
6976
     # So say no if there are warnings other than the usual output.
6977
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6978
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6979
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6980
       lt_cv_prog_compiler_pic_works=yes
6981
     fi
6982
   fi
6983
   $RM conftest*
6984
 
6985
fi
6986 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6987 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6988
 
6989
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6990
    case $lt_prog_compiler_pic in
6991
     "" | " "*) ;;
6992
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6993
     esac
6994
else
6995
    lt_prog_compiler_pic=
6996
     lt_prog_compiler_can_build_shared=no
6997
fi
6998
 
6999
fi
7000
 
7001
 
7002
 
7003
 
7004
 
7005
 
7006
#
7007
# Check to make sure the static flag actually works.
7008
#
7009
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7010 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7011 90 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7012 625 jeremybenn
if ${lt_cv_prog_compiler_static_works+:} false; then :
7013 90 jeremybenn
  $as_echo_n "(cached) " >&6
7014
else
7015
  lt_cv_prog_compiler_static_works=no
7016
   save_LDFLAGS="$LDFLAGS"
7017
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7018
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7019
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7020
     # The linker can only warn and ignore the option if not recognized
7021
     # So say no if there are warnings
7022
     if test -s conftest.err; then
7023
       # Append any errors to the config.log.
7024
       cat conftest.err 1>&5
7025
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7026
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7027
       if diff conftest.exp conftest.er2 >/dev/null; then
7028
         lt_cv_prog_compiler_static_works=yes
7029
       fi
7030
     else
7031
       lt_cv_prog_compiler_static_works=yes
7032
     fi
7033
   fi
7034
   $RM -r conftest*
7035
   LDFLAGS="$save_LDFLAGS"
7036
 
7037
fi
7038 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7039 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7040
 
7041
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7042
    :
7043
else
7044
    lt_prog_compiler_static=
7045
fi
7046
 
7047
 
7048
 
7049
 
7050
 
7051
 
7052
 
7053 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7054 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7055 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7056 90 jeremybenn
  $as_echo_n "(cached) " >&6
7057
else
7058
  lt_cv_prog_compiler_c_o=no
7059
   $RM -r conftest 2>/dev/null
7060
   mkdir conftest
7061
   cd conftest
7062
   mkdir out
7063
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7064
 
7065
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7066
   # Insert the option either (1) after the last *FLAGS variable, or
7067
   # (2) before a word containing "conftest.", or (3) at the end.
7068
   # Note that $ac_compile itself does not contain backslashes and begins
7069
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7070
   lt_compile=`echo "$ac_compile" | $SED \
7071
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7072
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7073
   -e 's:$: $lt_compiler_flag:'`
7074 625 jeremybenn
   (eval echo "\"\$as_me:7074: $lt_compile\"" >&5)
7075 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7076
   ac_status=$?
7077
   cat out/conftest.err >&5
7078 625 jeremybenn
   echo "$as_me:7078: \$? = $ac_status" >&5
7079 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7080
   then
7081
     # The compiler can only warn and ignore the option if not recognized
7082
     # So say no if there are warnings
7083
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7084
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7085
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7086
       lt_cv_prog_compiler_c_o=yes
7087
     fi
7088
   fi
7089
   chmod u+w . 2>&5
7090
   $RM conftest*
7091
   # SGI C++ compiler will create directory out/ii_files/ for
7092
   # template instantiation
7093
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7094
   $RM out/* && rmdir out
7095
   cd ..
7096
   $RM -r conftest
7097
   $RM conftest*
7098
 
7099
fi
7100 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7101 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7102
 
7103
 
7104
 
7105
 
7106
 
7107
 
7108 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7109 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7110 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7111 90 jeremybenn
  $as_echo_n "(cached) " >&6
7112
else
7113
  lt_cv_prog_compiler_c_o=no
7114
   $RM -r conftest 2>/dev/null
7115
   mkdir conftest
7116
   cd conftest
7117
   mkdir out
7118
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7119
 
7120
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7121
   # Insert the option either (1) after the last *FLAGS variable, or
7122
   # (2) before a word containing "conftest.", or (3) at the end.
7123
   # Note that $ac_compile itself does not contain backslashes and begins
7124
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7125
   lt_compile=`echo "$ac_compile" | $SED \
7126
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7127
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7128
   -e 's:$: $lt_compiler_flag:'`
7129 625 jeremybenn
   (eval echo "\"\$as_me:7129: $lt_compile\"" >&5)
7130 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7131
   ac_status=$?
7132
   cat out/conftest.err >&5
7133 625 jeremybenn
   echo "$as_me:7133: \$? = $ac_status" >&5
7134 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7135
   then
7136
     # The compiler can only warn and ignore the option if not recognized
7137
     # So say no if there are warnings
7138
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7139
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7140
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7141
       lt_cv_prog_compiler_c_o=yes
7142
     fi
7143
   fi
7144
   chmod u+w . 2>&5
7145
   $RM conftest*
7146
   # SGI C++ compiler will create directory out/ii_files/ for
7147
   # template instantiation
7148
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7149
   $RM out/* && rmdir out
7150
   cd ..
7151
   $RM -r conftest
7152
   $RM conftest*
7153
 
7154
fi
7155 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7156 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7157
 
7158
 
7159
 
7160
 
7161
hard_links="nottested"
7162
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7163
  # do not overwrite the value of need_locks provided by the user
7164 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7165 90 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7166
  hard_links=yes
7167
  $RM conftest*
7168
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7169
  touch conftest.a
7170
  ln conftest.a conftest.b 2>&5 || hard_links=no
7171
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7172 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7173 90 jeremybenn
$as_echo "$hard_links" >&6; }
7174
  if test "$hard_links" = no; then
7175 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7176 90 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7177
    need_locks=warn
7178
  fi
7179
else
7180
  need_locks=no
7181
fi
7182
 
7183
 
7184
 
7185
 
7186
 
7187
 
7188 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7189 90 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7190
 
7191
  runpath_var=
7192
  allow_undefined_flag=
7193
  always_export_symbols=no
7194
  archive_cmds=
7195
  archive_expsym_cmds=
7196
  compiler_needs_object=no
7197
  enable_shared_with_static_runtimes=no
7198
  export_dynamic_flag_spec=
7199
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7200
  hardcode_automatic=no
7201
  hardcode_direct=no
7202
  hardcode_direct_absolute=no
7203
  hardcode_libdir_flag_spec=
7204
  hardcode_libdir_flag_spec_ld=
7205
  hardcode_libdir_separator=
7206
  hardcode_minus_L=no
7207
  hardcode_shlibpath_var=unsupported
7208
  inherit_rpath=no
7209
  link_all_deplibs=unknown
7210
  module_cmds=
7211
  module_expsym_cmds=
7212
  old_archive_from_new_cmds=
7213
  old_archive_from_expsyms_cmds=
7214
  thread_safe_flag_spec=
7215
  whole_archive_flag_spec=
7216
  # include_expsyms should be a list of space-separated symbols to be *always*
7217
  # included in the symbol list
7218
  include_expsyms=
7219
  # exclude_expsyms can be an extended regexp of symbols to exclude
7220
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7221
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7222
  # as well as any symbol that contains `d'.
7223
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7224
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7225
  # platforms (ab)use it in PIC code, but their linkers get confused if
7226
  # the symbol is explicitly referenced.  Since portable code cannot
7227
  # rely on this symbol name, it's probably fine to never include it in
7228
  # preloaded symbol tables.
7229
  # Exclude shared library initialization/finalization symbols.
7230
  extract_expsyms_cmds=
7231
 
7232
  case $host_os in
7233
  cygwin* | mingw* | pw32* | cegcc*)
7234
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7235
    # When not using gcc, we currently assume that we are using
7236
    # Microsoft Visual C++.
7237
    if test "$GCC" != yes; then
7238
      with_gnu_ld=no
7239
    fi
7240
    ;;
7241
  interix*)
7242
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7243
    with_gnu_ld=yes
7244
    ;;
7245
  openbsd*)
7246
    with_gnu_ld=no
7247
    ;;
7248 93 jeremybenn
  linux* | k*bsd*-gnu)
7249
    link_all_deplibs=no
7250
    ;;
7251 90 jeremybenn
  esac
7252
 
7253
  ld_shlibs=yes
7254
  if test "$with_gnu_ld" = yes; then
7255
    # If archive_cmds runs LD, not CC, wlarc should be empty
7256
    wlarc='${wl}'
7257
 
7258
    # Set some defaults for GNU ld with shared library support. These
7259
    # are reset later if shared libraries are not supported. Putting them
7260
    # here allows them to be overridden if necessary.
7261
    runpath_var=LD_RUN_PATH
7262
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263
    export_dynamic_flag_spec='${wl}--export-dynamic'
7264
    # ancient GNU ld didn't support --whole-archive et. al.
7265
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7266
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7267
    else
7268
      whole_archive_flag_spec=
7269
    fi
7270
    supports_anon_versioning=no
7271
    case `$LD -v 2>&1` in
7272
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7273
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7274
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7275
      *\ 2.11.*) ;; # other 2.11 versions
7276
      *) supports_anon_versioning=yes ;;
7277
    esac
7278
 
7279
    # See if GNU ld supports shared libraries.
7280
    case $host_os in
7281
    aix[3-9]*)
7282
      # On AIX/PPC, the GNU linker is very broken
7283
      if test "$host_cpu" != ia64; then
7284
        ld_shlibs=no
7285
        cat <<_LT_EOF 1>&2
7286
 
7287
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7288
*** to be unable to reliably create shared libraries on AIX.
7289
*** Therefore, libtool is disabling shared libraries support.  If you
7290
*** really care for shared libraries, you may want to modify your PATH
7291
*** so that a non-GNU linker is found, and then restart.
7292
 
7293
_LT_EOF
7294
      fi
7295
      ;;
7296
 
7297
    amigaos*)
7298
      case $host_cpu in
7299
      powerpc)
7300
            # see comment about AmigaOS4 .so support
7301
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7302
            archive_expsym_cmds=''
7303
        ;;
7304
      m68k)
7305
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7306
            hardcode_libdir_flag_spec='-L$libdir'
7307
            hardcode_minus_L=yes
7308
        ;;
7309
      esac
7310
      ;;
7311
 
7312
    beos*)
7313
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7314
        allow_undefined_flag=unsupported
7315
        # Joseph Beckenbach  says some releases of gcc
7316
        # support --undefined.  This deserves some investigation.  FIXME
7317
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7318
      else
7319
        ld_shlibs=no
7320
      fi
7321
      ;;
7322
 
7323
    cygwin* | mingw* | pw32* | cegcc*)
7324
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7325
      # as there is no search path for DLLs.
7326
      hardcode_libdir_flag_spec='-L$libdir'
7327
      allow_undefined_flag=unsupported
7328
      always_export_symbols=no
7329
      enable_shared_with_static_runtimes=yes
7330
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7331
 
7332
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7333
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7334
        # If the export-symbols file already is a .def file (1st line
7335
        # is EXPORTS), use it as is; otherwise, prepend...
7336
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7337
          cp $export_symbols $output_objdir/$soname.def;
7338
        else
7339
          echo EXPORTS > $output_objdir/$soname.def;
7340
          cat $export_symbols >> $output_objdir/$soname.def;
7341
        fi~
7342
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7343
      else
7344
        ld_shlibs=no
7345
      fi
7346
      ;;
7347
 
7348
    interix[3-9]*)
7349
      hardcode_direct=no
7350
      hardcode_shlibpath_var=no
7351
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7352
      export_dynamic_flag_spec='${wl}-E'
7353
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7354
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7355
      # default) and relocated if they conflict, which is a slow very memory
7356
      # consuming and fragmenting process.  To avoid this, we pick a random,
7357
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7358
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7359
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7360
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7361
      ;;
7362
 
7363
    gnu* | linux* | tpf* | k*bsd*-gnu)
7364
      tmp_diet=no
7365
      if test "$host_os" = linux-dietlibc; then
7366
        case $cc_basename in
7367
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7368
        esac
7369
      fi
7370
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7371
         && test "$tmp_diet" = no
7372
      then
7373
        tmp_addflag=
7374
        tmp_sharedflag='-shared'
7375
        case $cc_basename,$host_cpu in
7376
        pgcc*)                          # Portland Group C compiler
7377
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7378
          tmp_addflag=' $pic_flag'
7379
          ;;
7380
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7381
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7382
          tmp_addflag=' $pic_flag -Mnomain' ;;
7383
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7384
          tmp_addflag=' -i_dynamic' ;;
7385
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7386
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7387
        ifc* | ifort*)                  # Intel Fortran compiler
7388
          tmp_addflag=' -nofor_main' ;;
7389
        lf95*)                          # Lahey Fortran 8.1
7390
          whole_archive_flag_spec=
7391
          tmp_sharedflag='--shared' ;;
7392
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7393
          tmp_sharedflag='-qmkshrobj'
7394
          tmp_addflag= ;;
7395
        esac
7396
        case `$CC -V 2>&1 | sed 5q` in
7397
        *Sun\ C*)                       # Sun C 5.9
7398
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7399
          compiler_needs_object=yes
7400
          tmp_sharedflag='-G' ;;
7401
        *Sun\ F*)                       # Sun Fortran 8.3
7402
          tmp_sharedflag='-G' ;;
7403
        esac
7404
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7405
 
7406
        if test "x$supports_anon_versioning" = xyes; then
7407
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7408
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7409
            echo "local: *; };" >> $output_objdir/$libname.ver~
7410
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7411
        fi
7412
 
7413
        case $cc_basename in
7414
        xlf*)
7415
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7416
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7417
          hardcode_libdir_flag_spec=
7418
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7419
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7420
          if test "x$supports_anon_versioning" = xyes; then
7421
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7422
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7423
              echo "local: *; };" >> $output_objdir/$libname.ver~
7424
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7425
          fi
7426
          ;;
7427
        esac
7428
      else
7429
        ld_shlibs=no
7430
      fi
7431
      ;;
7432
 
7433 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7434 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7435
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7436
        wlarc=
7437
      else
7438
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7439
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7440
      fi
7441
      ;;
7442
 
7443
    solaris*)
7444
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7445
        ld_shlibs=no
7446
        cat <<_LT_EOF 1>&2
7447
 
7448
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7449
*** create shared libraries on Solaris systems.  Therefore, libtool
7450
*** is disabling shared libraries support.  We urge you to upgrade GNU
7451
*** binutils to release 2.9.1 or newer.  Another option is to modify
7452
*** your PATH or compiler configuration so that the native linker is
7453
*** used, and then restart.
7454
 
7455
_LT_EOF
7456
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7457
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7458
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7459
      else
7460
        ld_shlibs=no
7461
      fi
7462
      ;;
7463
 
7464
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7465
      case `$LD -v 2>&1` in
7466
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7467
        ld_shlibs=no
7468
        cat <<_LT_EOF 1>&2
7469
 
7470
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7471
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7472
*** is disabling shared libraries support.  We urge you to upgrade GNU
7473
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7474
*** your PATH or compiler configuration so that the native linker is
7475
*** used, and then restart.
7476
 
7477
_LT_EOF
7478
        ;;
7479
        *)
7480
          # For security reasons, it is highly recommended that you always
7481
          # use absolute paths for naming shared libraries, and exclude the
7482
          # DT_RUNPATH tag from executables and libraries.  But doing so
7483
          # requires that you compile everything twice, which is a pain.
7484
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7485
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7486
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7487
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7488
          else
7489
            ld_shlibs=no
7490
          fi
7491
        ;;
7492
      esac
7493
      ;;
7494
 
7495
    sunos4*)
7496
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7497
      wlarc=
7498
      hardcode_direct=yes
7499
      hardcode_shlibpath_var=no
7500
      ;;
7501
 
7502
    *)
7503
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7504
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7505
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7506
      else
7507
        ld_shlibs=no
7508
      fi
7509
      ;;
7510
    esac
7511
 
7512
    if test "$ld_shlibs" = no; then
7513
      runpath_var=
7514
      hardcode_libdir_flag_spec=
7515
      export_dynamic_flag_spec=
7516
      whole_archive_flag_spec=
7517
    fi
7518
  else
7519
    # PORTME fill in a description of your system's linker (not GNU ld)
7520
    case $host_os in
7521
    aix3*)
7522
      allow_undefined_flag=unsupported
7523
      always_export_symbols=yes
7524
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7525
      # Note: this linker hardcodes the directories in LIBPATH if there
7526
      # are no directories specified by -L.
7527
      hardcode_minus_L=yes
7528
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7529
        # Neither direct hardcoding nor static linking is supported with a
7530
        # broken collect2.
7531
        hardcode_direct=unsupported
7532
      fi
7533
      ;;
7534
 
7535
    aix[4-9]*)
7536
      if test "$host_cpu" = ia64; then
7537
        # On IA64, the linker does run time linking by default, so we don't
7538
        # have to do anything special.
7539
        aix_use_runtimelinking=no
7540
        exp_sym_flag='-Bexport'
7541
        no_entry_flag=""
7542
      else
7543
        # If we're using GNU nm, then we don't want the "-C" option.
7544
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7545
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7546
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7547
        else
7548
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7549
        fi
7550
        aix_use_runtimelinking=no
7551
 
7552
        # Test if we are trying to use run time linking or normal
7553
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7554
        # need to do runtime linking.
7555
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7556
          for ld_flag in $LDFLAGS; do
7557
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7558
            aix_use_runtimelinking=yes
7559
            break
7560
          fi
7561
          done
7562
          ;;
7563
        esac
7564
 
7565
        exp_sym_flag='-bexport'
7566
        no_entry_flag='-bnoentry'
7567
      fi
7568
 
7569
      # When large executables or shared objects are built, AIX ld can
7570
      # have problems creating the table of contents.  If linking a library
7571
      # or program results in "error TOC overflow" add -mminimal-toc to
7572
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7573
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7574
 
7575
      archive_cmds=''
7576
      hardcode_direct=yes
7577
      hardcode_direct_absolute=yes
7578
      hardcode_libdir_separator=':'
7579
      link_all_deplibs=yes
7580
      file_list_spec='${wl}-f,'
7581
 
7582
      if test "$GCC" = yes; then
7583
        case $host_os in aix4.[012]|aix4.[012].*)
7584
        # We only want to do this on AIX 4.2 and lower, the check
7585
        # below for broken collect2 doesn't work under 4.3+
7586
          collect2name=`${CC} -print-prog-name=collect2`
7587
          if test -f "$collect2name" &&
7588
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7589
          then
7590
          # We have reworked collect2
7591
          :
7592
          else
7593
          # We have old collect2
7594
          hardcode_direct=unsupported
7595
          # It fails to find uninstalled libraries when the uninstalled
7596
          # path is not listed in the libpath.  Setting hardcode_minus_L
7597
          # to unsupported forces relinking
7598
          hardcode_minus_L=yes
7599
          hardcode_libdir_flag_spec='-L$libdir'
7600
          hardcode_libdir_separator=
7601
          fi
7602
          ;;
7603
        esac
7604
        shared_flag='-shared'
7605
        if test "$aix_use_runtimelinking" = yes; then
7606
          shared_flag="$shared_flag "'${wl}-G'
7607
        fi
7608 93 jeremybenn
        link_all_deplibs=no
7609 90 jeremybenn
      else
7610
        # not using gcc
7611
        if test "$host_cpu" = ia64; then
7612
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7613
        # chokes on -Wl,-G. The following line is correct:
7614
          shared_flag='-G'
7615
        else
7616
          if test "$aix_use_runtimelinking" = yes; then
7617
            shared_flag='${wl}-G'
7618
          else
7619
            shared_flag='${wl}-bM:SRE'
7620
          fi
7621
        fi
7622
      fi
7623
 
7624
      export_dynamic_flag_spec='${wl}-bexpall'
7625
      # It seems that -bexpall does not export symbols beginning with
7626
      # underscore (_), so it is better to generate a list of symbols to export.
7627
      always_export_symbols=yes
7628
      if test "$aix_use_runtimelinking" = yes; then
7629
        # Warning - without using the other runtime loading flags (-brtl),
7630
        # -berok will link without error, but may produce a broken library.
7631
        allow_undefined_flag='-berok'
7632
        # Determine the default libpath from the value encoded in an
7633
        # empty executable.
7634 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 90 jeremybenn
/* end confdefs.h.  */
7636
 
7637
int
7638
main ()
7639
{
7640
 
7641
  ;
7642
  return 0;
7643
}
7644
_ACEOF
7645 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7646 90 jeremybenn
 
7647
lt_aix_libpath_sed='
7648
    /Import File Strings/,/^$/ {
7649
        /^0/ {
7650
            s/^0  *\(.*\)$/\1/
7651
            p
7652
        }
7653
    }'
7654
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7655
# Check for a 64-bit object if we didn't find anything.
7656
if test -z "$aix_libpath"; then
7657
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7658
fi
7659
fi
7660 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7661
    conftest$ac_exeext conftest.$ac_ext
7662 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7663
 
7664
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7665
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7666
      else
7667
        if test "$host_cpu" = ia64; then
7668
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7669
          allow_undefined_flag="-z nodefs"
7670
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7671
        else
7672
         # Determine the default libpath from the value encoded in an
7673
         # empty executable.
7674 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 90 jeremybenn
/* end confdefs.h.  */
7676
 
7677
int
7678
main ()
7679
{
7680
 
7681
  ;
7682
  return 0;
7683
}
7684
_ACEOF
7685 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7686 90 jeremybenn
 
7687
lt_aix_libpath_sed='
7688
    /Import File Strings/,/^$/ {
7689
        /^0/ {
7690
            s/^0  *\(.*\)$/\1/
7691
            p
7692
        }
7693
    }'
7694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7695
# Check for a 64-bit object if we didn't find anything.
7696
if test -z "$aix_libpath"; then
7697
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7698
fi
7699
fi
7700 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7701
    conftest$ac_exeext conftest.$ac_ext
7702 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7703
 
7704
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7705
          # Warning - without using the other run time loading flags,
7706
          # -berok will link without error, but may produce a broken library.
7707
          no_undefined_flag=' ${wl}-bernotok'
7708
          allow_undefined_flag=' ${wl}-berok'
7709
          # Exported symbols can be pulled into shared objects from archives
7710
          whole_archive_flag_spec='$convenience'
7711
          archive_cmds_need_lc=yes
7712
          # This is similar to how AIX traditionally builds its shared libraries.
7713
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7714
        fi
7715
      fi
7716
      ;;
7717
 
7718
    amigaos*)
7719
      case $host_cpu in
7720
      powerpc)
7721
            # see comment about AmigaOS4 .so support
7722
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723
            archive_expsym_cmds=''
7724
        ;;
7725
      m68k)
7726
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7727
            hardcode_libdir_flag_spec='-L$libdir'
7728
            hardcode_minus_L=yes
7729
        ;;
7730
      esac
7731
      ;;
7732
 
7733
    bsdi[45]*)
7734
      export_dynamic_flag_spec=-rdynamic
7735
      ;;
7736
 
7737
    cygwin* | mingw* | pw32* | cegcc*)
7738
      # When not using gcc, we currently assume that we are using
7739
      # Microsoft Visual C++.
7740
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7741
      # no search path for DLLs.
7742
      hardcode_libdir_flag_spec=' '
7743
      allow_undefined_flag=unsupported
7744
      # Tell ltmain to make .lib files, not .a files.
7745
      libext=lib
7746
      # Tell ltmain to make .dll files, not .so files.
7747
      shrext_cmds=".dll"
7748
      # FIXME: Setting linknames here is a bad hack.
7749
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7750
      # The linker will automatically build a .lib file if we build a DLL.
7751
      old_archive_from_new_cmds='true'
7752
      # FIXME: Should let the user specify the lib program.
7753
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7754
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7755
      enable_shared_with_static_runtimes=yes
7756
      ;;
7757
 
7758
    darwin* | rhapsody*)
7759
 
7760
 
7761
  archive_cmds_need_lc=no
7762
  hardcode_direct=no
7763
  hardcode_automatic=yes
7764
  hardcode_shlibpath_var=unsupported
7765
  whole_archive_flag_spec=''
7766
  link_all_deplibs=yes
7767
  allow_undefined_flag="$_lt_dar_allow_undefined"
7768
  case $cc_basename in
7769
     ifort*) _lt_dar_can_shared=yes ;;
7770
     *) _lt_dar_can_shared=$GCC ;;
7771
  esac
7772
  if test "$_lt_dar_can_shared" = "yes"; then
7773
    output_verbose_link_cmd=echo
7774
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7775
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7776
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7777
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7778
 
7779
  else
7780
  ld_shlibs=no
7781
  fi
7782
 
7783
      ;;
7784
 
7785
    dgux*)
7786
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7787
      hardcode_libdir_flag_spec='-L$libdir'
7788
      hardcode_shlibpath_var=no
7789
      ;;
7790
 
7791
    freebsd1*)
7792
      ld_shlibs=no
7793
      ;;
7794
 
7795
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7796
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7797
    # does not break anything, and helps significantly (at the cost of a little
7798
    # extra space).
7799
    freebsd2.2*)
7800
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7801
      hardcode_libdir_flag_spec='-R$libdir'
7802
      hardcode_direct=yes
7803
      hardcode_shlibpath_var=no
7804
      ;;
7805
 
7806
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7807
    freebsd2*)
7808
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7809
      hardcode_direct=yes
7810
      hardcode_minus_L=yes
7811
      hardcode_shlibpath_var=no
7812
      ;;
7813
 
7814
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7815
    freebsd* | dragonfly*)
7816
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7817
      hardcode_libdir_flag_spec='-R$libdir'
7818
      hardcode_direct=yes
7819
      hardcode_shlibpath_var=no
7820
      ;;
7821
 
7822
    hpux9*)
7823
      if test "$GCC" = yes; then
7824
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7825
      else
7826
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7827
      fi
7828
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7829
      hardcode_libdir_separator=:
7830
      hardcode_direct=yes
7831
 
7832
      # hardcode_minus_L: Not really in the search PATH,
7833
      # but as the default location of the library.
7834
      hardcode_minus_L=yes
7835
      export_dynamic_flag_spec='${wl}-E'
7836
      ;;
7837
 
7838
    hpux10*)
7839
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7840
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7841
      else
7842
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7843
      fi
7844
      if test "$with_gnu_ld" = no; then
7845
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7846
        hardcode_libdir_flag_spec_ld='+b $libdir'
7847
        hardcode_libdir_separator=:
7848
        hardcode_direct=yes
7849
        hardcode_direct_absolute=yes
7850
        export_dynamic_flag_spec='${wl}-E'
7851
        # hardcode_minus_L: Not really in the search PATH,
7852
        # but as the default location of the library.
7853
        hardcode_minus_L=yes
7854
      fi
7855
      ;;
7856
 
7857
    hpux11*)
7858
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7859
        case $host_cpu in
7860
        hppa*64*)
7861
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7862
          ;;
7863
        ia64*)
7864
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7865
          ;;
7866
        *)
7867
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7868
          ;;
7869
        esac
7870
      else
7871
        case $host_cpu in
7872
        hppa*64*)
7873
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7874
          ;;
7875
        ia64*)
7876
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7877
          ;;
7878
        *)
7879
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7880
          ;;
7881
        esac
7882
      fi
7883
      if test "$with_gnu_ld" = no; then
7884
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7885
        hardcode_libdir_separator=:
7886
 
7887
        case $host_cpu in
7888
        hppa*64*|ia64*)
7889
          hardcode_direct=no
7890
          hardcode_shlibpath_var=no
7891
          ;;
7892
        *)
7893
          hardcode_direct=yes
7894
          hardcode_direct_absolute=yes
7895
          export_dynamic_flag_spec='${wl}-E'
7896
 
7897
          # hardcode_minus_L: Not really in the search PATH,
7898
          # but as the default location of the library.
7899
          hardcode_minus_L=yes
7900
          ;;
7901
        esac
7902
      fi
7903
      ;;
7904
 
7905
    irix5* | irix6* | nonstopux*)
7906
      if test "$GCC" = yes; then
7907
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7908
        # Try to use the -exported_symbol ld option, if it does not
7909
        # work, assume that -exports_file does not work either and
7910
        # implicitly export all symbols.
7911
        save_LDFLAGS="$LDFLAGS"
7912
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7913 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914
/* end confdefs.h.  */
7915 90 jeremybenn
int foo(void) {}
7916
_ACEOF
7917 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7918 90 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7919
 
7920
fi
7921 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7922
    conftest$ac_exeext conftest.$ac_ext
7923 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
7924
      else
7925
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7926
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7927
      fi
7928
      archive_cmds_need_lc='no'
7929
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7930
      hardcode_libdir_separator=:
7931
      inherit_rpath=yes
7932
      link_all_deplibs=yes
7933
      ;;
7934
 
7935 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7936 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7937
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7938
      else
7939
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7940
      fi
7941
      hardcode_libdir_flag_spec='-R$libdir'
7942
      hardcode_direct=yes
7943
      hardcode_shlibpath_var=no
7944
      ;;
7945
 
7946
    newsos6)
7947
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948
      hardcode_direct=yes
7949
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7950
      hardcode_libdir_separator=:
7951
      hardcode_shlibpath_var=no
7952
      ;;
7953
 
7954
    *nto* | *qnx*)
7955
      ;;
7956
 
7957
    openbsd*)
7958
      if test -f /usr/libexec/ld.so; then
7959
        hardcode_direct=yes
7960
        hardcode_shlibpath_var=no
7961
        hardcode_direct_absolute=yes
7962
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7963
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7964
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7965
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966
          export_dynamic_flag_spec='${wl}-E'
7967
        else
7968
          case $host_os in
7969
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7970
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7971
             hardcode_libdir_flag_spec='-R$libdir'
7972
             ;;
7973
           *)
7974
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7975
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976
             ;;
7977
          esac
7978
        fi
7979
      else
7980
        ld_shlibs=no
7981
      fi
7982
      ;;
7983
 
7984
    os2*)
7985
      hardcode_libdir_flag_spec='-L$libdir'
7986
      hardcode_minus_L=yes
7987
      allow_undefined_flag=unsupported
7988
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7989
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7990
      ;;
7991
 
7992
    osf3*)
7993
      if test "$GCC" = yes; then
7994
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7995
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7996
      else
7997
        allow_undefined_flag=' -expect_unresolved \*'
7998
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7999
      fi
8000
      archive_cmds_need_lc='no'
8001
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002
      hardcode_libdir_separator=:
8003
      ;;
8004
 
8005
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8006
      if test "$GCC" = yes; then
8007
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8008
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8009
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8010
      else
8011
        allow_undefined_flag=' -expect_unresolved \*'
8012
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8013
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8014
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8015
 
8016
        # Both c and cxx compiler support -rpath directly
8017
        hardcode_libdir_flag_spec='-rpath $libdir'
8018
      fi
8019
      archive_cmds_need_lc='no'
8020
      hardcode_libdir_separator=:
8021
      ;;
8022
 
8023
    solaris*)
8024
      no_undefined_flag=' -z defs'
8025
      if test "$GCC" = yes; then
8026
        wlarc='${wl}'
8027
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8028
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8029
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8030
      else
8031
        case `$CC -V 2>&1` in
8032
        *"Compilers 5.0"*)
8033
          wlarc=''
8034
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8035
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8036
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8037
          ;;
8038
        *)
8039
          wlarc='${wl}'
8040
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8041
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8042
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8043
          ;;
8044
        esac
8045
      fi
8046
      hardcode_libdir_flag_spec='-R$libdir'
8047
      hardcode_shlibpath_var=no
8048
      case $host_os in
8049
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8050
      *)
8051
        # The compiler driver will combine and reorder linker options,
8052
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8053
        # but is careful enough not to reorder.
8054
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8055
        if test "$GCC" = yes; then
8056
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8057
        else
8058
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8059
        fi
8060
        ;;
8061
      esac
8062
      link_all_deplibs=yes
8063
      ;;
8064
 
8065
    sunos4*)
8066
      if test "x$host_vendor" = xsequent; then
8067
        # Use $CC to link under sequent, because it throws in some extra .o
8068
        # files that make .init and .fini sections work.
8069
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8070
      else
8071
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8072
      fi
8073
      hardcode_libdir_flag_spec='-L$libdir'
8074
      hardcode_direct=yes
8075
      hardcode_minus_L=yes
8076
      hardcode_shlibpath_var=no
8077
      ;;
8078
 
8079
    sysv4)
8080
      case $host_vendor in
8081
        sni)
8082
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083
          hardcode_direct=yes # is this really true???
8084
        ;;
8085
        siemens)
8086
          ## LD is ld it makes a PLAMLIB
8087
          ## CC just makes a GrossModule.
8088
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8089
          reload_cmds='$CC -r -o $output$reload_objs'
8090
          hardcode_direct=no
8091
        ;;
8092
        motorola)
8093
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8094
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8095
        ;;
8096
      esac
8097
      runpath_var='LD_RUN_PATH'
8098
      hardcode_shlibpath_var=no
8099
      ;;
8100
 
8101
    sysv4.3*)
8102
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103
      hardcode_shlibpath_var=no
8104
      export_dynamic_flag_spec='-Bexport'
8105
      ;;
8106
 
8107
    sysv4*MP*)
8108
      if test -d /usr/nec; then
8109
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110
        hardcode_shlibpath_var=no
8111
        runpath_var=LD_RUN_PATH
8112
        hardcode_runpath_var=yes
8113
        ld_shlibs=yes
8114
      fi
8115
      ;;
8116
 
8117
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8118
      no_undefined_flag='${wl}-z,text'
8119
      archive_cmds_need_lc=no
8120
      hardcode_shlibpath_var=no
8121
      runpath_var='LD_RUN_PATH'
8122
 
8123
      if test "$GCC" = yes; then
8124
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8125
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8126
      else
8127
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8128
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8129
      fi
8130
      ;;
8131
 
8132
    sysv5* | sco3.2v5* | sco5v6*)
8133
      # Note: We can NOT use -z defs as we might desire, because we do not
8134
      # link with -lc, and that would cause any symbols used from libc to
8135
      # always be unresolved, which means just about no library would
8136
      # ever link correctly.  If we're not using GNU ld we use -z text
8137
      # though, which does catch some bad symbols but isn't as heavy-handed
8138
      # as -z defs.
8139
      no_undefined_flag='${wl}-z,text'
8140
      allow_undefined_flag='${wl}-z,nodefs'
8141
      archive_cmds_need_lc=no
8142
      hardcode_shlibpath_var=no
8143
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8144
      hardcode_libdir_separator=':'
8145
      link_all_deplibs=yes
8146
      export_dynamic_flag_spec='${wl}-Bexport'
8147
      runpath_var='LD_RUN_PATH'
8148
 
8149
      if test "$GCC" = yes; then
8150
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8151
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152
      else
8153
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155
      fi
8156
      ;;
8157
 
8158
    uts4*)
8159
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160
      hardcode_libdir_flag_spec='-L$libdir'
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    *)
8165
      ld_shlibs=no
8166
      ;;
8167
    esac
8168
 
8169
    if test x$host_vendor = xsni; then
8170
      case $host in
8171
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8172
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8173
        ;;
8174
      esac
8175
    fi
8176
  fi
8177
 
8178 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8179 90 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8180
test "$ld_shlibs" = no && can_build_shared=no
8181
 
8182
with_gnu_ld=$with_gnu_ld
8183
 
8184
 
8185
 
8186
 
8187
 
8188
 
8189
 
8190
 
8191
 
8192
 
8193
 
8194
 
8195
 
8196
 
8197
 
8198
#
8199
# Do we need to explicitly link libc?
8200
#
8201
case "x$archive_cmds_need_lc" in
8202
x|xyes)
8203
  # Assume -lc should be added
8204
  archive_cmds_need_lc=yes
8205
 
8206
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8207
    case $archive_cmds in
8208
    *'~'*)
8209
      # FIXME: we may have to deal with multi-command sequences.
8210
      ;;
8211
    '$CC '*)
8212
      # Test whether the compiler implicitly links with -lc since on some
8213
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8214
      # to ld, don't add -lc before -lgcc.
8215 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8216 90 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8217
      $RM conftest*
8218
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219
 
8220 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8221 90 jeremybenn
  (eval $ac_compile) 2>&5
8222
  ac_status=$?
8223 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8224
  test $ac_status = 0; } 2>conftest.err; then
8225 90 jeremybenn
        soname=conftest
8226
        lib=conftest
8227
        libobjs=conftest.$ac_objext
8228
        deplibs=
8229
        wl=$lt_prog_compiler_wl
8230
        pic_flag=$lt_prog_compiler_pic
8231
        compiler_flags=-v
8232
        linker_flags=-v
8233
        verstring=
8234
        output_objdir=.
8235
        libname=conftest
8236
        lt_save_allow_undefined_flag=$allow_undefined_flag
8237
        allow_undefined_flag=
8238 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8239 90 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8240
  ac_status=$?
8241 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242
  test $ac_status = 0; }
8243 90 jeremybenn
        then
8244
          archive_cmds_need_lc=no
8245
        else
8246
          archive_cmds_need_lc=yes
8247
        fi
8248
        allow_undefined_flag=$lt_save_allow_undefined_flag
8249
      else
8250
        cat conftest.err 1>&5
8251
      fi
8252
      $RM conftest*
8253 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8254 90 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8255
      ;;
8256
    esac
8257
  fi
8258
  ;;
8259
esac
8260
 
8261
 
8262
 
8263
 
8264
 
8265
 
8266
 
8267
 
8268
 
8269
 
8270
 
8271
 
8272
 
8273
 
8274
 
8275
 
8276
 
8277
 
8278
 
8279
 
8280
 
8281
 
8282
 
8283
 
8284
 
8285
 
8286
 
8287
 
8288
 
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
 
8296
 
8297
 
8298
 
8299
 
8300
 
8301
 
8302
 
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
 
8310
 
8311
 
8312
 
8313
 
8314
 
8315
 
8316
 
8317
 
8318
 
8319
 
8320
 
8321
 
8322
 
8323
 
8324
 
8325
 
8326
 
8327
 
8328
 
8329
 
8330
 
8331
 
8332
 
8333
 
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
 
8355
 
8356
 
8357
 
8358
 
8359
 
8360
 
8361
 
8362
 
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373
 
8374
 
8375
 
8376
 
8377
 
8378
 
8379
 
8380
 
8381
 
8382
 
8383
 
8384
 
8385
 
8386
 
8387
 
8388
 
8389
 
8390
 
8391
 
8392
 
8393
 
8394
 
8395
 
8396
 
8397
 
8398
 
8399
 
8400
 
8401
 
8402
 
8403
 
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
 
8411
 
8412
 
8413
 
8414
 
8415
 
8416
 
8417 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8418 90 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8419
 
8420
if test "$GCC" = yes; then
8421
  case $host_os in
8422
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8423
    *) lt_awk_arg="/^libraries:/" ;;
8424
  esac
8425
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8426
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8427
    # if the path contains ";" then we assume it to be the separator
8428
    # otherwise default to the standard path separator (i.e. ":") - it is
8429
    # assumed that no part of a normal pathname contains ";" but that should
8430
    # okay in the real world where ";" in dirpaths is itself problematic.
8431
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8432
  else
8433
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8434
  fi
8435
  # Ok, now we have the path, separated by spaces, we can step through it
8436
  # and add multilib dir if necessary.
8437
  lt_tmp_lt_search_path_spec=
8438
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8439
  for lt_sys_path in $lt_search_path_spec; do
8440
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8441
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8442
    else
8443
      test -d "$lt_sys_path" && \
8444
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8445
    fi
8446
  done
8447
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8448
BEGIN {RS=" "; FS="/|\n";} {
8449
  lt_foo="";
8450
  lt_count=0;
8451
  for (lt_i = NF; lt_i > 0; lt_i--) {
8452
    if ($lt_i != "" && $lt_i != ".") {
8453
      if ($lt_i == "..") {
8454
        lt_count++;
8455
      } else {
8456
        if (lt_count == 0) {
8457
          lt_foo="/" $lt_i lt_foo;
8458
        } else {
8459
          lt_count--;
8460
        }
8461
      }
8462
    }
8463
  }
8464
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8465
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8466
}'`
8467
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8468
else
8469
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8470
fi
8471
library_names_spec=
8472
libname_spec='lib$name'
8473
soname_spec=
8474
shrext_cmds=".so"
8475
postinstall_cmds=
8476
postuninstall_cmds=
8477
finish_cmds=
8478
finish_eval=
8479
shlibpath_var=
8480
shlibpath_overrides_runpath=unknown
8481
version_type=none
8482
dynamic_linker="$host_os ld.so"
8483
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8484
need_lib_prefix=unknown
8485
hardcode_into_libs=no
8486
 
8487
# when you set need_version to no, make sure it does not cause -set_version
8488
# flags to be left without arguments
8489
need_version=unknown
8490
 
8491
case $host_os in
8492
aix3*)
8493
  version_type=linux
8494
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495
  shlibpath_var=LIBPATH
8496
 
8497
  # AIX 3 has no versioning support, so we append a major version to the name.
8498
  soname_spec='${libname}${release}${shared_ext}$major'
8499
  ;;
8500
 
8501
aix[4-9]*)
8502
  version_type=linux
8503
  need_lib_prefix=no
8504
  need_version=no
8505
  hardcode_into_libs=yes
8506
  if test "$host_cpu" = ia64; then
8507
    # AIX 5 supports IA64
8508
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509
    shlibpath_var=LD_LIBRARY_PATH
8510
  else
8511
    # With GCC up to 2.95.x, collect2 would create an import file
8512
    # for dependence libraries.  The import file would start with
8513
    # the line `#! .'.  This would cause the generated library to
8514
    # depend on `.', always an invalid library.  This was fixed in
8515
    # development snapshots of GCC prior to 3.0.
8516
    case $host_os in
8517
      aix4 | aix4.[01] | aix4.[01].*)
8518
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8519
           echo ' yes '
8520
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8521
        :
8522
      else
8523
        can_build_shared=no
8524
      fi
8525
      ;;
8526
    esac
8527
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528
    # soname into executable. Probably we can add versioning support to
8529
    # collect2, so additional links can be useful in future.
8530
    if test "$aix_use_runtimelinking" = yes; then
8531
      # If using run time linking (on AIX 4.2 or later) use lib.so
8532
      # instead of lib.a to let people know that these are not
8533
      # typical AIX shared libraries.
8534
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535
    else
8536
      # We preserve .a as extension for shared libraries through AIX4.2
8537
      # and later when we are not doing run time linking.
8538
      library_names_spec='${libname}${release}.a $libname.a'
8539
      soname_spec='${libname}${release}${shared_ext}$major'
8540
    fi
8541
    shlibpath_var=LIBPATH
8542
  fi
8543
  ;;
8544
 
8545
amigaos*)
8546
  case $host_cpu in
8547
  powerpc)
8548
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8549
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8550
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8551
    ;;
8552
  m68k)
8553
    library_names_spec='$libname.ixlibrary $libname.a'
8554
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8555
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8556
    ;;
8557
  esac
8558
  ;;
8559
 
8560
beos*)
8561
  library_names_spec='${libname}${shared_ext}'
8562
  dynamic_linker="$host_os ld.so"
8563
  shlibpath_var=LIBRARY_PATH
8564
  ;;
8565
 
8566
bsdi[45]*)
8567
  version_type=linux
8568
  need_version=no
8569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8570
  soname_spec='${libname}${release}${shared_ext}$major'
8571
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8572
  shlibpath_var=LD_LIBRARY_PATH
8573
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8574
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8575
  # the default ld.so.conf also contains /usr/contrib/lib and
8576
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8577
  # libtool to hard-code these into programs
8578
  ;;
8579
 
8580
cygwin* | mingw* | pw32* | cegcc*)
8581
  version_type=windows
8582
  shrext_cmds=".dll"
8583
  need_version=no
8584
  need_lib_prefix=no
8585
 
8586
  case $GCC,$host_os in
8587
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8588
    library_names_spec='$libname.dll.a'
8589
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8590
    postinstall_cmds='base_file=`basename \${file}`~
8591
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8592
      dldir=$destdir/`dirname \$dlpath`~
8593
      test -d \$dldir || mkdir -p \$dldir~
8594
      $install_prog $dir/$dlname \$dldir/$dlname~
8595
      chmod a+x \$dldir/$dlname~
8596
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8597
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8598
      fi'
8599
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8600
      dlpath=$dir/\$dldll~
8601
       $RM \$dlpath'
8602
    shlibpath_overrides_runpath=yes
8603
 
8604
    case $host_os in
8605
    cygwin*)
8606
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8607
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8608
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8609
      ;;
8610
    mingw* | cegcc*)
8611
      # MinGW DLLs use traditional 'lib' prefix
8612
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8613
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8614
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8615
        # It is most probably a Windows format PATH printed by
8616
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8617
        # path with ; separators, and with drive letters. We can handle the
8618
        # drive letters (cygwin fileutils understands them), so leave them,
8619
        # especially as we might pass files found there to a mingw objdump,
8620
        # which wouldn't understand a cygwinified path. Ahh.
8621
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8622
      else
8623
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8624
      fi
8625
      ;;
8626
    pw32*)
8627
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8628
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629
      ;;
8630
    esac
8631
    ;;
8632
 
8633
  *)
8634
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8635
    ;;
8636
  esac
8637
  dynamic_linker='Win32 ld.exe'
8638
  # FIXME: first we should search . and the directory the executable is in
8639
  shlibpath_var=PATH
8640
  ;;
8641
 
8642
darwin* | rhapsody*)
8643
  dynamic_linker="$host_os dyld"
8644
  version_type=darwin
8645
  need_lib_prefix=no
8646
  need_version=no
8647
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8648
  soname_spec='${libname}${release}${major}$shared_ext'
8649
  shlibpath_overrides_runpath=yes
8650
  shlibpath_var=DYLD_LIBRARY_PATH
8651
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8652
 
8653
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8654
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8655
  ;;
8656
 
8657
dgux*)
8658
  version_type=linux
8659
  need_lib_prefix=no
8660
  need_version=no
8661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8662
  soname_spec='${libname}${release}${shared_ext}$major'
8663
  shlibpath_var=LD_LIBRARY_PATH
8664
  ;;
8665
 
8666
freebsd1*)
8667
  dynamic_linker=no
8668
  ;;
8669
 
8670
freebsd* | dragonfly*)
8671
  # DragonFly does not have aout.  When/if they implement a new
8672
  # versioning mechanism, adjust this.
8673
  if test -x /usr/bin/objformat; then
8674
    objformat=`/usr/bin/objformat`
8675
  else
8676
    case $host_os in
8677
    freebsd[123]*) objformat=aout ;;
8678
    *) objformat=elf ;;
8679
    esac
8680
  fi
8681
  version_type=freebsd-$objformat
8682
  case $version_type in
8683
    freebsd-elf*)
8684
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8685
      need_version=no
8686
      need_lib_prefix=no
8687
      ;;
8688
    freebsd-*)
8689
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8690
      need_version=yes
8691
      ;;
8692
  esac
8693
  shlibpath_var=LD_LIBRARY_PATH
8694
  case $host_os in
8695
  freebsd2*)
8696
    shlibpath_overrides_runpath=yes
8697
    ;;
8698
  freebsd3.[01]* | freebsdelf3.[01]*)
8699
    shlibpath_overrides_runpath=yes
8700
    hardcode_into_libs=yes
8701
    ;;
8702
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8703
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8704
    shlibpath_overrides_runpath=no
8705
    hardcode_into_libs=yes
8706
    ;;
8707
  *) # from 4.6 on, and DragonFly
8708
    shlibpath_overrides_runpath=yes
8709
    hardcode_into_libs=yes
8710
    ;;
8711
  esac
8712
  ;;
8713
 
8714
gnu*)
8715
  version_type=linux
8716
  need_lib_prefix=no
8717
  need_version=no
8718
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8719
  soname_spec='${libname}${release}${shared_ext}$major'
8720
  shlibpath_var=LD_LIBRARY_PATH
8721
  hardcode_into_libs=yes
8722
  ;;
8723
 
8724
hpux9* | hpux10* | hpux11*)
8725
  # Give a soname corresponding to the major version so that dld.sl refuses to
8726
  # link against other versions.
8727
  version_type=sunos
8728
  need_lib_prefix=no
8729
  need_version=no
8730
  case $host_cpu in
8731
  ia64*)
8732
    shrext_cmds='.so'
8733
    hardcode_into_libs=yes
8734
    dynamic_linker="$host_os dld.so"
8735
    shlibpath_var=LD_LIBRARY_PATH
8736
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8737
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8738
    soname_spec='${libname}${release}${shared_ext}$major'
8739
    if test "X$HPUX_IA64_MODE" = X32; then
8740
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8741
    else
8742
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8743
    fi
8744
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8745
    ;;
8746
  hppa*64*)
8747
    shrext_cmds='.sl'
8748
    hardcode_into_libs=yes
8749
    dynamic_linker="$host_os dld.sl"
8750
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8751
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8752
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753
    soname_spec='${libname}${release}${shared_ext}$major'
8754
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8755
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8756
    ;;
8757
  *)
8758
    shrext_cmds='.sl'
8759
    dynamic_linker="$host_os dld.sl"
8760
    shlibpath_var=SHLIB_PATH
8761
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8762
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763
    soname_spec='${libname}${release}${shared_ext}$major'
8764
    ;;
8765
  esac
8766
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8767
  postinstall_cmds='chmod 555 $lib'
8768
  ;;
8769
 
8770
interix[3-9]*)
8771
  version_type=linux
8772
  need_lib_prefix=no
8773
  need_version=no
8774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775
  soname_spec='${libname}${release}${shared_ext}$major'
8776
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8777
  shlibpath_var=LD_LIBRARY_PATH
8778
  shlibpath_overrides_runpath=no
8779
  hardcode_into_libs=yes
8780
  ;;
8781
 
8782
irix5* | irix6* | nonstopux*)
8783
  case $host_os in
8784
    nonstopux*) version_type=nonstopux ;;
8785
    *)
8786
        if test "$lt_cv_prog_gnu_ld" = yes; then
8787
                version_type=linux
8788
        else
8789
                version_type=irix
8790
        fi ;;
8791
  esac
8792
  need_lib_prefix=no
8793
  need_version=no
8794
  soname_spec='${libname}${release}${shared_ext}$major'
8795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8796
  case $host_os in
8797
  irix5* | nonstopux*)
8798
    libsuff= shlibsuff=
8799
    ;;
8800
  *)
8801
    case $LD in # libtool.m4 will add one of these switches to LD
8802
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8803
      libsuff= shlibsuff= libmagic=32-bit;;
8804
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8805
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8806
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8807
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8808
    *) libsuff= shlibsuff= libmagic=never-match;;
8809
    esac
8810
    ;;
8811
  esac
8812
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8813
  shlibpath_overrides_runpath=no
8814
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8815
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8816
  hardcode_into_libs=yes
8817
  ;;
8818
 
8819
# No shared lib support for Linux oldld, aout, or coff.
8820
linux*oldld* | linux*aout* | linux*coff*)
8821
  dynamic_linker=no
8822
  ;;
8823
 
8824
# This must be Linux ELF.
8825
linux* | k*bsd*-gnu)
8826
  version_type=linux
8827
  need_lib_prefix=no
8828
  need_version=no
8829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830
  soname_spec='${libname}${release}${shared_ext}$major'
8831
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8832
  shlibpath_var=LD_LIBRARY_PATH
8833
  shlibpath_overrides_runpath=no
8834
  # Some binutils ld are patched to set DT_RUNPATH
8835
  save_LDFLAGS=$LDFLAGS
8836
  save_libdir=$libdir
8837
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8838
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8839 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 90 jeremybenn
/* end confdefs.h.  */
8841
 
8842
int
8843
main ()
8844
{
8845
 
8846
  ;
8847
  return 0;
8848
}
8849
_ACEOF
8850 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8851
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8852 90 jeremybenn
  shlibpath_overrides_runpath=yes
8853
fi
8854
fi
8855 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8856
    conftest$ac_exeext conftest.$ac_ext
8857 90 jeremybenn
  LDFLAGS=$save_LDFLAGS
8858
  libdir=$save_libdir
8859
 
8860
  # This implies no fast_install, which is unacceptable.
8861
  # Some rework will be needed to allow for fast_install
8862
  # before this can be enabled.
8863
  hardcode_into_libs=yes
8864
 
8865
  # Append ld.so.conf contents to the search path
8866
  if test -f /etc/ld.so.conf; then
8867
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8868 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8869 90 jeremybenn
  fi
8870
 
8871
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8872
  # powerpc, because MkLinux only supported shared libraries with the
8873
  # GNU dynamic linker.  Since this was broken with cross compilers,
8874
  # most powerpc-linux boxes support dynamic linking these days and
8875
  # people can always --disable-shared, the test was removed, and we
8876
  # assume the GNU/Linux dynamic linker is in use.
8877
  dynamic_linker='GNU/Linux ld.so'
8878
  ;;
8879
 
8880 93 jeremybenn
netbsdelf*-gnu)
8881
  version_type=linux
8882
  need_lib_prefix=no
8883
  need_version=no
8884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885
  soname_spec='${libname}${release}${shared_ext}$major'
8886
  shlibpath_var=LD_LIBRARY_PATH
8887
  shlibpath_overrides_runpath=no
8888
  hardcode_into_libs=yes
8889
  dynamic_linker='NetBSD ld.elf_so'
8890
  ;;
8891
 
8892 90 jeremybenn
netbsd*)
8893
  version_type=sunos
8894
  need_lib_prefix=no
8895
  need_version=no
8896
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8897
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8898
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8899
    dynamic_linker='NetBSD (a.out) ld.so'
8900
  else
8901
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8902
    soname_spec='${libname}${release}${shared_ext}$major'
8903
    dynamic_linker='NetBSD ld.elf_so'
8904
  fi
8905
  shlibpath_var=LD_LIBRARY_PATH
8906
  shlibpath_overrides_runpath=yes
8907
  hardcode_into_libs=yes
8908
  ;;
8909
 
8910
newsos6)
8911
  version_type=linux
8912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913
  shlibpath_var=LD_LIBRARY_PATH
8914
  shlibpath_overrides_runpath=yes
8915
  ;;
8916
 
8917
*nto* | *qnx*)
8918
  version_type=qnx
8919
  need_lib_prefix=no
8920
  need_version=no
8921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922
  soname_spec='${libname}${release}${shared_ext}$major'
8923
  shlibpath_var=LD_LIBRARY_PATH
8924
  shlibpath_overrides_runpath=no
8925
  hardcode_into_libs=yes
8926
  dynamic_linker='ldqnx.so'
8927
  ;;
8928
 
8929
openbsd*)
8930
  version_type=sunos
8931
  sys_lib_dlsearch_path_spec="/usr/lib"
8932
  need_lib_prefix=no
8933
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8934
  case $host_os in
8935
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8936
    *)                          need_version=no  ;;
8937
  esac
8938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8939
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8940
  shlibpath_var=LD_LIBRARY_PATH
8941
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8942
    case $host_os in
8943
      openbsd2.[89] | openbsd2.[89].*)
8944
        shlibpath_overrides_runpath=no
8945
        ;;
8946
      *)
8947
        shlibpath_overrides_runpath=yes
8948
        ;;
8949
      esac
8950
  else
8951
    shlibpath_overrides_runpath=yes
8952
  fi
8953
  ;;
8954
 
8955
os2*)
8956
  libname_spec='$name'
8957
  shrext_cmds=".dll"
8958
  need_lib_prefix=no
8959
  library_names_spec='$libname${shared_ext} $libname.a'
8960
  dynamic_linker='OS/2 ld.exe'
8961
  shlibpath_var=LIBPATH
8962
  ;;
8963
 
8964
osf3* | osf4* | osf5*)
8965
  version_type=osf
8966
  need_lib_prefix=no
8967
  need_version=no
8968
  soname_spec='${libname}${release}${shared_ext}$major'
8969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970
  shlibpath_var=LD_LIBRARY_PATH
8971
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8972
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8973
  ;;
8974
 
8975
rdos*)
8976
  dynamic_linker=no
8977
  ;;
8978
 
8979
solaris*)
8980
  version_type=linux
8981
  need_lib_prefix=no
8982
  need_version=no
8983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984
  soname_spec='${libname}${release}${shared_ext}$major'
8985
  shlibpath_var=LD_LIBRARY_PATH
8986
  shlibpath_overrides_runpath=yes
8987
  hardcode_into_libs=yes
8988
  # ldd complains unless libraries are executable
8989
  postinstall_cmds='chmod +x $lib'
8990
  ;;
8991
 
8992
sunos4*)
8993
  version_type=sunos
8994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8996
  shlibpath_var=LD_LIBRARY_PATH
8997
  shlibpath_overrides_runpath=yes
8998
  if test "$with_gnu_ld" = yes; then
8999
    need_lib_prefix=no
9000
  fi
9001
  need_version=yes
9002
  ;;
9003
 
9004
sysv4 | sysv4.3*)
9005
  version_type=linux
9006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007
  soname_spec='${libname}${release}${shared_ext}$major'
9008
  shlibpath_var=LD_LIBRARY_PATH
9009
  case $host_vendor in
9010
    sni)
9011
      shlibpath_overrides_runpath=no
9012
      need_lib_prefix=no
9013
      runpath_var=LD_RUN_PATH
9014
      ;;
9015
    siemens)
9016
      need_lib_prefix=no
9017
      ;;
9018
    motorola)
9019
      need_lib_prefix=no
9020
      need_version=no
9021
      shlibpath_overrides_runpath=no
9022
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9023
      ;;
9024
  esac
9025
  ;;
9026
 
9027
sysv4*MP*)
9028
  if test -d /usr/nec ;then
9029
    version_type=linux
9030
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9031
    soname_spec='$libname${shared_ext}.$major'
9032
    shlibpath_var=LD_LIBRARY_PATH
9033
  fi
9034
  ;;
9035
 
9036
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9037
  version_type=freebsd-elf
9038
  need_lib_prefix=no
9039
  need_version=no
9040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9041
  soname_spec='${libname}${release}${shared_ext}$major'
9042
  shlibpath_var=LD_LIBRARY_PATH
9043
  shlibpath_overrides_runpath=yes
9044
  hardcode_into_libs=yes
9045
  if test "$with_gnu_ld" = yes; then
9046
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9047
  else
9048
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9049
    case $host_os in
9050
      sco3.2v5*)
9051
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9052
        ;;
9053
    esac
9054
  fi
9055
  sys_lib_dlsearch_path_spec='/usr/lib'
9056
  ;;
9057
 
9058
tpf*)
9059
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9060
  version_type=linux
9061
  need_lib_prefix=no
9062
  need_version=no
9063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064
  shlibpath_var=LD_LIBRARY_PATH
9065
  shlibpath_overrides_runpath=no
9066
  hardcode_into_libs=yes
9067
  ;;
9068
 
9069
uts4*)
9070
  version_type=linux
9071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072
  soname_spec='${libname}${release}${shared_ext}$major'
9073
  shlibpath_var=LD_LIBRARY_PATH
9074
  ;;
9075
 
9076
*)
9077
  dynamic_linker=no
9078
  ;;
9079
esac
9080 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9081 90 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9082
test "$dynamic_linker" = no && can_build_shared=no
9083
 
9084
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9085
if test "$GCC" = yes; then
9086
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9087
fi
9088
 
9089
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9090
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9091
fi
9092
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9093
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9094
fi
9095
 
9096
 
9097
 
9098
 
9099
 
9100
 
9101
 
9102
 
9103
 
9104
 
9105
 
9106
 
9107
 
9108
 
9109
 
9110
 
9111
 
9112
 
9113
 
9114
 
9115
 
9116
 
9117
 
9118
 
9119
 
9120
 
9121
 
9122
 
9123
 
9124
 
9125
 
9126
 
9127
 
9128
 
9129
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138
 
9139
 
9140
 
9141
 
9142
 
9143
 
9144
 
9145
 
9146
 
9147
 
9148
 
9149
 
9150
 
9151
 
9152
 
9153
 
9154
 
9155
 
9156
 
9157
 
9158
 
9159
 
9160
 
9161
 
9162
 
9163
 
9164
 
9165
 
9166
 
9167
 
9168
 
9169
 
9170
 
9171
 
9172
 
9173
 
9174
 
9175
 
9176
 
9177
 
9178
 
9179
 
9180
 
9181
 
9182 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9183 90 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9184
hardcode_action=
9185
if test -n "$hardcode_libdir_flag_spec" ||
9186
   test -n "$runpath_var" ||
9187
   test "X$hardcode_automatic" = "Xyes" ; then
9188
 
9189
  # We can hardcode non-existent directories.
9190
  if test "$hardcode_direct" != no &&
9191
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9192
     # have to relink, otherwise we might link with an installed library
9193
     # when we should be linking with a yet-to-be-installed one
9194
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9195
     test "$hardcode_minus_L" != no; then
9196
    # Linking always hardcodes the temporary library directory.
9197
    hardcode_action=relink
9198
  else
9199
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9200
    hardcode_action=immediate
9201
  fi
9202
else
9203
  # We cannot hardcode anything, or else we can only hardcode existing
9204
  # directories.
9205
  hardcode_action=unsupported
9206
fi
9207 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9208 90 jeremybenn
$as_echo "$hardcode_action" >&6; }
9209
 
9210
if test "$hardcode_action" = relink ||
9211
   test "$inherit_rpath" = yes; then
9212
  # Fast installation is not supported
9213
  enable_fast_install=no
9214
elif test "$shlibpath_overrides_runpath" = yes ||
9215
     test "$enable_shared" = no; then
9216
  # Fast installation is not necessary
9217
  enable_fast_install=needless
9218
fi
9219
 
9220
 
9221
 
9222
 
9223
 
9224
 
9225
  if test "x$enable_dlopen" != xyes; then
9226
  enable_dlopen=unknown
9227
  enable_dlopen_self=unknown
9228
  enable_dlopen_self_static=unknown
9229
else
9230
  lt_cv_dlopen=no
9231
  lt_cv_dlopen_libs=
9232
 
9233
  case $host_os in
9234
  beos*)
9235
    lt_cv_dlopen="load_add_on"
9236
    lt_cv_dlopen_libs=
9237
    lt_cv_dlopen_self=yes
9238
    ;;
9239
 
9240
  mingw* | pw32* | cegcc*)
9241
    lt_cv_dlopen="LoadLibrary"
9242
    lt_cv_dlopen_libs=
9243
    ;;
9244
 
9245
  cygwin*)
9246
    lt_cv_dlopen="dlopen"
9247
    lt_cv_dlopen_libs=
9248
    ;;
9249
 
9250
  darwin*)
9251
  # if libdl is installed we need to link against it
9252 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9253 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9254 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
9255 90 jeremybenn
  $as_echo_n "(cached) " >&6
9256
else
9257
  ac_check_lib_save_LIBS=$LIBS
9258
LIBS="-ldl  $LIBS"
9259 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 90 jeremybenn
/* end confdefs.h.  */
9261
 
9262
/* Override any GCC internal prototype to avoid an error.
9263
   Use char because int might match the return type of a GCC
9264
   builtin and then its argument prototype would still apply.  */
9265
#ifdef __cplusplus
9266
extern "C"
9267
#endif
9268
char dlopen ();
9269
int
9270
main ()
9271
{
9272
return dlopen ();
9273
  ;
9274
  return 0;
9275
}
9276
_ACEOF
9277 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9278 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9279
else
9280 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9281 90 jeremybenn
fi
9282 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9283
    conftest$ac_exeext conftest.$ac_ext
9284 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9285
fi
9286 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9287 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9288 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9289 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9290
else
9291
 
9292
    lt_cv_dlopen="dyld"
9293
    lt_cv_dlopen_libs=
9294
    lt_cv_dlopen_self=yes
9295
 
9296
fi
9297
 
9298
    ;;
9299
 
9300
  *)
9301 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9302 625 jeremybenn
if test "x$ac_cv_func_shl_load" = xyes; then :
9303 90 jeremybenn
  lt_cv_dlopen="shl_load"
9304
else
9305 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9306 90 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9307 625 jeremybenn
if ${ac_cv_lib_dld_shl_load+:} false; then :
9308 90 jeremybenn
  $as_echo_n "(cached) " >&6
9309
else
9310
  ac_check_lib_save_LIBS=$LIBS
9311
LIBS="-ldld  $LIBS"
9312 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 90 jeremybenn
/* end confdefs.h.  */
9314
 
9315
/* Override any GCC internal prototype to avoid an error.
9316
   Use char because int might match the return type of a GCC
9317
   builtin and then its argument prototype would still apply.  */
9318
#ifdef __cplusplus
9319
extern "C"
9320
#endif
9321
char shl_load ();
9322
int
9323
main ()
9324
{
9325
return shl_load ();
9326
  ;
9327
  return 0;
9328
}
9329
_ACEOF
9330 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9331 90 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9332
else
9333 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9334 90 jeremybenn
fi
9335 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9336
    conftest$ac_exeext conftest.$ac_ext
9337 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9338
fi
9339 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9340 90 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9341 625 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9342 90 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9343
else
9344 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9345 625 jeremybenn
if test "x$ac_cv_func_dlopen" = xyes; then :
9346 90 jeremybenn
  lt_cv_dlopen="dlopen"
9347
else
9348 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9349 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9350 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
9351 90 jeremybenn
  $as_echo_n "(cached) " >&6
9352
else
9353
  ac_check_lib_save_LIBS=$LIBS
9354
LIBS="-ldl  $LIBS"
9355 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 90 jeremybenn
/* end confdefs.h.  */
9357
 
9358
/* Override any GCC internal prototype to avoid an error.
9359
   Use char because int might match the return type of a GCC
9360
   builtin and then its argument prototype would still apply.  */
9361
#ifdef __cplusplus
9362
extern "C"
9363
#endif
9364
char dlopen ();
9365
int
9366
main ()
9367
{
9368
return dlopen ();
9369
  ;
9370
  return 0;
9371
}
9372
_ACEOF
9373 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9374 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9375
else
9376 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9377 90 jeremybenn
fi
9378 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9379
    conftest$ac_exeext conftest.$ac_ext
9380 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9381
fi
9382 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9383 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9384 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9385 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9386
else
9387 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9388 90 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9389 625 jeremybenn
if ${ac_cv_lib_svld_dlopen+:} false; then :
9390 90 jeremybenn
  $as_echo_n "(cached) " >&6
9391
else
9392
  ac_check_lib_save_LIBS=$LIBS
9393
LIBS="-lsvld  $LIBS"
9394 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 90 jeremybenn
/* end confdefs.h.  */
9396
 
9397
/* Override any GCC internal prototype to avoid an error.
9398
   Use char because int might match the return type of a GCC
9399
   builtin and then its argument prototype would still apply.  */
9400
#ifdef __cplusplus
9401
extern "C"
9402
#endif
9403
char dlopen ();
9404
int
9405
main ()
9406
{
9407
return dlopen ();
9408
  ;
9409
  return 0;
9410
}
9411
_ACEOF
9412 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9413 90 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9414
else
9415 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9416 90 jeremybenn
fi
9417 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9418
    conftest$ac_exeext conftest.$ac_ext
9419 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9420
fi
9421 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9422 90 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9423 625 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9424 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9425
else
9426 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9427 90 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9428 625 jeremybenn
if ${ac_cv_lib_dld_dld_link+:} false; then :
9429 90 jeremybenn
  $as_echo_n "(cached) " >&6
9430
else
9431
  ac_check_lib_save_LIBS=$LIBS
9432
LIBS="-ldld  $LIBS"
9433 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 90 jeremybenn
/* end confdefs.h.  */
9435
 
9436
/* Override any GCC internal prototype to avoid an error.
9437
   Use char because int might match the return type of a GCC
9438
   builtin and then its argument prototype would still apply.  */
9439
#ifdef __cplusplus
9440
extern "C"
9441
#endif
9442
char dld_link ();
9443
int
9444
main ()
9445
{
9446
return dld_link ();
9447
  ;
9448
  return 0;
9449
}
9450
_ACEOF
9451 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9452 90 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9453
else
9454 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9455 90 jeremybenn
fi
9456 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9457
    conftest$ac_exeext conftest.$ac_ext
9458 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9459
fi
9460 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9461 90 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9462 625 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9463 90 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9464
fi
9465
 
9466
 
9467
fi
9468
 
9469
 
9470
fi
9471
 
9472
 
9473
fi
9474
 
9475
 
9476
fi
9477
 
9478
 
9479
fi
9480
 
9481
    ;;
9482
  esac
9483
 
9484
  if test "x$lt_cv_dlopen" != xno; then
9485
    enable_dlopen=yes
9486
  else
9487
    enable_dlopen=no
9488
  fi
9489
 
9490
  case $lt_cv_dlopen in
9491
  dlopen)
9492
    save_CPPFLAGS="$CPPFLAGS"
9493
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9494
 
9495
    save_LDFLAGS="$LDFLAGS"
9496
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9497
 
9498
    save_LIBS="$LIBS"
9499
    LIBS="$lt_cv_dlopen_libs $LIBS"
9500
 
9501 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9502 90 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9503 625 jeremybenn
if ${lt_cv_dlopen_self+:} false; then :
9504 90 jeremybenn
  $as_echo_n "(cached) " >&6
9505
else
9506
          if test "$cross_compiling" = yes; then :
9507
  lt_cv_dlopen_self=cross
9508
else
9509
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9510
  lt_status=$lt_dlunknown
9511
  cat > conftest.$ac_ext <<_LT_EOF
9512 625 jeremybenn
#line 9512 "configure"
9513 90 jeremybenn
#include "confdefs.h"
9514
 
9515
#if HAVE_DLFCN_H
9516
#include 
9517
#endif
9518
 
9519
#include 
9520
 
9521
#ifdef RTLD_GLOBAL
9522
#  define LT_DLGLOBAL           RTLD_GLOBAL
9523
#else
9524
#  ifdef DL_GLOBAL
9525
#    define LT_DLGLOBAL         DL_GLOBAL
9526
#  else
9527
#    define LT_DLGLOBAL         0
9528
#  endif
9529
#endif
9530
 
9531
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9532
   find out it does not work in some platform. */
9533
#ifndef LT_DLLAZY_OR_NOW
9534
#  ifdef RTLD_LAZY
9535
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9536
#  else
9537
#    ifdef DL_LAZY
9538
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9539
#    else
9540
#      ifdef RTLD_NOW
9541
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9542
#      else
9543
#        ifdef DL_NOW
9544
#          define LT_DLLAZY_OR_NOW      DL_NOW
9545
#        else
9546
#          define LT_DLLAZY_OR_NOW      0
9547
#        endif
9548
#      endif
9549
#    endif
9550
#  endif
9551
#endif
9552
 
9553
void fnord() { int i=42;}
9554
int main ()
9555
{
9556
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9557
  int status = $lt_dlunknown;
9558
 
9559
  if (self)
9560
    {
9561
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9562
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9563
      /* dlclose (self); */
9564
    }
9565
  else
9566
    puts (dlerror ());
9567
 
9568
  return status;
9569
}
9570
_LT_EOF
9571 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9572 90 jeremybenn
  (eval $ac_link) 2>&5
9573
  ac_status=$?
9574 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9575
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9576 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9577
    lt_status=$?
9578
    case x$lt_status in
9579
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9580
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9581
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9582
    esac
9583
  else :
9584
    # compilation failed
9585
    lt_cv_dlopen_self=no
9586
  fi
9587
fi
9588
rm -fr conftest*
9589
 
9590
 
9591
fi
9592 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9593 90 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9594
 
9595
    if test "x$lt_cv_dlopen_self" = xyes; then
9596
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9597 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9598 90 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9599 625 jeremybenn
if ${lt_cv_dlopen_self_static+:} false; then :
9600 90 jeremybenn
  $as_echo_n "(cached) " >&6
9601
else
9602
          if test "$cross_compiling" = yes; then :
9603
  lt_cv_dlopen_self_static=cross
9604
else
9605
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9606
  lt_status=$lt_dlunknown
9607
  cat > conftest.$ac_ext <<_LT_EOF
9608 625 jeremybenn
#line 9608 "configure"
9609 90 jeremybenn
#include "confdefs.h"
9610
 
9611
#if HAVE_DLFCN_H
9612
#include 
9613
#endif
9614
 
9615
#include 
9616
 
9617
#ifdef RTLD_GLOBAL
9618
#  define LT_DLGLOBAL           RTLD_GLOBAL
9619
#else
9620
#  ifdef DL_GLOBAL
9621
#    define LT_DLGLOBAL         DL_GLOBAL
9622
#  else
9623
#    define LT_DLGLOBAL         0
9624
#  endif
9625
#endif
9626
 
9627
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9628
   find out it does not work in some platform. */
9629
#ifndef LT_DLLAZY_OR_NOW
9630
#  ifdef RTLD_LAZY
9631
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9632
#  else
9633
#    ifdef DL_LAZY
9634
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9635
#    else
9636
#      ifdef RTLD_NOW
9637
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9638
#      else
9639
#        ifdef DL_NOW
9640
#          define LT_DLLAZY_OR_NOW      DL_NOW
9641
#        else
9642
#          define LT_DLLAZY_OR_NOW      0
9643
#        endif
9644
#      endif
9645
#    endif
9646
#  endif
9647
#endif
9648
 
9649
void fnord() { int i=42;}
9650
int main ()
9651
{
9652
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9653
  int status = $lt_dlunknown;
9654
 
9655
  if (self)
9656
    {
9657
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9658
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9659
      /* dlclose (self); */
9660
    }
9661
  else
9662
    puts (dlerror ());
9663
 
9664
  return status;
9665
}
9666
_LT_EOF
9667 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9668 90 jeremybenn
  (eval $ac_link) 2>&5
9669
  ac_status=$?
9670 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9671
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9672 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9673
    lt_status=$?
9674
    case x$lt_status in
9675
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9676
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9677
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9678
    esac
9679
  else :
9680
    # compilation failed
9681
    lt_cv_dlopen_self_static=no
9682
  fi
9683
fi
9684
rm -fr conftest*
9685
 
9686
 
9687
fi
9688 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9689 90 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9690
    fi
9691
 
9692
    CPPFLAGS="$save_CPPFLAGS"
9693
    LDFLAGS="$save_LDFLAGS"
9694
    LIBS="$save_LIBS"
9695
    ;;
9696
  esac
9697
 
9698
  case $lt_cv_dlopen_self in
9699
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9700
  *) enable_dlopen_self=unknown ;;
9701
  esac
9702
 
9703
  case $lt_cv_dlopen_self_static in
9704
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9705
  *) enable_dlopen_self_static=unknown ;;
9706
  esac
9707
fi
9708
 
9709
 
9710
 
9711
 
9712
 
9713
 
9714
 
9715
 
9716
 
9717
 
9718
 
9719
 
9720
 
9721
 
9722
 
9723
 
9724
 
9725
striplib=
9726
old_striplib=
9727 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9728 90 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9729
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9730
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9731
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9732 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9733 90 jeremybenn
$as_echo "yes" >&6; }
9734
else
9735
# FIXME - insert some real tests, host_os isn't really good enough
9736
  case $host_os in
9737
  darwin*)
9738
    if test -n "$STRIP" ; then
9739
      striplib="$STRIP -x"
9740
      old_striplib="$STRIP -S"
9741 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 90 jeremybenn
$as_echo "yes" >&6; }
9743
    else
9744 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 90 jeremybenn
$as_echo "no" >&6; }
9746
    fi
9747
    ;;
9748
  *)
9749 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 90 jeremybenn
$as_echo "no" >&6; }
9751
    ;;
9752
  esac
9753
fi
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
  # Report which library types will actually be built
9767 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9768 90 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9769 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9770 90 jeremybenn
$as_echo "$can_build_shared" >&6; }
9771
 
9772 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9773 90 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
9774
  test "$can_build_shared" = "no" && enable_shared=no
9775
 
9776
  # On AIX, shared libraries and static libraries use the same namespace, and
9777
  # are all built from PIC.
9778
  case $host_os in
9779
  aix3*)
9780
    test "$enable_shared" = yes && enable_static=no
9781
    if test -n "$RANLIB"; then
9782
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9783
      postinstall_cmds='$RANLIB $lib'
9784
    fi
9785
    ;;
9786
 
9787
  aix[4-9]*)
9788
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9789
      test "$enable_shared" = yes && enable_static=no
9790
    fi
9791
    ;;
9792
  esac
9793 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9794 90 jeremybenn
$as_echo "$enable_shared" >&6; }
9795
 
9796 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9797 90 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
9798
  # Make sure either enable_shared or enable_static is yes.
9799
  test "$enable_shared" = yes || enable_static=yes
9800 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9801 90 jeremybenn
$as_echo "$enable_static" >&6; }
9802
 
9803
 
9804
 
9805
 
9806
fi
9807
ac_ext=c
9808
ac_cpp='$CPP $CPPFLAGS'
9809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812
 
9813
CC="$lt_save_CC"
9814
 
9815
 
9816
 
9817
 
9818
 
9819
 
9820
 
9821
 
9822
 
9823
 
9824
 
9825
 
9826
 
9827
        ac_config_commands="$ac_config_commands libtool"
9828
 
9829
 
9830
 
9831
 
9832
# Only expand once:
9833
 
9834
 
9835
am__api_version='1.11'
9836
 
9837
# Find a good install program.  We prefer a C program (faster),
9838
# so one script is as good as another.  But avoid the broken or
9839
# incompatible versions:
9840
# SysV /etc/install, /usr/sbin/install
9841
# SunOS /usr/etc/install
9842
# IRIX /sbin/install
9843
# AIX /bin/install
9844
# AmigaOS /C/install, which installs bootblocks on floppy discs
9845
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9846
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9847
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9848
# OS/2's system install, which has a completely different semantic
9849
# ./install, which can be erroneously created by make from ./install.sh.
9850
# Reject install programs that cannot install multiple files.
9851 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9852 90 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
9853
if test -z "$INSTALL"; then
9854 625 jeremybenn
if ${ac_cv_path_install+:} false; then :
9855 90 jeremybenn
  $as_echo_n "(cached) " >&6
9856
else
9857
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858
for as_dir in $PATH
9859
do
9860
  IFS=$as_save_IFS
9861
  test -z "$as_dir" && as_dir=.
9862 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
9863
case $as_dir/ in #((
9864
  ./ | .// | /[cC]/* | \
9865 90 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9866 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9867 90 jeremybenn
  /usr/ucb/* ) ;;
9868
  *)
9869
    # OSF1 and SCO ODT 3.0 have their own names for install.
9870
    # Don't use installbsd from OSF since it installs stuff as root
9871
    # by default.
9872
    for ac_prog in ginstall scoinst install; do
9873
      for ac_exec_ext in '' $ac_executable_extensions; do
9874
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9875
          if test $ac_prog = install &&
9876
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9877
            # AIX install.  It has an incompatible calling convention.
9878
            :
9879
          elif test $ac_prog = install &&
9880
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9881
            # program-specific install script used by HP pwplus--don't use.
9882
            :
9883
          else
9884
            rm -rf conftest.one conftest.two conftest.dir
9885
            echo one > conftest.one
9886
            echo two > conftest.two
9887
            mkdir conftest.dir
9888
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9889
              test -s conftest.one && test -s conftest.two &&
9890
              test -s conftest.dir/conftest.one &&
9891
              test -s conftest.dir/conftest.two
9892
            then
9893
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9894
              break 3
9895
            fi
9896
          fi
9897
        fi
9898
      done
9899
    done
9900
    ;;
9901
esac
9902
 
9903 346 jeremybenn
  done
9904 90 jeremybenn
IFS=$as_save_IFS
9905
 
9906
rm -rf conftest.one conftest.two conftest.dir
9907
 
9908
fi
9909
  if test "${ac_cv_path_install+set}" = set; then
9910
    INSTALL=$ac_cv_path_install
9911
  else
9912
    # As a last resort, use the slow shell script.  Don't cache a
9913
    # value for INSTALL within a source directory, because that will
9914
    # break other packages using the cache if that directory is
9915
    # removed, or if the value is a relative name.
9916
    INSTALL=$ac_install_sh
9917
  fi
9918
fi
9919 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9920 90 jeremybenn
$as_echo "$INSTALL" >&6; }
9921
 
9922
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9923
# It thinks the first close brace ends the variable substitution.
9924
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9925
 
9926
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9927
 
9928
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9929
 
9930 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9931 90 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
9932
# Just in case
9933
sleep 1
9934
echo timestamp > conftest.file
9935
# Reject unsafe characters in $srcdir or the absolute working directory
9936
# name.  Accept space and tab only in the latter.
9937
am_lf='
9938
'
9939
case `pwd` in
9940
  *[\\\"\#\$\&\'\`$am_lf]*)
9941 625 jeremybenn
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
9942 90 jeremybenn
esac
9943
case $srcdir in
9944
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
9945 625 jeremybenn
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
9946 90 jeremybenn
esac
9947
 
9948
# Do `set' in a subshell so we don't clobber the current shell's
9949
# arguments.  Must try -L first in case configure is actually a
9950
# symlink; some systems play weird games with the mod time of symlinks
9951
# (eg FreeBSD returns the mod time of the symlink's containing
9952
# directory).
9953
if (
9954
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9955
   if test "$*" = "X"; then
9956
      # -L didn't work.
9957
      set X `ls -t "$srcdir/configure" conftest.file`
9958
   fi
9959
   rm -f conftest.file
9960
   if test "$*" != "X $srcdir/configure conftest.file" \
9961
      && test "$*" != "X conftest.file $srcdir/configure"; then
9962
 
9963
      # If neither matched, then we have a broken ls.  This can happen
9964
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9965
      # broken ls alias from the environment.  This has actually
9966
      # happened.  Such a system could not be considered "sane".
9967 625 jeremybenn
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
9968 346 jeremybenn
alias in your environment" "$LINENO" 5
9969 90 jeremybenn
   fi
9970
 
9971
   test "$2" = conftest.file
9972
   )
9973
then
9974
   # Ok.
9975
   :
9976
else
9977 625 jeremybenn
   as_fn_error $? "newly created file is older than distributed files!
9978 346 jeremybenn
Check your system clock" "$LINENO" 5
9979 90 jeremybenn
fi
9980 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 90 jeremybenn
$as_echo "yes" >&6; }
9982
test "$program_prefix" != NONE &&
9983
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
9984
# Use a double $ so make ignores it.
9985
test "$program_suffix" != NONE &&
9986
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9987
# Double any \ or $.
9988
# By default was `s,x,x', remove it if useless.
9989
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9990
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9991
 
9992
# expand $ac_aux_dir to an absolute path
9993
am_aux_dir=`cd $ac_aux_dir && pwd`
9994
 
9995
if test x"${MISSING+set}" != xset; then
9996
  case $am_aux_dir in
9997
  *\ * | *\     *)
9998
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9999
  *)
10000
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10001
  esac
10002
fi
10003
# Use eval to expand $SHELL
10004
if eval "$MISSING --run true"; then
10005
  am_missing_run="$MISSING --run "
10006
else
10007
  am_missing_run=
10008 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10009 90 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10010
fi
10011
 
10012
if test x"${install_sh}" != xset; then
10013
  case $am_aux_dir in
10014
  *\ * | *\     *)
10015
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10016
  *)
10017
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10018
  esac
10019
fi
10020
 
10021
# Installed binaries are usually stripped using `strip' when the user
10022
# run `make install-strip'.  However `strip' might not be the right
10023
# tool to use in cross-compilation environments, therefore Automake
10024
# will honor the `STRIP' environment variable to overrule this program.
10025
if test "$cross_compiling" != no; then
10026
  if test -n "$ac_tool_prefix"; then
10027
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10028
set dummy ${ac_tool_prefix}strip; ac_word=$2
10029 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10031 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
10032 90 jeremybenn
  $as_echo_n "(cached) " >&6
10033
else
10034
  if test -n "$STRIP"; then
10035
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10036
else
10037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038
for as_dir in $PATH
10039
do
10040
  IFS=$as_save_IFS
10041
  test -z "$as_dir" && as_dir=.
10042 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10043 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10045 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 90 jeremybenn
    break 2
10047
  fi
10048
done
10049 346 jeremybenn
  done
10050 90 jeremybenn
IFS=$as_save_IFS
10051
 
10052
fi
10053
fi
10054
STRIP=$ac_cv_prog_STRIP
10055
if test -n "$STRIP"; then
10056 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10057 90 jeremybenn
$as_echo "$STRIP" >&6; }
10058
else
10059 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 90 jeremybenn
$as_echo "no" >&6; }
10061
fi
10062
 
10063
 
10064
fi
10065
if test -z "$ac_cv_prog_STRIP"; then
10066
  ac_ct_STRIP=$STRIP
10067
  # Extract the first word of "strip", so it can be a program name with args.
10068
set dummy strip; ac_word=$2
10069 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10071 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10072 90 jeremybenn
  $as_echo_n "(cached) " >&6
10073
else
10074
  if test -n "$ac_ct_STRIP"; then
10075
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10076
else
10077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078
for as_dir in $PATH
10079
do
10080
  IFS=$as_save_IFS
10081
  test -z "$as_dir" && as_dir=.
10082 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10083 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084
    ac_cv_prog_ac_ct_STRIP="strip"
10085 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 90 jeremybenn
    break 2
10087
  fi
10088
done
10089 346 jeremybenn
  done
10090 90 jeremybenn
IFS=$as_save_IFS
10091
 
10092
fi
10093
fi
10094
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10095
if test -n "$ac_ct_STRIP"; then
10096 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10097 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10098
else
10099 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 90 jeremybenn
$as_echo "no" >&6; }
10101
fi
10102
 
10103
  if test "x$ac_ct_STRIP" = x; then
10104
    STRIP=":"
10105
  else
10106
    case $cross_compiling:$ac_tool_warned in
10107
yes:)
10108 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110
ac_tool_warned=yes ;;
10111
esac
10112
    STRIP=$ac_ct_STRIP
10113
  fi
10114
else
10115
  STRIP="$ac_cv_prog_STRIP"
10116
fi
10117
 
10118
fi
10119
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10120
 
10121 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10122 90 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10123
if test -z "$MKDIR_P"; then
10124 625 jeremybenn
  if ${ac_cv_path_mkdir+:} false; then :
10125 90 jeremybenn
  $as_echo_n "(cached) " >&6
10126
else
10127
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10129
do
10130
  IFS=$as_save_IFS
10131
  test -z "$as_dir" && as_dir=.
10132 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10133 90 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10134
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10135
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10136
             'mkdir (GNU coreutils) '* | \
10137
             'mkdir (coreutils) '* | \
10138
             'mkdir (fileutils) '4.1*)
10139
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10140
               break 3;;
10141
           esac
10142
         done
10143
       done
10144 346 jeremybenn
  done
10145 90 jeremybenn
IFS=$as_save_IFS
10146
 
10147
fi
10148
 
10149 625 jeremybenn
  test -d ./--version && rmdir ./--version
10150 90 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10151
    MKDIR_P="$ac_cv_path_mkdir -p"
10152
  else
10153
    # As a last resort, use the slow shell script.  Don't cache a
10154
    # value for MKDIR_P within a source directory, because that will
10155
    # break other packages using the cache if that directory is
10156
    # removed, or if the value is a relative name.
10157
    MKDIR_P="$ac_install_sh -d"
10158
  fi
10159
fi
10160 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10161 90 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10162
 
10163
mkdir_p="$MKDIR_P"
10164
case $mkdir_p in
10165
  [\\/$]* | ?:[\\/]*) ;;
10166
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10167
esac
10168
 
10169
for ac_prog in gawk mawk nawk awk
10170
do
10171
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10172
set dummy $ac_prog; ac_word=$2
10173 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10175 625 jeremybenn
if ${ac_cv_prog_AWK+:} false; then :
10176 90 jeremybenn
  $as_echo_n "(cached) " >&6
10177
else
10178
  if test -n "$AWK"; then
10179
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10180
else
10181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182
for as_dir in $PATH
10183
do
10184
  IFS=$as_save_IFS
10185
  test -z "$as_dir" && as_dir=.
10186 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10187 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188
    ac_cv_prog_AWK="$ac_prog"
10189 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 90 jeremybenn
    break 2
10191
  fi
10192
done
10193 346 jeremybenn
  done
10194 90 jeremybenn
IFS=$as_save_IFS
10195
 
10196
fi
10197
fi
10198
AWK=$ac_cv_prog_AWK
10199
if test -n "$AWK"; then
10200 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10201 90 jeremybenn
$as_echo "$AWK" >&6; }
10202
else
10203 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 90 jeremybenn
$as_echo "no" >&6; }
10205
fi
10206
 
10207
 
10208
  test -n "$AWK" && break
10209
done
10210
 
10211 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10212 90 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10213
set x ${MAKE-make}
10214
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10215 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10216 90 jeremybenn
  $as_echo_n "(cached) " >&6
10217
else
10218
  cat >conftest.make <<\_ACEOF
10219
SHELL = /bin/sh
10220
all:
10221
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10222
_ACEOF
10223 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10224 90 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10225
  *@@@%%%=?*=@@@%%%*)
10226
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10227
  *)
10228
    eval ac_cv_prog_make_${ac_make}_set=no;;
10229
esac
10230
rm -f conftest.make
10231
fi
10232
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10233 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10234 90 jeremybenn
$as_echo "yes" >&6; }
10235
  SET_MAKE=
10236
else
10237 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 90 jeremybenn
$as_echo "no" >&6; }
10239
  SET_MAKE="MAKE=${MAKE-make}"
10240
fi
10241
 
10242
rm -rf .tst 2>/dev/null
10243
mkdir .tst 2>/dev/null
10244
if test -d .tst; then
10245
  am__leading_dot=.
10246
else
10247
  am__leading_dot=_
10248
fi
10249
rmdir .tst 2>/dev/null
10250
 
10251
DEPDIR="${am__leading_dot}deps"
10252
 
10253
ac_config_commands="$ac_config_commands depfiles"
10254
 
10255
 
10256
am_make=${MAKE-make}
10257
cat > confinc << 'END'
10258
am__doit:
10259
        @echo this is the am__doit target
10260
.PHONY: am__doit
10261
END
10262
# If we don't find an include directive, just comment out the code.
10263 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10264 90 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10265
am__include="#"
10266
am__quote=
10267
_am_result=none
10268
# First try GNU make style include.
10269
echo "include confinc" > confmf
10270
# Ignore all kinds of additional output from `make'.
10271
case `$am_make -s -f confmf 2> /dev/null` in #(
10272
*the\ am__doit\ target*)
10273
  am__include=include
10274
  am__quote=
10275
  _am_result=GNU
10276
  ;;
10277
esac
10278
# Now try BSD make style include.
10279
if test "$am__include" = "#"; then
10280
   echo '.include "confinc"' > confmf
10281
   case `$am_make -s -f confmf 2> /dev/null` in #(
10282
   *the\ am__doit\ target*)
10283
     am__include=.include
10284
     am__quote="\""
10285
     _am_result=BSD
10286
     ;;
10287
   esac
10288
fi
10289
 
10290
 
10291 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10292 90 jeremybenn
$as_echo "$_am_result" >&6; }
10293
rm -f confinc confmf
10294
 
10295
# Check whether --enable-dependency-tracking was given.
10296 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10297 90 jeremybenn
  enableval=$enable_dependency_tracking;
10298
fi
10299
 
10300
if test "x$enable_dependency_tracking" != xno; then
10301
  am_depcomp="$ac_aux_dir/depcomp"
10302
  AMDEPBACKSLASH='\'
10303
fi
10304
 if test "x$enable_dependency_tracking" != xno; then
10305
  AMDEP_TRUE=
10306
  AMDEP_FALSE='#'
10307
else
10308
  AMDEP_TRUE='#'
10309
  AMDEP_FALSE=
10310
fi
10311
 
10312
 
10313
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10314
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10315
  # is not polluted with repeated "-I."
10316
  am__isrc=' -I$(srcdir)'
10317
  # test to see if srcdir already configured
10318
  if test -f $srcdir/config.status; then
10319 625 jeremybenn
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10320 90 jeremybenn
  fi
10321
fi
10322
 
10323
# test whether we have cygpath
10324
if test -z "$CYGPATH_W"; then
10325
  if (cygpath --version) >/dev/null 2>/dev/null; then
10326
    CYGPATH_W='cygpath -w'
10327
  else
10328
    CYGPATH_W=echo
10329
  fi
10330
fi
10331
 
10332
 
10333
# Define the identity of the package.
10334
 PACKAGE='or1ksim-testsuite'
10335 625 jeremybenn
 VERSION='2011-08-15'
10336 90 jeremybenn
 
10337
 
10338
cat >>confdefs.h <<_ACEOF
10339
#define PACKAGE "$PACKAGE"
10340
_ACEOF
10341
 
10342
 
10343
cat >>confdefs.h <<_ACEOF
10344
#define VERSION "$VERSION"
10345
_ACEOF
10346
 
10347
# Some tools Automake needs.
10348
 
10349
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10350
 
10351
 
10352
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10353
 
10354
 
10355
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10356
 
10357
 
10358
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10359
 
10360
 
10361
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10362
 
10363
# We need awk for the "check" target.  The system "awk" is bad on
10364
# some platforms.
10365
# Always define AMTAR for backward compatibility.
10366
 
10367
AMTAR=${AMTAR-"${am_missing_run}tar"}
10368
 
10369
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10370
 
10371
 
10372
 
10373
 
10374
depcc="$CC"   am_compiler_list=
10375
 
10376 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10377 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10378 625 jeremybenn
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10379 90 jeremybenn
  $as_echo_n "(cached) " >&6
10380
else
10381
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10382
  # We make a subdir and do the tests there.  Otherwise we can end up
10383
  # making bogus files that we don't know about and never remove.  For
10384
  # instance it was reported that on HP-UX the gcc test will end up
10385
  # making a dummy file named `D' -- because `-MD' means `put the output
10386
  # in D'.
10387
  mkdir conftest.dir
10388
  # Copy depcomp to subdir because otherwise we won't find it if we're
10389
  # using a relative directory.
10390
  cp "$am_depcomp" conftest.dir
10391
  cd conftest.dir
10392
  # We will build objects and dependencies in a subdirectory because
10393
  # it helps to detect inapplicable dependency modes.  For instance
10394
  # both Tru64's cc and ICC support -MD to output dependencies as a
10395
  # side effect of compilation, but ICC will put the dependencies in
10396
  # the current directory while Tru64 will put them in the object
10397
  # directory.
10398
  mkdir sub
10399
 
10400
  am_cv_CC_dependencies_compiler_type=none
10401
  if test "$am_compiler_list" = ""; then
10402
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10403
  fi
10404
  am__universal=false
10405
  case " $depcc " in #(
10406
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10407
     esac
10408
 
10409
  for depmode in $am_compiler_list; do
10410
    # Setup a source with many dependencies, because some compilers
10411
    # like to wrap large dependency lists on column 80 (with \), and
10412
    # we should not choose a depcomp mode which is confused by this.
10413
    #
10414
    # We need to recreate these files for each test, as the compiler may
10415
    # overwrite some of them when testing with obscure command lines.
10416
    # This happens at least with the AIX C compiler.
10417
    : > sub/conftest.c
10418
    for i in 1 2 3 4 5 6; do
10419
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10420
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10421
      # Solaris 8's {/usr,}/bin/sh.
10422
      touch sub/conftst$i.h
10423
    done
10424
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10425
 
10426
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10427
    # mode.  It turns out that the SunPro C++ compiler does not properly
10428
    # handle `-M -o', and we need to detect this.  Also, some Intel
10429
    # versions had trouble with output in subdirs
10430
    am__obj=sub/conftest.${OBJEXT-o}
10431
    am__minus_obj="-o $am__obj"
10432
    case $depmode in
10433
    gcc)
10434
      # This depmode causes a compiler race in universal mode.
10435
      test "$am__universal" = false || continue
10436
      ;;
10437
    nosideeffect)
10438
      # after this tag, mechanisms are not by side-effect, so they'll
10439
      # only be used when explicitly requested
10440
      if test "x$enable_dependency_tracking" = xyes; then
10441
        continue
10442
      else
10443
        break
10444
      fi
10445
      ;;
10446
    msvisualcpp | msvcmsys)
10447
      # This compiler won't grok `-c -o', but also, the minuso test has
10448
      # not run yet.  These depmodes are late enough in the game, and
10449
      # so weak that their functioning should not be impacted.
10450
      am__obj=conftest.${OBJEXT-o}
10451
      am__minus_obj=
10452
      ;;
10453
    none) break ;;
10454
    esac
10455
    if depmode=$depmode \
10456
       source=sub/conftest.c object=$am__obj \
10457
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10458
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10459
         >/dev/null 2>conftest.err &&
10460
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10461
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10462
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10463
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10464
      # icc doesn't choke on unknown options, it will just issue warnings
10465
      # or remarks (even with -Werror).  So we grep stderr for any message
10466
      # that says an option was ignored or not supported.
10467
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10468
      #   icc: Command line warning: ignoring option '-M'; no argument required
10469
      # The diagnosis changed in icc 8.0:
10470
      #   icc: Command line remark: option '-MP' not supported
10471
      if (grep 'ignoring option' conftest.err ||
10472
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10473
        am_cv_CC_dependencies_compiler_type=$depmode
10474
        break
10475
      fi
10476
    fi
10477
  done
10478
 
10479
  cd ..
10480
  rm -rf conftest.dir
10481
else
10482
  am_cv_CC_dependencies_compiler_type=none
10483
fi
10484
 
10485
fi
10486 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10487 90 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10488
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10489
 
10490
 if
10491
  test "x$enable_dependency_tracking" != xno \
10492
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10493
  am__fastdepCC_TRUE=
10494
  am__fastdepCC_FALSE='#'
10495
else
10496
  am__fastdepCC_TRUE='#'
10497
  am__fastdepCC_FALSE=
10498
fi
10499
 
10500
 
10501
 
10502 625 jeremybenn
# Check whether --enable-silent-rules was given.
10503
if test "${enable_silent_rules+set}" = set; then :
10504
  enableval=$enable_silent_rules;
10505
fi
10506
 
10507
case $enable_silent_rules in
10508
yes) AM_DEFAULT_VERBOSITY=0;;
10509
no)  AM_DEFAULT_VERBOSITY=1;;
10510
*)   AM_DEFAULT_VERBOSITY=0;;
10511
esac
10512
AM_BACKSLASH='\'
10513
 
10514
 
10515 90 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10516
 
10517
 
10518
# make sure we are using a recent autoconf version
10519
 
10520
 
10521 385 jeremybenn
# This is not nice, but it gets round the problem of the target not being
10522
# specified. We don't need to warn again - the main configure did that for us.
10523
case "$target_cpu" in
10524
or32*)
10525
        ;;
10526
 
10527
dlx*)
10528
        ;;
10529
 
10530
*)      target_alias=or32-elf;
10531
        ;;
10532
esac
10533
 
10534 90 jeremybenn
# check for --enable-all-tests argument, in which case we attempt to build all
10535
# tests, even those that do not compile properly.
10536
# Check whether --enable-all-tests was given.
10537 346 jeremybenn
if test "${enable_all_tests+set}" = set; then :
10538 90 jeremybenn
  enableval=$enable_all_tests; all_tests=true all_tests=false
10539
fi
10540
 
10541
 if test x$all_tests = xtrue; then
10542
  BUILD_ALL_TESTS_TRUE=
10543
  BUILD_ALL_TESTS_FALSE='#'
10544
else
10545
  BUILD_ALL_TESTS_TRUE='#'
10546
  BUILD_ALL_TESTS_FALSE=
10547
fi
10548
 
10549
 
10550
# Sort out the tools. Using the target tool chain here, not native. Note that
10551
# AC_CHECK_PROGS will not override an already set variable, so we must
10552
# explicitly unset them first.
10553
unset CC
10554
unset RANLIB
10555
unset LD
10556
unset SIM
10557
for ac_prog in $target_alias-gcc
10558
do
10559
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10560
set dummy $ac_prog; ac_word=$2
10561 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10563 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
10564 90 jeremybenn
  $as_echo_n "(cached) " >&6
10565
else
10566
  if test -n "$CC"; then
10567
  ac_cv_prog_CC="$CC" # Let the user override the test.
10568
else
10569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570
for as_dir in $PATH
10571
do
10572
  IFS=$as_save_IFS
10573
  test -z "$as_dir" && as_dir=.
10574 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10575 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576
    ac_cv_prog_CC="$ac_prog"
10577 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 90 jeremybenn
    break 2
10579
  fi
10580
done
10581 346 jeremybenn
  done
10582 90 jeremybenn
IFS=$as_save_IFS
10583
 
10584
fi
10585
fi
10586
CC=$ac_cv_prog_CC
10587
if test -n "$CC"; then
10588 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10589 90 jeremybenn
$as_echo "$CC" >&6; }
10590
else
10591 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 90 jeremybenn
$as_echo "no" >&6; }
10593
fi
10594
 
10595
 
10596
  test -n "$CC" && break
10597
done
10598
 
10599
for ac_prog in $target_alias-ranlib
10600
do
10601
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10602
set dummy $ac_prog; ac_word=$2
10603 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10605 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
10606 90 jeremybenn
  $as_echo_n "(cached) " >&6
10607
else
10608
  if test -n "$RANLIB"; then
10609
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10610
else
10611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612
for as_dir in $PATH
10613
do
10614
  IFS=$as_save_IFS
10615
  test -z "$as_dir" && as_dir=.
10616 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10617 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618
    ac_cv_prog_RANLIB="$ac_prog"
10619 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 90 jeremybenn
    break 2
10621
  fi
10622
done
10623 346 jeremybenn
  done
10624 90 jeremybenn
IFS=$as_save_IFS
10625
 
10626
fi
10627
fi
10628
RANLIB=$ac_cv_prog_RANLIB
10629
if test -n "$RANLIB"; then
10630 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10631 90 jeremybenn
$as_echo "$RANLIB" >&6; }
10632
else
10633 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 90 jeremybenn
$as_echo "no" >&6; }
10635
fi
10636
 
10637
 
10638
  test -n "$RANLIB" && break
10639
done
10640
 
10641
for ac_prog in $target_alias-ld
10642
do
10643
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10644
set dummy $ac_prog; ac_word=$2
10645 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10647 625 jeremybenn
if ${ac_cv_prog_LD+:} false; then :
10648 90 jeremybenn
  $as_echo_n "(cached) " >&6
10649
else
10650
  if test -n "$LD"; then
10651
  ac_cv_prog_LD="$LD" # Let the user override the test.
10652
else
10653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654
for as_dir in $PATH
10655
do
10656
  IFS=$as_save_IFS
10657
  test -z "$as_dir" && as_dir=.
10658 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10659 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10660
    ac_cv_prog_LD="$ac_prog"
10661 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 90 jeremybenn
    break 2
10663
  fi
10664
done
10665 346 jeremybenn
  done
10666 90 jeremybenn
IFS=$as_save_IFS
10667
 
10668
fi
10669
fi
10670
LD=$ac_cv_prog_LD
10671
if test -n "$LD"; then
10672 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10673 90 jeremybenn
$as_echo "$LD" >&6; }
10674
else
10675 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 90 jeremybenn
$as_echo "no" >&6; }
10677
fi
10678
 
10679
 
10680
  test -n "$LD" && break
10681
done
10682
 
10683
for ac_prog in $target_alias-sim
10684
do
10685
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10686
set dummy $ac_prog; ac_word=$2
10687 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10689 625 jeremybenn
if ${ac_cv_prog_SIM+:} false; then :
10690 90 jeremybenn
  $as_echo_n "(cached) " >&6
10691
else
10692
  if test -n "$SIM"; then
10693
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
10694
else
10695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696
for as_dir in $PATH
10697
do
10698
  IFS=$as_save_IFS
10699
  test -z "$as_dir" && as_dir=.
10700 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10701 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10702
    ac_cv_prog_SIM="$ac_prog"
10703 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 90 jeremybenn
    break 2
10705
  fi
10706
done
10707 346 jeremybenn
  done
10708 90 jeremybenn
IFS=$as_save_IFS
10709
 
10710
fi
10711
fi
10712
SIM=$ac_cv_prog_SIM
10713
if test -n "$SIM"; then
10714 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM" >&5
10715 90 jeremybenn
$as_echo "$SIM" >&6; }
10716
else
10717 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 90 jeremybenn
$as_echo "no" >&6; }
10719
fi
10720
 
10721
 
10722
  test -n "$SIM" && break
10723
done
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10731 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
10732 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
10733 90 jeremybenn
  $as_echo_n "(cached) " >&6
10734
else
10735 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 90 jeremybenn
/* end confdefs.h.  */
10737
#include 
10738
#include 
10739
#include 
10740
#include 
10741
 
10742
int
10743
main ()
10744
{
10745
 
10746
  ;
10747
  return 0;
10748
}
10749
_ACEOF
10750 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
10751 90 jeremybenn
  ac_cv_header_stdc=yes
10752
else
10753 346 jeremybenn
  ac_cv_header_stdc=no
10754 90 jeremybenn
fi
10755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756
 
10757
if test $ac_cv_header_stdc = yes; then
10758
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10759 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 90 jeremybenn
/* end confdefs.h.  */
10761
#include 
10762
 
10763
_ACEOF
10764
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10765 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
10766
 
10767 90 jeremybenn
else
10768
  ac_cv_header_stdc=no
10769
fi
10770
rm -f conftest*
10771
 
10772
fi
10773
 
10774
if test $ac_cv_header_stdc = yes; then
10775
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10776 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 90 jeremybenn
/* end confdefs.h.  */
10778
#include 
10779
 
10780
_ACEOF
10781
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10782 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
10783
 
10784 90 jeremybenn
else
10785
  ac_cv_header_stdc=no
10786
fi
10787
rm -f conftest*
10788
 
10789
fi
10790
 
10791
if test $ac_cv_header_stdc = yes; then
10792
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10793 346 jeremybenn
  if test "$cross_compiling" = yes; then :
10794 90 jeremybenn
  :
10795
else
10796 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 90 jeremybenn
/* end confdefs.h.  */
10798
#include 
10799
#include 
10800
#if ((' ' & 0x0FF) == 0x020)
10801
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10802
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10803
#else
10804
# define ISLOWER(c) \
10805
                   (('a' <= (c) && (c) <= 'i') \
10806
                     || ('j' <= (c) && (c) <= 'r') \
10807
                     || ('s' <= (c) && (c) <= 'z'))
10808
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10809
#endif
10810
 
10811
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10812
int
10813
main ()
10814
{
10815
  int i;
10816
  for (i = 0; i < 256; i++)
10817
    if (XOR (islower (i), ISLOWER (i))
10818
        || toupper (i) != TOUPPER (i))
10819
      return 2;
10820
  return 0;
10821
}
10822
_ACEOF
10823 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
10824
 
10825 236 jeremybenn
else
10826 346 jeremybenn
  ac_cv_header_stdc=no
10827 90 jeremybenn
fi
10828 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10829
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10830 90 jeremybenn
fi
10831
 
10832
fi
10833
fi
10834 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10835 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
10836
if test $ac_cv_header_stdc = yes; then
10837
 
10838 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10839 90 jeremybenn
 
10840
fi
10841
 
10842
 
10843
# We need assembler, installer and per target C flags
10844
 
10845
# By default we simply use the C compiler to build assembly code.
10846
 
10847
test "${CCAS+set}" = set || CCAS=$CC
10848
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10849
 
10850
 
10851
 
10852
depcc="$CCAS"   am_compiler_list=
10853
 
10854 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10855 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10856 625 jeremybenn
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
10857 90 jeremybenn
  $as_echo_n "(cached) " >&6
10858
else
10859
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10860
  # We make a subdir and do the tests there.  Otherwise we can end up
10861
  # making bogus files that we don't know about and never remove.  For
10862
  # instance it was reported that on HP-UX the gcc test will end up
10863
  # making a dummy file named `D' -- because `-MD' means `put the output
10864
  # in D'.
10865
  mkdir conftest.dir
10866
  # Copy depcomp to subdir because otherwise we won't find it if we're
10867
  # using a relative directory.
10868
  cp "$am_depcomp" conftest.dir
10869
  cd conftest.dir
10870
  # We will build objects and dependencies in a subdirectory because
10871
  # it helps to detect inapplicable dependency modes.  For instance
10872
  # both Tru64's cc and ICC support -MD to output dependencies as a
10873
  # side effect of compilation, but ICC will put the dependencies in
10874
  # the current directory while Tru64 will put them in the object
10875
  # directory.
10876
  mkdir sub
10877
 
10878
  am_cv_CCAS_dependencies_compiler_type=none
10879
  if test "$am_compiler_list" = ""; then
10880
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10881
  fi
10882
  am__universal=false
10883
 
10884
 
10885
  for depmode in $am_compiler_list; do
10886
    # Setup a source with many dependencies, because some compilers
10887
    # like to wrap large dependency lists on column 80 (with \), and
10888
    # we should not choose a depcomp mode which is confused by this.
10889
    #
10890
    # We need to recreate these files for each test, as the compiler may
10891
    # overwrite some of them when testing with obscure command lines.
10892
    # This happens at least with the AIX C compiler.
10893
    : > sub/conftest.c
10894
    for i in 1 2 3 4 5 6; do
10895
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10896
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10897
      # Solaris 8's {/usr,}/bin/sh.
10898
      touch sub/conftst$i.h
10899
    done
10900
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10901
 
10902
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10903
    # mode.  It turns out that the SunPro C++ compiler does not properly
10904
    # handle `-M -o', and we need to detect this.  Also, some Intel
10905
    # versions had trouble with output in subdirs
10906
    am__obj=sub/conftest.${OBJEXT-o}
10907
    am__minus_obj="-o $am__obj"
10908
    case $depmode in
10909
    gcc)
10910
      # This depmode causes a compiler race in universal mode.
10911
      test "$am__universal" = false || continue
10912
      ;;
10913
    nosideeffect)
10914
      # after this tag, mechanisms are not by side-effect, so they'll
10915
      # only be used when explicitly requested
10916
      if test "x$enable_dependency_tracking" = xyes; then
10917
        continue
10918
      else
10919
        break
10920
      fi
10921
      ;;
10922
    msvisualcpp | msvcmsys)
10923
      # This compiler won't grok `-c -o', but also, the minuso test has
10924
      # not run yet.  These depmodes are late enough in the game, and
10925
      # so weak that their functioning should not be impacted.
10926
      am__obj=conftest.${OBJEXT-o}
10927
      am__minus_obj=
10928
      ;;
10929
    none) break ;;
10930
    esac
10931
    if depmode=$depmode \
10932
       source=sub/conftest.c object=$am__obj \
10933
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10934
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10935
         >/dev/null 2>conftest.err &&
10936
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10937
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10938
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10939
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10940
      # icc doesn't choke on unknown options, it will just issue warnings
10941
      # or remarks (even with -Werror).  So we grep stderr for any message
10942
      # that says an option was ignored or not supported.
10943
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10944
      #   icc: Command line warning: ignoring option '-M'; no argument required
10945
      # The diagnosis changed in icc 8.0:
10946
      #   icc: Command line remark: option '-MP' not supported
10947
      if (grep 'ignoring option' conftest.err ||
10948
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10949
        am_cv_CCAS_dependencies_compiler_type=$depmode
10950
        break
10951
      fi
10952
    fi
10953
  done
10954
 
10955
  cd ..
10956
  rm -rf conftest.dir
10957
else
10958
  am_cv_CCAS_dependencies_compiler_type=none
10959
fi
10960
 
10961
fi
10962 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10963 90 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10964
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10965
 
10966
 if
10967
  test "x$enable_dependency_tracking" != xno \
10968
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10969
  am__fastdepCCAS_TRUE=
10970
  am__fastdepCCAS_FALSE='#'
10971
else
10972
  am__fastdepCCAS_TRUE='#'
10973
  am__fastdepCCAS_FALSE=
10974
fi
10975
 
10976
 
10977
if test "x$CC" != xcc; then
10978 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10979 90 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10980
else
10981 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10982 90 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10983
fi
10984
set dummy $CC; ac_cc=`$as_echo "$2" |
10985
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10986 625 jeremybenn
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
10987 90 jeremybenn
  $as_echo_n "(cached) " >&6
10988
else
10989 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 90 jeremybenn
/* end confdefs.h.  */
10991
 
10992
int
10993
main ()
10994
{
10995
 
10996
  ;
10997
  return 0;
10998
}
10999
_ACEOF
11000
# Make sure it works both with $CC and with simple cc.
11001
# We do the test twice because some compilers refuse to overwrite an
11002
# existing .o file with -o, though they will create one.
11003
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11004
rm -f conftest2.*
11005 346 jeremybenn
if { { case "(($ac_try" in
11006 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007
  *) ac_try_echo=$ac_try;;
11008
esac
11009 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11010
$as_echo "$ac_try_echo"; } >&5
11011 90 jeremybenn
  (eval "$ac_try") 2>&5
11012
  ac_status=$?
11013 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11014
  test $ac_status = 0; } &&
11015
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11016 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017
  *) ac_try_echo=$ac_try;;
11018
esac
11019 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11020
$as_echo "$ac_try_echo"; } >&5
11021 90 jeremybenn
  (eval "$ac_try") 2>&5
11022
  ac_status=$?
11023 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024
  test $ac_status = 0; };
11025 90 jeremybenn
then
11026
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11027
  if test "x$CC" != xcc; then
11028
    # Test first that cc exists at all.
11029
    if { ac_try='cc -c conftest.$ac_ext >&5'
11030 346 jeremybenn
  { { case "(($ac_try" in
11031 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032
  *) ac_try_echo=$ac_try;;
11033
esac
11034 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11035
$as_echo "$ac_try_echo"; } >&5
11036 90 jeremybenn
  (eval "$ac_try") 2>&5
11037
  ac_status=$?
11038 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039
  test $ac_status = 0; }; }; then
11040 90 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11041
      rm -f conftest2.*
11042 346 jeremybenn
      if { { case "(($ac_try" in
11043 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044
  *) ac_try_echo=$ac_try;;
11045
esac
11046 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11047
$as_echo "$ac_try_echo"; } >&5
11048 90 jeremybenn
  (eval "$ac_try") 2>&5
11049
  ac_status=$?
11050 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051
  test $ac_status = 0; } &&
11052
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11053 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054
  *) ac_try_echo=$ac_try;;
11055
esac
11056 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11057
$as_echo "$ac_try_echo"; } >&5
11058 90 jeremybenn
  (eval "$ac_try") 2>&5
11059
  ac_status=$?
11060 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11061
  test $ac_status = 0; };
11062 90 jeremybenn
      then
11063
        # cc works too.
11064
        :
11065
      else
11066
        # cc exists but doesn't like -o.
11067
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11068
      fi
11069
    fi
11070
  fi
11071
else
11072
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11073
fi
11074
rm -f core conftest*
11075
 
11076
fi
11077
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11078 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 90 jeremybenn
$as_echo "yes" >&6; }
11080
else
11081 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 90 jeremybenn
$as_echo "no" >&6; }
11083
 
11084 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11085 90 jeremybenn
 
11086
fi
11087
 
11088
# FIXME: we rely on the cache variable name because
11089
# there is no other way.
11090
set dummy $CC
11091
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11092
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11093
if test "$am_t" != yes; then
11094
   # Losing compiler, so override with the script.
11095
   # FIXME: It is wrong to rewrite CC.
11096
   # But if we don't then we get into trouble of one sort or another.
11097
   # A longer-term fix would be to have automake use am__CC in this case,
11098
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11099
   CC="$am_aux_dir/compile $CC"
11100
fi
11101
 
11102
 
11103
 
11104
 
11105
# Specify our baseline CFLAGS
11106 458 julius
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/except"
11107 90 jeremybenn
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11108
 
11109
# Flag to specify whether we want optimization when checking
11110 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimizations when checking" >&5
11111 90 jeremybenn
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11112 458 julius
# Check whether --enable-check-opt was given.
11113
if test "${enable_check_opt+set}" = set; then :
11114
  enableval=$enable_check_opt;
11115 90 jeremybenn
    case "$enableval" in
11116
        yes)
11117
            CFLAGS="$CFLAGS -O"
11118
            ;;
11119
        *)
11120
            CFLAGS="$CFLAGS -O$enableval"
11121
            ;;
11122
    esac
11123
 
11124
fi
11125
 
11126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_check_opt-default}" >&5
11127 90 jeremybenn
$as_echo "${enable_check_opt-default}" >&6; }
11128
 
11129
 
11130
 
11131
 
11132
# This is GNU compliant source and uses GNU libraries
11133
 
11134 346 jeremybenn
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11135 90 jeremybenn
 
11136
 
11137
# Check for functions doesn't work, since we can't execute code. Define some
11138
# we know are definitely there in OR1K GCC. This is all to allow reused
11139
# headers from the main code body (for the memory controller tests
11140
# principally) to work.
11141
 
11142 346 jeremybenn
$as_echo "#define HAVE_STRNDUP /**/" >>confdefs.h
11143 90 jeremybenn
 
11144
 
11145 346 jeremybenn
$as_echo "#define HAVE_ISBLANK /**/" >>confdefs.h
11146 90 jeremybenn
 
11147
 
11148
# Check for headers
11149
for ac_header in sys/types.h inttypes.h
11150 346 jeremybenn
do :
11151
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11153 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11154 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
11155
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11156
_ACEOF
11157
 
11158
fi
11159
 
11160
done
11161
 
11162
 
11163
# check for types and sizes
11164 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
11165
"
11166 625 jeremybenn
if test "x$ac_cv_type_uint8_t" = xyes; then :
11167 90 jeremybenn
 
11168
cat >>confdefs.h <<_ACEOF
11169
#define HAVE_UINT8_T 1
11170
_ACEOF
11171
 
11172
 
11173
fi
11174 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
11175
"
11176 625 jeremybenn
if test "x$ac_cv_type_uint16_t" = xyes; then :
11177 90 jeremybenn
 
11178
cat >>confdefs.h <<_ACEOF
11179
#define HAVE_UINT16_T 1
11180
_ACEOF
11181
 
11182
 
11183
fi
11184 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
11185
"
11186 625 jeremybenn
if test "x$ac_cv_type_uint32_t" = xyes; then :
11187 90 jeremybenn
 
11188
cat >>confdefs.h <<_ACEOF
11189
#define HAVE_UINT32_T 1
11190
_ACEOF
11191
 
11192
 
11193
fi
11194
 
11195 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
11196
"
11197 625 jeremybenn
if test "x$ac_cv_type_int8_t" = xyes; then :
11198 90 jeremybenn
 
11199
cat >>confdefs.h <<_ACEOF
11200
#define HAVE_INT8_T 1
11201
_ACEOF
11202
 
11203
 
11204
fi
11205 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
11206
"
11207 625 jeremybenn
if test "x$ac_cv_type_int16_t" = xyes; then :
11208 90 jeremybenn
 
11209
cat >>confdefs.h <<_ACEOF
11210
#define HAVE_INT16_T 1
11211
_ACEOF
11212
 
11213
 
11214
fi
11215 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
11216
"
11217 625 jeremybenn
if test "x$ac_cv_type_int32_t" = xyes; then :
11218 90 jeremybenn
 
11219
cat >>confdefs.h <<_ACEOF
11220
#define HAVE_INT32_T 1
11221
_ACEOF
11222
 
11223
 
11224
fi
11225
 
11226
 
11227
# Checking sizeof doesn't really work, since it needs to run compiled code. So
11228
# we do it by hand.
11229
 
11230 346 jeremybenn
$as_echo "#define SIZEOF_CHAR 1" >>confdefs.h
11231 90 jeremybenn
 
11232
 
11233 346 jeremybenn
$as_echo "#define SIZEOF_SHORT 2" >>confdefs.h
11234 90 jeremybenn
 
11235
 
11236 346 jeremybenn
$as_echo "#define SIZEOF_INT 4" >>confdefs.h
11237 90 jeremybenn
 
11238
 
11239 346 jeremybenn
$as_echo "#define SIZEOF_LONG 4" >>confdefs.h
11240 90 jeremybenn
 
11241
 
11242 556 julius
ac_config_files="$ac_config_files Makefile acv-gpio/Makefile acv-uart/Makefile basic/Makefile cache/Makefile cbasic/Makefile cfg/Makefile dhry/Makefile dmatest/Makefile eth/Makefile except/Makefile except-test/Makefile exit/Makefile ext/Makefile fbtest/Makefile fp/Makefile testfloat/Makefile functest/Makefile flag/Makefile int-test/Makefile int-logger/Makefile inst-set-test/Makefile kbdtest/Makefile local-global/Makefile loop/Makefile mc-async/Makefile mc-dram/Makefile mc-ssram/Makefile mc-sync/Makefile mc-common/Makefile mem-test/Makefile mmu/Makefile mul/Makefile mycompress/Makefile support/Makefile tick/Makefile uos/Makefile upcalls/Makefile pcu/Makefile"
11243 90 jeremybenn
 
11244
 
11245
cat >confcache <<\_ACEOF
11246
# This file is a shell script that caches the results of configure
11247
# tests run on this system so they can be shared between configure
11248
# scripts and configure runs, see configure's option --config-cache.
11249
# It is not useful on other systems.  If it contains results you don't
11250
# want to keep, you may remove or edit it.
11251
#
11252
# config.status only pays attention to the cache file if you give it
11253
# the --recheck option to rerun configure.
11254
#
11255
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11256
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11257
# following values.
11258
 
11259
_ACEOF
11260
 
11261
# The following way of writing the cache mishandles newlines in values,
11262
# but we know of no workaround that is simple, portable, and efficient.
11263
# So, we kill variables containing newlines.
11264
# Ultrix sh set writes to stderr and can't be redirected directly,
11265
# and sets the high bit in the cache file unless we assign to the vars.
11266
(
11267
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11268
    eval ac_val=\$$ac_var
11269
    case $ac_val in #(
11270
    *${as_nl}*)
11271
      case $ac_var in #(
11272 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11273 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11274
      esac
11275
      case $ac_var in #(
11276
      _ | IFS | as_nl) ;; #(
11277
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11278 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
11279 90 jeremybenn
      esac ;;
11280
    esac
11281
  done
11282
 
11283
  (set) 2>&1 |
11284
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11285
    *${as_nl}ac_space=\ *)
11286 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
11287
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11288 90 jeremybenn
      sed -n \
11289
        "s/'/'\\\\''/g;
11290
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11291
      ;; #(
11292
    *)
11293
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11294
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11295
      ;;
11296
    esac |
11297
    sort
11298
) |
11299
  sed '
11300
     /^ac_cv_env_/b end
11301
     t clear
11302
     :clear
11303
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11304
     t end
11305
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11306
     :end' >>confcache
11307
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11308
  if test -w "$cache_file"; then
11309 625 jeremybenn
    if test "x$cache_file" != "x/dev/null"; then
11310 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11311 90 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
11312 625 jeremybenn
      if test ! -f "$cache_file" || test -h "$cache_file"; then
11313
        cat confcache >"$cache_file"
11314
      else
11315
        case $cache_file in #(
11316
        */* | ?:*)
11317
          mv -f confcache "$cache_file"$$ &&
11318
          mv -f "$cache_file"$$ "$cache_file" ;; #(
11319
        *)
11320
          mv -f confcache "$cache_file" ;;
11321
        esac
11322
      fi
11323
    fi
11324 90 jeremybenn
  else
11325 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11326 90 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11327
  fi
11328
fi
11329
rm -f confcache
11330
 
11331
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11332
# Let make expand exec_prefix.
11333
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11334
 
11335
DEFS=-DHAVE_CONFIG_H
11336
 
11337
ac_libobjs=
11338
ac_ltlibobjs=
11339 625 jeremybenn
U=
11340 90 jeremybenn
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11341
  # 1. Remove the extension, and $U if already installed.
11342
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11343
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11344
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11345
  #    will be set to the directory where LIBOBJS objects are built.
11346 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11347
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11348 90 jeremybenn
done
11349
LIBOBJS=$ac_libobjs
11350
 
11351
LTLIBOBJS=$ac_ltlibobjs
11352
 
11353
 
11354
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11355 625 jeremybenn
  as_fn_error $? "conditional \"AMDEP\" was never defined.
11356 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11357 90 jeremybenn
fi
11358
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11359 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11360 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11361 90 jeremybenn
fi
11362
 if test -n "$EXEEXT"; then
11363
  am__EXEEXT_TRUE=
11364
  am__EXEEXT_FALSE='#'
11365
else
11366
  am__EXEEXT_TRUE='#'
11367
  am__EXEEXT_FALSE=
11368
fi
11369
 
11370
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
11371 625 jeremybenn
  as_fn_error $? "conditional \"BUILD_ALL_TESTS\" was never defined.
11372 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11373 90 jeremybenn
fi
11374
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
11375 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
11376 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11377 90 jeremybenn
fi
11378
 
11379 625 jeremybenn
: "${CONFIG_STATUS=./config.status}"
11380 90 jeremybenn
ac_write_fail=0
11381
ac_clean_files_save=$ac_clean_files
11382
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11383 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11384 90 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11385 346 jeremybenn
as_write_fail=0
11386
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11387 90 jeremybenn
#! $SHELL
11388
# Generated by $as_me.
11389
# Run this file to recreate the current configuration.
11390
# Compiler output produced by configure, useful for debugging
11391
# configure, is in config.log if it exists.
11392
 
11393
debug=false
11394
ac_cs_recheck=false
11395
ac_cs_silent=false
11396 346 jeremybenn
 
11397 90 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
11398 346 jeremybenn
export SHELL
11399
_ASEOF
11400
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11401
## -------------------- ##
11402
## M4sh Initialization. ##
11403
## -------------------- ##
11404 90 jeremybenn
 
11405
# Be more Bourne compatible
11406
DUALCASE=1; export DUALCASE # for MKS sh
11407 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11408 90 jeremybenn
  emulate sh
11409
  NULLCMD=:
11410
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11411
  # is contrary to our usage.  Disable this feature.
11412
  alias -g '${1+"$@"}'='"$@"'
11413
  setopt NO_GLOB_SUBST
11414
else
11415 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
11416
  *posix*) :
11417
    set -o posix ;; #(
11418
  *) :
11419
     ;;
11420 90 jeremybenn
esac
11421
fi
11422
 
11423
 
11424
as_nl='
11425
'
11426
export as_nl
11427
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11428
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11429
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11430
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11431 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
11432
# but without wasting forks for bash or zsh.
11433
if test -z "$BASH_VERSION$ZSH_VERSION" \
11434
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11435
  as_echo='print -r --'
11436
  as_echo_n='print -rn --'
11437
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11438 90 jeremybenn
  as_echo='printf %s\n'
11439
  as_echo_n='printf %s'
11440
else
11441
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11442
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11443
    as_echo_n='/usr/ucb/echo -n'
11444
  else
11445
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11446
    as_echo_n_body='eval
11447
      arg=$1;
11448 346 jeremybenn
      case $arg in #(
11449 90 jeremybenn
      *"$as_nl"*)
11450
        expr "X$arg" : "X\\(.*\\)$as_nl";
11451
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11452
      esac;
11453
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11454
    '
11455
    export as_echo_n_body
11456
    as_echo_n='sh -c $as_echo_n_body as_echo'
11457
  fi
11458
  export as_echo_body
11459
  as_echo='sh -c $as_echo_body as_echo'
11460
fi
11461
 
11462
# The user is always right.
11463
if test "${PATH_SEPARATOR+set}" != set; then
11464
  PATH_SEPARATOR=:
11465
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11466
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11467
      PATH_SEPARATOR=';'
11468
  }
11469
fi
11470
 
11471
 
11472
# IFS
11473
# We need space, tab and new line, in precisely that order.  Quoting is
11474
# there to prevent editors from complaining about space-tab.
11475
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11476
# splitting by setting IFS to empty value.)
11477
IFS=" ""        $as_nl"
11478
 
11479
# Find who we are.  Look in the path if we contain no directory separator.
11480 625 jeremybenn
as_myself=
11481 346 jeremybenn
case $0 in #((
11482 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
11483
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484
for as_dir in $PATH
11485
do
11486
  IFS=$as_save_IFS
11487
  test -z "$as_dir" && as_dir=.
11488 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11489
  done
11490 90 jeremybenn
IFS=$as_save_IFS
11491
 
11492
     ;;
11493
esac
11494
# We did not find ourselves, most probably we were run as `sh COMMAND'
11495
# in which case we are not to be found in the path.
11496
if test "x$as_myself" = x; then
11497
  as_myself=$0
11498
fi
11499
if test ! -f "$as_myself"; then
11500
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11501 346 jeremybenn
  exit 1
11502 90 jeremybenn
fi
11503
 
11504 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
11505
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11506
# suppresses any "Segmentation fault" message there.  '((' could
11507
# trigger a bug in pdksh 5.2.14.
11508
for as_var in BASH_ENV ENV MAIL MAILPATH
11509
do eval test x\${$as_var+set} = xset \
11510
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11511 90 jeremybenn
done
11512
PS1='$ '
11513
PS2='> '
11514
PS4='+ '
11515
 
11516
# NLS nuisances.
11517
LC_ALL=C
11518
export LC_ALL
11519
LANGUAGE=C
11520
export LANGUAGE
11521
 
11522 346 jeremybenn
# CDPATH.
11523
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11524
 
11525
 
11526 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
11527
# ----------------------------------------
11528 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11529
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11530 625 jeremybenn
# script with STATUS, using 1 if that was 0.
11531 346 jeremybenn
as_fn_error ()
11532
{
11533 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
11534
  if test "$4"; then
11535
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11536
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11537 346 jeremybenn
  fi
11538 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
11539 346 jeremybenn
  as_fn_exit $as_status
11540
} # as_fn_error
11541
 
11542
 
11543
# as_fn_set_status STATUS
11544
# -----------------------
11545
# Set $? to STATUS, without forking.
11546
as_fn_set_status ()
11547
{
11548
  return $1
11549
} # as_fn_set_status
11550
 
11551
# as_fn_exit STATUS
11552
# -----------------
11553
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11554
as_fn_exit ()
11555
{
11556
  set +e
11557
  as_fn_set_status $1
11558
  exit $1
11559
} # as_fn_exit
11560
 
11561
# as_fn_unset VAR
11562
# ---------------
11563
# Portably unset VAR.
11564
as_fn_unset ()
11565
{
11566
  { eval $1=; unset $1;}
11567
}
11568
as_unset=as_fn_unset
11569
# as_fn_append VAR VALUE
11570
# ----------------------
11571
# Append the text in VALUE to the end of the definition contained in VAR. Take
11572
# advantage of any shell optimizations that allow amortized linear growth over
11573
# repeated appends, instead of the typical quadratic growth present in naive
11574
# implementations.
11575
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11576
  eval 'as_fn_append ()
11577
  {
11578
    eval $1+=\$2
11579
  }'
11580
else
11581
  as_fn_append ()
11582
  {
11583
    eval $1=\$$1\$2
11584
  }
11585
fi # as_fn_append
11586
 
11587
# as_fn_arith ARG...
11588
# ------------------
11589
# Perform arithmetic evaluation on the ARGs, and store the result in the
11590
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11591
# must be portable across $(()) and expr.
11592
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11593
  eval 'as_fn_arith ()
11594
  {
11595
    as_val=$(( $* ))
11596
  }'
11597
else
11598
  as_fn_arith ()
11599
  {
11600
    as_val=`expr "$@" || test $? -eq 1`
11601
  }
11602
fi # as_fn_arith
11603
 
11604
 
11605 90 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
11606
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11607
  as_expr=expr
11608
else
11609
  as_expr=false
11610
fi
11611
 
11612
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11613
  as_basename=basename
11614
else
11615
  as_basename=false
11616
fi
11617
 
11618 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11619
  as_dirname=dirname
11620
else
11621
  as_dirname=false
11622
fi
11623 90 jeremybenn
 
11624
as_me=`$as_basename -- "$0" ||
11625
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11626
         X"$0" : 'X\(//\)$' \| \
11627
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11628
$as_echo X/"$0" |
11629
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11630
            s//\1/
11631
            q
11632
          }
11633
          /^X\/\(\/\/\)$/{
11634
            s//\1/
11635
            q
11636
          }
11637
          /^X\/\(\/\).*/{
11638
            s//\1/
11639
            q
11640
          }
11641
          s/.*/./; q'`
11642
 
11643 346 jeremybenn
# Avoid depending upon Character Ranges.
11644
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11645
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11646
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11647
as_cr_digits='0123456789'
11648
as_cr_alnum=$as_cr_Letters$as_cr_digits
11649 90 jeremybenn
 
11650
ECHO_C= ECHO_N= ECHO_T=
11651 346 jeremybenn
case `echo -n x` in #(((((
11652 90 jeremybenn
-n*)
11653 346 jeremybenn
  case `echo 'xy\c'` in
11654 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11655 346 jeremybenn
  xy)  ECHO_C='\c';;
11656
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11657
       ECHO_T=' ';;
11658 90 jeremybenn
  esac;;
11659
*)
11660
  ECHO_N='-n';;
11661
esac
11662
 
11663
rm -f conf$$ conf$$.exe conf$$.file
11664
if test -d conf$$.dir; then
11665
  rm -f conf$$.dir/conf$$.file
11666
else
11667
  rm -f conf$$.dir
11668
  mkdir conf$$.dir 2>/dev/null
11669
fi
11670
if (echo >conf$$.file) 2>/dev/null; then
11671
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11672
    as_ln_s='ln -s'
11673
    # ... but there are two gotchas:
11674
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11675
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11676
    # In both cases, we have to default to `cp -p'.
11677
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11678
      as_ln_s='cp -p'
11679
  elif ln conf$$.file conf$$ 2>/dev/null; then
11680
    as_ln_s=ln
11681
  else
11682
    as_ln_s='cp -p'
11683
  fi
11684
else
11685
  as_ln_s='cp -p'
11686
fi
11687
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11688
rmdir conf$$.dir 2>/dev/null
11689
 
11690 346 jeremybenn
 
11691
# as_fn_mkdir_p
11692
# -------------
11693
# Create "$as_dir" as a directory, including parents if necessary.
11694
as_fn_mkdir_p ()
11695
{
11696
 
11697
  case $as_dir in #(
11698
  -*) as_dir=./$as_dir;;
11699
  esac
11700
  test -d "$as_dir" || eval $as_mkdir_p || {
11701
    as_dirs=
11702
    while :; do
11703
      case $as_dir in #(
11704
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11705
      *) as_qdir=$as_dir;;
11706
      esac
11707
      as_dirs="'$as_qdir' $as_dirs"
11708
      as_dir=`$as_dirname -- "$as_dir" ||
11709
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11710
         X"$as_dir" : 'X\(//\)[^/]' \| \
11711
         X"$as_dir" : 'X\(//\)$' \| \
11712
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11713
$as_echo X"$as_dir" |
11714
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11715
            s//\1/
11716
            q
11717
          }
11718
          /^X\(\/\/\)[^/].*/{
11719
            s//\1/
11720
            q
11721
          }
11722
          /^X\(\/\/\)$/{
11723
            s//\1/
11724
            q
11725
          }
11726
          /^X\(\/\).*/{
11727
            s//\1/
11728
            q
11729
          }
11730
          s/.*/./; q'`
11731
      test -d "$as_dir" && break
11732
    done
11733
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11734 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11735 346 jeremybenn
 
11736
 
11737
} # as_fn_mkdir_p
11738 90 jeremybenn
if mkdir -p . 2>/dev/null; then
11739 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
11740 90 jeremybenn
else
11741
  test -d ./-p && rmdir ./-p
11742
  as_mkdir_p=false
11743
fi
11744
 
11745
if test -x / >/dev/null 2>&1; then
11746
  as_test_x='test -x'
11747
else
11748
  if ls -dL / >/dev/null 2>&1; then
11749
    as_ls_L_option=L
11750
  else
11751
    as_ls_L_option=
11752
  fi
11753
  as_test_x='
11754
    eval sh -c '\''
11755
      if test -d "$1"; then
11756
        test -d "$1/.";
11757
      else
11758 346 jeremybenn
        case $1 in #(
11759 90 jeremybenn
        -*)set "./$1";;
11760
        esac;
11761 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11762 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
11763
    '\'' sh
11764
  '
11765
fi
11766
as_executable_p=$as_test_x
11767
 
11768
# Sed expression to map a string onto a valid CPP name.
11769
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11770
 
11771
# Sed expression to map a string onto a valid variable name.
11772
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11773
 
11774
 
11775
exec 6>&1
11776 346 jeremybenn
## ----------------------------------- ##
11777
## Main body of $CONFIG_STATUS script. ##
11778
## ----------------------------------- ##
11779
_ASEOF
11780
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11781 90 jeremybenn
 
11782 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783
# Save the log message, to keep $0 and so on meaningful, and to
11784 90 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
11785
# values after options handling.
11786
ac_log="
11787 625 jeremybenn
This file was extended by or1ksim-testsuite $as_me 2011-08-15, which was
11788
generated by GNU Autoconf 2.68.  Invocation command line was
11789 90 jeremybenn
 
11790
  CONFIG_FILES    = $CONFIG_FILES
11791
  CONFIG_HEADERS  = $CONFIG_HEADERS
11792
  CONFIG_LINKS    = $CONFIG_LINKS
11793
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11794
  $ $0 $@
11795
 
11796
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11797
"
11798
 
11799
_ACEOF
11800
 
11801
case $ac_config_files in *"
11802
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11803
esac
11804
 
11805
case $ac_config_headers in *"
11806
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11807
esac
11808
 
11809
 
11810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11811
# Files that config.status was made for.
11812
config_files="$ac_config_files"
11813
config_headers="$ac_config_headers"
11814
config_commands="$ac_config_commands"
11815
 
11816
_ACEOF
11817
 
11818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819
ac_cs_usage="\
11820 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
11821
from templates according to the current configuration.  Unless the files
11822
and actions are specified as TAGs, all are instantiated by default.
11823 90 jeremybenn
 
11824 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
11825 90 jeremybenn
 
11826
  -h, --help       print this help, then exit
11827
  -V, --version    print version number and configuration settings, then exit
11828 625 jeremybenn
      --config     print configuration, then exit
11829 90 jeremybenn
  -q, --quiet, --silent
11830
                   do not print progress messages
11831
  -d, --debug      don't remove temporary files
11832
      --recheck    update $as_me by reconfiguring in the same conditions
11833
      --file=FILE[:TEMPLATE]
11834
                   instantiate the configuration file FILE
11835
      --header=FILE[:TEMPLATE]
11836
                   instantiate the configuration header FILE
11837
 
11838
Configuration files:
11839
$config_files
11840
 
11841
Configuration headers:
11842
$config_headers
11843
 
11844
Configuration commands:
11845
$config_commands
11846
 
11847 346 jeremybenn
Report bugs to ."
11848 90 jeremybenn
 
11849
_ACEOF
11850
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851 625 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11852 90 jeremybenn
ac_cs_version="\\
11853 625 jeremybenn
or1ksim-testsuite config.status 2011-08-15
11854
configured by $0, generated by GNU Autoconf 2.68,
11855
  with options \\"\$ac_cs_config\\"
11856 90 jeremybenn
 
11857 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
11858 90 jeremybenn
This config.status script is free software; the Free Software Foundation
11859
gives unlimited permission to copy, distribute and modify it."
11860
 
11861
ac_pwd='$ac_pwd'
11862
srcdir='$srcdir'
11863
INSTALL='$INSTALL'
11864
MKDIR_P='$MKDIR_P'
11865
AWK='$AWK'
11866
test -n "\$AWK" || AWK=awk
11867
_ACEOF
11868
 
11869
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11870
# The default lists apply if the user does not specify any file.
11871
ac_need_defaults=:
11872
while test $# != 0
11873
do
11874
  case $1 in
11875 625 jeremybenn
  --*=?*)
11876 90 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11877
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11878
    ac_shift=:
11879
    ;;
11880 625 jeremybenn
  --*=)
11881
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11882
    ac_optarg=
11883
    ac_shift=:
11884
    ;;
11885 90 jeremybenn
  *)
11886
    ac_option=$1
11887
    ac_optarg=$2
11888
    ac_shift=shift
11889
    ;;
11890
  esac
11891
 
11892
  case $ac_option in
11893
  # Handling of the options.
11894
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11895
    ac_cs_recheck=: ;;
11896
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11897
    $as_echo "$ac_cs_version"; exit ;;
11898 625 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
11899
    $as_echo "$ac_cs_config"; exit ;;
11900 90 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
11901
    debug=: ;;
11902
  --file | --fil | --fi | --f )
11903
    $ac_shift
11904
    case $ac_optarg in
11905
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11906 625 jeremybenn
    '') as_fn_error $? "missing file argument" ;;
11907 90 jeremybenn
    esac
11908 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11909 90 jeremybenn
    ac_need_defaults=false;;
11910
  --header | --heade | --head | --hea )
11911
    $ac_shift
11912
    case $ac_optarg in
11913
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11914
    esac
11915 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11916 90 jeremybenn
    ac_need_defaults=false;;
11917
  --he | --h)
11918
    # Conflict between --help and --header
11919 625 jeremybenn
    as_fn_error $? "ambiguous option: \`$1'
11920 346 jeremybenn
Try \`$0 --help' for more information.";;
11921 90 jeremybenn
  --help | --hel | -h )
11922
    $as_echo "$ac_cs_usage"; exit ;;
11923
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11924
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11925
    ac_cs_silent=: ;;
11926
 
11927
  # This is an error.
11928 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$1'
11929 346 jeremybenn
Try \`$0 --help' for more information." ;;
11930 90 jeremybenn
 
11931 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
11932 90 jeremybenn
     ac_need_defaults=false ;;
11933
 
11934
  esac
11935
  shift
11936
done
11937
 
11938
ac_configure_extra_args=
11939
 
11940
if $ac_cs_silent; then
11941
  exec 6>/dev/null
11942
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11943
fi
11944
 
11945
_ACEOF
11946
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11947
if \$ac_cs_recheck; then
11948
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11949
  shift
11950
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11951
  CONFIG_SHELL='$SHELL'
11952
  export CONFIG_SHELL
11953
  exec "\$@"
11954
fi
11955
 
11956
_ACEOF
11957
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11958
exec 5>>config.log
11959
{
11960
  echo
11961
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11962
## Running $as_me. ##
11963
_ASBOX
11964
  $as_echo "$ac_log"
11965
} >&5
11966
 
11967
_ACEOF
11968
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969
#
11970
# INIT-COMMANDS
11971
#
11972
 
11973
 
11974
# The HP-UX ksh and POSIX shell print the target directory to stdout
11975
# if CDPATH is set.
11976
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11977
 
11978
sed_quote_subst='$sed_quote_subst'
11979
double_quote_subst='$double_quote_subst'
11980
delay_variable_subst='$delay_variable_subst'
11981
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11982
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11983
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11984
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11985
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11986
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11987
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11988
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11989
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11990
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11991
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11992
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11993
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11994
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11995
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11996
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11997
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11998
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11999
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12000
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12001
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12002
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12003
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12004
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12005
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12006
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12007
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12008
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12009
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12010
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12011
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12012
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12013
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12014
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12015
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12016
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12017
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12018
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12019
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12020
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12021
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12022
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12023
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12024
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12025
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12026
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12027
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12028
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12029
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12030
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12031
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12032
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12033
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12034
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12035
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12036
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12037
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12038
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12039
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12040
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12041
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12042
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12043
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12044
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12045
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12046
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12047
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12048
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12049
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12050
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12052
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12053
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12054
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12055
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12056
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12057
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12058
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12059
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12060
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12061
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12062
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12063
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12064
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12065
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12066
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12067
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12068
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12069
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12070
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12071
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12072
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12073
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12074
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12075
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12076
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12077
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12078
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12079
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12080
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12081
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12082
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12083
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12084
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12085
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12086
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12087
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12089
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12090
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12091
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12092
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12093
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12094
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12095
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12096
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12097
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12098
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12099
 
12100
LTCC='$LTCC'
12101
LTCFLAGS='$LTCFLAGS'
12102
compiler='$compiler_DEFAULT'
12103
 
12104
# Quote evaled strings.
12105
for var in SED \
12106
GREP \
12107
EGREP \
12108
FGREP \
12109
LD \
12110
NM \
12111
LN_S \
12112
lt_SP2NL \
12113
lt_NL2SP \
12114
reload_flag \
12115
OBJDUMP \
12116
deplibs_check_method \
12117
file_magic_cmd \
12118
AR \
12119
AR_FLAGS \
12120
STRIP \
12121
RANLIB \
12122
CC \
12123
CFLAGS \
12124
compiler \
12125
lt_cv_sys_global_symbol_pipe \
12126
lt_cv_sys_global_symbol_to_cdecl \
12127
lt_cv_sys_global_symbol_to_c_name_address \
12128
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12129
SHELL \
12130
ECHO \
12131
lt_prog_compiler_no_builtin_flag \
12132
lt_prog_compiler_wl \
12133
lt_prog_compiler_pic \
12134
lt_prog_compiler_static \
12135
lt_cv_prog_compiler_c_o \
12136
need_locks \
12137
DSYMUTIL \
12138
NMEDIT \
12139
LIPO \
12140
OTOOL \
12141
OTOOL64 \
12142
shrext_cmds \
12143
export_dynamic_flag_spec \
12144
whole_archive_flag_spec \
12145
compiler_needs_object \
12146
with_gnu_ld \
12147
allow_undefined_flag \
12148
no_undefined_flag \
12149
hardcode_libdir_flag_spec \
12150
hardcode_libdir_flag_spec_ld \
12151
hardcode_libdir_separator \
12152
fix_srcfile_path \
12153
exclude_expsyms \
12154
include_expsyms \
12155
file_list_spec \
12156
variables_saved_for_relink \
12157
libname_spec \
12158
library_names_spec \
12159
soname_spec \
12160
finish_eval \
12161
old_striplib \
12162
striplib; do
12163
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12164
    *[\\\\\\\`\\"\\\$]*)
12165
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12166
      ;;
12167
    *)
12168
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12169
      ;;
12170
    esac
12171
done
12172
 
12173
# Double-quote double-evaled strings.
12174
for var in reload_cmds \
12175
old_postinstall_cmds \
12176
old_postuninstall_cmds \
12177
old_archive_cmds \
12178
extract_expsyms_cmds \
12179
old_archive_from_new_cmds \
12180
old_archive_from_expsyms_cmds \
12181
archive_cmds \
12182
archive_expsym_cmds \
12183
module_cmds \
12184
module_expsym_cmds \
12185
export_symbols_cmds \
12186
prelink_cmds \
12187
postinstall_cmds \
12188
postuninstall_cmds \
12189
finish_cmds \
12190
sys_lib_search_path_spec \
12191
sys_lib_dlsearch_path_spec; do
12192
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12193
    *[\\\\\\\`\\"\\\$]*)
12194
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12195
      ;;
12196
    *)
12197
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12198
      ;;
12199
    esac
12200
done
12201
 
12202
# Fix-up fallback echo if it was mangled by the above quoting rules.
12203
case \$lt_ECHO in
12204
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12205
  ;;
12206
esac
12207
 
12208
ac_aux_dir='$ac_aux_dir'
12209
xsi_shell='$xsi_shell'
12210
lt_shell_append='$lt_shell_append'
12211
 
12212
# See if we are running on zsh, and set the options which allow our
12213
# commands through without removal of \ escapes INIT.
12214
if test -n "\${ZSH_VERSION+set}" ; then
12215
   setopt NO_GLOB_SUBST
12216
fi
12217
 
12218
 
12219
    PACKAGE='$PACKAGE'
12220
    VERSION='$VERSION'
12221
    TIMESTAMP='$TIMESTAMP'
12222
    RM='$RM'
12223
    ofile='$ofile'
12224
 
12225
 
12226
 
12227
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12228
 
12229
_ACEOF
12230
 
12231
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12232
 
12233
# Handling of arguments.
12234
for ac_config_target in $ac_config_targets
12235
do
12236
  case $ac_config_target in
12237
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12238
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12239
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12240
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12241
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
12242
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
12243
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
12244
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
12245
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
12246
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
12247
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
12248
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
12249
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
12250
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
12251
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
12252
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
12253
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
12254
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
12255 104 jeremybenn
    "fp/Makefile") CONFIG_FILES="$CONFIG_FILES fp/Makefile" ;;
12256 233 julius
    "testfloat/Makefile") CONFIG_FILES="$CONFIG_FILES testfloat/Makefile" ;;
12257 90 jeremybenn
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
12258
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
12259
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
12260 93 jeremybenn
    "int-logger/Makefile") CONFIG_FILES="$CONFIG_FILES int-logger/Makefile" ;;
12261 90 jeremybenn
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
12262
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
12263
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
12264
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
12265
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
12266
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
12267
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
12268
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
12269
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
12270
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
12271
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
12272
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
12273
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
12274
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
12275
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
12276
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
12277 93 jeremybenn
    "upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES upcalls/Makefile" ;;
12278 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
12279 90 jeremybenn
 
12280 625 jeremybenn
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12281 90 jeremybenn
  esac
12282
done
12283
 
12284
 
12285
# If the user did not use the arguments to specify the items to instantiate,
12286
# then the envvar interface is used.  Set only those that are not.
12287
# We use the long form for the default assignment because of an extremely
12288
# bizarre bug on SunOS 4.1.3.
12289
if $ac_need_defaults; then
12290
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12291
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12292
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12293
fi
12294
 
12295
# Have a temporary directory for convenience.  Make it in the build tree
12296
# simply because there is no reason against having it here, and in addition,
12297
# creating and moving files from /tmp can sometimes cause problems.
12298
# Hook for its removal unless debugging.
12299
# Note that there is a small window in which the directory will not be cleaned:
12300
# after its creation but before its name has been assigned to `$tmp'.
12301
$debug ||
12302
{
12303 625 jeremybenn
  tmp= ac_tmp=
12304 90 jeremybenn
  trap 'exit_status=$?
12305 625 jeremybenn
  : "${ac_tmp:=$tmp}"
12306
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12307 90 jeremybenn
' 0
12308 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
12309 90 jeremybenn
}
12310
# Create a (secure) tmp directory for tmp files.
12311
 
12312
{
12313
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12314 625 jeremybenn
  test -d "$tmp"
12315 90 jeremybenn
}  ||
12316
{
12317
  tmp=./conf$$-$RANDOM
12318
  (umask 077 && mkdir "$tmp")
12319 625 jeremybenn
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12320
ac_tmp=$tmp
12321 90 jeremybenn
 
12322
# Set up the scripts for CONFIG_FILES section.
12323
# No need to generate them if there are no CONFIG_FILES.
12324
# This happens for instance with `./config.status config.h'.
12325
if test -n "$CONFIG_FILES"; then
12326
 
12327
 
12328 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
12329
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12330
# But we know of no other shell where ac_cr would be empty at this
12331
# point, so we can use a bashism as a fallback.
12332
if test "x$ac_cr" = x; then
12333
  eval ac_cr=\$\'\\r\'
12334
fi
12335 90 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12336
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12337 625 jeremybenn
  ac_cs_awk_cr='\\r'
12338 90 jeremybenn
else
12339
  ac_cs_awk_cr=$ac_cr
12340
fi
12341
 
12342 625 jeremybenn
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12343 90 jeremybenn
_ACEOF
12344
 
12345
 
12346
{
12347
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12348
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12349
  echo "_ACEOF"
12350
} >conf$$subs.sh ||
12351 625 jeremybenn
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12352
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12353 90 jeremybenn
ac_delim='%!_!# '
12354
for ac_last_try in false false false false false :; do
12355
  . ./conf$$subs.sh ||
12356 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12357 90 jeremybenn
 
12358
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12359
  if test $ac_delim_n = $ac_delim_num; then
12360
    break
12361
  elif $ac_last_try; then
12362 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12363 90 jeremybenn
  else
12364
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12365
  fi
12366
done
12367
rm -f conf$$subs.sh
12368
 
12369
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12370 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12371 90 jeremybenn
_ACEOF
12372
sed -n '
12373
h
12374
s/^/S["/; s/!.*/"]=/
12375
p
12376
g
12377
s/^[^!]*!//
12378
:repl
12379
t repl
12380
s/'"$ac_delim"'$//
12381
t delim
12382
:nl
12383
h
12384 625 jeremybenn
s/\(.\{148\}\)..*/\1/
12385 90 jeremybenn
t more1
12386
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12387
p
12388
n
12389
b repl
12390
:more1
12391
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12392
p
12393
g
12394
s/.\{148\}//
12395
t nl
12396
:delim
12397
h
12398 625 jeremybenn
s/\(.\{148\}\)..*/\1/
12399 90 jeremybenn
t more2
12400
s/["\\]/\\&/g; s/^/"/; s/$/"/
12401
p
12402
b
12403
:more2
12404
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12405
p
12406
g
12407
s/.\{148\}//
12408
t delim
12409
' 
12410
/^[^""]/{
12411
  N
12412
  s/\n//
12413
}
12414
' >>$CONFIG_STATUS || ac_write_fail=1
12415
rm -f conf$$subs.awk
12416
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12417
_ACAWK
12418 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12419 90 jeremybenn
  for (key in S) S_is_set[key] = 1
12420
  FS = ""
12421
 
12422
}
12423
{
12424
  line = $ 0
12425
  nfields = split(line, field, "@")
12426
  substed = 0
12427
  len = length(field[1])
12428
  for (i = 2; i < nfields; i++) {
12429
    key = field[i]
12430
    keylen = length(key)
12431
    if (S_is_set[key]) {
12432
      value = S[key]
12433
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12434
      len += length(value) + length(field[++i])
12435
      substed = 1
12436
    } else
12437
      len += 1 + keylen
12438
  }
12439
 
12440
  print line
12441
}
12442
 
12443
_ACAWK
12444
_ACEOF
12445
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12446
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12447
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12448
else
12449
  cat
12450 625 jeremybenn
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12451
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12452 90 jeremybenn
_ACEOF
12453
 
12454 625 jeremybenn
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12455
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12456 90 jeremybenn
# trailing colons and then remove the whole line if VPATH becomes empty
12457
# (actually we leave an empty line to preserve line numbers).
12458
if test "x$srcdir" = x.; then
12459 625 jeremybenn
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12460
h
12461
s///
12462
s/^/:/
12463
s/[      ]*$/:/
12464
s/:\$(srcdir):/:/g
12465
s/:\${srcdir}:/:/g
12466
s/:@srcdir@:/:/g
12467
s/^:*//
12468 90 jeremybenn
s/:*$//
12469 625 jeremybenn
x
12470
s/\(=[   ]*\).*/\1/
12471
G
12472
s/\n//
12473 90 jeremybenn
s/^[^=]*=[       ]*$//
12474
}'
12475
fi
12476
 
12477
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12478
fi # test -n "$CONFIG_FILES"
12479
 
12480
# Set up the scripts for CONFIG_HEADERS section.
12481
# No need to generate them if there are no CONFIG_HEADERS.
12482
# This happens for instance with `./config.status Makefile'.
12483
if test -n "$CONFIG_HEADERS"; then
12484 625 jeremybenn
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12485 90 jeremybenn
BEGIN {
12486
_ACEOF
12487
 
12488
# Transform confdefs.h into an awk script `defines.awk', embedded as
12489
# here-document in config.status, that substitutes the proper values into
12490
# config.h.in to produce config.h.
12491
 
12492
# Create a delimiter string that does not exist in confdefs.h, to ease
12493
# handling of long lines.
12494
ac_delim='%!_!# '
12495
for ac_last_try in false false :; do
12496 625 jeremybenn
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12497
  if test -z "$ac_tt"; then
12498 90 jeremybenn
    break
12499
  elif $ac_last_try; then
12500 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12501 90 jeremybenn
  else
12502
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503
  fi
12504
done
12505
 
12506
# For the awk script, D is an array of macro values keyed by name,
12507
# likewise P contains macro parameters if any.  Preserve backslash
12508
# newline sequences.
12509
 
12510
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12511
sed -n '
12512
s/.\{148\}/&'"$ac_delim"'/g
12513
t rset
12514
:rset
12515
s/^[     ]*#[    ]*define[       ][      ]*/ /
12516
t def
12517
d
12518
:def
12519
s/\\$//
12520
t bsnl
12521
s/["\\]/\\&/g
12522
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12523
D["\1"]=" \3"/p
12524
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12525
d
12526
:bsnl
12527
s/["\\]/\\&/g
12528
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12529
D["\1"]=" \3\\\\\\n"\\/p
12530
t cont
12531
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12532
t cont
12533
d
12534
:cont
12535
n
12536
s/.\{148\}/&'"$ac_delim"'/g
12537
t clear
12538
:clear
12539
s/\\$//
12540
t bsnlc
12541
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12542
d
12543
:bsnlc
12544
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12545
b cont
12546
' 
12547
s/'"$ac_delim"'/"\\\
12548
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12549
 
12550
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12551
  for (key in D) D_is_set[key] = 1
12552
  FS = ""
12553
}
12554
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12555
  line = \$ 0
12556
  split(line, arg, " ")
12557
  if (arg[1] == "#") {
12558
    defundef = arg[2]
12559
    mac1 = arg[3]
12560
  } else {
12561
    defundef = substr(arg[1], 2)
12562
    mac1 = arg[2]
12563
  }
12564
  split(mac1, mac2, "(") #)
12565
  macro = mac2[1]
12566
  prefix = substr(line, 1, index(line, defundef) - 1)
12567
  if (D_is_set[macro]) {
12568
    # Preserve the white space surrounding the "#".
12569
    print prefix "define", macro P[macro] D[macro]
12570
    next
12571
  } else {
12572
    # Replace #undef with comments.  This is necessary, for example,
12573
    # in the case of _POSIX_SOURCE, which is predefined and required
12574
    # on some systems where configure will not decide to define it.
12575
    if (defundef == "undef") {
12576
      print "/*", prefix defundef, macro, "*/"
12577
      next
12578
    }
12579
  }
12580
}
12581
{ print }
12582
_ACAWK
12583
_ACEOF
12584
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 625 jeremybenn
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12586 90 jeremybenn
fi # test -n "$CONFIG_HEADERS"
12587
 
12588
 
12589
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12590
shift
12591
for ac_tag
12592
do
12593
  case $ac_tag in
12594
  :[FHLC]) ac_mode=$ac_tag; continue;;
12595
  esac
12596
  case $ac_mode$ac_tag in
12597
  :[FHL]*:*);;
12598 625 jeremybenn
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12599 90 jeremybenn
  :[FH]-) ac_tag=-:-;;
12600
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12601
  esac
12602
  ac_save_IFS=$IFS
12603
  IFS=:
12604
  set x $ac_tag
12605
  IFS=$ac_save_IFS
12606
  shift
12607
  ac_file=$1
12608
  shift
12609
 
12610
  case $ac_mode in
12611
  :L) ac_source=$1;;
12612
  :[FH])
12613
    ac_file_inputs=
12614
    for ac_f
12615
    do
12616
      case $ac_f in
12617 625 jeremybenn
      -) ac_f="$ac_tmp/stdin";;
12618 90 jeremybenn
      *) # Look for the file first in the build tree, then in the source tree
12619
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12620
         # because $ac_f cannot contain `:'.
12621
         test -f "$ac_f" ||
12622
           case $ac_f in
12623
           [\\/$]*) false;;
12624
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12625
           esac ||
12626 625 jeremybenn
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12627 90 jeremybenn
      esac
12628
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12629 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
12630 90 jeremybenn
    done
12631
 
12632
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12633
    # use $as_me), people would be surprised to read:
12634
    #    /* config.h.  Generated by config.status.  */
12635
    configure_input='Generated from '`
12636
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12637
        `' by configure.'
12638
    if test x"$ac_file" != x-; then
12639
      configure_input="$ac_file.  $configure_input"
12640 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12641 90 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
12642
    fi
12643
    # Neutralize special characters interpreted by sed in replacement strings.
12644
    case $configure_input in #(
12645
    *\&* | *\|* | *\\* )
12646
       ac_sed_conf_input=`$as_echo "$configure_input" |
12647
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12648
    *) ac_sed_conf_input=$configure_input;;
12649
    esac
12650
 
12651
    case $ac_tag in
12652 625 jeremybenn
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12653
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12654 90 jeremybenn
    esac
12655
    ;;
12656
  esac
12657
 
12658
  ac_dir=`$as_dirname -- "$ac_file" ||
12659
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12660
         X"$ac_file" : 'X\(//\)[^/]' \| \
12661
         X"$ac_file" : 'X\(//\)$' \| \
12662
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12663
$as_echo X"$ac_file" |
12664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12665
            s//\1/
12666
            q
12667
          }
12668
          /^X\(\/\/\)[^/].*/{
12669
            s//\1/
12670
            q
12671
          }
12672
          /^X\(\/\/\)$/{
12673
            s//\1/
12674
            q
12675
          }
12676
          /^X\(\/\).*/{
12677
            s//\1/
12678
            q
12679
          }
12680
          s/.*/./; q'`
12681 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
12682 90 jeremybenn
  ac_builddir=.
12683
 
12684
case "$ac_dir" in
12685
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12686
*)
12687
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12688
  # A ".." for each directory in $ac_dir_suffix.
12689
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12690
  case $ac_top_builddir_sub in
12691
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12692
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12693
  esac ;;
12694
esac
12695
ac_abs_top_builddir=$ac_pwd
12696
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12697
# for backward compatibility:
12698
ac_top_builddir=$ac_top_build_prefix
12699
 
12700
case $srcdir in
12701
  .)  # We are building in place.
12702
    ac_srcdir=.
12703
    ac_top_srcdir=$ac_top_builddir_sub
12704
    ac_abs_top_srcdir=$ac_pwd ;;
12705
  [\\/]* | ?:[\\/]* )  # Absolute name.
12706
    ac_srcdir=$srcdir$ac_dir_suffix;
12707
    ac_top_srcdir=$srcdir
12708
    ac_abs_top_srcdir=$srcdir ;;
12709
  *) # Relative name.
12710
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12711
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12712
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12713
esac
12714
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12715
 
12716
 
12717
  case $ac_mode in
12718
  :F)
12719
  #
12720
  # CONFIG_FILE
12721
  #
12722
 
12723
  case $INSTALL in
12724
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12725
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12726
  esac
12727
  ac_MKDIR_P=$MKDIR_P
12728
  case $MKDIR_P in
12729
  [\\/$]* | ?:[\\/]* ) ;;
12730
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12731
  esac
12732
_ACEOF
12733
 
12734
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12735
# If the template does not know about datarootdir, expand it.
12736
# FIXME: This hack should be removed a few years after 2.60.
12737
ac_datarootdir_hack=; ac_datarootdir_seen=
12738
ac_sed_dataroot='
12739
/datarootdir/ {
12740
  p
12741
  q
12742
}
12743
/@datadir@/p
12744
/@docdir@/p
12745
/@infodir@/p
12746
/@localedir@/p
12747 346 jeremybenn
/@mandir@/p'
12748 90 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12749
*datarootdir*) ac_datarootdir_seen=yes;;
12750
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12751 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12752 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12753
_ACEOF
12754
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12755
  ac_datarootdir_hack='
12756
  s&@datadir@&$datadir&g
12757
  s&@docdir@&$docdir&g
12758
  s&@infodir@&$infodir&g
12759
  s&@localedir@&$localedir&g
12760
  s&@mandir@&$mandir&g
12761 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
12762 90 jeremybenn
esac
12763
_ACEOF
12764
 
12765
# Neutralize VPATH when `$srcdir' = `.'.
12766
# Shell code in configure.ac might set extrasub.
12767
# FIXME: do we really want to maintain this feature?
12768
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12769
ac_sed_extra="$ac_vpsub
12770
$extrasub
12771
_ACEOF
12772
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773
:t
12774
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12775
s|@configure_input@|$ac_sed_conf_input|;t t
12776
s&@top_builddir@&$ac_top_builddir_sub&;t t
12777
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12778
s&@srcdir@&$ac_srcdir&;t t
12779
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12780
s&@top_srcdir@&$ac_top_srcdir&;t t
12781
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12782
s&@builddir@&$ac_builddir&;t t
12783
s&@abs_builddir@&$ac_abs_builddir&;t t
12784
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12785
s&@INSTALL@&$ac_INSTALL&;t t
12786
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12787
$ac_datarootdir_hack
12788
"
12789 625 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12790
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12791 90 jeremybenn
 
12792
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12793 625 jeremybenn
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12794
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12795
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12796 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12797 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&5
12798 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12799 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&2;}
12800 90 jeremybenn
 
12801 625 jeremybenn
  rm -f "$ac_tmp/stdin"
12802 90 jeremybenn
  case $ac_file in
12803 625 jeremybenn
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12804
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12805 90 jeremybenn
  esac \
12806 625 jeremybenn
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12807 90 jeremybenn
 ;;
12808
  :H)
12809
  #
12810
  # CONFIG_HEADER
12811
  #
12812
  if test x"$ac_file" != x-; then
12813
    {
12814
      $as_echo "/* $configure_input  */" \
12815 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12816
    } >"$ac_tmp/config.h" \
12817
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12818
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12819 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12820 90 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12821
    else
12822
      rm -f "$ac_file"
12823 625 jeremybenn
      mv "$ac_tmp/config.h" "$ac_file" \
12824
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12825 90 jeremybenn
    fi
12826
  else
12827
    $as_echo "/* $configure_input  */" \
12828 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12829
      || as_fn_error $? "could not create -" "$LINENO" 5
12830 90 jeremybenn
  fi
12831
# Compute "$ac_file"'s index in $config_headers.
12832
_am_arg="$ac_file"
12833
_am_stamp_count=1
12834
for _am_header in $config_headers :; do
12835
  case $_am_header in
12836
    $_am_arg | $_am_arg:* )
12837
      break ;;
12838
    * )
12839
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12840
  esac
12841
done
12842
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12843
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844
         X"$_am_arg" : 'X\(//\)[^/]' \| \
12845
         X"$_am_arg" : 'X\(//\)$' \| \
12846
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12847
$as_echo X"$_am_arg" |
12848
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12849
            s//\1/
12850
            q
12851
          }
12852
          /^X\(\/\/\)[^/].*/{
12853
            s//\1/
12854
            q
12855
          }
12856
          /^X\(\/\/\)$/{
12857
            s//\1/
12858
            q
12859
          }
12860
          /^X\(\/\).*/{
12861
            s//\1/
12862
            q
12863
          }
12864
          s/.*/./; q'`/stamp-h$_am_stamp_count
12865
 ;;
12866
 
12867 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12868 90 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
12869
 ;;
12870
  esac
12871
 
12872
 
12873
  case $ac_file$ac_mode in
12874
    "libtool":C)
12875
 
12876
    # See if we are running on zsh, and set the options which allow our
12877
    # commands through without removal of \ escapes.
12878
    if test -n "${ZSH_VERSION+set}" ; then
12879
      setopt NO_GLOB_SUBST
12880
    fi
12881
 
12882
    cfgfile="${ofile}T"
12883
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12884
    $RM "$cfgfile"
12885
 
12886
    cat <<_LT_EOF >> "$cfgfile"
12887
#! $SHELL
12888
 
12889
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12890
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12891
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12892
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12893
#
12894
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12895
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12896
#   Written by Gordon Matzigkeit, 1996
12897
#
12898
#   This file is part of GNU Libtool.
12899
#
12900
# GNU Libtool is free software; you can redistribute it and/or
12901
# modify it under the terms of the GNU General Public License as
12902
# published by the Free Software Foundation; either version 2 of
12903
# the License, or (at your option) any later version.
12904
#
12905
# As a special exception to the GNU General Public License,
12906
# if you distribute this file as part of a program or library that
12907
# is built using GNU Libtool, you may include this file under the
12908
# same distribution terms that you use for the rest of that program.
12909
#
12910
# GNU Libtool is distributed in the hope that it will be useful,
12911
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12912
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12913
# GNU General Public License for more details.
12914
#
12915
# You should have received a copy of the GNU General Public License
12916
# along with GNU Libtool; see the file COPYING.  If not, a copy
12917
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12918
# obtained by writing to the Free Software Foundation, Inc.,
12919
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12920
 
12921
 
12922
# The names of the tagged configurations supported by this script.
12923
available_tags=""
12924
 
12925
# ### BEGIN LIBTOOL CONFIG
12926
 
12927
# Which release of libtool.m4 was used?
12928
macro_version=$macro_version
12929
macro_revision=$macro_revision
12930
 
12931
# Whether or not to build shared libraries.
12932
build_libtool_libs=$enable_shared
12933
 
12934
# Whether or not to build static libraries.
12935
build_old_libs=$enable_static
12936
 
12937
# What type of objects to build.
12938
pic_mode=$pic_mode
12939
 
12940
# Whether or not to optimize for fast installation.
12941
fast_install=$enable_fast_install
12942
 
12943
# The host system.
12944
host_alias=$host_alias
12945
host=$host
12946
host_os=$host_os
12947
 
12948
# The build system.
12949
build_alias=$build_alias
12950
build=$build
12951
build_os=$build_os
12952
 
12953
# A sed program that does not truncate output.
12954
SED=$lt_SED
12955
 
12956
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12957
Xsed="\$SED -e 1s/^X//"
12958
 
12959
# A grep program that handles long lines.
12960
GREP=$lt_GREP
12961
 
12962
# An ERE matcher.
12963
EGREP=$lt_EGREP
12964
 
12965
# A literal string matcher.
12966
FGREP=$lt_FGREP
12967
 
12968
# A BSD- or MS-compatible name lister.
12969
NM=$lt_NM
12970
 
12971
# Whether we need soft or hard links.
12972
LN_S=$lt_LN_S
12973
 
12974
# What is the maximum length of a command?
12975
max_cmd_len=$max_cmd_len
12976
 
12977
# Object file suffix (normally "o").
12978
objext=$ac_objext
12979
 
12980
# Executable file suffix (normally "").
12981
exeext=$exeext
12982
 
12983
# whether the shell understands "unset".
12984
lt_unset=$lt_unset
12985
 
12986
# turn spaces into newlines.
12987
SP2NL=$lt_lt_SP2NL
12988
 
12989
# turn newlines into spaces.
12990
NL2SP=$lt_lt_NL2SP
12991
 
12992
# How to create reloadable object files.
12993
reload_flag=$lt_reload_flag
12994
reload_cmds=$lt_reload_cmds
12995
 
12996
# An object symbol dumper.
12997
OBJDUMP=$lt_OBJDUMP
12998
 
12999
# Method to check whether dependent libraries are shared objects.
13000
deplibs_check_method=$lt_deplibs_check_method
13001
 
13002
# Command to use when deplibs_check_method == "file_magic".
13003
file_magic_cmd=$lt_file_magic_cmd
13004
 
13005
# The archiver.
13006
AR=$lt_AR
13007
AR_FLAGS=$lt_AR_FLAGS
13008
 
13009
# A symbol stripping program.
13010
STRIP=$lt_STRIP
13011
 
13012
# Commands used to install an old-style archive.
13013
RANLIB=$lt_RANLIB
13014
old_postinstall_cmds=$lt_old_postinstall_cmds
13015
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13016
 
13017
# A C compiler.
13018
LTCC=$lt_CC
13019
 
13020
# LTCC compiler flags.
13021
LTCFLAGS=$lt_CFLAGS
13022
 
13023
# Take the output of nm and produce a listing of raw symbols and C names.
13024
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13025
 
13026
# Transform the output of nm in a proper C declaration.
13027
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13028
 
13029
# Transform the output of nm in a C name address pair.
13030
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13031
 
13032
# Transform the output of nm in a C name address pair when lib prefix is needed.
13033
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13034
 
13035
# The name of the directory that contains temporary libtool files.
13036
objdir=$objdir
13037
 
13038
# Shell to use when invoking shell scripts.
13039
SHELL=$lt_SHELL
13040
 
13041
# An echo program that does not interpret backslashes.
13042
ECHO=$lt_ECHO
13043
 
13044
# Used to examine libraries when file_magic_cmd begins with "file".
13045
MAGIC_CMD=$MAGIC_CMD
13046
 
13047
# Must we lock files when doing compilation?
13048
need_locks=$lt_need_locks
13049
 
13050
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13051
DSYMUTIL=$lt_DSYMUTIL
13052
 
13053
# Tool to change global to local symbols on Mac OS X.
13054
NMEDIT=$lt_NMEDIT
13055
 
13056
# Tool to manipulate fat objects and archives on Mac OS X.
13057
LIPO=$lt_LIPO
13058
 
13059
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13060
OTOOL=$lt_OTOOL
13061
 
13062
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13063
OTOOL64=$lt_OTOOL64
13064
 
13065
# Old archive suffix (normally "a").
13066
libext=$libext
13067
 
13068
# Shared library suffix (normally ".so").
13069
shrext_cmds=$lt_shrext_cmds
13070
 
13071
# The commands to extract the exported symbol list from a shared archive.
13072
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13073
 
13074
# Variables whose values should be saved in libtool wrapper scripts and
13075
# restored at link time.
13076
variables_saved_for_relink=$lt_variables_saved_for_relink
13077
 
13078
# Do we need the "lib" prefix for modules?
13079
need_lib_prefix=$need_lib_prefix
13080
 
13081
# Do we need a version for libraries?
13082
need_version=$need_version
13083
 
13084
# Library versioning type.
13085
version_type=$version_type
13086
 
13087
# Shared library runtime path variable.
13088
runpath_var=$runpath_var
13089
 
13090
# Shared library path variable.
13091
shlibpath_var=$shlibpath_var
13092
 
13093
# Is shlibpath searched before the hard-coded library search path?
13094
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13095
 
13096
# Format of library name prefix.
13097
libname_spec=$lt_libname_spec
13098
 
13099
# List of archive names.  First name is the real one, the rest are links.
13100
# The last name is the one that the linker finds with -lNAME
13101
library_names_spec=$lt_library_names_spec
13102
 
13103
# The coded name of the library, if different from the real name.
13104
soname_spec=$lt_soname_spec
13105
 
13106
# Command to use after installation of a shared archive.
13107
postinstall_cmds=$lt_postinstall_cmds
13108
 
13109
# Command to use after uninstallation of a shared archive.
13110
postuninstall_cmds=$lt_postuninstall_cmds
13111
 
13112
# Commands used to finish a libtool library installation in a directory.
13113
finish_cmds=$lt_finish_cmds
13114
 
13115
# As "finish_cmds", except a single script fragment to be evaled but
13116
# not shown.
13117
finish_eval=$lt_finish_eval
13118
 
13119
# Whether we should hardcode library paths into libraries.
13120
hardcode_into_libs=$hardcode_into_libs
13121
 
13122
# Compile-time system search path for libraries.
13123
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13124
 
13125
# Run-time system search path for libraries.
13126
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13127
 
13128
# Whether dlopen is supported.
13129
dlopen_support=$enable_dlopen
13130
 
13131
# Whether dlopen of programs is supported.
13132
dlopen_self=$enable_dlopen_self
13133
 
13134
# Whether dlopen of statically linked programs is supported.
13135
dlopen_self_static=$enable_dlopen_self_static
13136
 
13137
# Commands to strip libraries.
13138
old_striplib=$lt_old_striplib
13139
striplib=$lt_striplib
13140
 
13141
 
13142
# The linker used to build libraries.
13143
LD=$lt_LD
13144
 
13145
# Commands used to build an old-style archive.
13146
old_archive_cmds=$lt_old_archive_cmds
13147
 
13148
# A language specific compiler.
13149
CC=$lt_compiler
13150
 
13151
# Is the compiler the GNU compiler?
13152
with_gcc=$GCC
13153
 
13154
# Compiler flag to turn off builtin functions.
13155
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13156
 
13157
# How to pass a linker flag through the compiler.
13158
wl=$lt_lt_prog_compiler_wl
13159
 
13160
# Additional compiler flags for building library objects.
13161
pic_flag=$lt_lt_prog_compiler_pic
13162
 
13163
# Compiler flag to prevent dynamic linking.
13164
link_static_flag=$lt_lt_prog_compiler_static
13165
 
13166
# Does compiler simultaneously support -c and -o options?
13167
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13168
 
13169
# Whether or not to add -lc for building shared libraries.
13170
build_libtool_need_lc=$archive_cmds_need_lc
13171
 
13172
# Whether or not to disallow shared libs when runtime libs are static.
13173
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13174
 
13175
# Compiler flag to allow reflexive dlopens.
13176
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13177
 
13178
# Compiler flag to generate shared objects directly from archives.
13179
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13180
 
13181
# Whether the compiler copes with passing no objects directly.
13182
compiler_needs_object=$lt_compiler_needs_object
13183
 
13184
# Create an old-style archive from a shared archive.
13185
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13186
 
13187
# Create a temporary old-style archive to link instead of a shared archive.
13188
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13189
 
13190
# Commands used to build a shared archive.
13191
archive_cmds=$lt_archive_cmds
13192
archive_expsym_cmds=$lt_archive_expsym_cmds
13193
 
13194
# Commands used to build a loadable module if different from building
13195
# a shared archive.
13196
module_cmds=$lt_module_cmds
13197
module_expsym_cmds=$lt_module_expsym_cmds
13198
 
13199
# Whether we are building with GNU ld or not.
13200
with_gnu_ld=$lt_with_gnu_ld
13201
 
13202
# Flag that allows shared libraries with undefined symbols to be built.
13203
allow_undefined_flag=$lt_allow_undefined_flag
13204
 
13205
# Flag that enforces no undefined symbols.
13206
no_undefined_flag=$lt_no_undefined_flag
13207
 
13208
# Flag to hardcode \$libdir into a binary during linking.
13209
# This must work even if \$libdir does not exist
13210
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13211
 
13212
# If ld is used when linking, flag to hardcode \$libdir into a binary
13213
# during linking.  This must work even if \$libdir does not exist.
13214
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13215
 
13216
# Whether we need a single "-rpath" flag with a separated argument.
13217
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13218
 
13219
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13220
# DIR into the resulting binary.
13221
hardcode_direct=$hardcode_direct
13222
 
13223
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13224
# DIR into the resulting binary and the resulting library dependency is
13225
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13226
# library is relocated.
13227
hardcode_direct_absolute=$hardcode_direct_absolute
13228
 
13229
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13230
# into the resulting binary.
13231
hardcode_minus_L=$hardcode_minus_L
13232
 
13233
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13234
# into the resulting binary.
13235
hardcode_shlibpath_var=$hardcode_shlibpath_var
13236
 
13237
# Set to "yes" if building a shared library automatically hardcodes DIR
13238
# into the library and all subsequent libraries and executables linked
13239
# against it.
13240
hardcode_automatic=$hardcode_automatic
13241
 
13242
# Set to yes if linker adds runtime paths of dependent libraries
13243
# to runtime path list.
13244
inherit_rpath=$inherit_rpath
13245
 
13246
# Whether libtool must link a program against all its dependency libraries.
13247
link_all_deplibs=$link_all_deplibs
13248
 
13249
# Fix the shell variable \$srcfile for the compiler.
13250
fix_srcfile_path=$lt_fix_srcfile_path
13251
 
13252
# Set to "yes" if exported symbols are required.
13253
always_export_symbols=$always_export_symbols
13254
 
13255
# The commands to list exported symbols.
13256
export_symbols_cmds=$lt_export_symbols_cmds
13257
 
13258
# Symbols that should not be listed in the preloaded symbols.
13259
exclude_expsyms=$lt_exclude_expsyms
13260
 
13261
# Symbols that must always be exported.
13262
include_expsyms=$lt_include_expsyms
13263
 
13264
# Commands necessary for linking programs (against libraries) with templates.
13265
prelink_cmds=$lt_prelink_cmds
13266
 
13267
# Specify filename containing input files.
13268
file_list_spec=$lt_file_list_spec
13269
 
13270
# How to hardcode a shared library path into an executable.
13271
hardcode_action=$hardcode_action
13272
 
13273
# ### END LIBTOOL CONFIG
13274
 
13275
_LT_EOF
13276
 
13277
  case $host_os in
13278
  aix3*)
13279
    cat <<\_LT_EOF >> "$cfgfile"
13280
# AIX sometimes has problems with the GCC collect2 program.  For some
13281
# reason, if we set the COLLECT_NAMES environment variable, the problems
13282
# vanish in a puff of smoke.
13283
if test "X${COLLECT_NAMES+set}" != Xset; then
13284
  COLLECT_NAMES=
13285
  export COLLECT_NAMES
13286
fi
13287
_LT_EOF
13288
    ;;
13289
  esac
13290
 
13291
 
13292
ltmain="$ac_aux_dir/ltmain.sh"
13293
 
13294
 
13295
  # We use sed instead of cat because bash on DJGPP gets confused if
13296
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13297
  # text mode, it properly converts lines to CR/LF.  This bash problem
13298
  # is reportedly fixed, but why not run on old versions too?
13299
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13300
    || (rm -f "$cfgfile"; exit 1)
13301
 
13302
  case $xsi_shell in
13303
  yes)
13304
    cat << \_LT_EOF >> "$cfgfile"
13305
 
13306
# func_dirname file append nondir_replacement
13307
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13308
# otherwise set result to NONDIR_REPLACEMENT.
13309
func_dirname ()
13310
{
13311
  case ${1} in
13312
    */*) func_dirname_result="${1%/*}${2}" ;;
13313
    *  ) func_dirname_result="${3}" ;;
13314
  esac
13315
}
13316
 
13317
# func_basename file
13318
func_basename ()
13319
{
13320
  func_basename_result="${1##*/}"
13321
}
13322
 
13323
# func_dirname_and_basename file append nondir_replacement
13324
# perform func_basename and func_dirname in a single function
13325
# call:
13326
#   dirname:  Compute the dirname of FILE.  If nonempty,
13327
#             add APPEND to the result, otherwise set result
13328
#             to NONDIR_REPLACEMENT.
13329
#             value returned in "$func_dirname_result"
13330
#   basename: Compute filename of FILE.
13331
#             value retuned in "$func_basename_result"
13332
# Implementation must be kept synchronized with func_dirname
13333
# and func_basename. For efficiency, we do not delegate to
13334
# those functions but instead duplicate the functionality here.
13335
func_dirname_and_basename ()
13336
{
13337
  case ${1} in
13338
    */*) func_dirname_result="${1%/*}${2}" ;;
13339
    *  ) func_dirname_result="${3}" ;;
13340
  esac
13341
  func_basename_result="${1##*/}"
13342
}
13343
 
13344
# func_stripname prefix suffix name
13345
# strip PREFIX and SUFFIX off of NAME.
13346
# PREFIX and SUFFIX must not contain globbing or regex special
13347
# characters, hashes, percent signs, but SUFFIX may contain a leading
13348
# dot (in which case that matches only a dot).
13349
func_stripname ()
13350
{
13351
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13352
  # positional parameters, so assign one to ordinary parameter first.
13353
  func_stripname_result=${3}
13354
  func_stripname_result=${func_stripname_result#"${1}"}
13355
  func_stripname_result=${func_stripname_result%"${2}"}
13356
}
13357
 
13358
# func_opt_split
13359
func_opt_split ()
13360
{
13361
  func_opt_split_opt=${1%%=*}
13362
  func_opt_split_arg=${1#*=}
13363
}
13364
 
13365
# func_lo2o object
13366
func_lo2o ()
13367
{
13368
  case ${1} in
13369
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13370
    *)    func_lo2o_result=${1} ;;
13371
  esac
13372
}
13373
 
13374
# func_xform libobj-or-source
13375
func_xform ()
13376
{
13377
  func_xform_result=${1%.*}.lo
13378
}
13379
 
13380
# func_arith arithmetic-term...
13381
func_arith ()
13382
{
13383
  func_arith_result=$(( $* ))
13384
}
13385
 
13386
# func_len string
13387
# STRING may not start with a hyphen.
13388
func_len ()
13389
{
13390
  func_len_result=${#1}
13391
}
13392
 
13393
_LT_EOF
13394
    ;;
13395
  *) # Bourne compatible functions.
13396
    cat << \_LT_EOF >> "$cfgfile"
13397
 
13398
# func_dirname file append nondir_replacement
13399
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13400
# otherwise set result to NONDIR_REPLACEMENT.
13401
func_dirname ()
13402
{
13403
  # Extract subdirectory from the argument.
13404
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13405
  if test "X$func_dirname_result" = "X${1}"; then
13406
    func_dirname_result="${3}"
13407
  else
13408
    func_dirname_result="$func_dirname_result${2}"
13409
  fi
13410
}
13411
 
13412
# func_basename file
13413
func_basename ()
13414
{
13415
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13416
}
13417
 
13418
 
13419
# func_stripname prefix suffix name
13420
# strip PREFIX and SUFFIX off of NAME.
13421
# PREFIX and SUFFIX must not contain globbing or regex special
13422
# characters, hashes, percent signs, but SUFFIX may contain a leading
13423
# dot (in which case that matches only a dot).
13424
# func_strip_suffix prefix name
13425
func_stripname ()
13426
{
13427
  case ${2} in
13428
    .*) func_stripname_result=`$ECHO "X${3}" \
13429
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13430
    *)  func_stripname_result=`$ECHO "X${3}" \
13431
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13432
  esac
13433
}
13434
 
13435
# sed scripts:
13436
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13437
my_sed_long_arg='1s/^-[^=]*=//'
13438
 
13439
# func_opt_split
13440
func_opt_split ()
13441
{
13442
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13443
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13444
}
13445
 
13446
# func_lo2o object
13447
func_lo2o ()
13448
{
13449
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13450
}
13451
 
13452
# func_xform libobj-or-source
13453
func_xform ()
13454
{
13455
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13456
}
13457
 
13458
# func_arith arithmetic-term...
13459
func_arith ()
13460
{
13461
  func_arith_result=`expr "$@"`
13462
}
13463
 
13464
# func_len string
13465
# STRING may not start with a hyphen.
13466
func_len ()
13467
{
13468
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13469
}
13470
 
13471
_LT_EOF
13472
esac
13473
 
13474
case $lt_shell_append in
13475
  yes)
13476
    cat << \_LT_EOF >> "$cfgfile"
13477
 
13478
# func_append var value
13479
# Append VALUE to the end of shell variable VAR.
13480
func_append ()
13481
{
13482
  eval "$1+=\$2"
13483
}
13484
_LT_EOF
13485
    ;;
13486
  *)
13487
    cat << \_LT_EOF >> "$cfgfile"
13488
 
13489
# func_append var value
13490
# Append VALUE to the end of shell variable VAR.
13491
func_append ()
13492
{
13493
  eval "$1=\$$1\$2"
13494
}
13495
 
13496
_LT_EOF
13497
    ;;
13498
  esac
13499
 
13500
 
13501
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13502
    || (rm -f "$cfgfile"; exit 1)
13503
 
13504
  mv -f "$cfgfile" "$ofile" ||
13505
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13506
  chmod +x "$ofile"
13507
 
13508
 ;;
13509
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13510
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13511
  # are listed without --file.  Let's play safe and only enable the eval
13512
  # if we detect the quoting.
13513
  case $CONFIG_FILES in
13514
  *\'*) eval set x "$CONFIG_FILES" ;;
13515
  *)   set x $CONFIG_FILES ;;
13516
  esac
13517
  shift
13518
  for mf
13519
  do
13520
    # Strip MF so we end up with the name of the file.
13521
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13522
    # Check whether this is an Automake generated Makefile or not.
13523
    # We used to match only the files named `Makefile.in', but
13524
    # some people rename them; so instead we look at the file content.
13525
    # Grep'ing the first line is not enough: some people post-process
13526
    # each Makefile.in and add a new line on top of each file to say so.
13527
    # Grep'ing the whole file is not good either: AIX grep has a line
13528
    # limit of 2048, but all sed's we know have understand at least 4000.
13529
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13530
      dirpart=`$as_dirname -- "$mf" ||
13531
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13532
         X"$mf" : 'X\(//\)[^/]' \| \
13533
         X"$mf" : 'X\(//\)$' \| \
13534
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13535
$as_echo X"$mf" |
13536
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13537
            s//\1/
13538
            q
13539
          }
13540
          /^X\(\/\/\)[^/].*/{
13541
            s//\1/
13542
            q
13543
          }
13544
          /^X\(\/\/\)$/{
13545
            s//\1/
13546
            q
13547
          }
13548
          /^X\(\/\).*/{
13549
            s//\1/
13550
            q
13551
          }
13552
          s/.*/./; q'`
13553
    else
13554
      continue
13555
    fi
13556
    # Extract the definition of DEPDIR, am__include, and am__quote
13557
    # from the Makefile without running `make'.
13558
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13559
    test -z "$DEPDIR" && continue
13560
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13561
    test -z "am__include" && continue
13562
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13563
    # When using ansi2knr, U may be empty or an underscore; expand it
13564
    U=`sed -n 's/^U = //p' < "$mf"`
13565
    # Find all dependency output files, they are included files with
13566
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13567
    # simplest approach to changing $(DEPDIR) to its actual value in the
13568
    # expansion.
13569
    for file in `sed -n "
13570
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13571
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13572
      # Make sure the directory exists.
13573
      test -f "$dirpart/$file" && continue
13574
      fdir=`$as_dirname -- "$file" ||
13575
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13576
         X"$file" : 'X\(//\)[^/]' \| \
13577
         X"$file" : 'X\(//\)$' \| \
13578
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13579
$as_echo X"$file" |
13580
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13581
            s//\1/
13582
            q
13583
          }
13584
          /^X\(\/\/\)[^/].*/{
13585
            s//\1/
13586
            q
13587
          }
13588
          /^X\(\/\/\)$/{
13589
            s//\1/
13590
            q
13591
          }
13592
          /^X\(\/\).*/{
13593
            s//\1/
13594
            q
13595
          }
13596
          s/.*/./; q'`
13597 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13598 90 jeremybenn
      # echo "creating $dirpart/$file"
13599
      echo '# dummy' > "$dirpart/$file"
13600
    done
13601
  done
13602
}
13603
 ;;
13604
 
13605
  esac
13606
done # for ac_tag
13607
 
13608
 
13609 346 jeremybenn
as_fn_exit 0
13610 90 jeremybenn
_ACEOF
13611
ac_clean_files=$ac_clean_files_save
13612
 
13613
test $ac_write_fail = 0 ||
13614 625 jeremybenn
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13615 90 jeremybenn
 
13616
 
13617
# configure is writing to config.log, and then calls config.status.
13618
# config.status does its own redirection, appending to config.log.
13619
# Unfortunately, on DOS this fails, as config.log is still kept open
13620
# by configure, so config.status won't be able to write to it; its
13621
# output is simply discarded.  So we exec the FD to /dev/null,
13622
# effectively closing config.log, so it can be properly (re)opened and
13623
# appended to by config.status.  When coming back to configure, we
13624
# need to make the FD available again.
13625
if test "$no_create" != yes; then
13626
  ac_cs_success=:
13627
  ac_config_status_args=
13628
  test "$silent" = yes &&
13629
    ac_config_status_args="$ac_config_status_args --quiet"
13630
  exec 5>/dev/null
13631
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13632
  exec 5>>config.log
13633
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13634
  # would make configure fail if this is the last instruction.
13635 625 jeremybenn
  $ac_cs_success || as_fn_exit 1
13636 90 jeremybenn
fi
13637
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13638 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13639 90 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13640
fi
13641
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.