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

Subversion Repositories openrisc

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

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 792 jeremybenn
# Generated by GNU Autoconf 2.68 for or1ksim-testsuite 2012-04-07.
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 784 jeremybenn
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
    PATH=/empty FPATH=/empty; export PATH FPATH
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 346 jeremybenn
test \$(( 1 + 1 )) = 2 || exit 1"
186
  if (eval "$as_required") 2>/dev/null; then :
187
  as_have_required=yes
188 90 jeremybenn
else
189 346 jeremybenn
  as_have_required=no
190 90 jeremybenn
fi
191 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 90 jeremybenn
 
193
else
194 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195
as_found=false
196 90 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197
do
198
  IFS=$as_save_IFS
199
  test -z "$as_dir" && as_dir=.
200 346 jeremybenn
  as_found=:
201
  case $as_dir in #(
202 90 jeremybenn
         /*)
203
           for as_base in sh bash ksh sh5; do
204 346 jeremybenn
             # Try only shells that exist, to save several forks.
205
             as_shell=$as_dir/$as_base
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$as_shell as_have_required=yes
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
  break 2
211
fi
212
fi
213 90 jeremybenn
           done;;
214
       esac
215 346 jeremybenn
  as_found=false
216 90 jeremybenn
done
217 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
  CONFIG_SHELL=$SHELL as_have_required=yes
220
fi; }
221 90 jeremybenn
IFS=$as_save_IFS
222
 
223
 
224 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
225
  # We cannot yet assume a decent shell, so we have to provide a
226
        # neutralization value for shells without unset; and this also
227
        # works around shells that cannot unset nonexistent variables.
228 625 jeremybenn
        # Preserve -v and -x to the replacement shell.
229 346 jeremybenn
        BASH_ENV=/dev/null
230
        ENV=/dev/null
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
        export CONFIG_SHELL
233 625 jeremybenn
        case $- in # ((((
234
          *v*x* | *x*v* ) as_opts=-vx ;;
235
          *v* ) as_opts=-v ;;
236
          *x* ) as_opts=-x ;;
237
          * ) as_opts= ;;
238
        esac
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 90 jeremybenn
fi
241
 
242 346 jeremybenn
    if test x$as_have_required = xno; then :
243
  $as_echo "$0: This script requires a shell more modern than all"
244
  $as_echo "$0: the shells that I found on your system."
245
  if test x${ZSH_VERSION+set} = xset ; then
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
  else
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: openrisc@opencores.org about your system, including any
251
$0: error possibly output before this message. Then install
252
$0: a modern shell, or manually run the script under such a
253
$0: shell if you do have one."
254
  fi
255
  exit 1
256 90 jeremybenn
fi
257
fi
258
fi
259 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
260
export SHELL
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
264 90 jeremybenn
 
265 346 jeremybenn
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
268
# as_fn_unset VAR
269
# ---------------
270
# Portably unset VAR.
271
as_fn_unset ()
272
{
273
  { eval $1=; unset $1;}
274
}
275
as_unset=as_fn_unset
276 90 jeremybenn
 
277 346 jeremybenn
# as_fn_set_status STATUS
278
# -----------------------
279
# Set $? to STATUS, without forking.
280
as_fn_set_status ()
281
{
282
  return $1
283
} # as_fn_set_status
284 90 jeremybenn
 
285 346 jeremybenn
# as_fn_exit STATUS
286
# -----------------
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288
as_fn_exit ()
289
{
290
  set +e
291
  as_fn_set_status $1
292
  exit $1
293
} # as_fn_exit
294 90 jeremybenn
 
295 346 jeremybenn
# as_fn_mkdir_p
296
# -------------
297
# Create "$as_dir" as a directory, including parents if necessary.
298
as_fn_mkdir_p ()
299
{
300 90 jeremybenn
 
301 346 jeremybenn
  case $as_dir in #(
302
  -*) as_dir=./$as_dir;;
303
  esac
304
  test -d "$as_dir" || eval $as_mkdir_p || {
305
    as_dirs=
306
    while :; do
307
      case $as_dir in #(
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309
      *) as_qdir=$as_dir;;
310
      esac
311
      as_dirs="'$as_qdir' $as_dirs"
312
      as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
         X"$as_dir" : 'X\(//\)[^/]' \| \
315
         X"$as_dir" : 'X\(//\)$' \| \
316
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
            s//\1/
320
            q
321
          }
322
          /^X\(\/\/\)[^/].*/{
323
            s//\1/
324
            q
325
          }
326
          /^X\(\/\/\)$/{
327
            s//\1/
328
            q
329
          }
330
          /^X\(\/\).*/{
331
            s//\1/
332
            q
333
          }
334
          s/.*/./; q'`
335
      test -d "$as_dir" && break
336
    done
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
338 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 90 jeremybenn
 
340
 
341 346 jeremybenn
} # as_fn_mkdir_p
342
# as_fn_append VAR VALUE
343
# ----------------------
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
# advantage of any shell optimizations that allow amortized linear growth over
346
# repeated appends, instead of the typical quadratic growth present in naive
347
# implementations.
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
  eval 'as_fn_append ()
350
  {
351
    eval $1+=\$2
352
  }'
353
else
354
  as_fn_append ()
355
  {
356
    eval $1=\$$1\$2
357
  }
358
fi # as_fn_append
359 90 jeremybenn
 
360 346 jeremybenn
# as_fn_arith ARG...
361
# ------------------
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
# must be portable across $(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
  eval 'as_fn_arith ()
367
  {
368
    as_val=$(( $* ))
369
  }'
370
else
371
  as_fn_arith ()
372
  {
373
    as_val=`expr "$@" || test $? -eq 1`
374
  }
375
fi # as_fn_arith
376 90 jeremybenn
 
377
 
378 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
# ----------------------------------------
380 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 625 jeremybenn
# script with STATUS, using 1 if that was 0.
383 346 jeremybenn
as_fn_error ()
384
{
385 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
386
  if test "$4"; then
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 346 jeremybenn
  fi
390 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
391 346 jeremybenn
  as_fn_exit $as_status
392
} # as_fn_error
393 90 jeremybenn
 
394 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396
  as_expr=expr
397 90 jeremybenn
else
398 346 jeremybenn
  as_expr=false
399 90 jeremybenn
fi
400
 
401 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402
  as_basename=basename
403 90 jeremybenn
else
404 346 jeremybenn
  as_basename=false
405 90 jeremybenn
fi
406
 
407 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408
  as_dirname=dirname
409 90 jeremybenn
else
410 346 jeremybenn
  as_dirname=false
411 90 jeremybenn
fi
412
 
413 346 jeremybenn
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
         X"$0" : 'X\(//\)$' \| \
416
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417
$as_echo X/"$0" |
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
419
            s//\1/
420
            q
421
          }
422
          /^X\/\(\/\/\)$/{
423
            s//\1/
424
            q
425
          }
426
          /^X\/\(\/\).*/{
427
            s//\1/
428
            q
429
          }
430
          s/.*/./; q'`
431 90 jeremybenn
 
432 346 jeremybenn
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
438 90 jeremybenn
 
439
 
440 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445 90 jeremybenn
  sed -n '
446
    p
447
    /[$]LINENO/=
448
  ' <$as_myself |
449
    sed '
450
      s/[$]LINENO.*/&-/
451
      t lineno
452
      b
453
      :lineno
454
      N
455
      :loop
456
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457
      t loop
458
      s/-\n.*//
459
    ' >$as_me.lineno &&
460
  chmod +x "$as_me.lineno" ||
461 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462 90 jeremybenn
 
463
  # Don't try to exec as it changes $[0], causing all sort of problems
464
  # (the dirname of $[0] is not the place where we might find the
465
  # original and so on.  Autoconf is especially sensitive to this).
466
  . "./$as_me.lineno"
467
  # Exit status is that of the last command.
468
  exit
469
}
470
 
471
ECHO_C= ECHO_N= ECHO_T=
472 346 jeremybenn
case `echo -n x` in #(((((
473 90 jeremybenn
-n*)
474 346 jeremybenn
  case `echo 'xy\c'` in
475 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476 346 jeremybenn
  xy)  ECHO_C='\c';;
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478
       ECHO_T=' ';;
479 90 jeremybenn
  esac;;
480
*)
481
  ECHO_N='-n';;
482
esac
483
 
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
  rm -f conf$$.dir/conf$$.file
487
else
488
  rm -f conf$$.dir
489
  mkdir conf$$.dir 2>/dev/null
490
fi
491
if (echo >conf$$.file) 2>/dev/null; then
492
  if ln -s conf$$.file conf$$ 2>/dev/null; then
493
    as_ln_s='ln -s'
494
    # ... but there are two gotchas:
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
    # In both cases, we have to default to `cp -p'.
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
      as_ln_s='cp -p'
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
    as_ln_s=ln
502
  else
503
    as_ln_s='cp -p'
504
  fi
505
else
506
  as_ln_s='cp -p'
507
fi
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
510
 
511
if mkdir -p . 2>/dev/null; then
512 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
513 90 jeremybenn
else
514
  test -d ./-p && rmdir ./-p
515
  as_mkdir_p=false
516
fi
517
 
518
if test -x / >/dev/null 2>&1; then
519
  as_test_x='test -x'
520
else
521
  if ls -dL / >/dev/null 2>&1; then
522
    as_ls_L_option=L
523
  else
524
    as_ls_L_option=
525
  fi
526
  as_test_x='
527
    eval sh -c '\''
528
      if test -d "$1"; then
529
        test -d "$1/.";
530
      else
531 346 jeremybenn
        case $1 in #(
532 90 jeremybenn
        -*)set "./$1";;
533
        esac;
534 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
536
    '\'' sh
537
  '
538
fi
539
as_executable_p=$as_test_x
540
 
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
 
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
 
547
SHELL=${CONFIG_SHELL-/bin/sh}
548
 
549
 
550 625 jeremybenn
test -n "$DJDIR" || exec 7<&0 
551
exec 6>&1
552 90 jeremybenn
 
553
# Name of the host.
554 625 jeremybenn
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 90 jeremybenn
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
 
558
#
559
# Initializations.
560
#
561
ac_default_prefix=/usr/local
562
ac_clean_files=
563
ac_config_libobj_dir=.
564
LIBOBJS=
565
cross_compiling=no
566
subdirs=
567
MFLAGS=
568
MAKEFLAGS=
569
 
570
# Identity of this package.
571
PACKAGE_NAME='or1ksim-testsuite'
572
PACKAGE_TARNAME='or1ksim-testsuite'
573 792 jeremybenn
PACKAGE_VERSION='2012-04-07'
574
PACKAGE_STRING='or1ksim-testsuite 2012-04-07'
575 90 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
576 346 jeremybenn
PACKAGE_URL=''
577 90 jeremybenn
 
578
# Factoring default headers for most tests.
579
ac_includes_default="\
580
#include 
581
#ifdef HAVE_SYS_TYPES_H
582
# include 
583
#endif
584
#ifdef HAVE_SYS_STAT_H
585
# include 
586
#endif
587
#ifdef STDC_HEADERS
588
# include 
589
# include 
590
#else
591
# ifdef HAVE_STDLIB_H
592
#  include 
593
# endif
594
#endif
595
#ifdef HAVE_STRING_H
596
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597
#  include 
598
# endif
599
# include 
600
#endif
601
#ifdef HAVE_STRINGS_H
602
# include 
603
#endif
604
#ifdef HAVE_INTTYPES_H
605
# include 
606
#endif
607
#ifdef HAVE_STDINT_H
608
# include 
609
#endif
610
#ifdef HAVE_UNISTD_H
611
# include 
612
#endif"
613
 
614
ac_subst_vars='am__EXEEXT_FALSE
615
am__EXEEXT_TRUE
616
LTLIBOBJS
617
LIBOBJS
618
am__fastdepCCAS_FALSE
619
am__fastdepCCAS_TRUE
620
CCASDEPMODE
621
CCASFLAGS
622
CCAS
623
SIM
624
BUILD_ALL_TESTS_FALSE
625
BUILD_ALL_TESTS_TRUE
626 625 jeremybenn
AM_BACKSLASH
627
AM_DEFAULT_VERBOSITY
628 90 jeremybenn
am__fastdepCC_FALSE
629
am__fastdepCC_TRUE
630
CCDEPMODE
631
AMDEPBACKSLASH
632
AMDEP_FALSE
633
AMDEP_TRUE
634
am__quote
635
am__include
636
DEPDIR
637
am__untar
638
am__tar
639
AMTAR
640
am__leading_dot
641
SET_MAKE
642
mkdir_p
643
MKDIR_P
644
INSTALL_STRIP_PROGRAM
645
install_sh
646
MAKEINFO
647
AUTOHEADER
648
AUTOMAKE
649
AUTOCONF
650
ACLOCAL
651
VERSION
652
PACKAGE
653
CYGPATH_W
654
am__isrc
655
INSTALL_DATA
656
INSTALL_SCRIPT
657
INSTALL_PROGRAM
658
CPP
659
OTOOL64
660
OTOOL
661
LIPO
662
NMEDIT
663
DSYMUTIL
664 784 jeremybenn
MANIFEST_TOOL
665
AWK
666 90 jeremybenn
RANLIB
667
STRIP
668 784 jeremybenn
ac_ct_AR
669 90 jeremybenn
AR
670 784 jeremybenn
DLLTOOL
671 90 jeremybenn
OBJDUMP
672
LN_S
673
NM
674
ac_ct_DUMPBIN
675
DUMPBIN
676
LD
677
FGREP
678
EGREP
679
GREP
680
SED
681
OBJEXT
682
EXEEXT
683
ac_ct_CC
684
CPPFLAGS
685
LDFLAGS
686
CFLAGS
687
CC
688
host_os
689
host_vendor
690
host_cpu
691
host
692
build_os
693
build_vendor
694
build_cpu
695
build
696
LIBTOOL
697
target_alias
698
host_alias
699
build_alias
700
LIBS
701
ECHO_T
702
ECHO_N
703
ECHO_C
704
DEFS
705
mandir
706
localedir
707
libdir
708
psdir
709
pdfdir
710
dvidir
711
htmldir
712
infodir
713
docdir
714
oldincludedir
715
includedir
716
localstatedir
717
sharedstatedir
718
sysconfdir
719
datadir
720
datarootdir
721
libexecdir
722
sbindir
723
bindir
724
program_transform_name
725
prefix
726
exec_prefix
727 346 jeremybenn
PACKAGE_URL
728 90 jeremybenn
PACKAGE_BUGREPORT
729
PACKAGE_STRING
730
PACKAGE_VERSION
731
PACKAGE_TARNAME
732
PACKAGE_NAME
733
PATH_SEPARATOR
734
SHELL'
735
ac_subst_files=''
736
ac_user_opts='
737
enable_option_checking
738
enable_shared
739
enable_static
740
with_pic
741
enable_fast_install
742
with_gnu_ld
743 784 jeremybenn
with_sysroot
744 90 jeremybenn
enable_libtool_lock
745
enable_dependency_tracking
746 625 jeremybenn
enable_silent_rules
747 90 jeremybenn
enable_all_tests
748 458 julius
enable_check_opt
749 90 jeremybenn
'
750
      ac_precious_vars='build_alias
751
host_alias
752
target_alias
753
CC
754
CFLAGS
755
LDFLAGS
756
LIBS
757
CPPFLAGS
758
CPP
759
CCAS
760
CCASFLAGS'
761
 
762
 
763
# Initialize some variables set by options.
764
ac_init_help=
765
ac_init_version=false
766
ac_unrecognized_opts=
767
ac_unrecognized_sep=
768
# The variables have the same names as the options, with
769
# dashes changed to underlines.
770
cache_file=/dev/null
771
exec_prefix=NONE
772
no_create=
773
no_recursion=
774
prefix=NONE
775
program_prefix=NONE
776
program_suffix=NONE
777
program_transform_name=s,x,x,
778
silent=
779
site=
780
srcdir=
781
verbose=
782
x_includes=NONE
783
x_libraries=NONE
784
 
785
# Installation directory options.
786
# These are left unexpanded so users can "make install exec_prefix=/foo"
787
# and all the variables that are supposed to be based on exec_prefix
788
# by default will actually change.
789
# Use braces instead of parens because sh, perl, etc. also accept them.
790
# (The list follows the same order as the GNU Coding Standards.)
791
bindir='${exec_prefix}/bin'
792
sbindir='${exec_prefix}/sbin'
793
libexecdir='${exec_prefix}/libexec'
794
datarootdir='${prefix}/share'
795
datadir='${datarootdir}'
796
sysconfdir='${prefix}/etc'
797
sharedstatedir='${prefix}/com'
798
localstatedir='${prefix}/var'
799
includedir='${prefix}/include'
800
oldincludedir='/usr/include'
801
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802
infodir='${datarootdir}/info'
803
htmldir='${docdir}'
804
dvidir='${docdir}'
805
pdfdir='${docdir}'
806
psdir='${docdir}'
807
libdir='${exec_prefix}/lib'
808
localedir='${datarootdir}/locale'
809
mandir='${datarootdir}/man'
810
 
811
ac_prev=
812
ac_dashdash=
813
for ac_option
814
do
815
  # If the previous option needs an argument, assign it.
816
  if test -n "$ac_prev"; then
817
    eval $ac_prev=\$ac_option
818
    ac_prev=
819
    continue
820
  fi
821
 
822
  case $ac_option in
823 625 jeremybenn
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824
  *=)   ac_optarg= ;;
825
  *)    ac_optarg=yes ;;
826 90 jeremybenn
  esac
827
 
828
  # Accept the important Cygnus configure options, so we can diagnose typos.
829
 
830
  case $ac_dashdash$ac_option in
831
  --)
832
    ac_dashdash=yes ;;
833
 
834
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
835
    ac_prev=bindir ;;
836
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837
    bindir=$ac_optarg ;;
838
 
839
  -build | --build | --buil | --bui | --bu)
840
    ac_prev=build_alias ;;
841
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842
    build_alias=$ac_optarg ;;
843
 
844
  -cache-file | --cache-file | --cache-fil | --cache-fi \
845
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846
    ac_prev=cache_file ;;
847
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849
    cache_file=$ac_optarg ;;
850
 
851
  --config-cache | -C)
852
    cache_file=config.cache ;;
853
 
854
  -datadir | --datadir | --datadi | --datad)
855
    ac_prev=datadir ;;
856
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
857
    datadir=$ac_optarg ;;
858
 
859
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860
  | --dataroo | --dataro | --datar)
861
    ac_prev=datarootdir ;;
862
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864
    datarootdir=$ac_optarg ;;
865
 
866
  -disable-* | --disable-*)
867
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868
    # Reject names that are not valid shell variable names.
869
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
871 90 jeremybenn
    ac_useropt_orig=$ac_useropt
872
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873
    case $ac_user_opts in
874
      *"
875
"enable_$ac_useropt"
876
"*) ;;
877
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878
         ac_unrecognized_sep=', ';;
879
    esac
880
    eval enable_$ac_useropt=no ;;
881
 
882
  -docdir | --docdir | --docdi | --doc | --do)
883
    ac_prev=docdir ;;
884
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885
    docdir=$ac_optarg ;;
886
 
887
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888
    ac_prev=dvidir ;;
889
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890
    dvidir=$ac_optarg ;;
891
 
892
  -enable-* | --enable-*)
893
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894
    # Reject names that are not valid shell variable names.
895
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
897 90 jeremybenn
    ac_useropt_orig=$ac_useropt
898
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899
    case $ac_user_opts in
900
      *"
901
"enable_$ac_useropt"
902
"*) ;;
903
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904
         ac_unrecognized_sep=', ';;
905
    esac
906
    eval enable_$ac_useropt=\$ac_optarg ;;
907
 
908
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910
  | --exec | --exe | --ex)
911
    ac_prev=exec_prefix ;;
912
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914
  | --exec=* | --exe=* | --ex=*)
915
    exec_prefix=$ac_optarg ;;
916
 
917
  -gas | --gas | --ga | --g)
918
    # Obsolete; use --with-gas.
919
    with_gas=yes ;;
920
 
921
  -help | --help | --hel | --he | -h)
922
    ac_init_help=long ;;
923
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924
    ac_init_help=recursive ;;
925
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926
    ac_init_help=short ;;
927
 
928
  -host | --host | --hos | --ho)
929
    ac_prev=host_alias ;;
930
  -host=* | --host=* | --hos=* | --ho=*)
931
    host_alias=$ac_optarg ;;
932
 
933
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934
    ac_prev=htmldir ;;
935
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936
  | --ht=*)
937
    htmldir=$ac_optarg ;;
938
 
939
  -includedir | --includedir | --includedi | --included | --include \
940
  | --includ | --inclu | --incl | --inc)
941
    ac_prev=includedir ;;
942
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943
  | --includ=* | --inclu=* | --incl=* | --inc=*)
944
    includedir=$ac_optarg ;;
945
 
946
  -infodir | --infodir | --infodi | --infod | --info | --inf)
947
    ac_prev=infodir ;;
948
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949
    infodir=$ac_optarg ;;
950
 
951
  -libdir | --libdir | --libdi | --libd)
952
    ac_prev=libdir ;;
953
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
954
    libdir=$ac_optarg ;;
955
 
956
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957
  | --libexe | --libex | --libe)
958
    ac_prev=libexecdir ;;
959
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960
  | --libexe=* | --libex=* | --libe=*)
961
    libexecdir=$ac_optarg ;;
962
 
963
  -localedir | --localedir | --localedi | --localed | --locale)
964
    ac_prev=localedir ;;
965
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966
    localedir=$ac_optarg ;;
967
 
968
  -localstatedir | --localstatedir | --localstatedi | --localstated \
969
  | --localstate | --localstat | --localsta | --localst | --locals)
970
    ac_prev=localstatedir ;;
971
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973
    localstatedir=$ac_optarg ;;
974
 
975
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976
    ac_prev=mandir ;;
977
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978
    mandir=$ac_optarg ;;
979
 
980
  -nfp | --nfp | --nf)
981
    # Obsolete; use --without-fp.
982
    with_fp=no ;;
983
 
984
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985
  | --no-cr | --no-c | -n)
986
    no_create=yes ;;
987
 
988
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990
    no_recursion=yes ;;
991
 
992
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994
  | --oldin | --oldi | --old | --ol | --o)
995
    ac_prev=oldincludedir ;;
996
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999
    oldincludedir=$ac_optarg ;;
1000
 
1001
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002
    ac_prev=prefix ;;
1003
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004
    prefix=$ac_optarg ;;
1005
 
1006
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007
  | --program-pre | --program-pr | --program-p)
1008
    ac_prev=program_prefix ;;
1009
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011
    program_prefix=$ac_optarg ;;
1012
 
1013
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014
  | --program-suf | --program-su | --program-s)
1015
    ac_prev=program_suffix ;;
1016
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018
    program_suffix=$ac_optarg ;;
1019
 
1020
  -program-transform-name | --program-transform-name \
1021
  | --program-transform-nam | --program-transform-na \
1022
  | --program-transform-n | --program-transform- \
1023
  | --program-transform | --program-transfor \
1024
  | --program-transfo | --program-transf \
1025
  | --program-trans | --program-tran \
1026
  | --progr-tra | --program-tr | --program-t)
1027
    ac_prev=program_transform_name ;;
1028
  -program-transform-name=* | --program-transform-name=* \
1029
  | --program-transform-nam=* | --program-transform-na=* \
1030
  | --program-transform-n=* | --program-transform-=* \
1031
  | --program-transform=* | --program-transfor=* \
1032
  | --program-transfo=* | --program-transf=* \
1033
  | --program-trans=* | --program-tran=* \
1034
  | --progr-tra=* | --program-tr=* | --program-t=*)
1035
    program_transform_name=$ac_optarg ;;
1036
 
1037
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038
    ac_prev=pdfdir ;;
1039
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040
    pdfdir=$ac_optarg ;;
1041
 
1042
  -psdir | --psdir | --psdi | --psd | --ps)
1043
    ac_prev=psdir ;;
1044
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045
    psdir=$ac_optarg ;;
1046
 
1047
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048
  | -silent | --silent | --silen | --sile | --sil)
1049
    silent=yes ;;
1050
 
1051
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052
    ac_prev=sbindir ;;
1053
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054
  | --sbi=* | --sb=*)
1055
    sbindir=$ac_optarg ;;
1056
 
1057
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059
  | --sharedst | --shareds | --shared | --share | --shar \
1060
  | --sha | --sh)
1061
    ac_prev=sharedstatedir ;;
1062
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065
  | --sha=* | --sh=*)
1066
    sharedstatedir=$ac_optarg ;;
1067
 
1068
  -site | --site | --sit)
1069
    ac_prev=site ;;
1070
  -site=* | --site=* | --sit=*)
1071
    site=$ac_optarg ;;
1072
 
1073
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074
    ac_prev=srcdir ;;
1075
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076
    srcdir=$ac_optarg ;;
1077
 
1078
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079
  | --syscon | --sysco | --sysc | --sys | --sy)
1080
    ac_prev=sysconfdir ;;
1081
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083
    sysconfdir=$ac_optarg ;;
1084
 
1085
  -target | --target | --targe | --targ | --tar | --ta | --t)
1086
    ac_prev=target_alias ;;
1087
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088
    target_alias=$ac_optarg ;;
1089
 
1090
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091
    verbose=yes ;;
1092
 
1093
  -version | --version | --versio | --versi | --vers | -V)
1094
    ac_init_version=: ;;
1095
 
1096
  -with-* | --with-*)
1097
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098
    # Reject names that are not valid shell variable names.
1099
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1101 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1102
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103
    case $ac_user_opts in
1104
      *"
1105
"with_$ac_useropt"
1106
"*) ;;
1107
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108
         ac_unrecognized_sep=', ';;
1109
    esac
1110
    eval with_$ac_useropt=\$ac_optarg ;;
1111
 
1112
  -without-* | --without-*)
1113
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114
    # Reject names that are not valid shell variable names.
1115
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1117 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1118
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
    case $ac_user_opts in
1120
      *"
1121
"with_$ac_useropt"
1122
"*) ;;
1123
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124
         ac_unrecognized_sep=', ';;
1125
    esac
1126
    eval with_$ac_useropt=no ;;
1127
 
1128
  --x)
1129
    # Obsolete; use --with-x.
1130
    with_x=yes ;;
1131
 
1132
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133
  | --x-incl | --x-inc | --x-in | --x-i)
1134
    ac_prev=x_includes ;;
1135
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137
    x_includes=$ac_optarg ;;
1138
 
1139
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141
    ac_prev=x_libraries ;;
1142
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144
    x_libraries=$ac_optarg ;;
1145
 
1146 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1147
Try \`$0 --help' for more information"
1148 90 jeremybenn
    ;;
1149
 
1150
  *=*)
1151
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152
    # Reject names that are not valid shell variable names.
1153 346 jeremybenn
    case $ac_envvar in #(
1154
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 625 jeremybenn
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 346 jeremybenn
    esac
1157 90 jeremybenn
    eval $ac_envvar=\$ac_optarg
1158
    export $ac_envvar ;;
1159
 
1160
  *)
1161
    # FIXME: should be removed in autoconf 3.0.
1162
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 625 jeremybenn
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 90 jeremybenn
    ;;
1167
 
1168
  esac
1169
done
1170
 
1171
if test -n "$ac_prev"; then
1172
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 625 jeremybenn
  as_fn_error $? "missing argument to $ac_option"
1174 90 jeremybenn
fi
1175
 
1176
if test -n "$ac_unrecognized_opts"; then
1177
  case $enable_option_checking in
1178
    no) ;;
1179 625 jeremybenn
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180 90 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181
  esac
1182
fi
1183
 
1184
# Check all directory arguments for consistency.
1185
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186
                datadir sysconfdir sharedstatedir localstatedir includedir \
1187
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188
                libdir localedir mandir
1189
do
1190
  eval ac_val=\$$ac_var
1191
  # Remove trailing slashes.
1192
  case $ac_val in
1193
    */ )
1194
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195
      eval $ac_var=\$ac_val;;
1196
  esac
1197
  # Be sure to have absolute directory names.
1198
  case $ac_val in
1199
    [\\/$]* | ?:[\\/]* )  continue;;
1200
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201
  esac
1202 625 jeremybenn
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203 90 jeremybenn
done
1204
 
1205
# There might be people who depend on the old broken behavior: `$host'
1206
# used to hold the argument of --host etc.
1207
# FIXME: To remove some day.
1208
build=$build_alias
1209
host=$host_alias
1210
target=$target_alias
1211
 
1212
# FIXME: To remove some day.
1213
if test "x$host_alias" != x; then
1214
  if test "x$build_alias" = x; then
1215
    cross_compiling=maybe
1216 625 jeremybenn
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1217
    If a cross compiler is detected then cross compile mode will be used" >&2
1218 90 jeremybenn
  elif test "x$build_alias" != "x$host_alias"; then
1219
    cross_compiling=yes
1220
  fi
1221
fi
1222
 
1223
ac_tool_prefix=
1224
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
 
1226
test "$silent" = yes && exec 6>/dev/null
1227
 
1228
 
1229
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230
ac_ls_di=`ls -di .` &&
1231
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 625 jeremybenn
  as_fn_error $? "working directory cannot be determined"
1233 90 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 625 jeremybenn
  as_fn_error $? "pwd does not report name of working directory"
1235 90 jeremybenn
 
1236
 
1237
# Find the source files, if location was not specified.
1238
if test -z "$srcdir"; then
1239
  ac_srcdir_defaulted=yes
1240
  # Try the directory containing this script, then the parent directory.
1241
  ac_confdir=`$as_dirname -- "$as_myself" ||
1242
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243
         X"$as_myself" : 'X\(//\)[^/]' \| \
1244
         X"$as_myself" : 'X\(//\)$' \| \
1245
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246
$as_echo X"$as_myself" |
1247
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248
            s//\1/
1249
            q
1250
          }
1251
          /^X\(\/\/\)[^/].*/{
1252
            s//\1/
1253
            q
1254
          }
1255
          /^X\(\/\/\)$/{
1256
            s//\1/
1257
            q
1258
          }
1259
          /^X\(\/\).*/{
1260
            s//\1/
1261
            q
1262
          }
1263
          s/.*/./; q'`
1264
  srcdir=$ac_confdir
1265
  if test ! -r "$srcdir/$ac_unique_file"; then
1266
    srcdir=..
1267
  fi
1268
else
1269
  ac_srcdir_defaulted=no
1270
fi
1271
if test ! -r "$srcdir/$ac_unique_file"; then
1272
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 625 jeremybenn
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1274 90 jeremybenn
fi
1275
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276
ac_abs_confdir=`(
1277 625 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278 90 jeremybenn
        pwd)`
1279
# When building in place, set srcdir=.
1280
if test "$ac_abs_confdir" = "$ac_pwd"; then
1281
  srcdir=.
1282
fi
1283
# Remove unnecessary trailing slashes from srcdir.
1284
# Double slashes in file names in object file debugging info
1285
# mess up M-x gdb in Emacs.
1286
case $srcdir in
1287
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288
esac
1289
for ac_var in $ac_precious_vars; do
1290
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291
  eval ac_env_${ac_var}_value=\$${ac_var}
1292
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294
done
1295
 
1296
#
1297
# Report the --help message.
1298
#
1299
if test "$ac_init_help" = "long"; then
1300
  # Omit some internal or obsolete options to make the list less imposing.
1301
  # This message is too long to be a string in the A/UX 3.1 sh.
1302
  cat <<_ACEOF
1303 792 jeremybenn
\`configure' configures or1ksim-testsuite 2012-04-07 to adapt to many kinds of systems.
1304 90 jeremybenn
 
1305
Usage: $0 [OPTION]... [VAR=VALUE]...
1306
 
1307
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308
VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
 
1310
Defaults for the options are specified in brackets.
1311
 
1312
Configuration:
1313
  -h, --help              display this help and exit
1314
      --help=short        display options specific to this package
1315
      --help=recursive    display the short help of all the included packages
1316
  -V, --version           display version information and exit
1317 625 jeremybenn
  -q, --quiet, --silent   do not print \`checking ...' messages
1318 90 jeremybenn
      --cache-file=FILE   cache test results in FILE [disabled]
1319
  -C, --config-cache      alias for \`--cache-file=config.cache'
1320
  -n, --no-create         do not create output files
1321
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
 
1323
Installation directories:
1324
  --prefix=PREFIX         install architecture-independent files in PREFIX
1325
                          [$ac_default_prefix]
1326
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327
                          [PREFIX]
1328
 
1329
By default, \`make install' will install all the files in
1330
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332
for instance \`--prefix=\$HOME'.
1333
 
1334
For better control, use the options below.
1335
 
1336
Fine tuning of the installation directories:
1337
  --bindir=DIR            user executables [EPREFIX/bin]
1338
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1339
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1340
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1341
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1342
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1343
  --libdir=DIR            object code libraries [EPREFIX/lib]
1344
  --includedir=DIR        C header files [PREFIX/include]
1345
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1346
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1347
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1348
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1349
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1350
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1351
  --docdir=DIR            documentation root
1352
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1353
  --htmldir=DIR           html documentation [DOCDIR]
1354
  --dvidir=DIR            dvi documentation [DOCDIR]
1355
  --pdfdir=DIR            pdf documentation [DOCDIR]
1356
  --psdir=DIR             ps documentation [DOCDIR]
1357
_ACEOF
1358
 
1359
  cat <<\_ACEOF
1360
 
1361
Program names:
1362
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1363
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1364
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1365
 
1366
System types:
1367
  --build=BUILD     configure for building on BUILD [guessed]
1368
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1369
_ACEOF
1370
fi
1371
 
1372
if test -n "$ac_init_help"; then
1373
  case $ac_init_help in
1374 792 jeremybenn
     short | recursive ) echo "Configuration of or1ksim-testsuite 2012-04-07:";;
1375 90 jeremybenn
   esac
1376
  cat <<\_ACEOF
1377
 
1378
Optional Features:
1379
  --disable-option-checking  ignore unrecognized --enable/--with options
1380
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1381
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1382
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1383
  --enable-static[=PKGS]  build static libraries [default=yes]
1384
  --enable-fast-install[=PKGS]
1385
                          optimize for fast installation [default=yes]
1386
  --disable-libtool-lock  avoid locking (might break parallel builds)
1387
  --disable-dependency-tracking  speeds up one-time build
1388
  --enable-dependency-tracking   do not reject slow dependency extractors
1389 625 jeremybenn
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1390
  --disable-silent-rules         verbose build output (undo: `make V=0')
1391 90 jeremybenn
  --enable-all-tests      enable all tests, including those which do not
1392
                          compile
1393
  --enable-check-opt      enable optimizations
1394
  --enable-check-opt=level     same as gcc -O switch
1395
 
1396
Optional Packages:
1397
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399
  --with-pic              try to use only PIC/non-PIC objects [default=use
1400
                          both]
1401
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402 784 jeremybenn
  --with-sysroot=DIR Search for dependent libraries within DIR
1403
                        (or the compiler's sysroot if not specified).
1404 90 jeremybenn
 
1405
Some influential environment variables:
1406
  CC          C compiler command
1407
  CFLAGS      C compiler flags
1408
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1409
              nonstandard directory 
1410
  LIBS        libraries to pass to the linker, e.g. -l
1411 625 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1412 90 jeremybenn
              you have headers in a nonstandard directory 
1413
  CPP         C preprocessor
1414
  CCAS        assembler compiler command (defaults to CC)
1415
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1416
 
1417
Use these variables to override the choices made by `configure' or to help
1418
it to find libraries and programs with nonstandard names/locations.
1419
 
1420
Report bugs to .
1421
_ACEOF
1422
ac_status=$?
1423
fi
1424
 
1425
if test "$ac_init_help" = "recursive"; then
1426
  # If there are subdirs, report their specific --help.
1427
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428
    test -d "$ac_dir" ||
1429
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430
      continue
1431
    ac_builddir=.
1432
 
1433
case "$ac_dir" in
1434
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435
*)
1436
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437
  # A ".." for each directory in $ac_dir_suffix.
1438
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439
  case $ac_top_builddir_sub in
1440
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442
  esac ;;
1443
esac
1444
ac_abs_top_builddir=$ac_pwd
1445
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446
# for backward compatibility:
1447
ac_top_builddir=$ac_top_build_prefix
1448
 
1449
case $srcdir in
1450
  .)  # We are building in place.
1451
    ac_srcdir=.
1452
    ac_top_srcdir=$ac_top_builddir_sub
1453
    ac_abs_top_srcdir=$ac_pwd ;;
1454
  [\\/]* | ?:[\\/]* )  # Absolute name.
1455
    ac_srcdir=$srcdir$ac_dir_suffix;
1456
    ac_top_srcdir=$srcdir
1457
    ac_abs_top_srcdir=$srcdir ;;
1458
  *) # Relative name.
1459
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462
esac
1463
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
 
1465
    cd "$ac_dir" || { ac_status=$?; continue; }
1466
    # Check for guested configure.
1467
    if test -f "$ac_srcdir/configure.gnu"; then
1468
      echo &&
1469
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470
    elif test -f "$ac_srcdir/configure"; then
1471
      echo &&
1472
      $SHELL "$ac_srcdir/configure" --help=recursive
1473
    else
1474
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475
    fi || ac_status=$?
1476
    cd "$ac_pwd" || { ac_status=$?; break; }
1477
  done
1478
fi
1479
 
1480
test -n "$ac_init_help" && exit $ac_status
1481
if $ac_init_version; then
1482
  cat <<\_ACEOF
1483 792 jeremybenn
or1ksim-testsuite configure 2012-04-07
1484 625 jeremybenn
generated by GNU Autoconf 2.68
1485 90 jeremybenn
 
1486 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
1487 90 jeremybenn
This configure script is free software; the Free Software Foundation
1488
gives unlimited permission to copy, distribute and modify it.
1489
_ACEOF
1490
  exit
1491
fi
1492 346 jeremybenn
 
1493
## ------------------------ ##
1494
## Autoconf initialization. ##
1495
## ------------------------ ##
1496
 
1497
# ac_fn_c_try_compile LINENO
1498
# --------------------------
1499
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500
ac_fn_c_try_compile ()
1501
{
1502
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503
  rm -f conftest.$ac_objext
1504
  if { { ac_try="$ac_compile"
1505
case "(($ac_try" in
1506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507
  *) ac_try_echo=$ac_try;;
1508
esac
1509
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510
$as_echo "$ac_try_echo"; } >&5
1511
  (eval "$ac_compile") 2>conftest.err
1512
  ac_status=$?
1513
  if test -s conftest.err; then
1514
    grep -v '^ *+' conftest.err >conftest.er1
1515
    cat conftest.er1 >&5
1516
    mv -f conftest.er1 conftest.err
1517
  fi
1518
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519
  test $ac_status = 0; } && {
1520
         test -z "$ac_c_werror_flag" ||
1521
         test ! -s conftest.err
1522
       } && test -s conftest.$ac_objext; then :
1523
  ac_retval=0
1524
else
1525
  $as_echo "$as_me: failed program was:" >&5
1526
sed 's/^/| /' conftest.$ac_ext >&5
1527
 
1528
        ac_retval=1
1529
fi
1530 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531
  as_fn_set_status $ac_retval
1532 346 jeremybenn
 
1533
} # ac_fn_c_try_compile
1534
 
1535
# ac_fn_c_try_link LINENO
1536
# -----------------------
1537
# Try to link conftest.$ac_ext, and return whether this succeeded.
1538
ac_fn_c_try_link ()
1539
{
1540
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541
  rm -f conftest.$ac_objext conftest$ac_exeext
1542
  if { { ac_try="$ac_link"
1543
case "(($ac_try" in
1544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545
  *) ac_try_echo=$ac_try;;
1546
esac
1547
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548
$as_echo "$ac_try_echo"; } >&5
1549
  (eval "$ac_link") 2>conftest.err
1550
  ac_status=$?
1551
  if test -s conftest.err; then
1552
    grep -v '^ *+' conftest.err >conftest.er1
1553
    cat conftest.er1 >&5
1554
    mv -f conftest.er1 conftest.err
1555
  fi
1556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557
  test $ac_status = 0; } && {
1558
         test -z "$ac_c_werror_flag" ||
1559
         test ! -s conftest.err
1560
       } && test -s conftest$ac_exeext && {
1561
         test "$cross_compiling" = yes ||
1562
         $as_test_x conftest$ac_exeext
1563
       }; then :
1564
  ac_retval=0
1565
else
1566
  $as_echo "$as_me: failed program was:" >&5
1567
sed 's/^/| /' conftest.$ac_ext >&5
1568
 
1569
        ac_retval=1
1570
fi
1571
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1572
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1573
  # interfere with the next link command; also delete a directory that is
1574
  # left behind by Apple's compiler.  We do this before executing the actions.
1575
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1576 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577
  as_fn_set_status $ac_retval
1578 346 jeremybenn
 
1579
} # ac_fn_c_try_link
1580
 
1581
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1582
# -------------------------------------------------------
1583
# Tests whether HEADER exists and can be compiled using the include files in
1584
# INCLUDES, setting the cache variable VAR accordingly.
1585
ac_fn_c_check_header_compile ()
1586
{
1587
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589
$as_echo_n "checking for $2... " >&6; }
1590 625 jeremybenn
if eval \${$3+:} false; then :
1591 346 jeremybenn
  $as_echo_n "(cached) " >&6
1592
else
1593
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594
/* end confdefs.h.  */
1595
$4
1596
#include <$2>
1597
_ACEOF
1598
if ac_fn_c_try_compile "$LINENO"; then :
1599
  eval "$3=yes"
1600
else
1601
  eval "$3=no"
1602
fi
1603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604
fi
1605
eval ac_res=\$$3
1606
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607
$as_echo "$ac_res" >&6; }
1608 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 346 jeremybenn
 
1610
} # ac_fn_c_check_header_compile
1611
 
1612
# ac_fn_c_try_cpp LINENO
1613
# ----------------------
1614
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615
ac_fn_c_try_cpp ()
1616
{
1617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1619
case "(($ac_try" in
1620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621
  *) ac_try_echo=$ac_try;;
1622
esac
1623
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624
$as_echo "$ac_try_echo"; } >&5
1625
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626
  ac_status=$?
1627
  if test -s conftest.err; then
1628
    grep -v '^ *+' conftest.err >conftest.er1
1629
    cat conftest.er1 >&5
1630
    mv -f conftest.er1 conftest.err
1631
  fi
1632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 625 jeremybenn
  test $ac_status = 0; } > conftest.i && {
1634 346 jeremybenn
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635
         test ! -s conftest.err
1636
       }; then :
1637
  ac_retval=0
1638
else
1639
  $as_echo "$as_me: failed program was:" >&5
1640
sed 's/^/| /' conftest.$ac_ext >&5
1641
 
1642
    ac_retval=1
1643
fi
1644 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
  as_fn_set_status $ac_retval
1646 346 jeremybenn
 
1647
} # ac_fn_c_try_cpp
1648
 
1649
# ac_fn_c_try_run LINENO
1650
# ----------------------
1651
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652
# that executables *can* be run.
1653
ac_fn_c_try_run ()
1654
{
1655
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656
  if { { ac_try="$ac_link"
1657
case "(($ac_try" in
1658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659
  *) ac_try_echo=$ac_try;;
1660
esac
1661
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662
$as_echo "$ac_try_echo"; } >&5
1663
  (eval "$ac_link") 2>&5
1664
  ac_status=$?
1665
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667
  { { case "(($ac_try" in
1668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669
  *) ac_try_echo=$ac_try;;
1670
esac
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672
$as_echo "$ac_try_echo"; } >&5
1673
  (eval "$ac_try") 2>&5
1674
  ac_status=$?
1675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676
  test $ac_status = 0; }; }; then :
1677
  ac_retval=0
1678
else
1679
  $as_echo "$as_me: program exited with status $ac_status" >&5
1680
       $as_echo "$as_me: failed program was:" >&5
1681
sed 's/^/| /' conftest.$ac_ext >&5
1682
 
1683
       ac_retval=$ac_status
1684
fi
1685
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
  as_fn_set_status $ac_retval
1688 346 jeremybenn
 
1689
} # ac_fn_c_try_run
1690
 
1691
# ac_fn_c_check_func LINENO FUNC VAR
1692
# ----------------------------------
1693
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1694
ac_fn_c_check_func ()
1695
{
1696
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698
$as_echo_n "checking for $2... " >&6; }
1699 625 jeremybenn
if eval \${$3+:} false; then :
1700 346 jeremybenn
  $as_echo_n "(cached) " >&6
1701
else
1702
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703
/* end confdefs.h.  */
1704
/* Define $2 to an innocuous variant, in case  declares $2.
1705
   For example, HP-UX 11i  declares gettimeofday.  */
1706
#define $2 innocuous_$2
1707
 
1708
/* System header to define __stub macros and hopefully few prototypes,
1709
    which can conflict with char $2 (); below.
1710
    Prefer  to  if __STDC__ is defined, since
1711
     exists even on freestanding compilers.  */
1712
 
1713
#ifdef __STDC__
1714
# include 
1715
#else
1716
# include 
1717
#endif
1718
 
1719
#undef $2
1720
 
1721
/* Override any GCC internal prototype to avoid an error.
1722
   Use char because int might match the return type of a GCC
1723
   builtin and then its argument prototype would still apply.  */
1724
#ifdef __cplusplus
1725
extern "C"
1726
#endif
1727
char $2 ();
1728
/* The GNU C library defines this for functions which it implements
1729
    to always fail with ENOSYS.  Some functions are actually named
1730
    something starting with __ and the normal name is an alias.  */
1731
#if defined __stub_$2 || defined __stub___$2
1732
choke me
1733
#endif
1734
 
1735
int
1736
main ()
1737
{
1738
return $2 ();
1739
  ;
1740
  return 0;
1741
}
1742
_ACEOF
1743
if ac_fn_c_try_link "$LINENO"; then :
1744
  eval "$3=yes"
1745
else
1746
  eval "$3=no"
1747
fi
1748
rm -f core conftest.err conftest.$ac_objext \
1749
    conftest$ac_exeext conftest.$ac_ext
1750
fi
1751
eval ac_res=\$$3
1752
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753
$as_echo "$ac_res" >&6; }
1754 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 346 jeremybenn
 
1756
} # ac_fn_c_check_func
1757
 
1758
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759
# -------------------------------------------------------
1760
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761
# the include files in INCLUDES and setting the cache variable VAR
1762
# accordingly.
1763
ac_fn_c_check_header_mongrel ()
1764
{
1765
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 625 jeremybenn
  if eval \${$3+:} false; then :
1767 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768
$as_echo_n "checking for $2... " >&6; }
1769 625 jeremybenn
if eval \${$3+:} false; then :
1770 346 jeremybenn
  $as_echo_n "(cached) " >&6
1771
fi
1772
eval ac_res=\$$3
1773
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774
$as_echo "$ac_res" >&6; }
1775
else
1776
  # Is the header compilable?
1777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778
$as_echo_n "checking $2 usability... " >&6; }
1779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780
/* end confdefs.h.  */
1781
$4
1782
#include <$2>
1783
_ACEOF
1784
if ac_fn_c_try_compile "$LINENO"; then :
1785
  ac_header_compiler=yes
1786
else
1787
  ac_header_compiler=no
1788
fi
1789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791
$as_echo "$ac_header_compiler" >&6; }
1792
 
1793
# Is the header present?
1794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795
$as_echo_n "checking $2 presence... " >&6; }
1796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797
/* end confdefs.h.  */
1798
#include <$2>
1799
_ACEOF
1800
if ac_fn_c_try_cpp "$LINENO"; then :
1801
  ac_header_preproc=yes
1802
else
1803
  ac_header_preproc=no
1804
fi
1805 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
1806 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807
$as_echo "$ac_header_preproc" >&6; }
1808
 
1809
# So?  What about this header?
1810
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811
  yes:no: )
1812
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816
    ;;
1817
  no:yes:* )
1818
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1821
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1825
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1826
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 625 jeremybenn
( $as_echo "## ------------------------------------- ##
1829 346 jeremybenn
## Report this to openrisc@opencores.org ##
1830 625 jeremybenn
## ------------------------------------- ##"
1831 346 jeremybenn
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1832
    ;;
1833
esac
1834
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835
$as_echo_n "checking for $2... " >&6; }
1836 625 jeremybenn
if eval \${$3+:} false; then :
1837 346 jeremybenn
  $as_echo_n "(cached) " >&6
1838
else
1839
  eval "$3=\$ac_header_compiler"
1840
fi
1841
eval ac_res=\$$3
1842
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843
$as_echo "$ac_res" >&6; }
1844
fi
1845 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 346 jeremybenn
 
1847
} # ac_fn_c_check_header_mongrel
1848
 
1849
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1850
# -------------------------------------------
1851
# Tests whether TYPE exists after having included INCLUDES, setting cache
1852
# variable VAR accordingly.
1853
ac_fn_c_check_type ()
1854
{
1855
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857
$as_echo_n "checking for $2... " >&6; }
1858 625 jeremybenn
if eval \${$3+:} false; then :
1859 346 jeremybenn
  $as_echo_n "(cached) " >&6
1860
else
1861
  eval "$3=no"
1862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863
/* end confdefs.h.  */
1864
$4
1865
int
1866
main ()
1867
{
1868
if (sizeof ($2))
1869
         return 0;
1870
  ;
1871
  return 0;
1872
}
1873
_ACEOF
1874
if ac_fn_c_try_compile "$LINENO"; then :
1875
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876
/* end confdefs.h.  */
1877
$4
1878
int
1879
main ()
1880
{
1881
if (sizeof (($2)))
1882
            return 0;
1883
  ;
1884
  return 0;
1885
}
1886
_ACEOF
1887
if ac_fn_c_try_compile "$LINENO"; then :
1888
 
1889
else
1890
  eval "$3=yes"
1891
fi
1892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893
fi
1894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895
fi
1896
eval ac_res=\$$3
1897
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898
$as_echo "$ac_res" >&6; }
1899 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 346 jeremybenn
 
1901
} # ac_fn_c_check_type
1902 90 jeremybenn
cat >config.log <<_ACEOF
1903
This file contains any messages produced by compilers while
1904
running configure, to aid debugging if configure makes a mistake.
1905
 
1906 792 jeremybenn
It was created by or1ksim-testsuite $as_me 2012-04-07, which was
1907 625 jeremybenn
generated by GNU Autoconf 2.68.  Invocation command line was
1908 90 jeremybenn
 
1909
  $ $0 $@
1910
 
1911
_ACEOF
1912
exec 5>>config.log
1913
{
1914
cat <<_ASUNAME
1915
## --------- ##
1916
## Platform. ##
1917
## --------- ##
1918
 
1919
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924
 
1925
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1927
 
1928
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1929
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1930
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1932
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1933
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1934
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1935
 
1936
_ASUNAME
1937
 
1938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939
for as_dir in $PATH
1940
do
1941
  IFS=$as_save_IFS
1942
  test -z "$as_dir" && as_dir=.
1943 346 jeremybenn
    $as_echo "PATH: $as_dir"
1944
  done
1945 90 jeremybenn
IFS=$as_save_IFS
1946
 
1947
} >&5
1948
 
1949
cat >&5 <<_ACEOF
1950
 
1951
 
1952
## ----------- ##
1953
## Core tests. ##
1954
## ----------- ##
1955
 
1956
_ACEOF
1957
 
1958
 
1959
# Keep a trace of the command line.
1960
# Strip out --no-create and --no-recursion so they do not pile up.
1961
# Strip out --silent because we don't want to record it for future runs.
1962
# Also quote any args containing shell meta-characters.
1963
# Make two passes to allow for proper duplicate-argument suppression.
1964
ac_configure_args=
1965
ac_configure_args0=
1966
ac_configure_args1=
1967
ac_must_keep_next=false
1968
for ac_pass in 1 2
1969
do
1970
  for ac_arg
1971
  do
1972
    case $ac_arg in
1973
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975
    | -silent | --silent | --silen | --sile | --sil)
1976
      continue ;;
1977
    *\'*)
1978
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979
    esac
1980
    case $ac_pass in
1981 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 90 jeremybenn
    2)
1983 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
1984 90 jeremybenn
      if test $ac_must_keep_next = true; then
1985
        ac_must_keep_next=false # Got value, back to normal.
1986
      else
1987
        case $ac_arg in
1988
          *=* | --config-cache | -C | -disable-* | --disable-* \
1989
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991
          | -with-* | --with-* | -without-* | --without-* | --x)
1992
            case "$ac_configure_args0 " in
1993
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994
            esac
1995
            ;;
1996
          -* ) ac_must_keep_next=true ;;
1997
        esac
1998
      fi
1999 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2000 90 jeremybenn
      ;;
2001
    esac
2002
  done
2003
done
2004 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2005
{ ac_configure_args1=; unset ac_configure_args1;}
2006 90 jeremybenn
 
2007
# When interrupted or exit'd, cleanup temporary files, and complete
2008
# config.log.  We remove comments because anyway the quotes in there
2009
# would cause problems or look ugly.
2010
# WARNING: Use '\'' to represent an apostrophe within the trap.
2011
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012
trap 'exit_status=$?
2013
  # Save into config.log some information that might help in debugging.
2014
  {
2015
    echo
2016
 
2017 625 jeremybenn
    $as_echo "## ---------------- ##
2018 90 jeremybenn
## Cache variables. ##
2019 625 jeremybenn
## ---------------- ##"
2020 90 jeremybenn
    echo
2021
    # The following way of writing the cache mishandles newlines in values,
2022
(
2023
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024
    eval ac_val=\$$ac_var
2025
    case $ac_val in #(
2026
    *${as_nl}*)
2027
      case $ac_var in #(
2028 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030
      esac
2031
      case $ac_var in #(
2032
      _ | IFS | as_nl) ;; #(
2033
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2035 90 jeremybenn
      esac ;;
2036
    esac
2037
  done
2038
  (set) 2>&1 |
2039
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040
    *${as_nl}ac_space=\ *)
2041
      sed -n \
2042
        "s/'\''/'\''\\\\'\'''\''/g;
2043
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044
      ;; #(
2045
    *)
2046
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047
      ;;
2048
    esac |
2049
    sort
2050
)
2051
    echo
2052
 
2053 625 jeremybenn
    $as_echo "## ----------------- ##
2054 90 jeremybenn
## Output variables. ##
2055 625 jeremybenn
## ----------------- ##"
2056 90 jeremybenn
    echo
2057
    for ac_var in $ac_subst_vars
2058
    do
2059
      eval ac_val=\$$ac_var
2060
      case $ac_val in
2061
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062
      esac
2063
      $as_echo "$ac_var='\''$ac_val'\''"
2064
    done | sort
2065
    echo
2066
 
2067
    if test -n "$ac_subst_files"; then
2068 625 jeremybenn
      $as_echo "## ------------------- ##
2069 90 jeremybenn
## File substitutions. ##
2070 625 jeremybenn
## ------------------- ##"
2071 90 jeremybenn
      echo
2072
      for ac_var in $ac_subst_files
2073
      do
2074
        eval ac_val=\$$ac_var
2075
        case $ac_val in
2076
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077
        esac
2078
        $as_echo "$ac_var='\''$ac_val'\''"
2079
      done | sort
2080
      echo
2081
    fi
2082
 
2083
    if test -s confdefs.h; then
2084 625 jeremybenn
      $as_echo "## ----------- ##
2085 90 jeremybenn
## confdefs.h. ##
2086 625 jeremybenn
## ----------- ##"
2087 90 jeremybenn
      echo
2088
      cat confdefs.h
2089
      echo
2090
    fi
2091
    test "$ac_signal" != 0 &&
2092
      $as_echo "$as_me: caught signal $ac_signal"
2093
    $as_echo "$as_me: exit $exit_status"
2094
  } >&5
2095
  rm -f core *.core core.conftest.* &&
2096
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097
    exit $exit_status
2098
' 0
2099
for ac_signal in 1 2 13 15; do
2100 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 90 jeremybenn
done
2102
ac_signal=0
2103
 
2104
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2105
rm -f -r conftest* confdefs.h
2106
 
2107 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2108
 
2109 90 jeremybenn
# Predefined preprocessor variables.
2110
 
2111
cat >>confdefs.h <<_ACEOF
2112
#define PACKAGE_NAME "$PACKAGE_NAME"
2113
_ACEOF
2114
 
2115
cat >>confdefs.h <<_ACEOF
2116
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117
_ACEOF
2118
 
2119
cat >>confdefs.h <<_ACEOF
2120
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2121
_ACEOF
2122
 
2123
cat >>confdefs.h <<_ACEOF
2124
#define PACKAGE_STRING "$PACKAGE_STRING"
2125
_ACEOF
2126
 
2127
cat >>confdefs.h <<_ACEOF
2128
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129
_ACEOF
2130
 
2131 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2132
#define PACKAGE_URL "$PACKAGE_URL"
2133
_ACEOF
2134 90 jeremybenn
 
2135 346 jeremybenn
 
2136 90 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2137
# Prefer an explicitly selected file to automatically selected ones.
2138
ac_site_file1=NONE
2139
ac_site_file2=NONE
2140
if test -n "$CONFIG_SITE"; then
2141 625 jeremybenn
  # We do not want a PATH search for config.site.
2142
  case $CONFIG_SITE in #((
2143
    -*)  ac_site_file1=./$CONFIG_SITE;;
2144
    */*) ac_site_file1=$CONFIG_SITE;;
2145
    *)   ac_site_file1=./$CONFIG_SITE;;
2146
  esac
2147 90 jeremybenn
elif test "x$prefix" != xNONE; then
2148
  ac_site_file1=$prefix/share/config.site
2149
  ac_site_file2=$prefix/etc/config.site
2150
else
2151
  ac_site_file1=$ac_default_prefix/share/config.site
2152
  ac_site_file2=$ac_default_prefix/etc/config.site
2153
fi
2154
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155
do
2156
  test "x$ac_site_file" = xNONE && continue
2157 625 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 90 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160
    sed 's/^/| /' "$ac_site_file" >&5
2161 625 jeremybenn
    . "$ac_site_file" \
2162
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164
as_fn_error $? "failed to load site script $ac_site_file
2165
See \`config.log' for more details" "$LINENO" 5; }
2166 90 jeremybenn
  fi
2167
done
2168
 
2169
if test -r "$cache_file"; then
2170 625 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2171
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 90 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2175
    case $cache_file in
2176
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177
      *)                      . "./$cache_file";;
2178
    esac
2179
  fi
2180
else
2181 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 90 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2183
  >$cache_file
2184
fi
2185
 
2186
# Check that the precious variables saved in the cache have kept the same
2187
# value.
2188
ac_cache_corrupted=false
2189
for ac_var in $ac_precious_vars; do
2190
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191
  eval ac_new_set=\$ac_env_${ac_var}_set
2192
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193
  eval ac_new_val=\$ac_env_${ac_var}_value
2194
  case $ac_old_set,$ac_new_set in
2195
    set,)
2196 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198
      ac_cache_corrupted=: ;;
2199
    ,set)
2200 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202
      ac_cache_corrupted=: ;;
2203
    ,);;
2204
    *)
2205
      if test "x$ac_old_val" != "x$ac_new_val"; then
2206
        # differences in whitespace do not lead to failure.
2207
        ac_old_val_w=`echo x $ac_old_val`
2208
        ac_new_val_w=`echo x $ac_new_val`
2209
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212
          ac_cache_corrupted=:
2213
        else
2214 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 90 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216
          eval $ac_var=\$ac_old_val
2217
        fi
2218 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2219 90 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2220 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2221 90 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2222
      fi;;
2223
  esac
2224
  # Pass precious variables to config.status.
2225
  if test "$ac_new_set" = set; then
2226
    case $ac_new_val in
2227
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228
    *) ac_arg=$ac_var=$ac_new_val ;;
2229
    esac
2230
    case " $ac_configure_args " in
2231
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2232 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233 90 jeremybenn
    esac
2234
  fi
2235
done
2236
if $ac_cache_corrupted; then
2237 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 90 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 625 jeremybenn
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 90 jeremybenn
fi
2243 346 jeremybenn
## -------------------- ##
2244
## Main body of script. ##
2245
## -------------------- ##
2246 90 jeremybenn
 
2247
ac_ext=c
2248
ac_cpp='$CPP $CPPFLAGS'
2249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
 
2253
 
2254
 
2255
 
2256
ac_aux_dir=
2257
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2258 625 jeremybenn
  if test -f "$ac_dir/install-sh"; then
2259
    ac_aux_dir=$ac_dir
2260
    ac_install_sh="$ac_aux_dir/install-sh -c"
2261
    break
2262
  elif test -f "$ac_dir/install.sh"; then
2263
    ac_aux_dir=$ac_dir
2264
    ac_install_sh="$ac_aux_dir/install.sh -c"
2265
    break
2266
  elif test -f "$ac_dir/shtool"; then
2267
    ac_aux_dir=$ac_dir
2268
    ac_install_sh="$ac_aux_dir/shtool install -c"
2269
    break
2270
  fi
2271 90 jeremybenn
done
2272
if test -z "$ac_aux_dir"; then
2273 625 jeremybenn
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2274 90 jeremybenn
fi
2275
 
2276
# These three variables are undocumented and unsupported,
2277
# and are intended to be withdrawn in a future Autoconf release.
2278
# They can cause serious problems if a builder's source tree is in a directory
2279
# whose full name contains unusual characters.
2280
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2281
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2282
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2283
 
2284
 
2285 784 jeremybenn
case `pwd` in
2286
  *\ * | *\     *)
2287
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2288
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2289
esac
2290
 
2291
 
2292
 
2293
macro_version='2.4'
2294
macro_revision='1.3293'
2295
 
2296
 
2297
 
2298
 
2299
 
2300
 
2301
 
2302
 
2303
 
2304
 
2305
 
2306
 
2307
 
2308
ltmain="$ac_aux_dir/ltmain.sh"
2309
 
2310 90 jeremybenn
# Make sure we can run config.sub.
2311
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2312 625 jeremybenn
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2313 90 jeremybenn
 
2314 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2315 90 jeremybenn
$as_echo_n "checking build system type... " >&6; }
2316 625 jeremybenn
if ${ac_cv_build+:} false; then :
2317 90 jeremybenn
  $as_echo_n "(cached) " >&6
2318
else
2319
  ac_build_alias=$build_alias
2320
test "x$ac_build_alias" = x &&
2321
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2322
test "x$ac_build_alias" = x &&
2323 625 jeremybenn
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2324 90 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2325 625 jeremybenn
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2326 90 jeremybenn
 
2327
fi
2328 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2329 90 jeremybenn
$as_echo "$ac_cv_build" >&6; }
2330
case $ac_cv_build in
2331
*-*-*) ;;
2332 625 jeremybenn
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2333 90 jeremybenn
esac
2334
build=$ac_cv_build
2335
ac_save_IFS=$IFS; IFS='-'
2336
set x $ac_cv_build
2337
shift
2338
build_cpu=$1
2339
build_vendor=$2
2340
shift; shift
2341
# Remember, the first character of IFS is used to create $*,
2342
# except with old shells:
2343
build_os=$*
2344
IFS=$ac_save_IFS
2345
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346
 
2347
 
2348 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2349 90 jeremybenn
$as_echo_n "checking host system type... " >&6; }
2350 625 jeremybenn
if ${ac_cv_host+:} false; then :
2351 90 jeremybenn
  $as_echo_n "(cached) " >&6
2352
else
2353
  if test "x$host_alias" = x; then
2354
  ac_cv_host=$ac_cv_build
2355
else
2356
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2357 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2358 90 jeremybenn
fi
2359
 
2360
fi
2361 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2362 90 jeremybenn
$as_echo "$ac_cv_host" >&6; }
2363
case $ac_cv_host in
2364
*-*-*) ;;
2365 625 jeremybenn
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2366 90 jeremybenn
esac
2367
host=$ac_cv_host
2368
ac_save_IFS=$IFS; IFS='-'
2369
set x $ac_cv_host
2370
shift
2371
host_cpu=$1
2372
host_vendor=$2
2373
shift; shift
2374
# Remember, the first character of IFS is used to create $*,
2375
# except with old shells:
2376
host_os=$*
2377
IFS=$ac_save_IFS
2378
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2379
 
2380
 
2381 784 jeremybenn
# Backslashify metacharacters that are still active within
2382
# double-quoted strings.
2383
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2384
 
2385
# Same as above, but do not quote variable references.
2386
double_quote_subst='s/\(["`\\]\)/\\\1/g'
2387
 
2388
# Sed substitution to delay expansion of an escaped shell variable in a
2389
# double_quote_subst'ed string.
2390
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2391
 
2392
# Sed substitution to delay expansion of an escaped single quote.
2393
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2394
 
2395
# Sed substitution to avoid accidental globbing in evaled expressions
2396
no_glob_subst='s/\*/\\\*/g'
2397
 
2398
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2399
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2400
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2401
 
2402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2403
$as_echo_n "checking how to print strings... " >&6; }
2404
# Test print first, because it will be a builtin if present.
2405
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2406
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2407
  ECHO='print -r --'
2408
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2409
  ECHO='printf %s\n'
2410
else
2411
  # Use this function as a fallback that always works.
2412
  func_fallback_echo ()
2413
  {
2414
    eval 'cat <<_LTECHO_EOF
2415
$1
2416
_LTECHO_EOF'
2417
  }
2418
  ECHO='func_fallback_echo'
2419
fi
2420
 
2421
# func_echo_all arg...
2422
# Invoke $ECHO with all args, space-separated.
2423
func_echo_all ()
2424
{
2425
    $ECHO ""
2426
}
2427
 
2428
case "$ECHO" in
2429
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2430
$as_echo "printf" >&6; } ;;
2431
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2432
$as_echo "print -r" >&6; } ;;
2433
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2434
$as_echo "cat" >&6; } ;;
2435
esac
2436
 
2437
 
2438
 
2439
 
2440
 
2441
 
2442
 
2443
 
2444
 
2445
 
2446
 
2447
 
2448
 
2449
 
2450 90 jeremybenn
ac_ext=c
2451
ac_cpp='$CPP $CPPFLAGS'
2452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
if test -n "$ac_tool_prefix"; then
2456
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2457
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2458 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2460 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2461 90 jeremybenn
  $as_echo_n "(cached) " >&6
2462
else
2463
  if test -n "$CC"; then
2464
  ac_cv_prog_CC="$CC" # Let the user override the test.
2465
else
2466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467
for as_dir in $PATH
2468
do
2469
  IFS=$as_save_IFS
2470
  test -z "$as_dir" && as_dir=.
2471 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2472 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2474 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 90 jeremybenn
    break 2
2476
  fi
2477
done
2478 346 jeremybenn
  done
2479 90 jeremybenn
IFS=$as_save_IFS
2480
 
2481
fi
2482
fi
2483
CC=$ac_cv_prog_CC
2484
if test -n "$CC"; then
2485 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2486 90 jeremybenn
$as_echo "$CC" >&6; }
2487
else
2488 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 90 jeremybenn
$as_echo "no" >&6; }
2490
fi
2491
 
2492
 
2493
fi
2494
if test -z "$ac_cv_prog_CC"; then
2495
  ac_ct_CC=$CC
2496
  # Extract the first word of "gcc", so it can be a program name with args.
2497
set dummy gcc; ac_word=$2
2498 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2500 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2501 90 jeremybenn
  $as_echo_n "(cached) " >&6
2502
else
2503
  if test -n "$ac_ct_CC"; then
2504
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505
else
2506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507
for as_dir in $PATH
2508
do
2509
  IFS=$as_save_IFS
2510
  test -z "$as_dir" && as_dir=.
2511 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2512 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513
    ac_cv_prog_ac_ct_CC="gcc"
2514 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 90 jeremybenn
    break 2
2516
  fi
2517
done
2518 346 jeremybenn
  done
2519 90 jeremybenn
IFS=$as_save_IFS
2520
 
2521
fi
2522
fi
2523
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2524
if test -n "$ac_ct_CC"; then
2525 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2526 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2527
else
2528 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 90 jeremybenn
$as_echo "no" >&6; }
2530
fi
2531
 
2532
  if test "x$ac_ct_CC" = x; then
2533
    CC=""
2534
  else
2535
    case $cross_compiling:$ac_tool_warned in
2536
yes:)
2537 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539
ac_tool_warned=yes ;;
2540
esac
2541
    CC=$ac_ct_CC
2542
  fi
2543
else
2544
  CC="$ac_cv_prog_CC"
2545
fi
2546
 
2547
if test -z "$CC"; then
2548
          if test -n "$ac_tool_prefix"; then
2549
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550
set dummy ${ac_tool_prefix}cc; ac_word=$2
2551 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2553 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2554 90 jeremybenn
  $as_echo_n "(cached) " >&6
2555
else
2556
  if test -n "$CC"; then
2557
  ac_cv_prog_CC="$CC" # Let the user override the test.
2558
else
2559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560
for as_dir in $PATH
2561
do
2562
  IFS=$as_save_IFS
2563
  test -z "$as_dir" && as_dir=.
2564 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2565 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2567 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 90 jeremybenn
    break 2
2569
  fi
2570
done
2571 346 jeremybenn
  done
2572 90 jeremybenn
IFS=$as_save_IFS
2573
 
2574
fi
2575
fi
2576
CC=$ac_cv_prog_CC
2577
if test -n "$CC"; then
2578 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 90 jeremybenn
$as_echo "$CC" >&6; }
2580
else
2581 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 90 jeremybenn
$as_echo "no" >&6; }
2583
fi
2584
 
2585
 
2586
  fi
2587
fi
2588
if test -z "$CC"; then
2589
  # Extract the first word of "cc", so it can be a program name with args.
2590
set dummy cc; ac_word=$2
2591 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2593 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2594 90 jeremybenn
  $as_echo_n "(cached) " >&6
2595
else
2596
  if test -n "$CC"; then
2597
  ac_cv_prog_CC="$CC" # Let the user override the test.
2598
else
2599
  ac_prog_rejected=no
2600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601
for as_dir in $PATH
2602
do
2603
  IFS=$as_save_IFS
2604
  test -z "$as_dir" && as_dir=.
2605 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2606 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608
       ac_prog_rejected=yes
2609
       continue
2610
     fi
2611
    ac_cv_prog_CC="cc"
2612 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 90 jeremybenn
    break 2
2614
  fi
2615
done
2616 346 jeremybenn
  done
2617 90 jeremybenn
IFS=$as_save_IFS
2618
 
2619
if test $ac_prog_rejected = yes; then
2620
  # We found a bogon in the path, so make sure we never use it.
2621
  set dummy $ac_cv_prog_CC
2622
  shift
2623
  if test $# != 0; then
2624
    # We chose a different compiler from the bogus one.
2625
    # However, it has the same basename, so the bogon will be chosen
2626
    # first if we set CC to just the basename; use the full file name.
2627
    shift
2628
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2629
  fi
2630
fi
2631
fi
2632
fi
2633
CC=$ac_cv_prog_CC
2634
if test -n "$CC"; then
2635 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 90 jeremybenn
$as_echo "$CC" >&6; }
2637
else
2638 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 90 jeremybenn
$as_echo "no" >&6; }
2640
fi
2641
 
2642
 
2643
fi
2644
if test -z "$CC"; then
2645
  if test -n "$ac_tool_prefix"; then
2646
  for ac_prog in cl.exe
2647
  do
2648
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2652 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2653 90 jeremybenn
  $as_echo_n "(cached) " >&6
2654
else
2655
  if test -n "$CC"; then
2656
  ac_cv_prog_CC="$CC" # Let the user override the test.
2657
else
2658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659
for as_dir in $PATH
2660
do
2661
  IFS=$as_save_IFS
2662
  test -z "$as_dir" && as_dir=.
2663 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2664 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 90 jeremybenn
    break 2
2668
  fi
2669
done
2670 346 jeremybenn
  done
2671 90 jeremybenn
IFS=$as_save_IFS
2672
 
2673
fi
2674
fi
2675
CC=$ac_cv_prog_CC
2676
if test -n "$CC"; then
2677 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 90 jeremybenn
$as_echo "$CC" >&6; }
2679
else
2680 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 90 jeremybenn
$as_echo "no" >&6; }
2682
fi
2683
 
2684
 
2685
    test -n "$CC" && break
2686
  done
2687
fi
2688
if test -z "$CC"; then
2689
  ac_ct_CC=$CC
2690
  for ac_prog in cl.exe
2691
do
2692
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693
set dummy $ac_prog; ac_word=$2
2694 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2696 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2697 90 jeremybenn
  $as_echo_n "(cached) " >&6
2698
else
2699
  if test -n "$ac_ct_CC"; then
2700
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701
else
2702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703
for as_dir in $PATH
2704
do
2705
  IFS=$as_save_IFS
2706
  test -z "$as_dir" && as_dir=.
2707 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2708 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709
    ac_cv_prog_ac_ct_CC="$ac_prog"
2710 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 90 jeremybenn
    break 2
2712
  fi
2713
done
2714 346 jeremybenn
  done
2715 90 jeremybenn
IFS=$as_save_IFS
2716
 
2717
fi
2718
fi
2719
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720
if test -n "$ac_ct_CC"; then
2721 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2722 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2723
else
2724 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 90 jeremybenn
$as_echo "no" >&6; }
2726
fi
2727
 
2728
 
2729
  test -n "$ac_ct_CC" && break
2730
done
2731
 
2732
  if test "x$ac_ct_CC" = x; then
2733
    CC=""
2734
  else
2735
    case $cross_compiling:$ac_tool_warned in
2736
yes:)
2737 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739
ac_tool_warned=yes ;;
2740
esac
2741
    CC=$ac_ct_CC
2742
  fi
2743
fi
2744
 
2745
fi
2746
 
2747
 
2748 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
2751
See \`config.log' for more details" "$LINENO" 5; }
2752 90 jeremybenn
 
2753
# Provide some information about the compiler.
2754 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2755 90 jeremybenn
set X $ac_compile
2756
ac_compiler=$2
2757 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2758
  { { ac_try="$ac_compiler $ac_option >&5"
2759 90 jeremybenn
case "(($ac_try" in
2760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761
  *) ac_try_echo=$ac_try;;
2762
esac
2763 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764
$as_echo "$ac_try_echo"; } >&5
2765
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2766 90 jeremybenn
  ac_status=$?
2767 346 jeremybenn
  if test -s conftest.err; then
2768
    sed '10a\
2769
... rest of stderr output deleted ...
2770
         10q' conftest.err >conftest.er1
2771
    cat conftest.er1 >&5
2772
  fi
2773 625 jeremybenn
  rm -f conftest.er1 conftest.err
2774 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775
  test $ac_status = 0; }
2776
done
2777 90 jeremybenn
 
2778 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 90 jeremybenn
/* end confdefs.h.  */
2780 625 jeremybenn
 
2781 90 jeremybenn
int
2782
main ()
2783
{
2784
 
2785
  ;
2786
  return 0;
2787
}
2788
_ACEOF
2789
ac_clean_files_save=$ac_clean_files
2790 625 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2791 90 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2792
# It will help us diagnose broken compilers, and finding out an intuition
2793
# of exeext.
2794 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2795
$as_echo_n "checking whether the C compiler works... " >&6; }
2796 90 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797
 
2798
# The possible output files:
2799
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2800
 
2801
ac_rmfiles=
2802
for ac_file in $ac_files
2803
do
2804
  case $ac_file in
2805
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2806
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807
  esac
2808
done
2809
rm -f $ac_rmfiles
2810
 
2811 346 jeremybenn
if { { ac_try="$ac_link_default"
2812 90 jeremybenn
case "(($ac_try" in
2813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814
  *) ac_try_echo=$ac_try;;
2815
esac
2816 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817
$as_echo "$ac_try_echo"; } >&5
2818 90 jeremybenn
  (eval "$ac_link_default") 2>&5
2819
  ac_status=$?
2820 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821
  test $ac_status = 0; }; then :
2822 90 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2825
# so that the user can short-circuit this test for compilers unknown to
2826
# Autoconf.
2827
for ac_file in $ac_files ''
2828
do
2829
  test -f "$ac_file" || continue
2830
  case $ac_file in
2831
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2832
        ;;
2833
    [ab].out )
2834
        # We found the default executable, but exeext='' is most
2835
        # certainly right.
2836
        break;;
2837
    *.* )
2838 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 90 jeremybenn
        then :; else
2840
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841
        fi
2842
        # We set ac_cv_exeext here because the later test for it is not
2843
        # safe: cross compilers may not add the suffix if given an `-o'
2844
        # argument, so we may need to know it at that point already.
2845
        # Even if this section looks crufty: it has the advantage of
2846
        # actually working.
2847
        break;;
2848
    * )
2849
        break;;
2850
  esac
2851
done
2852
test "$ac_cv_exeext" = no && ac_cv_exeext=
2853
 
2854
else
2855
  ac_file=''
2856
fi
2857 346 jeremybenn
if test -z "$ac_file"; then :
2858 625 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859
$as_echo "no" >&6; }
2860
$as_echo "$as_me: failed program was:" >&5
2861 90 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2862
 
2863 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 625 jeremybenn
as_fn_error 77 "C compiler cannot create executables
2866
See \`config.log' for more details" "$LINENO" 5; }
2867
else
2868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869
$as_echo "yes" >&6; }
2870 90 jeremybenn
fi
2871 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2872
$as_echo_n "checking for C compiler default output file name... " >&6; }
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2874
$as_echo "$ac_file" >&6; }
2875 90 jeremybenn
ac_exeext=$ac_cv_exeext
2876
 
2877 625 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2878 90 jeremybenn
ac_clean_files=$ac_clean_files_save
2879 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880 90 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2881 346 jeremybenn
if { { ac_try="$ac_link"
2882 90 jeremybenn
case "(($ac_try" in
2883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884
  *) ac_try_echo=$ac_try;;
2885
esac
2886 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887
$as_echo "$ac_try_echo"; } >&5
2888 90 jeremybenn
  (eval "$ac_link") 2>&5
2889
  ac_status=$?
2890 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891
  test $ac_status = 0; }; then :
2892 90 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894
# work properly (i.e., refer to `conftest.exe'), while it won't with
2895
# `rm'.
2896
for ac_file in conftest.exe conftest conftest.*; do
2897
  test -f "$ac_file" || continue
2898
  case $ac_file in
2899
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901
          break;;
2902
    * ) break;;
2903
  esac
2904
done
2905
else
2906 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 625 jeremybenn
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2909
See \`config.log' for more details" "$LINENO" 5; }
2910 90 jeremybenn
fi
2911 625 jeremybenn
rm -f conftest conftest$ac_cv_exeext
2912 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913 90 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2914
 
2915
rm -f conftest.$ac_ext
2916
EXEEXT=$ac_cv_exeext
2917
ac_exeext=$EXEEXT
2918 625 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919
/* end confdefs.h.  */
2920
#include 
2921
int
2922
main ()
2923
{
2924
FILE *f = fopen ("conftest.out", "w");
2925
 return ferror (f) || fclose (f) != 0;
2926
 
2927
  ;
2928
  return 0;
2929
}
2930
_ACEOF
2931
ac_clean_files="$ac_clean_files conftest.out"
2932
# Check that the compiler produces executables we can run.  If not, either
2933
# the compiler is broken, or we cross compile.
2934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2935
$as_echo_n "checking whether we are cross compiling... " >&6; }
2936
if test "$cross_compiling" != yes; then
2937
  { { ac_try="$ac_link"
2938
case "(($ac_try" in
2939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
  *) ac_try_echo=$ac_try;;
2941
esac
2942
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943
$as_echo "$ac_try_echo"; } >&5
2944
  (eval "$ac_link") 2>&5
2945
  ac_status=$?
2946
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947
  test $ac_status = 0; }
2948
  if { ac_try='./conftest$ac_cv_exeext'
2949
  { { case "(($ac_try" in
2950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951
  *) ac_try_echo=$ac_try;;
2952
esac
2953
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954
$as_echo "$ac_try_echo"; } >&5
2955
  (eval "$ac_try") 2>&5
2956
  ac_status=$?
2957
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958
  test $ac_status = 0; }; }; then
2959
    cross_compiling=no
2960
  else
2961
    if test "$cross_compiling" = maybe; then
2962
        cross_compiling=yes
2963
    else
2964
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966
as_fn_error $? "cannot run C compiled programs.
2967
If you meant to cross compile, use \`--host'.
2968
See \`config.log' for more details" "$LINENO" 5; }
2969
    fi
2970
  fi
2971
fi
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2973
$as_echo "$cross_compiling" >&6; }
2974
 
2975
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2976
ac_clean_files=$ac_clean_files_save
2977 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2978 90 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2979 625 jeremybenn
if ${ac_cv_objext+:} false; then :
2980 90 jeremybenn
  $as_echo_n "(cached) " >&6
2981
else
2982 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 90 jeremybenn
/* end confdefs.h.  */
2984
 
2985
int
2986
main ()
2987
{
2988
 
2989
  ;
2990
  return 0;
2991
}
2992
_ACEOF
2993
rm -f conftest.o conftest.obj
2994 346 jeremybenn
if { { ac_try="$ac_compile"
2995 90 jeremybenn
case "(($ac_try" in
2996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997
  *) ac_try_echo=$ac_try;;
2998
esac
2999 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000
$as_echo "$ac_try_echo"; } >&5
3001 90 jeremybenn
  (eval "$ac_compile") 2>&5
3002
  ac_status=$?
3003 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004
  test $ac_status = 0; }; then :
3005 90 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3006
  test -f "$ac_file" || continue;
3007
  case $ac_file in
3008
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3009
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010
       break;;
3011
  esac
3012
done
3013
else
3014
  $as_echo "$as_me: failed program was:" >&5
3015
sed 's/^/| /' conftest.$ac_ext >&5
3016
 
3017 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 625 jeremybenn
as_fn_error $? "cannot compute suffix of object files: cannot compile
3020
See \`config.log' for more details" "$LINENO" 5; }
3021 90 jeremybenn
fi
3022
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023
fi
3024 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3025 90 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3026
OBJEXT=$ac_cv_objext
3027
ac_objext=$OBJEXT
3028 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3029 90 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3030 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
3031 90 jeremybenn
  $as_echo_n "(cached) " >&6
3032
else
3033 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 90 jeremybenn
/* end confdefs.h.  */
3035
 
3036
int
3037
main ()
3038
{
3039
#ifndef __GNUC__
3040
       choke me
3041
#endif
3042
 
3043
  ;
3044
  return 0;
3045
}
3046
_ACEOF
3047 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3048 90 jeremybenn
  ac_compiler_gnu=yes
3049
else
3050 346 jeremybenn
  ac_compiler_gnu=no
3051 90 jeremybenn
fi
3052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054
 
3055
fi
3056 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3057 90 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058
if test $ac_compiler_gnu = yes; then
3059
  GCC=yes
3060
else
3061
  GCC=
3062
fi
3063
ac_test_CFLAGS=${CFLAGS+set}
3064
ac_save_CFLAGS=$CFLAGS
3065 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3066 90 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3067 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
3068 90 jeremybenn
  $as_echo_n "(cached) " >&6
3069
else
3070
  ac_save_c_werror_flag=$ac_c_werror_flag
3071
   ac_c_werror_flag=yes
3072
   ac_cv_prog_cc_g=no
3073
   CFLAGS="-g"
3074 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 90 jeremybenn
/* end confdefs.h.  */
3076
 
3077
int
3078
main ()
3079
{
3080
 
3081
  ;
3082
  return 0;
3083
}
3084
_ACEOF
3085 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3086 90 jeremybenn
  ac_cv_prog_cc_g=yes
3087
else
3088 346 jeremybenn
  CFLAGS=""
3089
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 90 jeremybenn
/* end confdefs.h.  */
3091
 
3092
int
3093
main ()
3094
{
3095
 
3096
  ;
3097
  return 0;
3098
}
3099
_ACEOF
3100 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3101
 
3102 236 jeremybenn
else
3103 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3104 90 jeremybenn
         CFLAGS="-g"
3105 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 90 jeremybenn
/* end confdefs.h.  */
3107
 
3108
int
3109
main ()
3110
{
3111
 
3112
  ;
3113
  return 0;
3114
}
3115
_ACEOF
3116 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3117 90 jeremybenn
  ac_cv_prog_cc_g=yes
3118
fi
3119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120
fi
3121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122
fi
3123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124
   ac_c_werror_flag=$ac_save_c_werror_flag
3125
fi
3126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3127 90 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3128
if test "$ac_test_CFLAGS" = set; then
3129
  CFLAGS=$ac_save_CFLAGS
3130
elif test $ac_cv_prog_cc_g = yes; then
3131
  if test "$GCC" = yes; then
3132
    CFLAGS="-g -O2"
3133
  else
3134
    CFLAGS="-g"
3135
  fi
3136
else
3137
  if test "$GCC" = yes; then
3138
    CFLAGS="-O2"
3139
  else
3140
    CFLAGS=
3141
  fi
3142
fi
3143 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3144 90 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3145 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
3146 90 jeremybenn
  $as_echo_n "(cached) " >&6
3147
else
3148
  ac_cv_prog_cc_c89=no
3149
ac_save_CC=$CC
3150 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 90 jeremybenn
/* end confdefs.h.  */
3152
#include 
3153
#include 
3154
#include 
3155
#include 
3156
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3157
struct buf { int x; };
3158
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3159
static char *e (p, i)
3160
     char **p;
3161
     int i;
3162
{
3163
  return p[i];
3164
}
3165
static char *f (char * (*g) (char **, int), char **p, ...)
3166
{
3167
  char *s;
3168
  va_list v;
3169
  va_start (v,p);
3170
  s = g (p, va_arg (v,int));
3171
  va_end (v);
3172
  return s;
3173
}
3174
 
3175
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3176
   function prototypes and stuff, but not '\xHH' hex character constants.
3177
   These don't provoke an error unfortunately, instead are silently treated
3178
   as 'x'.  The following induces an error, until -std is added to get
3179
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3180
   array size at least.  It's necessary to write '\x00'==0 to get something
3181
   that's true only with -std.  */
3182
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3183
 
3184
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3185
   inside strings and character constants.  */
3186
#define FOO(x) 'x'
3187
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3188
 
3189
int test (int i, double x);
3190
struct s1 {int (*f) (int a);};
3191
struct s2 {int (*f) (double a);};
3192
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3193
int argc;
3194
char **argv;
3195
int
3196
main ()
3197
{
3198
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3199
  ;
3200
  return 0;
3201
}
3202
_ACEOF
3203
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3204
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205
do
3206
  CC="$ac_save_CC $ac_arg"
3207 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3208 90 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3209
fi
3210
rm -f core conftest.err conftest.$ac_objext
3211
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3212
done
3213
rm -f conftest.$ac_ext
3214
CC=$ac_save_CC
3215
 
3216
fi
3217
# AC_CACHE_VAL
3218
case "x$ac_cv_prog_cc_c89" in
3219
  x)
3220 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3221 90 jeremybenn
$as_echo "none needed" >&6; } ;;
3222
  xno)
3223 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3224 90 jeremybenn
$as_echo "unsupported" >&6; } ;;
3225
  *)
3226
    CC="$CC $ac_cv_prog_cc_c89"
3227 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3228 90 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3229
esac
3230 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3231 90 jeremybenn
 
3232 346 jeremybenn
fi
3233 90 jeremybenn
 
3234
ac_ext=c
3235
ac_cpp='$CPP $CPPFLAGS'
3236
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
 
3240 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3241 90 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3242 625 jeremybenn
if ${ac_cv_path_SED+:} false; then :
3243 90 jeremybenn
  $as_echo_n "(cached) " >&6
3244
else
3245
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3246
     for ac_i in 1 2 3 4 5 6 7; do
3247
       ac_script="$ac_script$as_nl$ac_script"
3248
     done
3249
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3250 346 jeremybenn
     { ac_script=; unset ac_script;}
3251 90 jeremybenn
     if test -z "$SED"; then
3252
  ac_path_SED_found=false
3253
  # Loop through the user's path and test for each of PROGNAME-LIST
3254
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255
for as_dir in $PATH
3256
do
3257
  IFS=$as_save_IFS
3258
  test -z "$as_dir" && as_dir=.
3259 346 jeremybenn
    for ac_prog in sed gsed; do
3260 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3261
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3262
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3263
# Check for GNU ac_path_SED and select it if it is found.
3264
  # Check for GNU $ac_path_SED
3265
case `"$ac_path_SED" --version 2>&1` in
3266
*GNU*)
3267
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3268
*)
3269
  ac_count=0
3270
  $as_echo_n 0123456789 >"conftest.in"
3271
  while :
3272
  do
3273
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3274
    mv "conftest.tmp" "conftest.in"
3275
    cp "conftest.in" "conftest.nl"
3276
    $as_echo '' >> "conftest.nl"
3277
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3278
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3279 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3280 90 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3281
      # Best one so far, save it but keep looking for a better one
3282
      ac_cv_path_SED="$ac_path_SED"
3283
      ac_path_SED_max=$ac_count
3284
    fi
3285
    # 10*(2^10) chars as input seems more than enough
3286
    test $ac_count -gt 10 && break
3287
  done
3288
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3289
esac
3290
 
3291
      $ac_path_SED_found && break 3
3292
    done
3293
  done
3294 346 jeremybenn
  done
3295 90 jeremybenn
IFS=$as_save_IFS
3296
  if test -z "$ac_cv_path_SED"; then
3297 625 jeremybenn
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3298 90 jeremybenn
  fi
3299
else
3300
  ac_cv_path_SED=$SED
3301
fi
3302
 
3303
fi
3304 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3305 90 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
3306
 SED="$ac_cv_path_SED"
3307
  rm -f conftest.sed
3308
 
3309
test -z "$SED" && SED=sed
3310
Xsed="$SED -e 1s/^X//"
3311
 
3312
 
3313
 
3314
 
3315
 
3316
 
3317
 
3318
 
3319
 
3320
 
3321
 
3322 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3323 90 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3324 625 jeremybenn
if ${ac_cv_path_GREP+:} false; then :
3325 90 jeremybenn
  $as_echo_n "(cached) " >&6
3326
else
3327
  if test -z "$GREP"; then
3328
  ac_path_GREP_found=false
3329
  # Loop through the user's path and test for each of PROGNAME-LIST
3330
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335 346 jeremybenn
    for ac_prog in grep ggrep; do
3336 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3337
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3338
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3339
# Check for GNU ac_path_GREP and select it if it is found.
3340
  # Check for GNU $ac_path_GREP
3341
case `"$ac_path_GREP" --version 2>&1` in
3342
*GNU*)
3343
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3344
*)
3345
  ac_count=0
3346
  $as_echo_n 0123456789 >"conftest.in"
3347
  while :
3348
  do
3349
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3350
    mv "conftest.tmp" "conftest.in"
3351
    cp "conftest.in" "conftest.nl"
3352
    $as_echo 'GREP' >> "conftest.nl"
3353
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3354
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3355 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3356 90 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3357
      # Best one so far, save it but keep looking for a better one
3358
      ac_cv_path_GREP="$ac_path_GREP"
3359
      ac_path_GREP_max=$ac_count
3360
    fi
3361
    # 10*(2^10) chars as input seems more than enough
3362
    test $ac_count -gt 10 && break
3363
  done
3364
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3365
esac
3366
 
3367
      $ac_path_GREP_found && break 3
3368
    done
3369
  done
3370 346 jeremybenn
  done
3371 90 jeremybenn
IFS=$as_save_IFS
3372
  if test -z "$ac_cv_path_GREP"; then
3373 625 jeremybenn
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3374 90 jeremybenn
  fi
3375
else
3376
  ac_cv_path_GREP=$GREP
3377
fi
3378
 
3379
fi
3380 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3381 90 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3382
 GREP="$ac_cv_path_GREP"
3383
 
3384
 
3385 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3386 90 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3387 625 jeremybenn
if ${ac_cv_path_EGREP+:} false; then :
3388 90 jeremybenn
  $as_echo_n "(cached) " >&6
3389
else
3390
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3391
   then ac_cv_path_EGREP="$GREP -E"
3392
   else
3393
     if test -z "$EGREP"; then
3394
  ac_path_EGREP_found=false
3395
  # Loop through the user's path and test for each of PROGNAME-LIST
3396
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3398
do
3399
  IFS=$as_save_IFS
3400
  test -z "$as_dir" && as_dir=.
3401 346 jeremybenn
    for ac_prog in egrep; do
3402 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3403
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3404
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3405
# Check for GNU ac_path_EGREP and select it if it is found.
3406
  # Check for GNU $ac_path_EGREP
3407
case `"$ac_path_EGREP" --version 2>&1` in
3408
*GNU*)
3409
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3410
*)
3411
  ac_count=0
3412
  $as_echo_n 0123456789 >"conftest.in"
3413
  while :
3414
  do
3415
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3416
    mv "conftest.tmp" "conftest.in"
3417
    cp "conftest.in" "conftest.nl"
3418
    $as_echo 'EGREP' >> "conftest.nl"
3419
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3420
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3421 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3422 90 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3423
      # Best one so far, save it but keep looking for a better one
3424
      ac_cv_path_EGREP="$ac_path_EGREP"
3425
      ac_path_EGREP_max=$ac_count
3426
    fi
3427
    # 10*(2^10) chars as input seems more than enough
3428
    test $ac_count -gt 10 && break
3429
  done
3430
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3431
esac
3432
 
3433
      $ac_path_EGREP_found && break 3
3434
    done
3435
  done
3436 346 jeremybenn
  done
3437 90 jeremybenn
IFS=$as_save_IFS
3438
  if test -z "$ac_cv_path_EGREP"; then
3439 625 jeremybenn
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3440 90 jeremybenn
  fi
3441
else
3442
  ac_cv_path_EGREP=$EGREP
3443
fi
3444
 
3445
   fi
3446
fi
3447 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3448 90 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3449
 EGREP="$ac_cv_path_EGREP"
3450
 
3451
 
3452 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3453 90 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
3454 625 jeremybenn
if ${ac_cv_path_FGREP+:} false; then :
3455 90 jeremybenn
  $as_echo_n "(cached) " >&6
3456
else
3457
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3458
   then ac_cv_path_FGREP="$GREP -F"
3459
   else
3460
     if test -z "$FGREP"; then
3461
  ac_path_FGREP_found=false
3462
  # Loop through the user's path and test for each of PROGNAME-LIST
3463
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3465
do
3466
  IFS=$as_save_IFS
3467
  test -z "$as_dir" && as_dir=.
3468 346 jeremybenn
    for ac_prog in fgrep; do
3469 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3470
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3471
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3472
# Check for GNU ac_path_FGREP and select it if it is found.
3473
  # Check for GNU $ac_path_FGREP
3474
case `"$ac_path_FGREP" --version 2>&1` in
3475
*GNU*)
3476
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3477
*)
3478
  ac_count=0
3479
  $as_echo_n 0123456789 >"conftest.in"
3480
  while :
3481
  do
3482
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3483
    mv "conftest.tmp" "conftest.in"
3484
    cp "conftest.in" "conftest.nl"
3485
    $as_echo 'FGREP' >> "conftest.nl"
3486
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3488 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3489 90 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3490
      # Best one so far, save it but keep looking for a better one
3491
      ac_cv_path_FGREP="$ac_path_FGREP"
3492
      ac_path_FGREP_max=$ac_count
3493
    fi
3494
    # 10*(2^10) chars as input seems more than enough
3495
    test $ac_count -gt 10 && break
3496
  done
3497
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498
esac
3499
 
3500
      $ac_path_FGREP_found && break 3
3501
    done
3502
  done
3503 346 jeremybenn
  done
3504 90 jeremybenn
IFS=$as_save_IFS
3505
  if test -z "$ac_cv_path_FGREP"; then
3506 625 jeremybenn
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3507 90 jeremybenn
  fi
3508
else
3509
  ac_cv_path_FGREP=$FGREP
3510
fi
3511
 
3512
   fi
3513
fi
3514 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3515 90 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
3516
 FGREP="$ac_cv_path_FGREP"
3517
 
3518
 
3519
test -z "$GREP" && GREP=grep
3520
 
3521
 
3522
 
3523
 
3524
 
3525
 
3526
 
3527
 
3528
 
3529
 
3530
 
3531
 
3532
 
3533
 
3534
 
3535
 
3536
 
3537
 
3538
 
3539
# Check whether --with-gnu-ld was given.
3540 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
3541 90 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3542
else
3543
  with_gnu_ld=no
3544
fi
3545
 
3546
ac_prog=ld
3547
if test "$GCC" = yes; then
3548
  # Check if gcc -print-prog-name=ld gives a path.
3549 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3550 90 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
3551
  case $host in
3552
  *-*-mingw*)
3553
    # gcc leaves a trailing carriage return which upsets mingw
3554
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3555
  *)
3556
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3557
  esac
3558
  case $ac_prog in
3559
    # Accept absolute paths.
3560
    [\\/]* | ?:[\\/]*)
3561
      re_direlt='/[^/][^/]*/\.\./'
3562
      # Canonicalize the pathname of ld
3563
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3564
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3565
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3566
      done
3567
      test -z "$LD" && LD="$ac_prog"
3568
      ;;
3569
  "")
3570
    # If it fails, then pretend we aren't using GCC.
3571
    ac_prog=ld
3572
    ;;
3573
  *)
3574
    # If it is relative, then search for the first ld in PATH.
3575
    with_gnu_ld=unknown
3576
    ;;
3577
  esac
3578
elif test "$with_gnu_ld" = yes; then
3579 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3580 90 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
3581
else
3582 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3583 90 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
3584
fi
3585 625 jeremybenn
if ${lt_cv_path_LD+:} false; then :
3586 90 jeremybenn
  $as_echo_n "(cached) " >&6
3587
else
3588
  if test -z "$LD"; then
3589
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3590
  for ac_dir in $PATH; do
3591
    IFS="$lt_save_ifs"
3592
    test -z "$ac_dir" && ac_dir=.
3593
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3594
      lt_cv_path_LD="$ac_dir/$ac_prog"
3595
      # Check to see if the program is GNU ld.  I'd rather use --version,
3596
      # but apparently some variants of GNU ld only accept -v.
3597
      # Break only if it was the GNU/non-GNU ld that we prefer.
3598
      case `"$lt_cv_path_LD" -v 2>&1 
3599
      *GNU* | *'with BFD'*)
3600
        test "$with_gnu_ld" != no && break
3601
        ;;
3602
      *)
3603
        test "$with_gnu_ld" != yes && break
3604
        ;;
3605
      esac
3606
    fi
3607
  done
3608
  IFS="$lt_save_ifs"
3609
else
3610
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3611
fi
3612
fi
3613
 
3614
LD="$lt_cv_path_LD"
3615
if test -n "$LD"; then
3616 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3617 90 jeremybenn
$as_echo "$LD" >&6; }
3618
else
3619 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 90 jeremybenn
$as_echo "no" >&6; }
3621
fi
3622 625 jeremybenn
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3623 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3624 90 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3625 625 jeremybenn
if ${lt_cv_prog_gnu_ld+:} false; then :
3626 90 jeremybenn
  $as_echo_n "(cached) " >&6
3627
else
3628
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3629
case `$LD -v 2>&1 
3630
*GNU* | *'with BFD'*)
3631
  lt_cv_prog_gnu_ld=yes
3632
  ;;
3633
*)
3634
  lt_cv_prog_gnu_ld=no
3635
  ;;
3636
esac
3637
fi
3638 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3639 90 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3640
with_gnu_ld=$lt_cv_prog_gnu_ld
3641
 
3642
 
3643
 
3644
 
3645
 
3646
 
3647
 
3648
 
3649
 
3650 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3651 90 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3652 625 jeremybenn
if ${lt_cv_path_NM+:} false; then :
3653 90 jeremybenn
  $as_echo_n "(cached) " >&6
3654
else
3655
  if test -n "$NM"; then
3656
  # Let the user override the test.
3657
  lt_cv_path_NM="$NM"
3658
else
3659
  lt_nm_to_check="${ac_tool_prefix}nm"
3660
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3661
    lt_nm_to_check="$lt_nm_to_check nm"
3662
  fi
3663
  for lt_tmp_nm in $lt_nm_to_check; do
3664
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3665
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3666
      IFS="$lt_save_ifs"
3667
      test -z "$ac_dir" && ac_dir=.
3668
      tmp_nm="$ac_dir/$lt_tmp_nm"
3669
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3670
        # Check to see if the nm accepts a BSD-compat flag.
3671
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3672
        #   nm: unknown option "B" ignored
3673
        # Tru64's nm complains that /dev/null is an invalid object file
3674
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3675
        */dev/null* | *'Invalid file or object type'*)
3676
          lt_cv_path_NM="$tmp_nm -B"
3677
          break
3678
          ;;
3679
        *)
3680
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3681
          */dev/null*)
3682
            lt_cv_path_NM="$tmp_nm -p"
3683
            break
3684
            ;;
3685
          *)
3686
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3687
            continue # so that we can try to find one that supports BSD flags
3688
            ;;
3689
          esac
3690
          ;;
3691
        esac
3692
      fi
3693
    done
3694
    IFS="$lt_save_ifs"
3695
  done
3696
  : ${lt_cv_path_NM=no}
3697
fi
3698
fi
3699 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3700 90 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
3701
if test "$lt_cv_path_NM" != "no"; then
3702
  NM="$lt_cv_path_NM"
3703
else
3704
  # Didn't find any BSD compatible name lister, look for dumpbin.
3705 784 jeremybenn
  if test -n "$DUMPBIN"; then :
3706
    # Let the user override the test.
3707
  else
3708
    if test -n "$ac_tool_prefix"; then
3709
  for ac_prog in dumpbin "link -dump"
3710 90 jeremybenn
  do
3711
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3715 625 jeremybenn
if ${ac_cv_prog_DUMPBIN+:} false; then :
3716 90 jeremybenn
  $as_echo_n "(cached) " >&6
3717
else
3718
  if test -n "$DUMPBIN"; then
3719
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3720
else
3721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722
for as_dir in $PATH
3723
do
3724
  IFS=$as_save_IFS
3725
  test -z "$as_dir" && as_dir=.
3726 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3727 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3729 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 90 jeremybenn
    break 2
3731
  fi
3732
done
3733 346 jeremybenn
  done
3734 90 jeremybenn
IFS=$as_save_IFS
3735
 
3736
fi
3737
fi
3738
DUMPBIN=$ac_cv_prog_DUMPBIN
3739
if test -n "$DUMPBIN"; then
3740 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3741 90 jeremybenn
$as_echo "$DUMPBIN" >&6; }
3742
else
3743 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 90 jeremybenn
$as_echo "no" >&6; }
3745
fi
3746
 
3747
 
3748
    test -n "$DUMPBIN" && break
3749
  done
3750
fi
3751
if test -z "$DUMPBIN"; then
3752
  ac_ct_DUMPBIN=$DUMPBIN
3753 784 jeremybenn
  for ac_prog in dumpbin "link -dump"
3754 90 jeremybenn
do
3755
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3756
set dummy $ac_prog; ac_word=$2
3757 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3759 625 jeremybenn
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3760 90 jeremybenn
  $as_echo_n "(cached) " >&6
3761
else
3762
  if test -n "$ac_ct_DUMPBIN"; then
3763
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3764
else
3765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766
for as_dir in $PATH
3767
do
3768
  IFS=$as_save_IFS
3769
  test -z "$as_dir" && as_dir=.
3770 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3771 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3773 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 90 jeremybenn
    break 2
3775
  fi
3776
done
3777 346 jeremybenn
  done
3778 90 jeremybenn
IFS=$as_save_IFS
3779
 
3780
fi
3781
fi
3782
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3783
if test -n "$ac_ct_DUMPBIN"; then
3784 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3785 90 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
3786
else
3787 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 90 jeremybenn
$as_echo "no" >&6; }
3789
fi
3790
 
3791
 
3792
  test -n "$ac_ct_DUMPBIN" && break
3793
done
3794
 
3795
  if test "x$ac_ct_DUMPBIN" = x; then
3796
    DUMPBIN=":"
3797
  else
3798
    case $cross_compiling:$ac_tool_warned in
3799
yes:)
3800 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802
ac_tool_warned=yes ;;
3803
esac
3804
    DUMPBIN=$ac_ct_DUMPBIN
3805
  fi
3806
fi
3807
 
3808 784 jeremybenn
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3809
    *COFF*)
3810
      DUMPBIN="$DUMPBIN -symbols"
3811
      ;;
3812
    *)
3813
      DUMPBIN=:
3814
      ;;
3815
    esac
3816
  fi
3817 90 jeremybenn
 
3818
  if test "$DUMPBIN" != ":"; then
3819
    NM="$DUMPBIN"
3820
  fi
3821
fi
3822
test -z "$NM" && NM=nm
3823
 
3824
 
3825
 
3826
 
3827
 
3828
 
3829 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3830 90 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3831 625 jeremybenn
if ${lt_cv_nm_interface+:} false; then :
3832 90 jeremybenn
  $as_echo_n "(cached) " >&6
3833
else
3834
  lt_cv_nm_interface="BSD nm"
3835
  echo "int some_variable = 0;" > conftest.$ac_ext
3836 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3837 90 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3838
  cat conftest.err >&5
3839 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3840 90 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3841
  cat conftest.err >&5
3842 784 jeremybenn
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3843 90 jeremybenn
  cat conftest.out >&5
3844
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3845
    lt_cv_nm_interface="MS dumpbin"
3846
  fi
3847
  rm -f conftest*
3848
fi
3849 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3850 90 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
3851
 
3852 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3853 90 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
3854
LN_S=$as_ln_s
3855
if test "$LN_S" = "ln -s"; then
3856 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 90 jeremybenn
$as_echo "yes" >&6; }
3858
else
3859 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3860 90 jeremybenn
$as_echo "no, using $LN_S" >&6; }
3861
fi
3862
 
3863
# find the maximum length of command line arguments
3864 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3865 90 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3866 625 jeremybenn
if ${lt_cv_sys_max_cmd_len+:} false; then :
3867 90 jeremybenn
  $as_echo_n "(cached) " >&6
3868
else
3869
    i=0
3870
  teststring="ABCD"
3871
 
3872
  case $build_os in
3873
  msdosdjgpp*)
3874
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3875
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3876
    # during glob expansion).  Even if it were fixed, the result of this
3877
    # check would be larger than it should be.
3878
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3879
    ;;
3880
 
3881
  gnu*)
3882
    # Under GNU Hurd, this test is not required because there is
3883
    # no limit to the length of command line arguments.
3884
    # Libtool will interpret -1 as no limit whatsoever
3885
    lt_cv_sys_max_cmd_len=-1;
3886
    ;;
3887
 
3888
  cygwin* | mingw* | cegcc*)
3889
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3890
    # about 5 minutes as the teststring grows exponentially.
3891
    # Worse, since 9x/ME are not pre-emptively multitasking,
3892
    # you end up with a "frozen" computer, even though with patience
3893
    # the test eventually succeeds (with a max line length of 256k).
3894
    # Instead, let's just punt: use the minimum linelength reported by
3895
    # all of the supported platforms: 8192 (on NT/2K/XP).
3896
    lt_cv_sys_max_cmd_len=8192;
3897
    ;;
3898
 
3899 784 jeremybenn
  mint*)
3900
    # On MiNT this can take a long time and run out of memory.
3901
    lt_cv_sys_max_cmd_len=8192;
3902
    ;;
3903
 
3904 90 jeremybenn
  amigaos*)
3905
    # On AmigaOS with pdksh, this test takes hours, literally.
3906
    # So we just punt and use a minimum line length of 8192.
3907
    lt_cv_sys_max_cmd_len=8192;
3908
    ;;
3909
 
3910
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3911
    # This has been around since 386BSD, at least.  Likely further.
3912
    if test -x /sbin/sysctl; then
3913
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3914
    elif test -x /usr/sbin/sysctl; then
3915
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3916
    else
3917
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3918
    fi
3919
    # And add a safety zone
3920
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3921
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3922
    ;;
3923
 
3924
  interix*)
3925
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3926
    lt_cv_sys_max_cmd_len=196608
3927
    ;;
3928
 
3929
  osf*)
3930
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3931
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3932
    # nice to cause kernel panics so lets avoid the loop below.
3933
    # First set a reasonable default.
3934
    lt_cv_sys_max_cmd_len=16384
3935
    #
3936
    if test -x /sbin/sysconfig; then
3937
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3938
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3939
      esac
3940
    fi
3941
    ;;
3942
  sco3.2v5*)
3943
    lt_cv_sys_max_cmd_len=102400
3944
    ;;
3945
  sysv5* | sco5v6* | sysv4.2uw2*)
3946
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3947
    if test -n "$kargmax"; then
3948
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3949
    else
3950
      lt_cv_sys_max_cmd_len=32768
3951
    fi
3952
    ;;
3953
  *)
3954
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3955
    if test -n "$lt_cv_sys_max_cmd_len"; then
3956
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3957
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3958
    else
3959
      # Make teststring a little bigger before we do anything with it.
3960
      # a 1K string should be a reasonable start.
3961
      for i in 1 2 3 4 5 6 7 8 ; do
3962
        teststring=$teststring$teststring
3963
      done
3964
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3965
      # If test is not a shell built-in, we'll probably end up computing a
3966
      # maximum length that is only half of the actual maximum length, but
3967
      # we can't tell.
3968 784 jeremybenn
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3969
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3970 90 jeremybenn
              test $i != 17 # 1/2 MB should be enough
3971
      do
3972
        i=`expr $i + 1`
3973
        teststring=$teststring$teststring
3974
      done
3975
      # Only check the string length outside the loop.
3976
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3977
      teststring=
3978
      # Add a significant safety factor because C++ compilers can tack on
3979
      # massive amounts of additional arguments before passing them to the
3980
      # linker.  It appears as though 1/2 is a usable value.
3981
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3982
    fi
3983
    ;;
3984
  esac
3985
 
3986
fi
3987
 
3988
if test -n $lt_cv_sys_max_cmd_len ; then
3989 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3990 90 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3991
else
3992 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3993 90 jeremybenn
$as_echo "none" >&6; }
3994
fi
3995
max_cmd_len=$lt_cv_sys_max_cmd_len
3996
 
3997
 
3998
 
3999
 
4000
 
4001
 
4002
: ${CP="cp -f"}
4003
: ${MV="mv -f"}
4004
: ${RM="rm -f"}
4005
 
4006 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4007 90 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4008
# Try some XSI features
4009
xsi_shell=no
4010
( _lt_dummy="a/b/c"
4011 784 jeremybenn
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4012
      = c,a/b,b/c, \
4013 90 jeremybenn
    && eval 'test $(( 1 + 1 )) -eq 2 \
4014
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4015
  && xsi_shell=yes
4016 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4017 90 jeremybenn
$as_echo "$xsi_shell" >&6; }
4018
 
4019
 
4020 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4021 90 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4022
lt_shell_append=no
4023
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4024
    >/dev/null 2>&1 \
4025
  && lt_shell_append=yes
4026 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4027 90 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4028
 
4029
 
4030
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4031
  lt_unset=unset
4032
else
4033
  lt_unset=false
4034
fi
4035
 
4036
 
4037
 
4038
 
4039
 
4040
# test EBCDIC or ASCII
4041
case `echo X|tr X '\101'` in
4042
 A) # ASCII based system
4043
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4044
  lt_SP2NL='tr \040 \012'
4045
  lt_NL2SP='tr \015\012 \040\040'
4046
  ;;
4047
 *) # EBCDIC based system
4048
  lt_SP2NL='tr \100 \n'
4049
  lt_NL2SP='tr \r\n \100\100'
4050
  ;;
4051
esac
4052
 
4053
 
4054
 
4055
 
4056
 
4057
 
4058
 
4059
 
4060
 
4061 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4062
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4063
if ${lt_cv_to_host_file_cmd+:} false; then :
4064
  $as_echo_n "(cached) " >&6
4065
else
4066
  case $host in
4067
  *-*-mingw* )
4068
    case $build in
4069
      *-*-mingw* ) # actually msys
4070
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4071
        ;;
4072
      *-*-cygwin* )
4073
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4074
        ;;
4075
      * ) # otherwise, assume *nix
4076
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4077
        ;;
4078
    esac
4079
    ;;
4080
  *-*-cygwin* )
4081
    case $build in
4082
      *-*-mingw* ) # actually msys
4083
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4084
        ;;
4085
      *-*-cygwin* )
4086
        lt_cv_to_host_file_cmd=func_convert_file_noop
4087
        ;;
4088
      * ) # otherwise, assume *nix
4089
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4090
        ;;
4091
    esac
4092
    ;;
4093
  * ) # unhandled hosts (and "normal" native builds)
4094
    lt_cv_to_host_file_cmd=func_convert_file_noop
4095
    ;;
4096
esac
4097
 
4098
fi
4099
 
4100
to_host_file_cmd=$lt_cv_to_host_file_cmd
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4102
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4103
 
4104
 
4105
 
4106
 
4107
 
4108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4109
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4110
if ${lt_cv_to_tool_file_cmd+:} false; then :
4111
  $as_echo_n "(cached) " >&6
4112
else
4113
  #assume ordinary cross tools, or native build.
4114
lt_cv_to_tool_file_cmd=func_convert_file_noop
4115
case $host in
4116
  *-*-mingw* )
4117
    case $build in
4118
      *-*-mingw* ) # actually msys
4119
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4120
        ;;
4121
    esac
4122
    ;;
4123
esac
4124
 
4125
fi
4126
 
4127
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4129
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4130
 
4131
 
4132
 
4133
 
4134
 
4135 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4136 90 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4137 625 jeremybenn
if ${lt_cv_ld_reload_flag+:} false; then :
4138 90 jeremybenn
  $as_echo_n "(cached) " >&6
4139
else
4140
  lt_cv_ld_reload_flag='-r'
4141
fi
4142 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4143 90 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4144
reload_flag=$lt_cv_ld_reload_flag
4145
case $reload_flag in
4146
"" | " "*) ;;
4147
*) reload_flag=" $reload_flag" ;;
4148
esac
4149
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4150
case $host_os in
4151 784 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
4152
    if test "$GCC" != yes; then
4153
      reload_cmds=false
4154
    fi
4155
    ;;
4156 90 jeremybenn
  darwin*)
4157
    if test "$GCC" = yes; then
4158
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4159
    else
4160
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161
    fi
4162
    ;;
4163
esac
4164
 
4165
 
4166
 
4167
 
4168
 
4169
 
4170
 
4171
 
4172
 
4173
if test -n "$ac_tool_prefix"; then
4174
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4175
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4176 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4178 625 jeremybenn
if ${ac_cv_prog_OBJDUMP+:} false; then :
4179 90 jeremybenn
  $as_echo_n "(cached) " >&6
4180
else
4181
  if test -n "$OBJDUMP"; then
4182
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4183
else
4184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185
for as_dir in $PATH
4186
do
4187
  IFS=$as_save_IFS
4188
  test -z "$as_dir" && as_dir=.
4189 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4190 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4192 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 90 jeremybenn
    break 2
4194
  fi
4195
done
4196 346 jeremybenn
  done
4197 90 jeremybenn
IFS=$as_save_IFS
4198
 
4199
fi
4200
fi
4201
OBJDUMP=$ac_cv_prog_OBJDUMP
4202
if test -n "$OBJDUMP"; then
4203 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4204 90 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4205
else
4206 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 90 jeremybenn
$as_echo "no" >&6; }
4208
fi
4209
 
4210
 
4211
fi
4212
if test -z "$ac_cv_prog_OBJDUMP"; then
4213
  ac_ct_OBJDUMP=$OBJDUMP
4214
  # Extract the first word of "objdump", so it can be a program name with args.
4215
set dummy objdump; ac_word=$2
4216 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4218 625 jeremybenn
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4219 90 jeremybenn
  $as_echo_n "(cached) " >&6
4220
else
4221
  if test -n "$ac_ct_OBJDUMP"; then
4222
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4223
else
4224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225
for as_dir in $PATH
4226
do
4227
  IFS=$as_save_IFS
4228
  test -z "$as_dir" && as_dir=.
4229 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4230 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4232 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 90 jeremybenn
    break 2
4234
  fi
4235
done
4236 346 jeremybenn
  done
4237 90 jeremybenn
IFS=$as_save_IFS
4238
 
4239
fi
4240
fi
4241
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4242
if test -n "$ac_ct_OBJDUMP"; then
4243 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4244 90 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4245
else
4246 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 90 jeremybenn
$as_echo "no" >&6; }
4248
fi
4249
 
4250
  if test "x$ac_ct_OBJDUMP" = x; then
4251
    OBJDUMP="false"
4252
  else
4253
    case $cross_compiling:$ac_tool_warned in
4254
yes:)
4255 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4256 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4257
ac_tool_warned=yes ;;
4258
esac
4259
    OBJDUMP=$ac_ct_OBJDUMP
4260
  fi
4261
else
4262
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4263
fi
4264
 
4265
test -z "$OBJDUMP" && OBJDUMP=objdump
4266
 
4267
 
4268
 
4269
 
4270
 
4271
 
4272
 
4273
 
4274
 
4275 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4276 90 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4277 625 jeremybenn
if ${lt_cv_deplibs_check_method+:} false; then :
4278 90 jeremybenn
  $as_echo_n "(cached) " >&6
4279
else
4280
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4281
lt_cv_file_magic_test_file=
4282
lt_cv_deplibs_check_method='unknown'
4283
# Need to set the preceding variable on all platforms that support
4284
# interlibrary dependencies.
4285
# 'none' -- dependencies not supported.
4286
# `unknown' -- same as none, but documents that we really don't know.
4287
# 'pass_all' -- all dependencies passed with no checks.
4288
# 'test_compile' -- check by making test program.
4289
# 'file_magic [[regex]]' -- check by looking for files in library path
4290
# which responds to the $file_magic_cmd with a given extended regex.
4291
# If you have `file' or equivalent on your system and you're not sure
4292
# whether `pass_all' will *always* work, you probably want this one.
4293
 
4294
case $host_os in
4295
aix[4-9]*)
4296
  lt_cv_deplibs_check_method=pass_all
4297
  ;;
4298
 
4299
beos*)
4300
  lt_cv_deplibs_check_method=pass_all
4301
  ;;
4302
 
4303
bsdi[45]*)
4304
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4305
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4306
  lt_cv_file_magic_test_file=/shlib/libc.so
4307
  ;;
4308
 
4309
cygwin*)
4310
  # func_win32_libid is a shell function defined in ltmain.sh
4311
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4312
  lt_cv_file_magic_cmd='func_win32_libid'
4313
  ;;
4314
 
4315
mingw* | pw32*)
4316
  # Base MSYS/MinGW do not provide the 'file' command needed by
4317
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4318
  # unless we find 'file', for example because we are cross-compiling.
4319 784 jeremybenn
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4320
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4321 90 jeremybenn
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4322
    lt_cv_file_magic_cmd='func_win32_libid'
4323
  else
4324 784 jeremybenn
    # Keep this pattern in sync with the one in func_win32_libid.
4325
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4326 90 jeremybenn
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4327
  fi
4328
  ;;
4329
 
4330 784 jeremybenn
cegcc*)
4331 90 jeremybenn
  # use the weaker test based on 'objdump'. See mingw*.
4332
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4333
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4334
  ;;
4335
 
4336
darwin* | rhapsody*)
4337
  lt_cv_deplibs_check_method=pass_all
4338
  ;;
4339
 
4340
freebsd* | dragonfly*)
4341
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4342
    case $host_cpu in
4343
    i*86 )
4344
      # Not sure whether the presence of OpenBSD here was a mistake.
4345
      # Let's accept both of them until this is cleared up.
4346
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4347
      lt_cv_file_magic_cmd=/usr/bin/file
4348
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4349
      ;;
4350
    esac
4351
  else
4352
    lt_cv_deplibs_check_method=pass_all
4353
  fi
4354
  ;;
4355
 
4356
gnu*)
4357
  lt_cv_deplibs_check_method=pass_all
4358
  ;;
4359
 
4360 784 jeremybenn
haiku*)
4361
  lt_cv_deplibs_check_method=pass_all
4362
  ;;
4363
 
4364 90 jeremybenn
hpux10.20* | hpux11*)
4365
  lt_cv_file_magic_cmd=/usr/bin/file
4366
  case $host_cpu in
4367
  ia64*)
4368
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4369
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4370
    ;;
4371
  hppa*64*)
4372 784 jeremybenn
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4373 90 jeremybenn
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374
    ;;
4375
  *)
4376 784 jeremybenn
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4377 90 jeremybenn
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4378
    ;;
4379
  esac
4380
  ;;
4381
 
4382
interix[3-9]*)
4383
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385
  ;;
4386
 
4387
irix5* | irix6* | nonstopux*)
4388
  case $LD in
4389
  *-32|*"-32 ") libmagic=32-bit;;
4390
  *-n32|*"-n32 ") libmagic=N32;;
4391
  *-64|*"-64 ") libmagic=64-bit;;
4392
  *) libmagic=never-match;;
4393
  esac
4394
  lt_cv_deplibs_check_method=pass_all
4395
  ;;
4396
 
4397
# This must be Linux ELF.
4398 784 jeremybenn
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4399 90 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4400
  ;;
4401
 
4402 784 jeremybenn
netbsd*)
4403 90 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4404
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4405
  else
4406
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4407
  fi
4408
  ;;
4409
 
4410
newos6*)
4411
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4412
  lt_cv_file_magic_cmd=/usr/bin/file
4413
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414
  ;;
4415
 
4416
*nto* | *qnx*)
4417
  lt_cv_deplibs_check_method=pass_all
4418
  ;;
4419
 
4420
openbsd*)
4421
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4422
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4423
  else
4424
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4425
  fi
4426
  ;;
4427
 
4428
osf3* | osf4* | osf5*)
4429
  lt_cv_deplibs_check_method=pass_all
4430
  ;;
4431
 
4432
rdos*)
4433
  lt_cv_deplibs_check_method=pass_all
4434
  ;;
4435
 
4436
solaris*)
4437
  lt_cv_deplibs_check_method=pass_all
4438
  ;;
4439
 
4440
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4441
  lt_cv_deplibs_check_method=pass_all
4442
  ;;
4443
 
4444
sysv4 | sysv4.3*)
4445
  case $host_vendor in
4446
  motorola)
4447
    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]'
4448
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4449
    ;;
4450
  ncr)
4451
    lt_cv_deplibs_check_method=pass_all
4452
    ;;
4453
  sequent)
4454
    lt_cv_file_magic_cmd='/bin/file'
4455
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4456
    ;;
4457
  sni)
4458
    lt_cv_file_magic_cmd='/bin/file'
4459
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4460
    lt_cv_file_magic_test_file=/lib/libc.so
4461
    ;;
4462
  siemens)
4463
    lt_cv_deplibs_check_method=pass_all
4464
    ;;
4465
  pc)
4466
    lt_cv_deplibs_check_method=pass_all
4467
    ;;
4468
  esac
4469
  ;;
4470
 
4471
tpf*)
4472
  lt_cv_deplibs_check_method=pass_all
4473
  ;;
4474
esac
4475
 
4476
fi
4477 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4478 90 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4479 784 jeremybenn
 
4480
file_magic_glob=
4481
want_nocaseglob=no
4482
if test "$build" = "$host"; then
4483
  case $host_os in
4484
  mingw* | pw32*)
4485
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4486
      want_nocaseglob=yes
4487
    else
4488
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4489
    fi
4490
    ;;
4491
  esac
4492
fi
4493
 
4494 90 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
4495
deplibs_check_method=$lt_cv_deplibs_check_method
4496
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4497
 
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508
 
4509 784 jeremybenn
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
 
4517
 
4518
 
4519 90 jeremybenn
if test -n "$ac_tool_prefix"; then
4520 784 jeremybenn
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4521
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4522 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4524 784 jeremybenn
if ${ac_cv_prog_DLLTOOL+:} false; then :
4525
  $as_echo_n "(cached) " >&6
4526
else
4527
  if test -n "$DLLTOOL"; then
4528
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4529
else
4530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531
for as_dir in $PATH
4532
do
4533
  IFS=$as_save_IFS
4534
  test -z "$as_dir" && as_dir=.
4535
    for ac_exec_ext in '' $ac_executable_extensions; do
4536
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4538
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539
    break 2
4540
  fi
4541
done
4542
  done
4543
IFS=$as_save_IFS
4544
 
4545
fi
4546
fi
4547
DLLTOOL=$ac_cv_prog_DLLTOOL
4548
if test -n "$DLLTOOL"; then
4549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4550
$as_echo "$DLLTOOL" >&6; }
4551
else
4552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553
$as_echo "no" >&6; }
4554
fi
4555
 
4556
 
4557
fi
4558
if test -z "$ac_cv_prog_DLLTOOL"; then
4559
  ac_ct_DLLTOOL=$DLLTOOL
4560
  # Extract the first word of "dlltool", so it can be a program name with args.
4561
set dummy dlltool; ac_word=$2
4562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563
$as_echo_n "checking for $ac_word... " >&6; }
4564
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4565
  $as_echo_n "(cached) " >&6
4566
else
4567
  if test -n "$ac_ct_DLLTOOL"; then
4568
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4569
else
4570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571
for as_dir in $PATH
4572
do
4573
  IFS=$as_save_IFS
4574
  test -z "$as_dir" && as_dir=.
4575
    for ac_exec_ext in '' $ac_executable_extensions; do
4576
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4578
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579
    break 2
4580
  fi
4581
done
4582
  done
4583
IFS=$as_save_IFS
4584
 
4585
fi
4586
fi
4587
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4588
if test -n "$ac_ct_DLLTOOL"; then
4589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4590
$as_echo "$ac_ct_DLLTOOL" >&6; }
4591
else
4592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593
$as_echo "no" >&6; }
4594
fi
4595
 
4596
  if test "x$ac_ct_DLLTOOL" = x; then
4597
    DLLTOOL="false"
4598
  else
4599
    case $cross_compiling:$ac_tool_warned in
4600
yes:)
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603
ac_tool_warned=yes ;;
4604
esac
4605
    DLLTOOL=$ac_ct_DLLTOOL
4606
  fi
4607
else
4608
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4609
fi
4610
 
4611
test -z "$DLLTOOL" && DLLTOOL=dlltool
4612
 
4613
 
4614
 
4615
 
4616
 
4617
 
4618
 
4619
 
4620
 
4621
 
4622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4623
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4624
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4625
  $as_echo_n "(cached) " >&6
4626
else
4627
  lt_cv_sharedlib_from_linklib_cmd='unknown'
4628
 
4629
case $host_os in
4630
cygwin* | mingw* | pw32* | cegcc*)
4631
  # two different shell functions defined in ltmain.sh
4632
  # decide which to use based on capabilities of $DLLTOOL
4633
  case `$DLLTOOL --help 2>&1` in
4634
  *--identify-strict*)
4635
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4636
    ;;
4637
  *)
4638
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4639
    ;;
4640
  esac
4641
  ;;
4642
*)
4643
  # fallback: assume linklib IS sharedlib
4644
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4645
  ;;
4646
esac
4647
 
4648
fi
4649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4650
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4651
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4652
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4653
 
4654
 
4655
 
4656
 
4657
 
4658
 
4659
 
4660
 
4661
if test -n "$ac_tool_prefix"; then
4662
  for ac_prog in ar
4663
  do
4664
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667
$as_echo_n "checking for $ac_word... " >&6; }
4668 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
4669 90 jeremybenn
  $as_echo_n "(cached) " >&6
4670
else
4671
  if test -n "$AR"; then
4672
  ac_cv_prog_AR="$AR" # Let the user override the test.
4673
else
4674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675
for as_dir in $PATH
4676
do
4677
  IFS=$as_save_IFS
4678
  test -z "$as_dir" && as_dir=.
4679 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4680 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 784 jeremybenn
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4682 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 90 jeremybenn
    break 2
4684
  fi
4685
done
4686 346 jeremybenn
  done
4687 90 jeremybenn
IFS=$as_save_IFS
4688
 
4689
fi
4690
fi
4691
AR=$ac_cv_prog_AR
4692
if test -n "$AR"; then
4693 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4694 90 jeremybenn
$as_echo "$AR" >&6; }
4695
else
4696 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 90 jeremybenn
$as_echo "no" >&6; }
4698
fi
4699
 
4700
 
4701 784 jeremybenn
    test -n "$AR" && break
4702
  done
4703 90 jeremybenn
fi
4704 784 jeremybenn
if test -z "$AR"; then
4705 90 jeremybenn
  ac_ct_AR=$AR
4706 784 jeremybenn
  for ac_prog in ar
4707
do
4708
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4709
set dummy $ac_prog; ac_word=$2
4710 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4712 625 jeremybenn
if ${ac_cv_prog_ac_ct_AR+:} false; then :
4713 90 jeremybenn
  $as_echo_n "(cached) " >&6
4714
else
4715
  if test -n "$ac_ct_AR"; then
4716
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4717
else
4718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719
for as_dir in $PATH
4720
do
4721
  IFS=$as_save_IFS
4722
  test -z "$as_dir" && as_dir=.
4723 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4724 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 784 jeremybenn
    ac_cv_prog_ac_ct_AR="$ac_prog"
4726 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 90 jeremybenn
    break 2
4728
  fi
4729
done
4730 346 jeremybenn
  done
4731 90 jeremybenn
IFS=$as_save_IFS
4732
 
4733
fi
4734
fi
4735
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4736
if test -n "$ac_ct_AR"; then
4737 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4738 90 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
4739
else
4740 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 90 jeremybenn
$as_echo "no" >&6; }
4742
fi
4743
 
4744 784 jeremybenn
 
4745
  test -n "$ac_ct_AR" && break
4746
done
4747
 
4748 90 jeremybenn
  if test "x$ac_ct_AR" = x; then
4749
    AR="false"
4750
  else
4751
    case $cross_compiling:$ac_tool_warned in
4752
yes:)
4753 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755
ac_tool_warned=yes ;;
4756
esac
4757
    AR=$ac_ct_AR
4758
  fi
4759
fi
4760
 
4761 784 jeremybenn
: ${AR=ar}
4762
: ${AR_FLAGS=cru}
4763 90 jeremybenn
 
4764
 
4765
 
4766
 
4767
 
4768
 
4769
 
4770
 
4771
 
4772
 
4773
 
4774 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4775
$as_echo_n "checking for archiver @FILE support... " >&6; }
4776
if ${lt_cv_ar_at_file+:} false; then :
4777
  $as_echo_n "(cached) " >&6
4778
else
4779
  lt_cv_ar_at_file=no
4780
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781
/* end confdefs.h.  */
4782
 
4783
int
4784
main ()
4785
{
4786
 
4787
  ;
4788
  return 0;
4789
}
4790
_ACEOF
4791
if ac_fn_c_try_compile "$LINENO"; then :
4792
  echo conftest.$ac_objext > conftest.lst
4793
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4794
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4795
  (eval $lt_ar_try) 2>&5
4796
  ac_status=$?
4797
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798
  test $ac_status = 0; }
4799
      if test "$ac_status" -eq 0; then
4800
        # Ensure the archiver fails upon bogus file names.
4801
        rm -f conftest.$ac_objext libconftest.a
4802
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4803
  (eval $lt_ar_try) 2>&5
4804
  ac_status=$?
4805
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4806
  test $ac_status = 0; }
4807
        if test "$ac_status" -ne 0; then
4808
          lt_cv_ar_at_file=@
4809
        fi
4810
      fi
4811
      rm -f conftest.* libconftest.a
4812
 
4813
fi
4814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815
 
4816
fi
4817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4818
$as_echo "$lt_cv_ar_at_file" >&6; }
4819
 
4820
if test "x$lt_cv_ar_at_file" = xno; then
4821
  archiver_list_spec=
4822
else
4823
  archiver_list_spec=$lt_cv_ar_at_file
4824
fi
4825
 
4826
 
4827
 
4828
 
4829
 
4830
 
4831
 
4832 90 jeremybenn
if test -n "$ac_tool_prefix"; then
4833
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4834
set dummy ${ac_tool_prefix}strip; ac_word=$2
4835 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4837 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
4838 90 jeremybenn
  $as_echo_n "(cached) " >&6
4839
else
4840
  if test -n "$STRIP"; then
4841
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4842
else
4843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844
for as_dir in $PATH
4845
do
4846
  IFS=$as_save_IFS
4847
  test -z "$as_dir" && as_dir=.
4848 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4849 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4851 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 90 jeremybenn
    break 2
4853
  fi
4854
done
4855 346 jeremybenn
  done
4856 90 jeremybenn
IFS=$as_save_IFS
4857
 
4858
fi
4859
fi
4860
STRIP=$ac_cv_prog_STRIP
4861
if test -n "$STRIP"; then
4862 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4863 90 jeremybenn
$as_echo "$STRIP" >&6; }
4864
else
4865 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 90 jeremybenn
$as_echo "no" >&6; }
4867
fi
4868
 
4869
 
4870
fi
4871
if test -z "$ac_cv_prog_STRIP"; then
4872
  ac_ct_STRIP=$STRIP
4873
  # Extract the first word of "strip", so it can be a program name with args.
4874
set dummy strip; ac_word=$2
4875 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4877 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4878 90 jeremybenn
  $as_echo_n "(cached) " >&6
4879
else
4880
  if test -n "$ac_ct_STRIP"; then
4881
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4882
else
4883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884
for as_dir in $PATH
4885
do
4886
  IFS=$as_save_IFS
4887
  test -z "$as_dir" && as_dir=.
4888 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4889 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890
    ac_cv_prog_ac_ct_STRIP="strip"
4891 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 90 jeremybenn
    break 2
4893
  fi
4894
done
4895 346 jeremybenn
  done
4896 90 jeremybenn
IFS=$as_save_IFS
4897
 
4898
fi
4899
fi
4900
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4901
if test -n "$ac_ct_STRIP"; then
4902 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4903 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
4904
else
4905 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 90 jeremybenn
$as_echo "no" >&6; }
4907
fi
4908
 
4909
  if test "x$ac_ct_STRIP" = x; then
4910
    STRIP=":"
4911
  else
4912
    case $cross_compiling:$ac_tool_warned in
4913
yes:)
4914 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916
ac_tool_warned=yes ;;
4917
esac
4918
    STRIP=$ac_ct_STRIP
4919
  fi
4920
else
4921
  STRIP="$ac_cv_prog_STRIP"
4922
fi
4923
 
4924
test -z "$STRIP" && STRIP=:
4925
 
4926
 
4927
 
4928
 
4929
 
4930
 
4931
if test -n "$ac_tool_prefix"; then
4932
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4933
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4934 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4936 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
4937 90 jeremybenn
  $as_echo_n "(cached) " >&6
4938
else
4939
  if test -n "$RANLIB"; then
4940
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4941
else
4942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943
for as_dir in $PATH
4944
do
4945
  IFS=$as_save_IFS
4946
  test -z "$as_dir" && as_dir=.
4947 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4948 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4950 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 90 jeremybenn
    break 2
4952
  fi
4953
done
4954 346 jeremybenn
  done
4955 90 jeremybenn
IFS=$as_save_IFS
4956
 
4957
fi
4958
fi
4959
RANLIB=$ac_cv_prog_RANLIB
4960
if test -n "$RANLIB"; then
4961 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4962 90 jeremybenn
$as_echo "$RANLIB" >&6; }
4963
else
4964 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 90 jeremybenn
$as_echo "no" >&6; }
4966
fi
4967
 
4968
 
4969
fi
4970
if test -z "$ac_cv_prog_RANLIB"; then
4971
  ac_ct_RANLIB=$RANLIB
4972
  # Extract the first word of "ranlib", so it can be a program name with args.
4973
set dummy ranlib; ac_word=$2
4974 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4976 625 jeremybenn
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4977 90 jeremybenn
  $as_echo_n "(cached) " >&6
4978
else
4979
  if test -n "$ac_ct_RANLIB"; then
4980
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4981
else
4982
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983
for as_dir in $PATH
4984
do
4985
  IFS=$as_save_IFS
4986
  test -z "$as_dir" && as_dir=.
4987 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4988 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4990 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 90 jeremybenn
    break 2
4992
  fi
4993
done
4994 346 jeremybenn
  done
4995 90 jeremybenn
IFS=$as_save_IFS
4996
 
4997
fi
4998
fi
4999
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5000
if test -n "$ac_ct_RANLIB"; then
5001 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5002 90 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5003
else
5004 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 90 jeremybenn
$as_echo "no" >&6; }
5006
fi
5007
 
5008
  if test "x$ac_ct_RANLIB" = x; then
5009
    RANLIB=":"
5010
  else
5011
    case $cross_compiling:$ac_tool_warned in
5012
yes:)
5013 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015
ac_tool_warned=yes ;;
5016
esac
5017
    RANLIB=$ac_ct_RANLIB
5018
  fi
5019
else
5020
  RANLIB="$ac_cv_prog_RANLIB"
5021
fi
5022
 
5023
test -z "$RANLIB" && RANLIB=:
5024
 
5025
 
5026
 
5027
 
5028
 
5029
 
5030
# Determine commands to create old-style static archives.
5031
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5032
old_postinstall_cmds='chmod 644 $oldlib'
5033
old_postuninstall_cmds=
5034
 
5035
if test -n "$RANLIB"; then
5036
  case $host_os in
5037
  openbsd*)
5038
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5039
    ;;
5040
  *)
5041
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5042
    ;;
5043
  esac
5044
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5045
fi
5046
 
5047 784 jeremybenn
case $host_os in
5048
  darwin*)
5049
    lock_old_archive_extraction=yes ;;
5050
  *)
5051
    lock_old_archive_extraction=no ;;
5052
esac
5053 90 jeremybenn
 
5054
 
5055
 
5056
 
5057
 
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
 
5071
 
5072
 
5073
 
5074 784 jeremybenn
for ac_prog in gawk mawk nawk awk
5075
do
5076
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5077
set dummy $ac_prog; ac_word=$2
5078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079
$as_echo_n "checking for $ac_word... " >&6; }
5080
if ${ac_cv_prog_AWK+:} false; then :
5081
  $as_echo_n "(cached) " >&6
5082
else
5083
  if test -n "$AWK"; then
5084
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5085
else
5086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087
for as_dir in $PATH
5088
do
5089
  IFS=$as_save_IFS
5090
  test -z "$as_dir" && as_dir=.
5091
    for ac_exec_ext in '' $ac_executable_extensions; do
5092
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093
    ac_cv_prog_AWK="$ac_prog"
5094
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095
    break 2
5096
  fi
5097
done
5098
  done
5099
IFS=$as_save_IFS
5100 90 jeremybenn
 
5101 784 jeremybenn
fi
5102
fi
5103
AWK=$ac_cv_prog_AWK
5104
if test -n "$AWK"; then
5105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5106
$as_echo "$AWK" >&6; }
5107
else
5108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109
$as_echo "no" >&6; }
5110
fi
5111 90 jeremybenn
 
5112
 
5113 784 jeremybenn
  test -n "$AWK" && break
5114
done
5115 90 jeremybenn
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124 784 jeremybenn
 
5125
 
5126
 
5127
 
5128
 
5129
 
5130
 
5131
 
5132
 
5133
 
5134 90 jeremybenn
# If no C compiler was specified, use CC.
5135
LTCC=${LTCC-"$CC"}
5136
 
5137
# If no C compiler flags were specified, use CFLAGS.
5138
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5139
 
5140
# Allow CC to be a program name with arguments.
5141
compiler=$CC
5142
 
5143
 
5144
# Check for command to grab the raw symbol name followed by C symbol from nm.
5145 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5146 90 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5147 625 jeremybenn
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5148 90 jeremybenn
  $as_echo_n "(cached) " >&6
5149
else
5150
 
5151
# These are sane defaults that work on at least a few old systems.
5152
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5153
 
5154
# Character class describing NM global symbol codes.
5155
symcode='[BCDEGRST]'
5156
 
5157
# Regexp to match symbols that can be accessed directly from C.
5158
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5159
 
5160
# Define system-specific variables.
5161
case $host_os in
5162
aix*)
5163
  symcode='[BCDT]'
5164
  ;;
5165
cygwin* | mingw* | pw32* | cegcc*)
5166
  symcode='[ABCDGISTW]'
5167
  ;;
5168
hpux*)
5169
  if test "$host_cpu" = ia64; then
5170
    symcode='[ABCDEGRST]'
5171
  fi
5172
  ;;
5173
irix* | nonstopux*)
5174
  symcode='[BCDEGRST]'
5175
  ;;
5176
osf*)
5177
  symcode='[BCDEGQRST]'
5178
  ;;
5179
solaris*)
5180
  symcode='[BDRT]'
5181
  ;;
5182
sco3.2v5*)
5183
  symcode='[DT]'
5184
  ;;
5185
sysv4.2uw2*)
5186
  symcode='[DT]'
5187
  ;;
5188
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5189
  symcode='[ABDT]'
5190
  ;;
5191
sysv4)
5192
  symcode='[DFNSTU]'
5193
  ;;
5194
esac
5195
 
5196
# If we're using GNU nm, then use its standard symbol codes.
5197
case `$NM -V 2>&1` in
5198
*GNU* | *'with BFD'*)
5199
  symcode='[ABCDGIRSTW]' ;;
5200
esac
5201
 
5202
# Transform an extracted symbol line into a proper C declaration.
5203
# Some systems (esp. on ia64) link data and code symbols differently,
5204
# so use this general approach.
5205
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5206
 
5207
# Transform an extracted symbol line into symbol name and symbol address
5208 784 jeremybenn
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5209
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'"
5210 90 jeremybenn
 
5211
# Handle CRLF in mingw tool chain
5212
opt_cr=
5213
case $build_os in
5214
mingw*)
5215
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5216
  ;;
5217
esac
5218
 
5219
# Try without a prefix underscore, then with it.
5220
for ac_symprfx in "" "_"; do
5221
 
5222
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5223
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5224
 
5225
  # Write the raw and C identifiers.
5226
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5227
    # Fake it for dumpbin and say T for any non-static function
5228
    # and D for any global variable.
5229
    # Also find C++ and __fastcall symbols from MSVC++,
5230
    # which start with @ or ?.
5231
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5232
"     {last_section=section; section=\$ 3};"\
5233
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5234
"     \$ 0!~/External *\|/{next};"\
5235
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5236
"     {if(hide[section]) next};"\
5237
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5238
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5239
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5240
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5241
"     ' prfx=^$ac_symprfx"
5242
  else
5243
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5244
  fi
5245 784 jeremybenn
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5246 90 jeremybenn
 
5247
  # Check to see that the pipe works correctly.
5248
  pipe_works=no
5249
 
5250
  rm -f conftest*
5251
  cat > conftest.$ac_ext <<_LT_EOF
5252
#ifdef __cplusplus
5253
extern "C" {
5254
#endif
5255
char nm_test_var;
5256
void nm_test_func(void);
5257
void nm_test_func(void){}
5258
#ifdef __cplusplus
5259
}
5260
#endif
5261
int main(){nm_test_var='a';nm_test_func();return(0);}
5262
_LT_EOF
5263
 
5264 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5265 90 jeremybenn
  (eval $ac_compile) 2>&5
5266
  ac_status=$?
5267 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268
  test $ac_status = 0; }; then
5269 90 jeremybenn
    # Now try to grab the symbols.
5270
    nlist=conftest.nm
5271 784 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5272
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5273 90 jeremybenn
  ac_status=$?
5274 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5275
  test $ac_status = 0; } && test -s "$nlist"; then
5276 90 jeremybenn
      # Try sorting and uniquifying the output.
5277
      if sort "$nlist" | uniq > "$nlist"T; then
5278
        mv -f "$nlist"T "$nlist"
5279
      else
5280
        rm -f "$nlist"T
5281
      fi
5282
 
5283
      # Make sure that we snagged all the symbols we need.
5284
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5285
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5286
          cat <<_LT_EOF > conftest.$ac_ext
5287 784 jeremybenn
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5288
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5289
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5290
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5291
# define LT_DLSYM_CONST
5292
#elif defined(__osf__)
5293
/* This system does not cope well with relocations in const data.  */
5294
# define LT_DLSYM_CONST
5295
#else
5296
# define LT_DLSYM_CONST const
5297
#endif
5298
 
5299 90 jeremybenn
#ifdef __cplusplus
5300
extern "C" {
5301
#endif
5302
 
5303
_LT_EOF
5304
          # Now generate the symbol file.
5305
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5306
 
5307
          cat <<_LT_EOF >> conftest.$ac_ext
5308
 
5309
/* The mapping between symbol names and symbols.  */
5310 784 jeremybenn
LT_DLSYM_CONST struct {
5311 90 jeremybenn
  const char *name;
5312
  void       *address;
5313
}
5314
lt__PROGRAM__LTX_preloaded_symbols[] =
5315
{
5316
  { "@PROGRAM@", (void *) 0 },
5317
_LT_EOF
5318
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5319
          cat <<\_LT_EOF >> conftest.$ac_ext
5320
  {0, (void *) 0}
5321
};
5322
 
5323
/* This works around a problem in FreeBSD linker */
5324
#ifdef FREEBSD_WORKAROUND
5325
static const void *lt_preloaded_setup() {
5326
  return lt__PROGRAM__LTX_preloaded_symbols;
5327
}
5328
#endif
5329
 
5330
#ifdef __cplusplus
5331
}
5332
#endif
5333
_LT_EOF
5334
          # Now try linking the two files.
5335
          mv conftest.$ac_objext conftstm.$ac_objext
5336 784 jeremybenn
          lt_globsym_save_LIBS=$LIBS
5337
          lt_globsym_save_CFLAGS=$CFLAGS
5338 90 jeremybenn
          LIBS="conftstm.$ac_objext"
5339
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5340 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5341 90 jeremybenn
  (eval $ac_link) 2>&5
5342
  ac_status=$?
5343 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5345 90 jeremybenn
            pipe_works=yes
5346
          fi
5347 784 jeremybenn
          LIBS=$lt_globsym_save_LIBS
5348
          CFLAGS=$lt_globsym_save_CFLAGS
5349 90 jeremybenn
        else
5350
          echo "cannot find nm_test_func in $nlist" >&5
5351
        fi
5352
      else
5353
        echo "cannot find nm_test_var in $nlist" >&5
5354
      fi
5355
    else
5356
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5357
    fi
5358
  else
5359
    echo "$progname: failed program was:" >&5
5360
    cat conftest.$ac_ext >&5
5361
  fi
5362
  rm -rf conftest* conftst*
5363
 
5364
  # Do not use the global_symbol_pipe unless it works.
5365
  if test "$pipe_works" = yes; then
5366
    break
5367
  else
5368
    lt_cv_sys_global_symbol_pipe=
5369
  fi
5370
done
5371
 
5372
fi
5373
 
5374
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5375
  lt_cv_sys_global_symbol_to_cdecl=
5376
fi
5377
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5378 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5379 90 jeremybenn
$as_echo "failed" >&6; }
5380
else
5381 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5382 90 jeremybenn
$as_echo "ok" >&6; }
5383
fi
5384
 
5385 784 jeremybenn
# Response file support.
5386
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5387
  nm_file_list_spec='@'
5388
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5389
  nm_file_list_spec='@'
5390
fi
5391 90 jeremybenn
 
5392
 
5393
 
5394
 
5395
 
5396
 
5397
 
5398
 
5399
 
5400
 
5401
 
5402
 
5403
 
5404
 
5405
 
5406
 
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413 784 jeremybenn
 
5414
 
5415
 
5416
 
5417
 
5418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5419
$as_echo_n "checking for sysroot... " >&6; }
5420
 
5421
# Check whether --with-sysroot was given.
5422
if test "${with_sysroot+set}" = set; then :
5423
  withval=$with_sysroot;
5424
else
5425
  with_sysroot=no
5426
fi
5427
 
5428
 
5429
lt_sysroot=
5430
case ${with_sysroot} in #(
5431
 yes)
5432
   if test "$GCC" = yes; then
5433
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5434
   fi
5435
   ;; #(
5436
 /*)
5437
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5438
   ;; #(
5439
 no|'')
5440
   ;; #(
5441
 *)
5442
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5443
$as_echo "${with_sysroot}" >&6; }
5444
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5445
   ;;
5446
esac
5447
 
5448
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5449
$as_echo "${lt_sysroot:-no}" >&6; }
5450
 
5451
 
5452
 
5453
 
5454
 
5455 90 jeremybenn
# Check whether --enable-libtool-lock was given.
5456 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5457 90 jeremybenn
  enableval=$enable_libtool_lock;
5458
fi
5459
 
5460
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5461
 
5462
# Some flags need to be propagated to the compiler or linker for good
5463
# libtool support.
5464
case $host in
5465
ia64-*-hpux*)
5466
  # Find out which ABI we are using.
5467
  echo 'int i;' > conftest.$ac_ext
5468 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5469 90 jeremybenn
  (eval $ac_compile) 2>&5
5470
  ac_status=$?
5471 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472
  test $ac_status = 0; }; then
5473 90 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5474
      *ELF-32*)
5475
        HPUX_IA64_MODE="32"
5476
        ;;
5477
      *ELF-64*)
5478
        HPUX_IA64_MODE="64"
5479
        ;;
5480
    esac
5481
  fi
5482
  rm -rf conftest*
5483
  ;;
5484
*-*-irix6*)
5485
  # Find out which ABI we are using.
5486 784 jeremybenn
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5487 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5488 90 jeremybenn
  (eval $ac_compile) 2>&5
5489
  ac_status=$?
5490 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491
  test $ac_status = 0; }; then
5492 90 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5493
      case `/usr/bin/file conftest.$ac_objext` in
5494
        *32-bit*)
5495
          LD="${LD-ld} -melf32bsmip"
5496
          ;;
5497
        *N32*)
5498
          LD="${LD-ld} -melf32bmipn32"
5499
          ;;
5500
        *64-bit*)
5501
          LD="${LD-ld} -melf64bmip"
5502
        ;;
5503
      esac
5504
    else
5505
      case `/usr/bin/file conftest.$ac_objext` in
5506
        *32-bit*)
5507
          LD="${LD-ld} -32"
5508
          ;;
5509
        *N32*)
5510
          LD="${LD-ld} -n32"
5511
          ;;
5512
        *64-bit*)
5513
          LD="${LD-ld} -64"
5514
          ;;
5515
      esac
5516
    fi
5517
  fi
5518
  rm -rf conftest*
5519
  ;;
5520
 
5521
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5522
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5523
  # Find out which ABI we are using.
5524
  echo 'int i;' > conftest.$ac_ext
5525 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5526 90 jeremybenn
  (eval $ac_compile) 2>&5
5527
  ac_status=$?
5528 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5529
  test $ac_status = 0; }; then
5530 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5531
      *32-bit*)
5532
        case $host in
5533
          x86_64-*kfreebsd*-gnu)
5534
            LD="${LD-ld} -m elf_i386_fbsd"
5535
            ;;
5536
          x86_64-*linux*)
5537
            LD="${LD-ld} -m elf_i386"
5538
            ;;
5539
          ppc64-*linux*|powerpc64-*linux*)
5540
            LD="${LD-ld} -m elf32ppclinux"
5541
            ;;
5542
          s390x-*linux*)
5543
            LD="${LD-ld} -m elf_s390"
5544
            ;;
5545
          sparc64-*linux*)
5546
            LD="${LD-ld} -m elf32_sparc"
5547
            ;;
5548
        esac
5549
        ;;
5550
      *64-bit*)
5551
        case $host in
5552
          x86_64-*kfreebsd*-gnu)
5553
            LD="${LD-ld} -m elf_x86_64_fbsd"
5554
            ;;
5555
          x86_64-*linux*)
5556
            LD="${LD-ld} -m elf_x86_64"
5557
            ;;
5558
          ppc*-*linux*|powerpc*-*linux*)
5559
            LD="${LD-ld} -m elf64ppc"
5560
            ;;
5561
          s390*-*linux*|s390*-*tpf*)
5562
            LD="${LD-ld} -m elf64_s390"
5563
            ;;
5564
          sparc*-*linux*)
5565
            LD="${LD-ld} -m elf64_sparc"
5566
            ;;
5567
        esac
5568
        ;;
5569
    esac
5570
  fi
5571
  rm -rf conftest*
5572
  ;;
5573
 
5574
*-*-sco3.2v5*)
5575
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5576
  SAVE_CFLAGS="$CFLAGS"
5577
  CFLAGS="$CFLAGS -belf"
5578 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5579 90 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5580 625 jeremybenn
if ${lt_cv_cc_needs_belf+:} false; then :
5581 90 jeremybenn
  $as_echo_n "(cached) " >&6
5582
else
5583
  ac_ext=c
5584
ac_cpp='$CPP $CPPFLAGS'
5585
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5588
 
5589 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 90 jeremybenn
/* end confdefs.h.  */
5591
 
5592
int
5593
main ()
5594
{
5595
 
5596
  ;
5597
  return 0;
5598
}
5599
_ACEOF
5600 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5601 90 jeremybenn
  lt_cv_cc_needs_belf=yes
5602
else
5603 346 jeremybenn
  lt_cv_cc_needs_belf=no
5604 90 jeremybenn
fi
5605 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5606
    conftest$ac_exeext conftest.$ac_ext
5607 90 jeremybenn
     ac_ext=c
5608
ac_cpp='$CPP $CPPFLAGS'
5609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612
 
5613
fi
5614 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5615 90 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5616
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5617
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5618
    CFLAGS="$SAVE_CFLAGS"
5619
  fi
5620
  ;;
5621
sparc*-*solaris*)
5622
  # Find out which ABI we are using.
5623
  echo 'int i;' > conftest.$ac_ext
5624 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5625 90 jeremybenn
  (eval $ac_compile) 2>&5
5626
  ac_status=$?
5627 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628
  test $ac_status = 0; }; then
5629 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5630
    *64-bit*)
5631
      case $lt_cv_prog_gnu_ld in
5632
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5633
      *)
5634
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5635
          LD="${LD-ld} -64"
5636
        fi
5637
        ;;
5638
      esac
5639
      ;;
5640
    esac
5641
  fi
5642
  rm -rf conftest*
5643
  ;;
5644
esac
5645
 
5646
need_locks="$enable_libtool_lock"
5647
 
5648 784 jeremybenn
if test -n "$ac_tool_prefix"; then
5649
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5650
set dummy ${ac_tool_prefix}mt; ac_word=$2
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652
$as_echo_n "checking for $ac_word... " >&6; }
5653
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5654
  $as_echo_n "(cached) " >&6
5655
else
5656
  if test -n "$MANIFEST_TOOL"; then
5657
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5658
else
5659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660
for as_dir in $PATH
5661
do
5662
  IFS=$as_save_IFS
5663
  test -z "$as_dir" && as_dir=.
5664
    for ac_exec_ext in '' $ac_executable_extensions; do
5665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5667
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668
    break 2
5669
  fi
5670
done
5671
  done
5672
IFS=$as_save_IFS
5673 90 jeremybenn
 
5674 784 jeremybenn
fi
5675
fi
5676
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5677
if test -n "$MANIFEST_TOOL"; then
5678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5679
$as_echo "$MANIFEST_TOOL" >&6; }
5680
else
5681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682
$as_echo "no" >&6; }
5683
fi
5684
 
5685
 
5686
fi
5687
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5688
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5689
  # Extract the first word of "mt", so it can be a program name with args.
5690
set dummy mt; ac_word=$2
5691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692
$as_echo_n "checking for $ac_word... " >&6; }
5693
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5694
  $as_echo_n "(cached) " >&6
5695
else
5696
  if test -n "$ac_ct_MANIFEST_TOOL"; then
5697
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5698
else
5699
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700
for as_dir in $PATH
5701
do
5702
  IFS=$as_save_IFS
5703
  test -z "$as_dir" && as_dir=.
5704
    for ac_exec_ext in '' $ac_executable_extensions; do
5705
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5707
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708
    break 2
5709
  fi
5710
done
5711
  done
5712
IFS=$as_save_IFS
5713
 
5714
fi
5715
fi
5716
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5717
if test -n "$ac_ct_MANIFEST_TOOL"; then
5718
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5719
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5720
else
5721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722
$as_echo "no" >&6; }
5723
fi
5724
 
5725
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
5726
    MANIFEST_TOOL=":"
5727
  else
5728
    case $cross_compiling:$ac_tool_warned in
5729
yes:)
5730
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732
ac_tool_warned=yes ;;
5733
esac
5734
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5735
  fi
5736
else
5737
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5738
fi
5739
 
5740
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5742
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5743
if ${lt_cv_path_mainfest_tool+:} false; then :
5744
  $as_echo_n "(cached) " >&6
5745
else
5746
  lt_cv_path_mainfest_tool=no
5747
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5748
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5749
  cat conftest.err >&5
5750
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5751
    lt_cv_path_mainfest_tool=yes
5752
  fi
5753
  rm -f conftest*
5754
fi
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5756
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
5757
if test "x$lt_cv_path_mainfest_tool" != xyes; then
5758
  MANIFEST_TOOL=:
5759
fi
5760
 
5761
 
5762
 
5763
 
5764
 
5765
 
5766 90 jeremybenn
  case $host_os in
5767
    rhapsody* | darwin*)
5768
    if test -n "$ac_tool_prefix"; then
5769
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5770
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5771 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5773 625 jeremybenn
if ${ac_cv_prog_DSYMUTIL+:} false; then :
5774 90 jeremybenn
  $as_echo_n "(cached) " >&6
5775
else
5776
  if test -n "$DSYMUTIL"; then
5777
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5778
else
5779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780
for as_dir in $PATH
5781
do
5782
  IFS=$as_save_IFS
5783
  test -z "$as_dir" && as_dir=.
5784 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5785 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5787 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 90 jeremybenn
    break 2
5789
  fi
5790
done
5791 346 jeremybenn
  done
5792 90 jeremybenn
IFS=$as_save_IFS
5793
 
5794
fi
5795
fi
5796
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5797
if test -n "$DSYMUTIL"; then
5798 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5799 90 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5800
else
5801 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 90 jeremybenn
$as_echo "no" >&6; }
5803
fi
5804
 
5805
 
5806
fi
5807
if test -z "$ac_cv_prog_DSYMUTIL"; then
5808
  ac_ct_DSYMUTIL=$DSYMUTIL
5809
  # Extract the first word of "dsymutil", so it can be a program name with args.
5810
set dummy dsymutil; ac_word=$2
5811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5813 625 jeremybenn
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5814 90 jeremybenn
  $as_echo_n "(cached) " >&6
5815
else
5816
  if test -n "$ac_ct_DSYMUTIL"; then
5817
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5818
else
5819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820
for as_dir in $PATH
5821
do
5822
  IFS=$as_save_IFS
5823
  test -z "$as_dir" && as_dir=.
5824 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5825 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5827 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 90 jeremybenn
    break 2
5829
  fi
5830
done
5831 346 jeremybenn
  done
5832 90 jeremybenn
IFS=$as_save_IFS
5833
 
5834
fi
5835
fi
5836
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5837
if test -n "$ac_ct_DSYMUTIL"; then
5838 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5839 90 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5840
else
5841 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 90 jeremybenn
$as_echo "no" >&6; }
5843
fi
5844
 
5845
  if test "x$ac_ct_DSYMUTIL" = x; then
5846
    DSYMUTIL=":"
5847
  else
5848
    case $cross_compiling:$ac_tool_warned in
5849
yes:)
5850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852
ac_tool_warned=yes ;;
5853
esac
5854
    DSYMUTIL=$ac_ct_DSYMUTIL
5855
  fi
5856
else
5857
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5858
fi
5859
 
5860
    if test -n "$ac_tool_prefix"; then
5861
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5862
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5863 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5865 625 jeremybenn
if ${ac_cv_prog_NMEDIT+:} false; then :
5866 90 jeremybenn
  $as_echo_n "(cached) " >&6
5867
else
5868
  if test -n "$NMEDIT"; then
5869
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5870
else
5871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872
for as_dir in $PATH
5873
do
5874
  IFS=$as_save_IFS
5875
  test -z "$as_dir" && as_dir=.
5876 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5877 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5879 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 90 jeremybenn
    break 2
5881
  fi
5882
done
5883 346 jeremybenn
  done
5884 90 jeremybenn
IFS=$as_save_IFS
5885
 
5886
fi
5887
fi
5888
NMEDIT=$ac_cv_prog_NMEDIT
5889
if test -n "$NMEDIT"; then
5890 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5891 90 jeremybenn
$as_echo "$NMEDIT" >&6; }
5892
else
5893 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 90 jeremybenn
$as_echo "no" >&6; }
5895
fi
5896
 
5897
 
5898
fi
5899
if test -z "$ac_cv_prog_NMEDIT"; then
5900
  ac_ct_NMEDIT=$NMEDIT
5901
  # Extract the first word of "nmedit", so it can be a program name with args.
5902
set dummy nmedit; ac_word=$2
5903 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5905 625 jeremybenn
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5906 90 jeremybenn
  $as_echo_n "(cached) " >&6
5907
else
5908
  if test -n "$ac_ct_NMEDIT"; then
5909
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5910
else
5911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912
for as_dir in $PATH
5913
do
5914
  IFS=$as_save_IFS
5915
  test -z "$as_dir" && as_dir=.
5916 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5917 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5919 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 90 jeremybenn
    break 2
5921
  fi
5922
done
5923 346 jeremybenn
  done
5924 90 jeremybenn
IFS=$as_save_IFS
5925
 
5926
fi
5927
fi
5928
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5929
if test -n "$ac_ct_NMEDIT"; then
5930 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5931 90 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
5932
else
5933 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 90 jeremybenn
$as_echo "no" >&6; }
5935
fi
5936
 
5937
  if test "x$ac_ct_NMEDIT" = x; then
5938
    NMEDIT=":"
5939
  else
5940
    case $cross_compiling:$ac_tool_warned in
5941
yes:)
5942 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5943 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944
ac_tool_warned=yes ;;
5945
esac
5946
    NMEDIT=$ac_ct_NMEDIT
5947
  fi
5948
else
5949
  NMEDIT="$ac_cv_prog_NMEDIT"
5950
fi
5951
 
5952
    if test -n "$ac_tool_prefix"; then
5953
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5954
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5955 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5957 625 jeremybenn
if ${ac_cv_prog_LIPO+:} false; then :
5958 90 jeremybenn
  $as_echo_n "(cached) " >&6
5959
else
5960
  if test -n "$LIPO"; then
5961
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5962
else
5963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964
for as_dir in $PATH
5965
do
5966
  IFS=$as_save_IFS
5967
  test -z "$as_dir" && as_dir=.
5968 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5969 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5971 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 90 jeremybenn
    break 2
5973
  fi
5974
done
5975 346 jeremybenn
  done
5976 90 jeremybenn
IFS=$as_save_IFS
5977
 
5978
fi
5979
fi
5980
LIPO=$ac_cv_prog_LIPO
5981
if test -n "$LIPO"; then
5982 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5983 90 jeremybenn
$as_echo "$LIPO" >&6; }
5984
else
5985 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 90 jeremybenn
$as_echo "no" >&6; }
5987
fi
5988
 
5989
 
5990
fi
5991
if test -z "$ac_cv_prog_LIPO"; then
5992
  ac_ct_LIPO=$LIPO
5993
  # Extract the first word of "lipo", so it can be a program name with args.
5994
set dummy lipo; ac_word=$2
5995 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5997 625 jeremybenn
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5998 90 jeremybenn
  $as_echo_n "(cached) " >&6
5999
else
6000
  if test -n "$ac_ct_LIPO"; then
6001
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6002
else
6003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004
for as_dir in $PATH
6005
do
6006
  IFS=$as_save_IFS
6007
  test -z "$as_dir" && as_dir=.
6008 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6009 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010
    ac_cv_prog_ac_ct_LIPO="lipo"
6011 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 90 jeremybenn
    break 2
6013
  fi
6014
done
6015 346 jeremybenn
  done
6016 90 jeremybenn
IFS=$as_save_IFS
6017
 
6018
fi
6019
fi
6020
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6021
if test -n "$ac_ct_LIPO"; then
6022 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6023 90 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6024
else
6025 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 90 jeremybenn
$as_echo "no" >&6; }
6027
fi
6028
 
6029
  if test "x$ac_ct_LIPO" = x; then
6030
    LIPO=":"
6031
  else
6032
    case $cross_compiling:$ac_tool_warned in
6033
yes:)
6034 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036
ac_tool_warned=yes ;;
6037
esac
6038
    LIPO=$ac_ct_LIPO
6039
  fi
6040
else
6041
  LIPO="$ac_cv_prog_LIPO"
6042
fi
6043
 
6044
    if test -n "$ac_tool_prefix"; then
6045
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6046
set dummy ${ac_tool_prefix}otool; ac_word=$2
6047 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6049 625 jeremybenn
if ${ac_cv_prog_OTOOL+:} false; then :
6050 90 jeremybenn
  $as_echo_n "(cached) " >&6
6051
else
6052
  if test -n "$OTOOL"; then
6053
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6054
else
6055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056
for as_dir in $PATH
6057
do
6058
  IFS=$as_save_IFS
6059
  test -z "$as_dir" && as_dir=.
6060 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6061 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6063 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 90 jeremybenn
    break 2
6065
  fi
6066
done
6067 346 jeremybenn
  done
6068 90 jeremybenn
IFS=$as_save_IFS
6069
 
6070
fi
6071
fi
6072
OTOOL=$ac_cv_prog_OTOOL
6073
if test -n "$OTOOL"; then
6074 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6075 90 jeremybenn
$as_echo "$OTOOL" >&6; }
6076
else
6077 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 90 jeremybenn
$as_echo "no" >&6; }
6079
fi
6080
 
6081
 
6082
fi
6083
if test -z "$ac_cv_prog_OTOOL"; then
6084
  ac_ct_OTOOL=$OTOOL
6085
  # Extract the first word of "otool", so it can be a program name with args.
6086
set dummy otool; ac_word=$2
6087 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6089 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6090 90 jeremybenn
  $as_echo_n "(cached) " >&6
6091
else
6092
  if test -n "$ac_ct_OTOOL"; then
6093
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6094
else
6095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096
for as_dir in $PATH
6097
do
6098
  IFS=$as_save_IFS
6099
  test -z "$as_dir" && as_dir=.
6100 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6101 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102
    ac_cv_prog_ac_ct_OTOOL="otool"
6103 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 90 jeremybenn
    break 2
6105
  fi
6106
done
6107 346 jeremybenn
  done
6108 90 jeremybenn
IFS=$as_save_IFS
6109
 
6110
fi
6111
fi
6112
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6113
if test -n "$ac_ct_OTOOL"; then
6114 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6115 90 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6116
else
6117 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 90 jeremybenn
$as_echo "no" >&6; }
6119
fi
6120
 
6121
  if test "x$ac_ct_OTOOL" = x; then
6122
    OTOOL=":"
6123
  else
6124
    case $cross_compiling:$ac_tool_warned in
6125
yes:)
6126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128
ac_tool_warned=yes ;;
6129
esac
6130
    OTOOL=$ac_ct_OTOOL
6131
  fi
6132
else
6133
  OTOOL="$ac_cv_prog_OTOOL"
6134
fi
6135
 
6136
    if test -n "$ac_tool_prefix"; then
6137
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6138
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6139 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6141 625 jeremybenn
if ${ac_cv_prog_OTOOL64+:} false; then :
6142 90 jeremybenn
  $as_echo_n "(cached) " >&6
6143
else
6144
  if test -n "$OTOOL64"; then
6145
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6146
else
6147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148
for as_dir in $PATH
6149
do
6150
  IFS=$as_save_IFS
6151
  test -z "$as_dir" && as_dir=.
6152 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6153 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6155 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 90 jeremybenn
    break 2
6157
  fi
6158
done
6159 346 jeremybenn
  done
6160 90 jeremybenn
IFS=$as_save_IFS
6161
 
6162
fi
6163
fi
6164
OTOOL64=$ac_cv_prog_OTOOL64
6165
if test -n "$OTOOL64"; then
6166 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6167 90 jeremybenn
$as_echo "$OTOOL64" >&6; }
6168
else
6169 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 90 jeremybenn
$as_echo "no" >&6; }
6171
fi
6172
 
6173
 
6174
fi
6175
if test -z "$ac_cv_prog_OTOOL64"; then
6176
  ac_ct_OTOOL64=$OTOOL64
6177
  # Extract the first word of "otool64", so it can be a program name with args.
6178
set dummy otool64; ac_word=$2
6179 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6181 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6182 90 jeremybenn
  $as_echo_n "(cached) " >&6
6183
else
6184
  if test -n "$ac_ct_OTOOL64"; then
6185
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6186
else
6187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188
for as_dir in $PATH
6189
do
6190
  IFS=$as_save_IFS
6191
  test -z "$as_dir" && as_dir=.
6192 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6193 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6195 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 90 jeremybenn
    break 2
6197
  fi
6198
done
6199 346 jeremybenn
  done
6200 90 jeremybenn
IFS=$as_save_IFS
6201
 
6202
fi
6203
fi
6204
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6205
if test -n "$ac_ct_OTOOL64"; then
6206 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6207 90 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6208
else
6209 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 90 jeremybenn
$as_echo "no" >&6; }
6211
fi
6212
 
6213
  if test "x$ac_ct_OTOOL64" = x; then
6214
    OTOOL64=":"
6215
  else
6216
    case $cross_compiling:$ac_tool_warned in
6217
yes:)
6218 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220
ac_tool_warned=yes ;;
6221
esac
6222
    OTOOL64=$ac_ct_OTOOL64
6223
  fi
6224
else
6225
  OTOOL64="$ac_cv_prog_OTOOL64"
6226
fi
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
 
6254 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6255 90 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6256 625 jeremybenn
if ${lt_cv_apple_cc_single_mod+:} false; then :
6257 90 jeremybenn
  $as_echo_n "(cached) " >&6
6258
else
6259
  lt_cv_apple_cc_single_mod=no
6260
      if test -z "${LT_MULTI_MODULE}"; then
6261
        # By default we will add the -single_module flag. You can override
6262
        # by either setting the environment variable LT_MULTI_MODULE
6263
        # non-empty at configure time, or by adding -multi_module to the
6264
        # link flags.
6265
        rm -rf libconftest.dylib*
6266
        echo "int foo(void){return 1;}" > conftest.c
6267
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6268
-dynamiclib -Wl,-single_module conftest.c" >&5
6269
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6270
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6271
        _lt_result=$?
6272
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6273
          lt_cv_apple_cc_single_mod=yes
6274
        else
6275
          cat conftest.err >&5
6276
        fi
6277
        rm -rf libconftest.dylib*
6278
        rm -f conftest.*
6279
      fi
6280
fi
6281 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6282 90 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6283 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6284 90 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6285 625 jeremybenn
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6286 90 jeremybenn
  $as_echo_n "(cached) " >&6
6287
else
6288
  lt_cv_ld_exported_symbols_list=no
6289
      save_LDFLAGS=$LDFLAGS
6290
      echo "_main" > conftest.sym
6291
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6292 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 90 jeremybenn
/* end confdefs.h.  */
6294
 
6295
int
6296
main ()
6297
{
6298
 
6299
  ;
6300
  return 0;
6301
}
6302
_ACEOF
6303 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6304 90 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6305
else
6306 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6307 90 jeremybenn
fi
6308 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6309
    conftest$ac_exeext conftest.$ac_ext
6310 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6311
 
6312
fi
6313 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6314 90 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6315 784 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6316
$as_echo_n "checking for -force_load linker flag... " >&6; }
6317
if ${lt_cv_ld_force_load+:} false; then :
6318
  $as_echo_n "(cached) " >&6
6319
else
6320
  lt_cv_ld_force_load=no
6321
      cat > conftest.c << _LT_EOF
6322
int forced_loaded() { return 2;}
6323
_LT_EOF
6324
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6325
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6326
      echo "$AR cru libconftest.a conftest.o" >&5
6327
      $AR cru libconftest.a conftest.o 2>&5
6328
      echo "$RANLIB libconftest.a" >&5
6329
      $RANLIB libconftest.a 2>&5
6330
      cat > conftest.c << _LT_EOF
6331
int main() { return 0;}
6332
_LT_EOF
6333
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6334
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6335
      _lt_result=$?
6336
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6337
        lt_cv_ld_force_load=yes
6338
      else
6339
        cat conftest.err >&5
6340
      fi
6341
        rm -f conftest.err libconftest.a conftest conftest.c
6342
        rm -rf conftest.dSYM
6343
 
6344
fi
6345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6346
$as_echo "$lt_cv_ld_force_load" >&6; }
6347 90 jeremybenn
    case $host_os in
6348
    rhapsody* | darwin1.[012])
6349
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6350
    darwin1.*)
6351
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6352
    darwin*) # darwin 5.x on
6353
      # if running on 10.5 or later, the deployment target defaults
6354
      # to the OS version, if on x86, and 10.4, the deployment
6355
      # target defaults to 10.4. Don't you love it?
6356
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6357
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6358
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6359
        10.[012]*)
6360
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6361
        10.*)
6362
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6363
      esac
6364
    ;;
6365
  esac
6366
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6367
      _lt_dar_single_mod='$single_module'
6368
    fi
6369
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6370
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6371
    else
6372
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6373
    fi
6374 784 jeremybenn
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6375 90 jeremybenn
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6376
    else
6377
      _lt_dsymutil=
6378
    fi
6379
    ;;
6380
  esac
6381
 
6382
ac_ext=c
6383
ac_cpp='$CPP $CPPFLAGS'
6384
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6388 90 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6389
# On Suns, sometimes $CPP names a directory.
6390
if test -n "$CPP" && test -d "$CPP"; then
6391
  CPP=
6392
fi
6393
if test -z "$CPP"; then
6394 625 jeremybenn
  if ${ac_cv_prog_CPP+:} false; then :
6395 90 jeremybenn
  $as_echo_n "(cached) " >&6
6396
else
6397
      # Double quotes because CPP needs to be expanded
6398
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6399
    do
6400
      ac_preproc_ok=false
6401
for ac_c_preproc_warn_flag in '' yes
6402
do
6403
  # Use a header file that comes with gcc, so configuring glibc
6404
  # with a fresh cross-compiler works.
6405
  # Prefer  to  if __STDC__ is defined, since
6406
  #  exists even on freestanding compilers.
6407
  # On the NeXT, cc -E runs the code through the compiler's parser,
6408
  # not just through cpp. "Syntax error" is here to catch this case.
6409 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 90 jeremybenn
/* end confdefs.h.  */
6411
#ifdef __STDC__
6412
# include 
6413
#else
6414
# include 
6415
#endif
6416
                     Syntax error
6417
_ACEOF
6418 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
6419
 
6420 236 jeremybenn
else
6421 90 jeremybenn
  # Broken: fails on valid input.
6422
continue
6423
fi
6424 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
6425 90 jeremybenn
 
6426
  # OK, works on sane cases.  Now check whether nonexistent headers
6427
  # can be detected and how.
6428 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 90 jeremybenn
/* end confdefs.h.  */
6430
#include 
6431
_ACEOF
6432 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
6433 90 jeremybenn
  # Broken: success on invalid input.
6434
continue
6435
else
6436
  # Passes both tests.
6437
ac_preproc_ok=:
6438
break
6439
fi
6440 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
6441 90 jeremybenn
 
6442
done
6443
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6444 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
6445 346 jeremybenn
if $ac_preproc_ok; then :
6446 90 jeremybenn
  break
6447
fi
6448
 
6449
    done
6450
    ac_cv_prog_CPP=$CPP
6451
 
6452
fi
6453
  CPP=$ac_cv_prog_CPP
6454
else
6455
  ac_cv_prog_CPP=$CPP
6456
fi
6457 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6458 90 jeremybenn
$as_echo "$CPP" >&6; }
6459
ac_preproc_ok=false
6460
for ac_c_preproc_warn_flag in '' yes
6461
do
6462
  # Use a header file that comes with gcc, so configuring glibc
6463
  # with a fresh cross-compiler works.
6464
  # Prefer  to  if __STDC__ is defined, since
6465
  #  exists even on freestanding compilers.
6466
  # On the NeXT, cc -E runs the code through the compiler's parser,
6467
  # not just through cpp. "Syntax error" is here to catch this case.
6468 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 90 jeremybenn
/* end confdefs.h.  */
6470
#ifdef __STDC__
6471
# include 
6472
#else
6473
# include 
6474
#endif
6475
                     Syntax error
6476
_ACEOF
6477 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
6478
 
6479 236 jeremybenn
else
6480 90 jeremybenn
  # Broken: fails on valid input.
6481
continue
6482
fi
6483 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
6484 90 jeremybenn
 
6485
  # OK, works on sane cases.  Now check whether nonexistent headers
6486
  # can be detected and how.
6487 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 90 jeremybenn
/* end confdefs.h.  */
6489
#include 
6490
_ACEOF
6491 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
6492 90 jeremybenn
  # Broken: success on invalid input.
6493
continue
6494
else
6495
  # Passes both tests.
6496
ac_preproc_ok=:
6497
break
6498
fi
6499 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
6500 90 jeremybenn
 
6501
done
6502
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6503 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
6504 346 jeremybenn
if $ac_preproc_ok; then :
6505
 
6506 90 jeremybenn
else
6507 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6508 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6509 625 jeremybenn
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6510
See \`config.log' for more details" "$LINENO" 5; }
6511 90 jeremybenn
fi
6512
 
6513
ac_ext=c
6514
ac_cpp='$CPP $CPPFLAGS'
6515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
 
6519
 
6520 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6521 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
6522 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
6523 90 jeremybenn
  $as_echo_n "(cached) " >&6
6524
else
6525 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 90 jeremybenn
/* end confdefs.h.  */
6527
#include 
6528
#include 
6529
#include 
6530
#include 
6531
 
6532
int
6533
main ()
6534
{
6535
 
6536
  ;
6537
  return 0;
6538
}
6539
_ACEOF
6540 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
6541 90 jeremybenn
  ac_cv_header_stdc=yes
6542
else
6543 346 jeremybenn
  ac_cv_header_stdc=no
6544 90 jeremybenn
fi
6545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
 
6547
if test $ac_cv_header_stdc = yes; then
6548
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6549 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 90 jeremybenn
/* end confdefs.h.  */
6551
#include 
6552
 
6553
_ACEOF
6554
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6555 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
6556
 
6557 90 jeremybenn
else
6558
  ac_cv_header_stdc=no
6559
fi
6560
rm -f conftest*
6561
 
6562
fi
6563
 
6564
if test $ac_cv_header_stdc = yes; then
6565
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6566 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 90 jeremybenn
/* end confdefs.h.  */
6568
#include 
6569
 
6570
_ACEOF
6571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
6573
 
6574 90 jeremybenn
else
6575
  ac_cv_header_stdc=no
6576
fi
6577
rm -f conftest*
6578
 
6579
fi
6580
 
6581
if test $ac_cv_header_stdc = yes; then
6582
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6583 346 jeremybenn
  if test "$cross_compiling" = yes; then :
6584 90 jeremybenn
  :
6585
else
6586 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 90 jeremybenn
/* end confdefs.h.  */
6588
#include 
6589
#include 
6590
#if ((' ' & 0x0FF) == 0x020)
6591
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6592
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6593
#else
6594
# define ISLOWER(c) \
6595
                   (('a' <= (c) && (c) <= 'i') \
6596
                     || ('j' <= (c) && (c) <= 'r') \
6597
                     || ('s' <= (c) && (c) <= 'z'))
6598
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6599
#endif
6600
 
6601
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6602
int
6603
main ()
6604
{
6605
  int i;
6606
  for (i = 0; i < 256; i++)
6607
    if (XOR (islower (i), ISLOWER (i))
6608
        || toupper (i) != TOUPPER (i))
6609
      return 2;
6610
  return 0;
6611
}
6612
_ACEOF
6613 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
6614
 
6615 236 jeremybenn
else
6616 346 jeremybenn
  ac_cv_header_stdc=no
6617 90 jeremybenn
fi
6618 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6619
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6620 90 jeremybenn
fi
6621
 
6622
fi
6623
fi
6624 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6625 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
6626
if test $ac_cv_header_stdc = yes; then
6627
 
6628 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6629 90 jeremybenn
 
6630
fi
6631
 
6632
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6633
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6634
                  inttypes.h stdint.h unistd.h
6635 346 jeremybenn
do :
6636
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6638
"
6639 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6640 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6641
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6642
_ACEOF
6643
 
6644
fi
6645
 
6646
done
6647
 
6648
 
6649
for ac_header in dlfcn.h
6650 346 jeremybenn
do :
6651
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6652
"
6653 625 jeremybenn
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6654 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6655 346 jeremybenn
#define HAVE_DLFCN_H 1
6656 90 jeremybenn
_ACEOF
6657
 
6658
fi
6659
 
6660
done
6661
 
6662
 
6663
 
6664 784 jeremybenn
 
6665
 
6666 90 jeremybenn
# Set options
6667
 
6668
 
6669
 
6670
        enable_dlopen=no
6671
 
6672
 
6673
  enable_win32_dll=no
6674
 
6675
 
6676
            # Check whether --enable-shared was given.
6677 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6678 90 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6679
    case $enableval in
6680
    yes) enable_shared=yes ;;
6681
    no) enable_shared=no ;;
6682
    *)
6683
      enable_shared=no
6684
      # Look at the argument we got.  We use all the common list separators.
6685
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6686
      for pkg in $enableval; do
6687
        IFS="$lt_save_ifs"
6688
        if test "X$pkg" = "X$p"; then
6689
          enable_shared=yes
6690
        fi
6691
      done
6692
      IFS="$lt_save_ifs"
6693
      ;;
6694
    esac
6695
else
6696
  enable_shared=yes
6697
fi
6698
 
6699
 
6700
 
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
  # Check whether --enable-static was given.
6708 346 jeremybenn
if test "${enable_static+set}" = set; then :
6709 90 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6710
    case $enableval in
6711
    yes) enable_static=yes ;;
6712
    no) enable_static=no ;;
6713
    *)
6714
     enable_static=no
6715
      # Look at the argument we got.  We use all the common list separators.
6716
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6717
      for pkg in $enableval; do
6718
        IFS="$lt_save_ifs"
6719
        if test "X$pkg" = "X$p"; then
6720
          enable_static=yes
6721
        fi
6722
      done
6723
      IFS="$lt_save_ifs"
6724
      ;;
6725
    esac
6726
else
6727
  enable_static=yes
6728
fi
6729
 
6730
 
6731
 
6732
 
6733
 
6734
 
6735
 
6736
 
6737
 
6738
 
6739
# Check whether --with-pic was given.
6740 346 jeremybenn
if test "${with_pic+set}" = set; then :
6741 90 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6742
else
6743
  pic_mode=default
6744
fi
6745
 
6746
 
6747
test -z "$pic_mode" && pic_mode=default
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
  # Check whether --enable-fast-install was given.
6756 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6757 90 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6758
    case $enableval in
6759
    yes) enable_fast_install=yes ;;
6760
    no) enable_fast_install=no ;;
6761
    *)
6762
      enable_fast_install=no
6763
      # Look at the argument we got.  We use all the common list separators.
6764
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6765
      for pkg in $enableval; do
6766
        IFS="$lt_save_ifs"
6767
        if test "X$pkg" = "X$p"; then
6768
          enable_fast_install=yes
6769
        fi
6770
      done
6771
      IFS="$lt_save_ifs"
6772
      ;;
6773
    esac
6774
else
6775
  enable_fast_install=yes
6776
fi
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
# This can be used to rebuild libtool when needed
6789
LIBTOOL_DEPS="$ltmain"
6790
 
6791
# Always use our own libtool.
6792
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818 784 jeremybenn
 
6819 90 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
 
6828
 
6829
 
6830
 
6831
 
6832
 
6833
 
6834
if test -n "${ZSH_VERSION+set}" ; then
6835
   setopt NO_GLOB_SUBST
6836
fi
6837
 
6838 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6839 90 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6840 625 jeremybenn
if ${lt_cv_objdir+:} false; then :
6841 90 jeremybenn
  $as_echo_n "(cached) " >&6
6842
else
6843
  rm -f .libs 2>/dev/null
6844
mkdir .libs 2>/dev/null
6845
if test -d .libs; then
6846
  lt_cv_objdir=.libs
6847
else
6848
  # MS-DOS does not allow filenames that begin with a dot.
6849
  lt_cv_objdir=_libs
6850
fi
6851
rmdir .libs 2>/dev/null
6852
fi
6853 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6854 90 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6855
objdir=$lt_cv_objdir
6856
 
6857
 
6858
 
6859
 
6860
 
6861
cat >>confdefs.h <<_ACEOF
6862
#define LT_OBJDIR "$lt_cv_objdir/"
6863
_ACEOF
6864
 
6865
 
6866
 
6867
 
6868
case $host_os in
6869
aix3*)
6870
  # AIX sometimes has problems with the GCC collect2 program.  For some
6871
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6872
  # vanish in a puff of smoke.
6873
  if test "X${COLLECT_NAMES+set}" != Xset; then
6874
    COLLECT_NAMES=
6875
    export COLLECT_NAMES
6876
  fi
6877
  ;;
6878
esac
6879
 
6880
# Global variables:
6881
ofile=libtool
6882
can_build_shared=yes
6883
 
6884
# All known linkers require a `.a' archive for static linking (except MSVC,
6885
# which needs '.lib').
6886
libext=a
6887
 
6888
with_gnu_ld="$lt_cv_prog_gnu_ld"
6889
 
6890
old_CC="$CC"
6891
old_CFLAGS="$CFLAGS"
6892
 
6893
# Set sane defaults for various variables
6894
test -z "$CC" && CC=cc
6895
test -z "$LTCC" && LTCC=$CC
6896
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6897
test -z "$LD" && LD=ld
6898
test -z "$ac_objext" && ac_objext=o
6899
 
6900
for cc_temp in $compiler""; do
6901
  case $cc_temp in
6902
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6903
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6904
    \-*) ;;
6905
    *) break;;
6906
  esac
6907
done
6908 784 jeremybenn
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6909 90 jeremybenn
 
6910
 
6911
# Only perform the check for file, if the check method requires it
6912
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6913
case $deplibs_check_method in
6914
file_magic*)
6915
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6916 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6917 90 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6918 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6919 90 jeremybenn
  $as_echo_n "(cached) " >&6
6920
else
6921
  case $MAGIC_CMD in
6922
[\\/*] |  ?:[\\/]*)
6923
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6924
  ;;
6925
*)
6926
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6927
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6928
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6929
  for ac_dir in $ac_dummy; do
6930
    IFS="$lt_save_ifs"
6931
    test -z "$ac_dir" && ac_dir=.
6932
    if test -f $ac_dir/${ac_tool_prefix}file; then
6933
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6934
      if test -n "$file_magic_test_file"; then
6935
        case $deplibs_check_method in
6936
        "file_magic "*)
6937
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6938
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6939
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6940
            $EGREP "$file_magic_regex" > /dev/null; then
6941
            :
6942
          else
6943
            cat <<_LT_EOF 1>&2
6944
 
6945
*** Warning: the command libtool uses to detect shared libraries,
6946
*** $file_magic_cmd, produces output that libtool cannot recognize.
6947
*** The result is that libtool may fail to recognize shared libraries
6948
*** as such.  This will affect the creation of libtool libraries that
6949
*** depend on shared libraries, but programs linked with such libtool
6950
*** libraries will work regardless of this problem.  Nevertheless, you
6951
*** may want to report the problem to your system manager and/or to
6952
*** bug-libtool@gnu.org
6953
 
6954
_LT_EOF
6955
          fi ;;
6956
        esac
6957
      fi
6958
      break
6959
    fi
6960
  done
6961
  IFS="$lt_save_ifs"
6962
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6963
  ;;
6964
esac
6965
fi
6966
 
6967
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968
if test -n "$MAGIC_CMD"; then
6969 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6970 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6971
else
6972 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 90 jeremybenn
$as_echo "no" >&6; }
6974
fi
6975
 
6976
 
6977
 
6978
 
6979
 
6980
if test -z "$lt_cv_path_MAGIC_CMD"; then
6981
  if test -n "$ac_tool_prefix"; then
6982 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6983 90 jeremybenn
$as_echo_n "checking for file... " >&6; }
6984 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6985 90 jeremybenn
  $as_echo_n "(cached) " >&6
6986
else
6987
  case $MAGIC_CMD in
6988
[\\/*] |  ?:[\\/]*)
6989
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6990
  ;;
6991
*)
6992
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6993
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6994
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6995
  for ac_dir in $ac_dummy; do
6996
    IFS="$lt_save_ifs"
6997
    test -z "$ac_dir" && ac_dir=.
6998
    if test -f $ac_dir/file; then
6999
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7000
      if test -n "$file_magic_test_file"; then
7001
        case $deplibs_check_method in
7002
        "file_magic "*)
7003
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7004
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7006
            $EGREP "$file_magic_regex" > /dev/null; then
7007
            :
7008
          else
7009
            cat <<_LT_EOF 1>&2
7010
 
7011
*** Warning: the command libtool uses to detect shared libraries,
7012
*** $file_magic_cmd, produces output that libtool cannot recognize.
7013
*** The result is that libtool may fail to recognize shared libraries
7014
*** as such.  This will affect the creation of libtool libraries that
7015
*** depend on shared libraries, but programs linked with such libtool
7016
*** libraries will work regardless of this problem.  Nevertheless, you
7017
*** may want to report the problem to your system manager and/or to
7018
*** bug-libtool@gnu.org
7019
 
7020
_LT_EOF
7021
          fi ;;
7022
        esac
7023
      fi
7024
      break
7025
    fi
7026
  done
7027
  IFS="$lt_save_ifs"
7028
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7029
  ;;
7030
esac
7031
fi
7032
 
7033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034
if test -n "$MAGIC_CMD"; then
7035 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7036 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7037
else
7038 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 90 jeremybenn
$as_echo "no" >&6; }
7040
fi
7041
 
7042
 
7043
  else
7044
    MAGIC_CMD=:
7045
  fi
7046
fi
7047
 
7048
  fi
7049
  ;;
7050
esac
7051
 
7052
# Use C for the default configuration in the libtool script
7053
 
7054
lt_save_CC="$CC"
7055
ac_ext=c
7056
ac_cpp='$CPP $CPPFLAGS'
7057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060
 
7061
 
7062
# Source file extension for C test sources.
7063
ac_ext=c
7064
 
7065
# Object file extension for compiled C test sources.
7066
objext=o
7067
objext=$objext
7068
 
7069
# Code to be used in simple compile tests
7070
lt_simple_compile_test_code="int some_variable = 0;"
7071
 
7072
# Code to be used in simple link tests
7073
lt_simple_link_test_code='int main(){return(0);}'
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
# If no C compiler was specified, use CC.
7082
LTCC=${LTCC-"$CC"}
7083
 
7084
# If no C compiler flags were specified, use CFLAGS.
7085
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7086
 
7087
# Allow CC to be a program name with arguments.
7088
compiler=$CC
7089
 
7090
# Save the default compiler, since it gets overwritten when the other
7091
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7092
compiler_DEFAULT=$CC
7093
 
7094
# save warnings/boilerplate of simple test code
7095
ac_outfile=conftest.$ac_objext
7096
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7097
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7098
_lt_compiler_boilerplate=`cat conftest.err`
7099
$RM conftest*
7100
 
7101
ac_outfile=conftest.$ac_objext
7102
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7103
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7104
_lt_linker_boilerplate=`cat conftest.err`
7105
$RM -r conftest*
7106
 
7107
 
7108
## CAVEAT EMPTOR:
7109
## There is no encapsulation within the following macros, do not change
7110
## the running order or otherwise move them around unless you know exactly
7111
## what you are doing...
7112
if test -n "$compiler"; then
7113
 
7114
lt_prog_compiler_no_builtin_flag=
7115
 
7116
if test "$GCC" = yes; then
7117 784 jeremybenn
  case $cc_basename in
7118
  nvcc*)
7119
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7120
  *)
7121
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7122
  esac
7123 90 jeremybenn
 
7124 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7125 90 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7126 625 jeremybenn
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7127 90 jeremybenn
  $as_echo_n "(cached) " >&6
7128
else
7129
  lt_cv_prog_compiler_rtti_exceptions=no
7130
   ac_outfile=conftest.$ac_objext
7131
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7133
   # Insert the option either (1) after the last *FLAGS variable, or
7134
   # (2) before a word containing "conftest.", or (3) at the end.
7135
   # Note that $ac_compile itself does not contain backslashes and begins
7136
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7137
   # The option is referenced via a variable to avoid confusing sed.
7138
   lt_compile=`echo "$ac_compile" | $SED \
7139
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141
   -e 's:$: $lt_compiler_flag:'`
7142 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7143 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7144
   ac_status=$?
7145
   cat conftest.err >&5
7146 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7148
     # The compiler can only warn and ignore the option if not recognized
7149
     # So say no if there are warnings other than the usual output.
7150 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7151 90 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7153
       lt_cv_prog_compiler_rtti_exceptions=yes
7154
     fi
7155
   fi
7156
   $RM conftest*
7157
 
7158
fi
7159 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7160 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7161
 
7162
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7163
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7164
else
7165
    :
7166
fi
7167
 
7168
fi
7169
 
7170
 
7171
 
7172
 
7173
 
7174
 
7175
  lt_prog_compiler_wl=
7176
lt_prog_compiler_pic=
7177
lt_prog_compiler_static=
7178
 
7179
 
7180
  if test "$GCC" = yes; then
7181
    lt_prog_compiler_wl='-Wl,'
7182
    lt_prog_compiler_static='-static'
7183
 
7184
    case $host_os in
7185
      aix*)
7186
      # All AIX code is PIC.
7187
      if test "$host_cpu" = ia64; then
7188
        # AIX 5 now supports IA64 processor
7189
        lt_prog_compiler_static='-Bstatic'
7190
      fi
7191
      ;;
7192
 
7193
    amigaos*)
7194
      case $host_cpu in
7195
      powerpc)
7196
            # see comment about AmigaOS4 .so support
7197
            lt_prog_compiler_pic='-fPIC'
7198
        ;;
7199
      m68k)
7200
            # FIXME: we need at least 68020 code to build shared libraries, but
7201
            # adding the `-m68020' flag to GCC prevents building anything better,
7202
            # like `-m68040'.
7203
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7204
        ;;
7205
      esac
7206
      ;;
7207
 
7208
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7209
      # PIC is the default for these OSes.
7210
      ;;
7211
 
7212
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7213
      # This hack is so that the source file can tell whether it is being
7214
      # built for inclusion in a dll (and should export symbols for example).
7215
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7216
      # (--disable-auto-import) libraries
7217
      lt_prog_compiler_pic='-DDLL_EXPORT'
7218
      ;;
7219
 
7220
    darwin* | rhapsody*)
7221
      # PIC is the default on this platform
7222
      # Common symbols not allowed in MH_DYLIB files
7223
      lt_prog_compiler_pic='-fno-common'
7224
      ;;
7225
 
7226 784 jeremybenn
    haiku*)
7227
      # PIC is the default for Haiku.
7228
      # The "-static" flag exists, but is broken.
7229
      lt_prog_compiler_static=
7230
      ;;
7231
 
7232 90 jeremybenn
    hpux*)
7233
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7234
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7235
      # sets the default TLS model and affects inlining.
7236
      case $host_cpu in
7237
      hppa*64*)
7238
        # +Z the default
7239
        ;;
7240
      *)
7241
        lt_prog_compiler_pic='-fPIC'
7242
        ;;
7243
      esac
7244
      ;;
7245
 
7246
    interix[3-9]*)
7247
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7248
      # Instead, we relocate shared libraries at runtime.
7249
      ;;
7250
 
7251
    msdosdjgpp*)
7252
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7253
      # on systems that don't support them.
7254
      lt_prog_compiler_can_build_shared=no
7255
      enable_shared=no
7256
      ;;
7257
 
7258
    *nto* | *qnx*)
7259
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7260
      # it will coredump.
7261
      lt_prog_compiler_pic='-fPIC -shared'
7262
      ;;
7263
 
7264
    sysv4*MP*)
7265
      if test -d /usr/nec; then
7266
        lt_prog_compiler_pic=-Kconform_pic
7267
      fi
7268
      ;;
7269
 
7270
    *)
7271
      lt_prog_compiler_pic='-fPIC'
7272
      ;;
7273
    esac
7274 784 jeremybenn
 
7275
    case $cc_basename in
7276
    nvcc*) # Cuda Compiler Driver 2.2
7277
      lt_prog_compiler_wl='-Xlinker '
7278
      lt_prog_compiler_pic='-Xcompiler -fPIC'
7279
      ;;
7280
    esac
7281 90 jeremybenn
  else
7282
    # PORTME Check for flag to pass linker flags through the system compiler.
7283
    case $host_os in
7284
    aix*)
7285
      lt_prog_compiler_wl='-Wl,'
7286
      if test "$host_cpu" = ia64; then
7287
        # AIX 5 now supports IA64 processor
7288
        lt_prog_compiler_static='-Bstatic'
7289
      else
7290
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7291
      fi
7292
      ;;
7293
 
7294
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7295
      # This hack is so that the source file can tell whether it is being
7296
      # built for inclusion in a dll (and should export symbols for example).
7297
      lt_prog_compiler_pic='-DDLL_EXPORT'
7298
      ;;
7299
 
7300
    hpux9* | hpux10* | hpux11*)
7301
      lt_prog_compiler_wl='-Wl,'
7302
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7303
      # not for PA HP-UX.
7304
      case $host_cpu in
7305
      hppa*64*|ia64*)
7306
        # +Z the default
7307
        ;;
7308
      *)
7309
        lt_prog_compiler_pic='+Z'
7310
        ;;
7311
      esac
7312
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7313
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7314
      ;;
7315
 
7316
    irix5* | irix6* | nonstopux*)
7317
      lt_prog_compiler_wl='-Wl,'
7318
      # PIC (with -KPIC) is the default.
7319
      lt_prog_compiler_static='-non_shared'
7320
      ;;
7321
 
7322 784 jeremybenn
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7323 90 jeremybenn
      case $cc_basename in
7324
      # old Intel for x86_64 which still supported -KPIC.
7325
      ecc*)
7326
        lt_prog_compiler_wl='-Wl,'
7327
        lt_prog_compiler_pic='-KPIC'
7328
        lt_prog_compiler_static='-static'
7329
        ;;
7330
      # icc used to be incompatible with GCC.
7331
      # ICC 10 doesn't accept -KPIC any more.
7332
      icc* | ifort*)
7333
        lt_prog_compiler_wl='-Wl,'
7334
        lt_prog_compiler_pic='-fPIC'
7335
        lt_prog_compiler_static='-static'
7336
        ;;
7337
      # Lahey Fortran 8.1.
7338
      lf95*)
7339
        lt_prog_compiler_wl='-Wl,'
7340
        lt_prog_compiler_pic='--shared'
7341
        lt_prog_compiler_static='--static'
7342
        ;;
7343 784 jeremybenn
      nagfor*)
7344
        # NAG Fortran compiler
7345
        lt_prog_compiler_wl='-Wl,-Wl,,'
7346
        lt_prog_compiler_pic='-PIC'
7347
        lt_prog_compiler_static='-Bstatic'
7348
        ;;
7349
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7350 90 jeremybenn
        # Portland Group compilers (*not* the Pentium gcc compiler,
7351
        # which looks to be a dead project)
7352
        lt_prog_compiler_wl='-Wl,'
7353
        lt_prog_compiler_pic='-fpic'
7354
        lt_prog_compiler_static='-Bstatic'
7355
        ;;
7356
      ccc*)
7357
        lt_prog_compiler_wl='-Wl,'
7358
        # All Alpha code is PIC.
7359
        lt_prog_compiler_static='-non_shared'
7360
        ;;
7361 784 jeremybenn
      xl* | bgxl* | bgf* | mpixl*)
7362
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7363 90 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7364
        lt_prog_compiler_pic='-qpic'
7365
        lt_prog_compiler_static='-qstaticlink'
7366
        ;;
7367
      *)
7368
        case `$CC -V 2>&1 | sed 5q` in
7369 784 jeremybenn
        *Sun\ F* | *Sun*Fortran*)
7370
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7371
          lt_prog_compiler_pic='-KPIC'
7372
          lt_prog_compiler_static='-Bstatic'
7373
          lt_prog_compiler_wl=''
7374
          ;;
7375 90 jeremybenn
        *Sun\ C*)
7376
          # Sun C 5.9
7377
          lt_prog_compiler_pic='-KPIC'
7378
          lt_prog_compiler_static='-Bstatic'
7379
          lt_prog_compiler_wl='-Wl,'
7380
          ;;
7381
        esac
7382
        ;;
7383
      esac
7384
      ;;
7385
 
7386
    newsos6)
7387
      lt_prog_compiler_pic='-KPIC'
7388
      lt_prog_compiler_static='-Bstatic'
7389
      ;;
7390
 
7391
    *nto* | *qnx*)
7392
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7393
      # it will coredump.
7394
      lt_prog_compiler_pic='-fPIC -shared'
7395
      ;;
7396
 
7397
    osf3* | osf4* | osf5*)
7398
      lt_prog_compiler_wl='-Wl,'
7399
      # All OSF/1 code is PIC.
7400
      lt_prog_compiler_static='-non_shared'
7401
      ;;
7402
 
7403
    rdos*)
7404
      lt_prog_compiler_static='-non_shared'
7405
      ;;
7406
 
7407
    solaris*)
7408
      lt_prog_compiler_pic='-KPIC'
7409
      lt_prog_compiler_static='-Bstatic'
7410
      case $cc_basename in
7411 784 jeremybenn
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7412 90 jeremybenn
        lt_prog_compiler_wl='-Qoption ld ';;
7413
      *)
7414
        lt_prog_compiler_wl='-Wl,';;
7415
      esac
7416
      ;;
7417
 
7418
    sunos4*)
7419
      lt_prog_compiler_wl='-Qoption ld '
7420
      lt_prog_compiler_pic='-PIC'
7421
      lt_prog_compiler_static='-Bstatic'
7422
      ;;
7423
 
7424
    sysv4 | sysv4.2uw2* | sysv4.3*)
7425
      lt_prog_compiler_wl='-Wl,'
7426
      lt_prog_compiler_pic='-KPIC'
7427
      lt_prog_compiler_static='-Bstatic'
7428
      ;;
7429
 
7430
    sysv4*MP*)
7431
      if test -d /usr/nec ;then
7432
        lt_prog_compiler_pic='-Kconform_pic'
7433
        lt_prog_compiler_static='-Bstatic'
7434
      fi
7435
      ;;
7436
 
7437
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7438
      lt_prog_compiler_wl='-Wl,'
7439
      lt_prog_compiler_pic='-KPIC'
7440
      lt_prog_compiler_static='-Bstatic'
7441
      ;;
7442
 
7443
    unicos*)
7444
      lt_prog_compiler_wl='-Wl,'
7445
      lt_prog_compiler_can_build_shared=no
7446
      ;;
7447
 
7448
    uts4*)
7449
      lt_prog_compiler_pic='-pic'
7450
      lt_prog_compiler_static='-Bstatic'
7451
      ;;
7452
 
7453
    *)
7454
      lt_prog_compiler_can_build_shared=no
7455
      ;;
7456
    esac
7457
  fi
7458
 
7459
case $host_os in
7460
  # For platforms which do not support PIC, -DPIC is meaningless:
7461
  *djgpp*)
7462
    lt_prog_compiler_pic=
7463
    ;;
7464
  *)
7465
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7466
    ;;
7467
esac
7468
 
7469 784 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7470
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7471
if ${lt_cv_prog_compiler_pic+:} false; then :
7472
  $as_echo_n "(cached) " >&6
7473
else
7474
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7475
fi
7476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7477
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7478
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7479 90 jeremybenn
 
7480
#
7481
# Check to make sure the PIC flag actually works.
7482
#
7483
if test -n "$lt_prog_compiler_pic"; then
7484 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7485 90 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7486 625 jeremybenn
if ${lt_cv_prog_compiler_pic_works+:} false; then :
7487 90 jeremybenn
  $as_echo_n "(cached) " >&6
7488
else
7489
  lt_cv_prog_compiler_pic_works=no
7490
   ac_outfile=conftest.$ac_objext
7491
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7492
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7493
   # Insert the option either (1) after the last *FLAGS variable, or
7494
   # (2) before a word containing "conftest.", or (3) at the end.
7495
   # Note that $ac_compile itself does not contain backslashes and begins
7496
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7497
   # The option is referenced via a variable to avoid confusing sed.
7498
   lt_compile=`echo "$ac_compile" | $SED \
7499
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7500
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7501
   -e 's:$: $lt_compiler_flag:'`
7502 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7503 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7504
   ac_status=$?
7505
   cat conftest.err >&5
7506 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7508
     # The compiler can only warn and ignore the option if not recognized
7509
     # So say no if there are warnings other than the usual output.
7510 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7511 90 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7512
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7513
       lt_cv_prog_compiler_pic_works=yes
7514
     fi
7515
   fi
7516
   $RM conftest*
7517
 
7518
fi
7519 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7520 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7521
 
7522
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7523
    case $lt_prog_compiler_pic in
7524
     "" | " "*) ;;
7525
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7526
     esac
7527
else
7528
    lt_prog_compiler_pic=
7529
     lt_prog_compiler_can_build_shared=no
7530
fi
7531
 
7532
fi
7533
 
7534
 
7535
 
7536
 
7537
 
7538
 
7539 784 jeremybenn
 
7540
 
7541
 
7542
 
7543
 
7544 90 jeremybenn
#
7545
# Check to make sure the static flag actually works.
7546
#
7547
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7548 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7549 90 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7550 625 jeremybenn
if ${lt_cv_prog_compiler_static_works+:} false; then :
7551 90 jeremybenn
  $as_echo_n "(cached) " >&6
7552
else
7553
  lt_cv_prog_compiler_static_works=no
7554
   save_LDFLAGS="$LDFLAGS"
7555
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7556
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7557
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7558
     # The linker can only warn and ignore the option if not recognized
7559
     # So say no if there are warnings
7560
     if test -s conftest.err; then
7561
       # Append any errors to the config.log.
7562
       cat conftest.err 1>&5
7563 784 jeremybenn
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7564 90 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565
       if diff conftest.exp conftest.er2 >/dev/null; then
7566
         lt_cv_prog_compiler_static_works=yes
7567
       fi
7568
     else
7569
       lt_cv_prog_compiler_static_works=yes
7570
     fi
7571
   fi
7572
   $RM -r conftest*
7573
   LDFLAGS="$save_LDFLAGS"
7574
 
7575
fi
7576 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7577 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7578
 
7579
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7580
    :
7581
else
7582
    lt_prog_compiler_static=
7583
fi
7584
 
7585
 
7586
 
7587
 
7588
 
7589
 
7590
 
7591 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7592 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7593 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7594 90 jeremybenn
  $as_echo_n "(cached) " >&6
7595
else
7596
  lt_cv_prog_compiler_c_o=no
7597
   $RM -r conftest 2>/dev/null
7598
   mkdir conftest
7599
   cd conftest
7600
   mkdir out
7601
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7602
 
7603
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7604
   # Insert the option either (1) after the last *FLAGS variable, or
7605
   # (2) before a word containing "conftest.", or (3) at the end.
7606
   # Note that $ac_compile itself does not contain backslashes and begins
7607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7608
   lt_compile=`echo "$ac_compile" | $SED \
7609
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7610
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7611
   -e 's:$: $lt_compiler_flag:'`
7612 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7613 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7614
   ac_status=$?
7615
   cat out/conftest.err >&5
7616 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7618
   then
7619
     # The compiler can only warn and ignore the option if not recognized
7620
     # So say no if there are warnings
7621 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7622 90 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7623
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7624
       lt_cv_prog_compiler_c_o=yes
7625
     fi
7626
   fi
7627
   chmod u+w . 2>&5
7628
   $RM conftest*
7629
   # SGI C++ compiler will create directory out/ii_files/ for
7630
   # template instantiation
7631
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7632
   $RM out/* && rmdir out
7633
   cd ..
7634
   $RM -r conftest
7635
   $RM conftest*
7636
 
7637
fi
7638 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7639 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7640
 
7641
 
7642
 
7643
 
7644
 
7645
 
7646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7647 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7648 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7649 90 jeremybenn
  $as_echo_n "(cached) " >&6
7650
else
7651
  lt_cv_prog_compiler_c_o=no
7652
   $RM -r conftest 2>/dev/null
7653
   mkdir conftest
7654
   cd conftest
7655
   mkdir out
7656
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7657
 
7658
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7659
   # Insert the option either (1) after the last *FLAGS variable, or
7660
   # (2) before a word containing "conftest.", or (3) at the end.
7661
   # Note that $ac_compile itself does not contain backslashes and begins
7662
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7663
   lt_compile=`echo "$ac_compile" | $SED \
7664
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7665
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7666
   -e 's:$: $lt_compiler_flag:'`
7667 784 jeremybenn
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7668 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7669
   ac_status=$?
7670
   cat out/conftest.err >&5
7671 784 jeremybenn
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7673
   then
7674
     # The compiler can only warn and ignore the option if not recognized
7675
     # So say no if there are warnings
7676 784 jeremybenn
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7677 90 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7678
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7679
       lt_cv_prog_compiler_c_o=yes
7680
     fi
7681
   fi
7682
   chmod u+w . 2>&5
7683
   $RM conftest*
7684
   # SGI C++ compiler will create directory out/ii_files/ for
7685
   # template instantiation
7686
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7687
   $RM out/* && rmdir out
7688
   cd ..
7689
   $RM -r conftest
7690
   $RM conftest*
7691
 
7692
fi
7693 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7694 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7695
 
7696
 
7697
 
7698
 
7699
hard_links="nottested"
7700
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7701
  # do not overwrite the value of need_locks provided by the user
7702 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7703 90 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7704
  hard_links=yes
7705
  $RM conftest*
7706
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7707
  touch conftest.a
7708
  ln conftest.a conftest.b 2>&5 || hard_links=no
7709
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7710 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7711 90 jeremybenn
$as_echo "$hard_links" >&6; }
7712
  if test "$hard_links" = no; then
7713 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7714 90 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7715
    need_locks=warn
7716
  fi
7717
else
7718
  need_locks=no
7719
fi
7720
 
7721
 
7722
 
7723
 
7724
 
7725
 
7726 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7727 90 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7728
 
7729
  runpath_var=
7730
  allow_undefined_flag=
7731
  always_export_symbols=no
7732
  archive_cmds=
7733
  archive_expsym_cmds=
7734
  compiler_needs_object=no
7735
  enable_shared_with_static_runtimes=no
7736
  export_dynamic_flag_spec=
7737
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7738
  hardcode_automatic=no
7739
  hardcode_direct=no
7740
  hardcode_direct_absolute=no
7741
  hardcode_libdir_flag_spec=
7742
  hardcode_libdir_flag_spec_ld=
7743
  hardcode_libdir_separator=
7744
  hardcode_minus_L=no
7745
  hardcode_shlibpath_var=unsupported
7746
  inherit_rpath=no
7747
  link_all_deplibs=unknown
7748
  module_cmds=
7749
  module_expsym_cmds=
7750
  old_archive_from_new_cmds=
7751
  old_archive_from_expsyms_cmds=
7752
  thread_safe_flag_spec=
7753
  whole_archive_flag_spec=
7754
  # include_expsyms should be a list of space-separated symbols to be *always*
7755
  # included in the symbol list
7756
  include_expsyms=
7757
  # exclude_expsyms can be an extended regexp of symbols to exclude
7758
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7759
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7760
  # as well as any symbol that contains `d'.
7761
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7762
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7763
  # platforms (ab)use it in PIC code, but their linkers get confused if
7764
  # the symbol is explicitly referenced.  Since portable code cannot
7765
  # rely on this symbol name, it's probably fine to never include it in
7766
  # preloaded symbol tables.
7767
  # Exclude shared library initialization/finalization symbols.
7768
  extract_expsyms_cmds=
7769
 
7770
  case $host_os in
7771
  cygwin* | mingw* | pw32* | cegcc*)
7772
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7773
    # When not using gcc, we currently assume that we are using
7774
    # Microsoft Visual C++.
7775
    if test "$GCC" != yes; then
7776
      with_gnu_ld=no
7777
    fi
7778
    ;;
7779
  interix*)
7780
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7781
    with_gnu_ld=yes
7782
    ;;
7783
  openbsd*)
7784
    with_gnu_ld=no
7785
    ;;
7786
  esac
7787
 
7788
  ld_shlibs=yes
7789 784 jeremybenn
 
7790
  # On some targets, GNU ld is compatible enough with the native linker
7791
  # that we're better off using the native interface for both.
7792
  lt_use_gnu_ld_interface=no
7793 90 jeremybenn
  if test "$with_gnu_ld" = yes; then
7794 784 jeremybenn
    case $host_os in
7795
      aix*)
7796
        # The AIX port of GNU ld has always aspired to compatibility
7797
        # with the native linker.  However, as the warning in the GNU ld
7798
        # block says, versions before 2.19.5* couldn't really create working
7799
        # shared libraries, regardless of the interface used.
7800
        case `$LD -v 2>&1` in
7801
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7802
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7803
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7804
          *)
7805
            lt_use_gnu_ld_interface=yes
7806
            ;;
7807
        esac
7808
        ;;
7809
      *)
7810
        lt_use_gnu_ld_interface=yes
7811
        ;;
7812
    esac
7813
  fi
7814
 
7815
  if test "$lt_use_gnu_ld_interface" = yes; then
7816 90 jeremybenn
    # If archive_cmds runs LD, not CC, wlarc should be empty
7817
    wlarc='${wl}'
7818
 
7819
    # Set some defaults for GNU ld with shared library support. These
7820
    # are reset later if shared libraries are not supported. Putting them
7821
    # here allows them to be overridden if necessary.
7822
    runpath_var=LD_RUN_PATH
7823
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7824
    export_dynamic_flag_spec='${wl}--export-dynamic'
7825
    # ancient GNU ld didn't support --whole-archive et. al.
7826
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7827
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7828
    else
7829
      whole_archive_flag_spec=
7830
    fi
7831
    supports_anon_versioning=no
7832
    case `$LD -v 2>&1` in
7833 784 jeremybenn
      *GNU\ gold*) supports_anon_versioning=yes ;;
7834 90 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7835
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7836
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7837
      *\ 2.11.*) ;; # other 2.11 versions
7838
      *) supports_anon_versioning=yes ;;
7839
    esac
7840
 
7841
    # See if GNU ld supports shared libraries.
7842
    case $host_os in
7843
    aix[3-9]*)
7844
      # On AIX/PPC, the GNU linker is very broken
7845
      if test "$host_cpu" != ia64; then
7846
        ld_shlibs=no
7847
        cat <<_LT_EOF 1>&2
7848
 
7849 784 jeremybenn
*** Warning: the GNU linker, at least up to release 2.19, is reported
7850 90 jeremybenn
*** to be unable to reliably create shared libraries on AIX.
7851
*** Therefore, libtool is disabling shared libraries support.  If you
7852 784 jeremybenn
*** really care for shared libraries, you may want to install binutils
7853
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7854
*** You will then need to restart the configuration process.
7855 90 jeremybenn
 
7856
_LT_EOF
7857
      fi
7858
      ;;
7859
 
7860
    amigaos*)
7861
      case $host_cpu in
7862
      powerpc)
7863
            # see comment about AmigaOS4 .so support
7864
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7865
            archive_expsym_cmds=''
7866
        ;;
7867
      m68k)
7868
            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)'
7869
            hardcode_libdir_flag_spec='-L$libdir'
7870
            hardcode_minus_L=yes
7871
        ;;
7872
      esac
7873
      ;;
7874
 
7875
    beos*)
7876
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7877
        allow_undefined_flag=unsupported
7878
        # Joseph Beckenbach  says some releases of gcc
7879
        # support --undefined.  This deserves some investigation.  FIXME
7880
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881
      else
7882
        ld_shlibs=no
7883
      fi
7884
      ;;
7885
 
7886
    cygwin* | mingw* | pw32* | cegcc*)
7887
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7888
      # as there is no search path for DLLs.
7889
      hardcode_libdir_flag_spec='-L$libdir'
7890 784 jeremybenn
      export_dynamic_flag_spec='${wl}--export-all-symbols'
7891 90 jeremybenn
      allow_undefined_flag=unsupported
7892
      always_export_symbols=no
7893
      enable_shared_with_static_runtimes=yes
7894 784 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
7895
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7896 90 jeremybenn
 
7897
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7898
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7899
        # If the export-symbols file already is a .def file (1st line
7900
        # is EXPORTS), use it as is; otherwise, prepend...
7901
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7902
          cp $export_symbols $output_objdir/$soname.def;
7903
        else
7904
          echo EXPORTS > $output_objdir/$soname.def;
7905
          cat $export_symbols >> $output_objdir/$soname.def;
7906
        fi~
7907
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7908
      else
7909
        ld_shlibs=no
7910
      fi
7911
      ;;
7912
 
7913 784 jeremybenn
    haiku*)
7914
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7915
      link_all_deplibs=yes
7916
      ;;
7917
 
7918 90 jeremybenn
    interix[3-9]*)
7919
      hardcode_direct=no
7920
      hardcode_shlibpath_var=no
7921
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7922
      export_dynamic_flag_spec='${wl}-E'
7923
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7924
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7925
      # default) and relocated if they conflict, which is a slow very memory
7926
      # consuming and fragmenting process.  To avoid this, we pick a random,
7927
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7928
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7929
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7930
      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'
7931
      ;;
7932
 
7933 784 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7934 90 jeremybenn
      tmp_diet=no
7935
      if test "$host_os" = linux-dietlibc; then
7936
        case $cc_basename in
7937
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7938
        esac
7939
      fi
7940
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7941
         && test "$tmp_diet" = no
7942
      then
7943 784 jeremybenn
        tmp_addflag=' $pic_flag'
7944 90 jeremybenn
        tmp_sharedflag='-shared'
7945
        case $cc_basename,$host_cpu in
7946
        pgcc*)                          # Portland Group C compiler
7947 784 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7948 90 jeremybenn
          tmp_addflag=' $pic_flag'
7949
          ;;
7950 784 jeremybenn
        pgf77* | pgf90* | pgf95* | pgfortran*)
7951
                                        # Portland Group f77 and f90 compilers
7952
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7953 90 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7954
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7955
          tmp_addflag=' -i_dynamic' ;;
7956
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7957
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7958
        ifc* | ifort*)                  # Intel Fortran compiler
7959
          tmp_addflag=' -nofor_main' ;;
7960
        lf95*)                          # Lahey Fortran 8.1
7961
          whole_archive_flag_spec=
7962
          tmp_sharedflag='--shared' ;;
7963 784 jeremybenn
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7964 90 jeremybenn
          tmp_sharedflag='-qmkshrobj'
7965
          tmp_addflag= ;;
7966 784 jeremybenn
        nvcc*)  # Cuda Compiler Driver 2.2
7967
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7968
          compiler_needs_object=yes
7969
          ;;
7970 90 jeremybenn
        esac
7971
        case `$CC -V 2>&1 | sed 5q` in
7972
        *Sun\ C*)                       # Sun C 5.9
7973 784 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7974 90 jeremybenn
          compiler_needs_object=yes
7975
          tmp_sharedflag='-G' ;;
7976
        *Sun\ F*)                       # Sun Fortran 8.3
7977
          tmp_sharedflag='-G' ;;
7978
        esac
7979
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7980
 
7981
        if test "x$supports_anon_versioning" = xyes; then
7982
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7983
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7984
            echo "local: *; };" >> $output_objdir/$libname.ver~
7985
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7986
        fi
7987
 
7988
        case $cc_basename in
7989 784 jeremybenn
        xlf* | bgf* | bgxlf* | mpixlf*)
7990 90 jeremybenn
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7991
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7992
          hardcode_libdir_flag_spec=
7993
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7994 784 jeremybenn
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7995 90 jeremybenn
          if test "x$supports_anon_versioning" = xyes; then
7996
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7997
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7998
              echo "local: *; };" >> $output_objdir/$libname.ver~
7999 784 jeremybenn
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8000 90 jeremybenn
          fi
8001
          ;;
8002
        esac
8003
      else
8004
        ld_shlibs=no
8005
      fi
8006
      ;;
8007
 
8008 784 jeremybenn
    netbsd*)
8009 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8010
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8011
        wlarc=
8012
      else
8013 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8015 90 jeremybenn
      fi
8016
      ;;
8017
 
8018
    solaris*)
8019
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8020
        ld_shlibs=no
8021
        cat <<_LT_EOF 1>&2
8022
 
8023
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8024
*** create shared libraries on Solaris systems.  Therefore, libtool
8025
*** is disabling shared libraries support.  We urge you to upgrade GNU
8026
*** binutils to release 2.9.1 or newer.  Another option is to modify
8027
*** your PATH or compiler configuration so that the native linker is
8028
*** used, and then restart.
8029
 
8030
_LT_EOF
8031
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8032 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034 90 jeremybenn
      else
8035
        ld_shlibs=no
8036
      fi
8037
      ;;
8038
 
8039
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8040
      case `$LD -v 2>&1` in
8041
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8042
        ld_shlibs=no
8043
        cat <<_LT_EOF 1>&2
8044
 
8045
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8046
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8047
*** is disabling shared libraries support.  We urge you to upgrade GNU
8048
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8049
*** your PATH or compiler configuration so that the native linker is
8050
*** used, and then restart.
8051
 
8052
_LT_EOF
8053
        ;;
8054
        *)
8055
          # For security reasons, it is highly recommended that you always
8056
          # use absolute paths for naming shared libraries, and exclude the
8057
          # DT_RUNPATH tag from executables and libraries.  But doing so
8058
          # requires that you compile everything twice, which is a pain.
8059
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8060
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8063
          else
8064
            ld_shlibs=no
8065
          fi
8066
        ;;
8067
      esac
8068
      ;;
8069
 
8070
    sunos4*)
8071
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8072
      wlarc=
8073
      hardcode_direct=yes
8074
      hardcode_shlibpath_var=no
8075
      ;;
8076
 
8077
    *)
8078
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8079 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8081 90 jeremybenn
      else
8082
        ld_shlibs=no
8083
      fi
8084
      ;;
8085
    esac
8086
 
8087
    if test "$ld_shlibs" = no; then
8088
      runpath_var=
8089
      hardcode_libdir_flag_spec=
8090
      export_dynamic_flag_spec=
8091
      whole_archive_flag_spec=
8092
    fi
8093
  else
8094
    # PORTME fill in a description of your system's linker (not GNU ld)
8095
    case $host_os in
8096
    aix3*)
8097
      allow_undefined_flag=unsupported
8098
      always_export_symbols=yes
8099
      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'
8100
      # Note: this linker hardcodes the directories in LIBPATH if there
8101
      # are no directories specified by -L.
8102
      hardcode_minus_L=yes
8103
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8104
        # Neither direct hardcoding nor static linking is supported with a
8105
        # broken collect2.
8106
        hardcode_direct=unsupported
8107
      fi
8108
      ;;
8109
 
8110
    aix[4-9]*)
8111
      if test "$host_cpu" = ia64; then
8112
        # On IA64, the linker does run time linking by default, so we don't
8113
        # have to do anything special.
8114
        aix_use_runtimelinking=no
8115
        exp_sym_flag='-Bexport'
8116
        no_entry_flag=""
8117
      else
8118
        # If we're using GNU nm, then we don't want the "-C" option.
8119
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8120 784 jeremybenn
        # Also, AIX nm treats weak defined symbols like other global
8121
        # defined symbols, whereas GNU nm marks them as "W".
8122 90 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8123 784 jeremybenn
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8124 90 jeremybenn
        else
8125
          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'
8126
        fi
8127
        aix_use_runtimelinking=no
8128
 
8129
        # Test if we are trying to use run time linking or normal
8130
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8131
        # need to do runtime linking.
8132
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8133
          for ld_flag in $LDFLAGS; do
8134
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8135
            aix_use_runtimelinking=yes
8136
            break
8137
          fi
8138
          done
8139
          ;;
8140
        esac
8141
 
8142
        exp_sym_flag='-bexport'
8143
        no_entry_flag='-bnoentry'
8144
      fi
8145
 
8146
      # When large executables or shared objects are built, AIX ld can
8147
      # have problems creating the table of contents.  If linking a library
8148
      # or program results in "error TOC overflow" add -mminimal-toc to
8149
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8150
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8151
 
8152
      archive_cmds=''
8153
      hardcode_direct=yes
8154
      hardcode_direct_absolute=yes
8155
      hardcode_libdir_separator=':'
8156
      link_all_deplibs=yes
8157
      file_list_spec='${wl}-f,'
8158
 
8159
      if test "$GCC" = yes; then
8160
        case $host_os in aix4.[012]|aix4.[012].*)
8161
        # We only want to do this on AIX 4.2 and lower, the check
8162
        # below for broken collect2 doesn't work under 4.3+
8163
          collect2name=`${CC} -print-prog-name=collect2`
8164
          if test -f "$collect2name" &&
8165
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8166
          then
8167
          # We have reworked collect2
8168
          :
8169
          else
8170
          # We have old collect2
8171
          hardcode_direct=unsupported
8172
          # It fails to find uninstalled libraries when the uninstalled
8173
          # path is not listed in the libpath.  Setting hardcode_minus_L
8174
          # to unsupported forces relinking
8175
          hardcode_minus_L=yes
8176
          hardcode_libdir_flag_spec='-L$libdir'
8177
          hardcode_libdir_separator=
8178
          fi
8179
          ;;
8180
        esac
8181
        shared_flag='-shared'
8182
        if test "$aix_use_runtimelinking" = yes; then
8183
          shared_flag="$shared_flag "'${wl}-G'
8184
        fi
8185
      else
8186
        # not using gcc
8187
        if test "$host_cpu" = ia64; then
8188
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8189
        # chokes on -Wl,-G. The following line is correct:
8190
          shared_flag='-G'
8191
        else
8192
          if test "$aix_use_runtimelinking" = yes; then
8193
            shared_flag='${wl}-G'
8194
          else
8195
            shared_flag='${wl}-bM:SRE'
8196
          fi
8197
        fi
8198
      fi
8199
 
8200
      export_dynamic_flag_spec='${wl}-bexpall'
8201
      # It seems that -bexpall does not export symbols beginning with
8202
      # underscore (_), so it is better to generate a list of symbols to export.
8203
      always_export_symbols=yes
8204
      if test "$aix_use_runtimelinking" = yes; then
8205
        # Warning - without using the other runtime loading flags (-brtl),
8206
        # -berok will link without error, but may produce a broken library.
8207
        allow_undefined_flag='-berok'
8208
        # Determine the default libpath from the value encoded in an
8209
        # empty executable.
8210 784 jeremybenn
        if test "${lt_cv_aix_libpath+set}" = set; then
8211
  aix_libpath=$lt_cv_aix_libpath
8212
else
8213
  if ${lt_cv_aix_libpath_+:} false; then :
8214
  $as_echo_n "(cached) " >&6
8215
else
8216
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 90 jeremybenn
/* end confdefs.h.  */
8218
 
8219
int
8220
main ()
8221
{
8222
 
8223
  ;
8224
  return 0;
8225
}
8226
_ACEOF
8227 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8228 90 jeremybenn
 
8229 784 jeremybenn
  lt_aix_libpath_sed='
8230
      /Import File Strings/,/^$/ {
8231
          /^0/ {
8232
              s/^0  *\([^ ]*\) *$/\1/
8233
              p
8234
          }
8235
      }'
8236
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8237
  # Check for a 64-bit object if we didn't find anything.
8238
  if test -z "$lt_cv_aix_libpath_"; then
8239
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8240
  fi
8241 90 jeremybenn
fi
8242 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8243
    conftest$ac_exeext conftest.$ac_ext
8244 784 jeremybenn
  if test -z "$lt_cv_aix_libpath_"; then
8245
    lt_cv_aix_libpath_="/usr/lib:/lib"
8246
  fi
8247 90 jeremybenn
 
8248 784 jeremybenn
fi
8249
 
8250
  aix_libpath=$lt_cv_aix_libpath_
8251
fi
8252
 
8253 90 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8254 784 jeremybenn
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8255 90 jeremybenn
      else
8256
        if test "$host_cpu" = ia64; then
8257
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8258
          allow_undefined_flag="-z nodefs"
8259
          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"
8260
        else
8261
         # Determine the default libpath from the value encoded in an
8262
         # empty executable.
8263 784 jeremybenn
         if test "${lt_cv_aix_libpath+set}" = set; then
8264
  aix_libpath=$lt_cv_aix_libpath
8265
else
8266
  if ${lt_cv_aix_libpath_+:} false; then :
8267
  $as_echo_n "(cached) " >&6
8268
else
8269
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 90 jeremybenn
/* end confdefs.h.  */
8271
 
8272
int
8273
main ()
8274
{
8275
 
8276
  ;
8277
  return 0;
8278
}
8279
_ACEOF
8280 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8281 90 jeremybenn
 
8282 784 jeremybenn
  lt_aix_libpath_sed='
8283
      /Import File Strings/,/^$/ {
8284
          /^0/ {
8285
              s/^0  *\([^ ]*\) *$/\1/
8286
              p
8287
          }
8288
      }'
8289
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8290
  # Check for a 64-bit object if we didn't find anything.
8291
  if test -z "$lt_cv_aix_libpath_"; then
8292
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8293
  fi
8294 90 jeremybenn
fi
8295 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8296
    conftest$ac_exeext conftest.$ac_ext
8297 784 jeremybenn
  if test -z "$lt_cv_aix_libpath_"; then
8298
    lt_cv_aix_libpath_="/usr/lib:/lib"
8299
  fi
8300 90 jeremybenn
 
8301 784 jeremybenn
fi
8302
 
8303
  aix_libpath=$lt_cv_aix_libpath_
8304
fi
8305
 
8306 90 jeremybenn
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8307
          # Warning - without using the other run time loading flags,
8308
          # -berok will link without error, but may produce a broken library.
8309
          no_undefined_flag=' ${wl}-bernotok'
8310
          allow_undefined_flag=' ${wl}-berok'
8311 784 jeremybenn
          if test "$with_gnu_ld" = yes; then
8312
            # We only use this code for GNU lds that support --whole-archive.
8313
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8314
          else
8315
            # Exported symbols can be pulled into shared objects from archives
8316
            whole_archive_flag_spec='$convenience'
8317
          fi
8318 90 jeremybenn
          archive_cmds_need_lc=yes
8319
          # This is similar to how AIX traditionally builds its shared libraries.
8320
          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'
8321
        fi
8322
      fi
8323
      ;;
8324
 
8325
    amigaos*)
8326
      case $host_cpu in
8327
      powerpc)
8328
            # see comment about AmigaOS4 .so support
8329
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330
            archive_expsym_cmds=''
8331
        ;;
8332
      m68k)
8333
            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)'
8334
            hardcode_libdir_flag_spec='-L$libdir'
8335
            hardcode_minus_L=yes
8336
        ;;
8337
      esac
8338
      ;;
8339
 
8340
    bsdi[45]*)
8341
      export_dynamic_flag_spec=-rdynamic
8342
      ;;
8343
 
8344
    cygwin* | mingw* | pw32* | cegcc*)
8345
      # When not using gcc, we currently assume that we are using
8346
      # Microsoft Visual C++.
8347
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8348
      # no search path for DLLs.
8349 784 jeremybenn
      case $cc_basename in
8350
      cl*)
8351
        # Native MSVC
8352
        hardcode_libdir_flag_spec=' '
8353
        allow_undefined_flag=unsupported
8354
        always_export_symbols=yes
8355
        file_list_spec='@'
8356
        # Tell ltmain to make .lib files, not .a files.
8357
        libext=lib
8358
        # Tell ltmain to make .dll files, not .so files.
8359
        shrext_cmds=".dll"
8360
        # FIXME: Setting linknames here is a bad hack.
8361
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8362
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8363
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8364
          else
8365
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8366
          fi~
8367
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8368
          linknames='
8369
        # The linker will not automatically build a static lib if we build a DLL.
8370
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8371
        enable_shared_with_static_runtimes=yes
8372
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8373
        # Don't use ranlib
8374
        old_postinstall_cmds='chmod 644 $oldlib'
8375
        postlink_cmds='lt_outputfile="@OUTPUT@"~
8376
          lt_tool_outputfile="@TOOL_OUTPUT@"~
8377
          case $lt_outputfile in
8378
            *.exe|*.EXE) ;;
8379
            *)
8380
              lt_outputfile="$lt_outputfile.exe"
8381
              lt_tool_outputfile="$lt_tool_outputfile.exe"
8382
              ;;
8383
          esac~
8384
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8385
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8386
            $RM "$lt_outputfile.manifest";
8387
          fi'
8388
        ;;
8389
      *)
8390
        # Assume MSVC wrapper
8391
        hardcode_libdir_flag_spec=' '
8392
        allow_undefined_flag=unsupported
8393
        # Tell ltmain to make .lib files, not .a files.
8394
        libext=lib
8395
        # Tell ltmain to make .dll files, not .so files.
8396
        shrext_cmds=".dll"
8397
        # FIXME: Setting linknames here is a bad hack.
8398
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8399
        # The linker will automatically build a .lib file if we build a DLL.
8400
        old_archive_from_new_cmds='true'
8401
        # FIXME: Should let the user specify the lib program.
8402
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8403
        enable_shared_with_static_runtimes=yes
8404
        ;;
8405
      esac
8406 90 jeremybenn
      ;;
8407
 
8408
    darwin* | rhapsody*)
8409
 
8410
 
8411
  archive_cmds_need_lc=no
8412
  hardcode_direct=no
8413
  hardcode_automatic=yes
8414
  hardcode_shlibpath_var=unsupported
8415 784 jeremybenn
  if test "$lt_cv_ld_force_load" = "yes"; then
8416
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8417
  else
8418
    whole_archive_flag_spec=''
8419
  fi
8420 90 jeremybenn
  link_all_deplibs=yes
8421
  allow_undefined_flag="$_lt_dar_allow_undefined"
8422
  case $cc_basename in
8423
     ifort*) _lt_dar_can_shared=yes ;;
8424
     *) _lt_dar_can_shared=$GCC ;;
8425
  esac
8426
  if test "$_lt_dar_can_shared" = "yes"; then
8427 784 jeremybenn
    output_verbose_link_cmd=func_echo_all
8428 90 jeremybenn
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8429
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8430
    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}"
8431
    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}"
8432
 
8433
  else
8434
  ld_shlibs=no
8435
  fi
8436
 
8437
      ;;
8438
 
8439
    dgux*)
8440
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441
      hardcode_libdir_flag_spec='-L$libdir'
8442
      hardcode_shlibpath_var=no
8443
      ;;
8444
 
8445
    freebsd1*)
8446
      ld_shlibs=no
8447
      ;;
8448
 
8449
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8450
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8451
    # does not break anything, and helps significantly (at the cost of a little
8452
    # extra space).
8453
    freebsd2.2*)
8454
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8455
      hardcode_libdir_flag_spec='-R$libdir'
8456
      hardcode_direct=yes
8457
      hardcode_shlibpath_var=no
8458
      ;;
8459
 
8460
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8461
    freebsd2*)
8462
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8463
      hardcode_direct=yes
8464
      hardcode_minus_L=yes
8465
      hardcode_shlibpath_var=no
8466
      ;;
8467
 
8468
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8469
    freebsd* | dragonfly*)
8470 784 jeremybenn
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8471 90 jeremybenn
      hardcode_libdir_flag_spec='-R$libdir'
8472
      hardcode_direct=yes
8473
      hardcode_shlibpath_var=no
8474
      ;;
8475
 
8476
    hpux9*)
8477
      if test "$GCC" = yes; then
8478 784 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8479 90 jeremybenn
      else
8480
        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'
8481
      fi
8482
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8483
      hardcode_libdir_separator=:
8484
      hardcode_direct=yes
8485
 
8486
      # hardcode_minus_L: Not really in the search PATH,
8487
      # but as the default location of the library.
8488
      hardcode_minus_L=yes
8489
      export_dynamic_flag_spec='${wl}-E'
8490
      ;;
8491
 
8492
    hpux10*)
8493 784 jeremybenn
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8494
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8495 90 jeremybenn
      else
8496
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8497
      fi
8498
      if test "$with_gnu_ld" = no; then
8499
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8500
        hardcode_libdir_flag_spec_ld='+b $libdir'
8501
        hardcode_libdir_separator=:
8502
        hardcode_direct=yes
8503
        hardcode_direct_absolute=yes
8504
        export_dynamic_flag_spec='${wl}-E'
8505
        # hardcode_minus_L: Not really in the search PATH,
8506
        # but as the default location of the library.
8507
        hardcode_minus_L=yes
8508
      fi
8509
      ;;
8510
 
8511
    hpux11*)
8512 784 jeremybenn
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8513 90 jeremybenn
        case $host_cpu in
8514
        hppa*64*)
8515
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8516
          ;;
8517
        ia64*)
8518 784 jeremybenn
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8519 90 jeremybenn
          ;;
8520
        *)
8521 784 jeremybenn
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8522 90 jeremybenn
          ;;
8523
        esac
8524
      else
8525
        case $host_cpu in
8526
        hppa*64*)
8527
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528
          ;;
8529
        ia64*)
8530
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8531
          ;;
8532
        *)
8533 784 jeremybenn
 
8534
          # Older versions of the 11.00 compiler do not understand -b yet
8535
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8536
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8537
$as_echo_n "checking if $CC understands -b... " >&6; }
8538
if ${lt_cv_prog_compiler__b+:} false; then :
8539
  $as_echo_n "(cached) " >&6
8540
else
8541
  lt_cv_prog_compiler__b=no
8542
   save_LDFLAGS="$LDFLAGS"
8543
   LDFLAGS="$LDFLAGS -b"
8544
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8545
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8546
     # The linker can only warn and ignore the option if not recognized
8547
     # So say no if there are warnings
8548
     if test -s conftest.err; then
8549
       # Append any errors to the config.log.
8550
       cat conftest.err 1>&5
8551
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8552
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8553
       if diff conftest.exp conftest.er2 >/dev/null; then
8554
         lt_cv_prog_compiler__b=yes
8555
       fi
8556
     else
8557
       lt_cv_prog_compiler__b=yes
8558
     fi
8559
   fi
8560
   $RM -r conftest*
8561
   LDFLAGS="$save_LDFLAGS"
8562
 
8563
fi
8564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8565
$as_echo "$lt_cv_prog_compiler__b" >&6; }
8566
 
8567
if test x"$lt_cv_prog_compiler__b" = xyes; then
8568
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8569
else
8570
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8571
fi
8572
 
8573 90 jeremybenn
          ;;
8574
        esac
8575
      fi
8576
      if test "$with_gnu_ld" = no; then
8577
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8578
        hardcode_libdir_separator=:
8579
 
8580
        case $host_cpu in
8581
        hppa*64*|ia64*)
8582
          hardcode_direct=no
8583
          hardcode_shlibpath_var=no
8584
          ;;
8585
        *)
8586
          hardcode_direct=yes
8587
          hardcode_direct_absolute=yes
8588
          export_dynamic_flag_spec='${wl}-E'
8589
 
8590
          # hardcode_minus_L: Not really in the search PATH,
8591
          # but as the default location of the library.
8592
          hardcode_minus_L=yes
8593
          ;;
8594
        esac
8595
      fi
8596
      ;;
8597
 
8598
    irix5* | irix6* | nonstopux*)
8599
      if test "$GCC" = yes; then
8600 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8601 90 jeremybenn
        # Try to use the -exported_symbol ld option, if it does not
8602
        # work, assume that -exports_file does not work either and
8603
        # implicitly export all symbols.
8604 784 jeremybenn
        # This should be the same for all languages, so no per-tag cache variable.
8605
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8606
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8607
if ${lt_cv_irix_exported_symbol+:} false; then :
8608
  $as_echo_n "(cached) " >&6
8609
else
8610
  save_LDFLAGS="$LDFLAGS"
8611
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 346 jeremybenn
/* end confdefs.h.  */
8614 784 jeremybenn
int foo (void) { return 0; }
8615 90 jeremybenn
_ACEOF
8616 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8617 784 jeremybenn
  lt_cv_irix_exported_symbol=yes
8618
else
8619
  lt_cv_irix_exported_symbol=no
8620 90 jeremybenn
fi
8621 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8622
    conftest$ac_exeext conftest.$ac_ext
8623 784 jeremybenn
           LDFLAGS="$save_LDFLAGS"
8624
fi
8625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8626
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
8627
        if test "$lt_cv_irix_exported_symbol" = yes; then
8628
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8629
        fi
8630 90 jeremybenn
      else
8631 784 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8632
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8633 90 jeremybenn
      fi
8634
      archive_cmds_need_lc='no'
8635
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636
      hardcode_libdir_separator=:
8637
      inherit_rpath=yes
8638
      link_all_deplibs=yes
8639
      ;;
8640
 
8641 784 jeremybenn
    netbsd*)
8642 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8643
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8644
      else
8645
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8646
      fi
8647
      hardcode_libdir_flag_spec='-R$libdir'
8648
      hardcode_direct=yes
8649
      hardcode_shlibpath_var=no
8650
      ;;
8651
 
8652
    newsos6)
8653
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654
      hardcode_direct=yes
8655
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656
      hardcode_libdir_separator=:
8657
      hardcode_shlibpath_var=no
8658
      ;;
8659
 
8660
    *nto* | *qnx*)
8661
      ;;
8662
 
8663
    openbsd*)
8664
      if test -f /usr/libexec/ld.so; then
8665
        hardcode_direct=yes
8666
        hardcode_shlibpath_var=no
8667
        hardcode_direct_absolute=yes
8668
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8669
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8670
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8671
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8672
          export_dynamic_flag_spec='${wl}-E'
8673
        else
8674
          case $host_os in
8675
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8676
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677
             hardcode_libdir_flag_spec='-R$libdir'
8678
             ;;
8679
           *)
8680
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8681
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8682
             ;;
8683
          esac
8684
        fi
8685
      else
8686
        ld_shlibs=no
8687
      fi
8688
      ;;
8689
 
8690
    os2*)
8691
      hardcode_libdir_flag_spec='-L$libdir'
8692
      hardcode_minus_L=yes
8693
      allow_undefined_flag=unsupported
8694 784 jeremybenn
      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'
8695 90 jeremybenn
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8696
      ;;
8697
 
8698
    osf3*)
8699
      if test "$GCC" = yes; then
8700
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8701 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8702 90 jeremybenn
      else
8703
        allow_undefined_flag=' -expect_unresolved \*'
8704 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8705 90 jeremybenn
      fi
8706
      archive_cmds_need_lc='no'
8707
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708
      hardcode_libdir_separator=:
8709
      ;;
8710
 
8711
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8712
      if test "$GCC" = yes; then
8713
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8714 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8715 90 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716
      else
8717
        allow_undefined_flag=' -expect_unresolved \*'
8718 784 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8719 90 jeremybenn
        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~
8720 784 jeremybenn
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8721 90 jeremybenn
 
8722
        # Both c and cxx compiler support -rpath directly
8723
        hardcode_libdir_flag_spec='-rpath $libdir'
8724
      fi
8725
      archive_cmds_need_lc='no'
8726
      hardcode_libdir_separator=:
8727
      ;;
8728
 
8729
    solaris*)
8730
      no_undefined_flag=' -z defs'
8731
      if test "$GCC" = yes; then
8732
        wlarc='${wl}'
8733 784 jeremybenn
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 90 jeremybenn
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 784 jeremybenn
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8736 90 jeremybenn
      else
8737
        case `$CC -V 2>&1` in
8738
        *"Compilers 5.0"*)
8739
          wlarc=''
8740
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8742
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8743
          ;;
8744
        *)
8745
          wlarc='${wl}'
8746
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8747
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8748
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8749
          ;;
8750
        esac
8751
      fi
8752
      hardcode_libdir_flag_spec='-R$libdir'
8753
      hardcode_shlibpath_var=no
8754
      case $host_os in
8755
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8756
      *)
8757
        # The compiler driver will combine and reorder linker options,
8758
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8759
        # but is careful enough not to reorder.
8760
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8761
        if test "$GCC" = yes; then
8762
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8763
        else
8764
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8765
        fi
8766
        ;;
8767
      esac
8768
      link_all_deplibs=yes
8769
      ;;
8770
 
8771
    sunos4*)
8772
      if test "x$host_vendor" = xsequent; then
8773
        # Use $CC to link under sequent, because it throws in some extra .o
8774
        # files that make .init and .fini sections work.
8775
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8776
      else
8777
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8778
      fi
8779
      hardcode_libdir_flag_spec='-L$libdir'
8780
      hardcode_direct=yes
8781
      hardcode_minus_L=yes
8782
      hardcode_shlibpath_var=no
8783
      ;;
8784
 
8785
    sysv4)
8786
      case $host_vendor in
8787
        sni)
8788
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789
          hardcode_direct=yes # is this really true???
8790
        ;;
8791
        siemens)
8792
          ## LD is ld it makes a PLAMLIB
8793
          ## CC just makes a GrossModule.
8794
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8795
          reload_cmds='$CC -r -o $output$reload_objs'
8796
          hardcode_direct=no
8797
        ;;
8798
        motorola)
8799
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8801
        ;;
8802
      esac
8803
      runpath_var='LD_RUN_PATH'
8804
      hardcode_shlibpath_var=no
8805
      ;;
8806
 
8807
    sysv4.3*)
8808
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809
      hardcode_shlibpath_var=no
8810
      export_dynamic_flag_spec='-Bexport'
8811
      ;;
8812
 
8813
    sysv4*MP*)
8814
      if test -d /usr/nec; then
8815
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816
        hardcode_shlibpath_var=no
8817
        runpath_var=LD_RUN_PATH
8818
        hardcode_runpath_var=yes
8819
        ld_shlibs=yes
8820
      fi
8821
      ;;
8822
 
8823
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8824
      no_undefined_flag='${wl}-z,text'
8825
      archive_cmds_need_lc=no
8826
      hardcode_shlibpath_var=no
8827
      runpath_var='LD_RUN_PATH'
8828
 
8829
      if test "$GCC" = yes; then
8830
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8831
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8832
      else
8833
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8835
      fi
8836
      ;;
8837
 
8838
    sysv5* | sco3.2v5* | sco5v6*)
8839
      # Note: We can NOT use -z defs as we might desire, because we do not
8840
      # link with -lc, and that would cause any symbols used from libc to
8841
      # always be unresolved, which means just about no library would
8842
      # ever link correctly.  If we're not using GNU ld we use -z text
8843
      # though, which does catch some bad symbols but isn't as heavy-handed
8844
      # as -z defs.
8845
      no_undefined_flag='${wl}-z,text'
8846
      allow_undefined_flag='${wl}-z,nodefs'
8847
      archive_cmds_need_lc=no
8848
      hardcode_shlibpath_var=no
8849
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8850
      hardcode_libdir_separator=':'
8851
      link_all_deplibs=yes
8852
      export_dynamic_flag_spec='${wl}-Bexport'
8853
      runpath_var='LD_RUN_PATH'
8854
 
8855
      if test "$GCC" = yes; then
8856
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858
      else
8859
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8861
      fi
8862
      ;;
8863
 
8864
    uts4*)
8865
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866
      hardcode_libdir_flag_spec='-L$libdir'
8867
      hardcode_shlibpath_var=no
8868
      ;;
8869
 
8870
    *)
8871
      ld_shlibs=no
8872
      ;;
8873
    esac
8874
 
8875
    if test x$host_vendor = xsni; then
8876
      case $host in
8877
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8878
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8879
        ;;
8880
      esac
8881
    fi
8882
  fi
8883
 
8884 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8885 90 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8886
test "$ld_shlibs" = no && can_build_shared=no
8887
 
8888
with_gnu_ld=$with_gnu_ld
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
 
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
 
8904
#
8905
# Do we need to explicitly link libc?
8906
#
8907
case "x$archive_cmds_need_lc" in
8908
x|xyes)
8909
  # Assume -lc should be added
8910
  archive_cmds_need_lc=yes
8911
 
8912
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8913
    case $archive_cmds in
8914
    *'~'*)
8915
      # FIXME: we may have to deal with multi-command sequences.
8916
      ;;
8917
    '$CC '*)
8918
      # Test whether the compiler implicitly links with -lc since on some
8919
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8920
      # to ld, don't add -lc before -lgcc.
8921 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8922 90 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8923 784 jeremybenn
if ${lt_cv_archive_cmds_need_lc+:} false; then :
8924
  $as_echo_n "(cached) " >&6
8925
else
8926
  $RM conftest*
8927
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8928 90 jeremybenn
 
8929 784 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8930 90 jeremybenn
  (eval $ac_compile) 2>&5
8931
  ac_status=$?
8932 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8933
  test $ac_status = 0; } 2>conftest.err; then
8934 784 jeremybenn
          soname=conftest
8935
          lib=conftest
8936
          libobjs=conftest.$ac_objext
8937
          deplibs=
8938
          wl=$lt_prog_compiler_wl
8939
          pic_flag=$lt_prog_compiler_pic
8940
          compiler_flags=-v
8941
          linker_flags=-v
8942
          verstring=
8943
          output_objdir=.
8944
          libname=conftest
8945
          lt_save_allow_undefined_flag=$allow_undefined_flag
8946
          allow_undefined_flag=
8947
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8948 90 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8949
  ac_status=$?
8950 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8951
  test $ac_status = 0; }
8952 784 jeremybenn
          then
8953
            lt_cv_archive_cmds_need_lc=no
8954
          else
8955
            lt_cv_archive_cmds_need_lc=yes
8956
          fi
8957
          allow_undefined_flag=$lt_save_allow_undefined_flag
8958
        else
8959
          cat conftest.err 1>&5
8960
        fi
8961
        $RM conftest*
8962
 
8963
fi
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8965
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8966
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8967 90 jeremybenn
      ;;
8968
    esac
8969
  fi
8970
  ;;
8971
esac
8972
 
8973
 
8974
 
8975
 
8976
 
8977
 
8978
 
8979
 
8980
 
8981
 
8982
 
8983
 
8984
 
8985
 
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
 
8993
 
8994
 
8995
 
8996
 
8997
 
8998
 
8999
 
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012
 
9013
 
9014
 
9015
 
9016
 
9017
 
9018
 
9019
 
9020
 
9021
 
9022
 
9023
 
9024
 
9025
 
9026
 
9027
 
9028
 
9029
 
9030
 
9031
 
9032
 
9033
 
9034
 
9035
 
9036
 
9037
 
9038
 
9039
 
9040
 
9041
 
9042
 
9043
 
9044
 
9045
 
9046
 
9047
 
9048
 
9049
 
9050
 
9051
 
9052
 
9053
 
9054
 
9055
 
9056
 
9057
 
9058
 
9059
 
9060
 
9061
 
9062
 
9063
 
9064
 
9065
 
9066
 
9067
 
9068
 
9069
 
9070
 
9071
 
9072
 
9073
 
9074
 
9075
 
9076
 
9077
 
9078
 
9079
 
9080
 
9081
 
9082
 
9083
 
9084
 
9085
 
9086
 
9087
 
9088
 
9089
 
9090
 
9091
 
9092
 
9093
 
9094
 
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 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9130 90 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9131
 
9132
if test "$GCC" = yes; then
9133
  case $host_os in
9134
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9135
    *) lt_awk_arg="/^libraries:/" ;;
9136
  esac
9137 784 jeremybenn
  case $host_os in
9138
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9139
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9140
  esac
9141
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9142
  case $lt_search_path_spec in
9143
  *\;*)
9144 90 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9145
    # otherwise default to the standard path separator (i.e. ":") - it is
9146
    # assumed that no part of a normal pathname contains ";" but that should
9147
    # okay in the real world where ";" in dirpaths is itself problematic.
9148 784 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9149
    ;;
9150
  *)
9151
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9152
    ;;
9153
  esac
9154 90 jeremybenn
  # Ok, now we have the path, separated by spaces, we can step through it
9155
  # and add multilib dir if necessary.
9156
  lt_tmp_lt_search_path_spec=
9157
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9158
  for lt_sys_path in $lt_search_path_spec; do
9159
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9160
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9161
    else
9162
      test -d "$lt_sys_path" && \
9163
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9164
    fi
9165
  done
9166 784 jeremybenn
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9167 90 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9168
  lt_foo="";
9169
  lt_count=0;
9170
  for (lt_i = NF; lt_i > 0; lt_i--) {
9171
    if ($lt_i != "" && $lt_i != ".") {
9172
      if ($lt_i == "..") {
9173
        lt_count++;
9174
      } else {
9175
        if (lt_count == 0) {
9176
          lt_foo="/" $lt_i lt_foo;
9177
        } else {
9178
          lt_count--;
9179
        }
9180
      }
9181
    }
9182
  }
9183
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9184
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9185
}'`
9186 784 jeremybenn
  # AWK program above erroneously prepends '/' to C:/dos/paths
9187
  # for these hosts.
9188
  case $host_os in
9189
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9190
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9191
  esac
9192
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9193 90 jeremybenn
else
9194
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9195
fi
9196
library_names_spec=
9197
libname_spec='lib$name'
9198
soname_spec=
9199
shrext_cmds=".so"
9200
postinstall_cmds=
9201
postuninstall_cmds=
9202
finish_cmds=
9203
finish_eval=
9204
shlibpath_var=
9205
shlibpath_overrides_runpath=unknown
9206
version_type=none
9207
dynamic_linker="$host_os ld.so"
9208
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9209
need_lib_prefix=unknown
9210
hardcode_into_libs=no
9211
 
9212
# when you set need_version to no, make sure it does not cause -set_version
9213
# flags to be left without arguments
9214
need_version=unknown
9215
 
9216
case $host_os in
9217
aix3*)
9218
  version_type=linux
9219
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9220
  shlibpath_var=LIBPATH
9221
 
9222
  # AIX 3 has no versioning support, so we append a major version to the name.
9223
  soname_spec='${libname}${release}${shared_ext}$major'
9224
  ;;
9225
 
9226
aix[4-9]*)
9227
  version_type=linux
9228
  need_lib_prefix=no
9229
  need_version=no
9230
  hardcode_into_libs=yes
9231
  if test "$host_cpu" = ia64; then
9232
    # AIX 5 supports IA64
9233
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9234
    shlibpath_var=LD_LIBRARY_PATH
9235
  else
9236
    # With GCC up to 2.95.x, collect2 would create an import file
9237
    # for dependence libraries.  The import file would start with
9238
    # the line `#! .'.  This would cause the generated library to
9239
    # depend on `.', always an invalid library.  This was fixed in
9240
    # development snapshots of GCC prior to 3.0.
9241
    case $host_os in
9242
      aix4 | aix4.[01] | aix4.[01].*)
9243
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9244
           echo ' yes '
9245
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9246
        :
9247
      else
9248
        can_build_shared=no
9249
      fi
9250
      ;;
9251
    esac
9252
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9253
    # soname into executable. Probably we can add versioning support to
9254
    # collect2, so additional links can be useful in future.
9255
    if test "$aix_use_runtimelinking" = yes; then
9256
      # If using run time linking (on AIX 4.2 or later) use lib.so
9257
      # instead of lib.a to let people know that these are not
9258
      # typical AIX shared libraries.
9259
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260
    else
9261
      # We preserve .a as extension for shared libraries through AIX4.2
9262
      # and later when we are not doing run time linking.
9263
      library_names_spec='${libname}${release}.a $libname.a'
9264
      soname_spec='${libname}${release}${shared_ext}$major'
9265
    fi
9266
    shlibpath_var=LIBPATH
9267
  fi
9268
  ;;
9269
 
9270
amigaos*)
9271
  case $host_cpu in
9272
  powerpc)
9273
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9274
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9275
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276
    ;;
9277
  m68k)
9278
    library_names_spec='$libname.ixlibrary $libname.a'
9279
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9280 784 jeremybenn
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9281 90 jeremybenn
    ;;
9282
  esac
9283
  ;;
9284
 
9285
beos*)
9286
  library_names_spec='${libname}${shared_ext}'
9287
  dynamic_linker="$host_os ld.so"
9288
  shlibpath_var=LIBRARY_PATH
9289
  ;;
9290
 
9291
bsdi[45]*)
9292
  version_type=linux
9293
  need_version=no
9294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295
  soname_spec='${libname}${release}${shared_ext}$major'
9296
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9297
  shlibpath_var=LD_LIBRARY_PATH
9298
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9299
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9300
  # the default ld.so.conf also contains /usr/contrib/lib and
9301
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9302
  # libtool to hard-code these into programs
9303
  ;;
9304
 
9305
cygwin* | mingw* | pw32* | cegcc*)
9306
  version_type=windows
9307
  shrext_cmds=".dll"
9308
  need_version=no
9309
  need_lib_prefix=no
9310
 
9311 784 jeremybenn
  case $GCC,$cc_basename in
9312
  yes,*)
9313
    # gcc
9314 90 jeremybenn
    library_names_spec='$libname.dll.a'
9315
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9316
    postinstall_cmds='base_file=`basename \${file}`~
9317
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9318
      dldir=$destdir/`dirname \$dlpath`~
9319
      test -d \$dldir || mkdir -p \$dldir~
9320
      $install_prog $dir/$dlname \$dldir/$dlname~
9321
      chmod a+x \$dldir/$dlname~
9322
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9323
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9324
      fi'
9325
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9326
      dlpath=$dir/\$dldll~
9327
       $RM \$dlpath'
9328
    shlibpath_overrides_runpath=yes
9329
 
9330
    case $host_os in
9331
    cygwin*)
9332
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9333
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9334 784 jeremybenn
 
9335
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9336 90 jeremybenn
      ;;
9337
    mingw* | cegcc*)
9338
      # MinGW DLLs use traditional 'lib' prefix
9339
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340
      ;;
9341
    pw32*)
9342
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9343
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9344
      ;;
9345
    esac
9346 784 jeremybenn
    dynamic_linker='Win32 ld.exe'
9347 90 jeremybenn
    ;;
9348
 
9349 784 jeremybenn
  *,cl*)
9350
    # Native MSVC
9351
    libname_spec='$name'
9352
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9353
    library_names_spec='${libname}.dll.lib'
9354
 
9355
    case $build_os in
9356
    mingw*)
9357
      sys_lib_search_path_spec=
9358
      lt_save_ifs=$IFS
9359
      IFS=';'
9360
      for lt_path in $LIB
9361
      do
9362
        IFS=$lt_save_ifs
9363
        # Let DOS variable expansion print the short 8.3 style file name.
9364
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9365
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9366
      done
9367
      IFS=$lt_save_ifs
9368
      # Convert to MSYS style.
9369
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9370
      ;;
9371
    cygwin*)
9372
      # Convert to unix form, then to dos form, then back to unix form
9373
      # but this time dos style (no spaces!) so that the unix form looks
9374
      # like /cygdrive/c/PROGRA~1:/cygdr...
9375
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9376
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9377
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9378
      ;;
9379
    *)
9380
      sys_lib_search_path_spec="$LIB"
9381
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9382
        # It is most probably a Windows format PATH.
9383
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9384
      else
9385
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9386
      fi
9387
      # FIXME: find the short name or the path components, as spaces are
9388
      # common. (e.g. "Program Files" -> "PROGRA~1")
9389
      ;;
9390
    esac
9391
 
9392
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9393
    postinstall_cmds='base_file=`basename \${file}`~
9394
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9395
      dldir=$destdir/`dirname \$dlpath`~
9396
      test -d \$dldir || mkdir -p \$dldir~
9397
      $install_prog $dir/$dlname \$dldir/$dlname'
9398
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9399
      dlpath=$dir/\$dldll~
9400
       $RM \$dlpath'
9401
    shlibpath_overrides_runpath=yes
9402
    dynamic_linker='Win32 link.exe'
9403
    ;;
9404
 
9405 90 jeremybenn
  *)
9406 784 jeremybenn
    # Assume MSVC wrapper
9407 90 jeremybenn
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9408 784 jeremybenn
    dynamic_linker='Win32 ld.exe'
9409 90 jeremybenn
    ;;
9410
  esac
9411
  # FIXME: first we should search . and the directory the executable is in
9412
  shlibpath_var=PATH
9413
  ;;
9414
 
9415
darwin* | rhapsody*)
9416
  dynamic_linker="$host_os dyld"
9417
  version_type=darwin
9418
  need_lib_prefix=no
9419
  need_version=no
9420
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9421
  soname_spec='${libname}${release}${major}$shared_ext'
9422
  shlibpath_overrides_runpath=yes
9423
  shlibpath_var=DYLD_LIBRARY_PATH
9424
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9425
 
9426
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9427
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9428
  ;;
9429
 
9430
dgux*)
9431
  version_type=linux
9432
  need_lib_prefix=no
9433
  need_version=no
9434
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9435
  soname_spec='${libname}${release}${shared_ext}$major'
9436
  shlibpath_var=LD_LIBRARY_PATH
9437
  ;;
9438
 
9439
freebsd1*)
9440
  dynamic_linker=no
9441
  ;;
9442
 
9443
freebsd* | dragonfly*)
9444
  # DragonFly does not have aout.  When/if they implement a new
9445
  # versioning mechanism, adjust this.
9446
  if test -x /usr/bin/objformat; then
9447
    objformat=`/usr/bin/objformat`
9448
  else
9449
    case $host_os in
9450
    freebsd[123]*) objformat=aout ;;
9451
    *) objformat=elf ;;
9452
    esac
9453
  fi
9454
  version_type=freebsd-$objformat
9455
  case $version_type in
9456
    freebsd-elf*)
9457
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9458
      need_version=no
9459
      need_lib_prefix=no
9460
      ;;
9461
    freebsd-*)
9462
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9463
      need_version=yes
9464
      ;;
9465
  esac
9466
  shlibpath_var=LD_LIBRARY_PATH
9467
  case $host_os in
9468
  freebsd2*)
9469
    shlibpath_overrides_runpath=yes
9470
    ;;
9471
  freebsd3.[01]* | freebsdelf3.[01]*)
9472
    shlibpath_overrides_runpath=yes
9473
    hardcode_into_libs=yes
9474
    ;;
9475
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9476
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9477
    shlibpath_overrides_runpath=no
9478
    hardcode_into_libs=yes
9479
    ;;
9480
  *) # from 4.6 on, and DragonFly
9481
    shlibpath_overrides_runpath=yes
9482
    hardcode_into_libs=yes
9483
    ;;
9484
  esac
9485
  ;;
9486
 
9487
gnu*)
9488
  version_type=linux
9489
  need_lib_prefix=no
9490
  need_version=no
9491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9492
  soname_spec='${libname}${release}${shared_ext}$major'
9493
  shlibpath_var=LD_LIBRARY_PATH
9494
  hardcode_into_libs=yes
9495
  ;;
9496
 
9497 784 jeremybenn
haiku*)
9498
  version_type=linux
9499
  need_lib_prefix=no
9500
  need_version=no
9501
  dynamic_linker="$host_os runtime_loader"
9502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9503
  soname_spec='${libname}${release}${shared_ext}$major'
9504
  shlibpath_var=LIBRARY_PATH
9505
  shlibpath_overrides_runpath=yes
9506
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9507
  hardcode_into_libs=yes
9508
  ;;
9509
 
9510 90 jeremybenn
hpux9* | hpux10* | hpux11*)
9511
  # Give a soname corresponding to the major version so that dld.sl refuses to
9512
  # link against other versions.
9513
  version_type=sunos
9514
  need_lib_prefix=no
9515
  need_version=no
9516
  case $host_cpu in
9517
  ia64*)
9518
    shrext_cmds='.so'
9519
    hardcode_into_libs=yes
9520
    dynamic_linker="$host_os dld.so"
9521
    shlibpath_var=LD_LIBRARY_PATH
9522
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524
    soname_spec='${libname}${release}${shared_ext}$major'
9525
    if test "X$HPUX_IA64_MODE" = X32; then
9526
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9527
    else
9528
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9529
    fi
9530
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9531
    ;;
9532
  hppa*64*)
9533
    shrext_cmds='.sl'
9534
    hardcode_into_libs=yes
9535
    dynamic_linker="$host_os dld.sl"
9536
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9537
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9538
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539
    soname_spec='${libname}${release}${shared_ext}$major'
9540
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9541
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9542
    ;;
9543
  *)
9544
    shrext_cmds='.sl'
9545
    dynamic_linker="$host_os dld.sl"
9546
    shlibpath_var=SHLIB_PATH
9547
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9548
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549
    soname_spec='${libname}${release}${shared_ext}$major'
9550
    ;;
9551
  esac
9552 784 jeremybenn
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9553 90 jeremybenn
  postinstall_cmds='chmod 555 $lib'
9554 784 jeremybenn
  # or fails outright, so override atomically:
9555
  install_override_mode=555
9556 90 jeremybenn
  ;;
9557
 
9558
interix[3-9]*)
9559
  version_type=linux
9560
  need_lib_prefix=no
9561
  need_version=no
9562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563
  soname_spec='${libname}${release}${shared_ext}$major'
9564
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565
  shlibpath_var=LD_LIBRARY_PATH
9566
  shlibpath_overrides_runpath=no
9567
  hardcode_into_libs=yes
9568
  ;;
9569
 
9570
irix5* | irix6* | nonstopux*)
9571
  case $host_os in
9572
    nonstopux*) version_type=nonstopux ;;
9573
    *)
9574
        if test "$lt_cv_prog_gnu_ld" = yes; then
9575
                version_type=linux
9576
        else
9577
                version_type=irix
9578
        fi ;;
9579
  esac
9580
  need_lib_prefix=no
9581
  need_version=no
9582
  soname_spec='${libname}${release}${shared_ext}$major'
9583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584
  case $host_os in
9585
  irix5* | nonstopux*)
9586
    libsuff= shlibsuff=
9587
    ;;
9588
  *)
9589
    case $LD in # libtool.m4 will add one of these switches to LD
9590
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591
      libsuff= shlibsuff= libmagic=32-bit;;
9592
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9594
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596
    *) libsuff= shlibsuff= libmagic=never-match;;
9597
    esac
9598
    ;;
9599
  esac
9600
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601
  shlibpath_overrides_runpath=no
9602
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604
  hardcode_into_libs=yes
9605
  ;;
9606
 
9607
# No shared lib support for Linux oldld, aout, or coff.
9608
linux*oldld* | linux*aout* | linux*coff*)
9609
  dynamic_linker=no
9610
  ;;
9611
 
9612
# This must be Linux ELF.
9613 784 jeremybenn
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9614 90 jeremybenn
  version_type=linux
9615
  need_lib_prefix=no
9616
  need_version=no
9617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618
  soname_spec='${libname}${release}${shared_ext}$major'
9619
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620
  shlibpath_var=LD_LIBRARY_PATH
9621
  shlibpath_overrides_runpath=no
9622 784 jeremybenn
 
9623 90 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9624 784 jeremybenn
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9625
  $as_echo_n "(cached) " >&6
9626
else
9627
  lt_cv_shlibpath_overrides_runpath=no
9628
    save_LDFLAGS=$LDFLAGS
9629
    save_libdir=$libdir
9630
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9631
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9632
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 90 jeremybenn
/* end confdefs.h.  */
9634
 
9635
int
9636
main ()
9637
{
9638
 
9639
  ;
9640
  return 0;
9641
}
9642
_ACEOF
9643 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9644
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9645 784 jeremybenn
  lt_cv_shlibpath_overrides_runpath=yes
9646 90 jeremybenn
fi
9647
fi
9648 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9649
    conftest$ac_exeext conftest.$ac_ext
9650 784 jeremybenn
    LDFLAGS=$save_LDFLAGS
9651
    libdir=$save_libdir
9652 90 jeremybenn
 
9653 784 jeremybenn
fi
9654
 
9655
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9656
 
9657 90 jeremybenn
  # This implies no fast_install, which is unacceptable.
9658
  # Some rework will be needed to allow for fast_install
9659
  # before this can be enabled.
9660
  hardcode_into_libs=yes
9661
 
9662 784 jeremybenn
  # Add ABI-specific directories to the system library path.
9663
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9664
 
9665 90 jeremybenn
  # Append ld.so.conf contents to the search path
9666
  if test -f /etc/ld.so.conf; then
9667 784 jeremybenn
    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;s/"//g;/^$/d' | tr '\n' ' '`
9668
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9669
 
9670 90 jeremybenn
  fi
9671
 
9672
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9673
  # powerpc, because MkLinux only supported shared libraries with the
9674
  # GNU dynamic linker.  Since this was broken with cross compilers,
9675
  # most powerpc-linux boxes support dynamic linking these days and
9676
  # people can always --disable-shared, the test was removed, and we
9677
  # assume the GNU/Linux dynamic linker is in use.
9678
  dynamic_linker='GNU/Linux ld.so'
9679
  ;;
9680
 
9681
netbsd*)
9682
  version_type=sunos
9683
  need_lib_prefix=no
9684
  need_version=no
9685
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9686
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9688
    dynamic_linker='NetBSD (a.out) ld.so'
9689
  else
9690
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9691
    soname_spec='${libname}${release}${shared_ext}$major'
9692
    dynamic_linker='NetBSD ld.elf_so'
9693
  fi
9694
  shlibpath_var=LD_LIBRARY_PATH
9695
  shlibpath_overrides_runpath=yes
9696
  hardcode_into_libs=yes
9697
  ;;
9698
 
9699
newsos6)
9700
  version_type=linux
9701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702
  shlibpath_var=LD_LIBRARY_PATH
9703
  shlibpath_overrides_runpath=yes
9704
  ;;
9705
 
9706
*nto* | *qnx*)
9707
  version_type=qnx
9708
  need_lib_prefix=no
9709
  need_version=no
9710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711
  soname_spec='${libname}${release}${shared_ext}$major'
9712
  shlibpath_var=LD_LIBRARY_PATH
9713
  shlibpath_overrides_runpath=no
9714
  hardcode_into_libs=yes
9715
  dynamic_linker='ldqnx.so'
9716
  ;;
9717
 
9718
openbsd*)
9719
  version_type=sunos
9720
  sys_lib_dlsearch_path_spec="/usr/lib"
9721
  need_lib_prefix=no
9722
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9723
  case $host_os in
9724
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9725
    *)                          need_version=no  ;;
9726
  esac
9727
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9728
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9729
  shlibpath_var=LD_LIBRARY_PATH
9730
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9731
    case $host_os in
9732
      openbsd2.[89] | openbsd2.[89].*)
9733
        shlibpath_overrides_runpath=no
9734
        ;;
9735
      *)
9736
        shlibpath_overrides_runpath=yes
9737
        ;;
9738
      esac
9739
  else
9740
    shlibpath_overrides_runpath=yes
9741
  fi
9742
  ;;
9743
 
9744
os2*)
9745
  libname_spec='$name'
9746
  shrext_cmds=".dll"
9747
  need_lib_prefix=no
9748
  library_names_spec='$libname${shared_ext} $libname.a'
9749
  dynamic_linker='OS/2 ld.exe'
9750
  shlibpath_var=LIBPATH
9751
  ;;
9752
 
9753
osf3* | osf4* | osf5*)
9754
  version_type=osf
9755
  need_lib_prefix=no
9756
  need_version=no
9757
  soname_spec='${libname}${release}${shared_ext}$major'
9758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759
  shlibpath_var=LD_LIBRARY_PATH
9760
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9761
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9762
  ;;
9763
 
9764
rdos*)
9765
  dynamic_linker=no
9766
  ;;
9767
 
9768
solaris*)
9769
  version_type=linux
9770
  need_lib_prefix=no
9771
  need_version=no
9772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773
  soname_spec='${libname}${release}${shared_ext}$major'
9774
  shlibpath_var=LD_LIBRARY_PATH
9775
  shlibpath_overrides_runpath=yes
9776
  hardcode_into_libs=yes
9777
  # ldd complains unless libraries are executable
9778
  postinstall_cmds='chmod +x $lib'
9779
  ;;
9780
 
9781
sunos4*)
9782
  version_type=sunos
9783
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9784
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9785
  shlibpath_var=LD_LIBRARY_PATH
9786
  shlibpath_overrides_runpath=yes
9787
  if test "$with_gnu_ld" = yes; then
9788
    need_lib_prefix=no
9789
  fi
9790
  need_version=yes
9791
  ;;
9792
 
9793
sysv4 | sysv4.3*)
9794
  version_type=linux
9795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796
  soname_spec='${libname}${release}${shared_ext}$major'
9797
  shlibpath_var=LD_LIBRARY_PATH
9798
  case $host_vendor in
9799
    sni)
9800
      shlibpath_overrides_runpath=no
9801
      need_lib_prefix=no
9802
      runpath_var=LD_RUN_PATH
9803
      ;;
9804
    siemens)
9805
      need_lib_prefix=no
9806
      ;;
9807
    motorola)
9808
      need_lib_prefix=no
9809
      need_version=no
9810
      shlibpath_overrides_runpath=no
9811
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9812
      ;;
9813
  esac
9814
  ;;
9815
 
9816
sysv4*MP*)
9817
  if test -d /usr/nec ;then
9818
    version_type=linux
9819
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9820
    soname_spec='$libname${shared_ext}.$major'
9821
    shlibpath_var=LD_LIBRARY_PATH
9822
  fi
9823
  ;;
9824
 
9825
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9826
  version_type=freebsd-elf
9827
  need_lib_prefix=no
9828
  need_version=no
9829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9830
  soname_spec='${libname}${release}${shared_ext}$major'
9831
  shlibpath_var=LD_LIBRARY_PATH
9832
  shlibpath_overrides_runpath=yes
9833
  hardcode_into_libs=yes
9834
  if test "$with_gnu_ld" = yes; then
9835
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9836
  else
9837
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9838
    case $host_os in
9839
      sco3.2v5*)
9840
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9841
        ;;
9842
    esac
9843
  fi
9844
  sys_lib_dlsearch_path_spec='/usr/lib'
9845
  ;;
9846
 
9847
tpf*)
9848
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9849
  version_type=linux
9850
  need_lib_prefix=no
9851
  need_version=no
9852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853
  shlibpath_var=LD_LIBRARY_PATH
9854
  shlibpath_overrides_runpath=no
9855
  hardcode_into_libs=yes
9856
  ;;
9857
 
9858
uts4*)
9859
  version_type=linux
9860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861
  soname_spec='${libname}${release}${shared_ext}$major'
9862
  shlibpath_var=LD_LIBRARY_PATH
9863
  ;;
9864
 
9865
*)
9866
  dynamic_linker=no
9867
  ;;
9868
esac
9869 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9870 90 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9871
test "$dynamic_linker" = no && can_build_shared=no
9872
 
9873
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9874
if test "$GCC" = yes; then
9875
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9876
fi
9877
 
9878
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9879
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9880
fi
9881
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9882
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9883
fi
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
 
9907
 
9908
 
9909
 
9910
 
9911
 
9912
 
9913
 
9914
 
9915
 
9916
 
9917
 
9918
 
9919
 
9920
 
9921
 
9922
 
9923
 
9924
 
9925
 
9926
 
9927
 
9928
 
9929
 
9930
 
9931
 
9932
 
9933
 
9934
 
9935
 
9936
 
9937
 
9938
 
9939
 
9940
 
9941
 
9942
 
9943
 
9944
 
9945
 
9946
 
9947
 
9948
 
9949
 
9950
 
9951
 
9952
 
9953
 
9954
 
9955
 
9956
 
9957
 
9958
 
9959
 
9960
 
9961
 
9962
 
9963
 
9964
 
9965
 
9966
 
9967
 
9968
 
9969
 
9970
 
9971 784 jeremybenn
 
9972
 
9973
 
9974
 
9975
 
9976 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9977 90 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9978
hardcode_action=
9979
if test -n "$hardcode_libdir_flag_spec" ||
9980
   test -n "$runpath_var" ||
9981
   test "X$hardcode_automatic" = "Xyes" ; then
9982
 
9983
  # We can hardcode non-existent directories.
9984
  if test "$hardcode_direct" != no &&
9985
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9986
     # have to relink, otherwise we might link with an installed library
9987
     # when we should be linking with a yet-to-be-installed one
9988
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9989
     test "$hardcode_minus_L" != no; then
9990
    # Linking always hardcodes the temporary library directory.
9991
    hardcode_action=relink
9992
  else
9993
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9994
    hardcode_action=immediate
9995
  fi
9996
else
9997
  # We cannot hardcode anything, or else we can only hardcode existing
9998
  # directories.
9999
  hardcode_action=unsupported
10000
fi
10001 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10002 90 jeremybenn
$as_echo "$hardcode_action" >&6; }
10003
 
10004
if test "$hardcode_action" = relink ||
10005
   test "$inherit_rpath" = yes; then
10006
  # Fast installation is not supported
10007
  enable_fast_install=no
10008
elif test "$shlibpath_overrides_runpath" = yes ||
10009
     test "$enable_shared" = no; then
10010
  # Fast installation is not necessary
10011
  enable_fast_install=needless
10012
fi
10013
 
10014
 
10015
 
10016
 
10017
 
10018
 
10019
  if test "x$enable_dlopen" != xyes; then
10020
  enable_dlopen=unknown
10021
  enable_dlopen_self=unknown
10022
  enable_dlopen_self_static=unknown
10023
else
10024
  lt_cv_dlopen=no
10025
  lt_cv_dlopen_libs=
10026
 
10027
  case $host_os in
10028
  beos*)
10029
    lt_cv_dlopen="load_add_on"
10030
    lt_cv_dlopen_libs=
10031
    lt_cv_dlopen_self=yes
10032
    ;;
10033
 
10034
  mingw* | pw32* | cegcc*)
10035
    lt_cv_dlopen="LoadLibrary"
10036
    lt_cv_dlopen_libs=
10037
    ;;
10038
 
10039
  cygwin*)
10040
    lt_cv_dlopen="dlopen"
10041
    lt_cv_dlopen_libs=
10042
    ;;
10043
 
10044
  darwin*)
10045
  # if libdl is installed we need to link against it
10046 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10047 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10048 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
10049 90 jeremybenn
  $as_echo_n "(cached) " >&6
10050
else
10051
  ac_check_lib_save_LIBS=$LIBS
10052
LIBS="-ldl  $LIBS"
10053 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 90 jeremybenn
/* end confdefs.h.  */
10055
 
10056
/* Override any GCC internal prototype to avoid an error.
10057
   Use char because int might match the return type of a GCC
10058
   builtin and then its argument prototype would still apply.  */
10059
#ifdef __cplusplus
10060
extern "C"
10061
#endif
10062
char dlopen ();
10063
int
10064
main ()
10065
{
10066
return dlopen ();
10067
  ;
10068
  return 0;
10069
}
10070
_ACEOF
10071 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10072 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10073
else
10074 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
10075 90 jeremybenn
fi
10076 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10077
    conftest$ac_exeext conftest.$ac_ext
10078 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10079
fi
10080 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10081 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10082 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10083 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10084
else
10085
 
10086
    lt_cv_dlopen="dyld"
10087
    lt_cv_dlopen_libs=
10088
    lt_cv_dlopen_self=yes
10089
 
10090
fi
10091
 
10092
    ;;
10093
 
10094
  *)
10095 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10096 625 jeremybenn
if test "x$ac_cv_func_shl_load" = xyes; then :
10097 90 jeremybenn
  lt_cv_dlopen="shl_load"
10098
else
10099 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10100 90 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10101 625 jeremybenn
if ${ac_cv_lib_dld_shl_load+:} false; then :
10102 90 jeremybenn
  $as_echo_n "(cached) " >&6
10103
else
10104
  ac_check_lib_save_LIBS=$LIBS
10105
LIBS="-ldld  $LIBS"
10106 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 90 jeremybenn
/* end confdefs.h.  */
10108
 
10109
/* Override any GCC internal prototype to avoid an error.
10110
   Use char because int might match the return type of a GCC
10111
   builtin and then its argument prototype would still apply.  */
10112
#ifdef __cplusplus
10113
extern "C"
10114
#endif
10115
char shl_load ();
10116
int
10117
main ()
10118
{
10119
return shl_load ();
10120
  ;
10121
  return 0;
10122
}
10123
_ACEOF
10124 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10125 90 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10126
else
10127 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
10128 90 jeremybenn
fi
10129 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10130
    conftest$ac_exeext conftest.$ac_ext
10131 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10132
fi
10133 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10134 90 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10135 625 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10136 90 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10137
else
10138 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10139 625 jeremybenn
if test "x$ac_cv_func_dlopen" = xyes; then :
10140 90 jeremybenn
  lt_cv_dlopen="dlopen"
10141
else
10142 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10143 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10144 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
10145 90 jeremybenn
  $as_echo_n "(cached) " >&6
10146
else
10147
  ac_check_lib_save_LIBS=$LIBS
10148
LIBS="-ldl  $LIBS"
10149 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 90 jeremybenn
/* end confdefs.h.  */
10151
 
10152
/* Override any GCC internal prototype to avoid an error.
10153
   Use char because int might match the return type of a GCC
10154
   builtin and then its argument prototype would still apply.  */
10155
#ifdef __cplusplus
10156
extern "C"
10157
#endif
10158
char dlopen ();
10159
int
10160
main ()
10161
{
10162
return dlopen ();
10163
  ;
10164
  return 0;
10165
}
10166
_ACEOF
10167 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10168 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10169
else
10170 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
10171 90 jeremybenn
fi
10172 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10173
    conftest$ac_exeext conftest.$ac_ext
10174 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10175
fi
10176 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10177 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10178 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10179 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10180
else
10181 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10182 90 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10183 625 jeremybenn
if ${ac_cv_lib_svld_dlopen+:} false; then :
10184 90 jeremybenn
  $as_echo_n "(cached) " >&6
10185
else
10186
  ac_check_lib_save_LIBS=$LIBS
10187
LIBS="-lsvld  $LIBS"
10188 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 90 jeremybenn
/* end confdefs.h.  */
10190
 
10191
/* Override any GCC internal prototype to avoid an error.
10192
   Use char because int might match the return type of a GCC
10193
   builtin and then its argument prototype would still apply.  */
10194
#ifdef __cplusplus
10195
extern "C"
10196
#endif
10197
char dlopen ();
10198
int
10199
main ()
10200
{
10201
return dlopen ();
10202
  ;
10203
  return 0;
10204
}
10205
_ACEOF
10206 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10207 90 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10208
else
10209 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
10210 90 jeremybenn
fi
10211 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10212
    conftest$ac_exeext conftest.$ac_ext
10213 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10214
fi
10215 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10216 90 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10217 625 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10218 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10219
else
10220 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10221 90 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10222 625 jeremybenn
if ${ac_cv_lib_dld_dld_link+:} false; then :
10223 90 jeremybenn
  $as_echo_n "(cached) " >&6
10224
else
10225
  ac_check_lib_save_LIBS=$LIBS
10226
LIBS="-ldld  $LIBS"
10227 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 90 jeremybenn
/* end confdefs.h.  */
10229
 
10230
/* Override any GCC internal prototype to avoid an error.
10231
   Use char because int might match the return type of a GCC
10232
   builtin and then its argument prototype would still apply.  */
10233
#ifdef __cplusplus
10234
extern "C"
10235
#endif
10236
char dld_link ();
10237
int
10238
main ()
10239
{
10240
return dld_link ();
10241
  ;
10242
  return 0;
10243
}
10244
_ACEOF
10245 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
10246 90 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10247
else
10248 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
10249 90 jeremybenn
fi
10250 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
10251
    conftest$ac_exeext conftest.$ac_ext
10252 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10253
fi
10254 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10255 90 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10256 625 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10257 90 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10258
fi
10259
 
10260
 
10261
fi
10262
 
10263
 
10264
fi
10265
 
10266
 
10267
fi
10268
 
10269
 
10270
fi
10271
 
10272
 
10273
fi
10274
 
10275
    ;;
10276
  esac
10277
 
10278
  if test "x$lt_cv_dlopen" != xno; then
10279
    enable_dlopen=yes
10280
  else
10281
    enable_dlopen=no
10282
  fi
10283
 
10284
  case $lt_cv_dlopen in
10285
  dlopen)
10286
    save_CPPFLAGS="$CPPFLAGS"
10287
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10288
 
10289
    save_LDFLAGS="$LDFLAGS"
10290
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10291
 
10292
    save_LIBS="$LIBS"
10293
    LIBS="$lt_cv_dlopen_libs $LIBS"
10294
 
10295 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10296 90 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10297 625 jeremybenn
if ${lt_cv_dlopen_self+:} false; then :
10298 90 jeremybenn
  $as_echo_n "(cached) " >&6
10299
else
10300
          if test "$cross_compiling" = yes; then :
10301
  lt_cv_dlopen_self=cross
10302
else
10303
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10304
  lt_status=$lt_dlunknown
10305
  cat > conftest.$ac_ext <<_LT_EOF
10306 784 jeremybenn
#line $LINENO "configure"
10307 90 jeremybenn
#include "confdefs.h"
10308
 
10309
#if HAVE_DLFCN_H
10310
#include 
10311
#endif
10312
 
10313
#include 
10314
 
10315
#ifdef RTLD_GLOBAL
10316
#  define LT_DLGLOBAL           RTLD_GLOBAL
10317
#else
10318
#  ifdef DL_GLOBAL
10319
#    define LT_DLGLOBAL         DL_GLOBAL
10320
#  else
10321
#    define LT_DLGLOBAL         0
10322
#  endif
10323
#endif
10324
 
10325
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10326
   find out it does not work in some platform. */
10327
#ifndef LT_DLLAZY_OR_NOW
10328
#  ifdef RTLD_LAZY
10329
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10330
#  else
10331
#    ifdef DL_LAZY
10332
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10333
#    else
10334
#      ifdef RTLD_NOW
10335
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10336
#      else
10337
#        ifdef DL_NOW
10338
#          define LT_DLLAZY_OR_NOW      DL_NOW
10339
#        else
10340
#          define LT_DLLAZY_OR_NOW      0
10341
#        endif
10342
#      endif
10343
#    endif
10344
#  endif
10345
#endif
10346
 
10347 784 jeremybenn
/* When -fvisbility=hidden is used, assume the code has been annotated
10348
   correspondingly for the symbols needed.  */
10349
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10350
int fnord () __attribute__((visibility("default")));
10351
#endif
10352
 
10353
int fnord () { return 42; }
10354 90 jeremybenn
int main ()
10355
{
10356
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10357
  int status = $lt_dlunknown;
10358
 
10359
  if (self)
10360
    {
10361
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10362 784 jeremybenn
      else
10363
        {
10364
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10365
          else puts (dlerror ());
10366
        }
10367 90 jeremybenn
      /* dlclose (self); */
10368
    }
10369
  else
10370
    puts (dlerror ());
10371
 
10372
  return status;
10373
}
10374
_LT_EOF
10375 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10376 90 jeremybenn
  (eval $ac_link) 2>&5
10377
  ac_status=$?
10378 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10380 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10381
    lt_status=$?
10382
    case x$lt_status in
10383
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10384
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10385
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386
    esac
10387
  else :
10388
    # compilation failed
10389
    lt_cv_dlopen_self=no
10390
  fi
10391
fi
10392
rm -fr conftest*
10393
 
10394
 
10395
fi
10396 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10397 90 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10398
 
10399
    if test "x$lt_cv_dlopen_self" = xyes; then
10400
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10401 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10402 90 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10403 625 jeremybenn
if ${lt_cv_dlopen_self_static+:} false; then :
10404 90 jeremybenn
  $as_echo_n "(cached) " >&6
10405
else
10406
          if test "$cross_compiling" = yes; then :
10407
  lt_cv_dlopen_self_static=cross
10408
else
10409
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410
  lt_status=$lt_dlunknown
10411
  cat > conftest.$ac_ext <<_LT_EOF
10412 784 jeremybenn
#line $LINENO "configure"
10413 90 jeremybenn
#include "confdefs.h"
10414
 
10415
#if HAVE_DLFCN_H
10416
#include 
10417
#endif
10418
 
10419
#include 
10420
 
10421
#ifdef RTLD_GLOBAL
10422
#  define LT_DLGLOBAL           RTLD_GLOBAL
10423
#else
10424
#  ifdef DL_GLOBAL
10425
#    define LT_DLGLOBAL         DL_GLOBAL
10426
#  else
10427
#    define LT_DLGLOBAL         0
10428
#  endif
10429
#endif
10430
 
10431
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432
   find out it does not work in some platform. */
10433
#ifndef LT_DLLAZY_OR_NOW
10434
#  ifdef RTLD_LAZY
10435
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10436
#  else
10437
#    ifdef DL_LAZY
10438
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10439
#    else
10440
#      ifdef RTLD_NOW
10441
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10442
#      else
10443
#        ifdef DL_NOW
10444
#          define LT_DLLAZY_OR_NOW      DL_NOW
10445
#        else
10446
#          define LT_DLLAZY_OR_NOW      0
10447
#        endif
10448
#      endif
10449
#    endif
10450
#  endif
10451
#endif
10452
 
10453 784 jeremybenn
/* When -fvisbility=hidden is used, assume the code has been annotated
10454
   correspondingly for the symbols needed.  */
10455
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10456
int fnord () __attribute__((visibility("default")));
10457
#endif
10458
 
10459
int fnord () { return 42; }
10460 90 jeremybenn
int main ()
10461
{
10462
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10463
  int status = $lt_dlunknown;
10464
 
10465
  if (self)
10466
    {
10467
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10468 784 jeremybenn
      else
10469
        {
10470
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10471
          else puts (dlerror ());
10472
        }
10473 90 jeremybenn
      /* dlclose (self); */
10474
    }
10475
  else
10476
    puts (dlerror ());
10477
 
10478
  return status;
10479
}
10480
_LT_EOF
10481 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10482 90 jeremybenn
  (eval $ac_link) 2>&5
10483
  ac_status=$?
10484 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10486 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10487
    lt_status=$?
10488
    case x$lt_status in
10489
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10490
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10491
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10492
    esac
10493
  else :
10494
    # compilation failed
10495
    lt_cv_dlopen_self_static=no
10496
  fi
10497
fi
10498
rm -fr conftest*
10499
 
10500
 
10501
fi
10502 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10503 90 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10504
    fi
10505
 
10506
    CPPFLAGS="$save_CPPFLAGS"
10507
    LDFLAGS="$save_LDFLAGS"
10508
    LIBS="$save_LIBS"
10509
    ;;
10510
  esac
10511
 
10512
  case $lt_cv_dlopen_self in
10513
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10514
  *) enable_dlopen_self=unknown ;;
10515
  esac
10516
 
10517
  case $lt_cv_dlopen_self_static in
10518
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10519
  *) enable_dlopen_self_static=unknown ;;
10520
  esac
10521
fi
10522
 
10523
 
10524
 
10525
 
10526
 
10527
 
10528
 
10529
 
10530
 
10531
 
10532
 
10533
 
10534
 
10535
 
10536
 
10537
 
10538
 
10539
striplib=
10540
old_striplib=
10541 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10542 90 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10543
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10544
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10545
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10546 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547 90 jeremybenn
$as_echo "yes" >&6; }
10548
else
10549
# FIXME - insert some real tests, host_os isn't really good enough
10550
  case $host_os in
10551
  darwin*)
10552
    if test -n "$STRIP" ; then
10553
      striplib="$STRIP -x"
10554
      old_striplib="$STRIP -S"
10555 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10556 90 jeremybenn
$as_echo "yes" >&6; }
10557
    else
10558 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 90 jeremybenn
$as_echo "no" >&6; }
10560
    fi
10561
    ;;
10562
  *)
10563 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 90 jeremybenn
$as_echo "no" >&6; }
10565
    ;;
10566
  esac
10567
fi
10568
 
10569
 
10570
 
10571
 
10572
 
10573
 
10574
 
10575
 
10576
 
10577
 
10578
 
10579
 
10580
  # Report which library types will actually be built
10581 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10582 90 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10583 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10584 90 jeremybenn
$as_echo "$can_build_shared" >&6; }
10585
 
10586 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10587 90 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10588
  test "$can_build_shared" = "no" && enable_shared=no
10589
 
10590
  # On AIX, shared libraries and static libraries use the same namespace, and
10591
  # are all built from PIC.
10592
  case $host_os in
10593
  aix3*)
10594
    test "$enable_shared" = yes && enable_static=no
10595
    if test -n "$RANLIB"; then
10596
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10597
      postinstall_cmds='$RANLIB $lib'
10598
    fi
10599
    ;;
10600
 
10601
  aix[4-9]*)
10602
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10603
      test "$enable_shared" = yes && enable_static=no
10604
    fi
10605
    ;;
10606
  esac
10607 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10608 90 jeremybenn
$as_echo "$enable_shared" >&6; }
10609
 
10610 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10611 90 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10612
  # Make sure either enable_shared or enable_static is yes.
10613
  test "$enable_shared" = yes || enable_static=yes
10614 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10615 90 jeremybenn
$as_echo "$enable_static" >&6; }
10616
 
10617
 
10618
 
10619
 
10620
fi
10621
ac_ext=c
10622
ac_cpp='$CPP $CPPFLAGS'
10623
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626
 
10627
CC="$lt_save_CC"
10628
 
10629
 
10630
 
10631
 
10632
 
10633
 
10634
 
10635
 
10636
 
10637
 
10638
 
10639
 
10640
 
10641
        ac_config_commands="$ac_config_commands libtool"
10642
 
10643
 
10644
 
10645
 
10646
# Only expand once:
10647
 
10648
 
10649
am__api_version='1.11'
10650
 
10651
# Find a good install program.  We prefer a C program (faster),
10652
# so one script is as good as another.  But avoid the broken or
10653
# incompatible versions:
10654
# SysV /etc/install, /usr/sbin/install
10655
# SunOS /usr/etc/install
10656
# IRIX /sbin/install
10657
# AIX /bin/install
10658
# AmigaOS /C/install, which installs bootblocks on floppy discs
10659
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10660
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10661
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10662
# OS/2's system install, which has a completely different semantic
10663
# ./install, which can be erroneously created by make from ./install.sh.
10664
# Reject install programs that cannot install multiple files.
10665 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10666 90 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10667
if test -z "$INSTALL"; then
10668 625 jeremybenn
if ${ac_cv_path_install+:} false; then :
10669 90 jeremybenn
  $as_echo_n "(cached) " >&6
10670
else
10671
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672
for as_dir in $PATH
10673
do
10674
  IFS=$as_save_IFS
10675
  test -z "$as_dir" && as_dir=.
10676 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10677
case $as_dir/ in #((
10678
  ./ | .// | /[cC]/* | \
10679 90 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10680 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10681 90 jeremybenn
  /usr/ucb/* ) ;;
10682
  *)
10683
    # OSF1 and SCO ODT 3.0 have their own names for install.
10684
    # Don't use installbsd from OSF since it installs stuff as root
10685
    # by default.
10686
    for ac_prog in ginstall scoinst install; do
10687
      for ac_exec_ext in '' $ac_executable_extensions; do
10688
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10689
          if test $ac_prog = install &&
10690
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10691
            # AIX install.  It has an incompatible calling convention.
10692
            :
10693
          elif test $ac_prog = install &&
10694
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10695
            # program-specific install script used by HP pwplus--don't use.
10696
            :
10697
          else
10698
            rm -rf conftest.one conftest.two conftest.dir
10699
            echo one > conftest.one
10700
            echo two > conftest.two
10701
            mkdir conftest.dir
10702
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10703
              test -s conftest.one && test -s conftest.two &&
10704
              test -s conftest.dir/conftest.one &&
10705
              test -s conftest.dir/conftest.two
10706
            then
10707
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10708
              break 3
10709
            fi
10710
          fi
10711
        fi
10712
      done
10713
    done
10714
    ;;
10715
esac
10716
 
10717 346 jeremybenn
  done
10718 90 jeremybenn
IFS=$as_save_IFS
10719
 
10720
rm -rf conftest.one conftest.two conftest.dir
10721
 
10722
fi
10723
  if test "${ac_cv_path_install+set}" = set; then
10724
    INSTALL=$ac_cv_path_install
10725
  else
10726
    # As a last resort, use the slow shell script.  Don't cache a
10727
    # value for INSTALL within a source directory, because that will
10728
    # break other packages using the cache if that directory is
10729
    # removed, or if the value is a relative name.
10730
    INSTALL=$ac_install_sh
10731
  fi
10732
fi
10733 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10734 90 jeremybenn
$as_echo "$INSTALL" >&6; }
10735
 
10736
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10737
# It thinks the first close brace ends the variable substitution.
10738
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10739
 
10740
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10741
 
10742
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10743
 
10744 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10745 90 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10746
# Just in case
10747
sleep 1
10748
echo timestamp > conftest.file
10749
# Reject unsafe characters in $srcdir or the absolute working directory
10750
# name.  Accept space and tab only in the latter.
10751
am_lf='
10752
'
10753
case `pwd` in
10754
  *[\\\"\#\$\&\'\`$am_lf]*)
10755 625 jeremybenn
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10756 90 jeremybenn
esac
10757
case $srcdir in
10758
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10759 625 jeremybenn
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10760 90 jeremybenn
esac
10761
 
10762
# Do `set' in a subshell so we don't clobber the current shell's
10763
# arguments.  Must try -L first in case configure is actually a
10764
# symlink; some systems play weird games with the mod time of symlinks
10765
# (eg FreeBSD returns the mod time of the symlink's containing
10766
# directory).
10767
if (
10768
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10769
   if test "$*" = "X"; then
10770
      # -L didn't work.
10771
      set X `ls -t "$srcdir/configure" conftest.file`
10772
   fi
10773
   rm -f conftest.file
10774
   if test "$*" != "X $srcdir/configure conftest.file" \
10775
      && test "$*" != "X conftest.file $srcdir/configure"; then
10776
 
10777
      # If neither matched, then we have a broken ls.  This can happen
10778
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10779
      # broken ls alias from the environment.  This has actually
10780
      # happened.  Such a system could not be considered "sane".
10781 625 jeremybenn
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10782 346 jeremybenn
alias in your environment" "$LINENO" 5
10783 90 jeremybenn
   fi
10784
 
10785
   test "$2" = conftest.file
10786
   )
10787
then
10788
   # Ok.
10789
   :
10790
else
10791 625 jeremybenn
   as_fn_error $? "newly created file is older than distributed files!
10792 346 jeremybenn
Check your system clock" "$LINENO" 5
10793 90 jeremybenn
fi
10794 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 90 jeremybenn
$as_echo "yes" >&6; }
10796
test "$program_prefix" != NONE &&
10797
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10798
# Use a double $ so make ignores it.
10799
test "$program_suffix" != NONE &&
10800
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10801
# Double any \ or $.
10802
# By default was `s,x,x', remove it if useless.
10803
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10804
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10805
 
10806
# expand $ac_aux_dir to an absolute path
10807
am_aux_dir=`cd $ac_aux_dir && pwd`
10808
 
10809
if test x"${MISSING+set}" != xset; then
10810
  case $am_aux_dir in
10811
  *\ * | *\     *)
10812
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10813
  *)
10814
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10815
  esac
10816
fi
10817
# Use eval to expand $SHELL
10818
if eval "$MISSING --run true"; then
10819
  am_missing_run="$MISSING --run "
10820
else
10821
  am_missing_run=
10822 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10823 90 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10824
fi
10825
 
10826
if test x"${install_sh}" != xset; then
10827
  case $am_aux_dir in
10828
  *\ * | *\     *)
10829
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10830
  *)
10831
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10832
  esac
10833
fi
10834
 
10835
# Installed binaries are usually stripped using `strip' when the user
10836
# run `make install-strip'.  However `strip' might not be the right
10837
# tool to use in cross-compilation environments, therefore Automake
10838
# will honor the `STRIP' environment variable to overrule this program.
10839
if test "$cross_compiling" != no; then
10840
  if test -n "$ac_tool_prefix"; then
10841
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10842
set dummy ${ac_tool_prefix}strip; ac_word=$2
10843 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10845 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
10846 90 jeremybenn
  $as_echo_n "(cached) " >&6
10847
else
10848
  if test -n "$STRIP"; then
10849
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10850
else
10851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852
for as_dir in $PATH
10853
do
10854
  IFS=$as_save_IFS
10855
  test -z "$as_dir" && as_dir=.
10856 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10857 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10859 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 90 jeremybenn
    break 2
10861
  fi
10862
done
10863 346 jeremybenn
  done
10864 90 jeremybenn
IFS=$as_save_IFS
10865
 
10866
fi
10867
fi
10868
STRIP=$ac_cv_prog_STRIP
10869
if test -n "$STRIP"; then
10870 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10871 90 jeremybenn
$as_echo "$STRIP" >&6; }
10872
else
10873 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 90 jeremybenn
$as_echo "no" >&6; }
10875
fi
10876
 
10877
 
10878
fi
10879
if test -z "$ac_cv_prog_STRIP"; then
10880
  ac_ct_STRIP=$STRIP
10881
  # Extract the first word of "strip", so it can be a program name with args.
10882
set dummy strip; ac_word=$2
10883 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10885 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10886 90 jeremybenn
  $as_echo_n "(cached) " >&6
10887
else
10888
  if test -n "$ac_ct_STRIP"; then
10889
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10890
else
10891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892
for as_dir in $PATH
10893
do
10894
  IFS=$as_save_IFS
10895
  test -z "$as_dir" && as_dir=.
10896 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10897 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898
    ac_cv_prog_ac_ct_STRIP="strip"
10899 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 90 jeremybenn
    break 2
10901
  fi
10902
done
10903 346 jeremybenn
  done
10904 90 jeremybenn
IFS=$as_save_IFS
10905
 
10906
fi
10907
fi
10908
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10909
if test -n "$ac_ct_STRIP"; then
10910 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10911 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10912
else
10913 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 90 jeremybenn
$as_echo "no" >&6; }
10915
fi
10916
 
10917
  if test "x$ac_ct_STRIP" = x; then
10918
    STRIP=":"
10919
  else
10920
    case $cross_compiling:$ac_tool_warned in
10921
yes:)
10922 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10923 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10924
ac_tool_warned=yes ;;
10925
esac
10926
    STRIP=$ac_ct_STRIP
10927
  fi
10928
else
10929
  STRIP="$ac_cv_prog_STRIP"
10930
fi
10931
 
10932
fi
10933
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10934
 
10935 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10936 90 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10937
if test -z "$MKDIR_P"; then
10938 625 jeremybenn
  if ${ac_cv_path_mkdir+:} false; then :
10939 90 jeremybenn
  $as_echo_n "(cached) " >&6
10940
else
10941
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10943
do
10944
  IFS=$as_save_IFS
10945
  test -z "$as_dir" && as_dir=.
10946 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10947 90 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10948
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10949
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10950
             'mkdir (GNU coreutils) '* | \
10951
             'mkdir (coreutils) '* | \
10952
             'mkdir (fileutils) '4.1*)
10953
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10954
               break 3;;
10955
           esac
10956
         done
10957
       done
10958 346 jeremybenn
  done
10959 90 jeremybenn
IFS=$as_save_IFS
10960
 
10961
fi
10962
 
10963 625 jeremybenn
  test -d ./--version && rmdir ./--version
10964 90 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10965
    MKDIR_P="$ac_cv_path_mkdir -p"
10966
  else
10967
    # As a last resort, use the slow shell script.  Don't cache a
10968
    # value for MKDIR_P within a source directory, because that will
10969
    # break other packages using the cache if that directory is
10970
    # removed, or if the value is a relative name.
10971
    MKDIR_P="$ac_install_sh -d"
10972
  fi
10973
fi
10974 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10975 90 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10976
 
10977
mkdir_p="$MKDIR_P"
10978
case $mkdir_p in
10979
  [\\/$]* | ?:[\\/]*) ;;
10980
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10981
esac
10982
 
10983 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10984 90 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10985
set x ${MAKE-make}
10986
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10987 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10988 90 jeremybenn
  $as_echo_n "(cached) " >&6
10989
else
10990
  cat >conftest.make <<\_ACEOF
10991
SHELL = /bin/sh
10992
all:
10993
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10994
_ACEOF
10995 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10996 90 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10997
  *@@@%%%=?*=@@@%%%*)
10998
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10999
  *)
11000
    eval ac_cv_prog_make_${ac_make}_set=no;;
11001
esac
11002
rm -f conftest.make
11003
fi
11004
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11005 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006 90 jeremybenn
$as_echo "yes" >&6; }
11007
  SET_MAKE=
11008
else
11009 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 90 jeremybenn
$as_echo "no" >&6; }
11011
  SET_MAKE="MAKE=${MAKE-make}"
11012
fi
11013
 
11014
rm -rf .tst 2>/dev/null
11015
mkdir .tst 2>/dev/null
11016
if test -d .tst; then
11017
  am__leading_dot=.
11018
else
11019
  am__leading_dot=_
11020
fi
11021
rmdir .tst 2>/dev/null
11022
 
11023
DEPDIR="${am__leading_dot}deps"
11024
 
11025
ac_config_commands="$ac_config_commands depfiles"
11026
 
11027
 
11028
am_make=${MAKE-make}
11029
cat > confinc << 'END'
11030
am__doit:
11031
        @echo this is the am__doit target
11032
.PHONY: am__doit
11033
END
11034
# If we don't find an include directive, just comment out the code.
11035 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11036 90 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11037
am__include="#"
11038
am__quote=
11039
_am_result=none
11040
# First try GNU make style include.
11041
echo "include confinc" > confmf
11042
# Ignore all kinds of additional output from `make'.
11043
case `$am_make -s -f confmf 2> /dev/null` in #(
11044
*the\ am__doit\ target*)
11045
  am__include=include
11046
  am__quote=
11047
  _am_result=GNU
11048
  ;;
11049
esac
11050
# Now try BSD make style include.
11051
if test "$am__include" = "#"; then
11052
   echo '.include "confinc"' > confmf
11053
   case `$am_make -s -f confmf 2> /dev/null` in #(
11054
   *the\ am__doit\ target*)
11055
     am__include=.include
11056
     am__quote="\""
11057
     _am_result=BSD
11058
     ;;
11059
   esac
11060
fi
11061
 
11062
 
11063 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11064 90 jeremybenn
$as_echo "$_am_result" >&6; }
11065
rm -f confinc confmf
11066
 
11067
# Check whether --enable-dependency-tracking was given.
11068 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
11069 90 jeremybenn
  enableval=$enable_dependency_tracking;
11070
fi
11071
 
11072
if test "x$enable_dependency_tracking" != xno; then
11073
  am_depcomp="$ac_aux_dir/depcomp"
11074
  AMDEPBACKSLASH='\'
11075
fi
11076
 if test "x$enable_dependency_tracking" != xno; then
11077
  AMDEP_TRUE=
11078
  AMDEP_FALSE='#'
11079
else
11080
  AMDEP_TRUE='#'
11081
  AMDEP_FALSE=
11082
fi
11083
 
11084
 
11085
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11086
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11087
  # is not polluted with repeated "-I."
11088
  am__isrc=' -I$(srcdir)'
11089
  # test to see if srcdir already configured
11090
  if test -f $srcdir/config.status; then
11091 625 jeremybenn
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11092 90 jeremybenn
  fi
11093
fi
11094
 
11095
# test whether we have cygpath
11096
if test -z "$CYGPATH_W"; then
11097
  if (cygpath --version) >/dev/null 2>/dev/null; then
11098
    CYGPATH_W='cygpath -w'
11099
  else
11100
    CYGPATH_W=echo
11101
  fi
11102
fi
11103
 
11104
 
11105
# Define the identity of the package.
11106
 PACKAGE='or1ksim-testsuite'
11107 792 jeremybenn
 VERSION='2012-04-07'
11108 90 jeremybenn
 
11109
 
11110
cat >>confdefs.h <<_ACEOF
11111
#define PACKAGE "$PACKAGE"
11112
_ACEOF
11113
 
11114
 
11115
cat >>confdefs.h <<_ACEOF
11116
#define VERSION "$VERSION"
11117
_ACEOF
11118
 
11119
# Some tools Automake needs.
11120
 
11121
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11122
 
11123
 
11124
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11125
 
11126
 
11127
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11128
 
11129
 
11130
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11131
 
11132
 
11133
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11134
 
11135
# We need awk for the "check" target.  The system "awk" is bad on
11136
# some platforms.
11137
# Always define AMTAR for backward compatibility.
11138
 
11139
AMTAR=${AMTAR-"${am_missing_run}tar"}
11140
 
11141
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11142
 
11143
 
11144
 
11145
 
11146
depcc="$CC"   am_compiler_list=
11147
 
11148 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11149 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11150 625 jeremybenn
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11151 90 jeremybenn
  $as_echo_n "(cached) " >&6
11152
else
11153
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11154
  # We make a subdir and do the tests there.  Otherwise we can end up
11155
  # making bogus files that we don't know about and never remove.  For
11156
  # instance it was reported that on HP-UX the gcc test will end up
11157
  # making a dummy file named `D' -- because `-MD' means `put the output
11158
  # in D'.
11159
  mkdir conftest.dir
11160
  # Copy depcomp to subdir because otherwise we won't find it if we're
11161
  # using a relative directory.
11162
  cp "$am_depcomp" conftest.dir
11163
  cd conftest.dir
11164
  # We will build objects and dependencies in a subdirectory because
11165
  # it helps to detect inapplicable dependency modes.  For instance
11166
  # both Tru64's cc and ICC support -MD to output dependencies as a
11167
  # side effect of compilation, but ICC will put the dependencies in
11168
  # the current directory while Tru64 will put them in the object
11169
  # directory.
11170
  mkdir sub
11171
 
11172
  am_cv_CC_dependencies_compiler_type=none
11173
  if test "$am_compiler_list" = ""; then
11174
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11175
  fi
11176
  am__universal=false
11177
  case " $depcc " in #(
11178
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11179
     esac
11180
 
11181
  for depmode in $am_compiler_list; do
11182
    # Setup a source with many dependencies, because some compilers
11183
    # like to wrap large dependency lists on column 80 (with \), and
11184
    # we should not choose a depcomp mode which is confused by this.
11185
    #
11186
    # We need to recreate these files for each test, as the compiler may
11187
    # overwrite some of them when testing with obscure command lines.
11188
    # This happens at least with the AIX C compiler.
11189
    : > sub/conftest.c
11190
    for i in 1 2 3 4 5 6; do
11191
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11192
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11193
      # Solaris 8's {/usr,}/bin/sh.
11194
      touch sub/conftst$i.h
11195
    done
11196
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11197
 
11198
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11199
    # mode.  It turns out that the SunPro C++ compiler does not properly
11200
    # handle `-M -o', and we need to detect this.  Also, some Intel
11201
    # versions had trouble with output in subdirs
11202
    am__obj=sub/conftest.${OBJEXT-o}
11203
    am__minus_obj="-o $am__obj"
11204
    case $depmode in
11205
    gcc)
11206
      # This depmode causes a compiler race in universal mode.
11207
      test "$am__universal" = false || continue
11208
      ;;
11209
    nosideeffect)
11210
      # after this tag, mechanisms are not by side-effect, so they'll
11211
      # only be used when explicitly requested
11212
      if test "x$enable_dependency_tracking" = xyes; then
11213
        continue
11214
      else
11215
        break
11216
      fi
11217
      ;;
11218
    msvisualcpp | msvcmsys)
11219
      # This compiler won't grok `-c -o', but also, the minuso test has
11220
      # not run yet.  These depmodes are late enough in the game, and
11221
      # so weak that their functioning should not be impacted.
11222
      am__obj=conftest.${OBJEXT-o}
11223
      am__minus_obj=
11224
      ;;
11225
    none) break ;;
11226
    esac
11227
    if depmode=$depmode \
11228
       source=sub/conftest.c object=$am__obj \
11229
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11230
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11231
         >/dev/null 2>conftest.err &&
11232
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11233
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11234
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11235
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11236
      # icc doesn't choke on unknown options, it will just issue warnings
11237
      # or remarks (even with -Werror).  So we grep stderr for any message
11238
      # that says an option was ignored or not supported.
11239
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11240
      #   icc: Command line warning: ignoring option '-M'; no argument required
11241
      # The diagnosis changed in icc 8.0:
11242
      #   icc: Command line remark: option '-MP' not supported
11243
      if (grep 'ignoring option' conftest.err ||
11244
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11245
        am_cv_CC_dependencies_compiler_type=$depmode
11246
        break
11247
      fi
11248
    fi
11249
  done
11250
 
11251
  cd ..
11252
  rm -rf conftest.dir
11253
else
11254
  am_cv_CC_dependencies_compiler_type=none
11255
fi
11256
 
11257
fi
11258 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11259 90 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11260
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11261
 
11262
 if
11263
  test "x$enable_dependency_tracking" != xno \
11264
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11265
  am__fastdepCC_TRUE=
11266
  am__fastdepCC_FALSE='#'
11267
else
11268
  am__fastdepCC_TRUE='#'
11269
  am__fastdepCC_FALSE=
11270
fi
11271
 
11272
 
11273
 
11274 625 jeremybenn
# Check whether --enable-silent-rules was given.
11275
if test "${enable_silent_rules+set}" = set; then :
11276
  enableval=$enable_silent_rules;
11277
fi
11278
 
11279
case $enable_silent_rules in
11280
yes) AM_DEFAULT_VERBOSITY=0;;
11281
no)  AM_DEFAULT_VERBOSITY=1;;
11282
*)   AM_DEFAULT_VERBOSITY=0;;
11283
esac
11284
AM_BACKSLASH='\'
11285
 
11286
 
11287 90 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11288
 
11289
 
11290
# make sure we are using a recent autoconf version
11291
 
11292
 
11293 385 jeremybenn
# This is not nice, but it gets round the problem of the target not being
11294
# specified. We don't need to warn again - the main configure did that for us.
11295
case "$target_cpu" in
11296
or32*)
11297
        ;;
11298
 
11299
dlx*)
11300
        ;;
11301
 
11302
*)      target_alias=or32-elf;
11303
        ;;
11304
esac
11305
 
11306 90 jeremybenn
# check for --enable-all-tests argument, in which case we attempt to build all
11307
# tests, even those that do not compile properly.
11308
# Check whether --enable-all-tests was given.
11309 346 jeremybenn
if test "${enable_all_tests+set}" = set; then :
11310 90 jeremybenn
  enableval=$enable_all_tests; all_tests=true all_tests=false
11311
fi
11312
 
11313
 if test x$all_tests = xtrue; then
11314
  BUILD_ALL_TESTS_TRUE=
11315
  BUILD_ALL_TESTS_FALSE='#'
11316
else
11317
  BUILD_ALL_TESTS_TRUE='#'
11318
  BUILD_ALL_TESTS_FALSE=
11319
fi
11320
 
11321
 
11322
# Sort out the tools. Using the target tool chain here, not native. Note that
11323
# AC_CHECK_PROGS will not override an already set variable, so we must
11324
# explicitly unset them first.
11325
unset CC
11326
unset RANLIB
11327
unset LD
11328
unset SIM
11329
for ac_prog in $target_alias-gcc
11330
do
11331
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11332
set dummy $ac_prog; ac_word=$2
11333 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11335 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11336 90 jeremybenn
  $as_echo_n "(cached) " >&6
11337
else
11338
  if test -n "$CC"; then
11339
  ac_cv_prog_CC="$CC" # Let the user override the test.
11340
else
11341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342
for as_dir in $PATH
11343
do
11344
  IFS=$as_save_IFS
11345
  test -z "$as_dir" && as_dir=.
11346 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11347 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348
    ac_cv_prog_CC="$ac_prog"
11349 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 90 jeremybenn
    break 2
11351
  fi
11352
done
11353 346 jeremybenn
  done
11354 90 jeremybenn
IFS=$as_save_IFS
11355
 
11356
fi
11357
fi
11358
CC=$ac_cv_prog_CC
11359
if test -n "$CC"; then
11360 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11361 90 jeremybenn
$as_echo "$CC" >&6; }
11362
else
11363 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 90 jeremybenn
$as_echo "no" >&6; }
11365
fi
11366
 
11367
 
11368
  test -n "$CC" && break
11369
done
11370
 
11371
for ac_prog in $target_alias-ranlib
11372
do
11373
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11374
set dummy $ac_prog; ac_word=$2
11375 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11377 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
11378 90 jeremybenn
  $as_echo_n "(cached) " >&6
11379
else
11380
  if test -n "$RANLIB"; then
11381
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11382
else
11383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384
for as_dir in $PATH
11385
do
11386
  IFS=$as_save_IFS
11387
  test -z "$as_dir" && as_dir=.
11388 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11389 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390
    ac_cv_prog_RANLIB="$ac_prog"
11391 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 90 jeremybenn
    break 2
11393
  fi
11394
done
11395 346 jeremybenn
  done
11396 90 jeremybenn
IFS=$as_save_IFS
11397
 
11398
fi
11399
fi
11400
RANLIB=$ac_cv_prog_RANLIB
11401
if test -n "$RANLIB"; then
11402 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11403 90 jeremybenn
$as_echo "$RANLIB" >&6; }
11404
else
11405 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 90 jeremybenn
$as_echo "no" >&6; }
11407
fi
11408
 
11409
 
11410
  test -n "$RANLIB" && break
11411
done
11412
 
11413
for ac_prog in $target_alias-ld
11414
do
11415
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11416
set dummy $ac_prog; ac_word=$2
11417 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11419 625 jeremybenn
if ${ac_cv_prog_LD+:} false; then :
11420 90 jeremybenn
  $as_echo_n "(cached) " >&6
11421
else
11422
  if test -n "$LD"; then
11423
  ac_cv_prog_LD="$LD" # Let the user override the test.
11424
else
11425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426
for as_dir in $PATH
11427
do
11428
  IFS=$as_save_IFS
11429
  test -z "$as_dir" && as_dir=.
11430 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11431 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432
    ac_cv_prog_LD="$ac_prog"
11433 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 90 jeremybenn
    break 2
11435
  fi
11436
done
11437 346 jeremybenn
  done
11438 90 jeremybenn
IFS=$as_save_IFS
11439
 
11440
fi
11441
fi
11442
LD=$ac_cv_prog_LD
11443
if test -n "$LD"; then
11444 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11445 90 jeremybenn
$as_echo "$LD" >&6; }
11446
else
11447 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 90 jeremybenn
$as_echo "no" >&6; }
11449
fi
11450
 
11451
 
11452
  test -n "$LD" && break
11453
done
11454
 
11455
for ac_prog in $target_alias-sim
11456
do
11457
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11458
set dummy $ac_prog; ac_word=$2
11459 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11461 625 jeremybenn
if ${ac_cv_prog_SIM+:} false; then :
11462 90 jeremybenn
  $as_echo_n "(cached) " >&6
11463
else
11464
  if test -n "$SIM"; then
11465
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
11466
else
11467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468
for as_dir in $PATH
11469
do
11470
  IFS=$as_save_IFS
11471
  test -z "$as_dir" && as_dir=.
11472 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11473 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474
    ac_cv_prog_SIM="$ac_prog"
11475 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 90 jeremybenn
    break 2
11477
  fi
11478
done
11479 346 jeremybenn
  done
11480 90 jeremybenn
IFS=$as_save_IFS
11481
 
11482
fi
11483
fi
11484
SIM=$ac_cv_prog_SIM
11485
if test -n "$SIM"; then
11486 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM" >&5
11487 90 jeremybenn
$as_echo "$SIM" >&6; }
11488
else
11489 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 90 jeremybenn
$as_echo "no" >&6; }
11491
fi
11492
 
11493
 
11494
  test -n "$SIM" && break
11495
done
11496
 
11497
 
11498
 
11499
 
11500
 
11501
 
11502 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11503 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
11504 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
11505 90 jeremybenn
  $as_echo_n "(cached) " >&6
11506
else
11507 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 90 jeremybenn
/* end confdefs.h.  */
11509
#include 
11510
#include 
11511
#include 
11512
#include 
11513
 
11514
int
11515
main ()
11516
{
11517
 
11518
  ;
11519
  return 0;
11520
}
11521
_ACEOF
11522 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11523 90 jeremybenn
  ac_cv_header_stdc=yes
11524
else
11525 346 jeremybenn
  ac_cv_header_stdc=no
11526 90 jeremybenn
fi
11527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528
 
11529
if test $ac_cv_header_stdc = yes; then
11530
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11531 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 90 jeremybenn
/* end confdefs.h.  */
11533
#include 
11534
 
11535
_ACEOF
11536
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11537 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
11538
 
11539 90 jeremybenn
else
11540
  ac_cv_header_stdc=no
11541
fi
11542
rm -f conftest*
11543
 
11544
fi
11545
 
11546
if test $ac_cv_header_stdc = yes; then
11547
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11548 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 90 jeremybenn
/* end confdefs.h.  */
11550
#include 
11551
 
11552
_ACEOF
11553
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11554 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
11555
 
11556 90 jeremybenn
else
11557
  ac_cv_header_stdc=no
11558
fi
11559
rm -f conftest*
11560
 
11561
fi
11562
 
11563
if test $ac_cv_header_stdc = yes; then
11564
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11565 346 jeremybenn
  if test "$cross_compiling" = yes; then :
11566 90 jeremybenn
  :
11567
else
11568 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 90 jeremybenn
/* end confdefs.h.  */
11570
#include 
11571
#include 
11572
#if ((' ' & 0x0FF) == 0x020)
11573
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11574
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11575
#else
11576
# define ISLOWER(c) \
11577
                   (('a' <= (c) && (c) <= 'i') \
11578
                     || ('j' <= (c) && (c) <= 'r') \
11579
                     || ('s' <= (c) && (c) <= 'z'))
11580
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11581
#endif
11582
 
11583
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11584
int
11585
main ()
11586
{
11587
  int i;
11588
  for (i = 0; i < 256; i++)
11589
    if (XOR (islower (i), ISLOWER (i))
11590
        || toupper (i) != TOUPPER (i))
11591
      return 2;
11592
  return 0;
11593
}
11594
_ACEOF
11595 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11596
 
11597 236 jeremybenn
else
11598 346 jeremybenn
  ac_cv_header_stdc=no
11599 90 jeremybenn
fi
11600 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11601
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11602 90 jeremybenn
fi
11603
 
11604
fi
11605
fi
11606 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11607 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
11608
if test $ac_cv_header_stdc = yes; then
11609
 
11610 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11611 90 jeremybenn
 
11612
fi
11613
 
11614
 
11615
# We need assembler, installer and per target C flags
11616
 
11617
# By default we simply use the C compiler to build assembly code.
11618
 
11619
test "${CCAS+set}" = set || CCAS=$CC
11620
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11621
 
11622
 
11623
 
11624
depcc="$CCAS"   am_compiler_list=
11625
 
11626 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11627 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11628 625 jeremybenn
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11629 90 jeremybenn
  $as_echo_n "(cached) " >&6
11630
else
11631
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11632
  # We make a subdir and do the tests there.  Otherwise we can end up
11633
  # making bogus files that we don't know about and never remove.  For
11634
  # instance it was reported that on HP-UX the gcc test will end up
11635
  # making a dummy file named `D' -- because `-MD' means `put the output
11636
  # in D'.
11637
  mkdir conftest.dir
11638
  # Copy depcomp to subdir because otherwise we won't find it if we're
11639
  # using a relative directory.
11640
  cp "$am_depcomp" conftest.dir
11641
  cd conftest.dir
11642
  # We will build objects and dependencies in a subdirectory because
11643
  # it helps to detect inapplicable dependency modes.  For instance
11644
  # both Tru64's cc and ICC support -MD to output dependencies as a
11645
  # side effect of compilation, but ICC will put the dependencies in
11646
  # the current directory while Tru64 will put them in the object
11647
  # directory.
11648
  mkdir sub
11649
 
11650
  am_cv_CCAS_dependencies_compiler_type=none
11651
  if test "$am_compiler_list" = ""; then
11652
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11653
  fi
11654
  am__universal=false
11655
 
11656
 
11657
  for depmode in $am_compiler_list; do
11658
    # Setup a source with many dependencies, because some compilers
11659
    # like to wrap large dependency lists on column 80 (with \), and
11660
    # we should not choose a depcomp mode which is confused by this.
11661
    #
11662
    # We need to recreate these files for each test, as the compiler may
11663
    # overwrite some of them when testing with obscure command lines.
11664
    # This happens at least with the AIX C compiler.
11665
    : > sub/conftest.c
11666
    for i in 1 2 3 4 5 6; do
11667
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11668
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11669
      # Solaris 8's {/usr,}/bin/sh.
11670
      touch sub/conftst$i.h
11671
    done
11672
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11673
 
11674
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11675
    # mode.  It turns out that the SunPro C++ compiler does not properly
11676
    # handle `-M -o', and we need to detect this.  Also, some Intel
11677
    # versions had trouble with output in subdirs
11678
    am__obj=sub/conftest.${OBJEXT-o}
11679
    am__minus_obj="-o $am__obj"
11680
    case $depmode in
11681
    gcc)
11682
      # This depmode causes a compiler race in universal mode.
11683
      test "$am__universal" = false || continue
11684
      ;;
11685
    nosideeffect)
11686
      # after this tag, mechanisms are not by side-effect, so they'll
11687
      # only be used when explicitly requested
11688
      if test "x$enable_dependency_tracking" = xyes; then
11689
        continue
11690
      else
11691
        break
11692
      fi
11693
      ;;
11694
    msvisualcpp | msvcmsys)
11695
      # This compiler won't grok `-c -o', but also, the minuso test has
11696
      # not run yet.  These depmodes are late enough in the game, and
11697
      # so weak that their functioning should not be impacted.
11698
      am__obj=conftest.${OBJEXT-o}
11699
      am__minus_obj=
11700
      ;;
11701
    none) break ;;
11702
    esac
11703
    if depmode=$depmode \
11704
       source=sub/conftest.c object=$am__obj \
11705
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11706
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11707
         >/dev/null 2>conftest.err &&
11708
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11709
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11710
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11711
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11712
      # icc doesn't choke on unknown options, it will just issue warnings
11713
      # or remarks (even with -Werror).  So we grep stderr for any message
11714
      # that says an option was ignored or not supported.
11715
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11716
      #   icc: Command line warning: ignoring option '-M'; no argument required
11717
      # The diagnosis changed in icc 8.0:
11718
      #   icc: Command line remark: option '-MP' not supported
11719
      if (grep 'ignoring option' conftest.err ||
11720
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11721
        am_cv_CCAS_dependencies_compiler_type=$depmode
11722
        break
11723
      fi
11724
    fi
11725
  done
11726
 
11727
  cd ..
11728
  rm -rf conftest.dir
11729
else
11730
  am_cv_CCAS_dependencies_compiler_type=none
11731
fi
11732
 
11733
fi
11734 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11735 90 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11736
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11737
 
11738
 if
11739
  test "x$enable_dependency_tracking" != xno \
11740
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11741
  am__fastdepCCAS_TRUE=
11742
  am__fastdepCCAS_FALSE='#'
11743
else
11744
  am__fastdepCCAS_TRUE='#'
11745
  am__fastdepCCAS_FALSE=
11746
fi
11747
 
11748
 
11749
if test "x$CC" != xcc; then
11750 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11751 90 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11752
else
11753 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11754 90 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11755
fi
11756
set dummy $CC; ac_cc=`$as_echo "$2" |
11757
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11758 625 jeremybenn
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11759 90 jeremybenn
  $as_echo_n "(cached) " >&6
11760
else
11761 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 90 jeremybenn
/* end confdefs.h.  */
11763
 
11764
int
11765
main ()
11766
{
11767
 
11768
  ;
11769
  return 0;
11770
}
11771
_ACEOF
11772
# Make sure it works both with $CC and with simple cc.
11773
# We do the test twice because some compilers refuse to overwrite an
11774
# existing .o file with -o, though they will create one.
11775
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11776
rm -f conftest2.*
11777 346 jeremybenn
if { { case "(($ac_try" in
11778 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779
  *) ac_try_echo=$ac_try;;
11780
esac
11781 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11782
$as_echo "$ac_try_echo"; } >&5
11783 90 jeremybenn
  (eval "$ac_try") 2>&5
11784
  ac_status=$?
11785 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11786
  test $ac_status = 0; } &&
11787
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11788 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789
  *) ac_try_echo=$ac_try;;
11790
esac
11791 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11792
$as_echo "$ac_try_echo"; } >&5
11793 90 jeremybenn
  (eval "$ac_try") 2>&5
11794
  ac_status=$?
11795 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796
  test $ac_status = 0; };
11797 90 jeremybenn
then
11798
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11799
  if test "x$CC" != xcc; then
11800
    # Test first that cc exists at all.
11801
    if { ac_try='cc -c conftest.$ac_ext >&5'
11802 346 jeremybenn
  { { case "(($ac_try" in
11803 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804
  *) ac_try_echo=$ac_try;;
11805
esac
11806 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11807
$as_echo "$ac_try_echo"; } >&5
11808 90 jeremybenn
  (eval "$ac_try") 2>&5
11809
  ac_status=$?
11810 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11811
  test $ac_status = 0; }; }; then
11812 90 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11813
      rm -f conftest2.*
11814 346 jeremybenn
      if { { case "(($ac_try" in
11815 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816
  *) ac_try_echo=$ac_try;;
11817
esac
11818 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11819
$as_echo "$ac_try_echo"; } >&5
11820 90 jeremybenn
  (eval "$ac_try") 2>&5
11821
  ac_status=$?
11822 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823
  test $ac_status = 0; } &&
11824
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11825 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826
  *) ac_try_echo=$ac_try;;
11827
esac
11828 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11829
$as_echo "$ac_try_echo"; } >&5
11830 90 jeremybenn
  (eval "$ac_try") 2>&5
11831
  ac_status=$?
11832 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833
  test $ac_status = 0; };
11834 90 jeremybenn
      then
11835
        # cc works too.
11836
        :
11837
      else
11838
        # cc exists but doesn't like -o.
11839
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11840
      fi
11841
    fi
11842
  fi
11843
else
11844
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11845
fi
11846
rm -f core conftest*
11847
 
11848
fi
11849
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11850 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 90 jeremybenn
$as_echo "yes" >&6; }
11852
else
11853 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 90 jeremybenn
$as_echo "no" >&6; }
11855
 
11856 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11857 90 jeremybenn
 
11858
fi
11859
 
11860
# FIXME: we rely on the cache variable name because
11861
# there is no other way.
11862
set dummy $CC
11863
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11864
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11865
if test "$am_t" != yes; then
11866
   # Losing compiler, so override with the script.
11867
   # FIXME: It is wrong to rewrite CC.
11868
   # But if we don't then we get into trouble of one sort or another.
11869
   # A longer-term fix would be to have automake use am__CC in this case,
11870
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11871
   CC="$am_aux_dir/compile $CC"
11872
fi
11873
 
11874
 
11875
 
11876
 
11877
# Specify our baseline CFLAGS
11878 458 julius
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/except"
11879 90 jeremybenn
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11880
 
11881
# Flag to specify whether we want optimization when checking
11882 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimizations when checking" >&5
11883 90 jeremybenn
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11884 458 julius
# Check whether --enable-check-opt was given.
11885
if test "${enable_check_opt+set}" = set; then :
11886
  enableval=$enable_check_opt;
11887 90 jeremybenn
    case "$enableval" in
11888
        yes)
11889
            CFLAGS="$CFLAGS -O"
11890
            ;;
11891
        *)
11892
            CFLAGS="$CFLAGS -O$enableval"
11893
            ;;
11894
    esac
11895
 
11896
fi
11897
 
11898 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_check_opt-default}" >&5
11899 90 jeremybenn
$as_echo "${enable_check_opt-default}" >&6; }
11900
 
11901
 
11902
 
11903
 
11904
# This is GNU compliant source and uses GNU libraries
11905
 
11906 346 jeremybenn
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11907 90 jeremybenn
 
11908
 
11909
# Check for functions doesn't work, since we can't execute code. Define some
11910
# we know are definitely there in OR1K GCC. This is all to allow reused
11911
# headers from the main code body (for the memory controller tests
11912
# principally) to work.
11913
 
11914 346 jeremybenn
$as_echo "#define HAVE_STRNDUP /**/" >>confdefs.h
11915 90 jeremybenn
 
11916
 
11917 346 jeremybenn
$as_echo "#define HAVE_ISBLANK /**/" >>confdefs.h
11918 90 jeremybenn
 
11919
 
11920
# Check for headers
11921
for ac_header in sys/types.h inttypes.h
11922 346 jeremybenn
do :
11923
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11925 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11926 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
11927
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11928
_ACEOF
11929
 
11930
fi
11931
 
11932
done
11933
 
11934
 
11935
# check for types and sizes
11936 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
11937
"
11938 625 jeremybenn
if test "x$ac_cv_type_uint8_t" = xyes; then :
11939 90 jeremybenn
 
11940
cat >>confdefs.h <<_ACEOF
11941
#define HAVE_UINT8_T 1
11942
_ACEOF
11943
 
11944
 
11945
fi
11946 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
11947
"
11948 625 jeremybenn
if test "x$ac_cv_type_uint16_t" = xyes; then :
11949 90 jeremybenn
 
11950
cat >>confdefs.h <<_ACEOF
11951
#define HAVE_UINT16_T 1
11952
_ACEOF
11953
 
11954
 
11955
fi
11956 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
11957
"
11958 625 jeremybenn
if test "x$ac_cv_type_uint32_t" = xyes; then :
11959 90 jeremybenn
 
11960
cat >>confdefs.h <<_ACEOF
11961
#define HAVE_UINT32_T 1
11962
_ACEOF
11963
 
11964
 
11965
fi
11966
 
11967 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
11968
"
11969 625 jeremybenn
if test "x$ac_cv_type_int8_t" = xyes; then :
11970 90 jeremybenn
 
11971
cat >>confdefs.h <<_ACEOF
11972
#define HAVE_INT8_T 1
11973
_ACEOF
11974
 
11975
 
11976
fi
11977 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
11978
"
11979 625 jeremybenn
if test "x$ac_cv_type_int16_t" = xyes; then :
11980 90 jeremybenn
 
11981
cat >>confdefs.h <<_ACEOF
11982
#define HAVE_INT16_T 1
11983
_ACEOF
11984
 
11985
 
11986
fi
11987 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
11988
"
11989 625 jeremybenn
if test "x$ac_cv_type_int32_t" = xyes; then :
11990 90 jeremybenn
 
11991
cat >>confdefs.h <<_ACEOF
11992
#define HAVE_INT32_T 1
11993
_ACEOF
11994
 
11995
 
11996
fi
11997
 
11998
 
11999
# Checking sizeof doesn't really work, since it needs to run compiled code. So
12000
# we do it by hand.
12001
 
12002 346 jeremybenn
$as_echo "#define SIZEOF_CHAR 1" >>confdefs.h
12003 90 jeremybenn
 
12004
 
12005 346 jeremybenn
$as_echo "#define SIZEOF_SHORT 2" >>confdefs.h
12006 90 jeremybenn
 
12007
 
12008 346 jeremybenn
$as_echo "#define SIZEOF_INT 4" >>confdefs.h
12009 90 jeremybenn
 
12010
 
12011 346 jeremybenn
$as_echo "#define SIZEOF_LONG 4" >>confdefs.h
12012 90 jeremybenn
 
12013
 
12014 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"
12015 90 jeremybenn
 
12016
 
12017
cat >confcache <<\_ACEOF
12018
# This file is a shell script that caches the results of configure
12019
# tests run on this system so they can be shared between configure
12020
# scripts and configure runs, see configure's option --config-cache.
12021
# It is not useful on other systems.  If it contains results you don't
12022
# want to keep, you may remove or edit it.
12023
#
12024
# config.status only pays attention to the cache file if you give it
12025
# the --recheck option to rerun configure.
12026
#
12027
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12028
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12029
# following values.
12030
 
12031
_ACEOF
12032
 
12033
# The following way of writing the cache mishandles newlines in values,
12034
# but we know of no workaround that is simple, portable, and efficient.
12035
# So, we kill variables containing newlines.
12036
# Ultrix sh set writes to stderr and can't be redirected directly,
12037
# and sets the high bit in the cache file unless we assign to the vars.
12038
(
12039
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12040
    eval ac_val=\$$ac_var
12041
    case $ac_val in #(
12042
    *${as_nl}*)
12043
      case $ac_var in #(
12044 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12045 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12046
      esac
12047
      case $ac_var in #(
12048
      _ | IFS | as_nl) ;; #(
12049
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12050 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
12051 90 jeremybenn
      esac ;;
12052
    esac
12053
  done
12054
 
12055
  (set) 2>&1 |
12056
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12057
    *${as_nl}ac_space=\ *)
12058 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
12059
      # substitution turns \\\\ into \\, and sed turns \\ into \.
12060 90 jeremybenn
      sed -n \
12061
        "s/'/'\\\\''/g;
12062
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12063
      ;; #(
12064
    *)
12065
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12066
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12067
      ;;
12068
    esac |
12069
    sort
12070
) |
12071
  sed '
12072
     /^ac_cv_env_/b end
12073
     t clear
12074
     :clear
12075
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12076
     t end
12077
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12078
     :end' >>confcache
12079
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12080
  if test -w "$cache_file"; then
12081 625 jeremybenn
    if test "x$cache_file" != "x/dev/null"; then
12082 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12083 90 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
12084 625 jeremybenn
      if test ! -f "$cache_file" || test -h "$cache_file"; then
12085
        cat confcache >"$cache_file"
12086
      else
12087
        case $cache_file in #(
12088
        */* | ?:*)
12089
          mv -f confcache "$cache_file"$$ &&
12090
          mv -f "$cache_file"$$ "$cache_file" ;; #(
12091
        *)
12092
          mv -f confcache "$cache_file" ;;
12093
        esac
12094
      fi
12095
    fi
12096 90 jeremybenn
  else
12097 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12098 90 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12099
  fi
12100
fi
12101
rm -f confcache
12102
 
12103
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12104
# Let make expand exec_prefix.
12105
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12106
 
12107
DEFS=-DHAVE_CONFIG_H
12108
 
12109
ac_libobjs=
12110
ac_ltlibobjs=
12111 625 jeremybenn
U=
12112 90 jeremybenn
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12113
  # 1. Remove the extension, and $U if already installed.
12114
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12115
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12116
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12117
  #    will be set to the directory where LIBOBJS objects are built.
12118 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12119
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12120 90 jeremybenn
done
12121
LIBOBJS=$ac_libobjs
12122
 
12123
LTLIBOBJS=$ac_ltlibobjs
12124
 
12125
 
12126
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12127 625 jeremybenn
  as_fn_error $? "conditional \"AMDEP\" was never defined.
12128 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129 90 jeremybenn
fi
12130
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12131 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12132 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12133 90 jeremybenn
fi
12134
 if test -n "$EXEEXT"; then
12135
  am__EXEEXT_TRUE=
12136
  am__EXEEXT_FALSE='#'
12137
else
12138
  am__EXEEXT_TRUE='#'
12139
  am__EXEEXT_FALSE=
12140
fi
12141
 
12142
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
12143 625 jeremybenn
  as_fn_error $? "conditional \"BUILD_ALL_TESTS\" was never defined.
12144 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12145 90 jeremybenn
fi
12146
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12147 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12148 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12149 90 jeremybenn
fi
12150
 
12151 625 jeremybenn
: "${CONFIG_STATUS=./config.status}"
12152 90 jeremybenn
ac_write_fail=0
12153
ac_clean_files_save=$ac_clean_files
12154
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12156 90 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157 346 jeremybenn
as_write_fail=0
12158
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12159 90 jeremybenn
#! $SHELL
12160
# Generated by $as_me.
12161
# Run this file to recreate the current configuration.
12162
# Compiler output produced by configure, useful for debugging
12163
# configure, is in config.log if it exists.
12164
 
12165
debug=false
12166
ac_cs_recheck=false
12167
ac_cs_silent=false
12168 346 jeremybenn
 
12169 90 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
12170 346 jeremybenn
export SHELL
12171
_ASEOF
12172
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12173
## -------------------- ##
12174
## M4sh Initialization. ##
12175
## -------------------- ##
12176 90 jeremybenn
 
12177
# Be more Bourne compatible
12178
DUALCASE=1; export DUALCASE # for MKS sh
12179 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12180 90 jeremybenn
  emulate sh
12181
  NULLCMD=:
12182
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12183
  # is contrary to our usage.  Disable this feature.
12184
  alias -g '${1+"$@"}'='"$@"'
12185
  setopt NO_GLOB_SUBST
12186
else
12187 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
12188
  *posix*) :
12189
    set -o posix ;; #(
12190
  *) :
12191
     ;;
12192 90 jeremybenn
esac
12193
fi
12194
 
12195
 
12196
as_nl='
12197
'
12198
export as_nl
12199
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12200
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12201
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12202
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12203 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
12204
# but without wasting forks for bash or zsh.
12205
if test -z "$BASH_VERSION$ZSH_VERSION" \
12206
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12207
  as_echo='print -r --'
12208
  as_echo_n='print -rn --'
12209
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12210 90 jeremybenn
  as_echo='printf %s\n'
12211
  as_echo_n='printf %s'
12212
else
12213
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12214
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12215
    as_echo_n='/usr/ucb/echo -n'
12216
  else
12217
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12218
    as_echo_n_body='eval
12219
      arg=$1;
12220 346 jeremybenn
      case $arg in #(
12221 90 jeremybenn
      *"$as_nl"*)
12222
        expr "X$arg" : "X\\(.*\\)$as_nl";
12223
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12224
      esac;
12225
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12226
    '
12227
    export as_echo_n_body
12228
    as_echo_n='sh -c $as_echo_n_body as_echo'
12229
  fi
12230
  export as_echo_body
12231
  as_echo='sh -c $as_echo_body as_echo'
12232
fi
12233
 
12234
# The user is always right.
12235
if test "${PATH_SEPARATOR+set}" != set; then
12236
  PATH_SEPARATOR=:
12237
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12238
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12239
      PATH_SEPARATOR=';'
12240
  }
12241
fi
12242
 
12243
 
12244
# IFS
12245
# We need space, tab and new line, in precisely that order.  Quoting is
12246
# there to prevent editors from complaining about space-tab.
12247
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12248
# splitting by setting IFS to empty value.)
12249
IFS=" ""        $as_nl"
12250
 
12251
# Find who we are.  Look in the path if we contain no directory separator.
12252 625 jeremybenn
as_myself=
12253 346 jeremybenn
case $0 in #((
12254 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
12255
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256
for as_dir in $PATH
12257
do
12258
  IFS=$as_save_IFS
12259
  test -z "$as_dir" && as_dir=.
12260 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12261
  done
12262 90 jeremybenn
IFS=$as_save_IFS
12263
 
12264
     ;;
12265
esac
12266
# We did not find ourselves, most probably we were run as `sh COMMAND'
12267
# in which case we are not to be found in the path.
12268
if test "x$as_myself" = x; then
12269
  as_myself=$0
12270
fi
12271
if test ! -f "$as_myself"; then
12272
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12273 346 jeremybenn
  exit 1
12274 90 jeremybenn
fi
12275
 
12276 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
12277
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12278
# suppresses any "Segmentation fault" message there.  '((' could
12279
# trigger a bug in pdksh 5.2.14.
12280
for as_var in BASH_ENV ENV MAIL MAILPATH
12281
do eval test x\${$as_var+set} = xset \
12282
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12283 90 jeremybenn
done
12284
PS1='$ '
12285
PS2='> '
12286
PS4='+ '
12287
 
12288
# NLS nuisances.
12289
LC_ALL=C
12290
export LC_ALL
12291
LANGUAGE=C
12292
export LANGUAGE
12293
 
12294 346 jeremybenn
# CDPATH.
12295
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12296
 
12297
 
12298 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
12299
# ----------------------------------------
12300 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12301
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12302 625 jeremybenn
# script with STATUS, using 1 if that was 0.
12303 346 jeremybenn
as_fn_error ()
12304
{
12305 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
12306
  if test "$4"; then
12307
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12308
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12309 346 jeremybenn
  fi
12310 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
12311 346 jeremybenn
  as_fn_exit $as_status
12312
} # as_fn_error
12313
 
12314
 
12315
# as_fn_set_status STATUS
12316
# -----------------------
12317
# Set $? to STATUS, without forking.
12318
as_fn_set_status ()
12319
{
12320
  return $1
12321
} # as_fn_set_status
12322
 
12323
# as_fn_exit STATUS
12324
# -----------------
12325
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12326
as_fn_exit ()
12327
{
12328
  set +e
12329
  as_fn_set_status $1
12330
  exit $1
12331
} # as_fn_exit
12332
 
12333
# as_fn_unset VAR
12334
# ---------------
12335
# Portably unset VAR.
12336
as_fn_unset ()
12337
{
12338
  { eval $1=; unset $1;}
12339
}
12340
as_unset=as_fn_unset
12341
# as_fn_append VAR VALUE
12342
# ----------------------
12343
# Append the text in VALUE to the end of the definition contained in VAR. Take
12344
# advantage of any shell optimizations that allow amortized linear growth over
12345
# repeated appends, instead of the typical quadratic growth present in naive
12346
# implementations.
12347
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12348
  eval 'as_fn_append ()
12349
  {
12350
    eval $1+=\$2
12351
  }'
12352
else
12353
  as_fn_append ()
12354
  {
12355
    eval $1=\$$1\$2
12356
  }
12357
fi # as_fn_append
12358
 
12359
# as_fn_arith ARG...
12360
# ------------------
12361
# Perform arithmetic evaluation on the ARGs, and store the result in the
12362
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12363
# must be portable across $(()) and expr.
12364
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12365
  eval 'as_fn_arith ()
12366
  {
12367
    as_val=$(( $* ))
12368
  }'
12369
else
12370
  as_fn_arith ()
12371
  {
12372
    as_val=`expr "$@" || test $? -eq 1`
12373
  }
12374
fi # as_fn_arith
12375
 
12376
 
12377 90 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
12378
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12379
  as_expr=expr
12380
else
12381
  as_expr=false
12382
fi
12383
 
12384
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12385
  as_basename=basename
12386
else
12387
  as_basename=false
12388
fi
12389
 
12390 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12391
  as_dirname=dirname
12392
else
12393
  as_dirname=false
12394
fi
12395 90 jeremybenn
 
12396
as_me=`$as_basename -- "$0" ||
12397
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12398
         X"$0" : 'X\(//\)$' \| \
12399
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12400
$as_echo X/"$0" |
12401
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12402
            s//\1/
12403
            q
12404
          }
12405
          /^X\/\(\/\/\)$/{
12406
            s//\1/
12407
            q
12408
          }
12409
          /^X\/\(\/\).*/{
12410
            s//\1/
12411
            q
12412
          }
12413
          s/.*/./; q'`
12414
 
12415 346 jeremybenn
# Avoid depending upon Character Ranges.
12416
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12417
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12418
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12419
as_cr_digits='0123456789'
12420
as_cr_alnum=$as_cr_Letters$as_cr_digits
12421 90 jeremybenn
 
12422
ECHO_C= ECHO_N= ECHO_T=
12423 346 jeremybenn
case `echo -n x` in #(((((
12424 90 jeremybenn
-n*)
12425 346 jeremybenn
  case `echo 'xy\c'` in
12426 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12427 346 jeremybenn
  xy)  ECHO_C='\c';;
12428
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12429
       ECHO_T=' ';;
12430 90 jeremybenn
  esac;;
12431
*)
12432
  ECHO_N='-n';;
12433
esac
12434
 
12435
rm -f conf$$ conf$$.exe conf$$.file
12436
if test -d conf$$.dir; then
12437
  rm -f conf$$.dir/conf$$.file
12438
else
12439
  rm -f conf$$.dir
12440
  mkdir conf$$.dir 2>/dev/null
12441
fi
12442
if (echo >conf$$.file) 2>/dev/null; then
12443
  if ln -s conf$$.file conf$$ 2>/dev/null; then
12444
    as_ln_s='ln -s'
12445
    # ... but there are two gotchas:
12446
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12447
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12448
    # In both cases, we have to default to `cp -p'.
12449
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12450
      as_ln_s='cp -p'
12451
  elif ln conf$$.file conf$$ 2>/dev/null; then
12452
    as_ln_s=ln
12453
  else
12454
    as_ln_s='cp -p'
12455
  fi
12456
else
12457
  as_ln_s='cp -p'
12458
fi
12459
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12460
rmdir conf$$.dir 2>/dev/null
12461
 
12462 346 jeremybenn
 
12463
# as_fn_mkdir_p
12464
# -------------
12465
# Create "$as_dir" as a directory, including parents if necessary.
12466
as_fn_mkdir_p ()
12467
{
12468
 
12469
  case $as_dir in #(
12470
  -*) as_dir=./$as_dir;;
12471
  esac
12472
  test -d "$as_dir" || eval $as_mkdir_p || {
12473
    as_dirs=
12474
    while :; do
12475
      case $as_dir in #(
12476
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12477
      *) as_qdir=$as_dir;;
12478
      esac
12479
      as_dirs="'$as_qdir' $as_dirs"
12480
      as_dir=`$as_dirname -- "$as_dir" ||
12481
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12482
         X"$as_dir" : 'X\(//\)[^/]' \| \
12483
         X"$as_dir" : 'X\(//\)$' \| \
12484
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12485
$as_echo X"$as_dir" |
12486
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12487
            s//\1/
12488
            q
12489
          }
12490
          /^X\(\/\/\)[^/].*/{
12491
            s//\1/
12492
            q
12493
          }
12494
          /^X\(\/\/\)$/{
12495
            s//\1/
12496
            q
12497
          }
12498
          /^X\(\/\).*/{
12499
            s//\1/
12500
            q
12501
          }
12502
          s/.*/./; q'`
12503
      test -d "$as_dir" && break
12504
    done
12505
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12506 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12507 346 jeremybenn
 
12508
 
12509
} # as_fn_mkdir_p
12510 90 jeremybenn
if mkdir -p . 2>/dev/null; then
12511 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
12512 90 jeremybenn
else
12513
  test -d ./-p && rmdir ./-p
12514
  as_mkdir_p=false
12515
fi
12516
 
12517
if test -x / >/dev/null 2>&1; then
12518
  as_test_x='test -x'
12519
else
12520
  if ls -dL / >/dev/null 2>&1; then
12521
    as_ls_L_option=L
12522
  else
12523
    as_ls_L_option=
12524
  fi
12525
  as_test_x='
12526
    eval sh -c '\''
12527
      if test -d "$1"; then
12528
        test -d "$1/.";
12529
      else
12530 346 jeremybenn
        case $1 in #(
12531 90 jeremybenn
        -*)set "./$1";;
12532
        esac;
12533 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12534 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
12535
    '\'' sh
12536
  '
12537
fi
12538
as_executable_p=$as_test_x
12539
 
12540
# Sed expression to map a string onto a valid CPP name.
12541
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12542
 
12543
# Sed expression to map a string onto a valid variable name.
12544
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12545
 
12546
 
12547
exec 6>&1
12548 346 jeremybenn
## ----------------------------------- ##
12549
## Main body of $CONFIG_STATUS script. ##
12550
## ----------------------------------- ##
12551
_ASEOF
12552
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12553 90 jeremybenn
 
12554 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12555
# Save the log message, to keep $0 and so on meaningful, and to
12556 90 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
12557
# values after options handling.
12558
ac_log="
12559 792 jeremybenn
This file was extended by or1ksim-testsuite $as_me 2012-04-07, which was
12560 625 jeremybenn
generated by GNU Autoconf 2.68.  Invocation command line was
12561 90 jeremybenn
 
12562
  CONFIG_FILES    = $CONFIG_FILES
12563
  CONFIG_HEADERS  = $CONFIG_HEADERS
12564
  CONFIG_LINKS    = $CONFIG_LINKS
12565
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12566
  $ $0 $@
12567
 
12568
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12569
"
12570
 
12571
_ACEOF
12572
 
12573
case $ac_config_files in *"
12574
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12575
esac
12576
 
12577
case $ac_config_headers in *"
12578
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12579
esac
12580
 
12581
 
12582
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12583
# Files that config.status was made for.
12584
config_files="$ac_config_files"
12585
config_headers="$ac_config_headers"
12586
config_commands="$ac_config_commands"
12587
 
12588
_ACEOF
12589
 
12590
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12591
ac_cs_usage="\
12592 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
12593
from templates according to the current configuration.  Unless the files
12594
and actions are specified as TAGs, all are instantiated by default.
12595 90 jeremybenn
 
12596 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
12597 90 jeremybenn
 
12598
  -h, --help       print this help, then exit
12599
  -V, --version    print version number and configuration settings, then exit
12600 625 jeremybenn
      --config     print configuration, then exit
12601 90 jeremybenn
  -q, --quiet, --silent
12602
                   do not print progress messages
12603
  -d, --debug      don't remove temporary files
12604
      --recheck    update $as_me by reconfiguring in the same conditions
12605
      --file=FILE[:TEMPLATE]
12606
                   instantiate the configuration file FILE
12607
      --header=FILE[:TEMPLATE]
12608
                   instantiate the configuration header FILE
12609
 
12610
Configuration files:
12611
$config_files
12612
 
12613
Configuration headers:
12614
$config_headers
12615
 
12616
Configuration commands:
12617
$config_commands
12618
 
12619 346 jeremybenn
Report bugs to ."
12620 90 jeremybenn
 
12621
_ACEOF
12622
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12623 625 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12624 90 jeremybenn
ac_cs_version="\\
12625 792 jeremybenn
or1ksim-testsuite config.status 2012-04-07
12626 625 jeremybenn
configured by $0, generated by GNU Autoconf 2.68,
12627
  with options \\"\$ac_cs_config\\"
12628 90 jeremybenn
 
12629 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
12630 90 jeremybenn
This config.status script is free software; the Free Software Foundation
12631
gives unlimited permission to copy, distribute and modify it."
12632
 
12633
ac_pwd='$ac_pwd'
12634
srcdir='$srcdir'
12635
INSTALL='$INSTALL'
12636
MKDIR_P='$MKDIR_P'
12637
AWK='$AWK'
12638
test -n "\$AWK" || AWK=awk
12639
_ACEOF
12640
 
12641
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12642
# The default lists apply if the user does not specify any file.
12643
ac_need_defaults=:
12644
while test $# != 0
12645
do
12646
  case $1 in
12647 625 jeremybenn
  --*=?*)
12648 90 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12649
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12650
    ac_shift=:
12651
    ;;
12652 625 jeremybenn
  --*=)
12653
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12654
    ac_optarg=
12655
    ac_shift=:
12656
    ;;
12657 90 jeremybenn
  *)
12658
    ac_option=$1
12659
    ac_optarg=$2
12660
    ac_shift=shift
12661
    ;;
12662
  esac
12663
 
12664
  case $ac_option in
12665
  # Handling of the options.
12666
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12667
    ac_cs_recheck=: ;;
12668
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12669
    $as_echo "$ac_cs_version"; exit ;;
12670 625 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
12671
    $as_echo "$ac_cs_config"; exit ;;
12672 90 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
12673
    debug=: ;;
12674
  --file | --fil | --fi | --f )
12675
    $ac_shift
12676
    case $ac_optarg in
12677
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12678 625 jeremybenn
    '') as_fn_error $? "missing file argument" ;;
12679 90 jeremybenn
    esac
12680 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
12681 90 jeremybenn
    ac_need_defaults=false;;
12682
  --header | --heade | --head | --hea )
12683
    $ac_shift
12684
    case $ac_optarg in
12685
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12686
    esac
12687 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12688 90 jeremybenn
    ac_need_defaults=false;;
12689
  --he | --h)
12690
    # Conflict between --help and --header
12691 625 jeremybenn
    as_fn_error $? "ambiguous option: \`$1'
12692 346 jeremybenn
Try \`$0 --help' for more information.";;
12693 90 jeremybenn
  --help | --hel | -h )
12694
    $as_echo "$ac_cs_usage"; exit ;;
12695
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12696
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12697
    ac_cs_silent=: ;;
12698
 
12699
  # This is an error.
12700 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$1'
12701 346 jeremybenn
Try \`$0 --help' for more information." ;;
12702 90 jeremybenn
 
12703 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
12704 90 jeremybenn
     ac_need_defaults=false ;;
12705
 
12706
  esac
12707
  shift
12708
done
12709
 
12710
ac_configure_extra_args=
12711
 
12712
if $ac_cs_silent; then
12713
  exec 6>/dev/null
12714
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12715
fi
12716
 
12717
_ACEOF
12718
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12719
if \$ac_cs_recheck; then
12720
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12721
  shift
12722
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12723
  CONFIG_SHELL='$SHELL'
12724
  export CONFIG_SHELL
12725
  exec "\$@"
12726
fi
12727
 
12728
_ACEOF
12729
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12730
exec 5>>config.log
12731
{
12732
  echo
12733
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12734
## Running $as_me. ##
12735
_ASBOX
12736
  $as_echo "$ac_log"
12737
} >&5
12738
 
12739
_ACEOF
12740
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12741
#
12742
# INIT-COMMANDS
12743
#
12744
 
12745
 
12746
# The HP-UX ksh and POSIX shell print the target directory to stdout
12747
# if CDPATH is set.
12748
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12749
 
12750
sed_quote_subst='$sed_quote_subst'
12751
double_quote_subst='$double_quote_subst'
12752
delay_variable_subst='$delay_variable_subst'
12753 784 jeremybenn
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12754
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12755
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12756
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12757
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12758
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12759
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12760
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12761
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12762
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12763
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12764
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12765
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12766
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12767
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12768
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12769
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12770
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12771
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12772
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12773
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12774
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12775
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12776
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12777
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12778
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12779
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12780
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12781
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12782
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12783
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12784
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12785
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12786
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12787
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12788
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12789
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12790
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12791
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12792
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12793
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12794
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12795
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12796
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12797
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12798
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12799
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12800
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12801
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12802
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12803
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12804
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12805
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12806
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12807
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12808
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12809
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12810
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12811
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12812
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12813
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12814
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12815
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12816
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12817
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12818
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12819
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12820
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12821
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12822
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12823
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12824
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12825
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12826
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12827
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12828
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12829
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12830
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12831
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12832
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12833
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12834
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12835
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12836
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12837
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12838
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12839
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12840
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12841
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12842
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12843
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12844
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12845
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12846
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12847
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12848
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12849
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12850
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12851
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12852
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12853
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12854
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12855
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12856
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12857
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12858
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12859
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12860
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12861
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12862
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12863
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12864
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12865
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12866
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12867
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12868
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12869
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12870
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12871
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12872
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12873
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12874
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12875
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12876
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12877
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12878
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12879
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12880
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12881
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12882
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12883 90 jeremybenn
 
12884
LTCC='$LTCC'
12885
LTCFLAGS='$LTCFLAGS'
12886
compiler='$compiler_DEFAULT'
12887
 
12888 784 jeremybenn
# A function that is used when there is no print builtin or printf.
12889
func_fallback_echo ()
12890
{
12891
  eval 'cat <<_LTECHO_EOF
12892
\$1
12893
_LTECHO_EOF'
12894
}
12895
 
12896 90 jeremybenn
# Quote evaled strings.
12897 784 jeremybenn
for var in SHELL \
12898
ECHO \
12899
SED \
12900 90 jeremybenn
GREP \
12901
EGREP \
12902
FGREP \
12903
LD \
12904
NM \
12905
LN_S \
12906
lt_SP2NL \
12907
lt_NL2SP \
12908
reload_flag \
12909
OBJDUMP \
12910
deplibs_check_method \
12911
file_magic_cmd \
12912 784 jeremybenn
file_magic_glob \
12913
want_nocaseglob \
12914
DLLTOOL \
12915
sharedlib_from_linklib_cmd \
12916 90 jeremybenn
AR \
12917
AR_FLAGS \
12918 784 jeremybenn
archiver_list_spec \
12919 90 jeremybenn
STRIP \
12920
RANLIB \
12921
CC \
12922
CFLAGS \
12923
compiler \
12924
lt_cv_sys_global_symbol_pipe \
12925
lt_cv_sys_global_symbol_to_cdecl \
12926
lt_cv_sys_global_symbol_to_c_name_address \
12927
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12928 784 jeremybenn
nm_file_list_spec \
12929 90 jeremybenn
lt_prog_compiler_no_builtin_flag \
12930 784 jeremybenn
lt_prog_compiler_pic \
12931 90 jeremybenn
lt_prog_compiler_wl \
12932
lt_prog_compiler_static \
12933
lt_cv_prog_compiler_c_o \
12934
need_locks \
12935 784 jeremybenn
MANIFEST_TOOL \
12936 90 jeremybenn
DSYMUTIL \
12937
NMEDIT \
12938
LIPO \
12939
OTOOL \
12940
OTOOL64 \
12941
shrext_cmds \
12942
export_dynamic_flag_spec \
12943
whole_archive_flag_spec \
12944
compiler_needs_object \
12945
with_gnu_ld \
12946
allow_undefined_flag \
12947
no_undefined_flag \
12948
hardcode_libdir_flag_spec \
12949
hardcode_libdir_flag_spec_ld \
12950
hardcode_libdir_separator \
12951
exclude_expsyms \
12952
include_expsyms \
12953
file_list_spec \
12954
variables_saved_for_relink \
12955
libname_spec \
12956
library_names_spec \
12957
soname_spec \
12958 784 jeremybenn
install_override_mode \
12959 90 jeremybenn
finish_eval \
12960
old_striplib \
12961
striplib; do
12962 784 jeremybenn
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12963 90 jeremybenn
    *[\\\\\\\`\\"\\\$]*)
12964 784 jeremybenn
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12965 90 jeremybenn
      ;;
12966
    *)
12967
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12968
      ;;
12969
    esac
12970
done
12971
 
12972
# Double-quote double-evaled strings.
12973
for var in reload_cmds \
12974
old_postinstall_cmds \
12975
old_postuninstall_cmds \
12976
old_archive_cmds \
12977
extract_expsyms_cmds \
12978
old_archive_from_new_cmds \
12979
old_archive_from_expsyms_cmds \
12980
archive_cmds \
12981
archive_expsym_cmds \
12982
module_cmds \
12983
module_expsym_cmds \
12984
export_symbols_cmds \
12985
prelink_cmds \
12986 784 jeremybenn
postlink_cmds \
12987 90 jeremybenn
postinstall_cmds \
12988
postuninstall_cmds \
12989
finish_cmds \
12990
sys_lib_search_path_spec \
12991
sys_lib_dlsearch_path_spec; do
12992 784 jeremybenn
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12993 90 jeremybenn
    *[\\\\\\\`\\"\\\$]*)
12994 784 jeremybenn
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12995 90 jeremybenn
      ;;
12996
    *)
12997
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12998
      ;;
12999
    esac
13000
done
13001
 
13002
ac_aux_dir='$ac_aux_dir'
13003
xsi_shell='$xsi_shell'
13004
lt_shell_append='$lt_shell_append'
13005
 
13006
# See if we are running on zsh, and set the options which allow our
13007
# commands through without removal of \ escapes INIT.
13008
if test -n "\${ZSH_VERSION+set}" ; then
13009
   setopt NO_GLOB_SUBST
13010
fi
13011
 
13012
 
13013
    PACKAGE='$PACKAGE'
13014
    VERSION='$VERSION'
13015
    TIMESTAMP='$TIMESTAMP'
13016
    RM='$RM'
13017
    ofile='$ofile'
13018
 
13019
 
13020
 
13021
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13022
 
13023
_ACEOF
13024
 
13025
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026
 
13027
# Handling of arguments.
13028
for ac_config_target in $ac_config_targets
13029
do
13030
  case $ac_config_target in
13031
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13032
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13033
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13034
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13035
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
13036
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
13037
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
13038
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
13039
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
13040
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
13041
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
13042
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
13043
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
13044
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
13045
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
13046
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
13047
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
13048
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
13049 104 jeremybenn
    "fp/Makefile") CONFIG_FILES="$CONFIG_FILES fp/Makefile" ;;
13050 233 julius
    "testfloat/Makefile") CONFIG_FILES="$CONFIG_FILES testfloat/Makefile" ;;
13051 90 jeremybenn
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
13052
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
13053
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
13054 93 jeremybenn
    "int-logger/Makefile") CONFIG_FILES="$CONFIG_FILES int-logger/Makefile" ;;
13055 90 jeremybenn
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
13056
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
13057
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
13058
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
13059
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
13060
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
13061
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
13062
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
13063
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
13064
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
13065
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
13066
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
13067
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
13068
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
13069
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
13070
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
13071 93 jeremybenn
    "upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES upcalls/Makefile" ;;
13072 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
13073 90 jeremybenn
 
13074 625 jeremybenn
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13075 90 jeremybenn
  esac
13076
done
13077
 
13078
 
13079
# If the user did not use the arguments to specify the items to instantiate,
13080
# then the envvar interface is used.  Set only those that are not.
13081
# We use the long form for the default assignment because of an extremely
13082
# bizarre bug on SunOS 4.1.3.
13083
if $ac_need_defaults; then
13084
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13085
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13086
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13087
fi
13088
 
13089
# Have a temporary directory for convenience.  Make it in the build tree
13090
# simply because there is no reason against having it here, and in addition,
13091
# creating and moving files from /tmp can sometimes cause problems.
13092
# Hook for its removal unless debugging.
13093
# Note that there is a small window in which the directory will not be cleaned:
13094
# after its creation but before its name has been assigned to `$tmp'.
13095
$debug ||
13096
{
13097 625 jeremybenn
  tmp= ac_tmp=
13098 90 jeremybenn
  trap 'exit_status=$?
13099 625 jeremybenn
  : "${ac_tmp:=$tmp}"
13100
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13101 90 jeremybenn
' 0
13102 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
13103 90 jeremybenn
}
13104
# Create a (secure) tmp directory for tmp files.
13105
 
13106
{
13107
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13108 625 jeremybenn
  test -d "$tmp"
13109 90 jeremybenn
}  ||
13110
{
13111
  tmp=./conf$$-$RANDOM
13112
  (umask 077 && mkdir "$tmp")
13113 625 jeremybenn
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13114
ac_tmp=$tmp
13115 90 jeremybenn
 
13116
# Set up the scripts for CONFIG_FILES section.
13117
# No need to generate them if there are no CONFIG_FILES.
13118
# This happens for instance with `./config.status config.h'.
13119
if test -n "$CONFIG_FILES"; then
13120
 
13121
 
13122 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
13123
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13124
# But we know of no other shell where ac_cr would be empty at this
13125
# point, so we can use a bashism as a fallback.
13126
if test "x$ac_cr" = x; then
13127
  eval ac_cr=\$\'\\r\'
13128
fi
13129 90 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13130
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13131 625 jeremybenn
  ac_cs_awk_cr='\\r'
13132 90 jeremybenn
else
13133
  ac_cs_awk_cr=$ac_cr
13134
fi
13135
 
13136 625 jeremybenn
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13137 90 jeremybenn
_ACEOF
13138
 
13139
 
13140
{
13141
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13142
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13143
  echo "_ACEOF"
13144
} >conf$$subs.sh ||
13145 625 jeremybenn
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13146
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13147 90 jeremybenn
ac_delim='%!_!# '
13148
for ac_last_try in false false false false false :; do
13149
  . ./conf$$subs.sh ||
13150 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13151 90 jeremybenn
 
13152
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13153
  if test $ac_delim_n = $ac_delim_num; then
13154
    break
13155
  elif $ac_last_try; then
13156 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13157 90 jeremybenn
  else
13158
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13159
  fi
13160
done
13161
rm -f conf$$subs.sh
13162
 
13163
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13164 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13165 90 jeremybenn
_ACEOF
13166
sed -n '
13167
h
13168
s/^/S["/; s/!.*/"]=/
13169
p
13170
g
13171
s/^[^!]*!//
13172
:repl
13173
t repl
13174
s/'"$ac_delim"'$//
13175
t delim
13176
:nl
13177
h
13178 625 jeremybenn
s/\(.\{148\}\)..*/\1/
13179 90 jeremybenn
t more1
13180
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13181
p
13182
n
13183
b repl
13184
:more1
13185
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13186
p
13187
g
13188
s/.\{148\}//
13189
t nl
13190
:delim
13191
h
13192 625 jeremybenn
s/\(.\{148\}\)..*/\1/
13193 90 jeremybenn
t more2
13194
s/["\\]/\\&/g; s/^/"/; s/$/"/
13195
p
13196
b
13197
:more2
13198
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13199
p
13200
g
13201
s/.\{148\}//
13202
t delim
13203
' 
13204
/^[^""]/{
13205
  N
13206
  s/\n//
13207
}
13208
' >>$CONFIG_STATUS || ac_write_fail=1
13209
rm -f conf$$subs.awk
13210
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13211
_ACAWK
13212 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13213 90 jeremybenn
  for (key in S) S_is_set[key] = 1
13214
  FS = ""
13215
 
13216
}
13217
{
13218
  line = $ 0
13219
  nfields = split(line, field, "@")
13220
  substed = 0
13221
  len = length(field[1])
13222
  for (i = 2; i < nfields; i++) {
13223
    key = field[i]
13224
    keylen = length(key)
13225
    if (S_is_set[key]) {
13226
      value = S[key]
13227
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13228
      len += length(value) + length(field[++i])
13229
      substed = 1
13230
    } else
13231
      len += 1 + keylen
13232
  }
13233
 
13234
  print line
13235
}
13236
 
13237
_ACAWK
13238
_ACEOF
13239
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13240
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13241
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13242
else
13243
  cat
13244 625 jeremybenn
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13245
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13246 90 jeremybenn
_ACEOF
13247
 
13248 625 jeremybenn
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13249
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13250 90 jeremybenn
# trailing colons and then remove the whole line if VPATH becomes empty
13251
# (actually we leave an empty line to preserve line numbers).
13252
if test "x$srcdir" = x.; then
13253 625 jeremybenn
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13254
h
13255
s///
13256
s/^/:/
13257
s/[      ]*$/:/
13258
s/:\$(srcdir):/:/g
13259
s/:\${srcdir}:/:/g
13260
s/:@srcdir@:/:/g
13261
s/^:*//
13262 90 jeremybenn
s/:*$//
13263 625 jeremybenn
x
13264
s/\(=[   ]*\).*/\1/
13265
G
13266
s/\n//
13267 90 jeremybenn
s/^[^=]*=[       ]*$//
13268
}'
13269
fi
13270
 
13271
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272
fi # test -n "$CONFIG_FILES"
13273
 
13274
# Set up the scripts for CONFIG_HEADERS section.
13275
# No need to generate them if there are no CONFIG_HEADERS.
13276
# This happens for instance with `./config.status Makefile'.
13277
if test -n "$CONFIG_HEADERS"; then
13278 625 jeremybenn
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13279 90 jeremybenn
BEGIN {
13280
_ACEOF
13281
 
13282
# Transform confdefs.h into an awk script `defines.awk', embedded as
13283
# here-document in config.status, that substitutes the proper values into
13284
# config.h.in to produce config.h.
13285
 
13286
# Create a delimiter string that does not exist in confdefs.h, to ease
13287
# handling of long lines.
13288
ac_delim='%!_!# '
13289
for ac_last_try in false false :; do
13290 625 jeremybenn
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13291
  if test -z "$ac_tt"; then
13292 90 jeremybenn
    break
13293
  elif $ac_last_try; then
13294 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13295 90 jeremybenn
  else
13296
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13297
  fi
13298
done
13299
 
13300
# For the awk script, D is an array of macro values keyed by name,
13301
# likewise P contains macro parameters if any.  Preserve backslash
13302
# newline sequences.
13303
 
13304
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13305
sed -n '
13306
s/.\{148\}/&'"$ac_delim"'/g
13307
t rset
13308
:rset
13309
s/^[     ]*#[    ]*define[       ][      ]*/ /
13310
t def
13311
d
13312
:def
13313
s/\\$//
13314
t bsnl
13315
s/["\\]/\\&/g
13316
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13317
D["\1"]=" \3"/p
13318
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13319
d
13320
:bsnl
13321
s/["\\]/\\&/g
13322
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13323
D["\1"]=" \3\\\\\\n"\\/p
13324
t cont
13325
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13326
t cont
13327
d
13328
:cont
13329
n
13330
s/.\{148\}/&'"$ac_delim"'/g
13331
t clear
13332
:clear
13333
s/\\$//
13334
t bsnlc
13335
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13336
d
13337
:bsnlc
13338
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13339
b cont
13340
' 
13341
s/'"$ac_delim"'/"\\\
13342
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13343
 
13344
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345
  for (key in D) D_is_set[key] = 1
13346
  FS = ""
13347
}
13348
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13349
  line = \$ 0
13350
  split(line, arg, " ")
13351
  if (arg[1] == "#") {
13352
    defundef = arg[2]
13353
    mac1 = arg[3]
13354
  } else {
13355
    defundef = substr(arg[1], 2)
13356
    mac1 = arg[2]
13357
  }
13358
  split(mac1, mac2, "(") #)
13359
  macro = mac2[1]
13360
  prefix = substr(line, 1, index(line, defundef) - 1)
13361
  if (D_is_set[macro]) {
13362
    # Preserve the white space surrounding the "#".
13363
    print prefix "define", macro P[macro] D[macro]
13364
    next
13365
  } else {
13366
    # Replace #undef with comments.  This is necessary, for example,
13367
    # in the case of _POSIX_SOURCE, which is predefined and required
13368
    # on some systems where configure will not decide to define it.
13369
    if (defundef == "undef") {
13370
      print "/*", prefix defundef, macro, "*/"
13371
      next
13372
    }
13373
  }
13374
}
13375
{ print }
13376
_ACAWK
13377
_ACEOF
13378
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379 625 jeremybenn
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13380 90 jeremybenn
fi # test -n "$CONFIG_HEADERS"
13381
 
13382
 
13383
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13384
shift
13385
for ac_tag
13386
do
13387
  case $ac_tag in
13388
  :[FHLC]) ac_mode=$ac_tag; continue;;
13389
  esac
13390
  case $ac_mode$ac_tag in
13391
  :[FHL]*:*);;
13392 625 jeremybenn
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13393 90 jeremybenn
  :[FH]-) ac_tag=-:-;;
13394
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13395
  esac
13396
  ac_save_IFS=$IFS
13397
  IFS=:
13398
  set x $ac_tag
13399
  IFS=$ac_save_IFS
13400
  shift
13401
  ac_file=$1
13402
  shift
13403
 
13404
  case $ac_mode in
13405
  :L) ac_source=$1;;
13406
  :[FH])
13407
    ac_file_inputs=
13408
    for ac_f
13409
    do
13410
      case $ac_f in
13411 625 jeremybenn
      -) ac_f="$ac_tmp/stdin";;
13412 90 jeremybenn
      *) # Look for the file first in the build tree, then in the source tree
13413
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13414
         # because $ac_f cannot contain `:'.
13415
         test -f "$ac_f" ||
13416
           case $ac_f in
13417
           [\\/$]*) false;;
13418
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13419
           esac ||
13420 625 jeremybenn
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13421 90 jeremybenn
      esac
13422
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13423 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
13424 90 jeremybenn
    done
13425
 
13426
    # Let's still pretend it is `configure' which instantiates (i.e., don't
13427
    # use $as_me), people would be surprised to read:
13428
    #    /* config.h.  Generated by config.status.  */
13429
    configure_input='Generated from '`
13430
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13431
        `' by configure.'
13432
    if test x"$ac_file" != x-; then
13433
      configure_input="$ac_file.  $configure_input"
13434 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13435 90 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
13436
    fi
13437
    # Neutralize special characters interpreted by sed in replacement strings.
13438
    case $configure_input in #(
13439
    *\&* | *\|* | *\\* )
13440
       ac_sed_conf_input=`$as_echo "$configure_input" |
13441
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13442
    *) ac_sed_conf_input=$configure_input;;
13443
    esac
13444
 
13445
    case $ac_tag in
13446 625 jeremybenn
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13447
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13448 90 jeremybenn
    esac
13449
    ;;
13450
  esac
13451
 
13452
  ac_dir=`$as_dirname -- "$ac_file" ||
13453
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13454
         X"$ac_file" : 'X\(//\)[^/]' \| \
13455
         X"$ac_file" : 'X\(//\)$' \| \
13456
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13457
$as_echo X"$ac_file" |
13458
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13459
            s//\1/
13460
            q
13461
          }
13462
          /^X\(\/\/\)[^/].*/{
13463
            s//\1/
13464
            q
13465
          }
13466
          /^X\(\/\/\)$/{
13467
            s//\1/
13468
            q
13469
          }
13470
          /^X\(\/\).*/{
13471
            s//\1/
13472
            q
13473
          }
13474
          s/.*/./; q'`
13475 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
13476 90 jeremybenn
  ac_builddir=.
13477
 
13478
case "$ac_dir" in
13479
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13480
*)
13481
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13482
  # A ".." for each directory in $ac_dir_suffix.
13483
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13484
  case $ac_top_builddir_sub in
13485
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13486
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13487
  esac ;;
13488
esac
13489
ac_abs_top_builddir=$ac_pwd
13490
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13491
# for backward compatibility:
13492
ac_top_builddir=$ac_top_build_prefix
13493
 
13494
case $srcdir in
13495
  .)  # We are building in place.
13496
    ac_srcdir=.
13497
    ac_top_srcdir=$ac_top_builddir_sub
13498
    ac_abs_top_srcdir=$ac_pwd ;;
13499
  [\\/]* | ?:[\\/]* )  # Absolute name.
13500
    ac_srcdir=$srcdir$ac_dir_suffix;
13501
    ac_top_srcdir=$srcdir
13502
    ac_abs_top_srcdir=$srcdir ;;
13503
  *) # Relative name.
13504
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13505
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13506
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13507
esac
13508
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13509
 
13510
 
13511
  case $ac_mode in
13512
  :F)
13513
  #
13514
  # CONFIG_FILE
13515
  #
13516
 
13517
  case $INSTALL in
13518
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13519
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13520
  esac
13521
  ac_MKDIR_P=$MKDIR_P
13522
  case $MKDIR_P in
13523
  [\\/$]* | ?:[\\/]* ) ;;
13524
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13525
  esac
13526
_ACEOF
13527
 
13528
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13529
# If the template does not know about datarootdir, expand it.
13530
# FIXME: This hack should be removed a few years after 2.60.
13531
ac_datarootdir_hack=; ac_datarootdir_seen=
13532
ac_sed_dataroot='
13533
/datarootdir/ {
13534
  p
13535
  q
13536
}
13537
/@datadir@/p
13538
/@docdir@/p
13539
/@infodir@/p
13540
/@localedir@/p
13541 346 jeremybenn
/@mandir@/p'
13542 90 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13543
*datarootdir*) ac_datarootdir_seen=yes;;
13544
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13545 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13546 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13547
_ACEOF
13548
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13549
  ac_datarootdir_hack='
13550
  s&@datadir@&$datadir&g
13551
  s&@docdir@&$docdir&g
13552
  s&@infodir@&$infodir&g
13553
  s&@localedir@&$localedir&g
13554
  s&@mandir@&$mandir&g
13555 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
13556 90 jeremybenn
esac
13557
_ACEOF
13558
 
13559
# Neutralize VPATH when `$srcdir' = `.'.
13560
# Shell code in configure.ac might set extrasub.
13561
# FIXME: do we really want to maintain this feature?
13562
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13563
ac_sed_extra="$ac_vpsub
13564
$extrasub
13565
_ACEOF
13566
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13567
:t
13568
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13569
s|@configure_input@|$ac_sed_conf_input|;t t
13570
s&@top_builddir@&$ac_top_builddir_sub&;t t
13571
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13572
s&@srcdir@&$ac_srcdir&;t t
13573
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13574
s&@top_srcdir@&$ac_top_srcdir&;t t
13575
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13576
s&@builddir@&$ac_builddir&;t t
13577
s&@abs_builddir@&$ac_abs_builddir&;t t
13578
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13579
s&@INSTALL@&$ac_INSTALL&;t t
13580
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13581
$ac_datarootdir_hack
13582
"
13583 625 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13584
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13585 90 jeremybenn
 
13586
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13587 625 jeremybenn
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13588
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13589
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13590 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13591 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&5
13592 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13593 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&2;}
13594 90 jeremybenn
 
13595 625 jeremybenn
  rm -f "$ac_tmp/stdin"
13596 90 jeremybenn
  case $ac_file in
13597 625 jeremybenn
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13598
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13599 90 jeremybenn
  esac \
13600 625 jeremybenn
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13601 90 jeremybenn
 ;;
13602
  :H)
13603
  #
13604
  # CONFIG_HEADER
13605
  #
13606
  if test x"$ac_file" != x-; then
13607
    {
13608
      $as_echo "/* $configure_input  */" \
13609 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13610
    } >"$ac_tmp/config.h" \
13611
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13612
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13613 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13614 90 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13615
    else
13616
      rm -f "$ac_file"
13617 625 jeremybenn
      mv "$ac_tmp/config.h" "$ac_file" \
13618
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13619 90 jeremybenn
    fi
13620
  else
13621
    $as_echo "/* $configure_input  */" \
13622 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13623
      || as_fn_error $? "could not create -" "$LINENO" 5
13624 90 jeremybenn
  fi
13625
# Compute "$ac_file"'s index in $config_headers.
13626
_am_arg="$ac_file"
13627
_am_stamp_count=1
13628
for _am_header in $config_headers :; do
13629
  case $_am_header in
13630
    $_am_arg | $_am_arg:* )
13631
      break ;;
13632
    * )
13633
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13634
  esac
13635
done
13636
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13637
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13638
         X"$_am_arg" : 'X\(//\)[^/]' \| \
13639
         X"$_am_arg" : 'X\(//\)$' \| \
13640
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13641
$as_echo X"$_am_arg" |
13642
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13643
            s//\1/
13644
            q
13645
          }
13646
          /^X\(\/\/\)[^/].*/{
13647
            s//\1/
13648
            q
13649
          }
13650
          /^X\(\/\/\)$/{
13651
            s//\1/
13652
            q
13653
          }
13654
          /^X\(\/\).*/{
13655
            s//\1/
13656
            q
13657
          }
13658
          s/.*/./; q'`/stamp-h$_am_stamp_count
13659
 ;;
13660
 
13661 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13662 90 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
13663
 ;;
13664
  esac
13665
 
13666
 
13667
  case $ac_file$ac_mode in
13668
    "libtool":C)
13669
 
13670
    # See if we are running on zsh, and set the options which allow our
13671
    # commands through without removal of \ escapes.
13672
    if test -n "${ZSH_VERSION+set}" ; then
13673
      setopt NO_GLOB_SUBST
13674
    fi
13675
 
13676
    cfgfile="${ofile}T"
13677
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13678
    $RM "$cfgfile"
13679
 
13680
    cat <<_LT_EOF >> "$cfgfile"
13681
#! $SHELL
13682
 
13683
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13684
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13685
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13686
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13687
#
13688
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13689 784 jeremybenn
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13690
#                 Inc.
13691 90 jeremybenn
#   Written by Gordon Matzigkeit, 1996
13692
#
13693
#   This file is part of GNU Libtool.
13694
#
13695
# GNU Libtool is free software; you can redistribute it and/or
13696
# modify it under the terms of the GNU General Public License as
13697
# published by the Free Software Foundation; either version 2 of
13698
# the License, or (at your option) any later version.
13699
#
13700
# As a special exception to the GNU General Public License,
13701
# if you distribute this file as part of a program or library that
13702
# is built using GNU Libtool, you may include this file under the
13703
# same distribution terms that you use for the rest of that program.
13704
#
13705
# GNU Libtool is distributed in the hope that it will be useful,
13706
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13707
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13708
# GNU General Public License for more details.
13709
#
13710
# You should have received a copy of the GNU General Public License
13711
# along with GNU Libtool; see the file COPYING.  If not, a copy
13712
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13713
# obtained by writing to the Free Software Foundation, Inc.,
13714
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13715
 
13716
 
13717
# The names of the tagged configurations supported by this script.
13718
available_tags=""
13719
 
13720
# ### BEGIN LIBTOOL CONFIG
13721
 
13722
# Which release of libtool.m4 was used?
13723
macro_version=$macro_version
13724
macro_revision=$macro_revision
13725
 
13726
# Whether or not to build shared libraries.
13727
build_libtool_libs=$enable_shared
13728
 
13729
# Whether or not to build static libraries.
13730
build_old_libs=$enable_static
13731
 
13732
# What type of objects to build.
13733
pic_mode=$pic_mode
13734
 
13735
# Whether or not to optimize for fast installation.
13736
fast_install=$enable_fast_install
13737
 
13738 784 jeremybenn
# Shell to use when invoking shell scripts.
13739
SHELL=$lt_SHELL
13740
 
13741
# An echo program that protects backslashes.
13742
ECHO=$lt_ECHO
13743
 
13744 90 jeremybenn
# The host system.
13745
host_alias=$host_alias
13746
host=$host
13747
host_os=$host_os
13748
 
13749
# The build system.
13750
build_alias=$build_alias
13751
build=$build
13752
build_os=$build_os
13753
 
13754
# A sed program that does not truncate output.
13755
SED=$lt_SED
13756
 
13757
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13758
Xsed="\$SED -e 1s/^X//"
13759
 
13760
# A grep program that handles long lines.
13761
GREP=$lt_GREP
13762
 
13763
# An ERE matcher.
13764
EGREP=$lt_EGREP
13765
 
13766
# A literal string matcher.
13767
FGREP=$lt_FGREP
13768
 
13769
# A BSD- or MS-compatible name lister.
13770
NM=$lt_NM
13771
 
13772
# Whether we need soft or hard links.
13773
LN_S=$lt_LN_S
13774
 
13775
# What is the maximum length of a command?
13776
max_cmd_len=$max_cmd_len
13777
 
13778
# Object file suffix (normally "o").
13779
objext=$ac_objext
13780
 
13781
# Executable file suffix (normally "").
13782
exeext=$exeext
13783
 
13784
# whether the shell understands "unset".
13785
lt_unset=$lt_unset
13786
 
13787
# turn spaces into newlines.
13788
SP2NL=$lt_lt_SP2NL
13789
 
13790
# turn newlines into spaces.
13791
NL2SP=$lt_lt_NL2SP
13792
 
13793 784 jeremybenn
# convert \$build file names to \$host format.
13794
to_host_file_cmd=$lt_cv_to_host_file_cmd
13795 90 jeremybenn
 
13796 784 jeremybenn
# convert \$build files to toolchain format.
13797
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13798
 
13799 90 jeremybenn
# An object symbol dumper.
13800
OBJDUMP=$lt_OBJDUMP
13801
 
13802
# Method to check whether dependent libraries are shared objects.
13803
deplibs_check_method=$lt_deplibs_check_method
13804
 
13805 784 jeremybenn
# Command to use when deplibs_check_method = "file_magic".
13806 90 jeremybenn
file_magic_cmd=$lt_file_magic_cmd
13807
 
13808 784 jeremybenn
# How to find potential files when deplibs_check_method = "file_magic".
13809
file_magic_glob=$lt_file_magic_glob
13810
 
13811
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13812
want_nocaseglob=$lt_want_nocaseglob
13813
 
13814
# DLL creation program.
13815
DLLTOOL=$lt_DLLTOOL
13816
 
13817
# Command to associate shared and link libraries.
13818
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13819
 
13820 90 jeremybenn
# The archiver.
13821
AR=$lt_AR
13822 784 jeremybenn
 
13823
# Flags to create an archive.
13824 90 jeremybenn
AR_FLAGS=$lt_AR_FLAGS
13825
 
13826 784 jeremybenn
# How to feed a file listing to the archiver.
13827
archiver_list_spec=$lt_archiver_list_spec
13828
 
13829 90 jeremybenn
# A symbol stripping program.
13830
STRIP=$lt_STRIP
13831
 
13832
# Commands used to install an old-style archive.
13833
RANLIB=$lt_RANLIB
13834
old_postinstall_cmds=$lt_old_postinstall_cmds
13835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13836
 
13837 784 jeremybenn
# Whether to use a lock for old archive extraction.
13838
lock_old_archive_extraction=$lock_old_archive_extraction
13839
 
13840 90 jeremybenn
# A C compiler.
13841
LTCC=$lt_CC
13842
 
13843
# LTCC compiler flags.
13844
LTCFLAGS=$lt_CFLAGS
13845
 
13846
# Take the output of nm and produce a listing of raw symbols and C names.
13847
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13848
 
13849
# Transform the output of nm in a proper C declaration.
13850
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13851
 
13852
# Transform the output of nm in a C name address pair.
13853
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13854
 
13855
# Transform the output of nm in a C name address pair when lib prefix is needed.
13856
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13857
 
13858 784 jeremybenn
# Specify filename containing input files for \$NM.
13859
nm_file_list_spec=$lt_nm_file_list_spec
13860
 
13861
# The root where to search for dependent libraries,and in which our libraries should be installed.
13862
lt_sysroot=$lt_sysroot
13863
 
13864 90 jeremybenn
# The name of the directory that contains temporary libtool files.
13865
objdir=$objdir
13866
 
13867
# Used to examine libraries when file_magic_cmd begins with "file".
13868
MAGIC_CMD=$MAGIC_CMD
13869
 
13870
# Must we lock files when doing compilation?
13871
need_locks=$lt_need_locks
13872
 
13873 784 jeremybenn
# Manifest tool.
13874
MANIFEST_TOOL=$lt_MANIFEST_TOOL
13875
 
13876 90 jeremybenn
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13877
DSYMUTIL=$lt_DSYMUTIL
13878
 
13879
# Tool to change global to local symbols on Mac OS X.
13880
NMEDIT=$lt_NMEDIT
13881
 
13882
# Tool to manipulate fat objects and archives on Mac OS X.
13883
LIPO=$lt_LIPO
13884
 
13885
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13886
OTOOL=$lt_OTOOL
13887
 
13888
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13889
OTOOL64=$lt_OTOOL64
13890
 
13891
# Old archive suffix (normally "a").
13892
libext=$libext
13893
 
13894
# Shared library suffix (normally ".so").
13895
shrext_cmds=$lt_shrext_cmds
13896
 
13897
# The commands to extract the exported symbol list from a shared archive.
13898
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13899
 
13900
# Variables whose values should be saved in libtool wrapper scripts and
13901
# restored at link time.
13902
variables_saved_for_relink=$lt_variables_saved_for_relink
13903
 
13904
# Do we need the "lib" prefix for modules?
13905
need_lib_prefix=$need_lib_prefix
13906
 
13907
# Do we need a version for libraries?
13908
need_version=$need_version
13909
 
13910
# Library versioning type.
13911
version_type=$version_type
13912
 
13913
# Shared library runtime path variable.
13914
runpath_var=$runpath_var
13915
 
13916
# Shared library path variable.
13917
shlibpath_var=$shlibpath_var
13918
 
13919
# Is shlibpath searched before the hard-coded library search path?
13920
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13921
 
13922
# Format of library name prefix.
13923
libname_spec=$lt_libname_spec
13924
 
13925
# List of archive names.  First name is the real one, the rest are links.
13926
# The last name is the one that the linker finds with -lNAME
13927
library_names_spec=$lt_library_names_spec
13928
 
13929
# The coded name of the library, if different from the real name.
13930
soname_spec=$lt_soname_spec
13931
 
13932 784 jeremybenn
# Permission mode override for installation of shared libraries.
13933
install_override_mode=$lt_install_override_mode
13934
 
13935 90 jeremybenn
# Command to use after installation of a shared archive.
13936
postinstall_cmds=$lt_postinstall_cmds
13937
 
13938
# Command to use after uninstallation of a shared archive.
13939
postuninstall_cmds=$lt_postuninstall_cmds
13940
 
13941
# Commands used to finish a libtool library installation in a directory.
13942
finish_cmds=$lt_finish_cmds
13943
 
13944
# As "finish_cmds", except a single script fragment to be evaled but
13945
# not shown.
13946
finish_eval=$lt_finish_eval
13947
 
13948
# Whether we should hardcode library paths into libraries.
13949
hardcode_into_libs=$hardcode_into_libs
13950
 
13951
# Compile-time system search path for libraries.
13952
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13953
 
13954
# Run-time system search path for libraries.
13955
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13956
 
13957
# Whether dlopen is supported.
13958
dlopen_support=$enable_dlopen
13959
 
13960
# Whether dlopen of programs is supported.
13961
dlopen_self=$enable_dlopen_self
13962
 
13963
# Whether dlopen of statically linked programs is supported.
13964
dlopen_self_static=$enable_dlopen_self_static
13965
 
13966
# Commands to strip libraries.
13967
old_striplib=$lt_old_striplib
13968
striplib=$lt_striplib
13969
 
13970
 
13971
# The linker used to build libraries.
13972
LD=$lt_LD
13973
 
13974 784 jeremybenn
# How to create reloadable object files.
13975
reload_flag=$lt_reload_flag
13976
reload_cmds=$lt_reload_cmds
13977
 
13978 90 jeremybenn
# Commands used to build an old-style archive.
13979
old_archive_cmds=$lt_old_archive_cmds
13980
 
13981
# A language specific compiler.
13982
CC=$lt_compiler
13983
 
13984
# Is the compiler the GNU compiler?
13985
with_gcc=$GCC
13986
 
13987
# Compiler flag to turn off builtin functions.
13988
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13989
 
13990 784 jeremybenn
# Additional compiler flags for building library objects.
13991
pic_flag=$lt_lt_prog_compiler_pic
13992
 
13993 90 jeremybenn
# How to pass a linker flag through the compiler.
13994
wl=$lt_lt_prog_compiler_wl
13995
 
13996
# Compiler flag to prevent dynamic linking.
13997
link_static_flag=$lt_lt_prog_compiler_static
13998
 
13999
# Does compiler simultaneously support -c and -o options?
14000
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14001
 
14002
# Whether or not to add -lc for building shared libraries.
14003
build_libtool_need_lc=$archive_cmds_need_lc
14004
 
14005
# Whether or not to disallow shared libs when runtime libs are static.
14006
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14007
 
14008
# Compiler flag to allow reflexive dlopens.
14009
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14010
 
14011
# Compiler flag to generate shared objects directly from archives.
14012
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14013
 
14014
# Whether the compiler copes with passing no objects directly.
14015
compiler_needs_object=$lt_compiler_needs_object
14016
 
14017
# Create an old-style archive from a shared archive.
14018
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14019
 
14020
# Create a temporary old-style archive to link instead of a shared archive.
14021
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14022
 
14023
# Commands used to build a shared archive.
14024
archive_cmds=$lt_archive_cmds
14025
archive_expsym_cmds=$lt_archive_expsym_cmds
14026
 
14027
# Commands used to build a loadable module if different from building
14028
# a shared archive.
14029
module_cmds=$lt_module_cmds
14030
module_expsym_cmds=$lt_module_expsym_cmds
14031
 
14032
# Whether we are building with GNU ld or not.
14033
with_gnu_ld=$lt_with_gnu_ld
14034
 
14035
# Flag that allows shared libraries with undefined symbols to be built.
14036
allow_undefined_flag=$lt_allow_undefined_flag
14037
 
14038
# Flag that enforces no undefined symbols.
14039
no_undefined_flag=$lt_no_undefined_flag
14040
 
14041
# Flag to hardcode \$libdir into a binary during linking.
14042
# This must work even if \$libdir does not exist
14043
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14044
 
14045
# If ld is used when linking, flag to hardcode \$libdir into a binary
14046
# during linking.  This must work even if \$libdir does not exist.
14047
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14048
 
14049
# Whether we need a single "-rpath" flag with a separated argument.
14050
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14051
 
14052
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14053
# DIR into the resulting binary.
14054
hardcode_direct=$hardcode_direct
14055
 
14056
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14057
# DIR into the resulting binary and the resulting library dependency is
14058
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14059
# library is relocated.
14060
hardcode_direct_absolute=$hardcode_direct_absolute
14061
 
14062
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14063
# into the resulting binary.
14064
hardcode_minus_L=$hardcode_minus_L
14065
 
14066
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14067
# into the resulting binary.
14068
hardcode_shlibpath_var=$hardcode_shlibpath_var
14069
 
14070
# Set to "yes" if building a shared library automatically hardcodes DIR
14071
# into the library and all subsequent libraries and executables linked
14072
# against it.
14073
hardcode_automatic=$hardcode_automatic
14074
 
14075
# Set to yes if linker adds runtime paths of dependent libraries
14076
# to runtime path list.
14077
inherit_rpath=$inherit_rpath
14078
 
14079
# Whether libtool must link a program against all its dependency libraries.
14080
link_all_deplibs=$link_all_deplibs
14081
 
14082
# Set to "yes" if exported symbols are required.
14083
always_export_symbols=$always_export_symbols
14084
 
14085
# The commands to list exported symbols.
14086
export_symbols_cmds=$lt_export_symbols_cmds
14087
 
14088
# Symbols that should not be listed in the preloaded symbols.
14089
exclude_expsyms=$lt_exclude_expsyms
14090
 
14091
# Symbols that must always be exported.
14092
include_expsyms=$lt_include_expsyms
14093
 
14094
# Commands necessary for linking programs (against libraries) with templates.
14095
prelink_cmds=$lt_prelink_cmds
14096
 
14097 784 jeremybenn
# Commands necessary for finishing linking programs.
14098
postlink_cmds=$lt_postlink_cmds
14099
 
14100 90 jeremybenn
# Specify filename containing input files.
14101
file_list_spec=$lt_file_list_spec
14102
 
14103
# How to hardcode a shared library path into an executable.
14104
hardcode_action=$hardcode_action
14105
 
14106
# ### END LIBTOOL CONFIG
14107
 
14108
_LT_EOF
14109
 
14110
  case $host_os in
14111
  aix3*)
14112
    cat <<\_LT_EOF >> "$cfgfile"
14113
# AIX sometimes has problems with the GCC collect2 program.  For some
14114
# reason, if we set the COLLECT_NAMES environment variable, the problems
14115
# vanish in a puff of smoke.
14116
if test "X${COLLECT_NAMES+set}" != Xset; then
14117
  COLLECT_NAMES=
14118
  export COLLECT_NAMES
14119
fi
14120
_LT_EOF
14121
    ;;
14122
  esac
14123
 
14124
 
14125
ltmain="$ac_aux_dir/ltmain.sh"
14126
 
14127
 
14128
  # We use sed instead of cat because bash on DJGPP gets confused if
14129
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14130
  # text mode, it properly converts lines to CR/LF.  This bash problem
14131
  # is reportedly fixed, but why not run on old versions too?
14132 784 jeremybenn
  sed '$q' "$ltmain" >> "$cfgfile" \
14133
     || (rm -f "$cfgfile"; exit 1)
14134 90 jeremybenn
 
14135 784 jeremybenn
  if test x"$xsi_shell" = xyes; then
14136
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14137
func_dirname ()\
14138
{\
14139
\    case ${1} in\
14140
\      */*) func_dirname_result="${1%/*}${2}" ;;\
14141
\      *  ) func_dirname_result="${3}" ;;\
14142
\    esac\
14143
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14144
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14145
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14146
test 0 -eq $? || _lt_function_replace_fail=:
14147 90 jeremybenn
 
14148
 
14149 784 jeremybenn
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14150
func_basename ()\
14151
{\
14152
\    func_basename_result="${1##*/}"\
14153
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14154
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14155
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14156
test 0 -eq $? || _lt_function_replace_fail=:
14157 90 jeremybenn
 
14158
 
14159 784 jeremybenn
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14160
func_dirname_and_basename ()\
14161
{\
14162
\    case ${1} in\
14163
\      */*) func_dirname_result="${1%/*}${2}" ;;\
14164
\      *  ) func_dirname_result="${3}" ;;\
14165
\    esac\
14166
\    func_basename_result="${1##*/}"\
14167
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14168
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14169
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14170
test 0 -eq $? || _lt_function_replace_fail=:
14171 90 jeremybenn
 
14172
 
14173 784 jeremybenn
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14174
func_stripname ()\
14175
{\
14176
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14177
\    # positional parameters, so assign one to ordinary parameter first.\
14178
\    func_stripname_result=${3}\
14179
\    func_stripname_result=${func_stripname_result#"${1}"}\
14180
\    func_stripname_result=${func_stripname_result%"${2}"}\
14181
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14182
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14183
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14184
test 0 -eq $? || _lt_function_replace_fail=:
14185 90 jeremybenn
 
14186
 
14187 784 jeremybenn
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14188
func_split_long_opt ()\
14189
{\
14190
\    func_split_long_opt_name=${1%%=*}\
14191
\    func_split_long_opt_arg=${1#*=}\
14192
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14193
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14194
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14195
test 0 -eq $? || _lt_function_replace_fail=:
14196 90 jeremybenn
 
14197
 
14198 784 jeremybenn
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14199
func_split_short_opt ()\
14200
{\
14201
\    func_split_short_opt_arg=${1#??}\
14202
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14203
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14204
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14205
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14206
test 0 -eq $? || _lt_function_replace_fail=:
14207 90 jeremybenn
 
14208
 
14209 784 jeremybenn
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14210
func_lo2o ()\
14211
{\
14212
\    case ${1} in\
14213
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14214
\      *)    func_lo2o_result=${1} ;;\
14215
\    esac\
14216
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14217
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14218
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14219
test 0 -eq $? || _lt_function_replace_fail=:
14220 90 jeremybenn
 
14221
 
14222 784 jeremybenn
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14223
func_xform ()\
14224
{\
14225
    func_xform_result=${1%.*}.lo\
14226
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14227
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14228
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14229
test 0 -eq $? || _lt_function_replace_fail=:
14230 90 jeremybenn
 
14231
 
14232 784 jeremybenn
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14233
func_arith ()\
14234
{\
14235
    func_arith_result=$(( $* ))\
14236
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14237
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14238
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14239
test 0 -eq $? || _lt_function_replace_fail=:
14240 90 jeremybenn
 
14241
 
14242 784 jeremybenn
  sed -e '/^func_len ()$/,/^} # func_len /c\
14243
func_len ()\
14244
{\
14245
    func_len_result=${#1}\
14246
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14247
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14248
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14249
test 0 -eq $? || _lt_function_replace_fail=:
14250 90 jeremybenn
 
14251 784 jeremybenn
fi
14252 90 jeremybenn
 
14253 784 jeremybenn
if test x"$lt_shell_append" = xyes; then
14254
  sed -e '/^func_append ()$/,/^} # func_append /c\
14255
func_append ()\
14256
{\
14257
    eval "${1}+=\\${2}"\
14258
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14259
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14260
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14261
test 0 -eq $? || _lt_function_replace_fail=:
14262 90 jeremybenn
 
14263
 
14264 784 jeremybenn
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14265
func_append_quoted ()\
14266
{\
14267
\    func_quote_for_eval "${2}"\
14268
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14269
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14270
  && mv -f "$cfgfile.tmp" "$cfgfile" \
14271
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14272
test 0 -eq $? || _lt_function_replace_fail=:
14273 90 jeremybenn
 
14274
 
14275 784 jeremybenn
  # Save a `func_append' function call where possible by direct use of '+='
14276
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14277
    && mv -f "$cfgfile.tmp" "$cfgfile" \
14278
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14279
  test 0 -eq $? || _lt_function_replace_fail=:
14280
else
14281
  # Save a `func_append' function call even when '+=' is not available
14282
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14283
    && mv -f "$cfgfile.tmp" "$cfgfile" \
14284
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14285
  test 0 -eq $? || _lt_function_replace_fail=:
14286
fi
14287 90 jeremybenn
 
14288 784 jeremybenn
if test x"$_lt_function_replace_fail" = x":"; then
14289
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14290
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14291
fi
14292 90 jeremybenn
 
14293
 
14294 784 jeremybenn
   mv -f "$cfgfile" "$ofile" ||
14295 90 jeremybenn
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14296
  chmod +x "$ofile"
14297
 
14298
 ;;
14299
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14300
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14301
  # are listed without --file.  Let's play safe and only enable the eval
14302
  # if we detect the quoting.
14303
  case $CONFIG_FILES in
14304
  *\'*) eval set x "$CONFIG_FILES" ;;
14305
  *)   set x $CONFIG_FILES ;;
14306
  esac
14307
  shift
14308
  for mf
14309
  do
14310
    # Strip MF so we end up with the name of the file.
14311
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14312
    # Check whether this is an Automake generated Makefile or not.
14313
    # We used to match only the files named `Makefile.in', but
14314
    # some people rename them; so instead we look at the file content.
14315
    # Grep'ing the first line is not enough: some people post-process
14316
    # each Makefile.in and add a new line on top of each file to say so.
14317
    # Grep'ing the whole file is not good either: AIX grep has a line
14318
    # limit of 2048, but all sed's we know have understand at least 4000.
14319
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14320
      dirpart=`$as_dirname -- "$mf" ||
14321
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14322
         X"$mf" : 'X\(//\)[^/]' \| \
14323
         X"$mf" : 'X\(//\)$' \| \
14324
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14325
$as_echo X"$mf" |
14326
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14327
            s//\1/
14328
            q
14329
          }
14330
          /^X\(\/\/\)[^/].*/{
14331
            s//\1/
14332
            q
14333
          }
14334
          /^X\(\/\/\)$/{
14335
            s//\1/
14336
            q
14337
          }
14338
          /^X\(\/\).*/{
14339
            s//\1/
14340
            q
14341
          }
14342
          s/.*/./; q'`
14343
    else
14344
      continue
14345
    fi
14346
    # Extract the definition of DEPDIR, am__include, and am__quote
14347
    # from the Makefile without running `make'.
14348
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14349
    test -z "$DEPDIR" && continue
14350
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14351
    test -z "am__include" && continue
14352
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14353
    # When using ansi2knr, U may be empty or an underscore; expand it
14354
    U=`sed -n 's/^U = //p' < "$mf"`
14355
    # Find all dependency output files, they are included files with
14356
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14357
    # simplest approach to changing $(DEPDIR) to its actual value in the
14358
    # expansion.
14359
    for file in `sed -n "
14360
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14361
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14362
      # Make sure the directory exists.
14363
      test -f "$dirpart/$file" && continue
14364
      fdir=`$as_dirname -- "$file" ||
14365
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14366
         X"$file" : 'X\(//\)[^/]' \| \
14367
         X"$file" : 'X\(//\)$' \| \
14368
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14369
$as_echo X"$file" |
14370
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14371
            s//\1/
14372
            q
14373
          }
14374
          /^X\(\/\/\)[^/].*/{
14375
            s//\1/
14376
            q
14377
          }
14378
          /^X\(\/\/\)$/{
14379
            s//\1/
14380
            q
14381
          }
14382
          /^X\(\/\).*/{
14383
            s//\1/
14384
            q
14385
          }
14386
          s/.*/./; q'`
14387 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14388 90 jeremybenn
      # echo "creating $dirpart/$file"
14389
      echo '# dummy' > "$dirpart/$file"
14390
    done
14391
  done
14392
}
14393
 ;;
14394
 
14395
  esac
14396
done # for ac_tag
14397
 
14398
 
14399 346 jeremybenn
as_fn_exit 0
14400 90 jeremybenn
_ACEOF
14401
ac_clean_files=$ac_clean_files_save
14402
 
14403
test $ac_write_fail = 0 ||
14404 625 jeremybenn
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14405 90 jeremybenn
 
14406
 
14407
# configure is writing to config.log, and then calls config.status.
14408
# config.status does its own redirection, appending to config.log.
14409
# Unfortunately, on DOS this fails, as config.log is still kept open
14410
# by configure, so config.status won't be able to write to it; its
14411
# output is simply discarded.  So we exec the FD to /dev/null,
14412
# effectively closing config.log, so it can be properly (re)opened and
14413
# appended to by config.status.  When coming back to configure, we
14414
# need to make the FD available again.
14415
if test "$no_create" != yes; then
14416
  ac_cs_success=:
14417
  ac_config_status_args=
14418
  test "$silent" = yes &&
14419
    ac_config_status_args="$ac_config_status_args --quiet"
14420
  exec 5>/dev/null
14421
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14422
  exec 5>>config.log
14423
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14424
  # would make configure fail if this is the last instruction.
14425 625 jeremybenn
  $ac_cs_success || as_fn_exit 1
14426 90 jeremybenn
fi
14427
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14428 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14429 90 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14430
fi
14431
 

powered by: WebSVN 2.1.0

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