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

Subversion Repositories openrisc

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

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 233 julius
# Generated by GNU Autoconf 2.64 for or1ksim-testsuite 2010-08-01.
4 90 jeremybenn
#
5
# Report bugs to .
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 233 julius
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# Foundation, Inc.
10
#
11 90 jeremybenn
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13 233 julius
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16 90 jeremybenn
 
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19 233 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 90 jeremybenn
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27 233 julius
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32 90 jeremybenn
esac
33
fi
34
 
35
 
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 233 julius
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 90 jeremybenn
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60 233 julius
      case $arg in #(
61 90 jeremybenn
      *"$as_nl"*)
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
 
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
 
83
 
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""        $as_nl"
90
 
91
# Find who we are.  Look in the path if we contain no directory separator.
92 233 julius
case $0 in #((
93 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
for as_dir in $PATH
96
do
97
  IFS=$as_save_IFS
98
  test -z "$as_dir" && as_dir=.
99 233 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
  done
101 90 jeremybenn
IFS=$as_save_IFS
102
 
103
     ;;
104
esac
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
108
  as_myself=$0
109
fi
110
if test ! -f "$as_myself"; then
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 233 julius
  exit 1
113 90 jeremybenn
fi
114
 
115 233 julius
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there.  '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 90 jeremybenn
done
123
PS1='$ '
124
PS2='> '
125
PS4='+ '
126
 
127
# NLS nuisances.
128
LC_ALL=C
129
export LC_ALL
130
LANGUAGE=C
131
export LANGUAGE
132
 
133
# CDPATH.
134 233 julius
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 90 jeremybenn
 
136
if test "x$CONFIG_SHELL" = x; then
137 233 julius
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
  emulate sh
139
  NULLCMD=:
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
  # is contrary to our usage.  Disable this feature.
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
  setopt NO_GLOB_SUBST
144 90 jeremybenn
else
145 233 julius
  case \`(set -o) 2>/dev/null\` in #(
146
  *posix*) :
147
    set -o posix ;; #(
148
  *) :
149
     ;;
150
esac
151 90 jeremybenn
fi
152 233 julius
"
153
  as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
158 90 jeremybenn
 
159
exitcode=0
160 233 julius
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 90 jeremybenn
 
166
else
167 233 julius
  exitcode=1; echo positional parameters were not saved.
168 90 jeremybenn
fi
169 233 julius
test x\$exitcode = x0 || exit 1"
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
  if (eval "$as_required") 2>/dev/null; then :
176
  as_have_required=yes
177 90 jeremybenn
else
178 233 julius
  as_have_required=no
179 90 jeremybenn
fi
180 233 julius
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 90 jeremybenn
 
182
else
183 233 julius
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184
as_found=false
185 90 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186
do
187
  IFS=$as_save_IFS
188
  test -z "$as_dir" && as_dir=.
189 233 julius
  as_found=:
190
  case $as_dir in #(
191 90 jeremybenn
         /*)
192
           for as_base in sh bash ksh sh5; do
193 233 julius
             # Try only shells that exist, to save several forks.
194
             as_shell=$as_dir/$as_base
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  CONFIG_SHELL=$as_shell as_have_required=yes
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  break 2
200
fi
201
fi
202 90 jeremybenn
           done;;
203
       esac
204 233 julius
  as_found=false
205 90 jeremybenn
done
206 233 julius
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$SHELL as_have_required=yes
209
fi; }
210 90 jeremybenn
IFS=$as_save_IFS
211
 
212
 
213 233 julius
      if test "x$CONFIG_SHELL" != x; then :
214
  # We cannot yet assume a decent shell, so we have to provide a
215
        # neutralization value for shells without unset; and this also
216
        # works around shells that cannot unset nonexistent variables.
217
        BASH_ENV=/dev/null
218
        ENV=/dev/null
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220
        export CONFIG_SHELL
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 90 jeremybenn
fi
223
 
224 233 julius
    if test x$as_have_required = xno; then :
225
  $as_echo "$0: This script requires a shell more modern than all"
226
  $as_echo "$0: the shells that I found on your system."
227
  if test x${ZSH_VERSION+set} = xset ; then
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
  else
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: openrisc@opencores.org about your system, including any
233
$0: error possibly output before this message. Then install
234
$0: a modern shell, or manually run the script under such a
235
$0: shell if you do have one."
236
  fi
237
  exit 1
238 90 jeremybenn
fi
239
fi
240
fi
241 233 julius
SHELL=${CONFIG_SHELL-/bin/sh}
242
export SHELL
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
246 90 jeremybenn
 
247 233 julius
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
250
# as_fn_unset VAR
251
# ---------------
252
# Portably unset VAR.
253
as_fn_unset ()
254
{
255
  { eval $1=; unset $1;}
256
}
257
as_unset=as_fn_unset
258 90 jeremybenn
 
259 233 julius
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
262
as_fn_set_status ()
263
{
264
  return $1
265
} # as_fn_set_status
266 90 jeremybenn
 
267 233 julius
# as_fn_exit STATUS
268
# -----------------
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270
as_fn_exit ()
271
{
272
  set +e
273
  as_fn_set_status $1
274
  exit $1
275
} # as_fn_exit
276 90 jeremybenn
 
277 233 julius
# as_fn_mkdir_p
278
# -------------
279
# Create "$as_dir" as a directory, including parents if necessary.
280
as_fn_mkdir_p ()
281
{
282 90 jeremybenn
 
283 233 julius
  case $as_dir in #(
284
  -*) as_dir=./$as_dir;;
285
  esac
286
  test -d "$as_dir" || eval $as_mkdir_p || {
287
    as_dirs=
288
    while :; do
289
      case $as_dir in #(
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291
      *) as_qdir=$as_dir;;
292
      esac
293
      as_dirs="'$as_qdir' $as_dirs"
294
      as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
297
         X"$as_dir" : 'X\(//\)$' \| \
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301
            s//\1/
302
            q
303
          }
304
          /^X\(\/\/\)[^/].*/{
305
            s//\1/
306
            q
307
          }
308
          /^X\(\/\/\)$/{
309
            s//\1/
310
            q
311
          }
312
          /^X\(\/\).*/{
313
            s//\1/
314
            q
315
          }
316
          s/.*/./; q'`
317
      test -d "$as_dir" && break
318
    done
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 90 jeremybenn
 
322
 
323 233 julius
} # as_fn_mkdir_p
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
329
# implementations.
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
  eval 'as_fn_append ()
332
  {
333
    eval $1+=\$2
334
  }'
335
else
336
  as_fn_append ()
337
  {
338
    eval $1=\$$1\$2
339
  }
340
fi # as_fn_append
341 90 jeremybenn
 
342 233 julius
# as_fn_arith ARG...
343
# ------------------
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348
  eval 'as_fn_arith ()
349
  {
350
    as_val=$(( $* ))
351
  }'
352
else
353
  as_fn_arith ()
354
  {
355
    as_val=`expr "$@" || test $? -eq 1`
356
  }
357
fi # as_fn_arith
358 90 jeremybenn
 
359
 
360 233 julius
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
365
as_fn_error ()
366
{
367
  as_status=$?; test $as_status -eq 0 && as_status=1
368
  if test "$3"; then
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
  fi
372
  $as_echo "$as_me: error: $1" >&2
373
  as_fn_exit $as_status
374
} # as_fn_error
375 90 jeremybenn
 
376 233 julius
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378
  as_expr=expr
379 90 jeremybenn
else
380 233 julius
  as_expr=false
381 90 jeremybenn
fi
382
 
383 233 julius
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384
  as_basename=basename
385 90 jeremybenn
else
386 233 julius
  as_basename=false
387 90 jeremybenn
fi
388
 
389 233 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390
  as_dirname=dirname
391 90 jeremybenn
else
392 233 julius
  as_dirname=false
393 90 jeremybenn
fi
394
 
395 233 julius
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
         X"$0" : 'X\(//\)$' \| \
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
$as_echo X/"$0" |
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
401
            s//\1/
402
            q
403
          }
404
          /^X\/\(\/\/\)$/{
405
            s//\1/
406
            q
407
          }
408
          /^X\/\(\/\).*/{
409
            s//\1/
410
            q
411
          }
412
          s/.*/./; q'`
413 90 jeremybenn
 
414 233 julius
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
420 90 jeremybenn
 
421
 
422 233 julius
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427 90 jeremybenn
  sed -n '
428
    p
429
    /[$]LINENO/=
430
  ' <$as_myself |
431
    sed '
432
      s/[$]LINENO.*/&-/
433
      t lineno
434
      b
435
      :lineno
436
      N
437
      :loop
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439
      t loop
440
      s/-\n.*//
441
    ' >$as_me.lineno &&
442
  chmod +x "$as_me.lineno" ||
443 233 julius
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 90 jeremybenn
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
446
  # (the dirname of $[0] is not the place where we might find the
447
  # original and so on.  Autoconf is especially sensitive to this).
448
  . "./$as_me.lineno"
449
  # Exit status is that of the last command.
450
  exit
451
}
452
 
453
ECHO_C= ECHO_N= ECHO_T=
454 233 julius
case `echo -n x` in #(((((
455 90 jeremybenn
-n*)
456 233 julius
  case `echo 'xy\c'` in
457 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458 233 julius
  xy)  ECHO_C='\c';;
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460
       ECHO_T=' ';;
461 90 jeremybenn
  esac;;
462
*)
463
  ECHO_N='-n';;
464
esac
465
 
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
  rm -f conf$$.dir/conf$$.file
469
else
470
  rm -f conf$$.dir
471
  mkdir conf$$.dir 2>/dev/null
472
fi
473
if (echo >conf$$.file) 2>/dev/null; then
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
475
    as_ln_s='ln -s'
476
    # ... but there are two gotchas:
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
    # In both cases, we have to default to `cp -p'.
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
      as_ln_s='cp -p'
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
483
    as_ln_s=ln
484
  else
485
    as_ln_s='cp -p'
486
  fi
487
else
488
  as_ln_s='cp -p'
489
fi
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
492
 
493
if mkdir -p . 2>/dev/null; then
494 233 julius
  as_mkdir_p='mkdir -p "$as_dir"'
495 90 jeremybenn
else
496
  test -d ./-p && rmdir ./-p
497
  as_mkdir_p=false
498
fi
499
 
500
if test -x / >/dev/null 2>&1; then
501
  as_test_x='test -x'
502
else
503
  if ls -dL / >/dev/null 2>&1; then
504
    as_ls_L_option=L
505
  else
506
    as_ls_L_option=
507
  fi
508
  as_test_x='
509
    eval sh -c '\''
510
      if test -d "$1"; then
511
        test -d "$1/.";
512
      else
513 233 julius
        case $1 in #(
514 90 jeremybenn
        -*)set "./$1";;
515
        esac;
516 233 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
518
    '\'' sh
519
  '
520
fi
521
as_executable_p=$as_test_x
522
 
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
 
529
 
530
 
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
533
 
534
case X$lt_ECHO in
535
X*--fallback-echo)
536
  # Remove one level of quotation (which was required for Make).
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538
  ;;
539
esac
540
 
541
ECHO=${lt_ECHO-echo}
542
if test "X$1" = X--no-reexec; then
543
  # Discard the --no-reexec flag, and continue.
544
  shift
545
elif test "X$1" = X--fallback-echo; then
546
  # Avoid inline document here, it may be left over
547
  :
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
  # Yippee, $ECHO works!
550
  :
551
else
552
  # Restart under the correct shell.
553
  exec $SHELL "$0" --no-reexec ${1+"$@"}
554
fi
555
 
556
if test "X$1" = X--fallback-echo; then
557
  # used as fallback echo
558
  shift
559
  cat <<_LT_EOF
560
$*
561
_LT_EOF
562
  exit 0
563
fi
564
 
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
566
# if CDPATH is set.
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
 
569
if test -z "$lt_ECHO"; then
570
  if test "X${echo_test_string+set}" != Xset; then
571
    # find a string as large as possible, as long as the shell can cope with it
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576
      then
577
        break
578
      fi
579
    done
580
  fi
581
 
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
585
    :
586
  else
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
588
    # backslashes.  This makes it impossible to quote backslashes using
589
    #   echo "$something" | sed 's/\\/\\\\/g'
590
    #
591
    # So, first we look for a working echo in the user's PATH.
592
 
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
    for dir in $PATH /usr/ucb; do
595
      IFS="$lt_save_ifs"
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
600
        ECHO="$dir/echo"
601
        break
602
      fi
603
    done
604
    IFS="$lt_save_ifs"
605
 
606
    if test "X$ECHO" = Xecho; then
607
      # We didn't find a better echo, so look for alternatives.
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
611
        # This shell has a builtin print -r that does the trick.
612
        ECHO='print -r'
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
           test "X$CONFIG_SHELL" != X/bin/ksh; then
615
        # If we have ksh, try running configure again with it.
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
        export ORIGINAL_CONFIG_SHELL
618
        CONFIG_SHELL=/bin/ksh
619
        export CONFIG_SHELL
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621
      else
622
        # Try using printf.
623
        ECHO='printf %s\n'
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
           test "X$echo_testing_string" = "X$echo_test_string"; then
627
          # Cool, printf works
628
          :
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
             test "X$echo_testing_string" = 'X\t' &&
631
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
             test "X$echo_testing_string" = "X$echo_test_string"; then
633
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634
          export CONFIG_SHELL
635
          SHELL="$CONFIG_SHELL"
636
          export SHELL
637
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
             test "X$echo_testing_string" = 'X\t' &&
640
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
             test "X$echo_testing_string" = "X$echo_test_string"; then
642
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
        else
644
          # maybe with a smaller string...
645
          prev=:
646
 
647
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649
            then
650
              break
651
            fi
652
            prev="$cmd"
653
          done
654
 
655
          if test "$prev" != 'sed 50q "$0"'; then
656
            echo_test_string=`eval $prev`
657
            export echo_test_string
658
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659
          else
660
            # Oops.  We lost completely, so just stick with echo.
661
            ECHO=echo
662
          fi
663
        fi
664
      fi
665
    fi
666
  fi
667
fi
668
 
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
671
lt_ECHO=$ECHO
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674
fi
675
 
676
 
677
 
678
 
679 121 jeremybenn
exec 7<&0 &1
680 90 jeremybenn
 
681
# Name of the host.
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
 
686
#
687
# Initializations.
688
#
689
ac_default_prefix=/usr/local
690
ac_clean_files=
691
ac_config_libobj_dir=.
692
LIBOBJS=
693
cross_compiling=no
694
subdirs=
695
MFLAGS=
696
MAKEFLAGS=
697
 
698
# Identity of this package.
699
PACKAGE_NAME='or1ksim-testsuite'
700
PACKAGE_TARNAME='or1ksim-testsuite'
701 230 jeremybenn
PACKAGE_VERSION='2010-08-01'
702
PACKAGE_STRING='or1ksim-testsuite 2010-08-01'
703 90 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
704 233 julius
PACKAGE_URL=''
705 90 jeremybenn
 
706
# Factoring default headers for most tests.
707
ac_includes_default="\
708
#include 
709
#ifdef HAVE_SYS_TYPES_H
710
# include 
711
#endif
712
#ifdef HAVE_SYS_STAT_H
713
# include 
714
#endif
715
#ifdef STDC_HEADERS
716
# include 
717
# include 
718
#else
719
# ifdef HAVE_STDLIB_H
720
#  include 
721
# endif
722
#endif
723
#ifdef HAVE_STRING_H
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725
#  include 
726
# endif
727
# include 
728
#endif
729
#ifdef HAVE_STRINGS_H
730
# include 
731
#endif
732
#ifdef HAVE_INTTYPES_H
733
# include 
734
#endif
735
#ifdef HAVE_STDINT_H
736
# include 
737
#endif
738
#ifdef HAVE_UNISTD_H
739
# include 
740
#endif"
741
 
742
ac_subst_vars='am__EXEEXT_FALSE
743
am__EXEEXT_TRUE
744
LTLIBOBJS
745
LIBOBJS
746
am__fastdepCCAS_FALSE
747
am__fastdepCCAS_TRUE
748
CCASDEPMODE
749
CCASFLAGS
750
CCAS
751
SIM
752
BUILD_ALL_TESTS_FALSE
753
BUILD_ALL_TESTS_TRUE
754
am__fastdepCC_FALSE
755
am__fastdepCC_TRUE
756
CCDEPMODE
757
AMDEPBACKSLASH
758
AMDEP_FALSE
759
AMDEP_TRUE
760
am__quote
761
am__include
762
DEPDIR
763
am__untar
764
am__tar
765
AMTAR
766
am__leading_dot
767
SET_MAKE
768
AWK
769
mkdir_p
770
MKDIR_P
771
INSTALL_STRIP_PROGRAM
772
install_sh
773
MAKEINFO
774
AUTOHEADER
775
AUTOMAKE
776
AUTOCONF
777
ACLOCAL
778
VERSION
779
PACKAGE
780
CYGPATH_W
781
am__isrc
782
INSTALL_DATA
783
INSTALL_SCRIPT
784
INSTALL_PROGRAM
785
CPP
786
OTOOL64
787
OTOOL
788
LIPO
789
NMEDIT
790
DSYMUTIL
791
lt_ECHO
792
RANLIB
793
STRIP
794
AR
795
OBJDUMP
796
LN_S
797
NM
798
ac_ct_DUMPBIN
799
DUMPBIN
800
LD
801
FGREP
802
EGREP
803
GREP
804
SED
805
OBJEXT
806
EXEEXT
807
ac_ct_CC
808
CPPFLAGS
809
LDFLAGS
810
CFLAGS
811
CC
812
host_os
813
host_vendor
814
host_cpu
815
host
816
build_os
817
build_vendor
818
build_cpu
819
build
820
LIBTOOL
821
target_alias
822
host_alias
823
build_alias
824
LIBS
825
ECHO_T
826
ECHO_N
827
ECHO_C
828
DEFS
829
mandir
830
localedir
831
libdir
832
psdir
833
pdfdir
834
dvidir
835
htmldir
836
infodir
837
docdir
838
oldincludedir
839
includedir
840
localstatedir
841
sharedstatedir
842
sysconfdir
843
datadir
844
datarootdir
845
libexecdir
846
sbindir
847
bindir
848
program_transform_name
849
prefix
850
exec_prefix
851 233 julius
PACKAGE_URL
852 90 jeremybenn
PACKAGE_BUGREPORT
853
PACKAGE_STRING
854
PACKAGE_VERSION
855
PACKAGE_TARNAME
856
PACKAGE_NAME
857
PATH_SEPARATOR
858
SHELL'
859
ac_subst_files=''
860
ac_user_opts='
861
enable_option_checking
862
enable_shared
863
enable_static
864
with_pic
865
enable_fast_install
866
with_gnu_ld
867
enable_libtool_lock
868
enable_dependency_tracking
869
enable_all_tests
870
enable_opt
871
'
872
      ac_precious_vars='build_alias
873
host_alias
874
target_alias
875
CC
876
CFLAGS
877
LDFLAGS
878
LIBS
879
CPPFLAGS
880
CPP
881
CCAS
882
CCASFLAGS'
883
 
884
 
885
# Initialize some variables set by options.
886
ac_init_help=
887
ac_init_version=false
888
ac_unrecognized_opts=
889
ac_unrecognized_sep=
890
# The variables have the same names as the options, with
891
# dashes changed to underlines.
892
cache_file=/dev/null
893
exec_prefix=NONE
894
no_create=
895
no_recursion=
896
prefix=NONE
897
program_prefix=NONE
898
program_suffix=NONE
899
program_transform_name=s,x,x,
900
silent=
901
site=
902
srcdir=
903
verbose=
904
x_includes=NONE
905
x_libraries=NONE
906
 
907
# Installation directory options.
908
# These are left unexpanded so users can "make install exec_prefix=/foo"
909
# and all the variables that are supposed to be based on exec_prefix
910
# by default will actually change.
911
# Use braces instead of parens because sh, perl, etc. also accept them.
912
# (The list follows the same order as the GNU Coding Standards.)
913
bindir='${exec_prefix}/bin'
914
sbindir='${exec_prefix}/sbin'
915
libexecdir='${exec_prefix}/libexec'
916
datarootdir='${prefix}/share'
917
datadir='${datarootdir}'
918
sysconfdir='${prefix}/etc'
919
sharedstatedir='${prefix}/com'
920
localstatedir='${prefix}/var'
921
includedir='${prefix}/include'
922
oldincludedir='/usr/include'
923
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924
infodir='${datarootdir}/info'
925
htmldir='${docdir}'
926
dvidir='${docdir}'
927
pdfdir='${docdir}'
928
psdir='${docdir}'
929
libdir='${exec_prefix}/lib'
930
localedir='${datarootdir}/locale'
931
mandir='${datarootdir}/man'
932
 
933
ac_prev=
934
ac_dashdash=
935
for ac_option
936
do
937
  # If the previous option needs an argument, assign it.
938
  if test -n "$ac_prev"; then
939
    eval $ac_prev=\$ac_option
940
    ac_prev=
941
    continue
942
  fi
943
 
944
  case $ac_option in
945
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946
  *)    ac_optarg=yes ;;
947
  esac
948
 
949
  # Accept the important Cygnus configure options, so we can diagnose typos.
950
 
951
  case $ac_dashdash$ac_option in
952
  --)
953
    ac_dashdash=yes ;;
954
 
955
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956
    ac_prev=bindir ;;
957
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958
    bindir=$ac_optarg ;;
959
 
960
  -build | --build | --buil | --bui | --bu)
961
    ac_prev=build_alias ;;
962
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963
    build_alias=$ac_optarg ;;
964
 
965
  -cache-file | --cache-file | --cache-fil | --cache-fi \
966
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967
    ac_prev=cache_file ;;
968
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970
    cache_file=$ac_optarg ;;
971
 
972
  --config-cache | -C)
973
    cache_file=config.cache ;;
974
 
975
  -datadir | --datadir | --datadi | --datad)
976
    ac_prev=datadir ;;
977
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978
    datadir=$ac_optarg ;;
979
 
980
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981
  | --dataroo | --dataro | --datar)
982
    ac_prev=datarootdir ;;
983
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985
    datarootdir=$ac_optarg ;;
986
 
987
  -disable-* | --disable-*)
988
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989
    # Reject names that are not valid shell variable names.
990
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 233 julius
      as_fn_error "invalid feature name: $ac_useropt"
992 90 jeremybenn
    ac_useropt_orig=$ac_useropt
993
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994
    case $ac_user_opts in
995
      *"
996
"enable_$ac_useropt"
997
"*) ;;
998
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999
         ac_unrecognized_sep=', ';;
1000
    esac
1001
    eval enable_$ac_useropt=no ;;
1002
 
1003
  -docdir | --docdir | --docdi | --doc | --do)
1004
    ac_prev=docdir ;;
1005
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006
    docdir=$ac_optarg ;;
1007
 
1008
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009
    ac_prev=dvidir ;;
1010
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011
    dvidir=$ac_optarg ;;
1012
 
1013
  -enable-* | --enable-*)
1014
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015
    # Reject names that are not valid shell variable names.
1016
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 233 julius
      as_fn_error "invalid feature name: $ac_useropt"
1018 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1019
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
    case $ac_user_opts in
1021
      *"
1022
"enable_$ac_useropt"
1023
"*) ;;
1024
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025
         ac_unrecognized_sep=', ';;
1026
    esac
1027
    eval enable_$ac_useropt=\$ac_optarg ;;
1028
 
1029
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031
  | --exec | --exe | --ex)
1032
    ac_prev=exec_prefix ;;
1033
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035
  | --exec=* | --exe=* | --ex=*)
1036
    exec_prefix=$ac_optarg ;;
1037
 
1038
  -gas | --gas | --ga | --g)
1039
    # Obsolete; use --with-gas.
1040
    with_gas=yes ;;
1041
 
1042
  -help | --help | --hel | --he | -h)
1043
    ac_init_help=long ;;
1044
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045
    ac_init_help=recursive ;;
1046
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047
    ac_init_help=short ;;
1048
 
1049
  -host | --host | --hos | --ho)
1050
    ac_prev=host_alias ;;
1051
  -host=* | --host=* | --hos=* | --ho=*)
1052
    host_alias=$ac_optarg ;;
1053
 
1054
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055
    ac_prev=htmldir ;;
1056
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057
  | --ht=*)
1058
    htmldir=$ac_optarg ;;
1059
 
1060
  -includedir | --includedir | --includedi | --included | --include \
1061
  | --includ | --inclu | --incl | --inc)
1062
    ac_prev=includedir ;;
1063
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065
    includedir=$ac_optarg ;;
1066
 
1067
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068
    ac_prev=infodir ;;
1069
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070
    infodir=$ac_optarg ;;
1071
 
1072
  -libdir | --libdir | --libdi | --libd)
1073
    ac_prev=libdir ;;
1074
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075
    libdir=$ac_optarg ;;
1076
 
1077
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078
  | --libexe | --libex | --libe)
1079
    ac_prev=libexecdir ;;
1080
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081
  | --libexe=* | --libex=* | --libe=*)
1082
    libexecdir=$ac_optarg ;;
1083
 
1084
  -localedir | --localedir | --localedi | --localed | --locale)
1085
    ac_prev=localedir ;;
1086
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087
    localedir=$ac_optarg ;;
1088
 
1089
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090
  | --localstate | --localstat | --localsta | --localst | --locals)
1091
    ac_prev=localstatedir ;;
1092
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094
    localstatedir=$ac_optarg ;;
1095
 
1096
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097
    ac_prev=mandir ;;
1098
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099
    mandir=$ac_optarg ;;
1100
 
1101
  -nfp | --nfp | --nf)
1102
    # Obsolete; use --without-fp.
1103
    with_fp=no ;;
1104
 
1105
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106
  | --no-cr | --no-c | -n)
1107
    no_create=yes ;;
1108
 
1109
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111
    no_recursion=yes ;;
1112
 
1113
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115
  | --oldin | --oldi | --old | --ol | --o)
1116
    ac_prev=oldincludedir ;;
1117
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120
    oldincludedir=$ac_optarg ;;
1121
 
1122
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123
    ac_prev=prefix ;;
1124
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125
    prefix=$ac_optarg ;;
1126
 
1127
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128
  | --program-pre | --program-pr | --program-p)
1129
    ac_prev=program_prefix ;;
1130
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132
    program_prefix=$ac_optarg ;;
1133
 
1134
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135
  | --program-suf | --program-su | --program-s)
1136
    ac_prev=program_suffix ;;
1137
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139
    program_suffix=$ac_optarg ;;
1140
 
1141
  -program-transform-name | --program-transform-name \
1142
  | --program-transform-nam | --program-transform-na \
1143
  | --program-transform-n | --program-transform- \
1144
  | --program-transform | --program-transfor \
1145
  | --program-transfo | --program-transf \
1146
  | --program-trans | --program-tran \
1147
  | --progr-tra | --program-tr | --program-t)
1148
    ac_prev=program_transform_name ;;
1149
  -program-transform-name=* | --program-transform-name=* \
1150
  | --program-transform-nam=* | --program-transform-na=* \
1151
  | --program-transform-n=* | --program-transform-=* \
1152
  | --program-transform=* | --program-transfor=* \
1153
  | --program-transfo=* | --program-transf=* \
1154
  | --program-trans=* | --program-tran=* \
1155
  | --progr-tra=* | --program-tr=* | --program-t=*)
1156
    program_transform_name=$ac_optarg ;;
1157
 
1158
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159
    ac_prev=pdfdir ;;
1160
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161
    pdfdir=$ac_optarg ;;
1162
 
1163
  -psdir | --psdir | --psdi | --psd | --ps)
1164
    ac_prev=psdir ;;
1165
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166
    psdir=$ac_optarg ;;
1167
 
1168
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169
  | -silent | --silent | --silen | --sile | --sil)
1170
    silent=yes ;;
1171
 
1172
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173
    ac_prev=sbindir ;;
1174
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175
  | --sbi=* | --sb=*)
1176
    sbindir=$ac_optarg ;;
1177
 
1178
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180
  | --sharedst | --shareds | --shared | --share | --shar \
1181
  | --sha | --sh)
1182
    ac_prev=sharedstatedir ;;
1183
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186
  | --sha=* | --sh=*)
1187
    sharedstatedir=$ac_optarg ;;
1188
 
1189
  -site | --site | --sit)
1190
    ac_prev=site ;;
1191
  -site=* | --site=* | --sit=*)
1192
    site=$ac_optarg ;;
1193
 
1194
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195
    ac_prev=srcdir ;;
1196
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197
    srcdir=$ac_optarg ;;
1198
 
1199
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200
  | --syscon | --sysco | --sysc | --sys | --sy)
1201
    ac_prev=sysconfdir ;;
1202
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204
    sysconfdir=$ac_optarg ;;
1205
 
1206
  -target | --target | --targe | --targ | --tar | --ta | --t)
1207
    ac_prev=target_alias ;;
1208
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209
    target_alias=$ac_optarg ;;
1210
 
1211
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212
    verbose=yes ;;
1213
 
1214
  -version | --version | --versio | --versi | --vers | -V)
1215
    ac_init_version=: ;;
1216
 
1217
  -with-* | --with-*)
1218
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
    # Reject names that are not valid shell variable names.
1220
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 233 julius
      as_fn_error "invalid package name: $ac_useropt"
1222 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1223
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
    case $ac_user_opts in
1225
      *"
1226
"with_$ac_useropt"
1227
"*) ;;
1228
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229
         ac_unrecognized_sep=', ';;
1230
    esac
1231
    eval with_$ac_useropt=\$ac_optarg ;;
1232
 
1233
  -without-* | --without-*)
1234
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
    # Reject names that are not valid shell variable names.
1236
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 233 julius
      as_fn_error "invalid package name: $ac_useropt"
1238 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1239
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
    case $ac_user_opts in
1241
      *"
1242
"with_$ac_useropt"
1243
"*) ;;
1244
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245
         ac_unrecognized_sep=', ';;
1246
    esac
1247
    eval with_$ac_useropt=no ;;
1248
 
1249
  --x)
1250
    # Obsolete; use --with-x.
1251
    with_x=yes ;;
1252
 
1253
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254
  | --x-incl | --x-inc | --x-in | --x-i)
1255
    ac_prev=x_includes ;;
1256
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258
    x_includes=$ac_optarg ;;
1259
 
1260
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262
    ac_prev=x_libraries ;;
1263
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265
    x_libraries=$ac_optarg ;;
1266
 
1267 233 julius
  -*) as_fn_error "unrecognized option: \`$ac_option'
1268
Try \`$0 --help' for more information."
1269 90 jeremybenn
    ;;
1270
 
1271
  *=*)
1272
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273
    # Reject names that are not valid shell variable names.
1274 233 julius
    case $ac_envvar in #(
1275
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1276
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1277
    esac
1278 90 jeremybenn
    eval $ac_envvar=\$ac_optarg
1279
    export $ac_envvar ;;
1280
 
1281
  *)
1282
    # FIXME: should be removed in autoconf 3.0.
1283
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287
    ;;
1288
 
1289
  esac
1290
done
1291
 
1292
if test -n "$ac_prev"; then
1293
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 233 julius
  as_fn_error "missing argument to $ac_option"
1295 90 jeremybenn
fi
1296
 
1297
if test -n "$ac_unrecognized_opts"; then
1298
  case $enable_option_checking in
1299
    no) ;;
1300 233 julius
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1301 90 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302
  esac
1303
fi
1304
 
1305
# Check all directory arguments for consistency.
1306
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307
                datadir sysconfdir sharedstatedir localstatedir includedir \
1308
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309
                libdir localedir mandir
1310
do
1311
  eval ac_val=\$$ac_var
1312
  # Remove trailing slashes.
1313
  case $ac_val in
1314
    */ )
1315
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316
      eval $ac_var=\$ac_val;;
1317
  esac
1318
  # Be sure to have absolute directory names.
1319
  case $ac_val in
1320
    [\\/$]* | ?:[\\/]* )  continue;;
1321
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322
  esac
1323 233 julius
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1324 90 jeremybenn
done
1325
 
1326
# There might be people who depend on the old broken behavior: `$host'
1327
# used to hold the argument of --host etc.
1328
# FIXME: To remove some day.
1329
build=$build_alias
1330
host=$host_alias
1331
target=$target_alias
1332
 
1333
# FIXME: To remove some day.
1334
if test "x$host_alias" != x; then
1335
  if test "x$build_alias" = x; then
1336
    cross_compiling=maybe
1337
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338
    If a cross compiler is detected then cross compile mode will be used." >&2
1339
  elif test "x$build_alias" != "x$host_alias"; then
1340
    cross_compiling=yes
1341
  fi
1342
fi
1343
 
1344
ac_tool_prefix=
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
 
1347
test "$silent" = yes && exec 6>/dev/null
1348
 
1349
 
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
ac_ls_di=`ls -di .` &&
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 233 julius
  as_fn_error "working directory cannot be determined"
1354 90 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 233 julius
  as_fn_error "pwd does not report name of working directory"
1356 90 jeremybenn
 
1357
 
1358
# Find the source files, if location was not specified.
1359
if test -z "$srcdir"; then
1360
  ac_srcdir_defaulted=yes
1361
  # Try the directory containing this script, then the parent directory.
1362
  ac_confdir=`$as_dirname -- "$as_myself" ||
1363
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364
         X"$as_myself" : 'X\(//\)[^/]' \| \
1365
         X"$as_myself" : 'X\(//\)$' \| \
1366
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367
$as_echo X"$as_myself" |
1368
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369
            s//\1/
1370
            q
1371
          }
1372
          /^X\(\/\/\)[^/].*/{
1373
            s//\1/
1374
            q
1375
          }
1376
          /^X\(\/\/\)$/{
1377
            s//\1/
1378
            q
1379
          }
1380
          /^X\(\/\).*/{
1381
            s//\1/
1382
            q
1383
          }
1384
          s/.*/./; q'`
1385
  srcdir=$ac_confdir
1386
  if test ! -r "$srcdir/$ac_unique_file"; then
1387
    srcdir=..
1388
  fi
1389
else
1390
  ac_srcdir_defaulted=no
1391
fi
1392
if test ! -r "$srcdir/$ac_unique_file"; then
1393
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 233 julius
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1395 90 jeremybenn
fi
1396
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397
ac_abs_confdir=`(
1398 233 julius
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399 90 jeremybenn
        pwd)`
1400
# When building in place, set srcdir=.
1401
if test "$ac_abs_confdir" = "$ac_pwd"; then
1402
  srcdir=.
1403
fi
1404
# Remove unnecessary trailing slashes from srcdir.
1405
# Double slashes in file names in object file debugging info
1406
# mess up M-x gdb in Emacs.
1407
case $srcdir in
1408
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409
esac
1410
for ac_var in $ac_precious_vars; do
1411
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412
  eval ac_env_${ac_var}_value=\$${ac_var}
1413
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415
done
1416
 
1417
#
1418
# Report the --help message.
1419
#
1420
if test "$ac_init_help" = "long"; then
1421
  # Omit some internal or obsolete options to make the list less imposing.
1422
  # This message is too long to be a string in the A/UX 3.1 sh.
1423
  cat <<_ACEOF
1424 230 jeremybenn
\`configure' configures or1ksim-testsuite 2010-08-01 to adapt to many kinds of systems.
1425 90 jeremybenn
 
1426
Usage: $0 [OPTION]... [VAR=VALUE]...
1427
 
1428
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429
VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
 
1431
Defaults for the options are specified in brackets.
1432
 
1433
Configuration:
1434
  -h, --help              display this help and exit
1435
      --help=short        display options specific to this package
1436
      --help=recursive    display the short help of all the included packages
1437
  -V, --version           display version information and exit
1438
  -q, --quiet, --silent   do not print \`checking...' messages
1439
      --cache-file=FILE   cache test results in FILE [disabled]
1440
  -C, --config-cache      alias for \`--cache-file=config.cache'
1441
  -n, --no-create         do not create output files
1442
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
 
1444
Installation directories:
1445
  --prefix=PREFIX         install architecture-independent files in PREFIX
1446
                          [$ac_default_prefix]
1447
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448
                          [PREFIX]
1449
 
1450
By default, \`make install' will install all the files in
1451
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453
for instance \`--prefix=\$HOME'.
1454
 
1455
For better control, use the options below.
1456
 
1457
Fine tuning of the installation directories:
1458
  --bindir=DIR            user executables [EPREFIX/bin]
1459
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1461
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464
  --libdir=DIR            object code libraries [EPREFIX/lib]
1465
  --includedir=DIR        C header files [PREFIX/include]
1466
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1470
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1472
  --docdir=DIR            documentation root
1473
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1474
  --htmldir=DIR           html documentation [DOCDIR]
1475
  --dvidir=DIR            dvi documentation [DOCDIR]
1476
  --pdfdir=DIR            pdf documentation [DOCDIR]
1477
  --psdir=DIR             ps documentation [DOCDIR]
1478
_ACEOF
1479
 
1480
  cat <<\_ACEOF
1481
 
1482
Program names:
1483
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1484
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1485
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
 
1487
System types:
1488
  --build=BUILD     configure for building on BUILD [guessed]
1489
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490
_ACEOF
1491
fi
1492
 
1493
if test -n "$ac_init_help"; then
1494
  case $ac_init_help in
1495 230 jeremybenn
     short | recursive ) echo "Configuration of or1ksim-testsuite 2010-08-01:";;
1496 90 jeremybenn
   esac
1497
  cat <<\_ACEOF
1498
 
1499
Optional Features:
1500
  --disable-option-checking  ignore unrecognized --enable/--with options
1501
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504
  --enable-static[=PKGS]  build static libraries [default=yes]
1505
  --enable-fast-install[=PKGS]
1506
                          optimize for fast installation [default=yes]
1507
  --disable-libtool-lock  avoid locking (might break parallel builds)
1508
  --disable-dependency-tracking  speeds up one-time build
1509
  --enable-dependency-tracking   do not reject slow dependency extractors
1510
  --enable-all-tests      enable all tests, including those which do not
1511
                          compile
1512
  --enable-check-opt      enable optimizations
1513
  --enable-check-opt=level     same as gcc -O switch
1514
 
1515
Optional Packages:
1516
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518
  --with-pic              try to use only PIC/non-PIC objects [default=use
1519
                          both]
1520
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521
 
1522
Some influential environment variables:
1523
  CC          C compiler command
1524
  CFLAGS      C compiler flags
1525
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1526
              nonstandard directory 
1527
  LIBS        libraries to pass to the linker, e.g. -l
1528 121 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1529 90 jeremybenn
              you have headers in a nonstandard directory 
1530
  CPP         C preprocessor
1531
  CCAS        assembler compiler command (defaults to CC)
1532
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1533
 
1534
Use these variables to override the choices made by `configure' or to help
1535
it to find libraries and programs with nonstandard names/locations.
1536
 
1537
Report bugs to .
1538
_ACEOF
1539
ac_status=$?
1540
fi
1541
 
1542
if test "$ac_init_help" = "recursive"; then
1543
  # If there are subdirs, report their specific --help.
1544
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545
    test -d "$ac_dir" ||
1546
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547
      continue
1548
    ac_builddir=.
1549
 
1550
case "$ac_dir" in
1551
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552
*)
1553
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554
  # A ".." for each directory in $ac_dir_suffix.
1555
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556
  case $ac_top_builddir_sub in
1557
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559
  esac ;;
1560
esac
1561
ac_abs_top_builddir=$ac_pwd
1562
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563
# for backward compatibility:
1564
ac_top_builddir=$ac_top_build_prefix
1565
 
1566
case $srcdir in
1567
  .)  # We are building in place.
1568
    ac_srcdir=.
1569
    ac_top_srcdir=$ac_top_builddir_sub
1570
    ac_abs_top_srcdir=$ac_pwd ;;
1571
  [\\/]* | ?:[\\/]* )  # Absolute name.
1572
    ac_srcdir=$srcdir$ac_dir_suffix;
1573
    ac_top_srcdir=$srcdir
1574
    ac_abs_top_srcdir=$srcdir ;;
1575
  *) # Relative name.
1576
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1578
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579
esac
1580
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
 
1582
    cd "$ac_dir" || { ac_status=$?; continue; }
1583
    # Check for guested configure.
1584
    if test -f "$ac_srcdir/configure.gnu"; then
1585
      echo &&
1586
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587
    elif test -f "$ac_srcdir/configure"; then
1588
      echo &&
1589
      $SHELL "$ac_srcdir/configure" --help=recursive
1590
    else
1591
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592
    fi || ac_status=$?
1593
    cd "$ac_pwd" || { ac_status=$?; break; }
1594
  done
1595
fi
1596
 
1597
test -n "$ac_init_help" && exit $ac_status
1598
if $ac_init_version; then
1599
  cat <<\_ACEOF
1600 230 jeremybenn
or1ksim-testsuite configure 2010-08-01
1601 233 julius
generated by GNU Autoconf 2.64
1602 90 jeremybenn
 
1603 233 julius
Copyright (C) 2009 Free Software Foundation, Inc.
1604 90 jeremybenn
This configure script is free software; the Free Software Foundation
1605
gives unlimited permission to copy, distribute and modify it.
1606
_ACEOF
1607
  exit
1608
fi
1609 233 julius
 
1610
## ------------------------ ##
1611
## Autoconf initialization. ##
1612
## ------------------------ ##
1613
 
1614
# ac_fn_c_try_compile LINENO
1615
# --------------------------
1616
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1617
ac_fn_c_try_compile ()
1618
{
1619
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620
  rm -f conftest.$ac_objext
1621
  if { { ac_try="$ac_compile"
1622
case "(($ac_try" in
1623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624
  *) ac_try_echo=$ac_try;;
1625
esac
1626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627
$as_echo "$ac_try_echo"; } >&5
1628
  (eval "$ac_compile") 2>conftest.err
1629
  ac_status=$?
1630
  if test -s conftest.err; then
1631
    grep -v '^ *+' conftest.err >conftest.er1
1632
    cat conftest.er1 >&5
1633
    mv -f conftest.er1 conftest.err
1634
  fi
1635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636
  test $ac_status = 0; } && {
1637
         test -z "$ac_c_werror_flag" ||
1638
         test ! -s conftest.err
1639
       } && test -s conftest.$ac_objext; then :
1640
  ac_retval=0
1641
else
1642
  $as_echo "$as_me: failed program was:" >&5
1643
sed 's/^/| /' conftest.$ac_ext >&5
1644
 
1645
        ac_retval=1
1646
fi
1647
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
  return $ac_retval
1649
 
1650
} # ac_fn_c_try_compile
1651
 
1652
# ac_fn_c_try_link LINENO
1653
# -----------------------
1654
# Try to link conftest.$ac_ext, and return whether this succeeded.
1655
ac_fn_c_try_link ()
1656
{
1657
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658
  rm -f conftest.$ac_objext conftest$ac_exeext
1659
  if { { ac_try="$ac_link"
1660
case "(($ac_try" in
1661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662
  *) ac_try_echo=$ac_try;;
1663
esac
1664
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665
$as_echo "$ac_try_echo"; } >&5
1666
  (eval "$ac_link") 2>conftest.err
1667
  ac_status=$?
1668
  if test -s conftest.err; then
1669
    grep -v '^ *+' conftest.err >conftest.er1
1670
    cat conftest.er1 >&5
1671
    mv -f conftest.er1 conftest.err
1672
  fi
1673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674
  test $ac_status = 0; } && {
1675
         test -z "$ac_c_werror_flag" ||
1676
         test ! -s conftest.err
1677
       } && test -s conftest$ac_exeext && {
1678
         test "$cross_compiling" = yes ||
1679
         $as_test_x conftest$ac_exeext
1680
       }; then :
1681
  ac_retval=0
1682
else
1683
  $as_echo "$as_me: failed program was:" >&5
1684
sed 's/^/| /' conftest.$ac_ext >&5
1685
 
1686
        ac_retval=1
1687
fi
1688
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690
  # interfere with the next link command; also delete a directory that is
1691
  # left behind by Apple's compiler.  We do this before executing the actions.
1692
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694
  return $ac_retval
1695
 
1696
} # ac_fn_c_try_link
1697
 
1698
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699
# -------------------------------------------------------
1700
# Tests whether HEADER exists and can be compiled using the include files in
1701
# INCLUDES, setting the cache variable VAR accordingly.
1702
ac_fn_c_check_header_compile ()
1703
{
1704
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706
$as_echo_n "checking for $2... " >&6; }
1707
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708
  $as_echo_n "(cached) " >&6
1709
else
1710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711
/* end confdefs.h.  */
1712
$4
1713
#include <$2>
1714
_ACEOF
1715
if ac_fn_c_try_compile "$LINENO"; then :
1716
  eval "$3=yes"
1717
else
1718
  eval "$3=no"
1719
fi
1720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721
fi
1722
eval ac_res=\$$3
1723
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724
$as_echo "$ac_res" >&6; }
1725
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
 
1727
} # ac_fn_c_check_header_compile
1728
 
1729
# ac_fn_c_try_cpp LINENO
1730
# ----------------------
1731
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
ac_fn_c_try_cpp ()
1733
{
1734
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1736
case "(($ac_try" in
1737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738
  *) ac_try_echo=$ac_try;;
1739
esac
1740
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741
$as_echo "$ac_try_echo"; } >&5
1742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743
  ac_status=$?
1744
  if test -s conftest.err; then
1745
    grep -v '^ *+' conftest.err >conftest.er1
1746
    cat conftest.er1 >&5
1747
    mv -f conftest.er1 conftest.err
1748
  fi
1749
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750
  test $ac_status = 0; } >/dev/null && {
1751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752
         test ! -s conftest.err
1753
       }; then :
1754
  ac_retval=0
1755
else
1756
  $as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1758
 
1759
    ac_retval=1
1760
fi
1761
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
  return $ac_retval
1763
 
1764
} # ac_fn_c_try_cpp
1765
 
1766
# ac_fn_c_try_run LINENO
1767
# ----------------------
1768
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769
# that executables *can* be run.
1770
ac_fn_c_try_run ()
1771
{
1772
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773
  if { { ac_try="$ac_link"
1774
case "(($ac_try" in
1775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776
  *) ac_try_echo=$ac_try;;
1777
esac
1778
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779
$as_echo "$ac_try_echo"; } >&5
1780
  (eval "$ac_link") 2>&5
1781
  ac_status=$?
1782
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784
  { { case "(($ac_try" in
1785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786
  *) ac_try_echo=$ac_try;;
1787
esac
1788
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789
$as_echo "$ac_try_echo"; } >&5
1790
  (eval "$ac_try") 2>&5
1791
  ac_status=$?
1792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793
  test $ac_status = 0; }; }; then :
1794
  ac_retval=0
1795
else
1796
  $as_echo "$as_me: program exited with status $ac_status" >&5
1797
       $as_echo "$as_me: failed program was:" >&5
1798
sed 's/^/| /' conftest.$ac_ext >&5
1799
 
1800
       ac_retval=$ac_status
1801
fi
1802
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
  return $ac_retval
1805
 
1806
} # ac_fn_c_try_run
1807
 
1808
# ac_fn_c_check_func LINENO FUNC VAR
1809
# ----------------------------------
1810
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811
ac_fn_c_check_func ()
1812
{
1813
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815
$as_echo_n "checking for $2... " >&6; }
1816
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817
  $as_echo_n "(cached) " >&6
1818
else
1819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820
/* end confdefs.h.  */
1821
/* Define $2 to an innocuous variant, in case  declares $2.
1822
   For example, HP-UX 11i  declares gettimeofday.  */
1823
#define $2 innocuous_$2
1824
 
1825
/* System header to define __stub macros and hopefully few prototypes,
1826
    which can conflict with char $2 (); below.
1827
    Prefer  to  if __STDC__ is defined, since
1828
     exists even on freestanding compilers.  */
1829
 
1830
#ifdef __STDC__
1831
# include 
1832
#else
1833
# include 
1834
#endif
1835
 
1836
#undef $2
1837
 
1838
/* Override any GCC internal prototype to avoid an error.
1839
   Use char because int might match the return type of a GCC
1840
   builtin and then its argument prototype would still apply.  */
1841
#ifdef __cplusplus
1842
extern "C"
1843
#endif
1844
char $2 ();
1845
/* The GNU C library defines this for functions which it implements
1846
    to always fail with ENOSYS.  Some functions are actually named
1847
    something starting with __ and the normal name is an alias.  */
1848
#if defined __stub_$2 || defined __stub___$2
1849
choke me
1850
#endif
1851
 
1852
int
1853
main ()
1854
{
1855
return $2 ();
1856
  ;
1857
  return 0;
1858
}
1859
_ACEOF
1860
if ac_fn_c_try_link "$LINENO"; then :
1861
  eval "$3=yes"
1862
else
1863
  eval "$3=no"
1864
fi
1865
rm -f core conftest.err conftest.$ac_objext \
1866
    conftest$ac_exeext conftest.$ac_ext
1867
fi
1868
eval ac_res=\$$3
1869
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870
$as_echo "$ac_res" >&6; }
1871
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
 
1873
} # ac_fn_c_check_func
1874
 
1875
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876
# -------------------------------------------------------
1877
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878
# the include files in INCLUDES and setting the cache variable VAR
1879
# accordingly.
1880
ac_fn_c_check_header_mongrel ()
1881
{
1882
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885
$as_echo_n "checking for $2... " >&6; }
1886
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887
  $as_echo_n "(cached) " >&6
1888
fi
1889
eval ac_res=\$$3
1890
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891
$as_echo "$ac_res" >&6; }
1892
else
1893
  # Is the header compilable?
1894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895
$as_echo_n "checking $2 usability... " >&6; }
1896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897
/* end confdefs.h.  */
1898
$4
1899
#include <$2>
1900
_ACEOF
1901
if ac_fn_c_try_compile "$LINENO"; then :
1902
  ac_header_compiler=yes
1903
else
1904
  ac_header_compiler=no
1905
fi
1906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908
$as_echo "$ac_header_compiler" >&6; }
1909
 
1910
# Is the header present?
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912
$as_echo_n "checking $2 presence... " >&6; }
1913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914
/* end confdefs.h.  */
1915
#include <$2>
1916
_ACEOF
1917
if ac_fn_c_try_cpp "$LINENO"; then :
1918
  ac_header_preproc=yes
1919
else
1920
  ac_header_preproc=no
1921
fi
1922
rm -f conftest.err conftest.$ac_ext
1923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924
$as_echo "$ac_header_preproc" >&6; }
1925
 
1926
# So?  What about this header?
1927
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928
  yes:no: )
1929
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933
    ;;
1934
  no:yes:* )
1935
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1943
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945
( cat <<\_ASBOX
1946
## ------------------------------------- ##
1947
## Report this to openrisc@opencores.org ##
1948
## ------------------------------------- ##
1949
_ASBOX
1950
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1951
    ;;
1952
esac
1953
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954
$as_echo_n "checking for $2... " >&6; }
1955
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956
  $as_echo_n "(cached) " >&6
1957
else
1958
  eval "$3=\$ac_header_compiler"
1959
fi
1960
eval ac_res=\$$3
1961
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962
$as_echo "$ac_res" >&6; }
1963
fi
1964
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
 
1966
} # ac_fn_c_check_header_mongrel
1967
 
1968
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1969
# -------------------------------------------
1970
# Tests whether TYPE exists after having included INCLUDES, setting cache
1971
# variable VAR accordingly.
1972
ac_fn_c_check_type ()
1973
{
1974
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976
$as_echo_n "checking for $2... " >&6; }
1977
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978
  $as_echo_n "(cached) " >&6
1979
else
1980
  eval "$3=no"
1981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982
/* end confdefs.h.  */
1983
$4
1984
int
1985
main ()
1986
{
1987
if (sizeof ($2))
1988
         return 0;
1989
  ;
1990
  return 0;
1991
}
1992
_ACEOF
1993
if ac_fn_c_try_compile "$LINENO"; then :
1994
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995
/* end confdefs.h.  */
1996
$4
1997
int
1998
main ()
1999
{
2000
if (sizeof (($2)))
2001
            return 0;
2002
  ;
2003
  return 0;
2004
}
2005
_ACEOF
2006
if ac_fn_c_try_compile "$LINENO"; then :
2007
 
2008
else
2009
  eval "$3=yes"
2010
fi
2011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012
fi
2013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014
fi
2015
eval ac_res=\$$3
2016
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017
$as_echo "$ac_res" >&6; }
2018
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
 
2020
} # ac_fn_c_check_type
2021 90 jeremybenn
cat >config.log <<_ACEOF
2022
This file contains any messages produced by compilers while
2023
running configure, to aid debugging if configure makes a mistake.
2024
 
2025 230 jeremybenn
It was created by or1ksim-testsuite $as_me 2010-08-01, which was
2026 233 julius
generated by GNU Autoconf 2.64.  Invocation command line was
2027 90 jeremybenn
 
2028
  $ $0 $@
2029
 
2030
_ACEOF
2031
exec 5>>config.log
2032
{
2033
cat <<_ASUNAME
2034
## --------- ##
2035
## Platform. ##
2036
## --------- ##
2037
 
2038
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2039
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2040
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2041
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2042
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2043
 
2044
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2045
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2046
 
2047
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2048
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2049
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2050
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2051
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2052
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2053
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2054
 
2055
_ASUNAME
2056
 
2057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058
for as_dir in $PATH
2059
do
2060
  IFS=$as_save_IFS
2061
  test -z "$as_dir" && as_dir=.
2062 233 julius
    $as_echo "PATH: $as_dir"
2063
  done
2064 90 jeremybenn
IFS=$as_save_IFS
2065
 
2066
} >&5
2067
 
2068
cat >&5 <<_ACEOF
2069
 
2070
 
2071
## ----------- ##
2072
## Core tests. ##
2073
## ----------- ##
2074
 
2075
_ACEOF
2076
 
2077
 
2078
# Keep a trace of the command line.
2079
# Strip out --no-create and --no-recursion so they do not pile up.
2080
# Strip out --silent because we don't want to record it for future runs.
2081
# Also quote any args containing shell meta-characters.
2082
# Make two passes to allow for proper duplicate-argument suppression.
2083
ac_configure_args=
2084
ac_configure_args0=
2085
ac_configure_args1=
2086
ac_must_keep_next=false
2087
for ac_pass in 1 2
2088
do
2089
  for ac_arg
2090
  do
2091
    case $ac_arg in
2092
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2093
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2094
    | -silent | --silent | --silen | --sile | --sil)
2095
      continue ;;
2096
    *\'*)
2097
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2098
    esac
2099
    case $ac_pass in
2100 233 julius
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2101 90 jeremybenn
    2)
2102 233 julius
      as_fn_append ac_configure_args1 " '$ac_arg'"
2103 90 jeremybenn
      if test $ac_must_keep_next = true; then
2104
        ac_must_keep_next=false # Got value, back to normal.
2105
      else
2106
        case $ac_arg in
2107
          *=* | --config-cache | -C | -disable-* | --disable-* \
2108
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2109
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2110
          | -with-* | --with-* | -without-* | --without-* | --x)
2111
            case "$ac_configure_args0 " in
2112
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2113
            esac
2114
            ;;
2115
          -* ) ac_must_keep_next=true ;;
2116
        esac
2117
      fi
2118 233 julius
      as_fn_append ac_configure_args " '$ac_arg'"
2119 90 jeremybenn
      ;;
2120
    esac
2121
  done
2122
done
2123 233 julius
{ ac_configure_args0=; unset ac_configure_args0;}
2124
{ ac_configure_args1=; unset ac_configure_args1;}
2125 90 jeremybenn
 
2126
# When interrupted or exit'd, cleanup temporary files, and complete
2127
# config.log.  We remove comments because anyway the quotes in there
2128
# would cause problems or look ugly.
2129
# WARNING: Use '\'' to represent an apostrophe within the trap.
2130
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2131
trap 'exit_status=$?
2132
  # Save into config.log some information that might help in debugging.
2133
  {
2134
    echo
2135
 
2136
    cat <<\_ASBOX
2137
## ---------------- ##
2138
## Cache variables. ##
2139
## ---------------- ##
2140
_ASBOX
2141
    echo
2142
    # The following way of writing the cache mishandles newlines in values,
2143
(
2144
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145
    eval ac_val=\$$ac_var
2146
    case $ac_val in #(
2147
    *${as_nl}*)
2148
      case $ac_var in #(
2149 233 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151
      esac
2152
      case $ac_var in #(
2153
      _ | IFS | as_nl) ;; #(
2154
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 233 julius
      *) { eval $ac_var=; unset $ac_var;} ;;
2156 90 jeremybenn
      esac ;;
2157
    esac
2158
  done
2159
  (set) 2>&1 |
2160
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161
    *${as_nl}ac_space=\ *)
2162
      sed -n \
2163
        "s/'\''/'\''\\\\'\'''\''/g;
2164
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165
      ;; #(
2166
    *)
2167
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168
      ;;
2169
    esac |
2170
    sort
2171
)
2172
    echo
2173
 
2174
    cat <<\_ASBOX
2175
## ----------------- ##
2176
## Output variables. ##
2177
## ----------------- ##
2178
_ASBOX
2179
    echo
2180
    for ac_var in $ac_subst_vars
2181
    do
2182
      eval ac_val=\$$ac_var
2183
      case $ac_val in
2184
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185
      esac
2186
      $as_echo "$ac_var='\''$ac_val'\''"
2187
    done | sort
2188
    echo
2189
 
2190
    if test -n "$ac_subst_files"; then
2191
      cat <<\_ASBOX
2192
## ------------------- ##
2193
## File substitutions. ##
2194
## ------------------- ##
2195
_ASBOX
2196
      echo
2197
      for ac_var in $ac_subst_files
2198
      do
2199
        eval ac_val=\$$ac_var
2200
        case $ac_val in
2201
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202
        esac
2203
        $as_echo "$ac_var='\''$ac_val'\''"
2204
      done | sort
2205
      echo
2206
    fi
2207
 
2208
    if test -s confdefs.h; then
2209
      cat <<\_ASBOX
2210
## ----------- ##
2211
## confdefs.h. ##
2212
## ----------- ##
2213
_ASBOX
2214
      echo
2215
      cat confdefs.h
2216
      echo
2217
    fi
2218
    test "$ac_signal" != 0 &&
2219
      $as_echo "$as_me: caught signal $ac_signal"
2220
    $as_echo "$as_me: exit $exit_status"
2221
  } >&5
2222
  rm -f core *.core core.conftest.* &&
2223
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224
    exit $exit_status
2225
' 0
2226
for ac_signal in 1 2 13 15; do
2227 233 julius
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 90 jeremybenn
done
2229
ac_signal=0
2230
 
2231
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2232
rm -f -r conftest* confdefs.h
2233
 
2234 233 julius
$as_echo "/* confdefs.h */" > confdefs.h
2235
 
2236 90 jeremybenn
# Predefined preprocessor variables.
2237
 
2238
cat >>confdefs.h <<_ACEOF
2239
#define PACKAGE_NAME "$PACKAGE_NAME"
2240
_ACEOF
2241
 
2242
cat >>confdefs.h <<_ACEOF
2243
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244
_ACEOF
2245
 
2246
cat >>confdefs.h <<_ACEOF
2247
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2248
_ACEOF
2249
 
2250
cat >>confdefs.h <<_ACEOF
2251
#define PACKAGE_STRING "$PACKAGE_STRING"
2252
_ACEOF
2253
 
2254
cat >>confdefs.h <<_ACEOF
2255
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256
_ACEOF
2257
 
2258 233 julius
cat >>confdefs.h <<_ACEOF
2259
#define PACKAGE_URL "$PACKAGE_URL"
2260
_ACEOF
2261 90 jeremybenn
 
2262 233 julius
 
2263 90 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2264
# Prefer an explicitly selected file to automatically selected ones.
2265
ac_site_file1=NONE
2266
ac_site_file2=NONE
2267
if test -n "$CONFIG_SITE"; then
2268
  ac_site_file1=$CONFIG_SITE
2269
elif test "x$prefix" != xNONE; then
2270
  ac_site_file1=$prefix/share/config.site
2271
  ac_site_file2=$prefix/etc/config.site
2272
else
2273
  ac_site_file1=$ac_default_prefix/share/config.site
2274
  ac_site_file2=$ac_default_prefix/etc/config.site
2275
fi
2276
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2277
do
2278
  test "x$ac_site_file" = xNONE && continue
2279 121 jeremybenn
  if test -r "$ac_site_file"; then
2280 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2281 90 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2282
    sed 's/^/| /' "$ac_site_file" >&5
2283
    . "$ac_site_file"
2284
  fi
2285
done
2286
 
2287
if test -r "$cache_file"; then
2288 121 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2289
  # files actually), so we avoid doing that.
2290
  if test -f "$cache_file"; then
2291 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292 90 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2293
    case $cache_file in
2294
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295
      *)                      . "./$cache_file";;
2296
    esac
2297
  fi
2298
else
2299 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300 90 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2301
  >$cache_file
2302
fi
2303
 
2304
# Check that the precious variables saved in the cache have kept the same
2305
# value.
2306
ac_cache_corrupted=false
2307
for ac_var in $ac_precious_vars; do
2308
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309
  eval ac_new_set=\$ac_env_${ac_var}_set
2310
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311
  eval ac_new_val=\$ac_env_${ac_var}_value
2312
  case $ac_old_set,$ac_new_set in
2313
    set,)
2314 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316
      ac_cache_corrupted=: ;;
2317
    ,set)
2318 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320
      ac_cache_corrupted=: ;;
2321
    ,);;
2322
    *)
2323
      if test "x$ac_old_val" != "x$ac_new_val"; then
2324
        # differences in whitespace do not lead to failure.
2325
        ac_old_val_w=`echo x $ac_old_val`
2326
        ac_new_val_w=`echo x $ac_new_val`
2327
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 233 julius
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330
          ac_cache_corrupted=:
2331
        else
2332 233 julius
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 90 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334
          eval $ac_var=\$ac_old_val
2335
        fi
2336 233 julius
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2337 90 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2338 233 julius
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2339 90 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2340
      fi;;
2341
  esac
2342
  # Pass precious variables to config.status.
2343
  if test "$ac_new_set" = set; then
2344
    case $ac_new_val in
2345
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346
    *) ac_arg=$ac_var=$ac_new_val ;;
2347
    esac
2348
    case " $ac_configure_args " in
2349
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2350 233 julius
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 90 jeremybenn
    esac
2352
  fi
2353
done
2354
if $ac_cache_corrupted; then
2355 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358 90 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 233 julius
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360 90 jeremybenn
fi
2361 233 julius
## -------------------- ##
2362
## Main body of script. ##
2363
## -------------------- ##
2364 90 jeremybenn
 
2365
ac_ext=c
2366
ac_cpp='$CPP $CPPFLAGS'
2367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
 
2371
 
2372
 
2373
 
2374
case `pwd` in
2375
  *\ * | *\     *)
2376 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2377 90 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2378
esac
2379
 
2380
 
2381
 
2382 95 jeremybenn
macro_version='2.2.6b'
2383
macro_revision='1.3017'
2384 90 jeremybenn
 
2385
 
2386
 
2387
 
2388
 
2389
 
2390
 
2391
 
2392
 
2393
 
2394
 
2395
 
2396
 
2397
ltmain="$ac_aux_dir/ltmain.sh"
2398
 
2399
ac_aux_dir=
2400
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 233 julius
  for ac_t in install-sh install.sh shtool; do
2402
    if test -f "$ac_dir/$ac_t"; then
2403
      ac_aux_dir=$ac_dir
2404
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2405
      break 2
2406
    fi
2407
  done
2408 90 jeremybenn
done
2409
if test -z "$ac_aux_dir"; then
2410 233 julius
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2411 90 jeremybenn
fi
2412
 
2413
# These three variables are undocumented and unsupported,
2414
# and are intended to be withdrawn in a future Autoconf release.
2415
# They can cause serious problems if a builder's source tree is in a directory
2416
# whose full name contains unusual characters.
2417
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
 
2421
 
2422
# Make sure we can run config.sub.
2423
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 233 julius
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2425 90 jeremybenn
 
2426 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427 90 jeremybenn
$as_echo_n "checking build system type... " >&6; }
2428 233 julius
if test "${ac_cv_build+set}" = set; then :
2429 90 jeremybenn
  $as_echo_n "(cached) " >&6
2430
else
2431
  ac_build_alias=$build_alias
2432
test "x$ac_build_alias" = x &&
2433
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434
test "x$ac_build_alias" = x &&
2435 233 julius
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2436 90 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 233 julius
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438 90 jeremybenn
 
2439
fi
2440 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441 90 jeremybenn
$as_echo "$ac_cv_build" >&6; }
2442
case $ac_cv_build in
2443
*-*-*) ;;
2444 233 julius
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2445 90 jeremybenn
esac
2446
build=$ac_cv_build
2447
ac_save_IFS=$IFS; IFS='-'
2448
set x $ac_cv_build
2449
shift
2450
build_cpu=$1
2451
build_vendor=$2
2452
shift; shift
2453
# Remember, the first character of IFS is used to create $*,
2454
# except with old shells:
2455
build_os=$*
2456
IFS=$ac_save_IFS
2457
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
 
2459
 
2460 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461 90 jeremybenn
$as_echo_n "checking host system type... " >&6; }
2462 233 julius
if test "${ac_cv_host+set}" = set; then :
2463 90 jeremybenn
  $as_echo_n "(cached) " >&6
2464
else
2465
  if test "x$host_alias" = x; then
2466
  ac_cv_host=$ac_cv_build
2467
else
2468
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 233 julius
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470 90 jeremybenn
fi
2471
 
2472
fi
2473 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474 90 jeremybenn
$as_echo "$ac_cv_host" >&6; }
2475
case $ac_cv_host in
2476
*-*-*) ;;
2477 233 julius
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2478 90 jeremybenn
esac
2479
host=$ac_cv_host
2480
ac_save_IFS=$IFS; IFS='-'
2481
set x $ac_cv_host
2482
shift
2483
host_cpu=$1
2484
host_vendor=$2
2485
shift; shift
2486
# Remember, the first character of IFS is used to create $*,
2487
# except with old shells:
2488
host_os=$*
2489
IFS=$ac_save_IFS
2490
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
 
2492
 
2493
ac_ext=c
2494
ac_cpp='$CPP $CPPFLAGS'
2495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
if test -n "$ac_tool_prefix"; then
2499
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2503 233 julius
if test "${ac_cv_prog_CC+set}" = set; then :
2504 90 jeremybenn
  $as_echo_n "(cached) " >&6
2505
else
2506
  if test -n "$CC"; then
2507
  ac_cv_prog_CC="$CC" # Let the user override the test.
2508
else
2509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510
for as_dir in $PATH
2511
do
2512
  IFS=$as_save_IFS
2513
  test -z "$as_dir" && as_dir=.
2514 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2515 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 90 jeremybenn
    break 2
2519
  fi
2520
done
2521 233 julius
  done
2522 90 jeremybenn
IFS=$as_save_IFS
2523
 
2524
fi
2525
fi
2526
CC=$ac_cv_prog_CC
2527
if test -n "$CC"; then
2528 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2529 90 jeremybenn
$as_echo "$CC" >&6; }
2530
else
2531 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 90 jeremybenn
$as_echo "no" >&6; }
2533
fi
2534
 
2535
 
2536
fi
2537
if test -z "$ac_cv_prog_CC"; then
2538
  ac_ct_CC=$CC
2539
  # Extract the first word of "gcc", so it can be a program name with args.
2540
set dummy gcc; ac_word=$2
2541 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2543 233 julius
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2544 90 jeremybenn
  $as_echo_n "(cached) " >&6
2545
else
2546
  if test -n "$ac_ct_CC"; then
2547
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548
else
2549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550
for as_dir in $PATH
2551
do
2552
  IFS=$as_save_IFS
2553
  test -z "$as_dir" && as_dir=.
2554 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2555 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556
    ac_cv_prog_ac_ct_CC="gcc"
2557 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 90 jeremybenn
    break 2
2559
  fi
2560
done
2561 233 julius
  done
2562 90 jeremybenn
IFS=$as_save_IFS
2563
 
2564
fi
2565
fi
2566
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567
if test -n "$ac_ct_CC"; then
2568 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2569 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2570
else
2571 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 90 jeremybenn
$as_echo "no" >&6; }
2573
fi
2574
 
2575
  if test "x$ac_ct_CC" = x; then
2576
    CC=""
2577
  else
2578
    case $cross_compiling:$ac_tool_warned in
2579
yes:)
2580 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2581 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582
ac_tool_warned=yes ;;
2583
esac
2584
    CC=$ac_ct_CC
2585
  fi
2586
else
2587
  CC="$ac_cv_prog_CC"
2588
fi
2589
 
2590
if test -z "$CC"; then
2591
          if test -n "$ac_tool_prefix"; then
2592
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593
set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2596 233 julius
if test "${ac_cv_prog_CC+set}" = set; then :
2597 90 jeremybenn
  $as_echo_n "(cached) " >&6
2598
else
2599
  if test -n "$CC"; then
2600
  ac_cv_prog_CC="$CC" # Let the user override the test.
2601
else
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603
for as_dir in $PATH
2604
do
2605
  IFS=$as_save_IFS
2606
  test -z "$as_dir" && as_dir=.
2607 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2608 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 90 jeremybenn
    break 2
2612
  fi
2613
done
2614 233 julius
  done
2615 90 jeremybenn
IFS=$as_save_IFS
2616
 
2617
fi
2618
fi
2619
CC=$ac_cv_prog_CC
2620
if test -n "$CC"; then
2621 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 90 jeremybenn
$as_echo "$CC" >&6; }
2623
else
2624 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 90 jeremybenn
$as_echo "no" >&6; }
2626
fi
2627
 
2628
 
2629
  fi
2630
fi
2631
if test -z "$CC"; then
2632
  # Extract the first word of "cc", so it can be a program name with args.
2633
set dummy cc; ac_word=$2
2634 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2636 233 julius
if test "${ac_cv_prog_CC+set}" = set; then :
2637 90 jeremybenn
  $as_echo_n "(cached) " >&6
2638
else
2639
  if test -n "$CC"; then
2640
  ac_cv_prog_CC="$CC" # Let the user override the test.
2641
else
2642
  ac_prog_rejected=no
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
for as_dir in $PATH
2645
do
2646
  IFS=$as_save_IFS
2647
  test -z "$as_dir" && as_dir=.
2648 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2649 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651
       ac_prog_rejected=yes
2652
       continue
2653
     fi
2654
    ac_cv_prog_CC="cc"
2655 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 90 jeremybenn
    break 2
2657
  fi
2658
done
2659 233 julius
  done
2660 90 jeremybenn
IFS=$as_save_IFS
2661
 
2662
if test $ac_prog_rejected = yes; then
2663
  # We found a bogon in the path, so make sure we never use it.
2664
  set dummy $ac_cv_prog_CC
2665
  shift
2666
  if test $# != 0; then
2667
    # We chose a different compiler from the bogus one.
2668
    # However, it has the same basename, so the bogon will be chosen
2669
    # first if we set CC to just the basename; use the full file name.
2670
    shift
2671
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2672
  fi
2673
fi
2674
fi
2675
fi
2676
CC=$ac_cv_prog_CC
2677
if test -n "$CC"; then
2678 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 90 jeremybenn
$as_echo "$CC" >&6; }
2680
else
2681 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 90 jeremybenn
$as_echo "no" >&6; }
2683
fi
2684
 
2685
 
2686
fi
2687
if test -z "$CC"; then
2688
  if test -n "$ac_tool_prefix"; then
2689
  for ac_prog in cl.exe
2690
  do
2691
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2695 233 julius
if test "${ac_cv_prog_CC+set}" = set; then :
2696 90 jeremybenn
  $as_echo_n "(cached) " >&6
2697
else
2698
  if test -n "$CC"; then
2699
  ac_cv_prog_CC="$CC" # Let the user override the test.
2700
else
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702
for as_dir in $PATH
2703
do
2704
  IFS=$as_save_IFS
2705
  test -z "$as_dir" && as_dir=.
2706 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2707 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 90 jeremybenn
    break 2
2711
  fi
2712
done
2713 233 julius
  done
2714 90 jeremybenn
IFS=$as_save_IFS
2715
 
2716
fi
2717
fi
2718
CC=$ac_cv_prog_CC
2719
if test -n "$CC"; then
2720 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 90 jeremybenn
$as_echo "$CC" >&6; }
2722
else
2723 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 90 jeremybenn
$as_echo "no" >&6; }
2725
fi
2726
 
2727
 
2728
    test -n "$CC" && break
2729
  done
2730
fi
2731
if test -z "$CC"; then
2732
  ac_ct_CC=$CC
2733
  for ac_prog in cl.exe
2734
do
2735
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2736
set dummy $ac_prog; ac_word=$2
2737 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2739 233 julius
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2740 90 jeremybenn
  $as_echo_n "(cached) " >&6
2741
else
2742
  if test -n "$ac_ct_CC"; then
2743
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744
else
2745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746
for as_dir in $PATH
2747
do
2748
  IFS=$as_save_IFS
2749
  test -z "$as_dir" && as_dir=.
2750 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2751 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752
    ac_cv_prog_ac_ct_CC="$ac_prog"
2753 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 90 jeremybenn
    break 2
2755
  fi
2756
done
2757 233 julius
  done
2758 90 jeremybenn
IFS=$as_save_IFS
2759
 
2760
fi
2761
fi
2762
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763
if test -n "$ac_ct_CC"; then
2764 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2765 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2766
else
2767 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 90 jeremybenn
$as_echo "no" >&6; }
2769
fi
2770
 
2771
 
2772
  test -n "$ac_ct_CC" && break
2773
done
2774
 
2775
  if test "x$ac_ct_CC" = x; then
2776
    CC=""
2777
  else
2778
    case $cross_compiling:$ac_tool_warned in
2779
yes:)
2780 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782
ac_tool_warned=yes ;;
2783
esac
2784
    CC=$ac_ct_CC
2785
  fi
2786
fi
2787
 
2788
fi
2789
 
2790
 
2791 233 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 233 julius
as_fn_error "no acceptable C compiler found in \$PATH
2794
See \`config.log' for more details." "$LINENO" 5; }
2795 90 jeremybenn
 
2796
# Provide some information about the compiler.
2797 233 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2798 90 jeremybenn
set X $ac_compile
2799
ac_compiler=$2
2800 233 julius
for ac_option in --version -v -V -qversion; do
2801
  { { ac_try="$ac_compiler $ac_option >&5"
2802 90 jeremybenn
case "(($ac_try" in
2803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804
  *) ac_try_echo=$ac_try;;
2805
esac
2806 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807
$as_echo "$ac_try_echo"; } >&5
2808
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2809 90 jeremybenn
  ac_status=$?
2810 233 julius
  if test -s conftest.err; then
2811
    sed '10a\
2812
... rest of stderr output deleted ...
2813
         10q' conftest.err >conftest.er1
2814
    cat conftest.er1 >&5
2815
    rm -f conftest.er1 conftest.err
2816
  fi
2817
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818
  test $ac_status = 0; }
2819
done
2820 90 jeremybenn
 
2821 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 90 jeremybenn
/* end confdefs.h.  */
2823 233 julius
#include 
2824 90 jeremybenn
int
2825
main ()
2826
{
2827 233 julius
FILE *f = fopen ("conftest.out", "w");
2828
 return ferror (f) || fclose (f) != 0;
2829 90 jeremybenn
 
2830
  ;
2831
  return 0;
2832
}
2833
_ACEOF
2834
ac_clean_files_save=$ac_clean_files
2835 233 julius
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2836 90 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2837
# It will help us diagnose broken compilers, and finding out an intuition
2838
# of exeext.
2839 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2840 121 jeremybenn
$as_echo_n "checking for C compiler default output file name... " >&6; }
2841 90 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842
 
2843
# The possible output files:
2844
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2845
 
2846
ac_rmfiles=
2847
for ac_file in $ac_files
2848
do
2849
  case $ac_file in
2850
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2851
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2852
  esac
2853
done
2854
rm -f $ac_rmfiles
2855
 
2856 233 julius
if { { ac_try="$ac_link_default"
2857 90 jeremybenn
case "(($ac_try" in
2858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859
  *) ac_try_echo=$ac_try;;
2860
esac
2861 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862
$as_echo "$ac_try_echo"; } >&5
2863 90 jeremybenn
  (eval "$ac_link_default") 2>&5
2864
  ac_status=$?
2865 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866
  test $ac_status = 0; }; then :
2867 90 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2868
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2869
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2870
# so that the user can short-circuit this test for compilers unknown to
2871
# Autoconf.
2872
for ac_file in $ac_files ''
2873
do
2874
  test -f "$ac_file" || continue
2875
  case $ac_file in
2876
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2877
        ;;
2878
    [ab].out )
2879
        # We found the default executable, but exeext='' is most
2880
        # certainly right.
2881
        break;;
2882
    *.* )
2883 233 julius
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2884 90 jeremybenn
        then :; else
2885
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886
        fi
2887
        # We set ac_cv_exeext here because the later test for it is not
2888
        # safe: cross compilers may not add the suffix if given an `-o'
2889
        # argument, so we may need to know it at that point already.
2890
        # Even if this section looks crufty: it has the advantage of
2891
        # actually working.
2892
        break;;
2893
    * )
2894
        break;;
2895
  esac
2896
done
2897
test "$ac_cv_exeext" = no && ac_cv_exeext=
2898
 
2899
else
2900
  ac_file=''
2901
fi
2902 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2903 121 jeremybenn
$as_echo "$ac_file" >&6; }
2904 233 julius
if test -z "$ac_file"; then :
2905 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2906 90 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2907
 
2908 233 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 233 julius
{ as_fn_set_status 77
2911
as_fn_error "C compiler cannot create executables
2912
See \`config.log' for more details." "$LINENO" 5; }; }
2913 90 jeremybenn
fi
2914
ac_exeext=$ac_cv_exeext
2915
 
2916 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2917
# the compiler is broken, or we cross compile.
2918 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2919 121 jeremybenn
$as_echo_n "checking whether the C compiler works... " >&6; }
2920
# If not cross compiling, check that we can run a simple program.
2921
if test "$cross_compiling" != yes; then
2922
  if { ac_try='./$ac_file'
2923 233 julius
  { { case "(($ac_try" in
2924 121 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925
  *) ac_try_echo=$ac_try;;
2926
esac
2927 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928
$as_echo "$ac_try_echo"; } >&5
2929 121 jeremybenn
  (eval "$ac_try") 2>&5
2930
  ac_status=$?
2931 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932
  test $ac_status = 0; }; }; then
2933 121 jeremybenn
    cross_compiling=no
2934
  else
2935
    if test "$cross_compiling" = maybe; then
2936
        cross_compiling=yes
2937
    else
2938 233 julius
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 121 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 233 julius
as_fn_error "cannot run C compiled programs.
2941 121 jeremybenn
If you meant to cross compile, use \`--host'.
2942 233 julius
See \`config.log' for more details." "$LINENO" 5; }
2943 121 jeremybenn
    fi
2944
  fi
2945
fi
2946 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 121 jeremybenn
$as_echo "yes" >&6; }
2948
 
2949 233 julius
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2950 90 jeremybenn
ac_clean_files=$ac_clean_files_save
2951 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2952
# the compiler is broken, or we cross compile.
2953 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2954 121 jeremybenn
$as_echo_n "checking whether we are cross compiling... " >&6; }
2955 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2956 121 jeremybenn
$as_echo "$cross_compiling" >&6; }
2957
 
2958 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2959 90 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2960 233 julius
if { { ac_try="$ac_link"
2961 90 jeremybenn
case "(($ac_try" in
2962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963
  *) ac_try_echo=$ac_try;;
2964
esac
2965 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966
$as_echo "$ac_try_echo"; } >&5
2967 90 jeremybenn
  (eval "$ac_link") 2>&5
2968
  ac_status=$?
2969 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970
  test $ac_status = 0; }; then :
2971 90 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2972
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2973
# work properly (i.e., refer to `conftest.exe'), while it won't with
2974
# `rm'.
2975
for ac_file in conftest.exe conftest conftest.*; do
2976
  test -f "$ac_file" || continue
2977
  case $ac_file in
2978
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980
          break;;
2981
    * ) break;;
2982
  esac
2983
done
2984
else
2985 233 julius
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 233 julius
as_fn_error "cannot compute suffix of executables: cannot compile and link
2988
See \`config.log' for more details." "$LINENO" 5; }
2989 90 jeremybenn
fi
2990 121 jeremybenn
rm -f conftest$ac_cv_exeext
2991 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2992 90 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2993
 
2994
rm -f conftest.$ac_ext
2995
EXEEXT=$ac_cv_exeext
2996
ac_exeext=$EXEEXT
2997 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2998 90 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2999 233 julius
if test "${ac_cv_objext+set}" = set; then :
3000 90 jeremybenn
  $as_echo_n "(cached) " >&6
3001
else
3002 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 90 jeremybenn
/* end confdefs.h.  */
3004
 
3005
int
3006
main ()
3007
{
3008
 
3009
  ;
3010
  return 0;
3011
}
3012
_ACEOF
3013
rm -f conftest.o conftest.obj
3014 233 julius
if { { ac_try="$ac_compile"
3015 90 jeremybenn
case "(($ac_try" in
3016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017
  *) ac_try_echo=$ac_try;;
3018
esac
3019 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020
$as_echo "$ac_try_echo"; } >&5
3021 90 jeremybenn
  (eval "$ac_compile") 2>&5
3022
  ac_status=$?
3023 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024
  test $ac_status = 0; }; then :
3025 90 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3026
  test -f "$ac_file" || continue;
3027
  case $ac_file in
3028
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3029
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030
       break;;
3031
  esac
3032
done
3033
else
3034
  $as_echo "$as_me: failed program was:" >&5
3035
sed 's/^/| /' conftest.$ac_ext >&5
3036
 
3037 233 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 233 julius
as_fn_error "cannot compute suffix of object files: cannot compile
3040
See \`config.log' for more details." "$LINENO" 5; }
3041 90 jeremybenn
fi
3042
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043
fi
3044 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3045 90 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3046
OBJEXT=$ac_cv_objext
3047
ac_objext=$OBJEXT
3048 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3049 90 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3050 233 julius
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3051 90 jeremybenn
  $as_echo_n "(cached) " >&6
3052
else
3053 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 90 jeremybenn
/* end confdefs.h.  */
3055
 
3056
int
3057
main ()
3058
{
3059
#ifndef __GNUC__
3060
       choke me
3061
#endif
3062
 
3063
  ;
3064
  return 0;
3065
}
3066
_ACEOF
3067 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
3068 90 jeremybenn
  ac_compiler_gnu=yes
3069
else
3070 233 julius
  ac_compiler_gnu=no
3071 90 jeremybenn
fi
3072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074
 
3075
fi
3076 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3077 90 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3078
if test $ac_compiler_gnu = yes; then
3079
  GCC=yes
3080
else
3081
  GCC=
3082
fi
3083
ac_test_CFLAGS=${CFLAGS+set}
3084
ac_save_CFLAGS=$CFLAGS
3085 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3086 90 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3087 233 julius
if test "${ac_cv_prog_cc_g+set}" = set; then :
3088 90 jeremybenn
  $as_echo_n "(cached) " >&6
3089
else
3090
  ac_save_c_werror_flag=$ac_c_werror_flag
3091
   ac_c_werror_flag=yes
3092
   ac_cv_prog_cc_g=no
3093
   CFLAGS="-g"
3094 233 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 90 jeremybenn
/* end confdefs.h.  */
3096
 
3097
int
3098
main ()
3099
{
3100
 
3101
  ;
3102
  return 0;
3103
}
3104
_ACEOF
3105 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
3106 90 jeremybenn
  ac_cv_prog_cc_g=yes
3107
else
3108 233 julius
  CFLAGS=""
3109
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 90 jeremybenn
/* end confdefs.h.  */
3111
 
3112
int
3113
main ()
3114
{
3115
 
3116
  ;
3117
  return 0;
3118
}
3119
_ACEOF
3120 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
3121
 
3122 121 jeremybenn
else
3123 233 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
3124 90 jeremybenn
         CFLAGS="-g"
3125 233 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 90 jeremybenn
/* end confdefs.h.  */
3127
 
3128
int
3129
main ()
3130
{
3131
 
3132
  ;
3133
  return 0;
3134
}
3135
_ACEOF
3136 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
3137 90 jeremybenn
  ac_cv_prog_cc_g=yes
3138
fi
3139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140
fi
3141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142
fi
3143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144
   ac_c_werror_flag=$ac_save_c_werror_flag
3145
fi
3146 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3147 90 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3148
if test "$ac_test_CFLAGS" = set; then
3149
  CFLAGS=$ac_save_CFLAGS
3150
elif test $ac_cv_prog_cc_g = yes; then
3151
  if test "$GCC" = yes; then
3152
    CFLAGS="-g -O2"
3153
  else
3154
    CFLAGS="-g"
3155
  fi
3156
else
3157
  if test "$GCC" = yes; then
3158
    CFLAGS="-O2"
3159
  else
3160
    CFLAGS=
3161
  fi
3162
fi
3163 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3164 90 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3165 233 julius
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3166 90 jeremybenn
  $as_echo_n "(cached) " >&6
3167
else
3168
  ac_cv_prog_cc_c89=no
3169
ac_save_CC=$CC
3170 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 90 jeremybenn
/* end confdefs.h.  */
3172
#include 
3173
#include 
3174
#include 
3175
#include 
3176
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3177
struct buf { int x; };
3178
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3179
static char *e (p, i)
3180
     char **p;
3181
     int i;
3182
{
3183
  return p[i];
3184
}
3185
static char *f (char * (*g) (char **, int), char **p, ...)
3186
{
3187
  char *s;
3188
  va_list v;
3189
  va_start (v,p);
3190
  s = g (p, va_arg (v,int));
3191
  va_end (v);
3192
  return s;
3193
}
3194
 
3195
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3196
   function prototypes and stuff, but not '\xHH' hex character constants.
3197
   These don't provoke an error unfortunately, instead are silently treated
3198
   as 'x'.  The following induces an error, until -std is added to get
3199
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3200
   array size at least.  It's necessary to write '\x00'==0 to get something
3201
   that's true only with -std.  */
3202
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203
 
3204
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3205
   inside strings and character constants.  */
3206
#define FOO(x) 'x'
3207
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208
 
3209
int test (int i, double x);
3210
struct s1 {int (*f) (int a);};
3211
struct s2 {int (*f) (double a);};
3212
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3213
int argc;
3214
char **argv;
3215
int
3216
main ()
3217
{
3218
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3219
  ;
3220
  return 0;
3221
}
3222
_ACEOF
3223
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3224
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225
do
3226
  CC="$ac_save_CC $ac_arg"
3227 233 julius
  if ac_fn_c_try_compile "$LINENO"; then :
3228 90 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3229
fi
3230
rm -f core conftest.err conftest.$ac_objext
3231
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3232
done
3233
rm -f conftest.$ac_ext
3234
CC=$ac_save_CC
3235
 
3236
fi
3237
# AC_CACHE_VAL
3238
case "x$ac_cv_prog_cc_c89" in
3239
  x)
3240 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3241 90 jeremybenn
$as_echo "none needed" >&6; } ;;
3242
  xno)
3243 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3244 90 jeremybenn
$as_echo "unsupported" >&6; } ;;
3245
  *)
3246
    CC="$CC $ac_cv_prog_cc_c89"
3247 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3248 90 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3249
esac
3250 233 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
3251 90 jeremybenn
 
3252 233 julius
fi
3253 90 jeremybenn
 
3254
ac_ext=c
3255
ac_cpp='$CPP $CPPFLAGS'
3256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
 
3260 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3261 90 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3262 233 julius
if test "${ac_cv_path_SED+set}" = set; then :
3263 90 jeremybenn
  $as_echo_n "(cached) " >&6
3264
else
3265
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3266
     for ac_i in 1 2 3 4 5 6 7; do
3267
       ac_script="$ac_script$as_nl$ac_script"
3268
     done
3269
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3270 233 julius
     { ac_script=; unset ac_script;}
3271 90 jeremybenn
     if test -z "$SED"; then
3272
  ac_path_SED_found=false
3273
  # Loop through the user's path and test for each of PROGNAME-LIST
3274
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275
for as_dir in $PATH
3276
do
3277
  IFS=$as_save_IFS
3278
  test -z "$as_dir" && as_dir=.
3279 233 julius
    for ac_prog in sed gsed; do
3280 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3281
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3282
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3283
# Check for GNU ac_path_SED and select it if it is found.
3284
  # Check for GNU $ac_path_SED
3285
case `"$ac_path_SED" --version 2>&1` in
3286
*GNU*)
3287
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3288
*)
3289
  ac_count=0
3290
  $as_echo_n 0123456789 >"conftest.in"
3291
  while :
3292
  do
3293
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3294
    mv "conftest.tmp" "conftest.in"
3295
    cp "conftest.in" "conftest.nl"
3296
    $as_echo '' >> "conftest.nl"
3297
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3298
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3299 233 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3300 90 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3301
      # Best one so far, save it but keep looking for a better one
3302
      ac_cv_path_SED="$ac_path_SED"
3303
      ac_path_SED_max=$ac_count
3304
    fi
3305
    # 10*(2^10) chars as input seems more than enough
3306
    test $ac_count -gt 10 && break
3307
  done
3308
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3309
esac
3310
 
3311
      $ac_path_SED_found && break 3
3312
    done
3313
  done
3314 233 julius
  done
3315 90 jeremybenn
IFS=$as_save_IFS
3316
  if test -z "$ac_cv_path_SED"; then
3317 233 julius
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3318 90 jeremybenn
  fi
3319
else
3320
  ac_cv_path_SED=$SED
3321
fi
3322
 
3323
fi
3324 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3325 90 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
3326
 SED="$ac_cv_path_SED"
3327
  rm -f conftest.sed
3328
 
3329
test -z "$SED" && SED=sed
3330
Xsed="$SED -e 1s/^X//"
3331
 
3332
 
3333
 
3334
 
3335
 
3336
 
3337
 
3338
 
3339
 
3340
 
3341
 
3342 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3343 90 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3344 233 julius
if test "${ac_cv_path_GREP+set}" = set; then :
3345 90 jeremybenn
  $as_echo_n "(cached) " >&6
3346
else
3347
  if test -z "$GREP"; then
3348
  ac_path_GREP_found=false
3349
  # Loop through the user's path and test for each of PROGNAME-LIST
3350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3352
do
3353
  IFS=$as_save_IFS
3354
  test -z "$as_dir" && as_dir=.
3355 233 julius
    for ac_prog in grep ggrep; do
3356 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3357
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3358
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3359
# Check for GNU ac_path_GREP and select it if it is found.
3360
  # Check for GNU $ac_path_GREP
3361
case `"$ac_path_GREP" --version 2>&1` in
3362
*GNU*)
3363
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3364
*)
3365
  ac_count=0
3366
  $as_echo_n 0123456789 >"conftest.in"
3367
  while :
3368
  do
3369
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3370
    mv "conftest.tmp" "conftest.in"
3371
    cp "conftest.in" "conftest.nl"
3372
    $as_echo 'GREP' >> "conftest.nl"
3373
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3374
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3375 233 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3376 90 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3377
      # Best one so far, save it but keep looking for a better one
3378
      ac_cv_path_GREP="$ac_path_GREP"
3379
      ac_path_GREP_max=$ac_count
3380
    fi
3381
    # 10*(2^10) chars as input seems more than enough
3382
    test $ac_count -gt 10 && break
3383
  done
3384
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3385
esac
3386
 
3387
      $ac_path_GREP_found && break 3
3388
    done
3389
  done
3390 233 julius
  done
3391 90 jeremybenn
IFS=$as_save_IFS
3392
  if test -z "$ac_cv_path_GREP"; then
3393 233 julius
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3394 90 jeremybenn
  fi
3395
else
3396
  ac_cv_path_GREP=$GREP
3397
fi
3398
 
3399
fi
3400 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3401 90 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3402
 GREP="$ac_cv_path_GREP"
3403
 
3404
 
3405 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3406 90 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3407 233 julius
if test "${ac_cv_path_EGREP+set}" = set; then :
3408 90 jeremybenn
  $as_echo_n "(cached) " >&6
3409
else
3410
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3411
   then ac_cv_path_EGREP="$GREP -E"
3412
   else
3413
     if test -z "$EGREP"; then
3414
  ac_path_EGREP_found=false
3415
  # Loop through the user's path and test for each of PROGNAME-LIST
3416
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3418
do
3419
  IFS=$as_save_IFS
3420
  test -z "$as_dir" && as_dir=.
3421 233 julius
    for ac_prog in egrep; do
3422 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3423
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3424
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3425
# Check for GNU ac_path_EGREP and select it if it is found.
3426
  # Check for GNU $ac_path_EGREP
3427
case `"$ac_path_EGREP" --version 2>&1` in
3428
*GNU*)
3429
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3430
*)
3431
  ac_count=0
3432
  $as_echo_n 0123456789 >"conftest.in"
3433
  while :
3434
  do
3435
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3436
    mv "conftest.tmp" "conftest.in"
3437
    cp "conftest.in" "conftest.nl"
3438
    $as_echo 'EGREP' >> "conftest.nl"
3439
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3440
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3441 233 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3442 90 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3443
      # Best one so far, save it but keep looking for a better one
3444
      ac_cv_path_EGREP="$ac_path_EGREP"
3445
      ac_path_EGREP_max=$ac_count
3446
    fi
3447
    # 10*(2^10) chars as input seems more than enough
3448
    test $ac_count -gt 10 && break
3449
  done
3450
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3451
esac
3452
 
3453
      $ac_path_EGREP_found && break 3
3454
    done
3455
  done
3456 233 julius
  done
3457 90 jeremybenn
IFS=$as_save_IFS
3458
  if test -z "$ac_cv_path_EGREP"; then
3459 233 julius
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3460 90 jeremybenn
  fi
3461
else
3462
  ac_cv_path_EGREP=$EGREP
3463
fi
3464
 
3465
   fi
3466
fi
3467 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3468 90 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3469
 EGREP="$ac_cv_path_EGREP"
3470
 
3471
 
3472 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3473 90 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
3474 233 julius
if test "${ac_cv_path_FGREP+set}" = set; then :
3475 90 jeremybenn
  $as_echo_n "(cached) " >&6
3476
else
3477
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3478
   then ac_cv_path_FGREP="$GREP -F"
3479
   else
3480
     if test -z "$FGREP"; then
3481
  ac_path_FGREP_found=false
3482
  # Loop through the user's path and test for each of PROGNAME-LIST
3483
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3485
do
3486
  IFS=$as_save_IFS
3487
  test -z "$as_dir" && as_dir=.
3488 233 julius
    for ac_prog in fgrep; do
3489 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3490
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3491
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3492
# Check for GNU ac_path_FGREP and select it if it is found.
3493
  # Check for GNU $ac_path_FGREP
3494
case `"$ac_path_FGREP" --version 2>&1` in
3495
*GNU*)
3496
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3497
*)
3498
  ac_count=0
3499
  $as_echo_n 0123456789 >"conftest.in"
3500
  while :
3501
  do
3502
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3503
    mv "conftest.tmp" "conftest.in"
3504
    cp "conftest.in" "conftest.nl"
3505
    $as_echo 'FGREP' >> "conftest.nl"
3506
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508 233 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3509 90 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3510
      # Best one so far, save it but keep looking for a better one
3511
      ac_cv_path_FGREP="$ac_path_FGREP"
3512
      ac_path_FGREP_max=$ac_count
3513
    fi
3514
    # 10*(2^10) chars as input seems more than enough
3515
    test $ac_count -gt 10 && break
3516
  done
3517
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518
esac
3519
 
3520
      $ac_path_FGREP_found && break 3
3521
    done
3522
  done
3523 233 julius
  done
3524 90 jeremybenn
IFS=$as_save_IFS
3525
  if test -z "$ac_cv_path_FGREP"; then
3526 233 julius
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3527 90 jeremybenn
  fi
3528
else
3529
  ac_cv_path_FGREP=$FGREP
3530
fi
3531
 
3532
   fi
3533
fi
3534 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3535 90 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
3536
 FGREP="$ac_cv_path_FGREP"
3537
 
3538
 
3539
test -z "$GREP" && GREP=grep
3540
 
3541
 
3542
 
3543
 
3544
 
3545
 
3546
 
3547
 
3548
 
3549
 
3550
 
3551
 
3552
 
3553
 
3554
 
3555
 
3556
 
3557
 
3558
 
3559
# Check whether --with-gnu-ld was given.
3560 233 julius
if test "${with_gnu_ld+set}" = set; then :
3561 90 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3562
else
3563
  with_gnu_ld=no
3564
fi
3565
 
3566
ac_prog=ld
3567
if test "$GCC" = yes; then
3568
  # Check if gcc -print-prog-name=ld gives a path.
3569 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3570 90 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
3571
  case $host in
3572
  *-*-mingw*)
3573
    # gcc leaves a trailing carriage return which upsets mingw
3574
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3575
  *)
3576
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3577
  esac
3578
  case $ac_prog in
3579
    # Accept absolute paths.
3580
    [\\/]* | ?:[\\/]*)
3581
      re_direlt='/[^/][^/]*/\.\./'
3582
      # Canonicalize the pathname of ld
3583
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3584
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3585
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3586
      done
3587
      test -z "$LD" && LD="$ac_prog"
3588
      ;;
3589
  "")
3590
    # If it fails, then pretend we aren't using GCC.
3591
    ac_prog=ld
3592
    ;;
3593
  *)
3594
    # If it is relative, then search for the first ld in PATH.
3595
    with_gnu_ld=unknown
3596
    ;;
3597
  esac
3598
elif test "$with_gnu_ld" = yes; then
3599 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3600 90 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
3601
else
3602 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3603 90 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
3604
fi
3605 233 julius
if test "${lt_cv_path_LD+set}" = set; then :
3606 90 jeremybenn
  $as_echo_n "(cached) " >&6
3607
else
3608
  if test -z "$LD"; then
3609
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3610
  for ac_dir in $PATH; do
3611
    IFS="$lt_save_ifs"
3612
    test -z "$ac_dir" && ac_dir=.
3613
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3614
      lt_cv_path_LD="$ac_dir/$ac_prog"
3615
      # Check to see if the program is GNU ld.  I'd rather use --version,
3616
      # but apparently some variants of GNU ld only accept -v.
3617
      # Break only if it was the GNU/non-GNU ld that we prefer.
3618
      case `"$lt_cv_path_LD" -v 2>&1 
3619
      *GNU* | *'with BFD'*)
3620
        test "$with_gnu_ld" != no && break
3621
        ;;
3622
      *)
3623
        test "$with_gnu_ld" != yes && break
3624
        ;;
3625
      esac
3626
    fi
3627
  done
3628
  IFS="$lt_save_ifs"
3629
else
3630
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3631
fi
3632
fi
3633
 
3634
LD="$lt_cv_path_LD"
3635
if test -n "$LD"; then
3636 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3637 90 jeremybenn
$as_echo "$LD" >&6; }
3638
else
3639 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 90 jeremybenn
$as_echo "no" >&6; }
3641
fi
3642 233 julius
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3644 90 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3645 233 julius
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3646 90 jeremybenn
  $as_echo_n "(cached) " >&6
3647
else
3648
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3649
case `$LD -v 2>&1 
3650
*GNU* | *'with BFD'*)
3651
  lt_cv_prog_gnu_ld=yes
3652
  ;;
3653
*)
3654
  lt_cv_prog_gnu_ld=no
3655
  ;;
3656
esac
3657
fi
3658 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3659 90 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3660
with_gnu_ld=$lt_cv_prog_gnu_ld
3661
 
3662
 
3663
 
3664
 
3665
 
3666
 
3667
 
3668
 
3669
 
3670 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3671 90 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3672 233 julius
if test "${lt_cv_path_NM+set}" = set; then :
3673 90 jeremybenn
  $as_echo_n "(cached) " >&6
3674
else
3675
  if test -n "$NM"; then
3676
  # Let the user override the test.
3677
  lt_cv_path_NM="$NM"
3678
else
3679
  lt_nm_to_check="${ac_tool_prefix}nm"
3680
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3681
    lt_nm_to_check="$lt_nm_to_check nm"
3682
  fi
3683
  for lt_tmp_nm in $lt_nm_to_check; do
3684
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3686
      IFS="$lt_save_ifs"
3687
      test -z "$ac_dir" && ac_dir=.
3688
      tmp_nm="$ac_dir/$lt_tmp_nm"
3689
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3690
        # Check to see if the nm accepts a BSD-compat flag.
3691
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3692
        #   nm: unknown option "B" ignored
3693
        # Tru64's nm complains that /dev/null is an invalid object file
3694
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3695
        */dev/null* | *'Invalid file or object type'*)
3696
          lt_cv_path_NM="$tmp_nm -B"
3697
          break
3698
          ;;
3699
        *)
3700
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3701
          */dev/null*)
3702
            lt_cv_path_NM="$tmp_nm -p"
3703
            break
3704
            ;;
3705
          *)
3706
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3707
            continue # so that we can try to find one that supports BSD flags
3708
            ;;
3709
          esac
3710
          ;;
3711
        esac
3712
      fi
3713
    done
3714
    IFS="$lt_save_ifs"
3715
  done
3716
  : ${lt_cv_path_NM=no}
3717
fi
3718
fi
3719 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3720 90 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
3721
if test "$lt_cv_path_NM" != "no"; then
3722
  NM="$lt_cv_path_NM"
3723
else
3724
  # Didn't find any BSD compatible name lister, look for dumpbin.
3725
  if test -n "$ac_tool_prefix"; then
3726
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3727
  do
3728
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3732 233 julius
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3733 90 jeremybenn
  $as_echo_n "(cached) " >&6
3734
else
3735
  if test -n "$DUMPBIN"; then
3736
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3737
else
3738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739
for as_dir in $PATH
3740
do
3741
  IFS=$as_save_IFS
3742
  test -z "$as_dir" && as_dir=.
3743 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
3744 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3746 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 90 jeremybenn
    break 2
3748
  fi
3749
done
3750 233 julius
  done
3751 90 jeremybenn
IFS=$as_save_IFS
3752
 
3753
fi
3754
fi
3755
DUMPBIN=$ac_cv_prog_DUMPBIN
3756
if test -n "$DUMPBIN"; then
3757 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3758 90 jeremybenn
$as_echo "$DUMPBIN" >&6; }
3759
else
3760 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 90 jeremybenn
$as_echo "no" >&6; }
3762
fi
3763
 
3764
 
3765
    test -n "$DUMPBIN" && break
3766
  done
3767
fi
3768
if test -z "$DUMPBIN"; then
3769
  ac_ct_DUMPBIN=$DUMPBIN
3770
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3771
do
3772
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3773
set dummy $ac_prog; ac_word=$2
3774 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3776 233 julius
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3777 90 jeremybenn
  $as_echo_n "(cached) " >&6
3778
else
3779
  if test -n "$ac_ct_DUMPBIN"; then
3780
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3781
else
3782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783
for as_dir in $PATH
3784
do
3785
  IFS=$as_save_IFS
3786
  test -z "$as_dir" && as_dir=.
3787 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
3788 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3790 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 90 jeremybenn
    break 2
3792
  fi
3793
done
3794 233 julius
  done
3795 90 jeremybenn
IFS=$as_save_IFS
3796
 
3797
fi
3798
fi
3799
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3800
if test -n "$ac_ct_DUMPBIN"; then
3801 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3802 90 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
3803
else
3804 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 90 jeremybenn
$as_echo "no" >&6; }
3806
fi
3807
 
3808
 
3809
  test -n "$ac_ct_DUMPBIN" && break
3810
done
3811
 
3812
  if test "x$ac_ct_DUMPBIN" = x; then
3813
    DUMPBIN=":"
3814
  else
3815
    case $cross_compiling:$ac_tool_warned in
3816
yes:)
3817 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819
ac_tool_warned=yes ;;
3820
esac
3821
    DUMPBIN=$ac_ct_DUMPBIN
3822
  fi
3823
fi
3824
 
3825
 
3826
  if test "$DUMPBIN" != ":"; then
3827
    NM="$DUMPBIN"
3828
  fi
3829
fi
3830
test -z "$NM" && NM=nm
3831
 
3832
 
3833
 
3834
 
3835
 
3836
 
3837 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3838 90 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3839 233 julius
if test "${lt_cv_nm_interface+set}" = set; then :
3840 90 jeremybenn
  $as_echo_n "(cached) " >&6
3841
else
3842
  lt_cv_nm_interface="BSD nm"
3843
  echo "int some_variable = 0;" > conftest.$ac_ext
3844 233 julius
  (eval echo "\"\$as_me:3844: $ac_compile\"" >&5)
3845 90 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3846
  cat conftest.err >&5
3847 233 julius
  (eval echo "\"\$as_me:3847: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3848 90 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3849
  cat conftest.err >&5
3850 233 julius
  (eval echo "\"\$as_me:3850: output\"" >&5)
3851 90 jeremybenn
  cat conftest.out >&5
3852
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3853
    lt_cv_nm_interface="MS dumpbin"
3854
  fi
3855
  rm -f conftest*
3856
fi
3857 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3858 90 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
3859
 
3860 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3861 90 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
3862
LN_S=$as_ln_s
3863
if test "$LN_S" = "ln -s"; then
3864 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3865 90 jeremybenn
$as_echo "yes" >&6; }
3866
else
3867 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3868 90 jeremybenn
$as_echo "no, using $LN_S" >&6; }
3869
fi
3870
 
3871
# find the maximum length of command line arguments
3872 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3873 90 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3874 233 julius
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
3875 90 jeremybenn
  $as_echo_n "(cached) " >&6
3876
else
3877
    i=0
3878
  teststring="ABCD"
3879
 
3880
  case $build_os in
3881
  msdosdjgpp*)
3882
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3883
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3884
    # during glob expansion).  Even if it were fixed, the result of this
3885
    # check would be larger than it should be.
3886
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3887
    ;;
3888
 
3889
  gnu*)
3890
    # Under GNU Hurd, this test is not required because there is
3891
    # no limit to the length of command line arguments.
3892
    # Libtool will interpret -1 as no limit whatsoever
3893
    lt_cv_sys_max_cmd_len=-1;
3894
    ;;
3895
 
3896
  cygwin* | mingw* | cegcc*)
3897
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3898
    # about 5 minutes as the teststring grows exponentially.
3899
    # Worse, since 9x/ME are not pre-emptively multitasking,
3900
    # you end up with a "frozen" computer, even though with patience
3901
    # the test eventually succeeds (with a max line length of 256k).
3902
    # Instead, let's just punt: use the minimum linelength reported by
3903
    # all of the supported platforms: 8192 (on NT/2K/XP).
3904
    lt_cv_sys_max_cmd_len=8192;
3905
    ;;
3906
 
3907
  amigaos*)
3908
    # On AmigaOS with pdksh, this test takes hours, literally.
3909
    # So we just punt and use a minimum line length of 8192.
3910
    lt_cv_sys_max_cmd_len=8192;
3911
    ;;
3912
 
3913
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3914
    # This has been around since 386BSD, at least.  Likely further.
3915
    if test -x /sbin/sysctl; then
3916
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3917
    elif test -x /usr/sbin/sysctl; then
3918
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3919
    else
3920
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3921
    fi
3922
    # And add a safety zone
3923
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3924
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3925
    ;;
3926
 
3927
  interix*)
3928
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3929
    lt_cv_sys_max_cmd_len=196608
3930
    ;;
3931
 
3932
  osf*)
3933
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3934
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3935
    # nice to cause kernel panics so lets avoid the loop below.
3936
    # First set a reasonable default.
3937
    lt_cv_sys_max_cmd_len=16384
3938
    #
3939
    if test -x /sbin/sysconfig; then
3940
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3941
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3942
      esac
3943
    fi
3944
    ;;
3945
  sco3.2v5*)
3946
    lt_cv_sys_max_cmd_len=102400
3947
    ;;
3948
  sysv5* | sco5v6* | sysv4.2uw2*)
3949
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3950
    if test -n "$kargmax"; then
3951
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3952
    else
3953
      lt_cv_sys_max_cmd_len=32768
3954
    fi
3955
    ;;
3956
  *)
3957
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3958
    if test -n "$lt_cv_sys_max_cmd_len"; then
3959
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3960
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3961
    else
3962
      # Make teststring a little bigger before we do anything with it.
3963
      # a 1K string should be a reasonable start.
3964
      for i in 1 2 3 4 5 6 7 8 ; do
3965
        teststring=$teststring$teststring
3966
      done
3967
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3968
      # If test is not a shell built-in, we'll probably end up computing a
3969
      # maximum length that is only half of the actual maximum length, but
3970
      # we can't tell.
3971
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3972
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3973
              test $i != 17 # 1/2 MB should be enough
3974
      do
3975
        i=`expr $i + 1`
3976
        teststring=$teststring$teststring
3977
      done
3978
      # Only check the string length outside the loop.
3979
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3980
      teststring=
3981
      # Add a significant safety factor because C++ compilers can tack on
3982
      # massive amounts of additional arguments before passing them to the
3983
      # linker.  It appears as though 1/2 is a usable value.
3984
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3985
    fi
3986
    ;;
3987
  esac
3988
 
3989
fi
3990
 
3991
if test -n $lt_cv_sys_max_cmd_len ; then
3992 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3993 90 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3994
else
3995 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3996 90 jeremybenn
$as_echo "none" >&6; }
3997
fi
3998
max_cmd_len=$lt_cv_sys_max_cmd_len
3999
 
4000
 
4001
 
4002
 
4003
 
4004
 
4005
: ${CP="cp -f"}
4006
: ${MV="mv -f"}
4007
: ${RM="rm -f"}
4008
 
4009 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4010 90 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4011
# Try some XSI features
4012
xsi_shell=no
4013
( _lt_dummy="a/b/c"
4014
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4015
      = c,a/b,, \
4016
    && eval 'test $(( 1 + 1 )) -eq 2 \
4017
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4018
  && xsi_shell=yes
4019 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4020 90 jeremybenn
$as_echo "$xsi_shell" >&6; }
4021
 
4022
 
4023 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4024 90 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4025
lt_shell_append=no
4026
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4027
    >/dev/null 2>&1 \
4028
  && lt_shell_append=yes
4029 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4030 90 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4031
 
4032
 
4033
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4034
  lt_unset=unset
4035
else
4036
  lt_unset=false
4037
fi
4038
 
4039
 
4040
 
4041
 
4042
 
4043
# test EBCDIC or ASCII
4044
case `echo X|tr X '\101'` in
4045
 A) # ASCII based system
4046
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4047
  lt_SP2NL='tr \040 \012'
4048
  lt_NL2SP='tr \015\012 \040\040'
4049
  ;;
4050
 *) # EBCDIC based system
4051
  lt_SP2NL='tr \100 \n'
4052
  lt_NL2SP='tr \r\n \100\100'
4053
  ;;
4054
esac
4055
 
4056
 
4057
 
4058
 
4059
 
4060
 
4061
 
4062
 
4063
 
4064 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4065 90 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4066 233 julius
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4067 90 jeremybenn
  $as_echo_n "(cached) " >&6
4068
else
4069
  lt_cv_ld_reload_flag='-r'
4070
fi
4071 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4072 90 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4073
reload_flag=$lt_cv_ld_reload_flag
4074
case $reload_flag in
4075
"" | " "*) ;;
4076
*) reload_flag=" $reload_flag" ;;
4077
esac
4078
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4079
case $host_os in
4080
  darwin*)
4081
    if test "$GCC" = yes; then
4082
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4083
    else
4084
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4085
    fi
4086
    ;;
4087
esac
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
 
4096
 
4097
if test -n "$ac_tool_prefix"; then
4098
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4099
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4100 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4102 233 julius
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4103 90 jeremybenn
  $as_echo_n "(cached) " >&6
4104
else
4105
  if test -n "$OBJDUMP"; then
4106
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4107
else
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109
for as_dir in $PATH
4110
do
4111
  IFS=$as_save_IFS
4112
  test -z "$as_dir" && as_dir=.
4113 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4114 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4116 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 90 jeremybenn
    break 2
4118
  fi
4119
done
4120 233 julius
  done
4121 90 jeremybenn
IFS=$as_save_IFS
4122
 
4123
fi
4124
fi
4125
OBJDUMP=$ac_cv_prog_OBJDUMP
4126
if test -n "$OBJDUMP"; then
4127 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4128 90 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4129
else
4130 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 90 jeremybenn
$as_echo "no" >&6; }
4132
fi
4133
 
4134
 
4135
fi
4136
if test -z "$ac_cv_prog_OBJDUMP"; then
4137
  ac_ct_OBJDUMP=$OBJDUMP
4138
  # Extract the first word of "objdump", so it can be a program name with args.
4139
set dummy objdump; ac_word=$2
4140 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4142 233 julius
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4143 90 jeremybenn
  $as_echo_n "(cached) " >&6
4144
else
4145
  if test -n "$ac_ct_OBJDUMP"; then
4146
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4147
else
4148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149
for as_dir in $PATH
4150
do
4151
  IFS=$as_save_IFS
4152
  test -z "$as_dir" && as_dir=.
4153 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4154 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4156 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 90 jeremybenn
    break 2
4158
  fi
4159
done
4160 233 julius
  done
4161 90 jeremybenn
IFS=$as_save_IFS
4162
 
4163
fi
4164
fi
4165
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4166
if test -n "$ac_ct_OBJDUMP"; then
4167 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4168 90 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4169
else
4170 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 90 jeremybenn
$as_echo "no" >&6; }
4172
fi
4173
 
4174
  if test "x$ac_ct_OBJDUMP" = x; then
4175
    OBJDUMP="false"
4176
  else
4177
    case $cross_compiling:$ac_tool_warned in
4178
yes:)
4179 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4180 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181
ac_tool_warned=yes ;;
4182
esac
4183
    OBJDUMP=$ac_ct_OBJDUMP
4184
  fi
4185
else
4186
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4187
fi
4188
 
4189
test -z "$OBJDUMP" && OBJDUMP=objdump
4190
 
4191
 
4192
 
4193
 
4194
 
4195
 
4196
 
4197
 
4198
 
4199 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4200 90 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4201 233 julius
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4202 90 jeremybenn
  $as_echo_n "(cached) " >&6
4203
else
4204
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4205
lt_cv_file_magic_test_file=
4206
lt_cv_deplibs_check_method='unknown'
4207
# Need to set the preceding variable on all platforms that support
4208
# interlibrary dependencies.
4209
# 'none' -- dependencies not supported.
4210
# `unknown' -- same as none, but documents that we really don't know.
4211
# 'pass_all' -- all dependencies passed with no checks.
4212
# 'test_compile' -- check by making test program.
4213
# 'file_magic [[regex]]' -- check by looking for files in library path
4214
# which responds to the $file_magic_cmd with a given extended regex.
4215
# If you have `file' or equivalent on your system and you're not sure
4216
# whether `pass_all' will *always* work, you probably want this one.
4217
 
4218
case $host_os in
4219
aix[4-9]*)
4220
  lt_cv_deplibs_check_method=pass_all
4221
  ;;
4222
 
4223
beos*)
4224
  lt_cv_deplibs_check_method=pass_all
4225
  ;;
4226
 
4227
bsdi[45]*)
4228
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4229
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4230
  lt_cv_file_magic_test_file=/shlib/libc.so
4231
  ;;
4232
 
4233
cygwin*)
4234
  # func_win32_libid is a shell function defined in ltmain.sh
4235
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236
  lt_cv_file_magic_cmd='func_win32_libid'
4237
  ;;
4238
 
4239
mingw* | pw32*)
4240
  # Base MSYS/MinGW do not provide the 'file' command needed by
4241
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4242
  # unless we find 'file', for example because we are cross-compiling.
4243
  if ( file / ) >/dev/null 2>&1; then
4244
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4245
    lt_cv_file_magic_cmd='func_win32_libid'
4246
  else
4247
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4248
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4249
  fi
4250
  ;;
4251
 
4252
cegcc)
4253
  # use the weaker test based on 'objdump'. See mingw*.
4254
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4255
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4256
  ;;
4257
 
4258
darwin* | rhapsody*)
4259
  lt_cv_deplibs_check_method=pass_all
4260
  ;;
4261
 
4262
freebsd* | dragonfly*)
4263
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4264
    case $host_cpu in
4265
    i*86 )
4266
      # Not sure whether the presence of OpenBSD here was a mistake.
4267
      # Let's accept both of them until this is cleared up.
4268
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4269
      lt_cv_file_magic_cmd=/usr/bin/file
4270
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4271
      ;;
4272
    esac
4273
  else
4274
    lt_cv_deplibs_check_method=pass_all
4275
  fi
4276
  ;;
4277
 
4278
gnu*)
4279
  lt_cv_deplibs_check_method=pass_all
4280
  ;;
4281
 
4282
hpux10.20* | hpux11*)
4283
  lt_cv_file_magic_cmd=/usr/bin/file
4284
  case $host_cpu in
4285
  ia64*)
4286
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4287
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4288
    ;;
4289
  hppa*64*)
4290
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4291
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4292
    ;;
4293
  *)
4294
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4295
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4296
    ;;
4297
  esac
4298
  ;;
4299
 
4300
interix[3-9]*)
4301
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4302
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4303
  ;;
4304
 
4305
irix5* | irix6* | nonstopux*)
4306
  case $LD in
4307
  *-32|*"-32 ") libmagic=32-bit;;
4308
  *-n32|*"-n32 ") libmagic=N32;;
4309
  *-64|*"-64 ") libmagic=64-bit;;
4310
  *) libmagic=never-match;;
4311
  esac
4312
  lt_cv_deplibs_check_method=pass_all
4313
  ;;
4314
 
4315
# This must be Linux ELF.
4316
linux* | k*bsd*-gnu)
4317
  lt_cv_deplibs_check_method=pass_all
4318
  ;;
4319
 
4320 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4321 90 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4322
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4323
  else
4324
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4325
  fi
4326
  ;;
4327
 
4328
newos6*)
4329
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4330
  lt_cv_file_magic_cmd=/usr/bin/file
4331
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4332
  ;;
4333
 
4334
*nto* | *qnx*)
4335
  lt_cv_deplibs_check_method=pass_all
4336
  ;;
4337
 
4338
openbsd*)
4339
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4340
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4341
  else
4342
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4343
  fi
4344
  ;;
4345
 
4346
osf3* | osf4* | osf5*)
4347
  lt_cv_deplibs_check_method=pass_all
4348
  ;;
4349
 
4350
rdos*)
4351
  lt_cv_deplibs_check_method=pass_all
4352
  ;;
4353
 
4354
solaris*)
4355
  lt_cv_deplibs_check_method=pass_all
4356
  ;;
4357
 
4358
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4359
  lt_cv_deplibs_check_method=pass_all
4360
  ;;
4361
 
4362
sysv4 | sysv4.3*)
4363
  case $host_vendor in
4364
  motorola)
4365
    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]'
4366
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4367
    ;;
4368
  ncr)
4369
    lt_cv_deplibs_check_method=pass_all
4370
    ;;
4371
  sequent)
4372
    lt_cv_file_magic_cmd='/bin/file'
4373
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4374
    ;;
4375
  sni)
4376
    lt_cv_file_magic_cmd='/bin/file'
4377
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4378
    lt_cv_file_magic_test_file=/lib/libc.so
4379
    ;;
4380
  siemens)
4381
    lt_cv_deplibs_check_method=pass_all
4382
    ;;
4383
  pc)
4384
    lt_cv_deplibs_check_method=pass_all
4385
    ;;
4386
  esac
4387
  ;;
4388
 
4389
tpf*)
4390
  lt_cv_deplibs_check_method=pass_all
4391
  ;;
4392
esac
4393
 
4394
fi
4395 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4396 90 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4397
file_magic_cmd=$lt_cv_file_magic_cmd
4398
deplibs_check_method=$lt_cv_deplibs_check_method
4399
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4400
 
4401
 
4402
 
4403
 
4404
 
4405
 
4406
 
4407
 
4408
 
4409
 
4410
 
4411
 
4412
if test -n "$ac_tool_prefix"; then
4413
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4414
set dummy ${ac_tool_prefix}ar; ac_word=$2
4415 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4417 233 julius
if test "${ac_cv_prog_AR+set}" = set; then :
4418 90 jeremybenn
  $as_echo_n "(cached) " >&6
4419
else
4420
  if test -n "$AR"; then
4421
  ac_cv_prog_AR="$AR" # Let the user override the test.
4422
else
4423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424
for as_dir in $PATH
4425
do
4426
  IFS=$as_save_IFS
4427
  test -z "$as_dir" && as_dir=.
4428 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4429 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4431 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 90 jeremybenn
    break 2
4433
  fi
4434
done
4435 233 julius
  done
4436 90 jeremybenn
IFS=$as_save_IFS
4437
 
4438
fi
4439
fi
4440
AR=$ac_cv_prog_AR
4441
if test -n "$AR"; then
4442 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4443 90 jeremybenn
$as_echo "$AR" >&6; }
4444
else
4445 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 90 jeremybenn
$as_echo "no" >&6; }
4447
fi
4448
 
4449
 
4450
fi
4451
if test -z "$ac_cv_prog_AR"; then
4452
  ac_ct_AR=$AR
4453
  # Extract the first word of "ar", so it can be a program name with args.
4454
set dummy ar; ac_word=$2
4455 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4457 233 julius
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4458 90 jeremybenn
  $as_echo_n "(cached) " >&6
4459
else
4460
  if test -n "$ac_ct_AR"; then
4461
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4462
else
4463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464
for as_dir in $PATH
4465
do
4466
  IFS=$as_save_IFS
4467
  test -z "$as_dir" && as_dir=.
4468 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4469 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470
    ac_cv_prog_ac_ct_AR="ar"
4471 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 90 jeremybenn
    break 2
4473
  fi
4474
done
4475 233 julius
  done
4476 90 jeremybenn
IFS=$as_save_IFS
4477
 
4478
fi
4479
fi
4480
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4481
if test -n "$ac_ct_AR"; then
4482 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4483 90 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
4484
else
4485 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 90 jeremybenn
$as_echo "no" >&6; }
4487
fi
4488
 
4489
  if test "x$ac_ct_AR" = x; then
4490
    AR="false"
4491
  else
4492
    case $cross_compiling:$ac_tool_warned in
4493
yes:)
4494 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496
ac_tool_warned=yes ;;
4497
esac
4498
    AR=$ac_ct_AR
4499
  fi
4500
else
4501
  AR="$ac_cv_prog_AR"
4502
fi
4503
 
4504
test -z "$AR" && AR=ar
4505
test -z "$AR_FLAGS" && AR_FLAGS=cru
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
 
4517
if test -n "$ac_tool_prefix"; then
4518
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519
set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4522 233 julius
if test "${ac_cv_prog_STRIP+set}" = set; then :
4523 90 jeremybenn
  $as_echo_n "(cached) " >&6
4524
else
4525
  if test -n "$STRIP"; then
4526
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527
else
4528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529
for as_dir in $PATH
4530
do
4531
  IFS=$as_save_IFS
4532
  test -z "$as_dir" && as_dir=.
4533 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4534 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 90 jeremybenn
    break 2
4538
  fi
4539
done
4540 233 julius
  done
4541 90 jeremybenn
IFS=$as_save_IFS
4542
 
4543
fi
4544
fi
4545
STRIP=$ac_cv_prog_STRIP
4546
if test -n "$STRIP"; then
4547 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4548 90 jeremybenn
$as_echo "$STRIP" >&6; }
4549
else
4550 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 90 jeremybenn
$as_echo "no" >&6; }
4552
fi
4553
 
4554
 
4555
fi
4556
if test -z "$ac_cv_prog_STRIP"; then
4557
  ac_ct_STRIP=$STRIP
4558
  # Extract the first word of "strip", so it can be a program name with args.
4559
set dummy strip; ac_word=$2
4560 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4562 233 julius
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4563 90 jeremybenn
  $as_echo_n "(cached) " >&6
4564
else
4565
  if test -n "$ac_ct_STRIP"; then
4566
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4567
else
4568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569
for as_dir in $PATH
4570
do
4571
  IFS=$as_save_IFS
4572
  test -z "$as_dir" && as_dir=.
4573 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4574 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575
    ac_cv_prog_ac_ct_STRIP="strip"
4576 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 90 jeremybenn
    break 2
4578
  fi
4579
done
4580 233 julius
  done
4581 90 jeremybenn
IFS=$as_save_IFS
4582
 
4583
fi
4584
fi
4585
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4586
if test -n "$ac_ct_STRIP"; then
4587 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4588 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
4589
else
4590 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 90 jeremybenn
$as_echo "no" >&6; }
4592
fi
4593
 
4594
  if test "x$ac_ct_STRIP" = x; then
4595
    STRIP=":"
4596
  else
4597
    case $cross_compiling:$ac_tool_warned in
4598
yes:)
4599 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601
ac_tool_warned=yes ;;
4602
esac
4603
    STRIP=$ac_ct_STRIP
4604
  fi
4605
else
4606
  STRIP="$ac_cv_prog_STRIP"
4607
fi
4608
 
4609
test -z "$STRIP" && STRIP=:
4610
 
4611
 
4612
 
4613
 
4614
 
4615
 
4616
if test -n "$ac_tool_prefix"; then
4617
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4618
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4619 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4621 233 julius
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4622 90 jeremybenn
  $as_echo_n "(cached) " >&6
4623
else
4624
  if test -n "$RANLIB"; then
4625
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626
else
4627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628
for as_dir in $PATH
4629
do
4630
  IFS=$as_save_IFS
4631
  test -z "$as_dir" && as_dir=.
4632 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4633 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4635 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 90 jeremybenn
    break 2
4637
  fi
4638
done
4639 233 julius
  done
4640 90 jeremybenn
IFS=$as_save_IFS
4641
 
4642
fi
4643
fi
4644
RANLIB=$ac_cv_prog_RANLIB
4645
if test -n "$RANLIB"; then
4646 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4647 90 jeremybenn
$as_echo "$RANLIB" >&6; }
4648
else
4649 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 90 jeremybenn
$as_echo "no" >&6; }
4651
fi
4652
 
4653
 
4654
fi
4655
if test -z "$ac_cv_prog_RANLIB"; then
4656
  ac_ct_RANLIB=$RANLIB
4657
  # Extract the first word of "ranlib", so it can be a program name with args.
4658
set dummy ranlib; ac_word=$2
4659 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4661 233 julius
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4662 90 jeremybenn
  $as_echo_n "(cached) " >&6
4663
else
4664
  if test -n "$ac_ct_RANLIB"; then
4665
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4666
else
4667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668
for as_dir in $PATH
4669
do
4670
  IFS=$as_save_IFS
4671
  test -z "$as_dir" && as_dir=.
4672 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
4673 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4675 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 90 jeremybenn
    break 2
4677
  fi
4678
done
4679 233 julius
  done
4680 90 jeremybenn
IFS=$as_save_IFS
4681
 
4682
fi
4683
fi
4684
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4685
if test -n "$ac_ct_RANLIB"; then
4686 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4687 90 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
4688
else
4689 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 90 jeremybenn
$as_echo "no" >&6; }
4691
fi
4692
 
4693
  if test "x$ac_ct_RANLIB" = x; then
4694
    RANLIB=":"
4695
  else
4696
    case $cross_compiling:$ac_tool_warned in
4697
yes:)
4698 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700
ac_tool_warned=yes ;;
4701
esac
4702
    RANLIB=$ac_ct_RANLIB
4703
  fi
4704
else
4705
  RANLIB="$ac_cv_prog_RANLIB"
4706
fi
4707
 
4708
test -z "$RANLIB" && RANLIB=:
4709
 
4710
 
4711
 
4712
 
4713
 
4714
 
4715
# Determine commands to create old-style static archives.
4716
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4717
old_postinstall_cmds='chmod 644 $oldlib'
4718
old_postuninstall_cmds=
4719
 
4720
if test -n "$RANLIB"; then
4721
  case $host_os in
4722
  openbsd*)
4723
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4724
    ;;
4725
  *)
4726
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4727
    ;;
4728
  esac
4729
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4730
fi
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
 
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
 
4755
 
4756
 
4757
 
4758
 
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
# If no C compiler was specified, use CC.
4766
LTCC=${LTCC-"$CC"}
4767
 
4768
# If no C compiler flags were specified, use CFLAGS.
4769
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4770
 
4771
# Allow CC to be a program name with arguments.
4772
compiler=$CC
4773
 
4774
 
4775
# Check for command to grab the raw symbol name followed by C symbol from nm.
4776 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4777 90 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4778 233 julius
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4779 90 jeremybenn
  $as_echo_n "(cached) " >&6
4780
else
4781
 
4782
# These are sane defaults that work on at least a few old systems.
4783
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4784
 
4785
# Character class describing NM global symbol codes.
4786
symcode='[BCDEGRST]'
4787
 
4788
# Regexp to match symbols that can be accessed directly from C.
4789
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4790
 
4791
# Define system-specific variables.
4792
case $host_os in
4793
aix*)
4794
  symcode='[BCDT]'
4795
  ;;
4796
cygwin* | mingw* | pw32* | cegcc*)
4797
  symcode='[ABCDGISTW]'
4798
  ;;
4799
hpux*)
4800
  if test "$host_cpu" = ia64; then
4801
    symcode='[ABCDEGRST]'
4802
  fi
4803
  ;;
4804
irix* | nonstopux*)
4805
  symcode='[BCDEGRST]'
4806
  ;;
4807
osf*)
4808
  symcode='[BCDEGQRST]'
4809
  ;;
4810
solaris*)
4811
  symcode='[BDRT]'
4812
  ;;
4813
sco3.2v5*)
4814
  symcode='[DT]'
4815
  ;;
4816
sysv4.2uw2*)
4817
  symcode='[DT]'
4818
  ;;
4819
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4820
  symcode='[ABDT]'
4821
  ;;
4822
sysv4)
4823
  symcode='[DFNSTU]'
4824
  ;;
4825
esac
4826
 
4827
# If we're using GNU nm, then use its standard symbol codes.
4828
case `$NM -V 2>&1` in
4829
*GNU* | *'with BFD'*)
4830
  symcode='[ABCDGIRSTW]' ;;
4831
esac
4832
 
4833
# Transform an extracted symbol line into a proper C declaration.
4834
# Some systems (esp. on ia64) link data and code symbols differently,
4835
# so use this general approach.
4836
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837
 
4838
# Transform an extracted symbol line into symbol name and symbol address
4839
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4840
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'"
4841
 
4842
# Handle CRLF in mingw tool chain
4843
opt_cr=
4844
case $build_os in
4845
mingw*)
4846
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4847
  ;;
4848
esac
4849
 
4850
# Try without a prefix underscore, then with it.
4851
for ac_symprfx in "" "_"; do
4852
 
4853
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4854
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4855
 
4856
  # Write the raw and C identifiers.
4857
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4858
    # Fake it for dumpbin and say T for any non-static function
4859
    # and D for any global variable.
4860
    # Also find C++ and __fastcall symbols from MSVC++,
4861
    # which start with @ or ?.
4862
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4863
"     {last_section=section; section=\$ 3};"\
4864
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4865
"     \$ 0!~/External *\|/{next};"\
4866
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4867
"     {if(hide[section]) next};"\
4868
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4869
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4870
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4871
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4872
"     ' prfx=^$ac_symprfx"
4873
  else
4874
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4875
  fi
4876
 
4877
  # Check to see that the pipe works correctly.
4878
  pipe_works=no
4879
 
4880
  rm -f conftest*
4881
  cat > conftest.$ac_ext <<_LT_EOF
4882
#ifdef __cplusplus
4883
extern "C" {
4884
#endif
4885
char nm_test_var;
4886
void nm_test_func(void);
4887
void nm_test_func(void){}
4888
#ifdef __cplusplus
4889
}
4890
#endif
4891
int main(){nm_test_var='a';nm_test_func();return(0);}
4892
_LT_EOF
4893
 
4894 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4895 90 jeremybenn
  (eval $ac_compile) 2>&5
4896
  ac_status=$?
4897 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4898
  test $ac_status = 0; }; then
4899 90 jeremybenn
    # Now try to grab the symbols.
4900
    nlist=conftest.nm
4901 233 julius
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4902 90 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4903
  ac_status=$?
4904 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4905
  test $ac_status = 0; } && test -s "$nlist"; then
4906 90 jeremybenn
      # Try sorting and uniquifying the output.
4907
      if sort "$nlist" | uniq > "$nlist"T; then
4908
        mv -f "$nlist"T "$nlist"
4909
      else
4910
        rm -f "$nlist"T
4911
      fi
4912
 
4913
      # Make sure that we snagged all the symbols we need.
4914
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4915
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4916
          cat <<_LT_EOF > conftest.$ac_ext
4917
#ifdef __cplusplus
4918
extern "C" {
4919
#endif
4920
 
4921
_LT_EOF
4922
          # Now generate the symbol file.
4923
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4924
 
4925
          cat <<_LT_EOF >> conftest.$ac_ext
4926
 
4927
/* The mapping between symbol names and symbols.  */
4928
const struct {
4929
  const char *name;
4930
  void       *address;
4931
}
4932
lt__PROGRAM__LTX_preloaded_symbols[] =
4933
{
4934
  { "@PROGRAM@", (void *) 0 },
4935
_LT_EOF
4936
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4937
          cat <<\_LT_EOF >> conftest.$ac_ext
4938
  {0, (void *) 0}
4939
};
4940
 
4941
/* This works around a problem in FreeBSD linker */
4942
#ifdef FREEBSD_WORKAROUND
4943
static const void *lt_preloaded_setup() {
4944
  return lt__PROGRAM__LTX_preloaded_symbols;
4945
}
4946
#endif
4947
 
4948
#ifdef __cplusplus
4949
}
4950
#endif
4951
_LT_EOF
4952
          # Now try linking the two files.
4953
          mv conftest.$ac_objext conftstm.$ac_objext
4954
          lt_save_LIBS="$LIBS"
4955
          lt_save_CFLAGS="$CFLAGS"
4956
          LIBS="conftstm.$ac_objext"
4957
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4958 233 julius
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4959 90 jeremybenn
  (eval $ac_link) 2>&5
4960
  ac_status=$?
4961 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4963 90 jeremybenn
            pipe_works=yes
4964
          fi
4965
          LIBS="$lt_save_LIBS"
4966
          CFLAGS="$lt_save_CFLAGS"
4967
        else
4968
          echo "cannot find nm_test_func in $nlist" >&5
4969
        fi
4970
      else
4971
        echo "cannot find nm_test_var in $nlist" >&5
4972
      fi
4973
    else
4974
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4975
    fi
4976
  else
4977
    echo "$progname: failed program was:" >&5
4978
    cat conftest.$ac_ext >&5
4979
  fi
4980
  rm -rf conftest* conftst*
4981
 
4982
  # Do not use the global_symbol_pipe unless it works.
4983
  if test "$pipe_works" = yes; then
4984
    break
4985
  else
4986
    lt_cv_sys_global_symbol_pipe=
4987
  fi
4988
done
4989
 
4990
fi
4991
 
4992
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4993
  lt_cv_sys_global_symbol_to_cdecl=
4994
fi
4995
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4996 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4997 90 jeremybenn
$as_echo "failed" >&6; }
4998
else
4999 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5000 90 jeremybenn
$as_echo "ok" >&6; }
5001
fi
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
 
5018
 
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
# Check whether --enable-libtool-lock was given.
5026 233 julius
if test "${enable_libtool_lock+set}" = set; then :
5027 90 jeremybenn
  enableval=$enable_libtool_lock;
5028
fi
5029
 
5030
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5031
 
5032
# Some flags need to be propagated to the compiler or linker for good
5033
# libtool support.
5034
case $host in
5035
ia64-*-hpux*)
5036
  # Find out which ABI we are using.
5037
  echo 'int i;' > conftest.$ac_ext
5038 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5039 90 jeremybenn
  (eval $ac_compile) 2>&5
5040
  ac_status=$?
5041 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042
  test $ac_status = 0; }; then
5043 90 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5044
      *ELF-32*)
5045
        HPUX_IA64_MODE="32"
5046
        ;;
5047
      *ELF-64*)
5048
        HPUX_IA64_MODE="64"
5049
        ;;
5050
    esac
5051
  fi
5052
  rm -rf conftest*
5053
  ;;
5054
*-*-irix6*)
5055
  # Find out which ABI we are using.
5056 233 julius
  echo '#line 5056 "configure"' > conftest.$ac_ext
5057
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5058 90 jeremybenn
  (eval $ac_compile) 2>&5
5059
  ac_status=$?
5060 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061
  test $ac_status = 0; }; then
5062 90 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5063
      case `/usr/bin/file conftest.$ac_objext` in
5064
        *32-bit*)
5065
          LD="${LD-ld} -melf32bsmip"
5066
          ;;
5067
        *N32*)
5068
          LD="${LD-ld} -melf32bmipn32"
5069
          ;;
5070
        *64-bit*)
5071
          LD="${LD-ld} -melf64bmip"
5072
        ;;
5073
      esac
5074
    else
5075
      case `/usr/bin/file conftest.$ac_objext` in
5076
        *32-bit*)
5077
          LD="${LD-ld} -32"
5078
          ;;
5079
        *N32*)
5080
          LD="${LD-ld} -n32"
5081
          ;;
5082
        *64-bit*)
5083
          LD="${LD-ld} -64"
5084
          ;;
5085
      esac
5086
    fi
5087
  fi
5088
  rm -rf conftest*
5089
  ;;
5090
 
5091
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5092
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5093
  # Find out which ABI we are using.
5094
  echo 'int i;' > conftest.$ac_ext
5095 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5096 90 jeremybenn
  (eval $ac_compile) 2>&5
5097
  ac_status=$?
5098 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099
  test $ac_status = 0; }; then
5100 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5101
      *32-bit*)
5102
        case $host in
5103
          x86_64-*kfreebsd*-gnu)
5104
            LD="${LD-ld} -m elf_i386_fbsd"
5105
            ;;
5106
          x86_64-*linux*)
5107
            LD="${LD-ld} -m elf_i386"
5108
            ;;
5109
          ppc64-*linux*|powerpc64-*linux*)
5110
            LD="${LD-ld} -m elf32ppclinux"
5111
            ;;
5112
          s390x-*linux*)
5113
            LD="${LD-ld} -m elf_s390"
5114
            ;;
5115
          sparc64-*linux*)
5116
            LD="${LD-ld} -m elf32_sparc"
5117
            ;;
5118
        esac
5119
        ;;
5120
      *64-bit*)
5121
        case $host in
5122
          x86_64-*kfreebsd*-gnu)
5123
            LD="${LD-ld} -m elf_x86_64_fbsd"
5124
            ;;
5125
          x86_64-*linux*)
5126
            LD="${LD-ld} -m elf_x86_64"
5127
            ;;
5128
          ppc*-*linux*|powerpc*-*linux*)
5129
            LD="${LD-ld} -m elf64ppc"
5130
            ;;
5131
          s390*-*linux*|s390*-*tpf*)
5132
            LD="${LD-ld} -m elf64_s390"
5133
            ;;
5134
          sparc*-*linux*)
5135
            LD="${LD-ld} -m elf64_sparc"
5136
            ;;
5137
        esac
5138
        ;;
5139
    esac
5140
  fi
5141
  rm -rf conftest*
5142
  ;;
5143
 
5144
*-*-sco3.2v5*)
5145
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5146
  SAVE_CFLAGS="$CFLAGS"
5147
  CFLAGS="$CFLAGS -belf"
5148 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5149 90 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5150 233 julius
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5151 90 jeremybenn
  $as_echo_n "(cached) " >&6
5152
else
5153
  ac_ext=c
5154
ac_cpp='$CPP $CPPFLAGS'
5155
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158
 
5159 233 julius
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 90 jeremybenn
/* end confdefs.h.  */
5161
 
5162
int
5163
main ()
5164
{
5165
 
5166
  ;
5167
  return 0;
5168
}
5169
_ACEOF
5170 233 julius
if ac_fn_c_try_link "$LINENO"; then :
5171 90 jeremybenn
  lt_cv_cc_needs_belf=yes
5172
else
5173 233 julius
  lt_cv_cc_needs_belf=no
5174 90 jeremybenn
fi
5175 233 julius
rm -f core conftest.err conftest.$ac_objext \
5176
    conftest$ac_exeext conftest.$ac_ext
5177 90 jeremybenn
     ac_ext=c
5178
ac_cpp='$CPP $CPPFLAGS'
5179
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182
 
5183
fi
5184 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5185 90 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5186
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5187
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5188
    CFLAGS="$SAVE_CFLAGS"
5189
  fi
5190
  ;;
5191
sparc*-*solaris*)
5192
  # Find out which ABI we are using.
5193
  echo 'int i;' > conftest.$ac_ext
5194 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5195 90 jeremybenn
  (eval $ac_compile) 2>&5
5196
  ac_status=$?
5197 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198
  test $ac_status = 0; }; then
5199 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5200
    *64-bit*)
5201
      case $lt_cv_prog_gnu_ld in
5202
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5203
      *)
5204
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5205
          LD="${LD-ld} -64"
5206
        fi
5207
        ;;
5208
      esac
5209
      ;;
5210
    esac
5211
  fi
5212
  rm -rf conftest*
5213
  ;;
5214
esac
5215
 
5216
need_locks="$enable_libtool_lock"
5217
 
5218
 
5219
  case $host_os in
5220
    rhapsody* | darwin*)
5221
    if test -n "$ac_tool_prefix"; then
5222
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5223
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5224 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5226 233 julius
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5227 90 jeremybenn
  $as_echo_n "(cached) " >&6
5228
else
5229
  if test -n "$DSYMUTIL"; then
5230
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5231
else
5232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233
for as_dir in $PATH
5234
do
5235
  IFS=$as_save_IFS
5236
  test -z "$as_dir" && as_dir=.
5237 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5238 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5240 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 90 jeremybenn
    break 2
5242
  fi
5243
done
5244 233 julius
  done
5245 90 jeremybenn
IFS=$as_save_IFS
5246
 
5247
fi
5248
fi
5249
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5250
if test -n "$DSYMUTIL"; then
5251 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5252 90 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5253
else
5254 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 90 jeremybenn
$as_echo "no" >&6; }
5256
fi
5257
 
5258
 
5259
fi
5260
if test -z "$ac_cv_prog_DSYMUTIL"; then
5261
  ac_ct_DSYMUTIL=$DSYMUTIL
5262
  # Extract the first word of "dsymutil", so it can be a program name with args.
5263
set dummy dsymutil; ac_word=$2
5264 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5266 233 julius
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5267 90 jeremybenn
  $as_echo_n "(cached) " >&6
5268
else
5269
  if test -n "$ac_ct_DSYMUTIL"; then
5270
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5271
else
5272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273
for as_dir in $PATH
5274
do
5275
  IFS=$as_save_IFS
5276
  test -z "$as_dir" && as_dir=.
5277 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5278 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5280 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 90 jeremybenn
    break 2
5282
  fi
5283
done
5284 233 julius
  done
5285 90 jeremybenn
IFS=$as_save_IFS
5286
 
5287
fi
5288
fi
5289
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5290
if test -n "$ac_ct_DSYMUTIL"; then
5291 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5292 90 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5293
else
5294 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 90 jeremybenn
$as_echo "no" >&6; }
5296
fi
5297
 
5298
  if test "x$ac_ct_DSYMUTIL" = x; then
5299
    DSYMUTIL=":"
5300
  else
5301
    case $cross_compiling:$ac_tool_warned in
5302
yes:)
5303 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305
ac_tool_warned=yes ;;
5306
esac
5307
    DSYMUTIL=$ac_ct_DSYMUTIL
5308
  fi
5309
else
5310
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5311
fi
5312
 
5313
    if test -n "$ac_tool_prefix"; then
5314
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5315
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5316 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5318 233 julius
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5319 90 jeremybenn
  $as_echo_n "(cached) " >&6
5320
else
5321
  if test -n "$NMEDIT"; then
5322
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5323
else
5324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325
for as_dir in $PATH
5326
do
5327
  IFS=$as_save_IFS
5328
  test -z "$as_dir" && as_dir=.
5329 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5330 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5332 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 90 jeremybenn
    break 2
5334
  fi
5335
done
5336 233 julius
  done
5337 90 jeremybenn
IFS=$as_save_IFS
5338
 
5339
fi
5340
fi
5341
NMEDIT=$ac_cv_prog_NMEDIT
5342
if test -n "$NMEDIT"; then
5343 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5344 90 jeremybenn
$as_echo "$NMEDIT" >&6; }
5345
else
5346 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 90 jeremybenn
$as_echo "no" >&6; }
5348
fi
5349
 
5350
 
5351
fi
5352
if test -z "$ac_cv_prog_NMEDIT"; then
5353
  ac_ct_NMEDIT=$NMEDIT
5354
  # Extract the first word of "nmedit", so it can be a program name with args.
5355
set dummy nmedit; ac_word=$2
5356 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5358 233 julius
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5359 90 jeremybenn
  $as_echo_n "(cached) " >&6
5360
else
5361
  if test -n "$ac_ct_NMEDIT"; then
5362
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5363
else
5364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365
for as_dir in $PATH
5366
do
5367
  IFS=$as_save_IFS
5368
  test -z "$as_dir" && as_dir=.
5369 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5370 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5372 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 90 jeremybenn
    break 2
5374
  fi
5375
done
5376 233 julius
  done
5377 90 jeremybenn
IFS=$as_save_IFS
5378
 
5379
fi
5380
fi
5381
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5382
if test -n "$ac_ct_NMEDIT"; then
5383 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5384 90 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
5385
else
5386 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 90 jeremybenn
$as_echo "no" >&6; }
5388
fi
5389
 
5390
  if test "x$ac_ct_NMEDIT" = x; then
5391
    NMEDIT=":"
5392
  else
5393
    case $cross_compiling:$ac_tool_warned in
5394
yes:)
5395 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5396 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5397
ac_tool_warned=yes ;;
5398
esac
5399
    NMEDIT=$ac_ct_NMEDIT
5400
  fi
5401
else
5402
  NMEDIT="$ac_cv_prog_NMEDIT"
5403
fi
5404
 
5405
    if test -n "$ac_tool_prefix"; then
5406
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5407
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5408 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5410 233 julius
if test "${ac_cv_prog_LIPO+set}" = set; then :
5411 90 jeremybenn
  $as_echo_n "(cached) " >&6
5412
else
5413
  if test -n "$LIPO"; then
5414
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5415
else
5416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417
for as_dir in $PATH
5418
do
5419
  IFS=$as_save_IFS
5420
  test -z "$as_dir" && as_dir=.
5421 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5422 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5424 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 90 jeremybenn
    break 2
5426
  fi
5427
done
5428 233 julius
  done
5429 90 jeremybenn
IFS=$as_save_IFS
5430
 
5431
fi
5432
fi
5433
LIPO=$ac_cv_prog_LIPO
5434
if test -n "$LIPO"; then
5435 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5436 90 jeremybenn
$as_echo "$LIPO" >&6; }
5437
else
5438 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 90 jeremybenn
$as_echo "no" >&6; }
5440
fi
5441
 
5442
 
5443
fi
5444
if test -z "$ac_cv_prog_LIPO"; then
5445
  ac_ct_LIPO=$LIPO
5446
  # Extract the first word of "lipo", so it can be a program name with args.
5447
set dummy lipo; ac_word=$2
5448 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5450 233 julius
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5451 90 jeremybenn
  $as_echo_n "(cached) " >&6
5452
else
5453
  if test -n "$ac_ct_LIPO"; then
5454
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5455
else
5456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457
for as_dir in $PATH
5458
do
5459
  IFS=$as_save_IFS
5460
  test -z "$as_dir" && as_dir=.
5461 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5462 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463
    ac_cv_prog_ac_ct_LIPO="lipo"
5464 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 90 jeremybenn
    break 2
5466
  fi
5467
done
5468 233 julius
  done
5469 90 jeremybenn
IFS=$as_save_IFS
5470
 
5471
fi
5472
fi
5473
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5474
if test -n "$ac_ct_LIPO"; then
5475 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5476 90 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
5477
else
5478 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 90 jeremybenn
$as_echo "no" >&6; }
5480
fi
5481
 
5482
  if test "x$ac_ct_LIPO" = x; then
5483
    LIPO=":"
5484
  else
5485
    case $cross_compiling:$ac_tool_warned in
5486
yes:)
5487 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489
ac_tool_warned=yes ;;
5490
esac
5491
    LIPO=$ac_ct_LIPO
5492
  fi
5493
else
5494
  LIPO="$ac_cv_prog_LIPO"
5495
fi
5496
 
5497
    if test -n "$ac_tool_prefix"; then
5498
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5499
set dummy ${ac_tool_prefix}otool; ac_word=$2
5500 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5502 233 julius
if test "${ac_cv_prog_OTOOL+set}" = set; then :
5503 90 jeremybenn
  $as_echo_n "(cached) " >&6
5504
else
5505
  if test -n "$OTOOL"; then
5506
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5507
else
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509
for as_dir in $PATH
5510
do
5511
  IFS=$as_save_IFS
5512
  test -z "$as_dir" && as_dir=.
5513 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5514 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5516 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 90 jeremybenn
    break 2
5518
  fi
5519
done
5520 233 julius
  done
5521 90 jeremybenn
IFS=$as_save_IFS
5522
 
5523
fi
5524
fi
5525
OTOOL=$ac_cv_prog_OTOOL
5526
if test -n "$OTOOL"; then
5527 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5528 90 jeremybenn
$as_echo "$OTOOL" >&6; }
5529
else
5530 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 90 jeremybenn
$as_echo "no" >&6; }
5532
fi
5533
 
5534
 
5535
fi
5536
if test -z "$ac_cv_prog_OTOOL"; then
5537
  ac_ct_OTOOL=$OTOOL
5538
  # Extract the first word of "otool", so it can be a program name with args.
5539
set dummy otool; ac_word=$2
5540 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5542 233 julius
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5543 90 jeremybenn
  $as_echo_n "(cached) " >&6
5544
else
5545
  if test -n "$ac_ct_OTOOL"; then
5546
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5547
else
5548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549
for as_dir in $PATH
5550
do
5551
  IFS=$as_save_IFS
5552
  test -z "$as_dir" && as_dir=.
5553 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5554 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555
    ac_cv_prog_ac_ct_OTOOL="otool"
5556 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 90 jeremybenn
    break 2
5558
  fi
5559
done
5560 233 julius
  done
5561 90 jeremybenn
IFS=$as_save_IFS
5562
 
5563
fi
5564
fi
5565
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5566
if test -n "$ac_ct_OTOOL"; then
5567 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5568 90 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
5569
else
5570 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 90 jeremybenn
$as_echo "no" >&6; }
5572
fi
5573
 
5574
  if test "x$ac_ct_OTOOL" = x; then
5575
    OTOOL=":"
5576
  else
5577
    case $cross_compiling:$ac_tool_warned in
5578
yes:)
5579 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581
ac_tool_warned=yes ;;
5582
esac
5583
    OTOOL=$ac_ct_OTOOL
5584
  fi
5585
else
5586
  OTOOL="$ac_cv_prog_OTOOL"
5587
fi
5588
 
5589
    if test -n "$ac_tool_prefix"; then
5590
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5591
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5592 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5594 233 julius
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5595 90 jeremybenn
  $as_echo_n "(cached) " >&6
5596
else
5597
  if test -n "$OTOOL64"; then
5598
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5599
else
5600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601
for as_dir in $PATH
5602
do
5603
  IFS=$as_save_IFS
5604
  test -z "$as_dir" && as_dir=.
5605 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5606 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5608 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 90 jeremybenn
    break 2
5610
  fi
5611
done
5612 233 julius
  done
5613 90 jeremybenn
IFS=$as_save_IFS
5614
 
5615
fi
5616
fi
5617
OTOOL64=$ac_cv_prog_OTOOL64
5618
if test -n "$OTOOL64"; then
5619 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5620 90 jeremybenn
$as_echo "$OTOOL64" >&6; }
5621
else
5622 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 90 jeremybenn
$as_echo "no" >&6; }
5624
fi
5625
 
5626
 
5627
fi
5628
if test -z "$ac_cv_prog_OTOOL64"; then
5629
  ac_ct_OTOOL64=$OTOOL64
5630
  # Extract the first word of "otool64", so it can be a program name with args.
5631
set dummy otool64; ac_word=$2
5632 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5634 233 julius
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5635 90 jeremybenn
  $as_echo_n "(cached) " >&6
5636
else
5637
  if test -n "$ac_ct_OTOOL64"; then
5638
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5639
else
5640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641
for as_dir in $PATH
5642
do
5643
  IFS=$as_save_IFS
5644
  test -z "$as_dir" && as_dir=.
5645 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5646 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5648 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 90 jeremybenn
    break 2
5650
  fi
5651
done
5652 233 julius
  done
5653 90 jeremybenn
IFS=$as_save_IFS
5654
 
5655
fi
5656
fi
5657
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5658
if test -n "$ac_ct_OTOOL64"; then
5659 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5660 90 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
5661
else
5662 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 90 jeremybenn
$as_echo "no" >&6; }
5664
fi
5665
 
5666
  if test "x$ac_ct_OTOOL64" = x; then
5667
    OTOOL64=":"
5668
  else
5669
    case $cross_compiling:$ac_tool_warned in
5670
yes:)
5671 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673
ac_tool_warned=yes ;;
5674
esac
5675
    OTOOL64=$ac_ct_OTOOL64
5676
  fi
5677
else
5678
  OTOOL64="$ac_cv_prog_OTOOL64"
5679
fi
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
 
5696
 
5697
 
5698
 
5699
 
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5708 90 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
5709 233 julius
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5710 90 jeremybenn
  $as_echo_n "(cached) " >&6
5711
else
5712
  lt_cv_apple_cc_single_mod=no
5713
      if test -z "${LT_MULTI_MODULE}"; then
5714
        # By default we will add the -single_module flag. You can override
5715
        # by either setting the environment variable LT_MULTI_MODULE
5716
        # non-empty at configure time, or by adding -multi_module to the
5717
        # link flags.
5718
        rm -rf libconftest.dylib*
5719
        echo "int foo(void){return 1;}" > conftest.c
5720
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5721
-dynamiclib -Wl,-single_module conftest.c" >&5
5722
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5723
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5724
        _lt_result=$?
5725
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5726
          lt_cv_apple_cc_single_mod=yes
5727
        else
5728
          cat conftest.err >&5
5729
        fi
5730
        rm -rf libconftest.dylib*
5731
        rm -f conftest.*
5732
      fi
5733
fi
5734 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5735 90 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5736 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5737 90 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5738 233 julius
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5739 90 jeremybenn
  $as_echo_n "(cached) " >&6
5740
else
5741
  lt_cv_ld_exported_symbols_list=no
5742
      save_LDFLAGS=$LDFLAGS
5743
      echo "_main" > conftest.sym
5744
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5745 233 julius
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 90 jeremybenn
/* end confdefs.h.  */
5747
 
5748
int
5749
main ()
5750
{
5751
 
5752
  ;
5753
  return 0;
5754
}
5755
_ACEOF
5756 233 julius
if ac_fn_c_try_link "$LINENO"; then :
5757 90 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
5758
else
5759 233 julius
  lt_cv_ld_exported_symbols_list=no
5760 90 jeremybenn
fi
5761 233 julius
rm -f core conftest.err conftest.$ac_objext \
5762
    conftest$ac_exeext conftest.$ac_ext
5763 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
5764
 
5765
fi
5766 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5767 90 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5768
    case $host_os in
5769
    rhapsody* | darwin1.[012])
5770
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5771
    darwin1.*)
5772
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5773
    darwin*) # darwin 5.x on
5774
      # if running on 10.5 or later, the deployment target defaults
5775
      # to the OS version, if on x86, and 10.4, the deployment
5776
      # target defaults to 10.4. Don't you love it?
5777
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5778
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5779
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5780
        10.[012]*)
5781
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5782
        10.*)
5783
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5784
      esac
5785
    ;;
5786
  esac
5787
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5788
      _lt_dar_single_mod='$single_module'
5789
    fi
5790
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5791
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5792
    else
5793
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5794
    fi
5795
    if test "$DSYMUTIL" != ":"; then
5796
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5797
    else
5798
      _lt_dsymutil=
5799
    fi
5800
    ;;
5801
  esac
5802
 
5803
ac_ext=c
5804
ac_cpp='$CPP $CPPFLAGS'
5805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5809 90 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5810
# On Suns, sometimes $CPP names a directory.
5811
if test -n "$CPP" && test -d "$CPP"; then
5812
  CPP=
5813
fi
5814
if test -z "$CPP"; then
5815 233 julius
  if test "${ac_cv_prog_CPP+set}" = set; then :
5816 90 jeremybenn
  $as_echo_n "(cached) " >&6
5817
else
5818
      # Double quotes because CPP needs to be expanded
5819
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5820
    do
5821
      ac_preproc_ok=false
5822
for ac_c_preproc_warn_flag in '' yes
5823
do
5824
  # Use a header file that comes with gcc, so configuring glibc
5825
  # with a fresh cross-compiler works.
5826
  # Prefer  to  if __STDC__ is defined, since
5827
  #  exists even on freestanding compilers.
5828
  # On the NeXT, cc -E runs the code through the compiler's parser,
5829
  # not just through cpp. "Syntax error" is here to catch this case.
5830 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 90 jeremybenn
/* end confdefs.h.  */
5832
#ifdef __STDC__
5833
# include 
5834
#else
5835
# include 
5836
#endif
5837
                     Syntax error
5838
_ACEOF
5839 233 julius
if ac_fn_c_try_cpp "$LINENO"; then :
5840
 
5841 121 jeremybenn
else
5842 90 jeremybenn
  # Broken: fails on valid input.
5843
continue
5844
fi
5845
rm -f conftest.err conftest.$ac_ext
5846
 
5847
  # OK, works on sane cases.  Now check whether nonexistent headers
5848
  # can be detected and how.
5849 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 90 jeremybenn
/* end confdefs.h.  */
5851
#include 
5852
_ACEOF
5853 233 julius
if ac_fn_c_try_cpp "$LINENO"; then :
5854 90 jeremybenn
  # Broken: success on invalid input.
5855
continue
5856
else
5857
  # Passes both tests.
5858
ac_preproc_ok=:
5859
break
5860
fi
5861
rm -f conftest.err conftest.$ac_ext
5862
 
5863
done
5864
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5865
rm -f conftest.err conftest.$ac_ext
5866 233 julius
if $ac_preproc_ok; then :
5867 90 jeremybenn
  break
5868
fi
5869
 
5870
    done
5871
    ac_cv_prog_CPP=$CPP
5872
 
5873
fi
5874
  CPP=$ac_cv_prog_CPP
5875
else
5876
  ac_cv_prog_CPP=$CPP
5877
fi
5878 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5879 90 jeremybenn
$as_echo "$CPP" >&6; }
5880
ac_preproc_ok=false
5881
for ac_c_preproc_warn_flag in '' yes
5882
do
5883
  # Use a header file that comes with gcc, so configuring glibc
5884
  # with a fresh cross-compiler works.
5885
  # Prefer  to  if __STDC__ is defined, since
5886
  #  exists even on freestanding compilers.
5887
  # On the NeXT, cc -E runs the code through the compiler's parser,
5888
  # not just through cpp. "Syntax error" is here to catch this case.
5889 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 90 jeremybenn
/* end confdefs.h.  */
5891
#ifdef __STDC__
5892
# include 
5893
#else
5894
# include 
5895
#endif
5896
                     Syntax error
5897
_ACEOF
5898 233 julius
if ac_fn_c_try_cpp "$LINENO"; then :
5899
 
5900 121 jeremybenn
else
5901 90 jeremybenn
  # Broken: fails on valid input.
5902
continue
5903
fi
5904
rm -f conftest.err conftest.$ac_ext
5905
 
5906
  # OK, works on sane cases.  Now check whether nonexistent headers
5907
  # can be detected and how.
5908 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 90 jeremybenn
/* end confdefs.h.  */
5910
#include 
5911
_ACEOF
5912 233 julius
if ac_fn_c_try_cpp "$LINENO"; then :
5913 90 jeremybenn
  # Broken: success on invalid input.
5914
continue
5915
else
5916
  # Passes both tests.
5917
ac_preproc_ok=:
5918
break
5919
fi
5920
rm -f conftest.err conftest.$ac_ext
5921
 
5922
done
5923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924
rm -f conftest.err conftest.$ac_ext
5925 233 julius
if $ac_preproc_ok; then :
5926
 
5927 90 jeremybenn
else
5928 233 julius
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 233 julius
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5931
See \`config.log' for more details." "$LINENO" 5; }
5932 90 jeremybenn
fi
5933
 
5934
ac_ext=c
5935
ac_cpp='$CPP $CPPFLAGS'
5936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939
 
5940
 
5941 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5942 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
5943 233 julius
if test "${ac_cv_header_stdc+set}" = set; then :
5944 90 jeremybenn
  $as_echo_n "(cached) " >&6
5945
else
5946 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 90 jeremybenn
/* end confdefs.h.  */
5948
#include 
5949
#include 
5950
#include 
5951
#include 
5952
 
5953
int
5954
main ()
5955
{
5956
 
5957
  ;
5958
  return 0;
5959
}
5960
_ACEOF
5961 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
5962 90 jeremybenn
  ac_cv_header_stdc=yes
5963
else
5964 233 julius
  ac_cv_header_stdc=no
5965 90 jeremybenn
fi
5966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967
 
5968
if test $ac_cv_header_stdc = yes; then
5969
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5970 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 90 jeremybenn
/* end confdefs.h.  */
5972
#include 
5973
 
5974
_ACEOF
5975
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 233 julius
  $EGREP "memchr" >/dev/null 2>&1; then :
5977
 
5978 90 jeremybenn
else
5979
  ac_cv_header_stdc=no
5980
fi
5981
rm -f conftest*
5982
 
5983
fi
5984
 
5985
if test $ac_cv_header_stdc = yes; then
5986
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 90 jeremybenn
/* end confdefs.h.  */
5989
#include 
5990
 
5991
_ACEOF
5992
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 233 julius
  $EGREP "free" >/dev/null 2>&1; then :
5994
 
5995 90 jeremybenn
else
5996
  ac_cv_header_stdc=no
5997
fi
5998
rm -f conftest*
5999
 
6000
fi
6001
 
6002
if test $ac_cv_header_stdc = yes; then
6003
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 233 julius
  if test "$cross_compiling" = yes; then :
6005 90 jeremybenn
  :
6006
else
6007 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 90 jeremybenn
/* end confdefs.h.  */
6009
#include 
6010
#include 
6011
#if ((' ' & 0x0FF) == 0x020)
6012
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6013
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6014
#else
6015
# define ISLOWER(c) \
6016
                   (('a' <= (c) && (c) <= 'i') \
6017
                     || ('j' <= (c) && (c) <= 'r') \
6018
                     || ('s' <= (c) && (c) <= 'z'))
6019
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6020
#endif
6021
 
6022
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6023
int
6024
main ()
6025
{
6026
  int i;
6027
  for (i = 0; i < 256; i++)
6028
    if (XOR (islower (i), ISLOWER (i))
6029
        || toupper (i) != TOUPPER (i))
6030
      return 2;
6031
  return 0;
6032
}
6033
_ACEOF
6034 233 julius
if ac_fn_c_try_run "$LINENO"; then :
6035
 
6036 121 jeremybenn
else
6037 233 julius
  ac_cv_header_stdc=no
6038 90 jeremybenn
fi
6039 233 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6040
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6041 90 jeremybenn
fi
6042
 
6043
fi
6044
fi
6045 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6046 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
6047
if test $ac_cv_header_stdc = yes; then
6048
 
6049 233 julius
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6050 90 jeremybenn
 
6051
fi
6052
 
6053
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6054
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6055
                  inttypes.h stdint.h unistd.h
6056 233 julius
do :
6057
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6059
"
6060
eval as_val=\$$as_ac_Header
6061
   if test "x$as_val" = x""yes; then :
6062 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6063
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064
_ACEOF
6065
 
6066
fi
6067
 
6068
done
6069
 
6070
 
6071
for ac_header in dlfcn.h
6072 233 julius
do :
6073
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6074
"
6075
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6076 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6077 233 julius
#define HAVE_DLFCN_H 1
6078 90 jeremybenn
_ACEOF
6079
 
6080
fi
6081
 
6082
done
6083
 
6084
 
6085
 
6086
# Set options
6087
 
6088
 
6089
 
6090
        enable_dlopen=no
6091
 
6092
 
6093
  enable_win32_dll=no
6094
 
6095
 
6096
            # Check whether --enable-shared was given.
6097 233 julius
if test "${enable_shared+set}" = set; then :
6098 90 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6099
    case $enableval in
6100
    yes) enable_shared=yes ;;
6101
    no) enable_shared=no ;;
6102
    *)
6103
      enable_shared=no
6104
      # Look at the argument we got.  We use all the common list separators.
6105
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6106
      for pkg in $enableval; do
6107
        IFS="$lt_save_ifs"
6108
        if test "X$pkg" = "X$p"; then
6109
          enable_shared=yes
6110
        fi
6111
      done
6112
      IFS="$lt_save_ifs"
6113
      ;;
6114
    esac
6115
else
6116
  enable_shared=yes
6117
fi
6118
 
6119
 
6120
 
6121
 
6122
 
6123
 
6124
 
6125
 
6126
 
6127
  # Check whether --enable-static was given.
6128 233 julius
if test "${enable_static+set}" = set; then :
6129 90 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6130
    case $enableval in
6131
    yes) enable_static=yes ;;
6132
    no) enable_static=no ;;
6133
    *)
6134
     enable_static=no
6135
      # Look at the argument we got.  We use all the common list separators.
6136
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6137
      for pkg in $enableval; do
6138
        IFS="$lt_save_ifs"
6139
        if test "X$pkg" = "X$p"; then
6140
          enable_static=yes
6141
        fi
6142
      done
6143
      IFS="$lt_save_ifs"
6144
      ;;
6145
    esac
6146
else
6147
  enable_static=yes
6148
fi
6149
 
6150
 
6151
 
6152
 
6153
 
6154
 
6155
 
6156
 
6157
 
6158
 
6159
# Check whether --with-pic was given.
6160 233 julius
if test "${with_pic+set}" = set; then :
6161 90 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6162
else
6163
  pic_mode=default
6164
fi
6165
 
6166
 
6167
test -z "$pic_mode" && pic_mode=default
6168
 
6169
 
6170
 
6171
 
6172
 
6173
 
6174
 
6175
  # Check whether --enable-fast-install was given.
6176 233 julius
if test "${enable_fast_install+set}" = set; then :
6177 90 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6178
    case $enableval in
6179
    yes) enable_fast_install=yes ;;
6180
    no) enable_fast_install=no ;;
6181
    *)
6182
      enable_fast_install=no
6183
      # Look at the argument we got.  We use all the common list separators.
6184
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6185
      for pkg in $enableval; do
6186
        IFS="$lt_save_ifs"
6187
        if test "X$pkg" = "X$p"; then
6188
          enable_fast_install=yes
6189
        fi
6190
      done
6191
      IFS="$lt_save_ifs"
6192
      ;;
6193
    esac
6194
else
6195
  enable_fast_install=yes
6196
fi
6197
 
6198
 
6199
 
6200
 
6201
 
6202
 
6203
 
6204
 
6205
 
6206
 
6207
 
6208
# This can be used to rebuild libtool when needed
6209
LIBTOOL_DEPS="$ltmain"
6210
 
6211
# Always use our own libtool.
6212
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6213
 
6214
 
6215
 
6216
 
6217
 
6218
 
6219
 
6220
 
6221
 
6222
 
6223
 
6224
 
6225
 
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
test -z "$LN_S" && LN_S="ln -s"
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
if test -n "${ZSH_VERSION+set}" ; then
6254
   setopt NO_GLOB_SUBST
6255
fi
6256
 
6257 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6258 90 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6259 233 julius
if test "${lt_cv_objdir+set}" = set; then :
6260 90 jeremybenn
  $as_echo_n "(cached) " >&6
6261
else
6262
  rm -f .libs 2>/dev/null
6263
mkdir .libs 2>/dev/null
6264
if test -d .libs; then
6265
  lt_cv_objdir=.libs
6266
else
6267
  # MS-DOS does not allow filenames that begin with a dot.
6268
  lt_cv_objdir=_libs
6269
fi
6270
rmdir .libs 2>/dev/null
6271
fi
6272 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6273 90 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6274
objdir=$lt_cv_objdir
6275
 
6276
 
6277
 
6278
 
6279
 
6280
cat >>confdefs.h <<_ACEOF
6281
#define LT_OBJDIR "$lt_cv_objdir/"
6282
_ACEOF
6283
 
6284
 
6285
 
6286
 
6287
 
6288
 
6289
 
6290
 
6291
 
6292
 
6293
 
6294
 
6295
 
6296
 
6297
 
6298
 
6299
 
6300
case $host_os in
6301
aix3*)
6302
  # AIX sometimes has problems with the GCC collect2 program.  For some
6303
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6304
  # vanish in a puff of smoke.
6305
  if test "X${COLLECT_NAMES+set}" != Xset; then
6306
    COLLECT_NAMES=
6307
    export COLLECT_NAMES
6308
  fi
6309
  ;;
6310
esac
6311
 
6312
# Sed substitution that helps us do robust quoting.  It backslashifies
6313
# metacharacters that are still active within double-quoted strings.
6314
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6315
 
6316
# Same as above, but do not quote variable references.
6317
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6318
 
6319
# Sed substitution to delay expansion of an escaped shell variable in a
6320
# double_quote_subst'ed string.
6321
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6322
 
6323
# Sed substitution to delay expansion of an escaped single quote.
6324
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6325
 
6326
# Sed substitution to avoid accidental globbing in evaled expressions
6327
no_glob_subst='s/\*/\\\*/g'
6328
 
6329
# Global variables:
6330
ofile=libtool
6331
can_build_shared=yes
6332
 
6333
# All known linkers require a `.a' archive for static linking (except MSVC,
6334
# which needs '.lib').
6335
libext=a
6336
 
6337
with_gnu_ld="$lt_cv_prog_gnu_ld"
6338
 
6339
old_CC="$CC"
6340
old_CFLAGS="$CFLAGS"
6341
 
6342
# Set sane defaults for various variables
6343
test -z "$CC" && CC=cc
6344
test -z "$LTCC" && LTCC=$CC
6345
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6346
test -z "$LD" && LD=ld
6347
test -z "$ac_objext" && ac_objext=o
6348
 
6349
for cc_temp in $compiler""; do
6350
  case $cc_temp in
6351
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6352
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6353
    \-*) ;;
6354
    *) break;;
6355
  esac
6356
done
6357
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6358
 
6359
 
6360
# Only perform the check for file, if the check method requires it
6361
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6362
case $deplibs_check_method in
6363
file_magic*)
6364
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6365 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6366 90 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6367 233 julius
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6368 90 jeremybenn
  $as_echo_n "(cached) " >&6
6369
else
6370
  case $MAGIC_CMD in
6371
[\\/*] |  ?:[\\/]*)
6372
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6373
  ;;
6374
*)
6375
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6376
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6377
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6378
  for ac_dir in $ac_dummy; do
6379
    IFS="$lt_save_ifs"
6380
    test -z "$ac_dir" && ac_dir=.
6381
    if test -f $ac_dir/${ac_tool_prefix}file; then
6382
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6383
      if test -n "$file_magic_test_file"; then
6384
        case $deplibs_check_method in
6385
        "file_magic "*)
6386
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6387
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6388
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6389
            $EGREP "$file_magic_regex" > /dev/null; then
6390
            :
6391
          else
6392
            cat <<_LT_EOF 1>&2
6393
 
6394
*** Warning: the command libtool uses to detect shared libraries,
6395
*** $file_magic_cmd, produces output that libtool cannot recognize.
6396
*** The result is that libtool may fail to recognize shared libraries
6397
*** as such.  This will affect the creation of libtool libraries that
6398
*** depend on shared libraries, but programs linked with such libtool
6399
*** libraries will work regardless of this problem.  Nevertheless, you
6400
*** may want to report the problem to your system manager and/or to
6401
*** bug-libtool@gnu.org
6402
 
6403
_LT_EOF
6404
          fi ;;
6405
        esac
6406
      fi
6407
      break
6408
    fi
6409
  done
6410
  IFS="$lt_save_ifs"
6411
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6412
  ;;
6413
esac
6414
fi
6415
 
6416
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6417
if test -n "$MAGIC_CMD"; then
6418 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6419 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6420
else
6421 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 90 jeremybenn
$as_echo "no" >&6; }
6423
fi
6424
 
6425
 
6426
 
6427
 
6428
 
6429
if test -z "$lt_cv_path_MAGIC_CMD"; then
6430
  if test -n "$ac_tool_prefix"; then
6431 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6432 90 jeremybenn
$as_echo_n "checking for file... " >&6; }
6433 233 julius
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6434 90 jeremybenn
  $as_echo_n "(cached) " >&6
6435
else
6436
  case $MAGIC_CMD in
6437
[\\/*] |  ?:[\\/]*)
6438
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6439
  ;;
6440
*)
6441
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6442
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6443
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6444
  for ac_dir in $ac_dummy; do
6445
    IFS="$lt_save_ifs"
6446
    test -z "$ac_dir" && ac_dir=.
6447
    if test -f $ac_dir/file; then
6448
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6449
      if test -n "$file_magic_test_file"; then
6450
        case $deplibs_check_method in
6451
        "file_magic "*)
6452
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6453
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6454
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6455
            $EGREP "$file_magic_regex" > /dev/null; then
6456
            :
6457
          else
6458
            cat <<_LT_EOF 1>&2
6459
 
6460
*** Warning: the command libtool uses to detect shared libraries,
6461
*** $file_magic_cmd, produces output that libtool cannot recognize.
6462
*** The result is that libtool may fail to recognize shared libraries
6463
*** as such.  This will affect the creation of libtool libraries that
6464
*** depend on shared libraries, but programs linked with such libtool
6465
*** libraries will work regardless of this problem.  Nevertheless, you
6466
*** may want to report the problem to your system manager and/or to
6467
*** bug-libtool@gnu.org
6468
 
6469
_LT_EOF
6470
          fi ;;
6471
        esac
6472
      fi
6473
      break
6474
    fi
6475
  done
6476
  IFS="$lt_save_ifs"
6477
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6478
  ;;
6479
esac
6480
fi
6481
 
6482
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483
if test -n "$MAGIC_CMD"; then
6484 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6485 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6486
else
6487 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 90 jeremybenn
$as_echo "no" >&6; }
6489
fi
6490
 
6491
 
6492
  else
6493
    MAGIC_CMD=:
6494
  fi
6495
fi
6496
 
6497
  fi
6498
  ;;
6499
esac
6500
 
6501
# Use C for the default configuration in the libtool script
6502
 
6503
lt_save_CC="$CC"
6504
ac_ext=c
6505
ac_cpp='$CPP $CPPFLAGS'
6506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
 
6510
 
6511
# Source file extension for C test sources.
6512
ac_ext=c
6513
 
6514
# Object file extension for compiled C test sources.
6515
objext=o
6516
objext=$objext
6517
 
6518
# Code to be used in simple compile tests
6519
lt_simple_compile_test_code="int some_variable = 0;"
6520
 
6521
# Code to be used in simple link tests
6522
lt_simple_link_test_code='int main(){return(0);}'
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529
 
6530
# If no C compiler was specified, use CC.
6531
LTCC=${LTCC-"$CC"}
6532
 
6533
# If no C compiler flags were specified, use CFLAGS.
6534
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6535
 
6536
# Allow CC to be a program name with arguments.
6537
compiler=$CC
6538
 
6539
# Save the default compiler, since it gets overwritten when the other
6540
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6541
compiler_DEFAULT=$CC
6542
 
6543
# save warnings/boilerplate of simple test code
6544
ac_outfile=conftest.$ac_objext
6545
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6546
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6547
_lt_compiler_boilerplate=`cat conftest.err`
6548
$RM conftest*
6549
 
6550
ac_outfile=conftest.$ac_objext
6551
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6552
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6553
_lt_linker_boilerplate=`cat conftest.err`
6554
$RM -r conftest*
6555
 
6556
 
6557
## CAVEAT EMPTOR:
6558
## There is no encapsulation within the following macros, do not change
6559
## the running order or otherwise move them around unless you know exactly
6560
## what you are doing...
6561
if test -n "$compiler"; then
6562
 
6563
lt_prog_compiler_no_builtin_flag=
6564
 
6565
if test "$GCC" = yes; then
6566
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6567
 
6568 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6569 90 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6570 233 julius
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6571 90 jeremybenn
  $as_echo_n "(cached) " >&6
6572
else
6573
  lt_cv_prog_compiler_rtti_exceptions=no
6574
   ac_outfile=conftest.$ac_objext
6575
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6576
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6577
   # Insert the option either (1) after the last *FLAGS variable, or
6578
   # (2) before a word containing "conftest.", or (3) at the end.
6579
   # Note that $ac_compile itself does not contain backslashes and begins
6580
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6581
   # The option is referenced via a variable to avoid confusing sed.
6582
   lt_compile=`echo "$ac_compile" | $SED \
6583
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6584
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6585
   -e 's:$: $lt_compiler_flag:'`
6586 233 julius
   (eval echo "\"\$as_me:6586: $lt_compile\"" >&5)
6587 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6588
   ac_status=$?
6589
   cat conftest.err >&5
6590 233 julius
   echo "$as_me:6590: \$? = $ac_status" >&5
6591 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6592
     # The compiler can only warn and ignore the option if not recognized
6593
     # So say no if there are warnings other than the usual output.
6594
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6595
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6596
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6597
       lt_cv_prog_compiler_rtti_exceptions=yes
6598
     fi
6599
   fi
6600
   $RM conftest*
6601
 
6602
fi
6603 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6604 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6605
 
6606
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6607
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6608
else
6609
    :
6610
fi
6611
 
6612
fi
6613
 
6614
 
6615
 
6616
 
6617
 
6618
 
6619
  lt_prog_compiler_wl=
6620
lt_prog_compiler_pic=
6621
lt_prog_compiler_static=
6622
 
6623 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6624 90 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6625
 
6626
  if test "$GCC" = yes; then
6627
    lt_prog_compiler_wl='-Wl,'
6628
    lt_prog_compiler_static='-static'
6629
 
6630
    case $host_os in
6631
      aix*)
6632
      # All AIX code is PIC.
6633
      if test "$host_cpu" = ia64; then
6634
        # AIX 5 now supports IA64 processor
6635
        lt_prog_compiler_static='-Bstatic'
6636
      fi
6637
      ;;
6638
 
6639
    amigaos*)
6640
      case $host_cpu in
6641
      powerpc)
6642
            # see comment about AmigaOS4 .so support
6643
            lt_prog_compiler_pic='-fPIC'
6644
        ;;
6645
      m68k)
6646
            # FIXME: we need at least 68020 code to build shared libraries, but
6647
            # adding the `-m68020' flag to GCC prevents building anything better,
6648
            # like `-m68040'.
6649
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6650
        ;;
6651
      esac
6652
      ;;
6653
 
6654
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6655
      # PIC is the default for these OSes.
6656
      ;;
6657
 
6658
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6659
      # This hack is so that the source file can tell whether it is being
6660
      # built for inclusion in a dll (and should export symbols for example).
6661
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6662
      # (--disable-auto-import) libraries
6663
      lt_prog_compiler_pic='-DDLL_EXPORT'
6664
      ;;
6665
 
6666
    darwin* | rhapsody*)
6667
      # PIC is the default on this platform
6668
      # Common symbols not allowed in MH_DYLIB files
6669
      lt_prog_compiler_pic='-fno-common'
6670
      ;;
6671
 
6672
    hpux*)
6673
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6674
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6675
      # sets the default TLS model and affects inlining.
6676
      case $host_cpu in
6677
      hppa*64*)
6678
        # +Z the default
6679
        ;;
6680
      *)
6681
        lt_prog_compiler_pic='-fPIC'
6682
        ;;
6683
      esac
6684
      ;;
6685
 
6686
    interix[3-9]*)
6687
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6688
      # Instead, we relocate shared libraries at runtime.
6689
      ;;
6690
 
6691
    msdosdjgpp*)
6692
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6693
      # on systems that don't support them.
6694
      lt_prog_compiler_can_build_shared=no
6695
      enable_shared=no
6696
      ;;
6697
 
6698
    *nto* | *qnx*)
6699
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6700
      # it will coredump.
6701
      lt_prog_compiler_pic='-fPIC -shared'
6702
      ;;
6703
 
6704
    sysv4*MP*)
6705
      if test -d /usr/nec; then
6706
        lt_prog_compiler_pic=-Kconform_pic
6707
      fi
6708
      ;;
6709
 
6710
    *)
6711
      lt_prog_compiler_pic='-fPIC'
6712
      ;;
6713
    esac
6714
  else
6715
    # PORTME Check for flag to pass linker flags through the system compiler.
6716
    case $host_os in
6717
    aix*)
6718
      lt_prog_compiler_wl='-Wl,'
6719
      if test "$host_cpu" = ia64; then
6720
        # AIX 5 now supports IA64 processor
6721
        lt_prog_compiler_static='-Bstatic'
6722
      else
6723
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6724
      fi
6725
      ;;
6726
 
6727
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6728
      # This hack is so that the source file can tell whether it is being
6729
      # built for inclusion in a dll (and should export symbols for example).
6730
      lt_prog_compiler_pic='-DDLL_EXPORT'
6731
      ;;
6732
 
6733
    hpux9* | hpux10* | hpux11*)
6734
      lt_prog_compiler_wl='-Wl,'
6735
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6736
      # not for PA HP-UX.
6737
      case $host_cpu in
6738
      hppa*64*|ia64*)
6739
        # +Z the default
6740
        ;;
6741
      *)
6742
        lt_prog_compiler_pic='+Z'
6743
        ;;
6744
      esac
6745
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6746
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6747
      ;;
6748
 
6749
    irix5* | irix6* | nonstopux*)
6750
      lt_prog_compiler_wl='-Wl,'
6751
      # PIC (with -KPIC) is the default.
6752
      lt_prog_compiler_static='-non_shared'
6753
      ;;
6754
 
6755
    linux* | k*bsd*-gnu)
6756
      case $cc_basename in
6757
      # old Intel for x86_64 which still supported -KPIC.
6758
      ecc*)
6759
        lt_prog_compiler_wl='-Wl,'
6760
        lt_prog_compiler_pic='-KPIC'
6761
        lt_prog_compiler_static='-static'
6762
        ;;
6763
      # icc used to be incompatible with GCC.
6764
      # ICC 10 doesn't accept -KPIC any more.
6765
      icc* | ifort*)
6766
        lt_prog_compiler_wl='-Wl,'
6767
        lt_prog_compiler_pic='-fPIC'
6768
        lt_prog_compiler_static='-static'
6769
        ;;
6770
      # Lahey Fortran 8.1.
6771
      lf95*)
6772
        lt_prog_compiler_wl='-Wl,'
6773
        lt_prog_compiler_pic='--shared'
6774
        lt_prog_compiler_static='--static'
6775
        ;;
6776
      pgcc* | pgf77* | pgf90* | pgf95*)
6777
        # Portland Group compilers (*not* the Pentium gcc compiler,
6778
        # which looks to be a dead project)
6779
        lt_prog_compiler_wl='-Wl,'
6780
        lt_prog_compiler_pic='-fpic'
6781
        lt_prog_compiler_static='-Bstatic'
6782
        ;;
6783
      ccc*)
6784
        lt_prog_compiler_wl='-Wl,'
6785
        # All Alpha code is PIC.
6786
        lt_prog_compiler_static='-non_shared'
6787
        ;;
6788
      xl*)
6789
        # IBM XL C 8.0/Fortran 10.1 on PPC
6790
        lt_prog_compiler_wl='-Wl,'
6791
        lt_prog_compiler_pic='-qpic'
6792
        lt_prog_compiler_static='-qstaticlink'
6793
        ;;
6794
      *)
6795
        case `$CC -V 2>&1 | sed 5q` in
6796
        *Sun\ C*)
6797
          # Sun C 5.9
6798
          lt_prog_compiler_pic='-KPIC'
6799
          lt_prog_compiler_static='-Bstatic'
6800
          lt_prog_compiler_wl='-Wl,'
6801
          ;;
6802
        *Sun\ F*)
6803
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6804
          lt_prog_compiler_pic='-KPIC'
6805
          lt_prog_compiler_static='-Bstatic'
6806
          lt_prog_compiler_wl=''
6807
          ;;
6808
        esac
6809
        ;;
6810
      esac
6811
      ;;
6812
 
6813
    newsos6)
6814
      lt_prog_compiler_pic='-KPIC'
6815
      lt_prog_compiler_static='-Bstatic'
6816
      ;;
6817
 
6818
    *nto* | *qnx*)
6819
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6820
      # it will coredump.
6821
      lt_prog_compiler_pic='-fPIC -shared'
6822
      ;;
6823
 
6824
    osf3* | osf4* | osf5*)
6825
      lt_prog_compiler_wl='-Wl,'
6826
      # All OSF/1 code is PIC.
6827
      lt_prog_compiler_static='-non_shared'
6828
      ;;
6829
 
6830
    rdos*)
6831
      lt_prog_compiler_static='-non_shared'
6832
      ;;
6833
 
6834
    solaris*)
6835
      lt_prog_compiler_pic='-KPIC'
6836
      lt_prog_compiler_static='-Bstatic'
6837
      case $cc_basename in
6838
      f77* | f90* | f95*)
6839
        lt_prog_compiler_wl='-Qoption ld ';;
6840
      *)
6841
        lt_prog_compiler_wl='-Wl,';;
6842
      esac
6843
      ;;
6844
 
6845
    sunos4*)
6846
      lt_prog_compiler_wl='-Qoption ld '
6847
      lt_prog_compiler_pic='-PIC'
6848
      lt_prog_compiler_static='-Bstatic'
6849
      ;;
6850
 
6851
    sysv4 | sysv4.2uw2* | sysv4.3*)
6852
      lt_prog_compiler_wl='-Wl,'
6853
      lt_prog_compiler_pic='-KPIC'
6854
      lt_prog_compiler_static='-Bstatic'
6855
      ;;
6856
 
6857
    sysv4*MP*)
6858
      if test -d /usr/nec ;then
6859
        lt_prog_compiler_pic='-Kconform_pic'
6860
        lt_prog_compiler_static='-Bstatic'
6861
      fi
6862
      ;;
6863
 
6864
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6865
      lt_prog_compiler_wl='-Wl,'
6866
      lt_prog_compiler_pic='-KPIC'
6867
      lt_prog_compiler_static='-Bstatic'
6868
      ;;
6869
 
6870
    unicos*)
6871
      lt_prog_compiler_wl='-Wl,'
6872
      lt_prog_compiler_can_build_shared=no
6873
      ;;
6874
 
6875
    uts4*)
6876
      lt_prog_compiler_pic='-pic'
6877
      lt_prog_compiler_static='-Bstatic'
6878
      ;;
6879
 
6880
    *)
6881
      lt_prog_compiler_can_build_shared=no
6882
      ;;
6883
    esac
6884
  fi
6885
 
6886
case $host_os in
6887
  # For platforms which do not support PIC, -DPIC is meaningless:
6888
  *djgpp*)
6889
    lt_prog_compiler_pic=
6890
    ;;
6891
  *)
6892
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6893
    ;;
6894
esac
6895 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6896 90 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
6897
 
6898
 
6899
 
6900
 
6901
 
6902
 
6903
#
6904
# Check to make sure the PIC flag actually works.
6905
#
6906
if test -n "$lt_prog_compiler_pic"; then
6907 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6908 90 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6909 233 julius
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6910 90 jeremybenn
  $as_echo_n "(cached) " >&6
6911
else
6912
  lt_cv_prog_compiler_pic_works=no
6913
   ac_outfile=conftest.$ac_objext
6914
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6915
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6916
   # Insert the option either (1) after the last *FLAGS variable, or
6917
   # (2) before a word containing "conftest.", or (3) at the end.
6918
   # Note that $ac_compile itself does not contain backslashes and begins
6919
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6920
   # The option is referenced via a variable to avoid confusing sed.
6921
   lt_compile=`echo "$ac_compile" | $SED \
6922
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924
   -e 's:$: $lt_compiler_flag:'`
6925 233 julius
   (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6927
   ac_status=$?
6928
   cat conftest.err >&5
6929 233 julius
   echo "$as_me:6929: \$? = $ac_status" >&5
6930 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6931
     # The compiler can only warn and ignore the option if not recognized
6932
     # So say no if there are warnings other than the usual output.
6933
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6934
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6935
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6936
       lt_cv_prog_compiler_pic_works=yes
6937
     fi
6938
   fi
6939
   $RM conftest*
6940
 
6941
fi
6942 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6943 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6944
 
6945
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6946
    case $lt_prog_compiler_pic in
6947
     "" | " "*) ;;
6948
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6949
     esac
6950
else
6951
    lt_prog_compiler_pic=
6952
     lt_prog_compiler_can_build_shared=no
6953
fi
6954
 
6955
fi
6956
 
6957
 
6958
 
6959
 
6960
 
6961
 
6962
#
6963
# Check to make sure the static flag actually works.
6964
#
6965
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967 90 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
6968 233 julius
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
6969 90 jeremybenn
  $as_echo_n "(cached) " >&6
6970
else
6971
  lt_cv_prog_compiler_static_works=no
6972
   save_LDFLAGS="$LDFLAGS"
6973
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6975
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976
     # The linker can only warn and ignore the option if not recognized
6977
     # So say no if there are warnings
6978
     if test -s conftest.err; then
6979
       # Append any errors to the config.log.
6980
       cat conftest.err 1>&5
6981
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983
       if diff conftest.exp conftest.er2 >/dev/null; then
6984
         lt_cv_prog_compiler_static_works=yes
6985
       fi
6986
     else
6987
       lt_cv_prog_compiler_static_works=yes
6988
     fi
6989
   fi
6990
   $RM -r conftest*
6991
   LDFLAGS="$save_LDFLAGS"
6992
 
6993
fi
6994 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
6995 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
6996
 
6997
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6998
    :
6999
else
7000
    lt_prog_compiler_static=
7001
fi
7002
 
7003
 
7004
 
7005
 
7006
 
7007
 
7008
 
7009 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7010 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7011 233 julius
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7012 90 jeremybenn
  $as_echo_n "(cached) " >&6
7013
else
7014
  lt_cv_prog_compiler_c_o=no
7015
   $RM -r conftest 2>/dev/null
7016
   mkdir conftest
7017
   cd conftest
7018
   mkdir out
7019
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7020
 
7021
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7022
   # Insert the option either (1) after the last *FLAGS variable, or
7023
   # (2) before a word containing "conftest.", or (3) at the end.
7024
   # Note that $ac_compile itself does not contain backslashes and begins
7025
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7026
   lt_compile=`echo "$ac_compile" | $SED \
7027
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7028
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7029
   -e 's:$: $lt_compiler_flag:'`
7030 233 julius
   (eval echo "\"\$as_me:7030: $lt_compile\"" >&5)
7031 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7032
   ac_status=$?
7033
   cat out/conftest.err >&5
7034 233 julius
   echo "$as_me:7034: \$? = $ac_status" >&5
7035 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7036
   then
7037
     # The compiler can only warn and ignore the option if not recognized
7038
     # So say no if there are warnings
7039
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7040
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7041
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7042
       lt_cv_prog_compiler_c_o=yes
7043
     fi
7044
   fi
7045
   chmod u+w . 2>&5
7046
   $RM conftest*
7047
   # SGI C++ compiler will create directory out/ii_files/ for
7048
   # template instantiation
7049
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7050
   $RM out/* && rmdir out
7051
   cd ..
7052
   $RM -r conftest
7053
   $RM conftest*
7054
 
7055
fi
7056 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7057 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7058
 
7059
 
7060
 
7061
 
7062
 
7063
 
7064 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7065 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7066 233 julius
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7067 90 jeremybenn
  $as_echo_n "(cached) " >&6
7068
else
7069
  lt_cv_prog_compiler_c_o=no
7070
   $RM -r conftest 2>/dev/null
7071
   mkdir conftest
7072
   cd conftest
7073
   mkdir out
7074
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7075
 
7076
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7077
   # Insert the option either (1) after the last *FLAGS variable, or
7078
   # (2) before a word containing "conftest.", or (3) at the end.
7079
   # Note that $ac_compile itself does not contain backslashes and begins
7080
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7081
   lt_compile=`echo "$ac_compile" | $SED \
7082
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7083
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7084
   -e 's:$: $lt_compiler_flag:'`
7085 233 julius
   (eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
7086 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7087
   ac_status=$?
7088
   cat out/conftest.err >&5
7089 233 julius
   echo "$as_me:7089: \$? = $ac_status" >&5
7090 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7091
   then
7092
     # The compiler can only warn and ignore the option if not recognized
7093
     # So say no if there are warnings
7094
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7095
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7096
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7097
       lt_cv_prog_compiler_c_o=yes
7098
     fi
7099
   fi
7100
   chmod u+w . 2>&5
7101
   $RM conftest*
7102
   # SGI C++ compiler will create directory out/ii_files/ for
7103
   # template instantiation
7104
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7105
   $RM out/* && rmdir out
7106
   cd ..
7107
   $RM -r conftest
7108
   $RM conftest*
7109
 
7110
fi
7111 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7112 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7113
 
7114
 
7115
 
7116
 
7117
hard_links="nottested"
7118
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7119
  # do not overwrite the value of need_locks provided by the user
7120 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7121 90 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7122
  hard_links=yes
7123
  $RM conftest*
7124
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7125
  touch conftest.a
7126
  ln conftest.a conftest.b 2>&5 || hard_links=no
7127
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7128 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7129 90 jeremybenn
$as_echo "$hard_links" >&6; }
7130
  if test "$hard_links" = no; then
7131 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7132 90 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7133
    need_locks=warn
7134
  fi
7135
else
7136
  need_locks=no
7137
fi
7138
 
7139
 
7140
 
7141
 
7142
 
7143
 
7144 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7145 90 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7146
 
7147
  runpath_var=
7148
  allow_undefined_flag=
7149
  always_export_symbols=no
7150
  archive_cmds=
7151
  archive_expsym_cmds=
7152
  compiler_needs_object=no
7153
  enable_shared_with_static_runtimes=no
7154
  export_dynamic_flag_spec=
7155
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7156
  hardcode_automatic=no
7157
  hardcode_direct=no
7158
  hardcode_direct_absolute=no
7159
  hardcode_libdir_flag_spec=
7160
  hardcode_libdir_flag_spec_ld=
7161
  hardcode_libdir_separator=
7162
  hardcode_minus_L=no
7163
  hardcode_shlibpath_var=unsupported
7164
  inherit_rpath=no
7165
  link_all_deplibs=unknown
7166
  module_cmds=
7167
  module_expsym_cmds=
7168
  old_archive_from_new_cmds=
7169
  old_archive_from_expsyms_cmds=
7170
  thread_safe_flag_spec=
7171
  whole_archive_flag_spec=
7172
  # include_expsyms should be a list of space-separated symbols to be *always*
7173
  # included in the symbol list
7174
  include_expsyms=
7175
  # exclude_expsyms can be an extended regexp of symbols to exclude
7176
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7177
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7178
  # as well as any symbol that contains `d'.
7179
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7180
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7181
  # platforms (ab)use it in PIC code, but their linkers get confused if
7182
  # the symbol is explicitly referenced.  Since portable code cannot
7183
  # rely on this symbol name, it's probably fine to never include it in
7184
  # preloaded symbol tables.
7185
  # Exclude shared library initialization/finalization symbols.
7186
  extract_expsyms_cmds=
7187
 
7188
  case $host_os in
7189
  cygwin* | mingw* | pw32* | cegcc*)
7190
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7191
    # When not using gcc, we currently assume that we are using
7192
    # Microsoft Visual C++.
7193
    if test "$GCC" != yes; then
7194
      with_gnu_ld=no
7195
    fi
7196
    ;;
7197
  interix*)
7198
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7199
    with_gnu_ld=yes
7200
    ;;
7201
  openbsd*)
7202
    with_gnu_ld=no
7203
    ;;
7204 93 jeremybenn
  linux* | k*bsd*-gnu)
7205
    link_all_deplibs=no
7206
    ;;
7207 90 jeremybenn
  esac
7208
 
7209
  ld_shlibs=yes
7210
  if test "$with_gnu_ld" = yes; then
7211
    # If archive_cmds runs LD, not CC, wlarc should be empty
7212
    wlarc='${wl}'
7213
 
7214
    # Set some defaults for GNU ld with shared library support. These
7215
    # are reset later if shared libraries are not supported. Putting them
7216
    # here allows them to be overridden if necessary.
7217
    runpath_var=LD_RUN_PATH
7218
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7219
    export_dynamic_flag_spec='${wl}--export-dynamic'
7220
    # ancient GNU ld didn't support --whole-archive et. al.
7221
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7222
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7223
    else
7224
      whole_archive_flag_spec=
7225
    fi
7226
    supports_anon_versioning=no
7227
    case `$LD -v 2>&1` in
7228
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7229
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7230
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7231
      *\ 2.11.*) ;; # other 2.11 versions
7232
      *) supports_anon_versioning=yes ;;
7233
    esac
7234
 
7235
    # See if GNU ld supports shared libraries.
7236
    case $host_os in
7237
    aix[3-9]*)
7238
      # On AIX/PPC, the GNU linker is very broken
7239
      if test "$host_cpu" != ia64; then
7240
        ld_shlibs=no
7241
        cat <<_LT_EOF 1>&2
7242
 
7243
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7244
*** to be unable to reliably create shared libraries on AIX.
7245
*** Therefore, libtool is disabling shared libraries support.  If you
7246
*** really care for shared libraries, you may want to modify your PATH
7247
*** so that a non-GNU linker is found, and then restart.
7248
 
7249
_LT_EOF
7250
      fi
7251
      ;;
7252
 
7253
    amigaos*)
7254
      case $host_cpu in
7255
      powerpc)
7256
            # see comment about AmigaOS4 .so support
7257
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258
            archive_expsym_cmds=''
7259
        ;;
7260
      m68k)
7261
            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)'
7262
            hardcode_libdir_flag_spec='-L$libdir'
7263
            hardcode_minus_L=yes
7264
        ;;
7265
      esac
7266
      ;;
7267
 
7268
    beos*)
7269
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7270
        allow_undefined_flag=unsupported
7271
        # Joseph Beckenbach  says some releases of gcc
7272
        # support --undefined.  This deserves some investigation.  FIXME
7273
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7274
      else
7275
        ld_shlibs=no
7276
      fi
7277
      ;;
7278
 
7279
    cygwin* | mingw* | pw32* | cegcc*)
7280
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7281
      # as there is no search path for DLLs.
7282
      hardcode_libdir_flag_spec='-L$libdir'
7283
      allow_undefined_flag=unsupported
7284
      always_export_symbols=no
7285
      enable_shared_with_static_runtimes=yes
7286
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7287
 
7288
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7289
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7290
        # If the export-symbols file already is a .def file (1st line
7291
        # is EXPORTS), use it as is; otherwise, prepend...
7292
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7293
          cp $export_symbols $output_objdir/$soname.def;
7294
        else
7295
          echo EXPORTS > $output_objdir/$soname.def;
7296
          cat $export_symbols >> $output_objdir/$soname.def;
7297
        fi~
7298
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7299
      else
7300
        ld_shlibs=no
7301
      fi
7302
      ;;
7303
 
7304
    interix[3-9]*)
7305
      hardcode_direct=no
7306
      hardcode_shlibpath_var=no
7307
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7308
      export_dynamic_flag_spec='${wl}-E'
7309
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7310
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7311
      # default) and relocated if they conflict, which is a slow very memory
7312
      # consuming and fragmenting process.  To avoid this, we pick a random,
7313
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7314
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7315
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7316
      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'
7317
      ;;
7318
 
7319
    gnu* | linux* | tpf* | k*bsd*-gnu)
7320
      tmp_diet=no
7321
      if test "$host_os" = linux-dietlibc; then
7322
        case $cc_basename in
7323
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7324
        esac
7325
      fi
7326
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7327
         && test "$tmp_diet" = no
7328
      then
7329
        tmp_addflag=
7330
        tmp_sharedflag='-shared'
7331
        case $cc_basename,$host_cpu in
7332
        pgcc*)                          # Portland Group C compiler
7333
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7334
          tmp_addflag=' $pic_flag'
7335
          ;;
7336
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7337
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7338
          tmp_addflag=' $pic_flag -Mnomain' ;;
7339
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7340
          tmp_addflag=' -i_dynamic' ;;
7341
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7342
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7343
        ifc* | ifort*)                  # Intel Fortran compiler
7344
          tmp_addflag=' -nofor_main' ;;
7345
        lf95*)                          # Lahey Fortran 8.1
7346
          whole_archive_flag_spec=
7347
          tmp_sharedflag='--shared' ;;
7348
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7349
          tmp_sharedflag='-qmkshrobj'
7350
          tmp_addflag= ;;
7351
        esac
7352
        case `$CC -V 2>&1 | sed 5q` in
7353
        *Sun\ C*)                       # Sun C 5.9
7354
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7355
          compiler_needs_object=yes
7356
          tmp_sharedflag='-G' ;;
7357
        *Sun\ F*)                       # Sun Fortran 8.3
7358
          tmp_sharedflag='-G' ;;
7359
        esac
7360
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7361
 
7362
        if test "x$supports_anon_versioning" = xyes; then
7363
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7364
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7365
            echo "local: *; };" >> $output_objdir/$libname.ver~
7366
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7367
        fi
7368
 
7369
        case $cc_basename in
7370
        xlf*)
7371
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7372
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7373
          hardcode_libdir_flag_spec=
7374
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7375
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7376
          if test "x$supports_anon_versioning" = xyes; then
7377
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7378
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7379
              echo "local: *; };" >> $output_objdir/$libname.ver~
7380
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7381
          fi
7382
          ;;
7383
        esac
7384
      else
7385
        ld_shlibs=no
7386
      fi
7387
      ;;
7388
 
7389 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7390 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7391
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7392
        wlarc=
7393
      else
7394
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7395
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7396
      fi
7397
      ;;
7398
 
7399
    solaris*)
7400
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7401
        ld_shlibs=no
7402
        cat <<_LT_EOF 1>&2
7403
 
7404
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7405
*** create shared libraries on Solaris systems.  Therefore, libtool
7406
*** is disabling shared libraries support.  We urge you to upgrade GNU
7407
*** binutils to release 2.9.1 or newer.  Another option is to modify
7408
*** your PATH or compiler configuration so that the native linker is
7409
*** used, and then restart.
7410
 
7411
_LT_EOF
7412
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7413
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7414
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7415
      else
7416
        ld_shlibs=no
7417
      fi
7418
      ;;
7419
 
7420
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7421
      case `$LD -v 2>&1` in
7422
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7423
        ld_shlibs=no
7424
        cat <<_LT_EOF 1>&2
7425
 
7426
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7427
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7428
*** is disabling shared libraries support.  We urge you to upgrade GNU
7429
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7430
*** your PATH or compiler configuration so that the native linker is
7431
*** used, and then restart.
7432
 
7433
_LT_EOF
7434
        ;;
7435
        *)
7436
          # For security reasons, it is highly recommended that you always
7437
          # use absolute paths for naming shared libraries, and exclude the
7438
          # DT_RUNPATH tag from executables and libraries.  But doing so
7439
          # requires that you compile everything twice, which is a pain.
7440
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7441
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7442
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7443
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7444
          else
7445
            ld_shlibs=no
7446
          fi
7447
        ;;
7448
      esac
7449
      ;;
7450
 
7451
    sunos4*)
7452
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453
      wlarc=
7454
      hardcode_direct=yes
7455
      hardcode_shlibpath_var=no
7456
      ;;
7457
 
7458
    *)
7459
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7460
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7462
      else
7463
        ld_shlibs=no
7464
      fi
7465
      ;;
7466
    esac
7467
 
7468
    if test "$ld_shlibs" = no; then
7469
      runpath_var=
7470
      hardcode_libdir_flag_spec=
7471
      export_dynamic_flag_spec=
7472
      whole_archive_flag_spec=
7473
    fi
7474
  else
7475
    # PORTME fill in a description of your system's linker (not GNU ld)
7476
    case $host_os in
7477
    aix3*)
7478
      allow_undefined_flag=unsupported
7479
      always_export_symbols=yes
7480
      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'
7481
      # Note: this linker hardcodes the directories in LIBPATH if there
7482
      # are no directories specified by -L.
7483
      hardcode_minus_L=yes
7484
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7485
        # Neither direct hardcoding nor static linking is supported with a
7486
        # broken collect2.
7487
        hardcode_direct=unsupported
7488
      fi
7489
      ;;
7490
 
7491
    aix[4-9]*)
7492
      if test "$host_cpu" = ia64; then
7493
        # On IA64, the linker does run time linking by default, so we don't
7494
        # have to do anything special.
7495
        aix_use_runtimelinking=no
7496
        exp_sym_flag='-Bexport'
7497
        no_entry_flag=""
7498
      else
7499
        # If we're using GNU nm, then we don't want the "-C" option.
7500
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7501
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7502
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7503
        else
7504
          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'
7505
        fi
7506
        aix_use_runtimelinking=no
7507
 
7508
        # Test if we are trying to use run time linking or normal
7509
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7510
        # need to do runtime linking.
7511
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7512
          for ld_flag in $LDFLAGS; do
7513
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7514
            aix_use_runtimelinking=yes
7515
            break
7516
          fi
7517
          done
7518
          ;;
7519
        esac
7520
 
7521
        exp_sym_flag='-bexport'
7522
        no_entry_flag='-bnoentry'
7523
      fi
7524
 
7525
      # When large executables or shared objects are built, AIX ld can
7526
      # have problems creating the table of contents.  If linking a library
7527
      # or program results in "error TOC overflow" add -mminimal-toc to
7528
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7529
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7530
 
7531
      archive_cmds=''
7532
      hardcode_direct=yes
7533
      hardcode_direct_absolute=yes
7534
      hardcode_libdir_separator=':'
7535
      link_all_deplibs=yes
7536
      file_list_spec='${wl}-f,'
7537
 
7538
      if test "$GCC" = yes; then
7539
        case $host_os in aix4.[012]|aix4.[012].*)
7540
        # We only want to do this on AIX 4.2 and lower, the check
7541
        # below for broken collect2 doesn't work under 4.3+
7542
          collect2name=`${CC} -print-prog-name=collect2`
7543
          if test -f "$collect2name" &&
7544
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7545
          then
7546
          # We have reworked collect2
7547
          :
7548
          else
7549
          # We have old collect2
7550
          hardcode_direct=unsupported
7551
          # It fails to find uninstalled libraries when the uninstalled
7552
          # path is not listed in the libpath.  Setting hardcode_minus_L
7553
          # to unsupported forces relinking
7554
          hardcode_minus_L=yes
7555
          hardcode_libdir_flag_spec='-L$libdir'
7556
          hardcode_libdir_separator=
7557
          fi
7558
          ;;
7559
        esac
7560
        shared_flag='-shared'
7561
        if test "$aix_use_runtimelinking" = yes; then
7562
          shared_flag="$shared_flag "'${wl}-G'
7563
        fi
7564 93 jeremybenn
        link_all_deplibs=no
7565 90 jeremybenn
      else
7566
        # not using gcc
7567
        if test "$host_cpu" = ia64; then
7568
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7569
        # chokes on -Wl,-G. The following line is correct:
7570
          shared_flag='-G'
7571
        else
7572
          if test "$aix_use_runtimelinking" = yes; then
7573
            shared_flag='${wl}-G'
7574
          else
7575
            shared_flag='${wl}-bM:SRE'
7576
          fi
7577
        fi
7578
      fi
7579
 
7580
      export_dynamic_flag_spec='${wl}-bexpall'
7581
      # It seems that -bexpall does not export symbols beginning with
7582
      # underscore (_), so it is better to generate a list of symbols to export.
7583
      always_export_symbols=yes
7584
      if test "$aix_use_runtimelinking" = yes; then
7585
        # Warning - without using the other runtime loading flags (-brtl),
7586
        # -berok will link without error, but may produce a broken library.
7587
        allow_undefined_flag='-berok'
7588
        # Determine the default libpath from the value encoded in an
7589
        # empty executable.
7590 233 julius
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 90 jeremybenn
/* end confdefs.h.  */
7592
 
7593
int
7594
main ()
7595
{
7596
 
7597
  ;
7598
  return 0;
7599
}
7600
_ACEOF
7601 233 julius
if ac_fn_c_try_link "$LINENO"; then :
7602 90 jeremybenn
 
7603
lt_aix_libpath_sed='
7604
    /Import File Strings/,/^$/ {
7605
        /^0/ {
7606
            s/^0  *\(.*\)$/\1/
7607
            p
7608
        }
7609
    }'
7610
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7611
# Check for a 64-bit object if we didn't find anything.
7612
if test -z "$aix_libpath"; then
7613
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7614
fi
7615
fi
7616 233 julius
rm -f core conftest.err conftest.$ac_objext \
7617
    conftest$ac_exeext conftest.$ac_ext
7618 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7619
 
7620
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7621
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7622
      else
7623
        if test "$host_cpu" = ia64; then
7624
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7625
          allow_undefined_flag="-z nodefs"
7626
          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"
7627
        else
7628
         # Determine the default libpath from the value encoded in an
7629
         # empty executable.
7630 233 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 90 jeremybenn
/* end confdefs.h.  */
7632
 
7633
int
7634
main ()
7635
{
7636
 
7637
  ;
7638
  return 0;
7639
}
7640
_ACEOF
7641 233 julius
if ac_fn_c_try_link "$LINENO"; then :
7642 90 jeremybenn
 
7643
lt_aix_libpath_sed='
7644
    /Import File Strings/,/^$/ {
7645
        /^0/ {
7646
            s/^0  *\(.*\)$/\1/
7647
            p
7648
        }
7649
    }'
7650
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7651
# Check for a 64-bit object if we didn't find anything.
7652
if test -z "$aix_libpath"; then
7653
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7654
fi
7655
fi
7656 233 julius
rm -f core conftest.err conftest.$ac_objext \
7657
    conftest$ac_exeext conftest.$ac_ext
7658 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7659
 
7660
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7661
          # Warning - without using the other run time loading flags,
7662
          # -berok will link without error, but may produce a broken library.
7663
          no_undefined_flag=' ${wl}-bernotok'
7664
          allow_undefined_flag=' ${wl}-berok'
7665
          # Exported symbols can be pulled into shared objects from archives
7666
          whole_archive_flag_spec='$convenience'
7667
          archive_cmds_need_lc=yes
7668
          # This is similar to how AIX traditionally builds its shared libraries.
7669
          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'
7670
        fi
7671
      fi
7672
      ;;
7673
 
7674
    amigaos*)
7675
      case $host_cpu in
7676
      powerpc)
7677
            # see comment about AmigaOS4 .so support
7678
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679
            archive_expsym_cmds=''
7680
        ;;
7681
      m68k)
7682
            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)'
7683
            hardcode_libdir_flag_spec='-L$libdir'
7684
            hardcode_minus_L=yes
7685
        ;;
7686
      esac
7687
      ;;
7688
 
7689
    bsdi[45]*)
7690
      export_dynamic_flag_spec=-rdynamic
7691
      ;;
7692
 
7693
    cygwin* | mingw* | pw32* | cegcc*)
7694
      # When not using gcc, we currently assume that we are using
7695
      # Microsoft Visual C++.
7696
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7697
      # no search path for DLLs.
7698
      hardcode_libdir_flag_spec=' '
7699
      allow_undefined_flag=unsupported
7700
      # Tell ltmain to make .lib files, not .a files.
7701
      libext=lib
7702
      # Tell ltmain to make .dll files, not .so files.
7703
      shrext_cmds=".dll"
7704
      # FIXME: Setting linknames here is a bad hack.
7705
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7706
      # The linker will automatically build a .lib file if we build a DLL.
7707
      old_archive_from_new_cmds='true'
7708
      # FIXME: Should let the user specify the lib program.
7709
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7710
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7711
      enable_shared_with_static_runtimes=yes
7712
      ;;
7713
 
7714
    darwin* | rhapsody*)
7715
 
7716
 
7717
  archive_cmds_need_lc=no
7718
  hardcode_direct=no
7719
  hardcode_automatic=yes
7720
  hardcode_shlibpath_var=unsupported
7721
  whole_archive_flag_spec=''
7722
  link_all_deplibs=yes
7723
  allow_undefined_flag="$_lt_dar_allow_undefined"
7724
  case $cc_basename in
7725
     ifort*) _lt_dar_can_shared=yes ;;
7726
     *) _lt_dar_can_shared=$GCC ;;
7727
  esac
7728
  if test "$_lt_dar_can_shared" = "yes"; then
7729
    output_verbose_link_cmd=echo
7730
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7731
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7732
    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}"
7733
    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}"
7734
 
7735
  else
7736
  ld_shlibs=no
7737
  fi
7738
 
7739
      ;;
7740
 
7741
    dgux*)
7742
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7743
      hardcode_libdir_flag_spec='-L$libdir'
7744
      hardcode_shlibpath_var=no
7745
      ;;
7746
 
7747
    freebsd1*)
7748
      ld_shlibs=no
7749
      ;;
7750
 
7751
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7752
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7753
    # does not break anything, and helps significantly (at the cost of a little
7754
    # extra space).
7755
    freebsd2.2*)
7756
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7757
      hardcode_libdir_flag_spec='-R$libdir'
7758
      hardcode_direct=yes
7759
      hardcode_shlibpath_var=no
7760
      ;;
7761
 
7762
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7763
    freebsd2*)
7764
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7765
      hardcode_direct=yes
7766
      hardcode_minus_L=yes
7767
      hardcode_shlibpath_var=no
7768
      ;;
7769
 
7770
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7771
    freebsd* | dragonfly*)
7772
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7773
      hardcode_libdir_flag_spec='-R$libdir'
7774
      hardcode_direct=yes
7775
      hardcode_shlibpath_var=no
7776
      ;;
7777
 
7778
    hpux9*)
7779
      if test "$GCC" = yes; then
7780
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7781
      else
7782
        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'
7783
      fi
7784
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7785
      hardcode_libdir_separator=:
7786
      hardcode_direct=yes
7787
 
7788
      # hardcode_minus_L: Not really in the search PATH,
7789
      # but as the default location of the library.
7790
      hardcode_minus_L=yes
7791
      export_dynamic_flag_spec='${wl}-E'
7792
      ;;
7793
 
7794
    hpux10*)
7795
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7796
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7797
      else
7798
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7799
      fi
7800
      if test "$with_gnu_ld" = no; then
7801
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7802
        hardcode_libdir_flag_spec_ld='+b $libdir'
7803
        hardcode_libdir_separator=:
7804
        hardcode_direct=yes
7805
        hardcode_direct_absolute=yes
7806
        export_dynamic_flag_spec='${wl}-E'
7807
        # hardcode_minus_L: Not really in the search PATH,
7808
        # but as the default location of the library.
7809
        hardcode_minus_L=yes
7810
      fi
7811
      ;;
7812
 
7813
    hpux11*)
7814
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7815
        case $host_cpu in
7816
        hppa*64*)
7817
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818
          ;;
7819
        ia64*)
7820
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7821
          ;;
7822
        *)
7823
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7824
          ;;
7825
        esac
7826
      else
7827
        case $host_cpu in
7828
        hppa*64*)
7829
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7830
          ;;
7831
        ia64*)
7832
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7833
          ;;
7834
        *)
7835
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7836
          ;;
7837
        esac
7838
      fi
7839
      if test "$with_gnu_ld" = no; then
7840
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7841
        hardcode_libdir_separator=:
7842
 
7843
        case $host_cpu in
7844
        hppa*64*|ia64*)
7845
          hardcode_direct=no
7846
          hardcode_shlibpath_var=no
7847
          ;;
7848
        *)
7849
          hardcode_direct=yes
7850
          hardcode_direct_absolute=yes
7851
          export_dynamic_flag_spec='${wl}-E'
7852
 
7853
          # hardcode_minus_L: Not really in the search PATH,
7854
          # but as the default location of the library.
7855
          hardcode_minus_L=yes
7856
          ;;
7857
        esac
7858
      fi
7859
      ;;
7860
 
7861
    irix5* | irix6* | nonstopux*)
7862
      if test "$GCC" = yes; then
7863
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7864
        # Try to use the -exported_symbol ld option, if it does not
7865
        # work, assume that -exports_file does not work either and
7866
        # implicitly export all symbols.
7867
        save_LDFLAGS="$LDFLAGS"
7868
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7869 233 julius
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870
/* end confdefs.h.  */
7871 90 jeremybenn
int foo(void) {}
7872
_ACEOF
7873 233 julius
if ac_fn_c_try_link "$LINENO"; then :
7874 90 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7875
 
7876
fi
7877 233 julius
rm -f core conftest.err conftest.$ac_objext \
7878
    conftest$ac_exeext conftest.$ac_ext
7879 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
7880
      else
7881
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7882
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7883
      fi
7884
      archive_cmds_need_lc='no'
7885
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7886
      hardcode_libdir_separator=:
7887
      inherit_rpath=yes
7888
      link_all_deplibs=yes
7889
      ;;
7890
 
7891 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7892 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7893
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7894
      else
7895
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7896
      fi
7897
      hardcode_libdir_flag_spec='-R$libdir'
7898
      hardcode_direct=yes
7899
      hardcode_shlibpath_var=no
7900
      ;;
7901
 
7902
    newsos6)
7903
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7904
      hardcode_direct=yes
7905
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7906
      hardcode_libdir_separator=:
7907
      hardcode_shlibpath_var=no
7908
      ;;
7909
 
7910
    *nto* | *qnx*)
7911
      ;;
7912
 
7913
    openbsd*)
7914
      if test -f /usr/libexec/ld.so; then
7915
        hardcode_direct=yes
7916
        hardcode_shlibpath_var=no
7917
        hardcode_direct_absolute=yes
7918
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7919
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7920
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7921
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7922
          export_dynamic_flag_spec='${wl}-E'
7923
        else
7924
          case $host_os in
7925
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7926
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7927
             hardcode_libdir_flag_spec='-R$libdir'
7928
             ;;
7929
           *)
7930
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7931
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7932
             ;;
7933
          esac
7934
        fi
7935
      else
7936
        ld_shlibs=no
7937
      fi
7938
      ;;
7939
 
7940
    os2*)
7941
      hardcode_libdir_flag_spec='-L$libdir'
7942
      hardcode_minus_L=yes
7943
      allow_undefined_flag=unsupported
7944
      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'
7945
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7946
      ;;
7947
 
7948
    osf3*)
7949
      if test "$GCC" = yes; then
7950
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7951
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7952
      else
7953
        allow_undefined_flag=' -expect_unresolved \*'
7954
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7955
      fi
7956
      archive_cmds_need_lc='no'
7957
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958
      hardcode_libdir_separator=:
7959
      ;;
7960
 
7961
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7962
      if test "$GCC" = yes; then
7963
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7964
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7965
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7966
      else
7967
        allow_undefined_flag=' -expect_unresolved \*'
7968
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7969
        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~
7970
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7971
 
7972
        # Both c and cxx compiler support -rpath directly
7973
        hardcode_libdir_flag_spec='-rpath $libdir'
7974
      fi
7975
      archive_cmds_need_lc='no'
7976
      hardcode_libdir_separator=:
7977
      ;;
7978
 
7979
    solaris*)
7980
      no_undefined_flag=' -z defs'
7981
      if test "$GCC" = yes; then
7982
        wlarc='${wl}'
7983
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7984
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7985
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7986
      else
7987
        case `$CC -V 2>&1` in
7988
        *"Compilers 5.0"*)
7989
          wlarc=''
7990
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7991
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7992
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7993
          ;;
7994
        *)
7995
          wlarc='${wl}'
7996
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7997
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7998
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7999
          ;;
8000
        esac
8001
      fi
8002
      hardcode_libdir_flag_spec='-R$libdir'
8003
      hardcode_shlibpath_var=no
8004
      case $host_os in
8005
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8006
      *)
8007
        # The compiler driver will combine and reorder linker options,
8008
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8009
        # but is careful enough not to reorder.
8010
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8011
        if test "$GCC" = yes; then
8012
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8013
        else
8014
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8015
        fi
8016
        ;;
8017
      esac
8018
      link_all_deplibs=yes
8019
      ;;
8020
 
8021
    sunos4*)
8022
      if test "x$host_vendor" = xsequent; then
8023
        # Use $CC to link under sequent, because it throws in some extra .o
8024
        # files that make .init and .fini sections work.
8025
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8026
      else
8027
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8028
      fi
8029
      hardcode_libdir_flag_spec='-L$libdir'
8030
      hardcode_direct=yes
8031
      hardcode_minus_L=yes
8032
      hardcode_shlibpath_var=no
8033
      ;;
8034
 
8035
    sysv4)
8036
      case $host_vendor in
8037
        sni)
8038
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039
          hardcode_direct=yes # is this really true???
8040
        ;;
8041
        siemens)
8042
          ## LD is ld it makes a PLAMLIB
8043
          ## CC just makes a GrossModule.
8044
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8045
          reload_cmds='$CC -r -o $output$reload_objs'
8046
          hardcode_direct=no
8047
        ;;
8048
        motorola)
8049
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8050
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8051
        ;;
8052
      esac
8053
      runpath_var='LD_RUN_PATH'
8054
      hardcode_shlibpath_var=no
8055
      ;;
8056
 
8057
    sysv4.3*)
8058
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059
      hardcode_shlibpath_var=no
8060
      export_dynamic_flag_spec='-Bexport'
8061
      ;;
8062
 
8063
    sysv4*MP*)
8064
      if test -d /usr/nec; then
8065
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066
        hardcode_shlibpath_var=no
8067
        runpath_var=LD_RUN_PATH
8068
        hardcode_runpath_var=yes
8069
        ld_shlibs=yes
8070
      fi
8071
      ;;
8072
 
8073
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8074
      no_undefined_flag='${wl}-z,text'
8075
      archive_cmds_need_lc=no
8076
      hardcode_shlibpath_var=no
8077
      runpath_var='LD_RUN_PATH'
8078
 
8079
      if test "$GCC" = yes; then
8080
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8081
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8082
      else
8083
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8084
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8085
      fi
8086
      ;;
8087
 
8088
    sysv5* | sco3.2v5* | sco5v6*)
8089
      # Note: We can NOT use -z defs as we might desire, because we do not
8090
      # link with -lc, and that would cause any symbols used from libc to
8091
      # always be unresolved, which means just about no library would
8092
      # ever link correctly.  If we're not using GNU ld we use -z text
8093
      # though, which does catch some bad symbols but isn't as heavy-handed
8094
      # as -z defs.
8095
      no_undefined_flag='${wl}-z,text'
8096
      allow_undefined_flag='${wl}-z,nodefs'
8097
      archive_cmds_need_lc=no
8098
      hardcode_shlibpath_var=no
8099
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8100
      hardcode_libdir_separator=':'
8101
      link_all_deplibs=yes
8102
      export_dynamic_flag_spec='${wl}-Bexport'
8103
      runpath_var='LD_RUN_PATH'
8104
 
8105
      if test "$GCC" = yes; then
8106
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8107
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8108
      else
8109
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8110
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8111
      fi
8112
      ;;
8113
 
8114
    uts4*)
8115
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116
      hardcode_libdir_flag_spec='-L$libdir'
8117
      hardcode_shlibpath_var=no
8118
      ;;
8119
 
8120
    *)
8121
      ld_shlibs=no
8122
      ;;
8123
    esac
8124
 
8125
    if test x$host_vendor = xsni; then
8126
      case $host in
8127
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8128
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8129
        ;;
8130
      esac
8131
    fi
8132
  fi
8133
 
8134 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8135 90 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8136
test "$ld_shlibs" = no && can_build_shared=no
8137
 
8138
with_gnu_ld=$with_gnu_ld
8139
 
8140
 
8141
 
8142
 
8143
 
8144
 
8145
 
8146
 
8147
 
8148
 
8149
 
8150
 
8151
 
8152
 
8153
 
8154
#
8155
# Do we need to explicitly link libc?
8156
#
8157
case "x$archive_cmds_need_lc" in
8158
x|xyes)
8159
  # Assume -lc should be added
8160
  archive_cmds_need_lc=yes
8161
 
8162
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8163
    case $archive_cmds in
8164
    *'~'*)
8165
      # FIXME: we may have to deal with multi-command sequences.
8166
      ;;
8167
    '$CC '*)
8168
      # Test whether the compiler implicitly links with -lc since on some
8169
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8170
      # to ld, don't add -lc before -lgcc.
8171 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8172 90 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8173
      $RM conftest*
8174
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175
 
8176 233 julius
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8177 90 jeremybenn
  (eval $ac_compile) 2>&5
8178
  ac_status=$?
8179 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180
  test $ac_status = 0; } 2>conftest.err; then
8181 90 jeremybenn
        soname=conftest
8182
        lib=conftest
8183
        libobjs=conftest.$ac_objext
8184
        deplibs=
8185
        wl=$lt_prog_compiler_wl
8186
        pic_flag=$lt_prog_compiler_pic
8187
        compiler_flags=-v
8188
        linker_flags=-v
8189
        verstring=
8190
        output_objdir=.
8191
        libname=conftest
8192
        lt_save_allow_undefined_flag=$allow_undefined_flag
8193
        allow_undefined_flag=
8194 233 julius
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8195 90 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8196
  ac_status=$?
8197 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198
  test $ac_status = 0; }
8199 90 jeremybenn
        then
8200
          archive_cmds_need_lc=no
8201
        else
8202
          archive_cmds_need_lc=yes
8203
        fi
8204
        allow_undefined_flag=$lt_save_allow_undefined_flag
8205
      else
8206
        cat conftest.err 1>&5
8207
      fi
8208
      $RM conftest*
8209 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8210 90 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8211
      ;;
8212
    esac
8213
  fi
8214
  ;;
8215
esac
8216
 
8217
 
8218
 
8219
 
8220
 
8221
 
8222
 
8223
 
8224
 
8225
 
8226
 
8227
 
8228
 
8229
 
8230
 
8231
 
8232
 
8233
 
8234
 
8235
 
8236
 
8237
 
8238
 
8239
 
8240
 
8241
 
8242
 
8243
 
8244
 
8245
 
8246
 
8247
 
8248
 
8249
 
8250
 
8251
 
8252
 
8253
 
8254
 
8255
 
8256
 
8257
 
8258
 
8259
 
8260
 
8261
 
8262
 
8263
 
8264
 
8265
 
8266
 
8267
 
8268
 
8269
 
8270
 
8271
 
8272
 
8273
 
8274
 
8275
 
8276
 
8277
 
8278
 
8279
 
8280
 
8281
 
8282
 
8283
 
8284
 
8285
 
8286
 
8287
 
8288
 
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
 
8296
 
8297
 
8298
 
8299
 
8300
 
8301
 
8302
 
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
 
8310
 
8311
 
8312
 
8313
 
8314
 
8315
 
8316
 
8317
 
8318
 
8319
 
8320
 
8321
 
8322
 
8323
 
8324
 
8325
 
8326
 
8327
 
8328
 
8329
 
8330
 
8331
 
8332
 
8333
 
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
 
8355
 
8356
 
8357
 
8358
 
8359
 
8360
 
8361
 
8362
 
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8374 90 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8375
 
8376
if test "$GCC" = yes; then
8377
  case $host_os in
8378
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8379
    *) lt_awk_arg="/^libraries:/" ;;
8380
  esac
8381
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8382
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8383
    # if the path contains ";" then we assume it to be the separator
8384
    # otherwise default to the standard path separator (i.e. ":") - it is
8385
    # assumed that no part of a normal pathname contains ";" but that should
8386
    # okay in the real world where ";" in dirpaths is itself problematic.
8387
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8388
  else
8389
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8390
  fi
8391
  # Ok, now we have the path, separated by spaces, we can step through it
8392
  # and add multilib dir if necessary.
8393
  lt_tmp_lt_search_path_spec=
8394
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8395
  for lt_sys_path in $lt_search_path_spec; do
8396
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8397
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8398
    else
8399
      test -d "$lt_sys_path" && \
8400
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8401
    fi
8402
  done
8403
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8404
BEGIN {RS=" "; FS="/|\n";} {
8405
  lt_foo="";
8406
  lt_count=0;
8407
  for (lt_i = NF; lt_i > 0; lt_i--) {
8408
    if ($lt_i != "" && $lt_i != ".") {
8409
      if ($lt_i == "..") {
8410
        lt_count++;
8411
      } else {
8412
        if (lt_count == 0) {
8413
          lt_foo="/" $lt_i lt_foo;
8414
        } else {
8415
          lt_count--;
8416
        }
8417
      }
8418
    }
8419
  }
8420
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8421
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8422
}'`
8423
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8424
else
8425
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8426
fi
8427
library_names_spec=
8428
libname_spec='lib$name'
8429
soname_spec=
8430
shrext_cmds=".so"
8431
postinstall_cmds=
8432
postuninstall_cmds=
8433
finish_cmds=
8434
finish_eval=
8435
shlibpath_var=
8436
shlibpath_overrides_runpath=unknown
8437
version_type=none
8438
dynamic_linker="$host_os ld.so"
8439
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8440
need_lib_prefix=unknown
8441
hardcode_into_libs=no
8442
 
8443
# when you set need_version to no, make sure it does not cause -set_version
8444
# flags to be left without arguments
8445
need_version=unknown
8446
 
8447
case $host_os in
8448
aix3*)
8449
  version_type=linux
8450
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8451
  shlibpath_var=LIBPATH
8452
 
8453
  # AIX 3 has no versioning support, so we append a major version to the name.
8454
  soname_spec='${libname}${release}${shared_ext}$major'
8455
  ;;
8456
 
8457
aix[4-9]*)
8458
  version_type=linux
8459
  need_lib_prefix=no
8460
  need_version=no
8461
  hardcode_into_libs=yes
8462
  if test "$host_cpu" = ia64; then
8463
    # AIX 5 supports IA64
8464
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8465
    shlibpath_var=LD_LIBRARY_PATH
8466
  else
8467
    # With GCC up to 2.95.x, collect2 would create an import file
8468
    # for dependence libraries.  The import file would start with
8469
    # the line `#! .'.  This would cause the generated library to
8470
    # depend on `.', always an invalid library.  This was fixed in
8471
    # development snapshots of GCC prior to 3.0.
8472
    case $host_os in
8473
      aix4 | aix4.[01] | aix4.[01].*)
8474
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8475
           echo ' yes '
8476
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8477
        :
8478
      else
8479
        can_build_shared=no
8480
      fi
8481
      ;;
8482
    esac
8483
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8484
    # soname into executable. Probably we can add versioning support to
8485
    # collect2, so additional links can be useful in future.
8486
    if test "$aix_use_runtimelinking" = yes; then
8487
      # If using run time linking (on AIX 4.2 or later) use lib.so
8488
      # instead of lib.a to let people know that these are not
8489
      # typical AIX shared libraries.
8490
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491
    else
8492
      # We preserve .a as extension for shared libraries through AIX4.2
8493
      # and later when we are not doing run time linking.
8494
      library_names_spec='${libname}${release}.a $libname.a'
8495
      soname_spec='${libname}${release}${shared_ext}$major'
8496
    fi
8497
    shlibpath_var=LIBPATH
8498
  fi
8499
  ;;
8500
 
8501
amigaos*)
8502
  case $host_cpu in
8503
  powerpc)
8504
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8505
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8506
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507
    ;;
8508
  m68k)
8509
    library_names_spec='$libname.ixlibrary $libname.a'
8510
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8511
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8512
    ;;
8513
  esac
8514
  ;;
8515
 
8516
beos*)
8517
  library_names_spec='${libname}${shared_ext}'
8518
  dynamic_linker="$host_os ld.so"
8519
  shlibpath_var=LIBRARY_PATH
8520
  ;;
8521
 
8522
bsdi[45]*)
8523
  version_type=linux
8524
  need_version=no
8525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526
  soname_spec='${libname}${release}${shared_ext}$major'
8527
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8528
  shlibpath_var=LD_LIBRARY_PATH
8529
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8530
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8531
  # the default ld.so.conf also contains /usr/contrib/lib and
8532
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8533
  # libtool to hard-code these into programs
8534
  ;;
8535
 
8536
cygwin* | mingw* | pw32* | cegcc*)
8537
  version_type=windows
8538
  shrext_cmds=".dll"
8539
  need_version=no
8540
  need_lib_prefix=no
8541
 
8542
  case $GCC,$host_os in
8543
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8544
    library_names_spec='$libname.dll.a'
8545
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8546
    postinstall_cmds='base_file=`basename \${file}`~
8547
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8548
      dldir=$destdir/`dirname \$dlpath`~
8549
      test -d \$dldir || mkdir -p \$dldir~
8550
      $install_prog $dir/$dlname \$dldir/$dlname~
8551
      chmod a+x \$dldir/$dlname~
8552
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8553
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8554
      fi'
8555
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8556
      dlpath=$dir/\$dldll~
8557
       $RM \$dlpath'
8558
    shlibpath_overrides_runpath=yes
8559
 
8560
    case $host_os in
8561
    cygwin*)
8562
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8563
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8564
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8565
      ;;
8566
    mingw* | cegcc*)
8567
      # MinGW DLLs use traditional 'lib' prefix
8568
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8569
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8571
        # It is most probably a Windows format PATH printed by
8572
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8573
        # path with ; separators, and with drive letters. We can handle the
8574
        # drive letters (cygwin fileutils understands them), so leave them,
8575
        # especially as we might pass files found there to a mingw objdump,
8576
        # which wouldn't understand a cygwinified path. Ahh.
8577
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8578
      else
8579
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8580
      fi
8581
      ;;
8582
    pw32*)
8583
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8584
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585
      ;;
8586
    esac
8587
    ;;
8588
 
8589
  *)
8590
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8591
    ;;
8592
  esac
8593
  dynamic_linker='Win32 ld.exe'
8594
  # FIXME: first we should search . and the directory the executable is in
8595
  shlibpath_var=PATH
8596
  ;;
8597
 
8598
darwin* | rhapsody*)
8599
  dynamic_linker="$host_os dyld"
8600
  version_type=darwin
8601
  need_lib_prefix=no
8602
  need_version=no
8603
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8604
  soname_spec='${libname}${release}${major}$shared_ext'
8605
  shlibpath_overrides_runpath=yes
8606
  shlibpath_var=DYLD_LIBRARY_PATH
8607
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8608
 
8609
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8610
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8611
  ;;
8612
 
8613
dgux*)
8614
  version_type=linux
8615
  need_lib_prefix=no
8616
  need_version=no
8617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8618
  soname_spec='${libname}${release}${shared_ext}$major'
8619
  shlibpath_var=LD_LIBRARY_PATH
8620
  ;;
8621
 
8622
freebsd1*)
8623
  dynamic_linker=no
8624
  ;;
8625
 
8626
freebsd* | dragonfly*)
8627
  # DragonFly does not have aout.  When/if they implement a new
8628
  # versioning mechanism, adjust this.
8629
  if test -x /usr/bin/objformat; then
8630
    objformat=`/usr/bin/objformat`
8631
  else
8632
    case $host_os in
8633
    freebsd[123]*) objformat=aout ;;
8634
    *) objformat=elf ;;
8635
    esac
8636
  fi
8637
  version_type=freebsd-$objformat
8638
  case $version_type in
8639
    freebsd-elf*)
8640
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8641
      need_version=no
8642
      need_lib_prefix=no
8643
      ;;
8644
    freebsd-*)
8645
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8646
      need_version=yes
8647
      ;;
8648
  esac
8649
  shlibpath_var=LD_LIBRARY_PATH
8650
  case $host_os in
8651
  freebsd2*)
8652
    shlibpath_overrides_runpath=yes
8653
    ;;
8654
  freebsd3.[01]* | freebsdelf3.[01]*)
8655
    shlibpath_overrides_runpath=yes
8656
    hardcode_into_libs=yes
8657
    ;;
8658
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8659
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8660
    shlibpath_overrides_runpath=no
8661
    hardcode_into_libs=yes
8662
    ;;
8663
  *) # from 4.6 on, and DragonFly
8664
    shlibpath_overrides_runpath=yes
8665
    hardcode_into_libs=yes
8666
    ;;
8667
  esac
8668
  ;;
8669
 
8670
gnu*)
8671
  version_type=linux
8672
  need_lib_prefix=no
8673
  need_version=no
8674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8675
  soname_spec='${libname}${release}${shared_ext}$major'
8676
  shlibpath_var=LD_LIBRARY_PATH
8677
  hardcode_into_libs=yes
8678
  ;;
8679
 
8680
hpux9* | hpux10* | hpux11*)
8681
  # Give a soname corresponding to the major version so that dld.sl refuses to
8682
  # link against other versions.
8683
  version_type=sunos
8684
  need_lib_prefix=no
8685
  need_version=no
8686
  case $host_cpu in
8687
  ia64*)
8688
    shrext_cmds='.so'
8689
    hardcode_into_libs=yes
8690
    dynamic_linker="$host_os dld.so"
8691
    shlibpath_var=LD_LIBRARY_PATH
8692
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8693
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694
    soname_spec='${libname}${release}${shared_ext}$major'
8695
    if test "X$HPUX_IA64_MODE" = X32; then
8696
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8697
    else
8698
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8699
    fi
8700
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8701
    ;;
8702
  hppa*64*)
8703
    shrext_cmds='.sl'
8704
    hardcode_into_libs=yes
8705
    dynamic_linker="$host_os dld.sl"
8706
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8707
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8708
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709
    soname_spec='${libname}${release}${shared_ext}$major'
8710
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8711
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8712
    ;;
8713
  *)
8714
    shrext_cmds='.sl'
8715
    dynamic_linker="$host_os dld.sl"
8716
    shlibpath_var=SHLIB_PATH
8717
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8718
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8719
    soname_spec='${libname}${release}${shared_ext}$major'
8720
    ;;
8721
  esac
8722
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8723
  postinstall_cmds='chmod 555 $lib'
8724
  ;;
8725
 
8726
interix[3-9]*)
8727
  version_type=linux
8728
  need_lib_prefix=no
8729
  need_version=no
8730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8731
  soname_spec='${libname}${release}${shared_ext}$major'
8732
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8733
  shlibpath_var=LD_LIBRARY_PATH
8734
  shlibpath_overrides_runpath=no
8735
  hardcode_into_libs=yes
8736
  ;;
8737
 
8738
irix5* | irix6* | nonstopux*)
8739
  case $host_os in
8740
    nonstopux*) version_type=nonstopux ;;
8741
    *)
8742
        if test "$lt_cv_prog_gnu_ld" = yes; then
8743
                version_type=linux
8744
        else
8745
                version_type=irix
8746
        fi ;;
8747
  esac
8748
  need_lib_prefix=no
8749
  need_version=no
8750
  soname_spec='${libname}${release}${shared_ext}$major'
8751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8752
  case $host_os in
8753
  irix5* | nonstopux*)
8754
    libsuff= shlibsuff=
8755
    ;;
8756
  *)
8757
    case $LD in # libtool.m4 will add one of these switches to LD
8758
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8759
      libsuff= shlibsuff= libmagic=32-bit;;
8760
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8761
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8762
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8763
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8764
    *) libsuff= shlibsuff= libmagic=never-match;;
8765
    esac
8766
    ;;
8767
  esac
8768
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8769
  shlibpath_overrides_runpath=no
8770
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8771
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8772
  hardcode_into_libs=yes
8773
  ;;
8774
 
8775
# No shared lib support for Linux oldld, aout, or coff.
8776
linux*oldld* | linux*aout* | linux*coff*)
8777
  dynamic_linker=no
8778
  ;;
8779
 
8780
# This must be Linux ELF.
8781
linux* | k*bsd*-gnu)
8782
  version_type=linux
8783
  need_lib_prefix=no
8784
  need_version=no
8785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786
  soname_spec='${libname}${release}${shared_ext}$major'
8787
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8788
  shlibpath_var=LD_LIBRARY_PATH
8789
  shlibpath_overrides_runpath=no
8790
  # Some binutils ld are patched to set DT_RUNPATH
8791
  save_LDFLAGS=$LDFLAGS
8792
  save_libdir=$libdir
8793
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8794
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8795 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 90 jeremybenn
/* end confdefs.h.  */
8797
 
8798
int
8799
main ()
8800
{
8801
 
8802
  ;
8803
  return 0;
8804
}
8805
_ACEOF
8806 233 julius
if ac_fn_c_try_link "$LINENO"; then :
8807
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8808 90 jeremybenn
  shlibpath_overrides_runpath=yes
8809
fi
8810
fi
8811 233 julius
rm -f core conftest.err conftest.$ac_objext \
8812
    conftest$ac_exeext conftest.$ac_ext
8813 90 jeremybenn
  LDFLAGS=$save_LDFLAGS
8814
  libdir=$save_libdir
8815
 
8816
  # This implies no fast_install, which is unacceptable.
8817
  # Some rework will be needed to allow for fast_install
8818
  # before this can be enabled.
8819
  hardcode_into_libs=yes
8820
 
8821
  # Append ld.so.conf contents to the search path
8822
  if test -f /etc/ld.so.conf; then
8823
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8824 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8825 90 jeremybenn
  fi
8826
 
8827
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8828
  # powerpc, because MkLinux only supported shared libraries with the
8829
  # GNU dynamic linker.  Since this was broken with cross compilers,
8830
  # most powerpc-linux boxes support dynamic linking these days and
8831
  # people can always --disable-shared, the test was removed, and we
8832
  # assume the GNU/Linux dynamic linker is in use.
8833
  dynamic_linker='GNU/Linux ld.so'
8834
  ;;
8835
 
8836 93 jeremybenn
netbsdelf*-gnu)
8837
  version_type=linux
8838
  need_lib_prefix=no
8839
  need_version=no
8840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841
  soname_spec='${libname}${release}${shared_ext}$major'
8842
  shlibpath_var=LD_LIBRARY_PATH
8843
  shlibpath_overrides_runpath=no
8844
  hardcode_into_libs=yes
8845
  dynamic_linker='NetBSD ld.elf_so'
8846
  ;;
8847
 
8848 90 jeremybenn
netbsd*)
8849
  version_type=sunos
8850
  need_lib_prefix=no
8851
  need_version=no
8852
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8853
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8854
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8855
    dynamic_linker='NetBSD (a.out) ld.so'
8856
  else
8857
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858
    soname_spec='${libname}${release}${shared_ext}$major'
8859
    dynamic_linker='NetBSD ld.elf_so'
8860
  fi
8861
  shlibpath_var=LD_LIBRARY_PATH
8862
  shlibpath_overrides_runpath=yes
8863
  hardcode_into_libs=yes
8864
  ;;
8865
 
8866
newsos6)
8867
  version_type=linux
8868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869
  shlibpath_var=LD_LIBRARY_PATH
8870
  shlibpath_overrides_runpath=yes
8871
  ;;
8872
 
8873
*nto* | *qnx*)
8874
  version_type=qnx
8875
  need_lib_prefix=no
8876
  need_version=no
8877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878
  soname_spec='${libname}${release}${shared_ext}$major'
8879
  shlibpath_var=LD_LIBRARY_PATH
8880
  shlibpath_overrides_runpath=no
8881
  hardcode_into_libs=yes
8882
  dynamic_linker='ldqnx.so'
8883
  ;;
8884
 
8885
openbsd*)
8886
  version_type=sunos
8887
  sys_lib_dlsearch_path_spec="/usr/lib"
8888
  need_lib_prefix=no
8889
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8890
  case $host_os in
8891
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8892
    *)                          need_version=no  ;;
8893
  esac
8894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8896
  shlibpath_var=LD_LIBRARY_PATH
8897
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8898
    case $host_os in
8899
      openbsd2.[89] | openbsd2.[89].*)
8900
        shlibpath_overrides_runpath=no
8901
        ;;
8902
      *)
8903
        shlibpath_overrides_runpath=yes
8904
        ;;
8905
      esac
8906
  else
8907
    shlibpath_overrides_runpath=yes
8908
  fi
8909
  ;;
8910
 
8911
os2*)
8912
  libname_spec='$name'
8913
  shrext_cmds=".dll"
8914
  need_lib_prefix=no
8915
  library_names_spec='$libname${shared_ext} $libname.a'
8916
  dynamic_linker='OS/2 ld.exe'
8917
  shlibpath_var=LIBPATH
8918
  ;;
8919
 
8920
osf3* | osf4* | osf5*)
8921
  version_type=osf
8922
  need_lib_prefix=no
8923
  need_version=no
8924
  soname_spec='${libname}${release}${shared_ext}$major'
8925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926
  shlibpath_var=LD_LIBRARY_PATH
8927
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8928
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8929
  ;;
8930
 
8931
rdos*)
8932
  dynamic_linker=no
8933
  ;;
8934
 
8935
solaris*)
8936
  version_type=linux
8937
  need_lib_prefix=no
8938
  need_version=no
8939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940
  soname_spec='${libname}${release}${shared_ext}$major'
8941
  shlibpath_var=LD_LIBRARY_PATH
8942
  shlibpath_overrides_runpath=yes
8943
  hardcode_into_libs=yes
8944
  # ldd complains unless libraries are executable
8945
  postinstall_cmds='chmod +x $lib'
8946
  ;;
8947
 
8948
sunos4*)
8949
  version_type=sunos
8950
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8951
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8952
  shlibpath_var=LD_LIBRARY_PATH
8953
  shlibpath_overrides_runpath=yes
8954
  if test "$with_gnu_ld" = yes; then
8955
    need_lib_prefix=no
8956
  fi
8957
  need_version=yes
8958
  ;;
8959
 
8960
sysv4 | sysv4.3*)
8961
  version_type=linux
8962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963
  soname_spec='${libname}${release}${shared_ext}$major'
8964
  shlibpath_var=LD_LIBRARY_PATH
8965
  case $host_vendor in
8966
    sni)
8967
      shlibpath_overrides_runpath=no
8968
      need_lib_prefix=no
8969
      runpath_var=LD_RUN_PATH
8970
      ;;
8971
    siemens)
8972
      need_lib_prefix=no
8973
      ;;
8974
    motorola)
8975
      need_lib_prefix=no
8976
      need_version=no
8977
      shlibpath_overrides_runpath=no
8978
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8979
      ;;
8980
  esac
8981
  ;;
8982
 
8983
sysv4*MP*)
8984
  if test -d /usr/nec ;then
8985
    version_type=linux
8986
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8987
    soname_spec='$libname${shared_ext}.$major'
8988
    shlibpath_var=LD_LIBRARY_PATH
8989
  fi
8990
  ;;
8991
 
8992
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8993
  version_type=freebsd-elf
8994
  need_lib_prefix=no
8995
  need_version=no
8996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8997
  soname_spec='${libname}${release}${shared_ext}$major'
8998
  shlibpath_var=LD_LIBRARY_PATH
8999
  shlibpath_overrides_runpath=yes
9000
  hardcode_into_libs=yes
9001
  if test "$with_gnu_ld" = yes; then
9002
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9003
  else
9004
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9005
    case $host_os in
9006
      sco3.2v5*)
9007
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9008
        ;;
9009
    esac
9010
  fi
9011
  sys_lib_dlsearch_path_spec='/usr/lib'
9012
  ;;
9013
 
9014
tpf*)
9015
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020
  shlibpath_var=LD_LIBRARY_PATH
9021
  shlibpath_overrides_runpath=no
9022
  hardcode_into_libs=yes
9023
  ;;
9024
 
9025
uts4*)
9026
  version_type=linux
9027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028
  soname_spec='${libname}${release}${shared_ext}$major'
9029
  shlibpath_var=LD_LIBRARY_PATH
9030
  ;;
9031
 
9032
*)
9033
  dynamic_linker=no
9034
  ;;
9035
esac
9036 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9037 90 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9038
test "$dynamic_linker" = no && can_build_shared=no
9039
 
9040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9041
if test "$GCC" = yes; then
9042
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9043
fi
9044
 
9045
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9046
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9047
fi
9048
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9049
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9050
fi
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
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9139 90 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9140
hardcode_action=
9141
if test -n "$hardcode_libdir_flag_spec" ||
9142
   test -n "$runpath_var" ||
9143
   test "X$hardcode_automatic" = "Xyes" ; then
9144
 
9145
  # We can hardcode non-existent directories.
9146
  if test "$hardcode_direct" != no &&
9147
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9148
     # have to relink, otherwise we might link with an installed library
9149
     # when we should be linking with a yet-to-be-installed one
9150
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9151
     test "$hardcode_minus_L" != no; then
9152
    # Linking always hardcodes the temporary library directory.
9153
    hardcode_action=relink
9154
  else
9155
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9156
    hardcode_action=immediate
9157
  fi
9158
else
9159
  # We cannot hardcode anything, or else we can only hardcode existing
9160
  # directories.
9161
  hardcode_action=unsupported
9162
fi
9163 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9164 90 jeremybenn
$as_echo "$hardcode_action" >&6; }
9165
 
9166
if test "$hardcode_action" = relink ||
9167
   test "$inherit_rpath" = yes; then
9168
  # Fast installation is not supported
9169
  enable_fast_install=no
9170
elif test "$shlibpath_overrides_runpath" = yes ||
9171
     test "$enable_shared" = no; then
9172
  # Fast installation is not necessary
9173
  enable_fast_install=needless
9174
fi
9175
 
9176
 
9177
 
9178
 
9179
 
9180
 
9181
  if test "x$enable_dlopen" != xyes; then
9182
  enable_dlopen=unknown
9183
  enable_dlopen_self=unknown
9184
  enable_dlopen_self_static=unknown
9185
else
9186
  lt_cv_dlopen=no
9187
  lt_cv_dlopen_libs=
9188
 
9189
  case $host_os in
9190
  beos*)
9191
    lt_cv_dlopen="load_add_on"
9192
    lt_cv_dlopen_libs=
9193
    lt_cv_dlopen_self=yes
9194
    ;;
9195
 
9196
  mingw* | pw32* | cegcc*)
9197
    lt_cv_dlopen="LoadLibrary"
9198
    lt_cv_dlopen_libs=
9199
    ;;
9200
 
9201
  cygwin*)
9202
    lt_cv_dlopen="dlopen"
9203
    lt_cv_dlopen_libs=
9204
    ;;
9205
 
9206
  darwin*)
9207
  # if libdl is installed we need to link against it
9208 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9209 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9210 233 julius
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9211 90 jeremybenn
  $as_echo_n "(cached) " >&6
9212
else
9213
  ac_check_lib_save_LIBS=$LIBS
9214
LIBS="-ldl  $LIBS"
9215 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 90 jeremybenn
/* end confdefs.h.  */
9217
 
9218
/* Override any GCC internal prototype to avoid an error.
9219
   Use char because int might match the return type of a GCC
9220
   builtin and then its argument prototype would still apply.  */
9221
#ifdef __cplusplus
9222
extern "C"
9223
#endif
9224
char dlopen ();
9225
int
9226
main ()
9227
{
9228
return dlopen ();
9229
  ;
9230
  return 0;
9231
}
9232
_ACEOF
9233 233 julius
if ac_fn_c_try_link "$LINENO"; then :
9234 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9235
else
9236 233 julius
  ac_cv_lib_dl_dlopen=no
9237 90 jeremybenn
fi
9238 233 julius
rm -f core conftest.err conftest.$ac_objext \
9239
    conftest$ac_exeext conftest.$ac_ext
9240 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9241
fi
9242 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9243 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9244 233 julius
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9245 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9246
else
9247
 
9248
    lt_cv_dlopen="dyld"
9249
    lt_cv_dlopen_libs=
9250
    lt_cv_dlopen_self=yes
9251
 
9252
fi
9253
 
9254
    ;;
9255
 
9256
  *)
9257 233 julius
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9258
if test "x$ac_cv_func_shl_load" = x""yes; then :
9259 90 jeremybenn
  lt_cv_dlopen="shl_load"
9260
else
9261 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9262 90 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9263 233 julius
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9264 90 jeremybenn
  $as_echo_n "(cached) " >&6
9265
else
9266
  ac_check_lib_save_LIBS=$LIBS
9267
LIBS="-ldld  $LIBS"
9268 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 90 jeremybenn
/* end confdefs.h.  */
9270
 
9271
/* Override any GCC internal prototype to avoid an error.
9272
   Use char because int might match the return type of a GCC
9273
   builtin and then its argument prototype would still apply.  */
9274
#ifdef __cplusplus
9275
extern "C"
9276
#endif
9277
char shl_load ();
9278
int
9279
main ()
9280
{
9281
return shl_load ();
9282
  ;
9283
  return 0;
9284
}
9285
_ACEOF
9286 233 julius
if ac_fn_c_try_link "$LINENO"; then :
9287 90 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9288
else
9289 233 julius
  ac_cv_lib_dld_shl_load=no
9290 90 jeremybenn
fi
9291 233 julius
rm -f core conftest.err conftest.$ac_objext \
9292
    conftest$ac_exeext conftest.$ac_ext
9293 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9294
fi
9295 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9296 90 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9297 233 julius
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9298 90 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9299
else
9300 233 julius
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9301
if test "x$ac_cv_func_dlopen" = x""yes; then :
9302 90 jeremybenn
  lt_cv_dlopen="dlopen"
9303
else
9304 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9305 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9306 233 julius
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9307 90 jeremybenn
  $as_echo_n "(cached) " >&6
9308
else
9309
  ac_check_lib_save_LIBS=$LIBS
9310
LIBS="-ldl  $LIBS"
9311 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 90 jeremybenn
/* end confdefs.h.  */
9313
 
9314
/* Override any GCC internal prototype to avoid an error.
9315
   Use char because int might match the return type of a GCC
9316
   builtin and then its argument prototype would still apply.  */
9317
#ifdef __cplusplus
9318
extern "C"
9319
#endif
9320
char dlopen ();
9321
int
9322
main ()
9323
{
9324
return dlopen ();
9325
  ;
9326
  return 0;
9327
}
9328
_ACEOF
9329 233 julius
if ac_fn_c_try_link "$LINENO"; then :
9330 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9331
else
9332 233 julius
  ac_cv_lib_dl_dlopen=no
9333 90 jeremybenn
fi
9334 233 julius
rm -f core conftest.err conftest.$ac_objext \
9335
    conftest$ac_exeext conftest.$ac_ext
9336 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9337
fi
9338 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9339 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9340 233 julius
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9341 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9342
else
9343 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9344 90 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9345 233 julius
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9346 90 jeremybenn
  $as_echo_n "(cached) " >&6
9347
else
9348
  ac_check_lib_save_LIBS=$LIBS
9349
LIBS="-lsvld  $LIBS"
9350 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 90 jeremybenn
/* end confdefs.h.  */
9352
 
9353
/* Override any GCC internal prototype to avoid an error.
9354
   Use char because int might match the return type of a GCC
9355
   builtin and then its argument prototype would still apply.  */
9356
#ifdef __cplusplus
9357
extern "C"
9358
#endif
9359
char dlopen ();
9360
int
9361
main ()
9362
{
9363
return dlopen ();
9364
  ;
9365
  return 0;
9366
}
9367
_ACEOF
9368 233 julius
if ac_fn_c_try_link "$LINENO"; then :
9369 90 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9370
else
9371 233 julius
  ac_cv_lib_svld_dlopen=no
9372 90 jeremybenn
fi
9373 233 julius
rm -f core conftest.err conftest.$ac_objext \
9374
    conftest$ac_exeext conftest.$ac_ext
9375 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9376
fi
9377 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9378 90 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9379 233 julius
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9380 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9381
else
9382 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9383 90 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9384 233 julius
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9385 90 jeremybenn
  $as_echo_n "(cached) " >&6
9386
else
9387
  ac_check_lib_save_LIBS=$LIBS
9388
LIBS="-ldld  $LIBS"
9389 233 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 90 jeremybenn
/* end confdefs.h.  */
9391
 
9392
/* Override any GCC internal prototype to avoid an error.
9393
   Use char because int might match the return type of a GCC
9394
   builtin and then its argument prototype would still apply.  */
9395
#ifdef __cplusplus
9396
extern "C"
9397
#endif
9398
char dld_link ();
9399
int
9400
main ()
9401
{
9402
return dld_link ();
9403
  ;
9404
  return 0;
9405
}
9406
_ACEOF
9407 233 julius
if ac_fn_c_try_link "$LINENO"; then :
9408 90 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9409
else
9410 233 julius
  ac_cv_lib_dld_dld_link=no
9411 90 jeremybenn
fi
9412 233 julius
rm -f core conftest.err conftest.$ac_objext \
9413
    conftest$ac_exeext conftest.$ac_ext
9414 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9415
fi
9416 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9417 90 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9418 233 julius
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9419 90 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9420
fi
9421
 
9422
 
9423
fi
9424
 
9425
 
9426
fi
9427
 
9428
 
9429
fi
9430
 
9431
 
9432
fi
9433
 
9434
 
9435
fi
9436
 
9437
    ;;
9438
  esac
9439
 
9440
  if test "x$lt_cv_dlopen" != xno; then
9441
    enable_dlopen=yes
9442
  else
9443
    enable_dlopen=no
9444
  fi
9445
 
9446
  case $lt_cv_dlopen in
9447
  dlopen)
9448
    save_CPPFLAGS="$CPPFLAGS"
9449
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9450
 
9451
    save_LDFLAGS="$LDFLAGS"
9452
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9453
 
9454
    save_LIBS="$LIBS"
9455
    LIBS="$lt_cv_dlopen_libs $LIBS"
9456
 
9457 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9458 90 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9459 233 julius
if test "${lt_cv_dlopen_self+set}" = set; then :
9460 90 jeremybenn
  $as_echo_n "(cached) " >&6
9461
else
9462
          if test "$cross_compiling" = yes; then :
9463
  lt_cv_dlopen_self=cross
9464
else
9465
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9466
  lt_status=$lt_dlunknown
9467
  cat > conftest.$ac_ext <<_LT_EOF
9468 233 julius
#line 9468 "configure"
9469 90 jeremybenn
#include "confdefs.h"
9470
 
9471
#if HAVE_DLFCN_H
9472
#include 
9473
#endif
9474
 
9475
#include 
9476
 
9477
#ifdef RTLD_GLOBAL
9478
#  define LT_DLGLOBAL           RTLD_GLOBAL
9479
#else
9480
#  ifdef DL_GLOBAL
9481
#    define LT_DLGLOBAL         DL_GLOBAL
9482
#  else
9483
#    define LT_DLGLOBAL         0
9484
#  endif
9485
#endif
9486
 
9487
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9488
   find out it does not work in some platform. */
9489
#ifndef LT_DLLAZY_OR_NOW
9490
#  ifdef RTLD_LAZY
9491
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9492
#  else
9493
#    ifdef DL_LAZY
9494
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9495
#    else
9496
#      ifdef RTLD_NOW
9497
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9498
#      else
9499
#        ifdef DL_NOW
9500
#          define LT_DLLAZY_OR_NOW      DL_NOW
9501
#        else
9502
#          define LT_DLLAZY_OR_NOW      0
9503
#        endif
9504
#      endif
9505
#    endif
9506
#  endif
9507
#endif
9508
 
9509
void fnord() { int i=42;}
9510
int main ()
9511
{
9512
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9513
  int status = $lt_dlunknown;
9514
 
9515
  if (self)
9516
    {
9517
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9518
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9519
      /* dlclose (self); */
9520
    }
9521
  else
9522
    puts (dlerror ());
9523
 
9524
  return status;
9525
}
9526
_LT_EOF
9527 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9528 90 jeremybenn
  (eval $ac_link) 2>&5
9529
  ac_status=$?
9530 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9532 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9533
    lt_status=$?
9534
    case x$lt_status in
9535
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9536
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9537
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9538
    esac
9539
  else :
9540
    # compilation failed
9541
    lt_cv_dlopen_self=no
9542
  fi
9543
fi
9544
rm -fr conftest*
9545
 
9546
 
9547
fi
9548 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9549 90 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9550
 
9551
    if test "x$lt_cv_dlopen_self" = xyes; then
9552
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9553 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9554 90 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9555 233 julius
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9556 90 jeremybenn
  $as_echo_n "(cached) " >&6
9557
else
9558
          if test "$cross_compiling" = yes; then :
9559
  lt_cv_dlopen_self_static=cross
9560
else
9561
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9562
  lt_status=$lt_dlunknown
9563
  cat > conftest.$ac_ext <<_LT_EOF
9564 233 julius
#line 9564 "configure"
9565 90 jeremybenn
#include "confdefs.h"
9566
 
9567
#if HAVE_DLFCN_H
9568
#include 
9569
#endif
9570
 
9571
#include 
9572
 
9573
#ifdef RTLD_GLOBAL
9574
#  define LT_DLGLOBAL           RTLD_GLOBAL
9575
#else
9576
#  ifdef DL_GLOBAL
9577
#    define LT_DLGLOBAL         DL_GLOBAL
9578
#  else
9579
#    define LT_DLGLOBAL         0
9580
#  endif
9581
#endif
9582
 
9583
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9584
   find out it does not work in some platform. */
9585
#ifndef LT_DLLAZY_OR_NOW
9586
#  ifdef RTLD_LAZY
9587
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9588
#  else
9589
#    ifdef DL_LAZY
9590
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9591
#    else
9592
#      ifdef RTLD_NOW
9593
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9594
#      else
9595
#        ifdef DL_NOW
9596
#          define LT_DLLAZY_OR_NOW      DL_NOW
9597
#        else
9598
#          define LT_DLLAZY_OR_NOW      0
9599
#        endif
9600
#      endif
9601
#    endif
9602
#  endif
9603
#endif
9604
 
9605
void fnord() { int i=42;}
9606
int main ()
9607
{
9608
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9609
  int status = $lt_dlunknown;
9610
 
9611
  if (self)
9612
    {
9613
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9614
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9615
      /* dlclose (self); */
9616
    }
9617
  else
9618
    puts (dlerror ());
9619
 
9620
  return status;
9621
}
9622
_LT_EOF
9623 233 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9624 90 jeremybenn
  (eval $ac_link) 2>&5
9625
  ac_status=$?
9626 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9628 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9629
    lt_status=$?
9630
    case x$lt_status in
9631
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9632
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9633
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9634
    esac
9635
  else :
9636
    # compilation failed
9637
    lt_cv_dlopen_self_static=no
9638
  fi
9639
fi
9640
rm -fr conftest*
9641
 
9642
 
9643
fi
9644 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9645 90 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9646
    fi
9647
 
9648
    CPPFLAGS="$save_CPPFLAGS"
9649
    LDFLAGS="$save_LDFLAGS"
9650
    LIBS="$save_LIBS"
9651
    ;;
9652
  esac
9653
 
9654
  case $lt_cv_dlopen_self in
9655
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9656
  *) enable_dlopen_self=unknown ;;
9657
  esac
9658
 
9659
  case $lt_cv_dlopen_self_static in
9660
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9661
  *) enable_dlopen_self_static=unknown ;;
9662
  esac
9663
fi
9664
 
9665
 
9666
 
9667
 
9668
 
9669
 
9670
 
9671
 
9672
 
9673
 
9674
 
9675
 
9676
 
9677
 
9678
 
9679
 
9680
 
9681
striplib=
9682
old_striplib=
9683 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9684 90 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9685
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9686
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9687
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9688 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9689 90 jeremybenn
$as_echo "yes" >&6; }
9690
else
9691
# FIXME - insert some real tests, host_os isn't really good enough
9692
  case $host_os in
9693
  darwin*)
9694
    if test -n "$STRIP" ; then
9695
      striplib="$STRIP -x"
9696
      old_striplib="$STRIP -S"
9697 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 90 jeremybenn
$as_echo "yes" >&6; }
9699
    else
9700 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 90 jeremybenn
$as_echo "no" >&6; }
9702
    fi
9703
    ;;
9704
  *)
9705 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706 90 jeremybenn
$as_echo "no" >&6; }
9707
    ;;
9708
  esac
9709
fi
9710
 
9711
 
9712
 
9713
 
9714
 
9715
 
9716
 
9717
 
9718
 
9719
 
9720
 
9721
 
9722
  # Report which library types will actually be built
9723 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9724 90 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9725 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9726 90 jeremybenn
$as_echo "$can_build_shared" >&6; }
9727
 
9728 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9729 90 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
9730
  test "$can_build_shared" = "no" && enable_shared=no
9731
 
9732
  # On AIX, shared libraries and static libraries use the same namespace, and
9733
  # are all built from PIC.
9734
  case $host_os in
9735
  aix3*)
9736
    test "$enable_shared" = yes && enable_static=no
9737
    if test -n "$RANLIB"; then
9738
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9739
      postinstall_cmds='$RANLIB $lib'
9740
    fi
9741
    ;;
9742
 
9743
  aix[4-9]*)
9744
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9745
      test "$enable_shared" = yes && enable_static=no
9746
    fi
9747
    ;;
9748
  esac
9749 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9750 90 jeremybenn
$as_echo "$enable_shared" >&6; }
9751
 
9752 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9753 90 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
9754
  # Make sure either enable_shared or enable_static is yes.
9755
  test "$enable_shared" = yes || enable_static=yes
9756 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9757 90 jeremybenn
$as_echo "$enable_static" >&6; }
9758
 
9759
 
9760
 
9761
 
9762
fi
9763
ac_ext=c
9764
ac_cpp='$CPP $CPPFLAGS'
9765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9768
 
9769
CC="$lt_save_CC"
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
        ac_config_commands="$ac_config_commands libtool"
9784
 
9785
 
9786
 
9787
 
9788
# Only expand once:
9789
 
9790
 
9791
am__api_version='1.11'
9792
 
9793
# Find a good install program.  We prefer a C program (faster),
9794
# so one script is as good as another.  But avoid the broken or
9795
# incompatible versions:
9796
# SysV /etc/install, /usr/sbin/install
9797
# SunOS /usr/etc/install
9798
# IRIX /sbin/install
9799
# AIX /bin/install
9800
# AmigaOS /C/install, which installs bootblocks on floppy discs
9801
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9802
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9803
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9804
# OS/2's system install, which has a completely different semantic
9805
# ./install, which can be erroneously created by make from ./install.sh.
9806
# Reject install programs that cannot install multiple files.
9807 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9808 90 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
9809
if test -z "$INSTALL"; then
9810 233 julius
if test "${ac_cv_path_install+set}" = set; then :
9811 90 jeremybenn
  $as_echo_n "(cached) " >&6
9812
else
9813
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814
for as_dir in $PATH
9815
do
9816
  IFS=$as_save_IFS
9817
  test -z "$as_dir" && as_dir=.
9818 233 julius
    # Account for people who put trailing slashes in PATH elements.
9819
case $as_dir/ in #((
9820
  ./ | .// | /[cC]/* | \
9821 90 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9822 233 julius
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9823 90 jeremybenn
  /usr/ucb/* ) ;;
9824
  *)
9825
    # OSF1 and SCO ODT 3.0 have their own names for install.
9826
    # Don't use installbsd from OSF since it installs stuff as root
9827
    # by default.
9828
    for ac_prog in ginstall scoinst install; do
9829
      for ac_exec_ext in '' $ac_executable_extensions; do
9830
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9831
          if test $ac_prog = install &&
9832
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9833
            # AIX install.  It has an incompatible calling convention.
9834
            :
9835
          elif test $ac_prog = install &&
9836
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9837
            # program-specific install script used by HP pwplus--don't use.
9838
            :
9839
          else
9840
            rm -rf conftest.one conftest.two conftest.dir
9841
            echo one > conftest.one
9842
            echo two > conftest.two
9843
            mkdir conftest.dir
9844
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9845
              test -s conftest.one && test -s conftest.two &&
9846
              test -s conftest.dir/conftest.one &&
9847
              test -s conftest.dir/conftest.two
9848
            then
9849
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9850
              break 3
9851
            fi
9852
          fi
9853
        fi
9854
      done
9855
    done
9856
    ;;
9857
esac
9858
 
9859 233 julius
  done
9860 90 jeremybenn
IFS=$as_save_IFS
9861
 
9862
rm -rf conftest.one conftest.two conftest.dir
9863
 
9864
fi
9865
  if test "${ac_cv_path_install+set}" = set; then
9866
    INSTALL=$ac_cv_path_install
9867
  else
9868
    # As a last resort, use the slow shell script.  Don't cache a
9869
    # value for INSTALL within a source directory, because that will
9870
    # break other packages using the cache if that directory is
9871
    # removed, or if the value is a relative name.
9872
    INSTALL=$ac_install_sh
9873
  fi
9874
fi
9875 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9876 90 jeremybenn
$as_echo "$INSTALL" >&6; }
9877
 
9878
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9879
# It thinks the first close brace ends the variable substitution.
9880
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9881
 
9882
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9883
 
9884
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9885
 
9886 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9887 90 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
9888
# Just in case
9889
sleep 1
9890
echo timestamp > conftest.file
9891
# Reject unsafe characters in $srcdir or the absolute working directory
9892
# name.  Accept space and tab only in the latter.
9893
am_lf='
9894
'
9895
case `pwd` in
9896
  *[\\\"\#\$\&\'\`$am_lf]*)
9897 233 julius
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
9898 90 jeremybenn
esac
9899
case $srcdir in
9900
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
9901 233 julius
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
9902 90 jeremybenn
esac
9903
 
9904
# Do `set' in a subshell so we don't clobber the current shell's
9905
# arguments.  Must try -L first in case configure is actually a
9906
# symlink; some systems play weird games with the mod time of symlinks
9907
# (eg FreeBSD returns the mod time of the symlink's containing
9908
# directory).
9909
if (
9910
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9911
   if test "$*" = "X"; then
9912
      # -L didn't work.
9913
      set X `ls -t "$srcdir/configure" conftest.file`
9914
   fi
9915
   rm -f conftest.file
9916
   if test "$*" != "X $srcdir/configure conftest.file" \
9917
      && test "$*" != "X conftest.file $srcdir/configure"; then
9918
 
9919
      # If neither matched, then we have a broken ls.  This can happen
9920
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9921
      # broken ls alias from the environment.  This has actually
9922
      # happened.  Such a system could not be considered "sane".
9923 233 julius
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
9924
alias in your environment" "$LINENO" 5
9925 90 jeremybenn
   fi
9926
 
9927
   test "$2" = conftest.file
9928
   )
9929
then
9930
   # Ok.
9931
   :
9932
else
9933 233 julius
   as_fn_error "newly created file is older than distributed files!
9934
Check your system clock" "$LINENO" 5
9935 90 jeremybenn
fi
9936 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937 90 jeremybenn
$as_echo "yes" >&6; }
9938
test "$program_prefix" != NONE &&
9939
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
9940
# Use a double $ so make ignores it.
9941
test "$program_suffix" != NONE &&
9942
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9943
# Double any \ or $.
9944
# By default was `s,x,x', remove it if useless.
9945
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9946
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9947
 
9948
# expand $ac_aux_dir to an absolute path
9949
am_aux_dir=`cd $ac_aux_dir && pwd`
9950
 
9951
if test x"${MISSING+set}" != xset; then
9952
  case $am_aux_dir in
9953
  *\ * | *\     *)
9954
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9955
  *)
9956
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9957
  esac
9958
fi
9959
# Use eval to expand $SHELL
9960
if eval "$MISSING --run true"; then
9961
  am_missing_run="$MISSING --run "
9962
else
9963
  am_missing_run=
9964 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
9965 90 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9966
fi
9967
 
9968
if test x"${install_sh}" != xset; then
9969
  case $am_aux_dir in
9970
  *\ * | *\     *)
9971
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9972
  *)
9973
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9974
  esac
9975
fi
9976
 
9977
# Installed binaries are usually stripped using `strip' when the user
9978
# run `make install-strip'.  However `strip' might not be the right
9979
# tool to use in cross-compilation environments, therefore Automake
9980
# will honor the `STRIP' environment variable to overrule this program.
9981
if test "$cross_compiling" != no; then
9982
  if test -n "$ac_tool_prefix"; then
9983
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9984
set dummy ${ac_tool_prefix}strip; ac_word=$2
9985 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
9987 233 julius
if test "${ac_cv_prog_STRIP+set}" = set; then :
9988 90 jeremybenn
  $as_echo_n "(cached) " >&6
9989
else
9990
  if test -n "$STRIP"; then
9991
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9992
else
9993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994
for as_dir in $PATH
9995
do
9996
  IFS=$as_save_IFS
9997
  test -z "$as_dir" && as_dir=.
9998 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
9999 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10001 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 90 jeremybenn
    break 2
10003
  fi
10004
done
10005 233 julius
  done
10006 90 jeremybenn
IFS=$as_save_IFS
10007
 
10008
fi
10009
fi
10010
STRIP=$ac_cv_prog_STRIP
10011
if test -n "$STRIP"; then
10012 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10013 90 jeremybenn
$as_echo "$STRIP" >&6; }
10014
else
10015 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 90 jeremybenn
$as_echo "no" >&6; }
10017
fi
10018
 
10019
 
10020
fi
10021
if test -z "$ac_cv_prog_STRIP"; then
10022
  ac_ct_STRIP=$STRIP
10023
  # Extract the first word of "strip", so it can be a program name with args.
10024
set dummy strip; ac_word=$2
10025 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10027 233 julius
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10028 90 jeremybenn
  $as_echo_n "(cached) " >&6
10029
else
10030
  if test -n "$ac_ct_STRIP"; then
10031
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10032
else
10033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034
for as_dir in $PATH
10035
do
10036
  IFS=$as_save_IFS
10037
  test -z "$as_dir" && as_dir=.
10038 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10039 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040
    ac_cv_prog_ac_ct_STRIP="strip"
10041 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 90 jeremybenn
    break 2
10043
  fi
10044
done
10045 233 julius
  done
10046 90 jeremybenn
IFS=$as_save_IFS
10047
 
10048
fi
10049
fi
10050
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10051
if test -n "$ac_ct_STRIP"; then
10052 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10053 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10054
else
10055 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 90 jeremybenn
$as_echo "no" >&6; }
10057
fi
10058
 
10059
  if test "x$ac_ct_STRIP" = x; then
10060
    STRIP=":"
10061
  else
10062
    case $cross_compiling:$ac_tool_warned in
10063
yes:)
10064 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10065 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10066
ac_tool_warned=yes ;;
10067
esac
10068
    STRIP=$ac_ct_STRIP
10069
  fi
10070
else
10071
  STRIP="$ac_cv_prog_STRIP"
10072
fi
10073
 
10074
fi
10075
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10076
 
10077 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10078 90 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10079
if test -z "$MKDIR_P"; then
10080 233 julius
  if test "${ac_cv_path_mkdir+set}" = set; then :
10081 90 jeremybenn
  $as_echo_n "(cached) " >&6
10082
else
10083
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10085
do
10086
  IFS=$as_save_IFS
10087
  test -z "$as_dir" && as_dir=.
10088 233 julius
    for ac_prog in mkdir gmkdir; do
10089 90 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10090
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10091
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10092
             'mkdir (GNU coreutils) '* | \
10093
             'mkdir (coreutils) '* | \
10094
             'mkdir (fileutils) '4.1*)
10095
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10096
               break 3;;
10097
           esac
10098
         done
10099
       done
10100 233 julius
  done
10101 90 jeremybenn
IFS=$as_save_IFS
10102
 
10103
fi
10104
 
10105
  if test "${ac_cv_path_mkdir+set}" = set; then
10106
    MKDIR_P="$ac_cv_path_mkdir -p"
10107
  else
10108
    # As a last resort, use the slow shell script.  Don't cache a
10109
    # value for MKDIR_P within a source directory, because that will
10110
    # break other packages using the cache if that directory is
10111
    # removed, or if the value is a relative name.
10112 121 jeremybenn
    test -d ./--version && rmdir ./--version
10113 90 jeremybenn
    MKDIR_P="$ac_install_sh -d"
10114
  fi
10115
fi
10116 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10117 90 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10118
 
10119
mkdir_p="$MKDIR_P"
10120
case $mkdir_p in
10121
  [\\/$]* | ?:[\\/]*) ;;
10122
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10123
esac
10124
 
10125
for ac_prog in gawk mawk nawk awk
10126
do
10127
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10128
set dummy $ac_prog; ac_word=$2
10129 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10131 233 julius
if test "${ac_cv_prog_AWK+set}" = set; then :
10132 90 jeremybenn
  $as_echo_n "(cached) " >&6
10133
else
10134
  if test -n "$AWK"; then
10135
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10136
else
10137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138
for as_dir in $PATH
10139
do
10140
  IFS=$as_save_IFS
10141
  test -z "$as_dir" && as_dir=.
10142 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10143 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10144
    ac_cv_prog_AWK="$ac_prog"
10145 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 90 jeremybenn
    break 2
10147
  fi
10148
done
10149 233 julius
  done
10150 90 jeremybenn
IFS=$as_save_IFS
10151
 
10152
fi
10153
fi
10154
AWK=$ac_cv_prog_AWK
10155
if test -n "$AWK"; then
10156 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10157 90 jeremybenn
$as_echo "$AWK" >&6; }
10158
else
10159 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 90 jeremybenn
$as_echo "no" >&6; }
10161
fi
10162
 
10163
 
10164
  test -n "$AWK" && break
10165
done
10166
 
10167 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10168 90 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10169
set x ${MAKE-make}
10170
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10171 233 julius
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10172 90 jeremybenn
  $as_echo_n "(cached) " >&6
10173
else
10174
  cat >conftest.make <<\_ACEOF
10175
SHELL = /bin/sh
10176
all:
10177
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10178
_ACEOF
10179
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10180
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10181
  *@@@%%%=?*=@@@%%%*)
10182
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10183
  *)
10184
    eval ac_cv_prog_make_${ac_make}_set=no;;
10185
esac
10186
rm -f conftest.make
10187
fi
10188
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10189 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190 90 jeremybenn
$as_echo "yes" >&6; }
10191
  SET_MAKE=
10192
else
10193 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 90 jeremybenn
$as_echo "no" >&6; }
10195
  SET_MAKE="MAKE=${MAKE-make}"
10196
fi
10197
 
10198
rm -rf .tst 2>/dev/null
10199
mkdir .tst 2>/dev/null
10200
if test -d .tst; then
10201
  am__leading_dot=.
10202
else
10203
  am__leading_dot=_
10204
fi
10205
rmdir .tst 2>/dev/null
10206
 
10207
DEPDIR="${am__leading_dot}deps"
10208
 
10209
ac_config_commands="$ac_config_commands depfiles"
10210
 
10211
 
10212
am_make=${MAKE-make}
10213
cat > confinc << 'END'
10214
am__doit:
10215
        @echo this is the am__doit target
10216
.PHONY: am__doit
10217
END
10218
# If we don't find an include directive, just comment out the code.
10219 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10220 90 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10221
am__include="#"
10222
am__quote=
10223
_am_result=none
10224
# First try GNU make style include.
10225
echo "include confinc" > confmf
10226
# Ignore all kinds of additional output from `make'.
10227
case `$am_make -s -f confmf 2> /dev/null` in #(
10228
*the\ am__doit\ target*)
10229
  am__include=include
10230
  am__quote=
10231
  _am_result=GNU
10232
  ;;
10233
esac
10234
# Now try BSD make style include.
10235
if test "$am__include" = "#"; then
10236
   echo '.include "confinc"' > confmf
10237
   case `$am_make -s -f confmf 2> /dev/null` in #(
10238
   *the\ am__doit\ target*)
10239
     am__include=.include
10240
     am__quote="\""
10241
     _am_result=BSD
10242
     ;;
10243
   esac
10244
fi
10245
 
10246
 
10247 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10248 90 jeremybenn
$as_echo "$_am_result" >&6; }
10249
rm -f confinc confmf
10250
 
10251
# Check whether --enable-dependency-tracking was given.
10252 233 julius
if test "${enable_dependency_tracking+set}" = set; then :
10253 90 jeremybenn
  enableval=$enable_dependency_tracking;
10254
fi
10255
 
10256
if test "x$enable_dependency_tracking" != xno; then
10257
  am_depcomp="$ac_aux_dir/depcomp"
10258
  AMDEPBACKSLASH='\'
10259
fi
10260
 if test "x$enable_dependency_tracking" != xno; then
10261
  AMDEP_TRUE=
10262
  AMDEP_FALSE='#'
10263
else
10264
  AMDEP_TRUE='#'
10265
  AMDEP_FALSE=
10266
fi
10267
 
10268
 
10269
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10270
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10271
  # is not polluted with repeated "-I."
10272
  am__isrc=' -I$(srcdir)'
10273
  # test to see if srcdir already configured
10274
  if test -f $srcdir/config.status; then
10275 233 julius
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10276 90 jeremybenn
  fi
10277
fi
10278
 
10279
# test whether we have cygpath
10280
if test -z "$CYGPATH_W"; then
10281
  if (cygpath --version) >/dev/null 2>/dev/null; then
10282
    CYGPATH_W='cygpath -w'
10283
  else
10284
    CYGPATH_W=echo
10285
  fi
10286
fi
10287
 
10288
 
10289
# Define the identity of the package.
10290
 PACKAGE='or1ksim-testsuite'
10291 230 jeremybenn
 VERSION='2010-08-01'
10292 90 jeremybenn
 
10293
 
10294
cat >>confdefs.h <<_ACEOF
10295
#define PACKAGE "$PACKAGE"
10296
_ACEOF
10297
 
10298
 
10299
cat >>confdefs.h <<_ACEOF
10300
#define VERSION "$VERSION"
10301
_ACEOF
10302
 
10303
# Some tools Automake needs.
10304
 
10305
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10306
 
10307
 
10308
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10309
 
10310
 
10311
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10312
 
10313
 
10314
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10315
 
10316
 
10317
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10318
 
10319
# We need awk for the "check" target.  The system "awk" is bad on
10320
# some platforms.
10321
# Always define AMTAR for backward compatibility.
10322
 
10323
AMTAR=${AMTAR-"${am_missing_run}tar"}
10324
 
10325
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10326
 
10327
 
10328
 
10329
 
10330
depcc="$CC"   am_compiler_list=
10331
 
10332 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10333 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10334 233 julius
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10335 90 jeremybenn
  $as_echo_n "(cached) " >&6
10336
else
10337
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10338
  # We make a subdir and do the tests there.  Otherwise we can end up
10339
  # making bogus files that we don't know about and never remove.  For
10340
  # instance it was reported that on HP-UX the gcc test will end up
10341
  # making a dummy file named `D' -- because `-MD' means `put the output
10342
  # in D'.
10343
  mkdir conftest.dir
10344
  # Copy depcomp to subdir because otherwise we won't find it if we're
10345
  # using a relative directory.
10346
  cp "$am_depcomp" conftest.dir
10347
  cd conftest.dir
10348
  # We will build objects and dependencies in a subdirectory because
10349
  # it helps to detect inapplicable dependency modes.  For instance
10350
  # both Tru64's cc and ICC support -MD to output dependencies as a
10351
  # side effect of compilation, but ICC will put the dependencies in
10352
  # the current directory while Tru64 will put them in the object
10353
  # directory.
10354
  mkdir sub
10355
 
10356
  am_cv_CC_dependencies_compiler_type=none
10357
  if test "$am_compiler_list" = ""; then
10358
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10359
  fi
10360
  am__universal=false
10361
  case " $depcc " in #(
10362
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10363
     esac
10364
 
10365
  for depmode in $am_compiler_list; do
10366
    # Setup a source with many dependencies, because some compilers
10367
    # like to wrap large dependency lists on column 80 (with \), and
10368
    # we should not choose a depcomp mode which is confused by this.
10369
    #
10370
    # We need to recreate these files for each test, as the compiler may
10371
    # overwrite some of them when testing with obscure command lines.
10372
    # This happens at least with the AIX C compiler.
10373
    : > sub/conftest.c
10374
    for i in 1 2 3 4 5 6; do
10375
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10376
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10377
      # Solaris 8's {/usr,}/bin/sh.
10378
      touch sub/conftst$i.h
10379
    done
10380
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10381
 
10382
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10383
    # mode.  It turns out that the SunPro C++ compiler does not properly
10384
    # handle `-M -o', and we need to detect this.  Also, some Intel
10385
    # versions had trouble with output in subdirs
10386
    am__obj=sub/conftest.${OBJEXT-o}
10387
    am__minus_obj="-o $am__obj"
10388
    case $depmode in
10389
    gcc)
10390
      # This depmode causes a compiler race in universal mode.
10391
      test "$am__universal" = false || continue
10392
      ;;
10393
    nosideeffect)
10394
      # after this tag, mechanisms are not by side-effect, so they'll
10395
      # only be used when explicitly requested
10396
      if test "x$enable_dependency_tracking" = xyes; then
10397
        continue
10398
      else
10399
        break
10400
      fi
10401
      ;;
10402
    msvisualcpp | msvcmsys)
10403
      # This compiler won't grok `-c -o', but also, the minuso test has
10404
      # not run yet.  These depmodes are late enough in the game, and
10405
      # so weak that their functioning should not be impacted.
10406
      am__obj=conftest.${OBJEXT-o}
10407
      am__minus_obj=
10408
      ;;
10409
    none) break ;;
10410
    esac
10411
    if depmode=$depmode \
10412
       source=sub/conftest.c object=$am__obj \
10413
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10414
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10415
         >/dev/null 2>conftest.err &&
10416
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10417
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10418
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10419
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10420
      # icc doesn't choke on unknown options, it will just issue warnings
10421
      # or remarks (even with -Werror).  So we grep stderr for any message
10422
      # that says an option was ignored or not supported.
10423
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10424
      #   icc: Command line warning: ignoring option '-M'; no argument required
10425
      # The diagnosis changed in icc 8.0:
10426
      #   icc: Command line remark: option '-MP' not supported
10427
      if (grep 'ignoring option' conftest.err ||
10428
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10429
        am_cv_CC_dependencies_compiler_type=$depmode
10430
        break
10431
      fi
10432
    fi
10433
  done
10434
 
10435
  cd ..
10436
  rm -rf conftest.dir
10437
else
10438
  am_cv_CC_dependencies_compiler_type=none
10439
fi
10440
 
10441
fi
10442 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10443 90 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10444
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10445
 
10446
 if
10447
  test "x$enable_dependency_tracking" != xno \
10448
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10449
  am__fastdepCC_TRUE=
10450
  am__fastdepCC_FALSE='#'
10451
else
10452
  am__fastdepCC_TRUE='#'
10453
  am__fastdepCC_FALSE=
10454
fi
10455
 
10456
 
10457
 
10458
ac_config_headers="$ac_config_headers config.h"
10459
 
10460
 
10461
# make sure we are using a recent autoconf version
10462
 
10463
 
10464
# check for --enable-all-tests argument, in which case we attempt to build all
10465
# tests, even those that do not compile properly.
10466
# Check whether --enable-all-tests was given.
10467 233 julius
if test "${enable_all_tests+set}" = set; then :
10468 90 jeremybenn
  enableval=$enable_all_tests; all_tests=true all_tests=false
10469
fi
10470
 
10471
 if test x$all_tests = xtrue; then
10472
  BUILD_ALL_TESTS_TRUE=
10473
  BUILD_ALL_TESTS_FALSE='#'
10474
else
10475
  BUILD_ALL_TESTS_TRUE='#'
10476
  BUILD_ALL_TESTS_FALSE=
10477
fi
10478
 
10479
 
10480
# Sort out the tools. Using the target tool chain here, not native. Note that
10481
# AC_CHECK_PROGS will not override an already set variable, so we must
10482
# explicitly unset them first.
10483
unset CC
10484
unset RANLIB
10485
unset LD
10486
unset SIM
10487
for ac_prog in $target_alias-gcc
10488
do
10489
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10490
set dummy $ac_prog; ac_word=$2
10491 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10493 233 julius
if test "${ac_cv_prog_CC+set}" = set; then :
10494 90 jeremybenn
  $as_echo_n "(cached) " >&6
10495
else
10496
  if test -n "$CC"; then
10497
  ac_cv_prog_CC="$CC" # Let the user override the test.
10498
else
10499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500
for as_dir in $PATH
10501
do
10502
  IFS=$as_save_IFS
10503
  test -z "$as_dir" && as_dir=.
10504 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10505 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506
    ac_cv_prog_CC="$ac_prog"
10507 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 90 jeremybenn
    break 2
10509
  fi
10510
done
10511 233 julius
  done
10512 90 jeremybenn
IFS=$as_save_IFS
10513
 
10514
fi
10515
fi
10516
CC=$ac_cv_prog_CC
10517
if test -n "$CC"; then
10518 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10519 90 jeremybenn
$as_echo "$CC" >&6; }
10520
else
10521 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 90 jeremybenn
$as_echo "no" >&6; }
10523
fi
10524
 
10525
 
10526
  test -n "$CC" && break
10527
done
10528
 
10529
for ac_prog in $target_alias-ranlib
10530
do
10531
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10532
set dummy $ac_prog; ac_word=$2
10533 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10535 233 julius
if test "${ac_cv_prog_RANLIB+set}" = set; then :
10536 90 jeremybenn
  $as_echo_n "(cached) " >&6
10537
else
10538
  if test -n "$RANLIB"; then
10539
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10540
else
10541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542
for as_dir in $PATH
10543
do
10544
  IFS=$as_save_IFS
10545
  test -z "$as_dir" && as_dir=.
10546 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10547 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548
    ac_cv_prog_RANLIB="$ac_prog"
10549 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 90 jeremybenn
    break 2
10551
  fi
10552
done
10553 233 julius
  done
10554 90 jeremybenn
IFS=$as_save_IFS
10555
 
10556
fi
10557
fi
10558
RANLIB=$ac_cv_prog_RANLIB
10559
if test -n "$RANLIB"; then
10560 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10561 90 jeremybenn
$as_echo "$RANLIB" >&6; }
10562
else
10563 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 90 jeremybenn
$as_echo "no" >&6; }
10565
fi
10566
 
10567
 
10568
  test -n "$RANLIB" && break
10569
done
10570
 
10571
for ac_prog in $target_alias-ld
10572
do
10573
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10574
set dummy $ac_prog; ac_word=$2
10575 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10577 233 julius
if test "${ac_cv_prog_LD+set}" = set; then :
10578 90 jeremybenn
  $as_echo_n "(cached) " >&6
10579
else
10580
  if test -n "$LD"; then
10581
  ac_cv_prog_LD="$LD" # Let the user override the test.
10582
else
10583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584
for as_dir in $PATH
10585
do
10586
  IFS=$as_save_IFS
10587
  test -z "$as_dir" && as_dir=.
10588 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10589 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10590
    ac_cv_prog_LD="$ac_prog"
10591 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 90 jeremybenn
    break 2
10593
  fi
10594
done
10595 233 julius
  done
10596 90 jeremybenn
IFS=$as_save_IFS
10597
 
10598
fi
10599
fi
10600
LD=$ac_cv_prog_LD
10601
if test -n "$LD"; then
10602 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10603 90 jeremybenn
$as_echo "$LD" >&6; }
10604
else
10605 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 90 jeremybenn
$as_echo "no" >&6; }
10607
fi
10608
 
10609
 
10610
  test -n "$LD" && break
10611
done
10612
 
10613
for ac_prog in $target_alias-sim
10614
do
10615
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10616
set dummy $ac_prog; ac_word=$2
10617 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10619 233 julius
if test "${ac_cv_prog_SIM+set}" = set; then :
10620 90 jeremybenn
  $as_echo_n "(cached) " >&6
10621
else
10622
  if test -n "$SIM"; then
10623
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
10624
else
10625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626
for as_dir in $PATH
10627
do
10628
  IFS=$as_save_IFS
10629
  test -z "$as_dir" && as_dir=.
10630 233 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10631 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632
    ac_cv_prog_SIM="$ac_prog"
10633 233 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 90 jeremybenn
    break 2
10635
  fi
10636
done
10637 233 julius
  done
10638 90 jeremybenn
IFS=$as_save_IFS
10639
 
10640
fi
10641
fi
10642
SIM=$ac_cv_prog_SIM
10643
if test -n "$SIM"; then
10644 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM" >&5
10645 90 jeremybenn
$as_echo "$SIM" >&6; }
10646
else
10647 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 90 jeremybenn
$as_echo "no" >&6; }
10649
fi
10650
 
10651
 
10652
  test -n "$SIM" && break
10653
done
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10661 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
10662 233 julius
if test "${ac_cv_header_stdc+set}" = set; then :
10663 90 jeremybenn
  $as_echo_n "(cached) " >&6
10664
else
10665 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 90 jeremybenn
/* end confdefs.h.  */
10667
#include 
10668
#include 
10669
#include 
10670
#include 
10671
 
10672
int
10673
main ()
10674
{
10675
 
10676
  ;
10677
  return 0;
10678
}
10679
_ACEOF
10680 233 julius
if ac_fn_c_try_compile "$LINENO"; then :
10681 90 jeremybenn
  ac_cv_header_stdc=yes
10682
else
10683 233 julius
  ac_cv_header_stdc=no
10684 90 jeremybenn
fi
10685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
 
10687
if test $ac_cv_header_stdc = yes; then
10688
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10689 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 90 jeremybenn
/* end confdefs.h.  */
10691
#include 
10692
 
10693
_ACEOF
10694
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10695 233 julius
  $EGREP "memchr" >/dev/null 2>&1; then :
10696
 
10697 90 jeremybenn
else
10698
  ac_cv_header_stdc=no
10699
fi
10700
rm -f conftest*
10701
 
10702
fi
10703
 
10704
if test $ac_cv_header_stdc = yes; then
10705
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10706 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 90 jeremybenn
/* end confdefs.h.  */
10708
#include 
10709
 
10710
_ACEOF
10711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10712 233 julius
  $EGREP "free" >/dev/null 2>&1; then :
10713
 
10714 90 jeremybenn
else
10715
  ac_cv_header_stdc=no
10716
fi
10717
rm -f conftest*
10718
 
10719
fi
10720
 
10721
if test $ac_cv_header_stdc = yes; then
10722
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10723 233 julius
  if test "$cross_compiling" = yes; then :
10724 90 jeremybenn
  :
10725
else
10726 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 90 jeremybenn
/* end confdefs.h.  */
10728
#include 
10729
#include 
10730
#if ((' ' & 0x0FF) == 0x020)
10731
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10732
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10733
#else
10734
# define ISLOWER(c) \
10735
                   (('a' <= (c) && (c) <= 'i') \
10736
                     || ('j' <= (c) && (c) <= 'r') \
10737
                     || ('s' <= (c) && (c) <= 'z'))
10738
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10739
#endif
10740
 
10741
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10742
int
10743
main ()
10744
{
10745
  int i;
10746
  for (i = 0; i < 256; i++)
10747
    if (XOR (islower (i), ISLOWER (i))
10748
        || toupper (i) != TOUPPER (i))
10749
      return 2;
10750
  return 0;
10751
}
10752
_ACEOF
10753 233 julius
if ac_fn_c_try_run "$LINENO"; then :
10754
 
10755 121 jeremybenn
else
10756 233 julius
  ac_cv_header_stdc=no
10757 90 jeremybenn
fi
10758 233 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10759
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10760 90 jeremybenn
fi
10761
 
10762
fi
10763
fi
10764 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10765 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
10766
if test $ac_cv_header_stdc = yes; then
10767
 
10768 233 julius
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10769 90 jeremybenn
 
10770
fi
10771
 
10772
 
10773
# We need assembler, installer and per target C flags
10774
 
10775
# By default we simply use the C compiler to build assembly code.
10776
 
10777
test "${CCAS+set}" = set || CCAS=$CC
10778
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10779
 
10780
 
10781
 
10782
depcc="$CCAS"   am_compiler_list=
10783
 
10784 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10785 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10786 233 julius
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10787 90 jeremybenn
  $as_echo_n "(cached) " >&6
10788
else
10789
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10790
  # We make a subdir and do the tests there.  Otherwise we can end up
10791
  # making bogus files that we don't know about and never remove.  For
10792
  # instance it was reported that on HP-UX the gcc test will end up
10793
  # making a dummy file named `D' -- because `-MD' means `put the output
10794
  # in D'.
10795
  mkdir conftest.dir
10796
  # Copy depcomp to subdir because otherwise we won't find it if we're
10797
  # using a relative directory.
10798
  cp "$am_depcomp" conftest.dir
10799
  cd conftest.dir
10800
  # We will build objects and dependencies in a subdirectory because
10801
  # it helps to detect inapplicable dependency modes.  For instance
10802
  # both Tru64's cc and ICC support -MD to output dependencies as a
10803
  # side effect of compilation, but ICC will put the dependencies in
10804
  # the current directory while Tru64 will put them in the object
10805
  # directory.
10806
  mkdir sub
10807
 
10808
  am_cv_CCAS_dependencies_compiler_type=none
10809
  if test "$am_compiler_list" = ""; then
10810
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10811
  fi
10812
  am__universal=false
10813
 
10814
 
10815
  for depmode in $am_compiler_list; do
10816
    # Setup a source with many dependencies, because some compilers
10817
    # like to wrap large dependency lists on column 80 (with \), and
10818
    # we should not choose a depcomp mode which is confused by this.
10819
    #
10820
    # We need to recreate these files for each test, as the compiler may
10821
    # overwrite some of them when testing with obscure command lines.
10822
    # This happens at least with the AIX C compiler.
10823
    : > sub/conftest.c
10824
    for i in 1 2 3 4 5 6; do
10825
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10826
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10827
      # Solaris 8's {/usr,}/bin/sh.
10828
      touch sub/conftst$i.h
10829
    done
10830
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10831
 
10832
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10833
    # mode.  It turns out that the SunPro C++ compiler does not properly
10834
    # handle `-M -o', and we need to detect this.  Also, some Intel
10835
    # versions had trouble with output in subdirs
10836
    am__obj=sub/conftest.${OBJEXT-o}
10837
    am__minus_obj="-o $am__obj"
10838
    case $depmode in
10839
    gcc)
10840
      # This depmode causes a compiler race in universal mode.
10841
      test "$am__universal" = false || continue
10842
      ;;
10843
    nosideeffect)
10844
      # after this tag, mechanisms are not by side-effect, so they'll
10845
      # only be used when explicitly requested
10846
      if test "x$enable_dependency_tracking" = xyes; then
10847
        continue
10848
      else
10849
        break
10850
      fi
10851
      ;;
10852
    msvisualcpp | msvcmsys)
10853
      # This compiler won't grok `-c -o', but also, the minuso test has
10854
      # not run yet.  These depmodes are late enough in the game, and
10855
      # so weak that their functioning should not be impacted.
10856
      am__obj=conftest.${OBJEXT-o}
10857
      am__minus_obj=
10858
      ;;
10859
    none) break ;;
10860
    esac
10861
    if depmode=$depmode \
10862
       source=sub/conftest.c object=$am__obj \
10863
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10864
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10865
         >/dev/null 2>conftest.err &&
10866
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10867
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10868
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10869
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10870
      # icc doesn't choke on unknown options, it will just issue warnings
10871
      # or remarks (even with -Werror).  So we grep stderr for any message
10872
      # that says an option was ignored or not supported.
10873
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10874
      #   icc: Command line warning: ignoring option '-M'; no argument required
10875
      # The diagnosis changed in icc 8.0:
10876
      #   icc: Command line remark: option '-MP' not supported
10877
      if (grep 'ignoring option' conftest.err ||
10878
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10879
        am_cv_CCAS_dependencies_compiler_type=$depmode
10880
        break
10881
      fi
10882
    fi
10883
  done
10884
 
10885
  cd ..
10886
  rm -rf conftest.dir
10887
else
10888
  am_cv_CCAS_dependencies_compiler_type=none
10889
fi
10890
 
10891
fi
10892 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10893 90 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10894
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10895
 
10896
 if
10897
  test "x$enable_dependency_tracking" != xno \
10898
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10899
  am__fastdepCCAS_TRUE=
10900
  am__fastdepCCAS_FALSE='#'
10901
else
10902
  am__fastdepCCAS_TRUE='#'
10903
  am__fastdepCCAS_FALSE=
10904
fi
10905
 
10906
 
10907
if test "x$CC" != xcc; then
10908 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10909 90 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10910
else
10911 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10912 90 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10913
fi
10914
set dummy $CC; ac_cc=`$as_echo "$2" |
10915
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10916 233 julius
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10917 90 jeremybenn
  $as_echo_n "(cached) " >&6
10918
else
10919 233 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 90 jeremybenn
/* end confdefs.h.  */
10921
 
10922
int
10923
main ()
10924
{
10925
 
10926
  ;
10927
  return 0;
10928
}
10929
_ACEOF
10930
# Make sure it works both with $CC and with simple cc.
10931
# We do the test twice because some compilers refuse to overwrite an
10932
# existing .o file with -o, though they will create one.
10933
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10934
rm -f conftest2.*
10935 233 julius
if { { case "(($ac_try" in
10936 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937
  *) ac_try_echo=$ac_try;;
10938
esac
10939 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10940
$as_echo "$ac_try_echo"; } >&5
10941 90 jeremybenn
  (eval "$ac_try") 2>&5
10942
  ac_status=$?
10943 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944
  test $ac_status = 0; } &&
10945
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10946 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947
  *) ac_try_echo=$ac_try;;
10948
esac
10949 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10950
$as_echo "$ac_try_echo"; } >&5
10951 90 jeremybenn
  (eval "$ac_try") 2>&5
10952
  ac_status=$?
10953 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954
  test $ac_status = 0; };
10955 90 jeremybenn
then
10956
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10957
  if test "x$CC" != xcc; then
10958
    # Test first that cc exists at all.
10959
    if { ac_try='cc -c conftest.$ac_ext >&5'
10960 233 julius
  { { case "(($ac_try" in
10961 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962
  *) ac_try_echo=$ac_try;;
10963
esac
10964 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10965
$as_echo "$ac_try_echo"; } >&5
10966 90 jeremybenn
  (eval "$ac_try") 2>&5
10967
  ac_status=$?
10968 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969
  test $ac_status = 0; }; }; then
10970 90 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10971
      rm -f conftest2.*
10972 233 julius
      if { { case "(($ac_try" in
10973 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974
  *) ac_try_echo=$ac_try;;
10975
esac
10976 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10977
$as_echo "$ac_try_echo"; } >&5
10978 90 jeremybenn
  (eval "$ac_try") 2>&5
10979
  ac_status=$?
10980 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10981
  test $ac_status = 0; } &&
10982
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
10983 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984
  *) ac_try_echo=$ac_try;;
10985
esac
10986 233 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10987
$as_echo "$ac_try_echo"; } >&5
10988 90 jeremybenn
  (eval "$ac_try") 2>&5
10989
  ac_status=$?
10990 233 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991
  test $ac_status = 0; };
10992 90 jeremybenn
      then
10993
        # cc works too.
10994
        :
10995
      else
10996
        # cc exists but doesn't like -o.
10997
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
10998
      fi
10999
    fi
11000
  fi
11001
else
11002
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11003
fi
11004
rm -f core conftest*
11005
 
11006
fi
11007
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11008 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009 90 jeremybenn
$as_echo "yes" >&6; }
11010
else
11011 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 90 jeremybenn
$as_echo "no" >&6; }
11013
 
11014 233 julius
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11015 90 jeremybenn
 
11016
fi
11017
 
11018
# FIXME: we rely on the cache variable name because
11019
# there is no other way.
11020
set dummy $CC
11021
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11022
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11023
if test "$am_t" != yes; then
11024
   # Losing compiler, so override with the script.
11025
   # FIXME: It is wrong to rewrite CC.
11026
   # But if we don't then we get into trouble of one sort or another.
11027
   # A longer-term fix would be to have automake use am__CC in this case,
11028
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11029
   CC="$am_aux_dir/compile $CC"
11030
fi
11031
 
11032
 
11033
 
11034
 
11035
# Specify our baseline CFLAGS
11036
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/mc-common"
11037
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11038
 
11039
# Flag to specify whether we want optimization when checking
11040 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimizations when checking" >&5
11041 90 jeremybenn
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11042
# Check whether --enable-opt was given.
11043 233 julius
if test "${enable_opt+set}" = set; then :
11044 90 jeremybenn
  enableval=$enable_opt;
11045
    case "$enableval" in
11046
        yes)
11047
            CFLAGS="$CFLAGS -O"
11048
            ;;
11049
        *)
11050
            CFLAGS="$CFLAGS -O$enableval"
11051
            ;;
11052
    esac
11053
 
11054
fi
11055
 
11056 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_check_opt-default}" >&5
11057 90 jeremybenn
$as_echo "${enable_check_opt-default}" >&6; }
11058
 
11059
 
11060
 
11061
 
11062
# This is GNU compliant source and uses GNU libraries
11063
 
11064 233 julius
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11065 90 jeremybenn
 
11066
 
11067
# Check for functions doesn't work, since we can't execute code. Define some
11068
# we know are definitely there in OR1K GCC. This is all to allow reused
11069
# headers from the main code body (for the memory controller tests
11070
# principally) to work.
11071
 
11072 233 julius
$as_echo "#define HAVE_STRNDUP /**/" >>confdefs.h
11073 90 jeremybenn
 
11074
 
11075 233 julius
$as_echo "#define HAVE_ISBLANK /**/" >>confdefs.h
11076 90 jeremybenn
 
11077
 
11078
# Check for headers
11079
for ac_header in sys/types.h inttypes.h
11080 233 julius
do :
11081
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11083
eval as_val=\$$as_ac_Header
11084
   if test "x$as_val" = x""yes; then :
11085 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
11086
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11087
_ACEOF
11088
 
11089
fi
11090
 
11091
done
11092
 
11093
 
11094
# check for types and sizes
11095 233 julius
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
11096
"
11097
if test "x$ac_cv_type_uint8_t" = x""yes; then :
11098 90 jeremybenn
 
11099
cat >>confdefs.h <<_ACEOF
11100
#define HAVE_UINT8_T 1
11101
_ACEOF
11102
 
11103
 
11104
fi
11105 233 julius
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
11106
"
11107
if test "x$ac_cv_type_uint16_t" = x""yes; then :
11108 90 jeremybenn
 
11109
cat >>confdefs.h <<_ACEOF
11110
#define HAVE_UINT16_T 1
11111
_ACEOF
11112
 
11113
 
11114
fi
11115 233 julius
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
11116
"
11117
if test "x$ac_cv_type_uint32_t" = x""yes; then :
11118 90 jeremybenn
 
11119
cat >>confdefs.h <<_ACEOF
11120
#define HAVE_UINT32_T 1
11121
_ACEOF
11122
 
11123
 
11124
fi
11125
 
11126 233 julius
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
11127
"
11128
if test "x$ac_cv_type_int8_t" = x""yes; then :
11129 90 jeremybenn
 
11130
cat >>confdefs.h <<_ACEOF
11131
#define HAVE_INT8_T 1
11132
_ACEOF
11133
 
11134
 
11135
fi
11136 233 julius
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
11137
"
11138
if test "x$ac_cv_type_int16_t" = x""yes; then :
11139 90 jeremybenn
 
11140
cat >>confdefs.h <<_ACEOF
11141
#define HAVE_INT16_T 1
11142
_ACEOF
11143
 
11144
 
11145
fi
11146 233 julius
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
11147
"
11148
if test "x$ac_cv_type_int32_t" = x""yes; then :
11149 90 jeremybenn
 
11150
cat >>confdefs.h <<_ACEOF
11151
#define HAVE_INT32_T 1
11152
_ACEOF
11153
 
11154
 
11155
fi
11156
 
11157
 
11158
# Checking sizeof doesn't really work, since it needs to run compiled code. So
11159
# we do it by hand.
11160
 
11161 233 julius
$as_echo "#define SIZEOF_CHAR 1" >>confdefs.h
11162 90 jeremybenn
 
11163
 
11164 233 julius
$as_echo "#define SIZEOF_SHORT 2" >>confdefs.h
11165 90 jeremybenn
 
11166
 
11167 233 julius
$as_echo "#define SIZEOF_INT 4" >>confdefs.h
11168 90 jeremybenn
 
11169
 
11170 233 julius
$as_echo "#define SIZEOF_LONG 4" >>confdefs.h
11171 90 jeremybenn
 
11172
 
11173 233 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"
11174 90 jeremybenn
 
11175
 
11176
cat >confcache <<\_ACEOF
11177
# This file is a shell script that caches the results of configure
11178
# tests run on this system so they can be shared between configure
11179
# scripts and configure runs, see configure's option --config-cache.
11180
# It is not useful on other systems.  If it contains results you don't
11181
# want to keep, you may remove or edit it.
11182
#
11183
# config.status only pays attention to the cache file if you give it
11184
# the --recheck option to rerun configure.
11185
#
11186
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11187
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11188
# following values.
11189
 
11190
_ACEOF
11191
 
11192
# The following way of writing the cache mishandles newlines in values,
11193
# but we know of no workaround that is simple, portable, and efficient.
11194
# So, we kill variables containing newlines.
11195
# Ultrix sh set writes to stderr and can't be redirected directly,
11196
# and sets the high bit in the cache file unless we assign to the vars.
11197
(
11198
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11199
    eval ac_val=\$$ac_var
11200
    case $ac_val in #(
11201
    *${as_nl}*)
11202
      case $ac_var in #(
11203 233 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11204 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11205
      esac
11206
      case $ac_var in #(
11207
      _ | IFS | as_nl) ;; #(
11208
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11209 233 julius
      *) { eval $ac_var=; unset $ac_var;} ;;
11210 90 jeremybenn
      esac ;;
11211
    esac
11212
  done
11213
 
11214
  (set) 2>&1 |
11215
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11216
    *${as_nl}ac_space=\ *)
11217 233 julius
      # `set' does not quote correctly, so add quotes: double-quote
11218
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11219 90 jeremybenn
      sed -n \
11220
        "s/'/'\\\\''/g;
11221
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11222
      ;; #(
11223
    *)
11224
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11225
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11226
      ;;
11227
    esac |
11228
    sort
11229
) |
11230
  sed '
11231
     /^ac_cv_env_/b end
11232
     t clear
11233
     :clear
11234
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11235
     t end
11236
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11237
     :end' >>confcache
11238
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11239
  if test -w "$cache_file"; then
11240
    test "x$cache_file" != "x/dev/null" &&
11241 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11242 90 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
11243
    cat confcache >$cache_file
11244
  else
11245 233 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11246 90 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11247
  fi
11248
fi
11249
rm -f confcache
11250
 
11251
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11252
# Let make expand exec_prefix.
11253
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11254
 
11255
DEFS=-DHAVE_CONFIG_H
11256
 
11257
ac_libobjs=
11258
ac_ltlibobjs=
11259
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11260
  # 1. Remove the extension, and $U if already installed.
11261
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11262
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11263
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11264
  #    will be set to the directory where LIBOBJS objects are built.
11265 233 julius
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11266
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11267 90 jeremybenn
done
11268
LIBOBJS=$ac_libobjs
11269
 
11270
LTLIBOBJS=$ac_ltlibobjs
11271
 
11272
 
11273
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11274 233 julius
  as_fn_error "conditional \"AMDEP\" was never defined.
11275
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11276 90 jeremybenn
fi
11277
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11278 233 julius
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11279
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11280 90 jeremybenn
fi
11281
 if test -n "$EXEEXT"; then
11282
  am__EXEEXT_TRUE=
11283
  am__EXEEXT_FALSE='#'
11284
else
11285
  am__EXEEXT_TRUE='#'
11286
  am__EXEEXT_FALSE=
11287
fi
11288
 
11289
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
11290 233 julius
  as_fn_error "conditional \"BUILD_ALL_TESTS\" was never defined.
11291
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11292 90 jeremybenn
fi
11293
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
11294 233 julius
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
11295
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11296 90 jeremybenn
fi
11297
 
11298
: ${CONFIG_STATUS=./config.status}
11299
ac_write_fail=0
11300
ac_clean_files_save=$ac_clean_files
11301
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11302 233 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11303 90 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11304 233 julius
as_write_fail=0
11305
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11306 90 jeremybenn
#! $SHELL
11307
# Generated by $as_me.
11308
# Run this file to recreate the current configuration.
11309
# Compiler output produced by configure, useful for debugging
11310
# configure, is in config.log if it exists.
11311
 
11312
debug=false
11313
ac_cs_recheck=false
11314
ac_cs_silent=false
11315 233 julius
 
11316 90 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
11317 233 julius
export SHELL
11318
_ASEOF
11319
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11320
## -------------------- ##
11321
## M4sh Initialization. ##
11322
## -------------------- ##
11323 90 jeremybenn
 
11324
# Be more Bourne compatible
11325
DUALCASE=1; export DUALCASE # for MKS sh
11326 233 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11327 90 jeremybenn
  emulate sh
11328
  NULLCMD=:
11329
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11330
  # is contrary to our usage.  Disable this feature.
11331
  alias -g '${1+"$@"}'='"$@"'
11332
  setopt NO_GLOB_SUBST
11333
else
11334 233 julius
  case `(set -o) 2>/dev/null` in #(
11335
  *posix*) :
11336
    set -o posix ;; #(
11337
  *) :
11338
     ;;
11339 90 jeremybenn
esac
11340
fi
11341
 
11342
 
11343
as_nl='
11344
'
11345
export as_nl
11346
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11347
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11348
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11349
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11350 233 julius
# Prefer a ksh shell builtin over an external printf program on Solaris,
11351
# but without wasting forks for bash or zsh.
11352
if test -z "$BASH_VERSION$ZSH_VERSION" \
11353
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11354
  as_echo='print -r --'
11355
  as_echo_n='print -rn --'
11356
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11357 90 jeremybenn
  as_echo='printf %s\n'
11358
  as_echo_n='printf %s'
11359
else
11360
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11361
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11362
    as_echo_n='/usr/ucb/echo -n'
11363
  else
11364
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11365
    as_echo_n_body='eval
11366
      arg=$1;
11367 233 julius
      case $arg in #(
11368 90 jeremybenn
      *"$as_nl"*)
11369
        expr "X$arg" : "X\\(.*\\)$as_nl";
11370
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11371
      esac;
11372
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11373
    '
11374
    export as_echo_n_body
11375
    as_echo_n='sh -c $as_echo_n_body as_echo'
11376
  fi
11377
  export as_echo_body
11378
  as_echo='sh -c $as_echo_body as_echo'
11379
fi
11380
 
11381
# The user is always right.
11382
if test "${PATH_SEPARATOR+set}" != set; then
11383
  PATH_SEPARATOR=:
11384
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11385
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11386
      PATH_SEPARATOR=';'
11387
  }
11388
fi
11389
 
11390
 
11391
# IFS
11392
# We need space, tab and new line, in precisely that order.  Quoting is
11393
# there to prevent editors from complaining about space-tab.
11394
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11395
# splitting by setting IFS to empty value.)
11396
IFS=" ""        $as_nl"
11397
 
11398
# Find who we are.  Look in the path if we contain no directory separator.
11399 233 julius
case $0 in #((
11400 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
11401
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402
for as_dir in $PATH
11403
do
11404
  IFS=$as_save_IFS
11405
  test -z "$as_dir" && as_dir=.
11406 233 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11407
  done
11408 90 jeremybenn
IFS=$as_save_IFS
11409
 
11410
     ;;
11411
esac
11412
# We did not find ourselves, most probably we were run as `sh COMMAND'
11413
# in which case we are not to be found in the path.
11414
if test "x$as_myself" = x; then
11415
  as_myself=$0
11416
fi
11417
if test ! -f "$as_myself"; then
11418
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11419 233 julius
  exit 1
11420 90 jeremybenn
fi
11421
 
11422 233 julius
# Unset variables that we do not need and which cause bugs (e.g. in
11423
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11424
# suppresses any "Segmentation fault" message there.  '((' could
11425
# trigger a bug in pdksh 5.2.14.
11426
for as_var in BASH_ENV ENV MAIL MAILPATH
11427
do eval test x\${$as_var+set} = xset \
11428
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11429 90 jeremybenn
done
11430
PS1='$ '
11431
PS2='> '
11432
PS4='+ '
11433
 
11434
# NLS nuisances.
11435
LC_ALL=C
11436
export LC_ALL
11437
LANGUAGE=C
11438
export LANGUAGE
11439
 
11440 233 julius
# CDPATH.
11441
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11442
 
11443
 
11444
# as_fn_error ERROR [LINENO LOG_FD]
11445
# ---------------------------------
11446
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11447
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11448
# script with status $?, using 1 if that was 0.
11449
as_fn_error ()
11450
{
11451
  as_status=$?; test $as_status -eq 0 && as_status=1
11452
  if test "$3"; then
11453
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11454
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11455
  fi
11456
  $as_echo "$as_me: error: $1" >&2
11457
  as_fn_exit $as_status
11458
} # as_fn_error
11459
 
11460
 
11461
# as_fn_set_status STATUS
11462
# -----------------------
11463
# Set $? to STATUS, without forking.
11464
as_fn_set_status ()
11465
{
11466
  return $1
11467
} # as_fn_set_status
11468
 
11469
# as_fn_exit STATUS
11470
# -----------------
11471
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11472
as_fn_exit ()
11473
{
11474
  set +e
11475
  as_fn_set_status $1
11476
  exit $1
11477
} # as_fn_exit
11478
 
11479
# as_fn_unset VAR
11480
# ---------------
11481
# Portably unset VAR.
11482
as_fn_unset ()
11483
{
11484
  { eval $1=; unset $1;}
11485
}
11486
as_unset=as_fn_unset
11487
# as_fn_append VAR VALUE
11488
# ----------------------
11489
# Append the text in VALUE to the end of the definition contained in VAR. Take
11490
# advantage of any shell optimizations that allow amortized linear growth over
11491
# repeated appends, instead of the typical quadratic growth present in naive
11492
# implementations.
11493
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11494
  eval 'as_fn_append ()
11495
  {
11496
    eval $1+=\$2
11497
  }'
11498
else
11499
  as_fn_append ()
11500
  {
11501
    eval $1=\$$1\$2
11502
  }
11503
fi # as_fn_append
11504
 
11505
# as_fn_arith ARG...
11506
# ------------------
11507
# Perform arithmetic evaluation on the ARGs, and store the result in the
11508
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11509
# must be portable across $(()) and expr.
11510
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11511
  eval 'as_fn_arith ()
11512
  {
11513
    as_val=$(( $* ))
11514
  }'
11515
else
11516
  as_fn_arith ()
11517
  {
11518
    as_val=`expr "$@" || test $? -eq 1`
11519
  }
11520
fi # as_fn_arith
11521
 
11522
 
11523 90 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
11524
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11525
  as_expr=expr
11526
else
11527
  as_expr=false
11528
fi
11529
 
11530
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11531
  as_basename=basename
11532
else
11533
  as_basename=false
11534
fi
11535
 
11536 233 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11537
  as_dirname=dirname
11538
else
11539
  as_dirname=false
11540
fi
11541 90 jeremybenn
 
11542
as_me=`$as_basename -- "$0" ||
11543
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11544
         X"$0" : 'X\(//\)$' \| \
11545
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11546
$as_echo X/"$0" |
11547
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11548
            s//\1/
11549
            q
11550
          }
11551
          /^X\/\(\/\/\)$/{
11552
            s//\1/
11553
            q
11554
          }
11555
          /^X\/\(\/\).*/{
11556
            s//\1/
11557
            q
11558
          }
11559
          s/.*/./; q'`
11560
 
11561 233 julius
# Avoid depending upon Character Ranges.
11562
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11563
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11564
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11565
as_cr_digits='0123456789'
11566
as_cr_alnum=$as_cr_Letters$as_cr_digits
11567 90 jeremybenn
 
11568
ECHO_C= ECHO_N= ECHO_T=
11569 233 julius
case `echo -n x` in #(((((
11570 90 jeremybenn
-n*)
11571 233 julius
  case `echo 'xy\c'` in
11572 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11573 233 julius
  xy)  ECHO_C='\c';;
11574
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11575
       ECHO_T=' ';;
11576 90 jeremybenn
  esac;;
11577
*)
11578
  ECHO_N='-n';;
11579
esac
11580
 
11581
rm -f conf$$ conf$$.exe conf$$.file
11582
if test -d conf$$.dir; then
11583
  rm -f conf$$.dir/conf$$.file
11584
else
11585
  rm -f conf$$.dir
11586
  mkdir conf$$.dir 2>/dev/null
11587
fi
11588
if (echo >conf$$.file) 2>/dev/null; then
11589
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11590
    as_ln_s='ln -s'
11591
    # ... but there are two gotchas:
11592
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11593
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11594
    # In both cases, we have to default to `cp -p'.
11595
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11596
      as_ln_s='cp -p'
11597
  elif ln conf$$.file conf$$ 2>/dev/null; then
11598
    as_ln_s=ln
11599
  else
11600
    as_ln_s='cp -p'
11601
  fi
11602
else
11603
  as_ln_s='cp -p'
11604
fi
11605
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11606
rmdir conf$$.dir 2>/dev/null
11607
 
11608 233 julius
 
11609
# as_fn_mkdir_p
11610
# -------------
11611
# Create "$as_dir" as a directory, including parents if necessary.
11612
as_fn_mkdir_p ()
11613
{
11614
 
11615
  case $as_dir in #(
11616
  -*) as_dir=./$as_dir;;
11617
  esac
11618
  test -d "$as_dir" || eval $as_mkdir_p || {
11619
    as_dirs=
11620
    while :; do
11621
      case $as_dir in #(
11622
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11623
      *) as_qdir=$as_dir;;
11624
      esac
11625
      as_dirs="'$as_qdir' $as_dirs"
11626
      as_dir=`$as_dirname -- "$as_dir" ||
11627
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11628
         X"$as_dir" : 'X\(//\)[^/]' \| \
11629
         X"$as_dir" : 'X\(//\)$' \| \
11630
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11631
$as_echo X"$as_dir" |
11632
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11633
            s//\1/
11634
            q
11635
          }
11636
          /^X\(\/\/\)[^/].*/{
11637
            s//\1/
11638
            q
11639
          }
11640
          /^X\(\/\/\)$/{
11641
            s//\1/
11642
            q
11643
          }
11644
          /^X\(\/\).*/{
11645
            s//\1/
11646
            q
11647
          }
11648
          s/.*/./; q'`
11649
      test -d "$as_dir" && break
11650
    done
11651
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11652
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11653
 
11654
 
11655
} # as_fn_mkdir_p
11656 90 jeremybenn
if mkdir -p . 2>/dev/null; then
11657 233 julius
  as_mkdir_p='mkdir -p "$as_dir"'
11658 90 jeremybenn
else
11659
  test -d ./-p && rmdir ./-p
11660
  as_mkdir_p=false
11661
fi
11662
 
11663
if test -x / >/dev/null 2>&1; then
11664
  as_test_x='test -x'
11665
else
11666
  if ls -dL / >/dev/null 2>&1; then
11667
    as_ls_L_option=L
11668
  else
11669
    as_ls_L_option=
11670
  fi
11671
  as_test_x='
11672
    eval sh -c '\''
11673
      if test -d "$1"; then
11674
        test -d "$1/.";
11675
      else
11676 233 julius
        case $1 in #(
11677 90 jeremybenn
        -*)set "./$1";;
11678
        esac;
11679 233 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11680 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
11681
    '\'' sh
11682
  '
11683
fi
11684
as_executable_p=$as_test_x
11685
 
11686
# Sed expression to map a string onto a valid CPP name.
11687
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11688
 
11689
# Sed expression to map a string onto a valid variable name.
11690
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11691
 
11692
 
11693
exec 6>&1
11694 233 julius
## ----------------------------------- ##
11695
## Main body of $CONFIG_STATUS script. ##
11696
## ----------------------------------- ##
11697
_ASEOF
11698
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11699 90 jeremybenn
 
11700 233 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11701
# Save the log message, to keep $0 and so on meaningful, and to
11702 90 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
11703
# values after options handling.
11704
ac_log="
11705 230 jeremybenn
This file was extended by or1ksim-testsuite $as_me 2010-08-01, which was
11706 233 julius
generated by GNU Autoconf 2.64.  Invocation command line was
11707 90 jeremybenn
 
11708
  CONFIG_FILES    = $CONFIG_FILES
11709
  CONFIG_HEADERS  = $CONFIG_HEADERS
11710
  CONFIG_LINKS    = $CONFIG_LINKS
11711
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11712
  $ $0 $@
11713
 
11714
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11715
"
11716
 
11717
_ACEOF
11718
 
11719
case $ac_config_files in *"
11720
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11721
esac
11722
 
11723
case $ac_config_headers in *"
11724
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11725
esac
11726
 
11727
 
11728
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11729
# Files that config.status was made for.
11730
config_files="$ac_config_files"
11731
config_headers="$ac_config_headers"
11732
config_commands="$ac_config_commands"
11733
 
11734
_ACEOF
11735
 
11736
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11737
ac_cs_usage="\
11738 233 julius
\`$as_me' instantiates files and other configuration actions
11739
from templates according to the current configuration.  Unless the files
11740
and actions are specified as TAGs, all are instantiated by default.
11741 90 jeremybenn
 
11742 233 julius
Usage: $0 [OPTION]... [TAG]...
11743 90 jeremybenn
 
11744
  -h, --help       print this help, then exit
11745
  -V, --version    print version number and configuration settings, then exit
11746
  -q, --quiet, --silent
11747
                   do not print progress messages
11748
  -d, --debug      don't remove temporary files
11749
      --recheck    update $as_me by reconfiguring in the same conditions
11750
      --file=FILE[:TEMPLATE]
11751
                   instantiate the configuration file FILE
11752
      --header=FILE[:TEMPLATE]
11753
                   instantiate the configuration header FILE
11754
 
11755
Configuration files:
11756
$config_files
11757
 
11758
Configuration headers:
11759
$config_headers
11760
 
11761
Configuration commands:
11762
$config_commands
11763
 
11764 233 julius
Report bugs to ."
11765 90 jeremybenn
 
11766
_ACEOF
11767
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11768
ac_cs_version="\\
11769 230 jeremybenn
or1ksim-testsuite config.status 2010-08-01
11770 233 julius
configured by $0, generated by GNU Autoconf 2.64,
11771 121 jeremybenn
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11772 90 jeremybenn
 
11773 233 julius
Copyright (C) 2009 Free Software Foundation, Inc.
11774 90 jeremybenn
This config.status script is free software; the Free Software Foundation
11775
gives unlimited permission to copy, distribute and modify it."
11776
 
11777
ac_pwd='$ac_pwd'
11778
srcdir='$srcdir'
11779
INSTALL='$INSTALL'
11780
MKDIR_P='$MKDIR_P'
11781
AWK='$AWK'
11782
test -n "\$AWK" || AWK=awk
11783
_ACEOF
11784
 
11785
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11786
# The default lists apply if the user does not specify any file.
11787
ac_need_defaults=:
11788
while test $# != 0
11789
do
11790
  case $1 in
11791
  --*=*)
11792
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11793
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11794
    ac_shift=:
11795
    ;;
11796
  *)
11797
    ac_option=$1
11798
    ac_optarg=$2
11799
    ac_shift=shift
11800
    ;;
11801
  esac
11802
 
11803
  case $ac_option in
11804
  # Handling of the options.
11805
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11806
    ac_cs_recheck=: ;;
11807
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11808
    $as_echo "$ac_cs_version"; exit ;;
11809
  --debug | --debu | --deb | --de | --d | -d )
11810
    debug=: ;;
11811
  --file | --fil | --fi | --f )
11812
    $ac_shift
11813
    case $ac_optarg in
11814
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11815
    esac
11816 233 julius
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11817 90 jeremybenn
    ac_need_defaults=false;;
11818
  --header | --heade | --head | --hea )
11819
    $ac_shift
11820
    case $ac_optarg in
11821
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11822
    esac
11823 233 julius
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11824 90 jeremybenn
    ac_need_defaults=false;;
11825
  --he | --h)
11826
    # Conflict between --help and --header
11827 233 julius
    as_fn_error "ambiguous option: \`$1'
11828
Try \`$0 --help' for more information.";;
11829 90 jeremybenn
  --help | --hel | -h )
11830
    $as_echo "$ac_cs_usage"; exit ;;
11831
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11832
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11833
    ac_cs_silent=: ;;
11834
 
11835
  # This is an error.
11836 233 julius
  -*) as_fn_error "unrecognized option: \`$1'
11837
Try \`$0 --help' for more information." ;;
11838 90 jeremybenn
 
11839 233 julius
  *) as_fn_append ac_config_targets " $1"
11840 90 jeremybenn
     ac_need_defaults=false ;;
11841
 
11842
  esac
11843
  shift
11844
done
11845
 
11846
ac_configure_extra_args=
11847
 
11848
if $ac_cs_silent; then
11849
  exec 6>/dev/null
11850
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11851
fi
11852
 
11853
_ACEOF
11854
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11855
if \$ac_cs_recheck; then
11856
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11857
  shift
11858
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11859
  CONFIG_SHELL='$SHELL'
11860
  export CONFIG_SHELL
11861
  exec "\$@"
11862
fi
11863
 
11864
_ACEOF
11865
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11866
exec 5>>config.log
11867
{
11868
  echo
11869
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11870
## Running $as_me. ##
11871
_ASBOX
11872
  $as_echo "$ac_log"
11873
} >&5
11874
 
11875
_ACEOF
11876
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11877
#
11878
# INIT-COMMANDS
11879
#
11880
 
11881
 
11882
# The HP-UX ksh and POSIX shell print the target directory to stdout
11883
# if CDPATH is set.
11884
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11885
 
11886
sed_quote_subst='$sed_quote_subst'
11887
double_quote_subst='$double_quote_subst'
11888
delay_variable_subst='$delay_variable_subst'
11889
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11890
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11891
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11892
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11893
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11894
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11895
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11896
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11897
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11898
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11899
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11900
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11901
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11902
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11903
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11904
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11905
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11906
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11907
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11908
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11909
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11910
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11911
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11912
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11913
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11914
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11915
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11916
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11917
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11918
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11919
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11920
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11921
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11922
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11923
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11924
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11925
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11926
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11927
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11928
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11929
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11930
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11931
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11932
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11933
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11934
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11935
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11936
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11937
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11938
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11939
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11940
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11941
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11942
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11943
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11944
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11945
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11946
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11947
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11948
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11949
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11950
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11951
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11952
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11953
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11954
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11955
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11956
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11957
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11958
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11959
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11960
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11961
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11962
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11963
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11964
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11965
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11966
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11967
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11968
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11969
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11970
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11971
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11972
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11973
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11974
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11975
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11976
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11977
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11978
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11979
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11980
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11981
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11982
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11983
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11984
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11985
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11986
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11987
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11988
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11989
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11990
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11991
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11992
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11993
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11994
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11995
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11996
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11997
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11998
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11999
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12000
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12001
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12002
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12003
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12004
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12005
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12006
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12007
 
12008
LTCC='$LTCC'
12009
LTCFLAGS='$LTCFLAGS'
12010
compiler='$compiler_DEFAULT'
12011
 
12012
# Quote evaled strings.
12013
for var in SED \
12014
GREP \
12015
EGREP \
12016
FGREP \
12017
LD \
12018
NM \
12019
LN_S \
12020
lt_SP2NL \
12021
lt_NL2SP \
12022
reload_flag \
12023
OBJDUMP \
12024
deplibs_check_method \
12025
file_magic_cmd \
12026
AR \
12027
AR_FLAGS \
12028
STRIP \
12029
RANLIB \
12030
CC \
12031
CFLAGS \
12032
compiler \
12033
lt_cv_sys_global_symbol_pipe \
12034
lt_cv_sys_global_symbol_to_cdecl \
12035
lt_cv_sys_global_symbol_to_c_name_address \
12036
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12037
SHELL \
12038
ECHO \
12039
lt_prog_compiler_no_builtin_flag \
12040
lt_prog_compiler_wl \
12041
lt_prog_compiler_pic \
12042
lt_prog_compiler_static \
12043
lt_cv_prog_compiler_c_o \
12044
need_locks \
12045
DSYMUTIL \
12046
NMEDIT \
12047
LIPO \
12048
OTOOL \
12049
OTOOL64 \
12050
shrext_cmds \
12051
export_dynamic_flag_spec \
12052
whole_archive_flag_spec \
12053
compiler_needs_object \
12054
with_gnu_ld \
12055
allow_undefined_flag \
12056
no_undefined_flag \
12057
hardcode_libdir_flag_spec \
12058
hardcode_libdir_flag_spec_ld \
12059
hardcode_libdir_separator \
12060
fix_srcfile_path \
12061
exclude_expsyms \
12062
include_expsyms \
12063
file_list_spec \
12064
variables_saved_for_relink \
12065
libname_spec \
12066
library_names_spec \
12067
soname_spec \
12068
finish_eval \
12069
old_striplib \
12070
striplib; do
12071
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12072
    *[\\\\\\\`\\"\\\$]*)
12073
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12074
      ;;
12075
    *)
12076
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12077
      ;;
12078
    esac
12079
done
12080
 
12081
# Double-quote double-evaled strings.
12082
for var in reload_cmds \
12083
old_postinstall_cmds \
12084
old_postuninstall_cmds \
12085
old_archive_cmds \
12086
extract_expsyms_cmds \
12087
old_archive_from_new_cmds \
12088
old_archive_from_expsyms_cmds \
12089
archive_cmds \
12090
archive_expsym_cmds \
12091
module_cmds \
12092
module_expsym_cmds \
12093
export_symbols_cmds \
12094
prelink_cmds \
12095
postinstall_cmds \
12096
postuninstall_cmds \
12097
finish_cmds \
12098
sys_lib_search_path_spec \
12099
sys_lib_dlsearch_path_spec; do
12100
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12101
    *[\\\\\\\`\\"\\\$]*)
12102
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12103
      ;;
12104
    *)
12105
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12106
      ;;
12107
    esac
12108
done
12109
 
12110
# Fix-up fallback echo if it was mangled by the above quoting rules.
12111
case \$lt_ECHO in
12112
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12113
  ;;
12114
esac
12115
 
12116
ac_aux_dir='$ac_aux_dir'
12117
xsi_shell='$xsi_shell'
12118
lt_shell_append='$lt_shell_append'
12119
 
12120
# See if we are running on zsh, and set the options which allow our
12121
# commands through without removal of \ escapes INIT.
12122
if test -n "\${ZSH_VERSION+set}" ; then
12123
   setopt NO_GLOB_SUBST
12124
fi
12125
 
12126
 
12127
    PACKAGE='$PACKAGE'
12128
    VERSION='$VERSION'
12129
    TIMESTAMP='$TIMESTAMP'
12130
    RM='$RM'
12131
    ofile='$ofile'
12132
 
12133
 
12134
 
12135
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12136
 
12137
_ACEOF
12138
 
12139
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140
 
12141
# Handling of arguments.
12142
for ac_config_target in $ac_config_targets
12143
do
12144
  case $ac_config_target in
12145
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12146
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12147
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12148
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12149
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
12150
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
12151
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
12152
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
12153
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
12154
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
12155
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
12156
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
12157
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
12158
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
12159
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
12160
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
12161
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
12162
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
12163 104 jeremybenn
    "fp/Makefile") CONFIG_FILES="$CONFIG_FILES fp/Makefile" ;;
12164 233 julius
    "testfloat/Makefile") CONFIG_FILES="$CONFIG_FILES testfloat/Makefile" ;;
12165 90 jeremybenn
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
12166
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
12167
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
12168 93 jeremybenn
    "int-logger/Makefile") CONFIG_FILES="$CONFIG_FILES int-logger/Makefile" ;;
12169 90 jeremybenn
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
12170
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
12171
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
12172
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
12173
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
12174
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
12175
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
12176
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
12177
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
12178
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
12179
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
12180
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
12181
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
12182
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
12183
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
12184
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
12185 93 jeremybenn
    "upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES upcalls/Makefile" ;;
12186 90 jeremybenn
 
12187 233 julius
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12188 90 jeremybenn
  esac
12189
done
12190
 
12191
 
12192
# If the user did not use the arguments to specify the items to instantiate,
12193
# then the envvar interface is used.  Set only those that are not.
12194
# We use the long form for the default assignment because of an extremely
12195
# bizarre bug on SunOS 4.1.3.
12196
if $ac_need_defaults; then
12197
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12198
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12199
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12200
fi
12201
 
12202
# Have a temporary directory for convenience.  Make it in the build tree
12203
# simply because there is no reason against having it here, and in addition,
12204
# creating and moving files from /tmp can sometimes cause problems.
12205
# Hook for its removal unless debugging.
12206
# Note that there is a small window in which the directory will not be cleaned:
12207
# after its creation but before its name has been assigned to `$tmp'.
12208
$debug ||
12209
{
12210
  tmp=
12211
  trap 'exit_status=$?
12212
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12213
' 0
12214 233 julius
  trap 'as_fn_exit 1' 1 2 13 15
12215 90 jeremybenn
}
12216
# Create a (secure) tmp directory for tmp files.
12217
 
12218
{
12219
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12220
  test -n "$tmp" && test -d "$tmp"
12221
}  ||
12222
{
12223
  tmp=./conf$$-$RANDOM
12224
  (umask 077 && mkdir "$tmp")
12225 233 julius
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12226 90 jeremybenn
 
12227
# Set up the scripts for CONFIG_FILES section.
12228
# No need to generate them if there are no CONFIG_FILES.
12229
# This happens for instance with `./config.status config.h'.
12230
if test -n "$CONFIG_FILES"; then
12231
 
12232
 
12233 233 julius
ac_cr=`echo X | tr X '\015'`
12234
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12235
# But we know of no other shell where ac_cr would be empty at this
12236
# point, so we can use a bashism as a fallback.
12237
if test "x$ac_cr" = x; then
12238
  eval ac_cr=\$\'\\r\'
12239
fi
12240 90 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12241
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12242 233 julius
  ac_cs_awk_cr='\r'
12243 90 jeremybenn
else
12244
  ac_cs_awk_cr=$ac_cr
12245
fi
12246
 
12247
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12248
_ACEOF
12249
 
12250
 
12251
{
12252
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12253
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12254
  echo "_ACEOF"
12255
} >conf$$subs.sh ||
12256 233 julius
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12257 90 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12258
ac_delim='%!_!# '
12259
for ac_last_try in false false false false false :; do
12260
  . ./conf$$subs.sh ||
12261 233 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12262 90 jeremybenn
 
12263
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12264
  if test $ac_delim_n = $ac_delim_num; then
12265
    break
12266
  elif $ac_last_try; then
12267 233 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12268 90 jeremybenn
  else
12269
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12270
  fi
12271
done
12272
rm -f conf$$subs.sh
12273
 
12274
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12275
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12276
_ACEOF
12277
sed -n '
12278
h
12279
s/^/S["/; s/!.*/"]=/
12280
p
12281
g
12282
s/^[^!]*!//
12283
:repl
12284
t repl
12285
s/'"$ac_delim"'$//
12286
t delim
12287
:nl
12288
h
12289 121 jeremybenn
s/\(.\{148\}\).*/\1/
12290 90 jeremybenn
t more1
12291
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12292
p
12293
n
12294
b repl
12295
:more1
12296
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12297
p
12298
g
12299
s/.\{148\}//
12300
t nl
12301
:delim
12302
h
12303 121 jeremybenn
s/\(.\{148\}\).*/\1/
12304 90 jeremybenn
t more2
12305
s/["\\]/\\&/g; s/^/"/; s/$/"/
12306
p
12307
b
12308
:more2
12309
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12310
p
12311
g
12312
s/.\{148\}//
12313
t delim
12314
' 
12315
/^[^""]/{
12316
  N
12317
  s/\n//
12318
}
12319
' >>$CONFIG_STATUS || ac_write_fail=1
12320
rm -f conf$$subs.awk
12321
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12322
_ACAWK
12323
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12324
  for (key in S) S_is_set[key] = 1
12325
  FS = ""
12326
 
12327
}
12328
{
12329
  line = $ 0
12330
  nfields = split(line, field, "@")
12331
  substed = 0
12332
  len = length(field[1])
12333
  for (i = 2; i < nfields; i++) {
12334
    key = field[i]
12335
    keylen = length(key)
12336
    if (S_is_set[key]) {
12337
      value = S[key]
12338
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12339
      len += length(value) + length(field[++i])
12340
      substed = 1
12341
    } else
12342
      len += 1 + keylen
12343
  }
12344
 
12345
  print line
12346
}
12347
 
12348
_ACAWK
12349
_ACEOF
12350
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12351
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12352
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12353
else
12354
  cat
12355
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12356 233 julius
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12357 90 jeremybenn
_ACEOF
12358
 
12359
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12360
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12361
# trailing colons and then remove the whole line if VPATH becomes empty
12362
# (actually we leave an empty line to preserve line numbers).
12363
if test "x$srcdir" = x.; then
12364
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12365
s/:*\$(srcdir):*/:/
12366
s/:*\${srcdir}:*/:/
12367
s/:*@srcdir@:*/:/
12368
s/^\([^=]*=[     ]*\):*/\1/
12369
s/:*$//
12370
s/^[^=]*=[       ]*$//
12371
}'
12372
fi
12373
 
12374
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12375
fi # test -n "$CONFIG_FILES"
12376
 
12377
# Set up the scripts for CONFIG_HEADERS section.
12378
# No need to generate them if there are no CONFIG_HEADERS.
12379
# This happens for instance with `./config.status Makefile'.
12380
if test -n "$CONFIG_HEADERS"; then
12381
cat >"$tmp/defines.awk" <<\_ACAWK ||
12382
BEGIN {
12383
_ACEOF
12384
 
12385
# Transform confdefs.h into an awk script `defines.awk', embedded as
12386
# here-document in config.status, that substitutes the proper values into
12387
# config.h.in to produce config.h.
12388
 
12389
# Create a delimiter string that does not exist in confdefs.h, to ease
12390
# handling of long lines.
12391
ac_delim='%!_!# '
12392
for ac_last_try in false false :; do
12393
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12394
  if test -z "$ac_t"; then
12395
    break
12396
  elif $ac_last_try; then
12397 233 julius
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12398 90 jeremybenn
  else
12399
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12400
  fi
12401
done
12402
 
12403
# For the awk script, D is an array of macro values keyed by name,
12404
# likewise P contains macro parameters if any.  Preserve backslash
12405
# newline sequences.
12406
 
12407
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12408
sed -n '
12409
s/.\{148\}/&'"$ac_delim"'/g
12410
t rset
12411
:rset
12412
s/^[     ]*#[    ]*define[       ][      ]*/ /
12413
t def
12414
d
12415
:def
12416
s/\\$//
12417
t bsnl
12418
s/["\\]/\\&/g
12419
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12420
D["\1"]=" \3"/p
12421
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12422
d
12423
:bsnl
12424
s/["\\]/\\&/g
12425
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12426
D["\1"]=" \3\\\\\\n"\\/p
12427
t cont
12428
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12429
t cont
12430
d
12431
:cont
12432
n
12433
s/.\{148\}/&'"$ac_delim"'/g
12434
t clear
12435
:clear
12436
s/\\$//
12437
t bsnlc
12438
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12439
d
12440
:bsnlc
12441
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12442
b cont
12443
' 
12444
s/'"$ac_delim"'/"\\\
12445
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12446
 
12447
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12448
  for (key in D) D_is_set[key] = 1
12449
  FS = ""
12450
}
12451
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12452
  line = \$ 0
12453
  split(line, arg, " ")
12454
  if (arg[1] == "#") {
12455
    defundef = arg[2]
12456
    mac1 = arg[3]
12457
  } else {
12458
    defundef = substr(arg[1], 2)
12459
    mac1 = arg[2]
12460
  }
12461
  split(mac1, mac2, "(") #)
12462
  macro = mac2[1]
12463
  prefix = substr(line, 1, index(line, defundef) - 1)
12464
  if (D_is_set[macro]) {
12465
    # Preserve the white space surrounding the "#".
12466
    print prefix "define", macro P[macro] D[macro]
12467
    next
12468
  } else {
12469
    # Replace #undef with comments.  This is necessary, for example,
12470
    # in the case of _POSIX_SOURCE, which is predefined and required
12471
    # on some systems where configure will not decide to define it.
12472
    if (defundef == "undef") {
12473
      print "/*", prefix defundef, macro, "*/"
12474
      next
12475
    }
12476
  }
12477
}
12478
{ print }
12479
_ACAWK
12480
_ACEOF
12481
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12482 233 julius
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12483 90 jeremybenn
fi # test -n "$CONFIG_HEADERS"
12484
 
12485
 
12486
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12487
shift
12488
for ac_tag
12489
do
12490
  case $ac_tag in
12491
  :[FHLC]) ac_mode=$ac_tag; continue;;
12492
  esac
12493
  case $ac_mode$ac_tag in
12494
  :[FHL]*:*);;
12495 233 julius
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12496 90 jeremybenn
  :[FH]-) ac_tag=-:-;;
12497
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12498
  esac
12499
  ac_save_IFS=$IFS
12500
  IFS=:
12501
  set x $ac_tag
12502
  IFS=$ac_save_IFS
12503
  shift
12504
  ac_file=$1
12505
  shift
12506
 
12507
  case $ac_mode in
12508
  :L) ac_source=$1;;
12509
  :[FH])
12510
    ac_file_inputs=
12511
    for ac_f
12512
    do
12513
      case $ac_f in
12514
      -) ac_f="$tmp/stdin";;
12515
      *) # Look for the file first in the build tree, then in the source tree
12516
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12517
         # because $ac_f cannot contain `:'.
12518
         test -f "$ac_f" ||
12519
           case $ac_f in
12520
           [\\/$]*) false;;
12521
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12522
           esac ||
12523 233 julius
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12524 90 jeremybenn
      esac
12525
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12526 233 julius
      as_fn_append ac_file_inputs " '$ac_f'"
12527 90 jeremybenn
    done
12528
 
12529
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12530
    # use $as_me), people would be surprised to read:
12531
    #    /* config.h.  Generated by config.status.  */
12532
    configure_input='Generated from '`
12533
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12534
        `' by configure.'
12535
    if test x"$ac_file" != x-; then
12536
      configure_input="$ac_file.  $configure_input"
12537 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12538 90 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
12539
    fi
12540
    # Neutralize special characters interpreted by sed in replacement strings.
12541
    case $configure_input in #(
12542
    *\&* | *\|* | *\\* )
12543
       ac_sed_conf_input=`$as_echo "$configure_input" |
12544
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12545
    *) ac_sed_conf_input=$configure_input;;
12546
    esac
12547
 
12548
    case $ac_tag in
12549
    *:-:* | *:-) cat >"$tmp/stdin" \
12550 233 julius
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12551 90 jeremybenn
    esac
12552
    ;;
12553
  esac
12554
 
12555
  ac_dir=`$as_dirname -- "$ac_file" ||
12556
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12557
         X"$ac_file" : 'X\(//\)[^/]' \| \
12558
         X"$ac_file" : 'X\(//\)$' \| \
12559
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12560
$as_echo X"$ac_file" |
12561
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12562
            s//\1/
12563
            q
12564
          }
12565
          /^X\(\/\/\)[^/].*/{
12566
            s//\1/
12567
            q
12568
          }
12569
          /^X\(\/\/\)$/{
12570
            s//\1/
12571
            q
12572
          }
12573
          /^X\(\/\).*/{
12574
            s//\1/
12575
            q
12576
          }
12577
          s/.*/./; q'`
12578 233 julius
  as_dir="$ac_dir"; as_fn_mkdir_p
12579 90 jeremybenn
  ac_builddir=.
12580
 
12581
case "$ac_dir" in
12582
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12583
*)
12584
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12585
  # A ".." for each directory in $ac_dir_suffix.
12586
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12587
  case $ac_top_builddir_sub in
12588
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12589
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12590
  esac ;;
12591
esac
12592
ac_abs_top_builddir=$ac_pwd
12593
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12594
# for backward compatibility:
12595
ac_top_builddir=$ac_top_build_prefix
12596
 
12597
case $srcdir in
12598
  .)  # We are building in place.
12599
    ac_srcdir=.
12600
    ac_top_srcdir=$ac_top_builddir_sub
12601
    ac_abs_top_srcdir=$ac_pwd ;;
12602
  [\\/]* | ?:[\\/]* )  # Absolute name.
12603
    ac_srcdir=$srcdir$ac_dir_suffix;
12604
    ac_top_srcdir=$srcdir
12605
    ac_abs_top_srcdir=$srcdir ;;
12606
  *) # Relative name.
12607
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12608
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12609
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12610
esac
12611
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12612
 
12613
 
12614
  case $ac_mode in
12615
  :F)
12616
  #
12617
  # CONFIG_FILE
12618
  #
12619
 
12620
  case $INSTALL in
12621
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12622
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12623
  esac
12624
  ac_MKDIR_P=$MKDIR_P
12625
  case $MKDIR_P in
12626
  [\\/$]* | ?:[\\/]* ) ;;
12627
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12628
  esac
12629
_ACEOF
12630
 
12631
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12632
# If the template does not know about datarootdir, expand it.
12633
# FIXME: This hack should be removed a few years after 2.60.
12634
ac_datarootdir_hack=; ac_datarootdir_seen=
12635
ac_sed_dataroot='
12636
/datarootdir/ {
12637
  p
12638
  q
12639
}
12640
/@datadir@/p
12641
/@docdir@/p
12642
/@infodir@/p
12643
/@localedir@/p
12644 233 julius
/@mandir@/p'
12645 90 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12646
*datarootdir*) ac_datarootdir_seen=yes;;
12647
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12648 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12649 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12650
_ACEOF
12651
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12652
  ac_datarootdir_hack='
12653
  s&@datadir@&$datadir&g
12654
  s&@docdir@&$docdir&g
12655
  s&@infodir@&$infodir&g
12656
  s&@localedir@&$localedir&g
12657
  s&@mandir@&$mandir&g
12658 233 julius
  s&\\\${datarootdir}&$datarootdir&g' ;;
12659 90 jeremybenn
esac
12660
_ACEOF
12661
 
12662
# Neutralize VPATH when `$srcdir' = `.'.
12663
# Shell code in configure.ac might set extrasub.
12664
# FIXME: do we really want to maintain this feature?
12665
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12666
ac_sed_extra="$ac_vpsub
12667
$extrasub
12668
_ACEOF
12669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670
:t
12671
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12672
s|@configure_input@|$ac_sed_conf_input|;t t
12673
s&@top_builddir@&$ac_top_builddir_sub&;t t
12674
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12675
s&@srcdir@&$ac_srcdir&;t t
12676
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12677
s&@top_srcdir@&$ac_top_srcdir&;t t
12678
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12679
s&@builddir@&$ac_builddir&;t t
12680
s&@abs_builddir@&$ac_abs_builddir&;t t
12681
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12682
s&@INSTALL@&$ac_INSTALL&;t t
12683
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12684
$ac_datarootdir_hack
12685
"
12686
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12687 233 julius
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12688 90 jeremybenn
 
12689
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12690
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12691
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12692 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12693 90 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
12694
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12695
which seems to be undefined.  Please make sure it is defined." >&2;}
12696
 
12697
  rm -f "$tmp/stdin"
12698
  case $ac_file in
12699
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12700
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12701
  esac \
12702 233 julius
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12703 90 jeremybenn
 ;;
12704
  :H)
12705
  #
12706
  # CONFIG_HEADER
12707
  #
12708
  if test x"$ac_file" != x-; then
12709
    {
12710
      $as_echo "/* $configure_input  */" \
12711
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12712
    } >"$tmp/config.h" \
12713 233 julius
      || as_fn_error "could not create $ac_file" "$LINENO" 5
12714 90 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12715 233 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12716 90 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12717
    else
12718
      rm -f "$ac_file"
12719
      mv "$tmp/config.h" "$ac_file" \
12720 233 julius
        || as_fn_error "could not create $ac_file" "$LINENO" 5
12721 90 jeremybenn
    fi
12722
  else
12723
    $as_echo "/* $configure_input  */" \
12724
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12725 233 julius
      || as_fn_error "could not create -" "$LINENO" 5
12726 90 jeremybenn
  fi
12727
# Compute "$ac_file"'s index in $config_headers.
12728
_am_arg="$ac_file"
12729
_am_stamp_count=1
12730
for _am_header in $config_headers :; do
12731
  case $_am_header in
12732
    $_am_arg | $_am_arg:* )
12733
      break ;;
12734
    * )
12735
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12736
  esac
12737
done
12738
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12739
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12740
         X"$_am_arg" : 'X\(//\)[^/]' \| \
12741
         X"$_am_arg" : 'X\(//\)$' \| \
12742
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12743
$as_echo X"$_am_arg" |
12744
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12745
            s//\1/
12746
            q
12747
          }
12748
          /^X\(\/\/\)[^/].*/{
12749
            s//\1/
12750
            q
12751
          }
12752
          /^X\(\/\/\)$/{
12753
            s//\1/
12754
            q
12755
          }
12756
          /^X\(\/\).*/{
12757
            s//\1/
12758
            q
12759
          }
12760
          s/.*/./; q'`/stamp-h$_am_stamp_count
12761
 ;;
12762
 
12763 233 julius
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12764 90 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
12765
 ;;
12766
  esac
12767
 
12768
 
12769
  case $ac_file$ac_mode in
12770
    "libtool":C)
12771
 
12772
    # See if we are running on zsh, and set the options which allow our
12773
    # commands through without removal of \ escapes.
12774
    if test -n "${ZSH_VERSION+set}" ; then
12775
      setopt NO_GLOB_SUBST
12776
    fi
12777
 
12778
    cfgfile="${ofile}T"
12779
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12780
    $RM "$cfgfile"
12781
 
12782
    cat <<_LT_EOF >> "$cfgfile"
12783
#! $SHELL
12784
 
12785
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12786
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12787
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12788
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12789
#
12790
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12791
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12792
#   Written by Gordon Matzigkeit, 1996
12793
#
12794
#   This file is part of GNU Libtool.
12795
#
12796
# GNU Libtool is free software; you can redistribute it and/or
12797
# modify it under the terms of the GNU General Public License as
12798
# published by the Free Software Foundation; either version 2 of
12799
# the License, or (at your option) any later version.
12800
#
12801
# As a special exception to the GNU General Public License,
12802
# if you distribute this file as part of a program or library that
12803
# is built using GNU Libtool, you may include this file under the
12804
# same distribution terms that you use for the rest of that program.
12805
#
12806
# GNU Libtool is distributed in the hope that it will be useful,
12807
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12808
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12809
# GNU General Public License for more details.
12810
#
12811
# You should have received a copy of the GNU General Public License
12812
# along with GNU Libtool; see the file COPYING.  If not, a copy
12813
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12814
# obtained by writing to the Free Software Foundation, Inc.,
12815
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12816
 
12817
 
12818
# The names of the tagged configurations supported by this script.
12819
available_tags=""
12820
 
12821
# ### BEGIN LIBTOOL CONFIG
12822
 
12823
# Which release of libtool.m4 was used?
12824
macro_version=$macro_version
12825
macro_revision=$macro_revision
12826
 
12827
# Whether or not to build shared libraries.
12828
build_libtool_libs=$enable_shared
12829
 
12830
# Whether or not to build static libraries.
12831
build_old_libs=$enable_static
12832
 
12833
# What type of objects to build.
12834
pic_mode=$pic_mode
12835
 
12836
# Whether or not to optimize for fast installation.
12837
fast_install=$enable_fast_install
12838
 
12839
# The host system.
12840
host_alias=$host_alias
12841
host=$host
12842
host_os=$host_os
12843
 
12844
# The build system.
12845
build_alias=$build_alias
12846
build=$build
12847
build_os=$build_os
12848
 
12849
# A sed program that does not truncate output.
12850
SED=$lt_SED
12851
 
12852
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12853
Xsed="\$SED -e 1s/^X//"
12854
 
12855
# A grep program that handles long lines.
12856
GREP=$lt_GREP
12857
 
12858
# An ERE matcher.
12859
EGREP=$lt_EGREP
12860
 
12861
# A literal string matcher.
12862
FGREP=$lt_FGREP
12863
 
12864
# A BSD- or MS-compatible name lister.
12865
NM=$lt_NM
12866
 
12867
# Whether we need soft or hard links.
12868
LN_S=$lt_LN_S
12869
 
12870
# What is the maximum length of a command?
12871
max_cmd_len=$max_cmd_len
12872
 
12873
# Object file suffix (normally "o").
12874
objext=$ac_objext
12875
 
12876
# Executable file suffix (normally "").
12877
exeext=$exeext
12878
 
12879
# whether the shell understands "unset".
12880
lt_unset=$lt_unset
12881
 
12882
# turn spaces into newlines.
12883
SP2NL=$lt_lt_SP2NL
12884
 
12885
# turn newlines into spaces.
12886
NL2SP=$lt_lt_NL2SP
12887
 
12888
# How to create reloadable object files.
12889
reload_flag=$lt_reload_flag
12890
reload_cmds=$lt_reload_cmds
12891
 
12892
# An object symbol dumper.
12893
OBJDUMP=$lt_OBJDUMP
12894
 
12895
# Method to check whether dependent libraries are shared objects.
12896
deplibs_check_method=$lt_deplibs_check_method
12897
 
12898
# Command to use when deplibs_check_method == "file_magic".
12899
file_magic_cmd=$lt_file_magic_cmd
12900
 
12901
# The archiver.
12902
AR=$lt_AR
12903
AR_FLAGS=$lt_AR_FLAGS
12904
 
12905
# A symbol stripping program.
12906
STRIP=$lt_STRIP
12907
 
12908
# Commands used to install an old-style archive.
12909
RANLIB=$lt_RANLIB
12910
old_postinstall_cmds=$lt_old_postinstall_cmds
12911
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12912
 
12913
# A C compiler.
12914
LTCC=$lt_CC
12915
 
12916
# LTCC compiler flags.
12917
LTCFLAGS=$lt_CFLAGS
12918
 
12919
# Take the output of nm and produce a listing of raw symbols and C names.
12920
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12921
 
12922
# Transform the output of nm in a proper C declaration.
12923
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12924
 
12925
# Transform the output of nm in a C name address pair.
12926
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12927
 
12928
# Transform the output of nm in a C name address pair when lib prefix is needed.
12929
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12930
 
12931
# The name of the directory that contains temporary libtool files.
12932
objdir=$objdir
12933
 
12934
# Shell to use when invoking shell scripts.
12935
SHELL=$lt_SHELL
12936
 
12937
# An echo program that does not interpret backslashes.
12938
ECHO=$lt_ECHO
12939
 
12940
# Used to examine libraries when file_magic_cmd begins with "file".
12941
MAGIC_CMD=$MAGIC_CMD
12942
 
12943
# Must we lock files when doing compilation?
12944
need_locks=$lt_need_locks
12945
 
12946
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12947
DSYMUTIL=$lt_DSYMUTIL
12948
 
12949
# Tool to change global to local symbols on Mac OS X.
12950
NMEDIT=$lt_NMEDIT
12951
 
12952
# Tool to manipulate fat objects and archives on Mac OS X.
12953
LIPO=$lt_LIPO
12954
 
12955
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12956
OTOOL=$lt_OTOOL
12957
 
12958
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12959
OTOOL64=$lt_OTOOL64
12960
 
12961
# Old archive suffix (normally "a").
12962
libext=$libext
12963
 
12964
# Shared library suffix (normally ".so").
12965
shrext_cmds=$lt_shrext_cmds
12966
 
12967
# The commands to extract the exported symbol list from a shared archive.
12968
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12969
 
12970
# Variables whose values should be saved in libtool wrapper scripts and
12971
# restored at link time.
12972
variables_saved_for_relink=$lt_variables_saved_for_relink
12973
 
12974
# Do we need the "lib" prefix for modules?
12975
need_lib_prefix=$need_lib_prefix
12976
 
12977
# Do we need a version for libraries?
12978
need_version=$need_version
12979
 
12980
# Library versioning type.
12981
version_type=$version_type
12982
 
12983
# Shared library runtime path variable.
12984
runpath_var=$runpath_var
12985
 
12986
# Shared library path variable.
12987
shlibpath_var=$shlibpath_var
12988
 
12989
# Is shlibpath searched before the hard-coded library search path?
12990
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12991
 
12992
# Format of library name prefix.
12993
libname_spec=$lt_libname_spec
12994
 
12995
# List of archive names.  First name is the real one, the rest are links.
12996
# The last name is the one that the linker finds with -lNAME
12997
library_names_spec=$lt_library_names_spec
12998
 
12999
# The coded name of the library, if different from the real name.
13000
soname_spec=$lt_soname_spec
13001
 
13002
# Command to use after installation of a shared archive.
13003
postinstall_cmds=$lt_postinstall_cmds
13004
 
13005
# Command to use after uninstallation of a shared archive.
13006
postuninstall_cmds=$lt_postuninstall_cmds
13007
 
13008
# Commands used to finish a libtool library installation in a directory.
13009
finish_cmds=$lt_finish_cmds
13010
 
13011
# As "finish_cmds", except a single script fragment to be evaled but
13012
# not shown.
13013
finish_eval=$lt_finish_eval
13014
 
13015
# Whether we should hardcode library paths into libraries.
13016
hardcode_into_libs=$hardcode_into_libs
13017
 
13018
# Compile-time system search path for libraries.
13019
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13020
 
13021
# Run-time system search path for libraries.
13022
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13023
 
13024
# Whether dlopen is supported.
13025
dlopen_support=$enable_dlopen
13026
 
13027
# Whether dlopen of programs is supported.
13028
dlopen_self=$enable_dlopen_self
13029
 
13030
# Whether dlopen of statically linked programs is supported.
13031
dlopen_self_static=$enable_dlopen_self_static
13032
 
13033
# Commands to strip libraries.
13034
old_striplib=$lt_old_striplib
13035
striplib=$lt_striplib
13036
 
13037
 
13038
# The linker used to build libraries.
13039
LD=$lt_LD
13040
 
13041
# Commands used to build an old-style archive.
13042
old_archive_cmds=$lt_old_archive_cmds
13043
 
13044
# A language specific compiler.
13045
CC=$lt_compiler
13046
 
13047
# Is the compiler the GNU compiler?
13048
with_gcc=$GCC
13049
 
13050
# Compiler flag to turn off builtin functions.
13051
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13052
 
13053
# How to pass a linker flag through the compiler.
13054
wl=$lt_lt_prog_compiler_wl
13055
 
13056
# Additional compiler flags for building library objects.
13057
pic_flag=$lt_lt_prog_compiler_pic
13058
 
13059
# Compiler flag to prevent dynamic linking.
13060
link_static_flag=$lt_lt_prog_compiler_static
13061
 
13062
# Does compiler simultaneously support -c and -o options?
13063
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13064
 
13065
# Whether or not to add -lc for building shared libraries.
13066
build_libtool_need_lc=$archive_cmds_need_lc
13067
 
13068
# Whether or not to disallow shared libs when runtime libs are static.
13069
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13070
 
13071
# Compiler flag to allow reflexive dlopens.
13072
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13073
 
13074
# Compiler flag to generate shared objects directly from archives.
13075
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13076
 
13077
# Whether the compiler copes with passing no objects directly.
13078
compiler_needs_object=$lt_compiler_needs_object
13079
 
13080
# Create an old-style archive from a shared archive.
13081
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13082
 
13083
# Create a temporary old-style archive to link instead of a shared archive.
13084
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13085
 
13086
# Commands used to build a shared archive.
13087
archive_cmds=$lt_archive_cmds
13088
archive_expsym_cmds=$lt_archive_expsym_cmds
13089
 
13090
# Commands used to build a loadable module if different from building
13091
# a shared archive.
13092
module_cmds=$lt_module_cmds
13093
module_expsym_cmds=$lt_module_expsym_cmds
13094
 
13095
# Whether we are building with GNU ld or not.
13096
with_gnu_ld=$lt_with_gnu_ld
13097
 
13098
# Flag that allows shared libraries with undefined symbols to be built.
13099
allow_undefined_flag=$lt_allow_undefined_flag
13100
 
13101
# Flag that enforces no undefined symbols.
13102
no_undefined_flag=$lt_no_undefined_flag
13103
 
13104
# Flag to hardcode \$libdir into a binary during linking.
13105
# This must work even if \$libdir does not exist
13106
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13107
 
13108
# If ld is used when linking, flag to hardcode \$libdir into a binary
13109
# during linking.  This must work even if \$libdir does not exist.
13110
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13111
 
13112
# Whether we need a single "-rpath" flag with a separated argument.
13113
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13114
 
13115
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13116
# DIR into the resulting binary.
13117
hardcode_direct=$hardcode_direct
13118
 
13119
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13120
# DIR into the resulting binary and the resulting library dependency is
13121
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13122
# library is relocated.
13123
hardcode_direct_absolute=$hardcode_direct_absolute
13124
 
13125
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13126
# into the resulting binary.
13127
hardcode_minus_L=$hardcode_minus_L
13128
 
13129
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13130
# into the resulting binary.
13131
hardcode_shlibpath_var=$hardcode_shlibpath_var
13132
 
13133
# Set to "yes" if building a shared library automatically hardcodes DIR
13134
# into the library and all subsequent libraries and executables linked
13135
# against it.
13136
hardcode_automatic=$hardcode_automatic
13137
 
13138
# Set to yes if linker adds runtime paths of dependent libraries
13139
# to runtime path list.
13140
inherit_rpath=$inherit_rpath
13141
 
13142
# Whether libtool must link a program against all its dependency libraries.
13143
link_all_deplibs=$link_all_deplibs
13144
 
13145
# Fix the shell variable \$srcfile for the compiler.
13146
fix_srcfile_path=$lt_fix_srcfile_path
13147
 
13148
# Set to "yes" if exported symbols are required.
13149
always_export_symbols=$always_export_symbols
13150
 
13151
# The commands to list exported symbols.
13152
export_symbols_cmds=$lt_export_symbols_cmds
13153
 
13154
# Symbols that should not be listed in the preloaded symbols.
13155
exclude_expsyms=$lt_exclude_expsyms
13156
 
13157
# Symbols that must always be exported.
13158
include_expsyms=$lt_include_expsyms
13159
 
13160
# Commands necessary for linking programs (against libraries) with templates.
13161
prelink_cmds=$lt_prelink_cmds
13162
 
13163
# Specify filename containing input files.
13164
file_list_spec=$lt_file_list_spec
13165
 
13166
# How to hardcode a shared library path into an executable.
13167
hardcode_action=$hardcode_action
13168
 
13169
# ### END LIBTOOL CONFIG
13170
 
13171
_LT_EOF
13172
 
13173
  case $host_os in
13174
  aix3*)
13175
    cat <<\_LT_EOF >> "$cfgfile"
13176
# AIX sometimes has problems with the GCC collect2 program.  For some
13177
# reason, if we set the COLLECT_NAMES environment variable, the problems
13178
# vanish in a puff of smoke.
13179
if test "X${COLLECT_NAMES+set}" != Xset; then
13180
  COLLECT_NAMES=
13181
  export COLLECT_NAMES
13182
fi
13183
_LT_EOF
13184
    ;;
13185
  esac
13186
 
13187
 
13188
ltmain="$ac_aux_dir/ltmain.sh"
13189
 
13190
 
13191
  # We use sed instead of cat because bash on DJGPP gets confused if
13192
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13193
  # text mode, it properly converts lines to CR/LF.  This bash problem
13194
  # is reportedly fixed, but why not run on old versions too?
13195
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13196
    || (rm -f "$cfgfile"; exit 1)
13197
 
13198
  case $xsi_shell in
13199
  yes)
13200
    cat << \_LT_EOF >> "$cfgfile"
13201
 
13202
# func_dirname file append nondir_replacement
13203
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13204
# otherwise set result to NONDIR_REPLACEMENT.
13205
func_dirname ()
13206
{
13207
  case ${1} in
13208
    */*) func_dirname_result="${1%/*}${2}" ;;
13209
    *  ) func_dirname_result="${3}" ;;
13210
  esac
13211
}
13212
 
13213
# func_basename file
13214
func_basename ()
13215
{
13216
  func_basename_result="${1##*/}"
13217
}
13218
 
13219
# func_dirname_and_basename file append nondir_replacement
13220
# perform func_basename and func_dirname in a single function
13221
# call:
13222
#   dirname:  Compute the dirname of FILE.  If nonempty,
13223
#             add APPEND to the result, otherwise set result
13224
#             to NONDIR_REPLACEMENT.
13225
#             value returned in "$func_dirname_result"
13226
#   basename: Compute filename of FILE.
13227
#             value retuned in "$func_basename_result"
13228
# Implementation must be kept synchronized with func_dirname
13229
# and func_basename. For efficiency, we do not delegate to
13230
# those functions but instead duplicate the functionality here.
13231
func_dirname_and_basename ()
13232
{
13233
  case ${1} in
13234
    */*) func_dirname_result="${1%/*}${2}" ;;
13235
    *  ) func_dirname_result="${3}" ;;
13236
  esac
13237
  func_basename_result="${1##*/}"
13238
}
13239
 
13240
# func_stripname prefix suffix name
13241
# strip PREFIX and SUFFIX off of NAME.
13242
# PREFIX and SUFFIX must not contain globbing or regex special
13243
# characters, hashes, percent signs, but SUFFIX may contain a leading
13244
# dot (in which case that matches only a dot).
13245
func_stripname ()
13246
{
13247
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13248
  # positional parameters, so assign one to ordinary parameter first.
13249
  func_stripname_result=${3}
13250
  func_stripname_result=${func_stripname_result#"${1}"}
13251
  func_stripname_result=${func_stripname_result%"${2}"}
13252
}
13253
 
13254
# func_opt_split
13255
func_opt_split ()
13256
{
13257
  func_opt_split_opt=${1%%=*}
13258
  func_opt_split_arg=${1#*=}
13259
}
13260
 
13261
# func_lo2o object
13262
func_lo2o ()
13263
{
13264
  case ${1} in
13265
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13266
    *)    func_lo2o_result=${1} ;;
13267
  esac
13268
}
13269
 
13270
# func_xform libobj-or-source
13271
func_xform ()
13272
{
13273
  func_xform_result=${1%.*}.lo
13274
}
13275
 
13276
# func_arith arithmetic-term...
13277
func_arith ()
13278
{
13279
  func_arith_result=$(( $* ))
13280
}
13281
 
13282
# func_len string
13283
# STRING may not start with a hyphen.
13284
func_len ()
13285
{
13286
  func_len_result=${#1}
13287
}
13288
 
13289
_LT_EOF
13290
    ;;
13291
  *) # Bourne compatible functions.
13292
    cat << \_LT_EOF >> "$cfgfile"
13293
 
13294
# func_dirname file append nondir_replacement
13295
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13296
# otherwise set result to NONDIR_REPLACEMENT.
13297
func_dirname ()
13298
{
13299
  # Extract subdirectory from the argument.
13300
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13301
  if test "X$func_dirname_result" = "X${1}"; then
13302
    func_dirname_result="${3}"
13303
  else
13304
    func_dirname_result="$func_dirname_result${2}"
13305
  fi
13306
}
13307
 
13308
# func_basename file
13309
func_basename ()
13310
{
13311
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13312
}
13313
 
13314
 
13315
# func_stripname prefix suffix name
13316
# strip PREFIX and SUFFIX off of NAME.
13317
# PREFIX and SUFFIX must not contain globbing or regex special
13318
# characters, hashes, percent signs, but SUFFIX may contain a leading
13319
# dot (in which case that matches only a dot).
13320
# func_strip_suffix prefix name
13321
func_stripname ()
13322
{
13323
  case ${2} in
13324
    .*) func_stripname_result=`$ECHO "X${3}" \
13325
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13326
    *)  func_stripname_result=`$ECHO "X${3}" \
13327
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13328
  esac
13329
}
13330
 
13331
# sed scripts:
13332
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13333
my_sed_long_arg='1s/^-[^=]*=//'
13334
 
13335
# func_opt_split
13336
func_opt_split ()
13337
{
13338
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13339
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13340
}
13341
 
13342
# func_lo2o object
13343
func_lo2o ()
13344
{
13345
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13346
}
13347
 
13348
# func_xform libobj-or-source
13349
func_xform ()
13350
{
13351
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13352
}
13353
 
13354
# func_arith arithmetic-term...
13355
func_arith ()
13356
{
13357
  func_arith_result=`expr "$@"`
13358
}
13359
 
13360
# func_len string
13361
# STRING may not start with a hyphen.
13362
func_len ()
13363
{
13364
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13365
}
13366
 
13367
_LT_EOF
13368
esac
13369
 
13370
case $lt_shell_append in
13371
  yes)
13372
    cat << \_LT_EOF >> "$cfgfile"
13373
 
13374
# func_append var value
13375
# Append VALUE to the end of shell variable VAR.
13376
func_append ()
13377
{
13378
  eval "$1+=\$2"
13379
}
13380
_LT_EOF
13381
    ;;
13382
  *)
13383
    cat << \_LT_EOF >> "$cfgfile"
13384
 
13385
# func_append var value
13386
# Append VALUE to the end of shell variable VAR.
13387
func_append ()
13388
{
13389
  eval "$1=\$$1\$2"
13390
}
13391
 
13392
_LT_EOF
13393
    ;;
13394
  esac
13395
 
13396
 
13397
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13398
    || (rm -f "$cfgfile"; exit 1)
13399
 
13400
  mv -f "$cfgfile" "$ofile" ||
13401
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13402
  chmod +x "$ofile"
13403
 
13404
 ;;
13405
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13406
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13407
  # are listed without --file.  Let's play safe and only enable the eval
13408
  # if we detect the quoting.
13409
  case $CONFIG_FILES in
13410
  *\'*) eval set x "$CONFIG_FILES" ;;
13411
  *)   set x $CONFIG_FILES ;;
13412
  esac
13413
  shift
13414
  for mf
13415
  do
13416
    # Strip MF so we end up with the name of the file.
13417
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13418
    # Check whether this is an Automake generated Makefile or not.
13419
    # We used to match only the files named `Makefile.in', but
13420
    # some people rename them; so instead we look at the file content.
13421
    # Grep'ing the first line is not enough: some people post-process
13422
    # each Makefile.in and add a new line on top of each file to say so.
13423
    # Grep'ing the whole file is not good either: AIX grep has a line
13424
    # limit of 2048, but all sed's we know have understand at least 4000.
13425
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13426
      dirpart=`$as_dirname -- "$mf" ||
13427
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13428
         X"$mf" : 'X\(//\)[^/]' \| \
13429
         X"$mf" : 'X\(//\)$' \| \
13430
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13431
$as_echo X"$mf" |
13432
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13433
            s//\1/
13434
            q
13435
          }
13436
          /^X\(\/\/\)[^/].*/{
13437
            s//\1/
13438
            q
13439
          }
13440
          /^X\(\/\/\)$/{
13441
            s//\1/
13442
            q
13443
          }
13444
          /^X\(\/\).*/{
13445
            s//\1/
13446
            q
13447
          }
13448
          s/.*/./; q'`
13449
    else
13450
      continue
13451
    fi
13452
    # Extract the definition of DEPDIR, am__include, and am__quote
13453
    # from the Makefile without running `make'.
13454
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13455
    test -z "$DEPDIR" && continue
13456
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13457
    test -z "am__include" && continue
13458
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13459
    # When using ansi2knr, U may be empty or an underscore; expand it
13460
    U=`sed -n 's/^U = //p' < "$mf"`
13461
    # Find all dependency output files, they are included files with
13462
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13463
    # simplest approach to changing $(DEPDIR) to its actual value in the
13464
    # expansion.
13465
    for file in `sed -n "
13466
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13467
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13468
      # Make sure the directory exists.
13469
      test -f "$dirpart/$file" && continue
13470
      fdir=`$as_dirname -- "$file" ||
13471
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13472
         X"$file" : 'X\(//\)[^/]' \| \
13473
         X"$file" : 'X\(//\)$' \| \
13474
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13475
$as_echo X"$file" |
13476
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13477
            s//\1/
13478
            q
13479
          }
13480
          /^X\(\/\/\)[^/].*/{
13481
            s//\1/
13482
            q
13483
          }
13484
          /^X\(\/\/\)$/{
13485
            s//\1/
13486
            q
13487
          }
13488
          /^X\(\/\).*/{
13489
            s//\1/
13490
            q
13491
          }
13492
          s/.*/./; q'`
13493 233 julius
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13494 90 jeremybenn
      # echo "creating $dirpart/$file"
13495
      echo '# dummy' > "$dirpart/$file"
13496
    done
13497
  done
13498
}
13499
 ;;
13500
 
13501
  esac
13502
done # for ac_tag
13503
 
13504
 
13505 233 julius
as_fn_exit 0
13506 90 jeremybenn
_ACEOF
13507
ac_clean_files=$ac_clean_files_save
13508
 
13509
test $ac_write_fail = 0 ||
13510 233 julius
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13511 90 jeremybenn
 
13512
 
13513
# configure is writing to config.log, and then calls config.status.
13514
# config.status does its own redirection, appending to config.log.
13515
# Unfortunately, on DOS this fails, as config.log is still kept open
13516
# by configure, so config.status won't be able to write to it; its
13517
# output is simply discarded.  So we exec the FD to /dev/null,
13518
# effectively closing config.log, so it can be properly (re)opened and
13519
# appended to by config.status.  When coming back to configure, we
13520
# need to make the FD available again.
13521
if test "$no_create" != yes; then
13522
  ac_cs_success=:
13523
  ac_config_status_args=
13524
  test "$silent" = yes &&
13525
    ac_config_status_args="$ac_config_status_args --quiet"
13526
  exec 5>/dev/null
13527
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13528
  exec 5>>config.log
13529
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13530
  # would make configure fail if this is the last instruction.
13531 233 julius
  $ac_cs_success || as_fn_exit $?
13532 90 jeremybenn
fi
13533
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13534 233 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13535 90 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13536
fi
13537
 

powered by: WebSVN 2.1.0

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