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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [boehm-gc/] [configure] - Blame information for rev 721

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 721 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
 
173
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    PATH=/empty FPATH=/empty; export PATH FPATH
178
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180
test \$(( 1 + 1 )) = 2 || exit 1"
181
  if (eval "$as_required") 2>/dev/null; then :
182
  as_have_required=yes
183
else
184
  as_have_required=no
185
fi
186
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
 
188
else
189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
as_found=false
191
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192
do
193
  IFS=$as_save_IFS
194
  test -z "$as_dir" && as_dir=.
195
  as_found=:
196
  case $as_dir in #(
197
         /*)
198
           for as_base in sh bash ksh sh5; do
199
             # Try only shells that exist, to save several forks.
200
             as_shell=$as_dir/$as_base
201
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203
  CONFIG_SHELL=$as_shell as_have_required=yes
204
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
  break 2
206
fi
207
fi
208
           done;;
209
       esac
210
  as_found=false
211
done
212
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214
  CONFIG_SHELL=$SHELL as_have_required=yes
215
fi; }
216
IFS=$as_save_IFS
217
 
218
 
219
      if test "x$CONFIG_SHELL" != x; then :
220
  # We cannot yet assume a decent shell, so we have to provide a
221
        # neutralization value for shells without unset; and this also
222
        # works around shells that cannot unset nonexistent variables.
223
        BASH_ENV=/dev/null
224
        ENV=/dev/null
225
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
        export CONFIG_SHELL
227
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228
fi
229
 
230
    if test x$as_have_required = xno; then :
231
  $as_echo "$0: This script requires a shell more modern than all"
232
  $as_echo "$0: the shells that I found on your system."
233
  if test x${ZSH_VERSION+set} = xset ; then
234
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
  else
237
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
241
  fi
242
  exit 1
243
fi
244
fi
245
fi
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
export SHELL
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
255
# as_fn_unset VAR
256
# ---------------
257
# Portably unset VAR.
258
as_fn_unset ()
259
{
260
  { eval $1=; unset $1;}
261
}
262
as_unset=as_fn_unset
263
 
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
267
as_fn_set_status ()
268
{
269
  return $1
270
} # as_fn_set_status
271
 
272
# as_fn_exit STATUS
273
# -----------------
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
as_fn_exit ()
276
{
277
  set +e
278
  as_fn_set_status $1
279
  exit $1
280
} # as_fn_exit
281
 
282
# as_fn_mkdir_p
283
# -------------
284
# Create "$as_dir" as a directory, including parents if necessary.
285
as_fn_mkdir_p ()
286
{
287
 
288
  case $as_dir in #(
289
  -*) as_dir=./$as_dir;;
290
  esac
291
  test -d "$as_dir" || eval $as_mkdir_p || {
292
    as_dirs=
293
    while :; do
294
      case $as_dir in #(
295
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
      *) as_qdir=$as_dir;;
297
      esac
298
      as_dirs="'$as_qdir' $as_dirs"
299
      as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
         X"$as_dir" : 'X\(//\)$' \| \
303
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\/\)[^/].*/{
310
            s//\1/
311
            q
312
          }
313
          /^X\(\/\/\)$/{
314
            s//\1/
315
            q
316
          }
317
          /^X\(\/\).*/{
318
            s//\1/
319
            q
320
          }
321
          s/.*/./; q'`
322
      test -d "$as_dir" && break
323
    done
324
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
 
327
 
328
} # as_fn_mkdir_p
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
334
# implementations.
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
  eval 'as_fn_append ()
337
  {
338
    eval $1+=\$2
339
  }'
340
else
341
  as_fn_append ()
342
  {
343
    eval $1=\$$1\$2
344
  }
345
fi # as_fn_append
346
 
347
# as_fn_arith ARG...
348
# ------------------
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
  eval 'as_fn_arith ()
354
  {
355
    as_val=$(( $* ))
356
  }'
357
else
358
  as_fn_arith ()
359
  {
360
    as_val=`expr "$@" || test $? -eq 1`
361
  }
362
fi # as_fn_arith
363
 
364
 
365
# as_fn_error ERROR [LINENO LOG_FD]
366
# ---------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with status $?, using 1 if that was 0.
370
as_fn_error ()
371
{
372
  as_status=$?; test $as_status -eq 0 && as_status=1
373
  if test "$3"; then
374
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376
  fi
377
  $as_echo "$as_me: error: $1" >&2
378
  as_fn_exit $as_status
379
} # as_fn_error
380
 
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
  as_expr=expr
384
else
385
  as_expr=false
386
fi
387
 
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
  as_basename=basename
390
else
391
  as_basename=false
392
fi
393
 
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
  as_dirname=dirname
396
else
397
  as_dirname=false
398
fi
399
 
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
         X"$0" : 'X\(//\)$' \| \
403
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
$as_echo X/"$0" |
405
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
            s//\1/
407
            q
408
          }
409
          /^X\/\(\/\/\)$/{
410
            s//\1/
411
            q
412
          }
413
          /^X\/\(\/\).*/{
414
            s//\1/
415
            q
416
          }
417
          s/.*/./; q'`
418
 
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
426
 
427
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
  sed -n '
433
    p
434
    /[$]LINENO/=
435
  ' <$as_myself |
436
    sed '
437
      s/[$]LINENO.*/&-/
438
      t lineno
439
      b
440
      :lineno
441
      N
442
      :loop
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
      t loop
445
      s/-\n.*//
446
    ' >$as_me.lineno &&
447
  chmod +x "$as_me.lineno" ||
448
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
450
  # Don't try to exec as it changes $[0], causing all sort of problems
451
  # (the dirname of $[0] is not the place where we might find the
452
  # original and so on.  Autoconf is especially sensitive to this).
453
  . "./$as_me.lineno"
454
  # Exit status is that of the last command.
455
  exit
456
}
457
 
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
460
-n*)
461
  case `echo 'xy\c'` in
462
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
  xy)  ECHO_C='\c';;
464
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
       ECHO_T=' ';;
466
  esac;;
467
*)
468
  ECHO_N='-n';;
469
esac
470
 
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
  rm -f conf$$.dir/conf$$.file
474
else
475
  rm -f conf$$.dir
476
  mkdir conf$$.dir 2>/dev/null
477
fi
478
if (echo >conf$$.file) 2>/dev/null; then
479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s='ln -s'
481
    # ... but there are two gotchas:
482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
    # In both cases, we have to default to `cp -p'.
485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
      as_ln_s='cp -p'
487
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
    as_ln_s=ln
489
  else
490
    as_ln_s='cp -p'
491
  fi
492
else
493
  as_ln_s='cp -p'
494
fi
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
497
 
498
if mkdir -p . 2>/dev/null; then
499
  as_mkdir_p='mkdir -p "$as_dir"'
500
else
501
  test -d ./-p && rmdir ./-p
502
  as_mkdir_p=false
503
fi
504
 
505
if test -x / >/dev/null 2>&1; then
506
  as_test_x='test -x'
507
else
508
  if ls -dL / >/dev/null 2>&1; then
509
    as_ls_L_option=L
510
  else
511
    as_ls_L_option=
512
  fi
513
  as_test_x='
514
    eval sh -c '\''
515
      if test -d "$1"; then
516
        test -d "$1/.";
517
      else
518
        case $1 in #(
519
        -*)set "./$1";;
520
        esac;
521
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
        ???[sx]*):;;*)false;;esac;fi
523
    '\'' sh
524
  '
525
fi
526
as_executable_p=$as_test_x
527
 
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
 
537
exec 7<&0 &1
538
 
539
# Name of the host.
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
 
544
#
545
# Initializations.
546
#
547
ac_default_prefix=/usr/local
548
ac_clean_files=
549
ac_config_libobj_dir=.
550
LIBOBJS=
551
cross_compiling=no
552
subdirs=
553
MFLAGS=
554
MAKEFLAGS=
555
 
556
# Identity of this package.
557
PACKAGE_NAME=
558
PACKAGE_TARNAME=
559
PACKAGE_VERSION=
560
PACKAGE_STRING=
561
PACKAGE_BUGREPORT=
562
PACKAGE_URL=
563
 
564
ac_unique_file="gcj_mlc.c"
565
# Factoring default headers for most tests.
566
ac_includes_default="\
567
#include 
568
#ifdef HAVE_SYS_TYPES_H
569
# include 
570
#endif
571
#ifdef HAVE_SYS_STAT_H
572
# include 
573
#endif
574
#ifdef STDC_HEADERS
575
# include 
576
# include 
577
#else
578
# ifdef HAVE_STDLIB_H
579
#  include 
580
# endif
581
#endif
582
#ifdef HAVE_STRING_H
583
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#  include 
585
# endif
586
# include 
587
#endif
588
#ifdef HAVE_STRINGS_H
589
# include 
590
#endif
591
#ifdef HAVE_INTTYPES_H
592
# include 
593
#endif
594
#ifdef HAVE_STDINT_H
595
# include 
596
#endif
597
#ifdef HAVE_UNISTD_H
598
# include 
599
#endif"
600
 
601
ac_subst_vars='am__EXEEXT_FALSE
602
am__EXEEXT_TRUE
603
LTLIBOBJS
604
LIBOBJS
605
toolexeclibdir
606
toolexecdir
607
O0_CFLAGS
608
addtests
609
addlibs
610
addincludes
611
addobjs
612
AM_CPPFLAGS
613
CPLUSPLUS_FALSE
614
CPLUSPLUS_TRUE
615
target_all
616
EXTRA_TEST_LIBS
617
extra_ldflags_libgc
618
POWERPC_DARWIN_FALSE
619
POWERPC_DARWIN_TRUE
620
THREADLIBS
621
THREADCFLAGS
622
CXXCPP
623
CPP
624
OTOOL64
625
OTOOL
626
LIPO
627
NMEDIT
628
DSYMUTIL
629
OBJDUMP
630
LN_S
631
NM
632
ac_ct_DUMPBIN
633
DUMPBIN
634
LD
635
FGREP
636
EGREP
637
GREP
638
SED
639
LIBTOOL
640
GC_CFLAGS
641
MAINT
642
MAINTAINER_MODE_FALSE
643
MAINTAINER_MODE_TRUE
644
RANLIB
645
AR
646
AS
647
CCASFLAGS
648
CCAS
649
am__fastdepCXX_FALSE
650
am__fastdepCXX_TRUE
651
CXXDEPMODE
652
ac_ct_CXX
653
CXXFLAGS
654
CXX
655
am__fastdepCC_FALSE
656
am__fastdepCC_TRUE
657
CCDEPMODE
658
AMDEPBACKSLASH
659
AMDEP_FALSE
660
AMDEP_TRUE
661
am__quote
662
am__include
663
DEPDIR
664
OBJEXT
665
EXEEXT
666
ac_ct_CC
667
CPPFLAGS
668
LDFLAGS
669
CFLAGS
670
CC
671
am__untar
672
am__tar
673
AMTAR
674
am__leading_dot
675
SET_MAKE
676
AWK
677
mkdir_p
678
MKDIR_P
679
INSTALL_STRIP_PROGRAM
680
STRIP
681
install_sh
682
MAKEINFO
683
AUTOHEADER
684
AUTOMAKE
685
AUTOCONF
686
ACLOCAL
687
VERSION
688
PACKAGE
689
CYGPATH_W
690
am__isrc
691
INSTALL_DATA
692
INSTALL_SCRIPT
693
INSTALL_PROGRAM
694
mkinstalldirs
695
target_noncanonical
696
target_os
697
target_vendor
698
target_cpu
699
target
700
host_os
701
host_vendor
702
host_cpu
703
host
704
build_os
705
build_vendor
706
build_cpu
707
build
708
multi_basedir
709
target_alias
710
host_alias
711
build_alias
712
LIBS
713
ECHO_T
714
ECHO_N
715
ECHO_C
716
DEFS
717
mandir
718
localedir
719
libdir
720
psdir
721
pdfdir
722
dvidir
723
htmldir
724
infodir
725
docdir
726
oldincludedir
727
includedir
728
localstatedir
729
sharedstatedir
730
sysconfdir
731
datadir
732
datarootdir
733
libexecdir
734
sbindir
735
bindir
736
program_transform_name
737
prefix
738
exec_prefix
739
PACKAGE_URL
740
PACKAGE_BUGREPORT
741
PACKAGE_STRING
742
PACKAGE_VERSION
743
PACKAGE_TARNAME
744
PACKAGE_NAME
745
PATH_SEPARATOR
746
SHELL'
747
ac_subst_files=''
748
ac_user_opts='
749
enable_option_checking
750
enable_multilib
751
enable_dependency_tracking
752
enable_maintainer_mode
753
enable_shared
754
enable_static
755
with_pic
756
enable_fast_install
757
with_gnu_ld
758
enable_libtool_lock
759
with_target_subdir
760
with_cross_host
761
enable_parallel_mark
762
with_ecos
763
enable_gc_debug
764
'
765
      ac_precious_vars='build_alias
766
host_alias
767
target_alias
768
CPP
769
CPPFLAGS
770
CXXCPP'
771
 
772
 
773
# Initialize some variables set by options.
774
ac_init_help=
775
ac_init_version=false
776
ac_unrecognized_opts=
777
ac_unrecognized_sep=
778
# The variables have the same names as the options, with
779
# dashes changed to underlines.
780
cache_file=/dev/null
781
exec_prefix=NONE
782
no_create=
783
no_recursion=
784
prefix=NONE
785
program_prefix=NONE
786
program_suffix=NONE
787
program_transform_name=s,x,x,
788
silent=
789
site=
790
srcdir=
791
verbose=
792
x_includes=NONE
793
x_libraries=NONE
794
 
795
# Installation directory options.
796
# These are left unexpanded so users can "make install exec_prefix=/foo"
797
# and all the variables that are supposed to be based on exec_prefix
798
# by default will actually change.
799
# Use braces instead of parens because sh, perl, etc. also accept them.
800
# (The list follows the same order as the GNU Coding Standards.)
801
bindir='${exec_prefix}/bin'
802
sbindir='${exec_prefix}/sbin'
803
libexecdir='${exec_prefix}/libexec'
804
datarootdir='${prefix}/share'
805
datadir='${datarootdir}'
806
sysconfdir='${prefix}/etc'
807
sharedstatedir='${prefix}/com'
808
localstatedir='${prefix}/var'
809
includedir='${prefix}/include'
810
oldincludedir='/usr/include'
811
docdir='${datarootdir}/doc/${PACKAGE}'
812
infodir='${datarootdir}/info'
813
htmldir='${docdir}'
814
dvidir='${docdir}'
815
pdfdir='${docdir}'
816
psdir='${docdir}'
817
libdir='${exec_prefix}/lib'
818
localedir='${datarootdir}/locale'
819
mandir='${datarootdir}/man'
820
 
821
ac_prev=
822
ac_dashdash=
823
for ac_option
824
do
825
  # If the previous option needs an argument, assign it.
826
  if test -n "$ac_prev"; then
827
    eval $ac_prev=\$ac_option
828
    ac_prev=
829
    continue
830
  fi
831
 
832
  case $ac_option in
833
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834
  *)    ac_optarg=yes ;;
835
  esac
836
 
837
  # Accept the important Cygnus configure options, so we can diagnose typos.
838
 
839
  case $ac_dashdash$ac_option in
840
  --)
841
    ac_dashdash=yes ;;
842
 
843
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844
    ac_prev=bindir ;;
845
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846
    bindir=$ac_optarg ;;
847
 
848
  -build | --build | --buil | --bui | --bu)
849
    ac_prev=build_alias ;;
850
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851
    build_alias=$ac_optarg ;;
852
 
853
  -cache-file | --cache-file | --cache-fil | --cache-fi \
854
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855
    ac_prev=cache_file ;;
856
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858
    cache_file=$ac_optarg ;;
859
 
860
  --config-cache | -C)
861
    cache_file=config.cache ;;
862
 
863
  -datadir | --datadir | --datadi | --datad)
864
    ac_prev=datadir ;;
865
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866
    datadir=$ac_optarg ;;
867
 
868
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869
  | --dataroo | --dataro | --datar)
870
    ac_prev=datarootdir ;;
871
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873
    datarootdir=$ac_optarg ;;
874
 
875
  -disable-* | --disable-*)
876
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877
    # Reject names that are not valid shell variable names.
878
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879
      as_fn_error "invalid feature name: $ac_useropt"
880
    ac_useropt_orig=$ac_useropt
881
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882
    case $ac_user_opts in
883
      *"
884
"enable_$ac_useropt"
885
"*) ;;
886
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887
         ac_unrecognized_sep=', ';;
888
    esac
889
    eval enable_$ac_useropt=no ;;
890
 
891
  -docdir | --docdir | --docdi | --doc | --do)
892
    ac_prev=docdir ;;
893
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894
    docdir=$ac_optarg ;;
895
 
896
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897
    ac_prev=dvidir ;;
898
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899
    dvidir=$ac_optarg ;;
900
 
901
  -enable-* | --enable-*)
902
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903
    # Reject names that are not valid shell variable names.
904
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905
      as_fn_error "invalid feature name: $ac_useropt"
906
    ac_useropt_orig=$ac_useropt
907
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908
    case $ac_user_opts in
909
      *"
910
"enable_$ac_useropt"
911
"*) ;;
912
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913
         ac_unrecognized_sep=', ';;
914
    esac
915
    eval enable_$ac_useropt=\$ac_optarg ;;
916
 
917
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919
  | --exec | --exe | --ex)
920
    ac_prev=exec_prefix ;;
921
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923
  | --exec=* | --exe=* | --ex=*)
924
    exec_prefix=$ac_optarg ;;
925
 
926
  -gas | --gas | --ga | --g)
927
    # Obsolete; use --with-gas.
928
    with_gas=yes ;;
929
 
930
  -help | --help | --hel | --he | -h)
931
    ac_init_help=long ;;
932
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933
    ac_init_help=recursive ;;
934
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935
    ac_init_help=short ;;
936
 
937
  -host | --host | --hos | --ho)
938
    ac_prev=host_alias ;;
939
  -host=* | --host=* | --hos=* | --ho=*)
940
    host_alias=$ac_optarg ;;
941
 
942
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943
    ac_prev=htmldir ;;
944
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945
  | --ht=*)
946
    htmldir=$ac_optarg ;;
947
 
948
  -includedir | --includedir | --includedi | --included | --include \
949
  | --includ | --inclu | --incl | --inc)
950
    ac_prev=includedir ;;
951
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952
  | --includ=* | --inclu=* | --incl=* | --inc=*)
953
    includedir=$ac_optarg ;;
954
 
955
  -infodir | --infodir | --infodi | --infod | --info | --inf)
956
    ac_prev=infodir ;;
957
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958
    infodir=$ac_optarg ;;
959
 
960
  -libdir | --libdir | --libdi | --libd)
961
    ac_prev=libdir ;;
962
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963
    libdir=$ac_optarg ;;
964
 
965
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966
  | --libexe | --libex | --libe)
967
    ac_prev=libexecdir ;;
968
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969
  | --libexe=* | --libex=* | --libe=*)
970
    libexecdir=$ac_optarg ;;
971
 
972
  -localedir | --localedir | --localedi | --localed | --locale)
973
    ac_prev=localedir ;;
974
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975
    localedir=$ac_optarg ;;
976
 
977
  -localstatedir | --localstatedir | --localstatedi | --localstated \
978
  | --localstate | --localstat | --localsta | --localst | --locals)
979
    ac_prev=localstatedir ;;
980
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982
    localstatedir=$ac_optarg ;;
983
 
984
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985
    ac_prev=mandir ;;
986
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987
    mandir=$ac_optarg ;;
988
 
989
  -nfp | --nfp | --nf)
990
    # Obsolete; use --without-fp.
991
    with_fp=no ;;
992
 
993
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994
  | --no-cr | --no-c | -n)
995
    no_create=yes ;;
996
 
997
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999
    no_recursion=yes ;;
1000
 
1001
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003
  | --oldin | --oldi | --old | --ol | --o)
1004
    ac_prev=oldincludedir ;;
1005
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008
    oldincludedir=$ac_optarg ;;
1009
 
1010
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011
    ac_prev=prefix ;;
1012
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013
    prefix=$ac_optarg ;;
1014
 
1015
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016
  | --program-pre | --program-pr | --program-p)
1017
    ac_prev=program_prefix ;;
1018
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020
    program_prefix=$ac_optarg ;;
1021
 
1022
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023
  | --program-suf | --program-su | --program-s)
1024
    ac_prev=program_suffix ;;
1025
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027
    program_suffix=$ac_optarg ;;
1028
 
1029
  -program-transform-name | --program-transform-name \
1030
  | --program-transform-nam | --program-transform-na \
1031
  | --program-transform-n | --program-transform- \
1032
  | --program-transform | --program-transfor \
1033
  | --program-transfo | --program-transf \
1034
  | --program-trans | --program-tran \
1035
  | --progr-tra | --program-tr | --program-t)
1036
    ac_prev=program_transform_name ;;
1037
  -program-transform-name=* | --program-transform-name=* \
1038
  | --program-transform-nam=* | --program-transform-na=* \
1039
  | --program-transform-n=* | --program-transform-=* \
1040
  | --program-transform=* | --program-transfor=* \
1041
  | --program-transfo=* | --program-transf=* \
1042
  | --program-trans=* | --program-tran=* \
1043
  | --progr-tra=* | --program-tr=* | --program-t=*)
1044
    program_transform_name=$ac_optarg ;;
1045
 
1046
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047
    ac_prev=pdfdir ;;
1048
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049
    pdfdir=$ac_optarg ;;
1050
 
1051
  -psdir | --psdir | --psdi | --psd | --ps)
1052
    ac_prev=psdir ;;
1053
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054
    psdir=$ac_optarg ;;
1055
 
1056
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057
  | -silent | --silent | --silen | --sile | --sil)
1058
    silent=yes ;;
1059
 
1060
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061
    ac_prev=sbindir ;;
1062
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063
  | --sbi=* | --sb=*)
1064
    sbindir=$ac_optarg ;;
1065
 
1066
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068
  | --sharedst | --shareds | --shared | --share | --shar \
1069
  | --sha | --sh)
1070
    ac_prev=sharedstatedir ;;
1071
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074
  | --sha=* | --sh=*)
1075
    sharedstatedir=$ac_optarg ;;
1076
 
1077
  -site | --site | --sit)
1078
    ac_prev=site ;;
1079
  -site=* | --site=* | --sit=*)
1080
    site=$ac_optarg ;;
1081
 
1082
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083
    ac_prev=srcdir ;;
1084
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085
    srcdir=$ac_optarg ;;
1086
 
1087
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088
  | --syscon | --sysco | --sysc | --sys | --sy)
1089
    ac_prev=sysconfdir ;;
1090
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092
    sysconfdir=$ac_optarg ;;
1093
 
1094
  -target | --target | --targe | --targ | --tar | --ta | --t)
1095
    ac_prev=target_alias ;;
1096
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097
    target_alias=$ac_optarg ;;
1098
 
1099
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100
    verbose=yes ;;
1101
 
1102
  -version | --version | --versio | --versi | --vers | -V)
1103
    ac_init_version=: ;;
1104
 
1105
  -with-* | --with-*)
1106
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107
    # Reject names that are not valid shell variable names.
1108
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109
      as_fn_error "invalid package name: $ac_useropt"
1110
    ac_useropt_orig=$ac_useropt
1111
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112
    case $ac_user_opts in
1113
      *"
1114
"with_$ac_useropt"
1115
"*) ;;
1116
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117
         ac_unrecognized_sep=', ';;
1118
    esac
1119
    eval with_$ac_useropt=\$ac_optarg ;;
1120
 
1121
  -without-* | --without-*)
1122
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123
    # Reject names that are not valid shell variable names.
1124
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125
      as_fn_error "invalid package name: $ac_useropt"
1126
    ac_useropt_orig=$ac_useropt
1127
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128
    case $ac_user_opts in
1129
      *"
1130
"with_$ac_useropt"
1131
"*) ;;
1132
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133
         ac_unrecognized_sep=', ';;
1134
    esac
1135
    eval with_$ac_useropt=no ;;
1136
 
1137
  --x)
1138
    # Obsolete; use --with-x.
1139
    with_x=yes ;;
1140
 
1141
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142
  | --x-incl | --x-inc | --x-in | --x-i)
1143
    ac_prev=x_includes ;;
1144
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146
    x_includes=$ac_optarg ;;
1147
 
1148
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150
    ac_prev=x_libraries ;;
1151
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153
    x_libraries=$ac_optarg ;;
1154
 
1155
  -*) as_fn_error "unrecognized option: \`$ac_option'
1156
Try \`$0 --help' for more information."
1157
    ;;
1158
 
1159
  *=*)
1160
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161
    # Reject names that are not valid shell variable names.
1162
    case $ac_envvar in #(
1163
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165
    esac
1166
    eval $ac_envvar=\$ac_optarg
1167
    export $ac_envvar ;;
1168
 
1169
  *)
1170
    # FIXME: should be removed in autoconf 3.0.
1171
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175
    ;;
1176
 
1177
  esac
1178
done
1179
 
1180
if test -n "$ac_prev"; then
1181
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182
  as_fn_error "missing argument to $ac_option"
1183
fi
1184
 
1185
if test -n "$ac_unrecognized_opts"; then
1186
  case $enable_option_checking in
1187
    no) ;;
1188
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190
  esac
1191
fi
1192
 
1193
# Check all directory arguments for consistency.
1194
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195
                datadir sysconfdir sharedstatedir localstatedir includedir \
1196
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197
                libdir localedir mandir
1198
do
1199
  eval ac_val=\$$ac_var
1200
  # Remove trailing slashes.
1201
  case $ac_val in
1202
    */ )
1203
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204
      eval $ac_var=\$ac_val;;
1205
  esac
1206
  # Be sure to have absolute directory names.
1207
  case $ac_val in
1208
    [\\/$]* | ?:[\\/]* )  continue;;
1209
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210
  esac
1211
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212
done
1213
 
1214
# There might be people who depend on the old broken behavior: `$host'
1215
# used to hold the argument of --host etc.
1216
# FIXME: To remove some day.
1217
build=$build_alias
1218
host=$host_alias
1219
target=$target_alias
1220
 
1221
# FIXME: To remove some day.
1222
if test "x$host_alias" != x; then
1223
  if test "x$build_alias" = x; then
1224
    cross_compiling=maybe
1225
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226
    If a cross compiler is detected then cross compile mode will be used." >&2
1227
  elif test "x$build_alias" != "x$host_alias"; then
1228
    cross_compiling=yes
1229
  fi
1230
fi
1231
 
1232
ac_tool_prefix=
1233
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
 
1235
test "$silent" = yes && exec 6>/dev/null
1236
 
1237
 
1238
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239
ac_ls_di=`ls -di .` &&
1240
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241
  as_fn_error "working directory cannot be determined"
1242
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243
  as_fn_error "pwd does not report name of working directory"
1244
 
1245
 
1246
# Find the source files, if location was not specified.
1247
if test -z "$srcdir"; then
1248
  ac_srcdir_defaulted=yes
1249
  # Try the directory containing this script, then the parent directory.
1250
  ac_confdir=`$as_dirname -- "$as_myself" ||
1251
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252
         X"$as_myself" : 'X\(//\)[^/]' \| \
1253
         X"$as_myself" : 'X\(//\)$' \| \
1254
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255
$as_echo X"$as_myself" |
1256
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257
            s//\1/
1258
            q
1259
          }
1260
          /^X\(\/\/\)[^/].*/{
1261
            s//\1/
1262
            q
1263
          }
1264
          /^X\(\/\/\)$/{
1265
            s//\1/
1266
            q
1267
          }
1268
          /^X\(\/\).*/{
1269
            s//\1/
1270
            q
1271
          }
1272
          s/.*/./; q'`
1273
  srcdir=$ac_confdir
1274
  if test ! -r "$srcdir/$ac_unique_file"; then
1275
    srcdir=..
1276
  fi
1277
else
1278
  ac_srcdir_defaulted=no
1279
fi
1280
if test ! -r "$srcdir/$ac_unique_file"; then
1281
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283
fi
1284
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285
ac_abs_confdir=`(
1286
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287
        pwd)`
1288
# When building in place, set srcdir=.
1289
if test "$ac_abs_confdir" = "$ac_pwd"; then
1290
  srcdir=.
1291
fi
1292
# Remove unnecessary trailing slashes from srcdir.
1293
# Double slashes in file names in object file debugging info
1294
# mess up M-x gdb in Emacs.
1295
case $srcdir in
1296
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297
esac
1298
for ac_var in $ac_precious_vars; do
1299
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300
  eval ac_env_${ac_var}_value=\$${ac_var}
1301
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303
done
1304
 
1305
#
1306
# Report the --help message.
1307
#
1308
if test "$ac_init_help" = "long"; then
1309
  # Omit some internal or obsolete options to make the list less imposing.
1310
  # This message is too long to be a string in the A/UX 3.1 sh.
1311
  cat <<_ACEOF
1312
\`configure' configures this package to adapt to many kinds of systems.
1313
 
1314
Usage: $0 [OPTION]... [VAR=VALUE]...
1315
 
1316
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317
VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
 
1319
Defaults for the options are specified in brackets.
1320
 
1321
Configuration:
1322
  -h, --help              display this help and exit
1323
      --help=short        display options specific to this package
1324
      --help=recursive    display the short help of all the included packages
1325
  -V, --version           display version information and exit
1326
  -q, --quiet, --silent   do not print \`checking...' messages
1327
      --cache-file=FILE   cache test results in FILE [disabled]
1328
  -C, --config-cache      alias for \`--cache-file=config.cache'
1329
  -n, --no-create         do not create output files
1330
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
 
1332
Installation directories:
1333
  --prefix=PREFIX         install architecture-independent files in PREFIX
1334
                          [$ac_default_prefix]
1335
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336
                          [PREFIX]
1337
 
1338
By default, \`make install' will install all the files in
1339
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341
for instance \`--prefix=\$HOME'.
1342
 
1343
For better control, use the options below.
1344
 
1345
Fine tuning of the installation directories:
1346
  --bindir=DIR            user executables [EPREFIX/bin]
1347
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352
  --libdir=DIR            object code libraries [EPREFIX/lib]
1353
  --includedir=DIR        C header files [PREFIX/include]
1354
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1361
  --htmldir=DIR           html documentation [DOCDIR]
1362
  --dvidir=DIR            dvi documentation [DOCDIR]
1363
  --pdfdir=DIR            pdf documentation [DOCDIR]
1364
  --psdir=DIR             ps documentation [DOCDIR]
1365
_ACEOF
1366
 
1367
  cat <<\_ACEOF
1368
 
1369
Program names:
1370
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
 
1374
System types:
1375
  --build=BUILD     configure for building on BUILD [guessed]
1376
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377
  --target=TARGET   configure for building compilers for TARGET [HOST]
1378
_ACEOF
1379
fi
1380
 
1381
if test -n "$ac_init_help"; then
1382
 
1383
  cat <<\_ACEOF
1384
 
1385
Optional Features:
1386
  --disable-option-checking  ignore unrecognized --enable/--with options
1387
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389
  --enable-multilib       build many library versions (default)
1390
  --disable-dependency-tracking  speeds up one-time build
1391
  --enable-dependency-tracking   do not reject slow dependency extractors
1392
  --enable-maintainer-mode  enable make rules and dependencies not useful
1393
                          (and sometimes confusing) to the casual installer
1394
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1395
  --enable-static[=PKGS]  build static libraries [default=yes]
1396
  --enable-fast-install[=PKGS]
1397
                          optimize for fast installation [default=yes]
1398
  --disable-libtool-lock  avoid locking (might break parallel builds)
1399
  --enable-parallel-mark        parallelize marking and free list construction
1400
  --enable-gc-debug     include full support for pointer backtracing etc.
1401
 
1402
Optional Packages:
1403
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1404
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1405
  --with-pic              try to use only PIC/non-PIC objects [default=use
1406
                          both]
1407
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1408
  --with-target-subdir=SUBDIR
1409
                          configuring with a cross compiler
1410
  --with-cross-host=HOST  configuring with a cross compiler
1411
  --with-ecos             enable runtime eCos target support
1412
 
1413
Some influential environment variables:
1414
  CC          C compiler command
1415
  CFLAGS      C compiler flags
1416
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1417
              nonstandard directory 
1418
  LIBS        libraries to pass to the linker, e.g. -l
1419
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1420
              you have headers in a nonstandard directory 
1421
  CXX         C++ compiler command
1422
  CXXFLAGS    C++ compiler flags
1423
  CPP         C preprocessor
1424
  CXXCPP      C++ preprocessor
1425
 
1426
Use these variables to override the choices made by `configure' or to help
1427
it to find libraries and programs with nonstandard names/locations.
1428
 
1429
Report bugs to the package provider.
1430
_ACEOF
1431
ac_status=$?
1432
fi
1433
 
1434
if test "$ac_init_help" = "recursive"; then
1435
  # If there are subdirs, report their specific --help.
1436
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437
    test -d "$ac_dir" ||
1438
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439
      continue
1440
    ac_builddir=.
1441
 
1442
case "$ac_dir" in
1443
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444
*)
1445
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446
  # A ".." for each directory in $ac_dir_suffix.
1447
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448
  case $ac_top_builddir_sub in
1449
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451
  esac ;;
1452
esac
1453
ac_abs_top_builddir=$ac_pwd
1454
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455
# for backward compatibility:
1456
ac_top_builddir=$ac_top_build_prefix
1457
 
1458
case $srcdir in
1459
  .)  # We are building in place.
1460
    ac_srcdir=.
1461
    ac_top_srcdir=$ac_top_builddir_sub
1462
    ac_abs_top_srcdir=$ac_pwd ;;
1463
  [\\/]* | ?:[\\/]* )  # Absolute name.
1464
    ac_srcdir=$srcdir$ac_dir_suffix;
1465
    ac_top_srcdir=$srcdir
1466
    ac_abs_top_srcdir=$srcdir ;;
1467
  *) # Relative name.
1468
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1470
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471
esac
1472
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
 
1474
    cd "$ac_dir" || { ac_status=$?; continue; }
1475
    # Check for guested configure.
1476
    if test -f "$ac_srcdir/configure.gnu"; then
1477
      echo &&
1478
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479
    elif test -f "$ac_srcdir/configure"; then
1480
      echo &&
1481
      $SHELL "$ac_srcdir/configure" --help=recursive
1482
    else
1483
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484
    fi || ac_status=$?
1485
    cd "$ac_pwd" || { ac_status=$?; break; }
1486
  done
1487
fi
1488
 
1489
test -n "$ac_init_help" && exit $ac_status
1490
if $ac_init_version; then
1491
  cat <<\_ACEOF
1492
configure
1493
generated by GNU Autoconf 2.64
1494
 
1495
Copyright (C) 2009 Free Software Foundation, Inc.
1496
This configure script is free software; the Free Software Foundation
1497
gives unlimited permission to copy, distribute and modify it.
1498
_ACEOF
1499
  exit
1500
fi
1501
 
1502
## ------------------------ ##
1503
## Autoconf initialization. ##
1504
## ------------------------ ##
1505
 
1506
# ac_fn_c_try_compile LINENO
1507
# --------------------------
1508
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1509
ac_fn_c_try_compile ()
1510
{
1511
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512
  rm -f conftest.$ac_objext
1513
  if { { ac_try="$ac_compile"
1514
case "(($ac_try" in
1515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516
  *) ac_try_echo=$ac_try;;
1517
esac
1518
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519
$as_echo "$ac_try_echo"; } >&5
1520
  (eval "$ac_compile") 2>conftest.err
1521
  ac_status=$?
1522
  if test -s conftest.err; then
1523
    grep -v '^ *+' conftest.err >conftest.er1
1524
    cat conftest.er1 >&5
1525
    mv -f conftest.er1 conftest.err
1526
  fi
1527
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528
  test $ac_status = 0; } && {
1529
         test -z "$ac_c_werror_flag" ||
1530
         test ! -s conftest.err
1531
       } && test -s conftest.$ac_objext; then :
1532
  ac_retval=0
1533
else
1534
  $as_echo "$as_me: failed program was:" >&5
1535
sed 's/^/| /' conftest.$ac_ext >&5
1536
 
1537
        ac_retval=1
1538
fi
1539
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540
  return $ac_retval
1541
 
1542
} # ac_fn_c_try_compile
1543
 
1544
# ac_fn_cxx_try_compile LINENO
1545
# ----------------------------
1546
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547
ac_fn_cxx_try_compile ()
1548
{
1549
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550
  rm -f conftest.$ac_objext
1551
  if { { ac_try="$ac_compile"
1552
case "(($ac_try" in
1553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554
  *) ac_try_echo=$ac_try;;
1555
esac
1556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557
$as_echo "$ac_try_echo"; } >&5
1558
  (eval "$ac_compile") 2>conftest.err
1559
  ac_status=$?
1560
  if test -s conftest.err; then
1561
    grep -v '^ *+' conftest.err >conftest.er1
1562
    cat conftest.er1 >&5
1563
    mv -f conftest.er1 conftest.err
1564
  fi
1565
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566
  test $ac_status = 0; } && {
1567
         test -z "$ac_cxx_werror_flag" ||
1568
         test ! -s conftest.err
1569
       } && test -s conftest.$ac_objext; then :
1570
  ac_retval=0
1571
else
1572
  $as_echo "$as_me: failed program was:" >&5
1573
sed 's/^/| /' conftest.$ac_ext >&5
1574
 
1575
        ac_retval=1
1576
fi
1577
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578
  return $ac_retval
1579
 
1580
} # ac_fn_cxx_try_compile
1581
 
1582
# ac_fn_c_try_link LINENO
1583
# -----------------------
1584
# Try to link conftest.$ac_ext, and return whether this succeeded.
1585
ac_fn_c_try_link ()
1586
{
1587
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588
  rm -f conftest.$ac_objext conftest$ac_exeext
1589
  if { { ac_try="$ac_link"
1590
case "(($ac_try" in
1591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
  *) ac_try_echo=$ac_try;;
1593
esac
1594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595
$as_echo "$ac_try_echo"; } >&5
1596
  (eval "$ac_link") 2>conftest.err
1597
  ac_status=$?
1598
  if test -s conftest.err; then
1599
    grep -v '^ *+' conftest.err >conftest.er1
1600
    cat conftest.er1 >&5
1601
    mv -f conftest.er1 conftest.err
1602
  fi
1603
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604
  test $ac_status = 0; } && {
1605
         test -z "$ac_c_werror_flag" ||
1606
         test ! -s conftest.err
1607
       } && test -s conftest$ac_exeext && {
1608
         test "$cross_compiling" = yes ||
1609
         $as_test_x conftest$ac_exeext
1610
       }; then :
1611
  ac_retval=0
1612
else
1613
  $as_echo "$as_me: failed program was:" >&5
1614
sed 's/^/| /' conftest.$ac_ext >&5
1615
 
1616
        ac_retval=1
1617
fi
1618
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620
  # interfere with the next link command; also delete a directory that is
1621
  # left behind by Apple's compiler.  We do this before executing the actions.
1622
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624
  return $ac_retval
1625
 
1626
} # ac_fn_c_try_link
1627
 
1628
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629
# -------------------------------------------------------
1630
# Tests whether HEADER exists and can be compiled using the include files in
1631
# INCLUDES, setting the cache variable VAR accordingly.
1632
ac_fn_c_check_header_compile ()
1633
{
1634
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636
$as_echo_n "checking for $2... " >&6; }
1637
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638
  $as_echo_n "(cached) " >&6
1639
else
1640
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641
/* end confdefs.h.  */
1642
$4
1643
#include <$2>
1644
_ACEOF
1645
if ac_fn_c_try_compile "$LINENO"; then :
1646
  eval "$3=yes"
1647
else
1648
  eval "$3=no"
1649
fi
1650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651
fi
1652
eval ac_res=\$$3
1653
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654
$as_echo "$ac_res" >&6; }
1655
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
 
1657
} # ac_fn_c_check_header_compile
1658
 
1659
# ac_fn_c_try_cpp LINENO
1660
# ----------------------
1661
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662
ac_fn_c_try_cpp ()
1663
{
1664
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1666
case "(($ac_try" in
1667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668
  *) ac_try_echo=$ac_try;;
1669
esac
1670
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671
$as_echo "$ac_try_echo"; } >&5
1672
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673
  ac_status=$?
1674
  if test -s conftest.err; then
1675
    grep -v '^ *+' conftest.err >conftest.er1
1676
    cat conftest.er1 >&5
1677
    mv -f conftest.er1 conftest.err
1678
  fi
1679
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680
  test $ac_status = 0; } >/dev/null && {
1681
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682
         test ! -s conftest.err
1683
       }; then :
1684
  ac_retval=0
1685
else
1686
  $as_echo "$as_me: failed program was:" >&5
1687
sed 's/^/| /' conftest.$ac_ext >&5
1688
 
1689
    ac_retval=1
1690
fi
1691
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
  return $ac_retval
1693
 
1694
} # ac_fn_c_try_cpp
1695
 
1696
# ac_fn_c_try_run LINENO
1697
# ----------------------
1698
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699
# that executables *can* be run.
1700
ac_fn_c_try_run ()
1701
{
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
  if { { ac_try="$ac_link"
1704
case "(($ac_try" in
1705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706
  *) ac_try_echo=$ac_try;;
1707
esac
1708
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709
$as_echo "$ac_try_echo"; } >&5
1710
  (eval "$ac_link") 2>&5
1711
  ac_status=$?
1712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714
  { { case "(($ac_try" in
1715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716
  *) ac_try_echo=$ac_try;;
1717
esac
1718
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719
$as_echo "$ac_try_echo"; } >&5
1720
  (eval "$ac_try") 2>&5
1721
  ac_status=$?
1722
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723
  test $ac_status = 0; }; }; then :
1724
  ac_retval=0
1725
else
1726
  $as_echo "$as_me: program exited with status $ac_status" >&5
1727
       $as_echo "$as_me: failed program was:" >&5
1728
sed 's/^/| /' conftest.$ac_ext >&5
1729
 
1730
       ac_retval=$ac_status
1731
fi
1732
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
  return $ac_retval
1735
 
1736
} # ac_fn_c_try_run
1737
 
1738
# ac_fn_c_check_func LINENO FUNC VAR
1739
# ----------------------------------
1740
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1741
ac_fn_c_check_func ()
1742
{
1743
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745
$as_echo_n "checking for $2... " >&6; }
1746
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747
  $as_echo_n "(cached) " >&6
1748
else
1749
  if test x$gcc_no_link = xyes; then
1750
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1751
fi
1752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753
/* end confdefs.h.  */
1754
/* Define $2 to an innocuous variant, in case  declares $2.
1755
   For example, HP-UX 11i  declares gettimeofday.  */
1756
#define $2 innocuous_$2
1757
 
1758
/* System header to define __stub macros and hopefully few prototypes,
1759
    which can conflict with char $2 (); below.
1760
    Prefer  to  if __STDC__ is defined, since
1761
     exists even on freestanding compilers.  */
1762
 
1763
#ifdef __STDC__
1764
# include 
1765
#else
1766
# include 
1767
#endif
1768
 
1769
#undef $2
1770
 
1771
/* Override any GCC internal prototype to avoid an error.
1772
   Use char because int might match the return type of a GCC
1773
   builtin and then its argument prototype would still apply.  */
1774
#ifdef __cplusplus
1775
extern "C"
1776
#endif
1777
char $2 ();
1778
/* The GNU C library defines this for functions which it implements
1779
    to always fail with ENOSYS.  Some functions are actually named
1780
    something starting with __ and the normal name is an alias.  */
1781
#if defined __stub_$2 || defined __stub___$2
1782
choke me
1783
#endif
1784
 
1785
int
1786
main ()
1787
{
1788
return $2 ();
1789
  ;
1790
  return 0;
1791
}
1792
_ACEOF
1793
if ac_fn_c_try_link "$LINENO"; then :
1794
  eval "$3=yes"
1795
else
1796
  eval "$3=no"
1797
fi
1798
rm -f core conftest.err conftest.$ac_objext \
1799
    conftest$ac_exeext conftest.$ac_ext
1800
fi
1801
eval ac_res=\$$3
1802
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803
$as_echo "$ac_res" >&6; }
1804
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
 
1806
} # ac_fn_c_check_func
1807
 
1808
# ac_fn_cxx_try_cpp LINENO
1809
# ------------------------
1810
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811
ac_fn_cxx_try_cpp ()
1812
{
1813
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1815
case "(($ac_try" in
1816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817
  *) ac_try_echo=$ac_try;;
1818
esac
1819
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820
$as_echo "$ac_try_echo"; } >&5
1821
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822
  ac_status=$?
1823
  if test -s conftest.err; then
1824
    grep -v '^ *+' conftest.err >conftest.er1
1825
    cat conftest.er1 >&5
1826
    mv -f conftest.er1 conftest.err
1827
  fi
1828
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829
  test $ac_status = 0; } >/dev/null && {
1830
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1831
         test ! -s conftest.err
1832
       }; then :
1833
  ac_retval=0
1834
else
1835
  $as_echo "$as_me: failed program was:" >&5
1836
sed 's/^/| /' conftest.$ac_ext >&5
1837
 
1838
    ac_retval=1
1839
fi
1840
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
  return $ac_retval
1842
 
1843
} # ac_fn_cxx_try_cpp
1844
 
1845
# ac_fn_cxx_try_link LINENO
1846
# -------------------------
1847
# Try to link conftest.$ac_ext, and return whether this succeeded.
1848
ac_fn_cxx_try_link ()
1849
{
1850
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
  rm -f conftest.$ac_objext conftest$ac_exeext
1852
  if { { ac_try="$ac_link"
1853
case "(($ac_try" in
1854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855
  *) ac_try_echo=$ac_try;;
1856
esac
1857
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858
$as_echo "$ac_try_echo"; } >&5
1859
  (eval "$ac_link") 2>conftest.err
1860
  ac_status=$?
1861
  if test -s conftest.err; then
1862
    grep -v '^ *+' conftest.err >conftest.er1
1863
    cat conftest.er1 >&5
1864
    mv -f conftest.er1 conftest.err
1865
  fi
1866
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867
  test $ac_status = 0; } && {
1868
         test -z "$ac_cxx_werror_flag" ||
1869
         test ! -s conftest.err
1870
       } && test -s conftest$ac_exeext && {
1871
         test "$cross_compiling" = yes ||
1872
         $as_test_x conftest$ac_exeext
1873
       }; then :
1874
  ac_retval=0
1875
else
1876
  $as_echo "$as_me: failed program was:" >&5
1877
sed 's/^/| /' conftest.$ac_ext >&5
1878
 
1879
        ac_retval=1
1880
fi
1881
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883
  # interfere with the next link command; also delete a directory that is
1884
  # left behind by Apple's compiler.  We do this before executing the actions.
1885
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
  return $ac_retval
1888
 
1889
} # ac_fn_cxx_try_link
1890
 
1891
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1892
# ----------------------------------------------------
1893
# Tries to find if the field MEMBER exists in type AGGR, after including
1894
# INCLUDES, setting cache variable VAR accordingly.
1895
ac_fn_c_check_member ()
1896
{
1897
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1899
$as_echo_n "checking for $2.$3... " >&6; }
1900
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1901
  $as_echo_n "(cached) " >&6
1902
else
1903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904
/* end confdefs.h.  */
1905
$5
1906
int
1907
main ()
1908
{
1909
static $2 ac_aggr;
1910
if (ac_aggr.$3)
1911
return 0;
1912
  ;
1913
  return 0;
1914
}
1915
_ACEOF
1916
if ac_fn_c_try_compile "$LINENO"; then :
1917
  eval "$4=yes"
1918
else
1919
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920
/* end confdefs.h.  */
1921
$5
1922
int
1923
main ()
1924
{
1925
static $2 ac_aggr;
1926
if (sizeof ac_aggr.$3)
1927
return 0;
1928
  ;
1929
  return 0;
1930
}
1931
_ACEOF
1932
if ac_fn_c_try_compile "$LINENO"; then :
1933
  eval "$4=yes"
1934
else
1935
  eval "$4=no"
1936
fi
1937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938
fi
1939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940
fi
1941
eval ac_res=\$$4
1942
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943
$as_echo "$ac_res" >&6; }
1944
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
 
1946
} # ac_fn_c_check_member
1947
cat >config.log <<_ACEOF
1948
This file contains any messages produced by compilers while
1949
running configure, to aid debugging if configure makes a mistake.
1950
 
1951
It was created by $as_me, which was
1952
generated by GNU Autoconf 2.64.  Invocation command line was
1953
 
1954
  $ $0 $@
1955
 
1956
_ACEOF
1957
exec 5>>config.log
1958
{
1959
cat <<_ASUNAME
1960
## --------- ##
1961
## Platform. ##
1962
## --------- ##
1963
 
1964
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
 
1970
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1972
 
1973
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1974
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1975
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1977
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1978
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1979
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1980
 
1981
_ASUNAME
1982
 
1983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984
for as_dir in $PATH
1985
do
1986
  IFS=$as_save_IFS
1987
  test -z "$as_dir" && as_dir=.
1988
    $as_echo "PATH: $as_dir"
1989
  done
1990
IFS=$as_save_IFS
1991
 
1992
} >&5
1993
 
1994
cat >&5 <<_ACEOF
1995
 
1996
 
1997
## ----------- ##
1998
## Core tests. ##
1999
## ----------- ##
2000
 
2001
_ACEOF
2002
 
2003
 
2004
# Keep a trace of the command line.
2005
# Strip out --no-create and --no-recursion so they do not pile up.
2006
# Strip out --silent because we don't want to record it for future runs.
2007
# Also quote any args containing shell meta-characters.
2008
# Make two passes to allow for proper duplicate-argument suppression.
2009
ac_configure_args=
2010
ac_configure_args0=
2011
ac_configure_args1=
2012
ac_must_keep_next=false
2013
for ac_pass in 1 2
2014
do
2015
  for ac_arg
2016
  do
2017
    case $ac_arg in
2018
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020
    | -silent | --silent | --silen | --sile | --sil)
2021
      continue ;;
2022
    *\'*)
2023
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024
    esac
2025
    case $ac_pass in
2026
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027
    2)
2028
      as_fn_append ac_configure_args1 " '$ac_arg'"
2029
      if test $ac_must_keep_next = true; then
2030
        ac_must_keep_next=false # Got value, back to normal.
2031
      else
2032
        case $ac_arg in
2033
          *=* | --config-cache | -C | -disable-* | --disable-* \
2034
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036
          | -with-* | --with-* | -without-* | --without-* | --x)
2037
            case "$ac_configure_args0 " in
2038
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039
            esac
2040
            ;;
2041
          -* ) ac_must_keep_next=true ;;
2042
        esac
2043
      fi
2044
      as_fn_append ac_configure_args " '$ac_arg'"
2045
      ;;
2046
    esac
2047
  done
2048
done
2049
{ ac_configure_args0=; unset ac_configure_args0;}
2050
{ ac_configure_args1=; unset ac_configure_args1;}
2051
 
2052
# When interrupted or exit'd, cleanup temporary files, and complete
2053
# config.log.  We remove comments because anyway the quotes in there
2054
# would cause problems or look ugly.
2055
# WARNING: Use '\'' to represent an apostrophe within the trap.
2056
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057
trap 'exit_status=$?
2058
  # Save into config.log some information that might help in debugging.
2059
  {
2060
    echo
2061
 
2062
    cat <<\_ASBOX
2063
## ---------------- ##
2064
## Cache variables. ##
2065
## ---------------- ##
2066
_ASBOX
2067
    echo
2068
    # The following way of writing the cache mishandles newlines in values,
2069
(
2070
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071
    eval ac_val=\$$ac_var
2072
    case $ac_val in #(
2073
    *${as_nl}*)
2074
      case $ac_var in #(
2075
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077
      esac
2078
      case $ac_var in #(
2079
      _ | IFS | as_nl) ;; #(
2080
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081
      *) { eval $ac_var=; unset $ac_var;} ;;
2082
      esac ;;
2083
    esac
2084
  done
2085
  (set) 2>&1 |
2086
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087
    *${as_nl}ac_space=\ *)
2088
      sed -n \
2089
        "s/'\''/'\''\\\\'\'''\''/g;
2090
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091
      ;; #(
2092
    *)
2093
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094
      ;;
2095
    esac |
2096
    sort
2097
)
2098
    echo
2099
 
2100
    cat <<\_ASBOX
2101
## ----------------- ##
2102
## Output variables. ##
2103
## ----------------- ##
2104
_ASBOX
2105
    echo
2106
    for ac_var in $ac_subst_vars
2107
    do
2108
      eval ac_val=\$$ac_var
2109
      case $ac_val in
2110
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111
      esac
2112
      $as_echo "$ac_var='\''$ac_val'\''"
2113
    done | sort
2114
    echo
2115
 
2116
    if test -n "$ac_subst_files"; then
2117
      cat <<\_ASBOX
2118
## ------------------- ##
2119
## File substitutions. ##
2120
## ------------------- ##
2121
_ASBOX
2122
      echo
2123
      for ac_var in $ac_subst_files
2124
      do
2125
        eval ac_val=\$$ac_var
2126
        case $ac_val in
2127
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128
        esac
2129
        $as_echo "$ac_var='\''$ac_val'\''"
2130
      done | sort
2131
      echo
2132
    fi
2133
 
2134
    if test -s confdefs.h; then
2135
      cat <<\_ASBOX
2136
## ----------- ##
2137
## confdefs.h. ##
2138
## ----------- ##
2139
_ASBOX
2140
      echo
2141
      cat confdefs.h
2142
      echo
2143
    fi
2144
    test "$ac_signal" != 0 &&
2145
      $as_echo "$as_me: caught signal $ac_signal"
2146
    $as_echo "$as_me: exit $exit_status"
2147
  } >&5
2148
  rm -f core *.core core.conftest.* &&
2149
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150
    exit $exit_status
2151
' 0
2152
for ac_signal in 1 2 13 15; do
2153
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154
done
2155
ac_signal=0
2156
 
2157
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2158
rm -f -r conftest* confdefs.h
2159
 
2160
$as_echo "/* confdefs.h */" > confdefs.h
2161
 
2162
# Predefined preprocessor variables.
2163
 
2164
cat >>confdefs.h <<_ACEOF
2165
#define PACKAGE_NAME "$PACKAGE_NAME"
2166
_ACEOF
2167
 
2168
cat >>confdefs.h <<_ACEOF
2169
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170
_ACEOF
2171
 
2172
cat >>confdefs.h <<_ACEOF
2173
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174
_ACEOF
2175
 
2176
cat >>confdefs.h <<_ACEOF
2177
#define PACKAGE_STRING "$PACKAGE_STRING"
2178
_ACEOF
2179
 
2180
cat >>confdefs.h <<_ACEOF
2181
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182
_ACEOF
2183
 
2184
cat >>confdefs.h <<_ACEOF
2185
#define PACKAGE_URL "$PACKAGE_URL"
2186
_ACEOF
2187
 
2188
 
2189
# Let the site file select an alternate cache file if it wants to.
2190
# Prefer an explicitly selected file to automatically selected ones.
2191
ac_site_file1=NONE
2192
ac_site_file2=NONE
2193
if test -n "$CONFIG_SITE"; then
2194
  ac_site_file1=$CONFIG_SITE
2195
elif test "x$prefix" != xNONE; then
2196
  ac_site_file1=$prefix/share/config.site
2197
  ac_site_file2=$prefix/etc/config.site
2198
else
2199
  ac_site_file1=$ac_default_prefix/share/config.site
2200
  ac_site_file2=$ac_default_prefix/etc/config.site
2201
fi
2202
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203
do
2204
  test "x$ac_site_file" = xNONE && continue
2205
  if test -r "$ac_site_file"; then
2206
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208
    sed 's/^/| /' "$ac_site_file" >&5
2209
    . "$ac_site_file"
2210
  fi
2211
done
2212
 
2213
if test -r "$cache_file"; then
2214
  # Some versions of bash will fail to source /dev/null (special
2215
  # files actually), so we avoid doing that.
2216
  if test -f "$cache_file"; then
2217
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218
$as_echo "$as_me: loading cache $cache_file" >&6;}
2219
    case $cache_file in
2220
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221
      *)                      . "./$cache_file";;
2222
    esac
2223
  fi
2224
else
2225
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226
$as_echo "$as_me: creating cache $cache_file" >&6;}
2227
  >$cache_file
2228
fi
2229
 
2230
# Check that the precious variables saved in the cache have kept the same
2231
# value.
2232
ac_cache_corrupted=false
2233
for ac_var in $ac_precious_vars; do
2234
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235
  eval ac_new_set=\$ac_env_${ac_var}_set
2236
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237
  eval ac_new_val=\$ac_env_${ac_var}_value
2238
  case $ac_old_set,$ac_new_set in
2239
    set,)
2240
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242
      ac_cache_corrupted=: ;;
2243
    ,set)
2244
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246
      ac_cache_corrupted=: ;;
2247
    ,);;
2248
    *)
2249
      if test "x$ac_old_val" != "x$ac_new_val"; then
2250
        # differences in whitespace do not lead to failure.
2251
        ac_old_val_w=`echo x $ac_old_val`
2252
        ac_new_val_w=`echo x $ac_new_val`
2253
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256
          ac_cache_corrupted=:
2257
        else
2258
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260
          eval $ac_var=\$ac_old_val
2261
        fi
2262
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2263
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2264
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2265
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2266
      fi;;
2267
  esac
2268
  # Pass precious variables to config.status.
2269
  if test "$ac_new_set" = set; then
2270
    case $ac_new_val in
2271
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272
    *) ac_arg=$ac_var=$ac_new_val ;;
2273
    esac
2274
    case " $ac_configure_args " in
2275
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2276
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277
    esac
2278
  fi
2279
done
2280
if $ac_cache_corrupted; then
2281
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286
fi
2287
## -------------------- ##
2288
## Main body of script. ##
2289
## -------------------- ##
2290
 
2291
ac_ext=c
2292
ac_cpp='$CPP $CPPFLAGS'
2293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
 
2297
 
2298
 
2299
 
2300
 
2301
 
2302
# This works around the fact that libtool configuration may change LD
2303
# for this particular configuration, but some shells, instead of
2304
# keeping the changes in LD private, export them just because LD is
2305
# exported.
2306
ORIGINAL_LD_FOR_MULTILIBS=$LD
2307
 
2308
# Default to --enable-multilib
2309
# Check whether --enable-multilib was given.
2310
if test "${enable_multilib+set}" = set; then :
2311
  enableval=$enable_multilib; case "$enableval" in
2312
  yes) multilib=yes ;;
2313
  no)  multilib=no ;;
2314
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2315
 esac
2316
else
2317
  multilib=yes
2318
fi
2319
 
2320
 
2321
# We may get other options which we leave undocumented:
2322
# --with-target-subdir, --with-multisrctop, --with-multisubdir
2323
# See config-ml.in if you want the gory details.
2324
 
2325
if test "$srcdir" = "."; then
2326
  if test "$with_target_subdir" != "."; then
2327
    multi_basedir="$srcdir/$with_multisrctop../.."
2328
  else
2329
    multi_basedir="$srcdir/$with_multisrctop.."
2330
  fi
2331
else
2332
  multi_basedir="$srcdir/.."
2333
fi
2334
 
2335
 
2336
# Even if the default multilib is not a cross compilation,
2337
# it may be that some of the other multilibs are.
2338
if test $cross_compiling = no && test $multilib = yes \
2339
   && test "x${with_multisubdir}" != x ; then
2340
   cross_compiling=maybe
2341
fi
2342
 
2343
ac_config_commands="$ac_config_commands default-1"
2344
 
2345
 
2346
ac_aux_dir=
2347
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348
  for ac_t in install-sh install.sh shtool; do
2349
    if test -f "$ac_dir/$ac_t"; then
2350
      ac_aux_dir=$ac_dir
2351
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2352
      break 2
2353
    fi
2354
  done
2355
done
2356
if test -z "$ac_aux_dir"; then
2357
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2358
fi
2359
 
2360
# These three variables are undocumented and unsupported,
2361
# and are intended to be withdrawn in a future Autoconf release.
2362
# They can cause serious problems if a builder's source tree is in a directory
2363
# whose full name contains unusual characters.
2364
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2365
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2366
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2367
 
2368
 
2369
# Make sure we can run config.sub.
2370
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2371
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372
 
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2374
$as_echo_n "checking build system type... " >&6; }
2375
if test "${ac_cv_build+set}" = set; then :
2376
  $as_echo_n "(cached) " >&6
2377
else
2378
  ac_build_alias=$build_alias
2379
test "x$ac_build_alias" = x &&
2380
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381
test "x$ac_build_alias" = x &&
2382
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2383
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2384
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2385
 
2386
fi
2387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2388
$as_echo "$ac_cv_build" >&6; }
2389
case $ac_cv_build in
2390
*-*-*) ;;
2391
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2392
esac
2393
build=$ac_cv_build
2394
ac_save_IFS=$IFS; IFS='-'
2395
set x $ac_cv_build
2396
shift
2397
build_cpu=$1
2398
build_vendor=$2
2399
shift; shift
2400
# Remember, the first character of IFS is used to create $*,
2401
# except with old shells:
2402
build_os=$*
2403
IFS=$ac_save_IFS
2404
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2405
 
2406
 
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408
$as_echo_n "checking host system type... " >&6; }
2409
if test "${ac_cv_host+set}" = set; then :
2410
  $as_echo_n "(cached) " >&6
2411
else
2412
  if test "x$host_alias" = x; then
2413
  ac_cv_host=$ac_cv_build
2414
else
2415
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2417
fi
2418
 
2419
fi
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421
$as_echo "$ac_cv_host" >&6; }
2422
case $ac_cv_host in
2423
*-*-*) ;;
2424
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2425
esac
2426
host=$ac_cv_host
2427
ac_save_IFS=$IFS; IFS='-'
2428
set x $ac_cv_host
2429
shift
2430
host_cpu=$1
2431
host_vendor=$2
2432
shift; shift
2433
# Remember, the first character of IFS is used to create $*,
2434
# except with old shells:
2435
host_os=$*
2436
IFS=$ac_save_IFS
2437
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438
 
2439
 
2440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441
$as_echo_n "checking target system type... " >&6; }
2442
if test "${ac_cv_target+set}" = set; then :
2443
  $as_echo_n "(cached) " >&6
2444
else
2445
  if test "x$target_alias" = x; then
2446
  ac_cv_target=$ac_cv_host
2447
else
2448
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2450
fi
2451
 
2452
fi
2453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454
$as_echo "$ac_cv_target" >&6; }
2455
case $ac_cv_target in
2456
*-*-*) ;;
2457
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2458
esac
2459
target=$ac_cv_target
2460
ac_save_IFS=$IFS; IFS='-'
2461
set x $ac_cv_target
2462
shift
2463
target_cpu=$1
2464
target_vendor=$2
2465
shift; shift
2466
# Remember, the first character of IFS is used to create $*,
2467
# except with old shells:
2468
target_os=$*
2469
IFS=$ac_save_IFS
2470
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2471
 
2472
 
2473
# The aliases save the names the user supplied, while $host etc.
2474
# will get canonicalized.
2475
test -n "$target_alias" &&
2476
  test "$program_prefix$program_suffix$program_transform_name" = \
2477
    NONENONEs,x,x, &&
2478
  program_prefix=${target_alias}-
2479
 
2480
# Get the 'noncanonical' system names.
2481
 case ${build_alias} in
2482
  "") build_noncanonical=${build} ;;
2483
  *) build_noncanonical=${build_alias} ;;
2484
esac
2485
 
2486
 case ${host_alias} in
2487
  "") host_noncanonical=${build_noncanonical} ;;
2488
  *) host_noncanonical=${host_alias} ;;
2489
esac
2490
 
2491
 case ${target_alias} in
2492
  "") target_noncanonical=${host_noncanonical} ;;
2493
  *) target_noncanonical=${target_alias} ;;
2494
esac
2495
 
2496
 
2497
 
2498
 
2499
# This works around an automake problem.
2500
mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2501
 
2502
 
2503
am__api_version='1.11'
2504
 
2505
# Find a good install program.  We prefer a C program (faster),
2506
# so one script is as good as another.  But avoid the broken or
2507
# incompatible versions:
2508
# SysV /etc/install, /usr/sbin/install
2509
# SunOS /usr/etc/install
2510
# IRIX /sbin/install
2511
# AIX /bin/install
2512
# AmigaOS /C/install, which installs bootblocks on floppy discs
2513
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516
# OS/2's system install, which has a completely different semantic
2517
# ./install, which can be erroneously created by make from ./install.sh.
2518
# Reject install programs that cannot install multiple files.
2519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2521
if test -z "$INSTALL"; then
2522
if test "${ac_cv_path_install+set}" = set; then :
2523
  $as_echo_n "(cached) " >&6
2524
else
2525
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526
for as_dir in $PATH
2527
do
2528
  IFS=$as_save_IFS
2529
  test -z "$as_dir" && as_dir=.
2530
    # Account for people who put trailing slashes in PATH elements.
2531
case $as_dir/ in #((
2532
  ./ | .// | /[cC]/* | \
2533
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535
  /usr/ucb/* ) ;;
2536
  *)
2537
    # OSF1 and SCO ODT 3.0 have their own names for install.
2538
    # Don't use installbsd from OSF since it installs stuff as root
2539
    # by default.
2540
    for ac_prog in ginstall scoinst install; do
2541
      for ac_exec_ext in '' $ac_executable_extensions; do
2542
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2543
          if test $ac_prog = install &&
2544
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545
            # AIX install.  It has an incompatible calling convention.
2546
            :
2547
          elif test $ac_prog = install &&
2548
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549
            # program-specific install script used by HP pwplus--don't use.
2550
            :
2551
          else
2552
            rm -rf conftest.one conftest.two conftest.dir
2553
            echo one > conftest.one
2554
            echo two > conftest.two
2555
            mkdir conftest.dir
2556
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557
              test -s conftest.one && test -s conftest.two &&
2558
              test -s conftest.dir/conftest.one &&
2559
              test -s conftest.dir/conftest.two
2560
            then
2561
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562
              break 3
2563
            fi
2564
          fi
2565
        fi
2566
      done
2567
    done
2568
    ;;
2569
esac
2570
 
2571
  done
2572
IFS=$as_save_IFS
2573
 
2574
rm -rf conftest.one conftest.two conftest.dir
2575
 
2576
fi
2577
  if test "${ac_cv_path_install+set}" = set; then
2578
    INSTALL=$ac_cv_path_install
2579
  else
2580
    # As a last resort, use the slow shell script.  Don't cache a
2581
    # value for INSTALL within a source directory, because that will
2582
    # break other packages using the cache if that directory is
2583
    # removed, or if the value is a relative name.
2584
    INSTALL=$ac_install_sh
2585
  fi
2586
fi
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588
$as_echo "$INSTALL" >&6; }
2589
 
2590
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591
# It thinks the first close brace ends the variable substitution.
2592
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
 
2594
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
 
2596
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
 
2598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599
$as_echo_n "checking whether build environment is sane... " >&6; }
2600
# Just in case
2601
sleep 1
2602
echo timestamp > conftest.file
2603
# Reject unsafe characters in $srcdir or the absolute working directory
2604
# name.  Accept space and tab only in the latter.
2605
am_lf='
2606
'
2607
case `pwd` in
2608
  *[\\\"\#\$\&\'\`$am_lf]*)
2609
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2610
esac
2611
case $srcdir in
2612
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2613
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2614
esac
2615
 
2616
# Do `set' in a subshell so we don't clobber the current shell's
2617
# arguments.  Must try -L first in case configure is actually a
2618
# symlink; some systems play weird games with the mod time of symlinks
2619
# (eg FreeBSD returns the mod time of the symlink's containing
2620
# directory).
2621
if (
2622
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623
   if test "$*" = "X"; then
2624
      # -L didn't work.
2625
      set X `ls -t "$srcdir/configure" conftest.file`
2626
   fi
2627
   rm -f conftest.file
2628
   if test "$*" != "X $srcdir/configure conftest.file" \
2629
      && test "$*" != "X conftest.file $srcdir/configure"; then
2630
 
2631
      # If neither matched, then we have a broken ls.  This can happen
2632
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2633
      # broken ls alias from the environment.  This has actually
2634
      # happened.  Such a system could not be considered "sane".
2635
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2636
alias in your environment" "$LINENO" 5
2637
   fi
2638
 
2639
   test "$2" = conftest.file
2640
   )
2641
then
2642
   # Ok.
2643
   :
2644
else
2645
   as_fn_error "newly created file is older than distributed files!
2646
Check your system clock" "$LINENO" 5
2647
fi
2648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649
$as_echo "yes" >&6; }
2650
test "$program_prefix" != NONE &&
2651
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2652
# Use a double $ so make ignores it.
2653
test "$program_suffix" != NONE &&
2654
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2655
# Double any \ or $.
2656
# By default was `s,x,x', remove it if useless.
2657
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2658
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2659
 
2660
# expand $ac_aux_dir to an absolute path
2661
am_aux_dir=`cd $ac_aux_dir && pwd`
2662
 
2663
if test x"${MISSING+set}" != xset; then
2664
  case $am_aux_dir in
2665
  *\ * | *\     *)
2666
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2667
  *)
2668
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2669
  esac
2670
fi
2671
# Use eval to expand $SHELL
2672
if eval "$MISSING --run true"; then
2673
  am_missing_run="$MISSING --run "
2674
else
2675
  am_missing_run=
2676
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2677
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2678
fi
2679
 
2680
if test x"${install_sh}" != xset; then
2681
  case $am_aux_dir in
2682
  *\ * | *\     *)
2683
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2684
  *)
2685
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2686
  esac
2687
fi
2688
 
2689
# Installed binaries are usually stripped using `strip' when the user
2690
# run `make install-strip'.  However `strip' might not be the right
2691
# tool to use in cross-compilation environments, therefore Automake
2692
# will honor the `STRIP' environment variable to overrule this program.
2693
if test "$cross_compiling" != no; then
2694
  if test -n "$ac_tool_prefix"; then
2695
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696
set dummy ${ac_tool_prefix}strip; ac_word=$2
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698
$as_echo_n "checking for $ac_word... " >&6; }
2699
if test "${ac_cv_prog_STRIP+set}" = set; then :
2700
  $as_echo_n "(cached) " >&6
2701
else
2702
  if test -n "$STRIP"; then
2703
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2704
else
2705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706
for as_dir in $PATH
2707
do
2708
  IFS=$as_save_IFS
2709
  test -z "$as_dir" && as_dir=.
2710
    for ac_exec_ext in '' $ac_executable_extensions; do
2711
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2713
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714
    break 2
2715
  fi
2716
done
2717
  done
2718
IFS=$as_save_IFS
2719
 
2720
fi
2721
fi
2722
STRIP=$ac_cv_prog_STRIP
2723
if test -n "$STRIP"; then
2724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2725
$as_echo "$STRIP" >&6; }
2726
else
2727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728
$as_echo "no" >&6; }
2729
fi
2730
 
2731
 
2732
fi
2733
if test -z "$ac_cv_prog_STRIP"; then
2734
  ac_ct_STRIP=$STRIP
2735
  # Extract the first word of "strip", so it can be a program name with args.
2736
set dummy strip; ac_word=$2
2737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738
$as_echo_n "checking for $ac_word... " >&6; }
2739
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2740
  $as_echo_n "(cached) " >&6
2741
else
2742
  if test -n "$ac_ct_STRIP"; then
2743
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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
    for ac_exec_ext in '' $ac_executable_extensions; do
2751
  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_STRIP="strip"
2753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754
    break 2
2755
  fi
2756
done
2757
  done
2758
IFS=$as_save_IFS
2759
 
2760
fi
2761
fi
2762
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2763
if test -n "$ac_ct_STRIP"; then
2764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2765
$as_echo "$ac_ct_STRIP" >&6; }
2766
else
2767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768
$as_echo "no" >&6; }
2769
fi
2770
 
2771
  if test "x$ac_ct_STRIP" = x; then
2772
    STRIP=":"
2773
  else
2774
    case $cross_compiling:$ac_tool_warned in
2775
yes:)
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778
ac_tool_warned=yes ;;
2779
esac
2780
    STRIP=$ac_ct_STRIP
2781
  fi
2782
else
2783
  STRIP="$ac_cv_prog_STRIP"
2784
fi
2785
 
2786
fi
2787
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2788
 
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2790
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791
if test -z "$MKDIR_P"; then
2792
  if test "${ac_cv_path_mkdir+set}" = set; then :
2793
  $as_echo_n "(cached) " >&6
2794
else
2795
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2797
do
2798
  IFS=$as_save_IFS
2799
  test -z "$as_dir" && as_dir=.
2800
    for ac_prog in mkdir gmkdir; do
2801
         for ac_exec_ext in '' $ac_executable_extensions; do
2802
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2803
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804
             'mkdir (GNU coreutils) '* | \
2805
             'mkdir (coreutils) '* | \
2806
             'mkdir (fileutils) '4.1*)
2807
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2808
               break 3;;
2809
           esac
2810
         done
2811
       done
2812
  done
2813
IFS=$as_save_IFS
2814
 
2815
fi
2816
 
2817
  if test "${ac_cv_path_mkdir+set}" = set; then
2818
    MKDIR_P="$ac_cv_path_mkdir -p"
2819
  else
2820
    # As a last resort, use the slow shell script.  Don't cache a
2821
    # value for MKDIR_P within a source directory, because that will
2822
    # break other packages using the cache if that directory is
2823
    # removed, or if the value is a relative name.
2824
    test -d ./--version && rmdir ./--version
2825
    MKDIR_P="$ac_install_sh -d"
2826
  fi
2827
fi
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2829
$as_echo "$MKDIR_P" >&6; }
2830
 
2831
mkdir_p="$MKDIR_P"
2832
case $mkdir_p in
2833
  [\\/$]* | ?:[\\/]*) ;;
2834
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2835
esac
2836
 
2837
for ac_prog in gawk mawk nawk awk
2838
do
2839
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2840
set dummy $ac_prog; ac_word=$2
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842
$as_echo_n "checking for $ac_word... " >&6; }
2843
if test "${ac_cv_prog_AWK+set}" = set; then :
2844
  $as_echo_n "(cached) " >&6
2845
else
2846
  if test -n "$AWK"; then
2847
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848
else
2849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850
for as_dir in $PATH
2851
do
2852
  IFS=$as_save_IFS
2853
  test -z "$as_dir" && as_dir=.
2854
    for ac_exec_ext in '' $ac_executable_extensions; do
2855
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856
    ac_cv_prog_AWK="$ac_prog"
2857
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858
    break 2
2859
  fi
2860
done
2861
  done
2862
IFS=$as_save_IFS
2863
 
2864
fi
2865
fi
2866
AWK=$ac_cv_prog_AWK
2867
if test -n "$AWK"; then
2868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2869
$as_echo "$AWK" >&6; }
2870
else
2871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872
$as_echo "no" >&6; }
2873
fi
2874
 
2875
 
2876
  test -n "$AWK" && break
2877
done
2878
 
2879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2881
set x ${MAKE-make}
2882
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2884
  $as_echo_n "(cached) " >&6
2885
else
2886
  cat >conftest.make <<\_ACEOF
2887
SHELL = /bin/sh
2888
all:
2889
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2890
_ACEOF
2891
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2892
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2893
  *@@@%%%=?*=@@@%%%*)
2894
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2895
  *)
2896
    eval ac_cv_prog_make_${ac_make}_set=no;;
2897
esac
2898
rm -f conftest.make
2899
fi
2900
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2901
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902
$as_echo "yes" >&6; }
2903
  SET_MAKE=
2904
else
2905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906
$as_echo "no" >&6; }
2907
  SET_MAKE="MAKE=${MAKE-make}"
2908
fi
2909
 
2910
rm -rf .tst 2>/dev/null
2911
mkdir .tst 2>/dev/null
2912
if test -d .tst; then
2913
  am__leading_dot=.
2914
else
2915
  am__leading_dot=_
2916
fi
2917
rmdir .tst 2>/dev/null
2918
 
2919
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921
  # is not polluted with repeated "-I."
2922
  am__isrc=' -I$(srcdir)'
2923
  # test to see if srcdir already configured
2924
  if test -f $srcdir/config.status; then
2925
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2926
  fi
2927
fi
2928
 
2929
# test whether we have cygpath
2930
if test -z "$CYGPATH_W"; then
2931
  if (cygpath --version) >/dev/null 2>/dev/null; then
2932
    CYGPATH_W='cygpath -w'
2933
  else
2934
    CYGPATH_W=echo
2935
  fi
2936
fi
2937
 
2938
 
2939
# Define the identity of the package.
2940
 PACKAGE=gc
2941
 VERSION=6.6
2942
 
2943
 
2944
# Some tools Automake needs.
2945
 
2946
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947
 
2948
 
2949
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
 
2951
 
2952
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
 
2954
 
2955
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
 
2957
 
2958
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
 
2960
# We need awk for the "check" target.  The system "awk" is bad on
2961
# some platforms.
2962
# Always define AMTAR for backward compatibility.
2963
 
2964
AMTAR=${AMTAR-"${am_missing_run}tar"}
2965
 
2966
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967
 
2968
 
2969
 
2970
 
2971
 
2972
 
2973
# The autoconf 2.5x version of the no-executables hack.
2974
 
2975
 
2976
# Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
2977
# the wrong, non-multilib-adjusted value will be used in multilibs.
2978
# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2979
 
2980
 
2981
 
2982
ac_ext=c
2983
ac_cpp='$CPP $CPPFLAGS'
2984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987
if test -n "$ac_tool_prefix"; then
2988
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991
$as_echo_n "checking for $ac_word... " >&6; }
2992
if test "${ac_cv_prog_CC+set}" = set; then :
2993
  $as_echo_n "(cached) " >&6
2994
else
2995
  if test -n "$CC"; then
2996
  ac_cv_prog_CC="$CC" # Let the user override the test.
2997
else
2998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999
for as_dir in $PATH
3000
do
3001
  IFS=$as_save_IFS
3002
  test -z "$as_dir" && as_dir=.
3003
    for ac_exec_ext in '' $ac_executable_extensions; do
3004
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007
    break 2
3008
  fi
3009
done
3010
  done
3011
IFS=$as_save_IFS
3012
 
3013
fi
3014
fi
3015
CC=$ac_cv_prog_CC
3016
if test -n "$CC"; then
3017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018
$as_echo "$CC" >&6; }
3019
else
3020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021
$as_echo "no" >&6; }
3022
fi
3023
 
3024
 
3025
fi
3026
if test -z "$ac_cv_prog_CC"; then
3027
  ac_ct_CC=$CC
3028
  # Extract the first word of "gcc", so it can be a program name with args.
3029
set dummy gcc; ac_word=$2
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031
$as_echo_n "checking for $ac_word... " >&6; }
3032
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3033
  $as_echo_n "(cached) " >&6
3034
else
3035
  if test -n "$ac_ct_CC"; then
3036
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037
else
3038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039
for as_dir in $PATH
3040
do
3041
  IFS=$as_save_IFS
3042
  test -z "$as_dir" && as_dir=.
3043
    for ac_exec_ext in '' $ac_executable_extensions; do
3044
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045
    ac_cv_prog_ac_ct_CC="gcc"
3046
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047
    break 2
3048
  fi
3049
done
3050
  done
3051
IFS=$as_save_IFS
3052
 
3053
fi
3054
fi
3055
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056
if test -n "$ac_ct_CC"; then
3057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058
$as_echo "$ac_ct_CC" >&6; }
3059
else
3060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061
$as_echo "no" >&6; }
3062
fi
3063
 
3064
  if test "x$ac_ct_CC" = x; then
3065
    CC=""
3066
  else
3067
    case $cross_compiling:$ac_tool_warned in
3068
yes:)
3069
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071
ac_tool_warned=yes ;;
3072
esac
3073
    CC=$ac_ct_CC
3074
  fi
3075
else
3076
  CC="$ac_cv_prog_CC"
3077
fi
3078
 
3079
if test -z "$CC"; then
3080
          if test -n "$ac_tool_prefix"; then
3081
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082
set dummy ${ac_tool_prefix}cc; ac_word=$2
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084
$as_echo_n "checking for $ac_word... " >&6; }
3085
if test "${ac_cv_prog_CC+set}" = set; then :
3086
  $as_echo_n "(cached) " >&6
3087
else
3088
  if test -n "$CC"; then
3089
  ac_cv_prog_CC="$CC" # Let the user override the test.
3090
else
3091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092
for as_dir in $PATH
3093
do
3094
  IFS=$as_save_IFS
3095
  test -z "$as_dir" && as_dir=.
3096
    for ac_exec_ext in '' $ac_executable_extensions; do
3097
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3099
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100
    break 2
3101
  fi
3102
done
3103
  done
3104
IFS=$as_save_IFS
3105
 
3106
fi
3107
fi
3108
CC=$ac_cv_prog_CC
3109
if test -n "$CC"; then
3110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111
$as_echo "$CC" >&6; }
3112
else
3113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114
$as_echo "no" >&6; }
3115
fi
3116
 
3117
 
3118
  fi
3119
fi
3120
if test -z "$CC"; then
3121
  # Extract the first word of "cc", so it can be a program name with args.
3122
set dummy cc; ac_word=$2
3123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124
$as_echo_n "checking for $ac_word... " >&6; }
3125
if test "${ac_cv_prog_CC+set}" = set; then :
3126
  $as_echo_n "(cached) " >&6
3127
else
3128
  if test -n "$CC"; then
3129
  ac_cv_prog_CC="$CC" # Let the user override the test.
3130
else
3131
  ac_prog_rejected=no
3132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133
for as_dir in $PATH
3134
do
3135
  IFS=$as_save_IFS
3136
  test -z "$as_dir" && as_dir=.
3137
    for ac_exec_ext in '' $ac_executable_extensions; do
3138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140
       ac_prog_rejected=yes
3141
       continue
3142
     fi
3143
    ac_cv_prog_CC="cc"
3144
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145
    break 2
3146
  fi
3147
done
3148
  done
3149
IFS=$as_save_IFS
3150
 
3151
if test $ac_prog_rejected = yes; then
3152
  # We found a bogon in the path, so make sure we never use it.
3153
  set dummy $ac_cv_prog_CC
3154
  shift
3155
  if test $# != 0; then
3156
    # We chose a different compiler from the bogus one.
3157
    # However, it has the same basename, so the bogon will be chosen
3158
    # first if we set CC to just the basename; use the full file name.
3159
    shift
3160
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161
  fi
3162
fi
3163
fi
3164
fi
3165
CC=$ac_cv_prog_CC
3166
if test -n "$CC"; then
3167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168
$as_echo "$CC" >&6; }
3169
else
3170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171
$as_echo "no" >&6; }
3172
fi
3173
 
3174
 
3175
fi
3176
if test -z "$CC"; then
3177
  if test -n "$ac_tool_prefix"; then
3178
  for ac_prog in cl.exe
3179
  do
3180
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183
$as_echo_n "checking for $ac_word... " >&6; }
3184
if test "${ac_cv_prog_CC+set}" = set; then :
3185
  $as_echo_n "(cached) " >&6
3186
else
3187
  if test -n "$CC"; then
3188
  ac_cv_prog_CC="$CC" # Let the user override the test.
3189
else
3190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191
for as_dir in $PATH
3192
do
3193
  IFS=$as_save_IFS
3194
  test -z "$as_dir" && as_dir=.
3195
    for ac_exec_ext in '' $ac_executable_extensions; do
3196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199
    break 2
3200
  fi
3201
done
3202
  done
3203
IFS=$as_save_IFS
3204
 
3205
fi
3206
fi
3207
CC=$ac_cv_prog_CC
3208
if test -n "$CC"; then
3209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210
$as_echo "$CC" >&6; }
3211
else
3212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213
$as_echo "no" >&6; }
3214
fi
3215
 
3216
 
3217
    test -n "$CC" && break
3218
  done
3219
fi
3220
if test -z "$CC"; then
3221
  ac_ct_CC=$CC
3222
  for ac_prog in cl.exe
3223
do
3224
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3225
set dummy $ac_prog; ac_word=$2
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227
$as_echo_n "checking for $ac_word... " >&6; }
3228
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3229
  $as_echo_n "(cached) " >&6
3230
else
3231
  if test -n "$ac_ct_CC"; then
3232
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233
else
3234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235
for as_dir in $PATH
3236
do
3237
  IFS=$as_save_IFS
3238
  test -z "$as_dir" && as_dir=.
3239
    for ac_exec_ext in '' $ac_executable_extensions; do
3240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241
    ac_cv_prog_ac_ct_CC="$ac_prog"
3242
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243
    break 2
3244
  fi
3245
done
3246
  done
3247
IFS=$as_save_IFS
3248
 
3249
fi
3250
fi
3251
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252
if test -n "$ac_ct_CC"; then
3253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254
$as_echo "$ac_ct_CC" >&6; }
3255
else
3256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257
$as_echo "no" >&6; }
3258
fi
3259
 
3260
 
3261
  test -n "$ac_ct_CC" && break
3262
done
3263
 
3264
  if test "x$ac_ct_CC" = x; then
3265
    CC=""
3266
  else
3267
    case $cross_compiling:$ac_tool_warned in
3268
yes:)
3269
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271
ac_tool_warned=yes ;;
3272
esac
3273
    CC=$ac_ct_CC
3274
  fi
3275
fi
3276
 
3277
fi
3278
 
3279
 
3280
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282
as_fn_error "no acceptable C compiler found in \$PATH
3283
See \`config.log' for more details." "$LINENO" 5; }
3284
 
3285
# Provide some information about the compiler.
3286
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287
set X $ac_compile
3288
ac_compiler=$2
3289
for ac_option in --version -v -V -qversion; do
3290
  { { ac_try="$ac_compiler $ac_option >&5"
3291
case "(($ac_try" in
3292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293
  *) ac_try_echo=$ac_try;;
3294
esac
3295
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296
$as_echo "$ac_try_echo"; } >&5
3297
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298
  ac_status=$?
3299
  if test -s conftest.err; then
3300
    sed '10a\
3301
... rest of stderr output deleted ...
3302
         10q' conftest.err >conftest.er1
3303
    cat conftest.er1 >&5
3304
    rm -f conftest.er1 conftest.err
3305
  fi
3306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307
  test $ac_status = 0; }
3308
done
3309
 
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311
/* end confdefs.h.  */
3312
 
3313
int
3314
main ()
3315
{
3316
 
3317
  ;
3318
  return 0;
3319
}
3320
_ACEOF
3321
# FIXME: Cleanup?
3322
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3323
  (eval $ac_link) 2>&5
3324
  ac_status=$?
3325
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326
  test $ac_status = 0; }; then :
3327
  gcc_no_link=no
3328
else
3329
  gcc_no_link=yes
3330
fi
3331
if test x$gcc_no_link = xyes; then
3332
  # Setting cross_compile will disable run tests; it will
3333
  # also disable AC_CHECK_FILE but that's generally
3334
  # correct if we can't link.
3335
  cross_compiling=yes
3336
  EXEEXT=
3337
else
3338
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339
/* end confdefs.h.  */
3340
 
3341
int
3342
main ()
3343
{
3344
 
3345
  ;
3346
  return 0;
3347
}
3348
_ACEOF
3349
ac_clean_files_save=$ac_clean_files
3350
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3351
# Try to create an executable without -o first, disregard a.out.
3352
# It will help us diagnose broken compilers, and finding out an intuition
3353
# of exeext.
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355
$as_echo_n "checking for C compiler default output file name... " >&6; }
3356
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3357
 
3358
# The possible output files:
3359
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3360
 
3361
ac_rmfiles=
3362
for ac_file in $ac_files
3363
do
3364
  case $ac_file in
3365
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367
  esac
3368
done
3369
rm -f $ac_rmfiles
3370
 
3371
if { { ac_try="$ac_link_default"
3372
case "(($ac_try" in
3373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374
  *) ac_try_echo=$ac_try;;
3375
esac
3376
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377
$as_echo "$ac_try_echo"; } >&5
3378
  (eval "$ac_link_default") 2>&5
3379
  ac_status=$?
3380
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381
  test $ac_status = 0; }; then :
3382
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3385
# so that the user can short-circuit this test for compilers unknown to
3386
# Autoconf.
3387
for ac_file in $ac_files ''
3388
do
3389
  test -f "$ac_file" || continue
3390
  case $ac_file in
3391
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3392
        ;;
3393
    [ab].out )
3394
        # We found the default executable, but exeext='' is most
3395
        # certainly right.
3396
        break;;
3397
    *.* )
3398
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3399
        then :; else
3400
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401
        fi
3402
        # We set ac_cv_exeext here because the later test for it is not
3403
        # safe: cross compilers may not add the suffix if given an `-o'
3404
        # argument, so we may need to know it at that point already.
3405
        # Even if this section looks crufty: it has the advantage of
3406
        # actually working.
3407
        break;;
3408
    * )
3409
        break;;
3410
  esac
3411
done
3412
test "$ac_cv_exeext" = no && ac_cv_exeext=
3413
 
3414
else
3415
  ac_file=''
3416
fi
3417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418
$as_echo "$ac_file" >&6; }
3419
if test -z "$ac_file"; then :
3420
  $as_echo "$as_me: failed program was:" >&5
3421
sed 's/^/| /' conftest.$ac_ext >&5
3422
 
3423
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425
{ as_fn_set_status 77
3426
as_fn_error "C compiler cannot create executables
3427
See \`config.log' for more details." "$LINENO" 5; }; }
3428
fi
3429
ac_exeext=$ac_cv_exeext
3430
 
3431
# Check that the compiler produces executables we can run.  If not, either
3432
# the compiler is broken, or we cross compile.
3433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3434
$as_echo_n "checking whether the C compiler works... " >&6; }
3435
# If not cross compiling, check that we can run a simple program.
3436
if test "$cross_compiling" != yes; then
3437
  if { ac_try='./$ac_file'
3438
  { { case "(($ac_try" in
3439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440
  *) ac_try_echo=$ac_try;;
3441
esac
3442
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443
$as_echo "$ac_try_echo"; } >&5
3444
  (eval "$ac_try") 2>&5
3445
  ac_status=$?
3446
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447
  test $ac_status = 0; }; }; then
3448
    cross_compiling=no
3449
  else
3450
    if test "$cross_compiling" = maybe; then
3451
        cross_compiling=yes
3452
    else
3453
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455
as_fn_error "cannot run C compiled programs.
3456
If you meant to cross compile, use \`--host'.
3457
See \`config.log' for more details." "$LINENO" 5; }
3458
    fi
3459
  fi
3460
fi
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462
$as_echo "yes" >&6; }
3463
 
3464
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3465
ac_clean_files=$ac_clean_files_save
3466
# Check that the compiler produces executables we can run.  If not, either
3467
# the compiler is broken, or we cross compile.
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469
$as_echo_n "checking whether we are cross compiling... " >&6; }
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471
$as_echo "$cross_compiling" >&6; }
3472
 
3473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474
$as_echo_n "checking for suffix of executables... " >&6; }
3475
if { { ac_try="$ac_link"
3476
case "(($ac_try" in
3477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478
  *) ac_try_echo=$ac_try;;
3479
esac
3480
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481
$as_echo "$ac_try_echo"; } >&5
3482
  (eval "$ac_link") 2>&5
3483
  ac_status=$?
3484
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485
  test $ac_status = 0; }; then :
3486
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3488
# work properly (i.e., refer to `conftest.exe'), while it won't with
3489
# `rm'.
3490
for ac_file in conftest.exe conftest conftest.*; do
3491
  test -f "$ac_file" || continue
3492
  case $ac_file in
3493
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495
          break;;
3496
    * ) break;;
3497
  esac
3498
done
3499
else
3500
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502
as_fn_error "cannot compute suffix of executables: cannot compile and link
3503
See \`config.log' for more details." "$LINENO" 5; }
3504
fi
3505
rm -f conftest$ac_cv_exeext
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507
$as_echo "$ac_cv_exeext" >&6; }
3508
 
3509
rm -f conftest.$ac_ext
3510
EXEEXT=$ac_cv_exeext
3511
ac_exeext=$EXEEXT
3512
fi
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3514
$as_echo_n "checking for suffix of object files... " >&6; }
3515
if test "${ac_cv_objext+set}" = set; then :
3516
  $as_echo_n "(cached) " >&6
3517
else
3518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519
/* end confdefs.h.  */
3520
 
3521
int
3522
main ()
3523
{
3524
 
3525
  ;
3526
  return 0;
3527
}
3528
_ACEOF
3529
rm -f conftest.o conftest.obj
3530
if { { ac_try="$ac_compile"
3531
case "(($ac_try" in
3532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533
  *) ac_try_echo=$ac_try;;
3534
esac
3535
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536
$as_echo "$ac_try_echo"; } >&5
3537
  (eval "$ac_compile") 2>&5
3538
  ac_status=$?
3539
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540
  test $ac_status = 0; }; then :
3541
  for ac_file in conftest.o conftest.obj conftest.*; do
3542
  test -f "$ac_file" || continue;
3543
  case $ac_file in
3544
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3545
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3546
       break;;
3547
  esac
3548
done
3549
else
3550
  $as_echo "$as_me: failed program was:" >&5
3551
sed 's/^/| /' conftest.$ac_ext >&5
3552
 
3553
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555
as_fn_error "cannot compute suffix of object files: cannot compile
3556
See \`config.log' for more details." "$LINENO" 5; }
3557
fi
3558
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3559
fi
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3561
$as_echo "$ac_cv_objext" >&6; }
3562
OBJEXT=$ac_cv_objext
3563
ac_objext=$OBJEXT
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3565
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3566
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3567
  $as_echo_n "(cached) " >&6
3568
else
3569
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570
/* end confdefs.h.  */
3571
 
3572
int
3573
main ()
3574
{
3575
#ifndef __GNUC__
3576
       choke me
3577
#endif
3578
 
3579
  ;
3580
  return 0;
3581
}
3582
_ACEOF
3583
if ac_fn_c_try_compile "$LINENO"; then :
3584
  ac_compiler_gnu=yes
3585
else
3586
  ac_compiler_gnu=no
3587
fi
3588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590
 
3591
fi
3592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3593
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3594
if test $ac_compiler_gnu = yes; then
3595
  GCC=yes
3596
else
3597
  GCC=
3598
fi
3599
ac_test_CFLAGS=${CFLAGS+set}
3600
ac_save_CFLAGS=$CFLAGS
3601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3602
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3603
if test "${ac_cv_prog_cc_g+set}" = set; then :
3604
  $as_echo_n "(cached) " >&6
3605
else
3606
  ac_save_c_werror_flag=$ac_c_werror_flag
3607
   ac_c_werror_flag=yes
3608
   ac_cv_prog_cc_g=no
3609
   CFLAGS="-g"
3610
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611
/* end confdefs.h.  */
3612
 
3613
int
3614
main ()
3615
{
3616
 
3617
  ;
3618
  return 0;
3619
}
3620
_ACEOF
3621
if ac_fn_c_try_compile "$LINENO"; then :
3622
  ac_cv_prog_cc_g=yes
3623
else
3624
  CFLAGS=""
3625
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626
/* end confdefs.h.  */
3627
 
3628
int
3629
main ()
3630
{
3631
 
3632
  ;
3633
  return 0;
3634
}
3635
_ACEOF
3636
if ac_fn_c_try_compile "$LINENO"; then :
3637
 
3638
else
3639
  ac_c_werror_flag=$ac_save_c_werror_flag
3640
         CFLAGS="-g"
3641
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642
/* end confdefs.h.  */
3643
 
3644
int
3645
main ()
3646
{
3647
 
3648
  ;
3649
  return 0;
3650
}
3651
_ACEOF
3652
if ac_fn_c_try_compile "$LINENO"; then :
3653
  ac_cv_prog_cc_g=yes
3654
fi
3655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656
fi
3657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658
fi
3659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660
   ac_c_werror_flag=$ac_save_c_werror_flag
3661
fi
3662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3663
$as_echo "$ac_cv_prog_cc_g" >&6; }
3664
if test "$ac_test_CFLAGS" = set; then
3665
  CFLAGS=$ac_save_CFLAGS
3666
elif test $ac_cv_prog_cc_g = yes; then
3667
  if test "$GCC" = yes; then
3668
    CFLAGS="-g -O2"
3669
  else
3670
    CFLAGS="-g"
3671
  fi
3672
else
3673
  if test "$GCC" = yes; then
3674
    CFLAGS="-O2"
3675
  else
3676
    CFLAGS=
3677
  fi
3678
fi
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3680
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3681
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3682
  $as_echo_n "(cached) " >&6
3683
else
3684
  ac_cv_prog_cc_c89=no
3685
ac_save_CC=$CC
3686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687
/* end confdefs.h.  */
3688
#include 
3689
#include 
3690
#include 
3691
#include 
3692
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3693
struct buf { int x; };
3694
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695
static char *e (p, i)
3696
     char **p;
3697
     int i;
3698
{
3699
  return p[i];
3700
}
3701
static char *f (char * (*g) (char **, int), char **p, ...)
3702
{
3703
  char *s;
3704
  va_list v;
3705
  va_start (v,p);
3706
  s = g (p, va_arg (v,int));
3707
  va_end (v);
3708
  return s;
3709
}
3710
 
3711
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3712
   function prototypes and stuff, but not '\xHH' hex character constants.
3713
   These don't provoke an error unfortunately, instead are silently treated
3714
   as 'x'.  The following induces an error, until -std is added to get
3715
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3716
   array size at least.  It's necessary to write '\x00'==0 to get something
3717
   that's true only with -std.  */
3718
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719
 
3720
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721
   inside strings and character constants.  */
3722
#define FOO(x) 'x'
3723
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724
 
3725
int test (int i, double x);
3726
struct s1 {int (*f) (int a);};
3727
struct s2 {int (*f) (double a);};
3728
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729
int argc;
3730
char **argv;
3731
int
3732
main ()
3733
{
3734
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3735
  ;
3736
  return 0;
3737
}
3738
_ACEOF
3739
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741
do
3742
  CC="$ac_save_CC $ac_arg"
3743
  if ac_fn_c_try_compile "$LINENO"; then :
3744
  ac_cv_prog_cc_c89=$ac_arg
3745
fi
3746
rm -f core conftest.err conftest.$ac_objext
3747
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3748
done
3749
rm -f conftest.$ac_ext
3750
CC=$ac_save_CC
3751
 
3752
fi
3753
# AC_CACHE_VAL
3754
case "x$ac_cv_prog_cc_c89" in
3755
  x)
3756
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757
$as_echo "none needed" >&6; } ;;
3758
  xno)
3759
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760
$as_echo "unsupported" >&6; } ;;
3761
  *)
3762
    CC="$CC $ac_cv_prog_cc_c89"
3763
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3764
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765
esac
3766
if test "x$ac_cv_prog_cc_c89" != xno; then :
3767
 
3768
fi
3769
 
3770
ac_ext=c
3771
ac_cpp='$CPP $CPPFLAGS'
3772
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
DEPDIR="${am__leading_dot}deps"
3776
 
3777
ac_config_commands="$ac_config_commands depfiles"
3778
 
3779
 
3780
am_make=${MAKE-make}
3781
cat > confinc << 'END'
3782
am__doit:
3783
        @echo this is the am__doit target
3784
.PHONY: am__doit
3785
END
3786
# If we don't find an include directive, just comment out the code.
3787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3788
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3789
am__include="#"
3790
am__quote=
3791
_am_result=none
3792
# First try GNU make style include.
3793
echo "include confinc" > confmf
3794
# Ignore all kinds of additional output from `make'.
3795
case `$am_make -s -f confmf 2> /dev/null` in #(
3796
*the\ am__doit\ target*)
3797
  am__include=include
3798
  am__quote=
3799
  _am_result=GNU
3800
  ;;
3801
esac
3802
# Now try BSD make style include.
3803
if test "$am__include" = "#"; then
3804
   echo '.include "confinc"' > confmf
3805
   case `$am_make -s -f confmf 2> /dev/null` in #(
3806
   *the\ am__doit\ target*)
3807
     am__include=.include
3808
     am__quote="\""
3809
     _am_result=BSD
3810
     ;;
3811
   esac
3812
fi
3813
 
3814
 
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3816
$as_echo "$_am_result" >&6; }
3817
rm -f confinc confmf
3818
 
3819
# Check whether --enable-dependency-tracking was given.
3820
if test "${enable_dependency_tracking+set}" = set; then :
3821
  enableval=$enable_dependency_tracking;
3822
fi
3823
 
3824
if test "x$enable_dependency_tracking" != xno; then
3825
  am_depcomp="$ac_aux_dir/depcomp"
3826
  AMDEPBACKSLASH='\'
3827
fi
3828
 if test "x$enable_dependency_tracking" != xno; then
3829
  AMDEP_TRUE=
3830
  AMDEP_FALSE='#'
3831
else
3832
  AMDEP_TRUE='#'
3833
  AMDEP_FALSE=
3834
fi
3835
 
3836
 
3837
 
3838
depcc="$CC"   am_compiler_list=
3839
 
3840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3841
$as_echo_n "checking dependency style of $depcc... " >&6; }
3842
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3843
  $as_echo_n "(cached) " >&6
3844
else
3845
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3846
  # We make a subdir and do the tests there.  Otherwise we can end up
3847
  # making bogus files that we don't know about and never remove.  For
3848
  # instance it was reported that on HP-UX the gcc test will end up
3849
  # making a dummy file named `D' -- because `-MD' means `put the output
3850
  # in D'.
3851
  mkdir conftest.dir
3852
  # Copy depcomp to subdir because otherwise we won't find it if we're
3853
  # using a relative directory.
3854
  cp "$am_depcomp" conftest.dir
3855
  cd conftest.dir
3856
  # We will build objects and dependencies in a subdirectory because
3857
  # it helps to detect inapplicable dependency modes.  For instance
3858
  # both Tru64's cc and ICC support -MD to output dependencies as a
3859
  # side effect of compilation, but ICC will put the dependencies in
3860
  # the current directory while Tru64 will put them in the object
3861
  # directory.
3862
  mkdir sub
3863
 
3864
  am_cv_CC_dependencies_compiler_type=none
3865
  if test "$am_compiler_list" = ""; then
3866
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867
  fi
3868
  am__universal=false
3869
  case " $depcc " in #(
3870
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871
     esac
3872
 
3873
  for depmode in $am_compiler_list; do
3874
    # Setup a source with many dependencies, because some compilers
3875
    # like to wrap large dependency lists on column 80 (with \), and
3876
    # we should not choose a depcomp mode which is confused by this.
3877
    #
3878
    # We need to recreate these files for each test, as the compiler may
3879
    # overwrite some of them when testing with obscure command lines.
3880
    # This happens at least with the AIX C compiler.
3881
    : > sub/conftest.c
3882
    for i in 1 2 3 4 5 6; do
3883
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3885
      # Solaris 8's {/usr,}/bin/sh.
3886
      touch sub/conftst$i.h
3887
    done
3888
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889
 
3890
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3891
    # mode.  It turns out that the SunPro C++ compiler does not properly
3892
    # handle `-M -o', and we need to detect this.  Also, some Intel
3893
    # versions had trouble with output in subdirs
3894
    am__obj=sub/conftest.${OBJEXT-o}
3895
    am__minus_obj="-o $am__obj"
3896
    case $depmode in
3897
    gcc)
3898
      # This depmode causes a compiler race in universal mode.
3899
      test "$am__universal" = false || continue
3900
      ;;
3901
    nosideeffect)
3902
      # after this tag, mechanisms are not by side-effect, so they'll
3903
      # only be used when explicitly requested
3904
      if test "x$enable_dependency_tracking" = xyes; then
3905
        continue
3906
      else
3907
        break
3908
      fi
3909
      ;;
3910
    msvisualcpp | msvcmsys)
3911
      # This compiler won't grok `-c -o', but also, the minuso test has
3912
      # not run yet.  These depmodes are late enough in the game, and
3913
      # so weak that their functioning should not be impacted.
3914
      am__obj=conftest.${OBJEXT-o}
3915
      am__minus_obj=
3916
      ;;
3917
    none) break ;;
3918
    esac
3919
    if depmode=$depmode \
3920
       source=sub/conftest.c object=$am__obj \
3921
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923
         >/dev/null 2>conftest.err &&
3924
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928
      # icc doesn't choke on unknown options, it will just issue warnings
3929
      # or remarks (even with -Werror).  So we grep stderr for any message
3930
      # that says an option was ignored or not supported.
3931
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3932
      #   icc: Command line warning: ignoring option '-M'; no argument required
3933
      # The diagnosis changed in icc 8.0:
3934
      #   icc: Command line remark: option '-MP' not supported
3935
      if (grep 'ignoring option' conftest.err ||
3936
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937
        am_cv_CC_dependencies_compiler_type=$depmode
3938
        break
3939
      fi
3940
    fi
3941
  done
3942
 
3943
  cd ..
3944
  rm -rf conftest.dir
3945
else
3946
  am_cv_CC_dependencies_compiler_type=none
3947
fi
3948
 
3949
fi
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953
 
3954
 if
3955
  test "x$enable_dependency_tracking" != xno \
3956
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957
  am__fastdepCC_TRUE=
3958
  am__fastdepCC_FALSE='#'
3959
else
3960
  am__fastdepCC_TRUE='#'
3961
  am__fastdepCC_FALSE=
3962
fi
3963
 
3964
 
3965
ac_ext=cpp
3966
ac_cpp='$CXXCPP $CPPFLAGS'
3967
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3970
if test -z "$CXX"; then
3971
  if test -n "$CCC"; then
3972
    CXX=$CCC
3973
  else
3974
    if test -n "$ac_tool_prefix"; then
3975
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3976
  do
3977
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3978
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980
$as_echo_n "checking for $ac_word... " >&6; }
3981
if test "${ac_cv_prog_CXX+set}" = set; then :
3982
  $as_echo_n "(cached) " >&6
3983
else
3984
  if test -n "$CXX"; then
3985
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3986
else
3987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988
for as_dir in $PATH
3989
do
3990
  IFS=$as_save_IFS
3991
  test -z "$as_dir" && as_dir=.
3992
    for ac_exec_ext in '' $ac_executable_extensions; do
3993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996
    break 2
3997
  fi
3998
done
3999
  done
4000
IFS=$as_save_IFS
4001
 
4002
fi
4003
fi
4004
CXX=$ac_cv_prog_CXX
4005
if test -n "$CXX"; then
4006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4007
$as_echo "$CXX" >&6; }
4008
else
4009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010
$as_echo "no" >&6; }
4011
fi
4012
 
4013
 
4014
    test -n "$CXX" && break
4015
  done
4016
fi
4017
if test -z "$CXX"; then
4018
  ac_ct_CXX=$CXX
4019
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4020
do
4021
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4022
set dummy $ac_prog; ac_word=$2
4023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024
$as_echo_n "checking for $ac_word... " >&6; }
4025
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4026
  $as_echo_n "(cached) " >&6
4027
else
4028
  if test -n "$ac_ct_CXX"; then
4029
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4030
else
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032
for as_dir in $PATH
4033
do
4034
  IFS=$as_save_IFS
4035
  test -z "$as_dir" && as_dir=.
4036
    for ac_exec_ext in '' $ac_executable_extensions; do
4037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4039
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040
    break 2
4041
  fi
4042
done
4043
  done
4044
IFS=$as_save_IFS
4045
 
4046
fi
4047
fi
4048
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4049
if test -n "$ac_ct_CXX"; then
4050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4051
$as_echo "$ac_ct_CXX" >&6; }
4052
else
4053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054
$as_echo "no" >&6; }
4055
fi
4056
 
4057
 
4058
  test -n "$ac_ct_CXX" && break
4059
done
4060
 
4061
  if test "x$ac_ct_CXX" = x; then
4062
    CXX="g++"
4063
  else
4064
    case $cross_compiling:$ac_tool_warned in
4065
yes:)
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068
ac_tool_warned=yes ;;
4069
esac
4070
    CXX=$ac_ct_CXX
4071
  fi
4072
fi
4073
 
4074
  fi
4075
fi
4076
# Provide some information about the compiler.
4077
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4078
set X $ac_compile
4079
ac_compiler=$2
4080
for ac_option in --version -v -V -qversion; do
4081
  { { ac_try="$ac_compiler $ac_option >&5"
4082
case "(($ac_try" in
4083
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084
  *) ac_try_echo=$ac_try;;
4085
esac
4086
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087
$as_echo "$ac_try_echo"; } >&5
4088
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089
  ac_status=$?
4090
  if test -s conftest.err; then
4091
    sed '10a\
4092
... rest of stderr output deleted ...
4093
         10q' conftest.err >conftest.er1
4094
    cat conftest.er1 >&5
4095
    rm -f conftest.er1 conftest.err
4096
  fi
4097
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098
  test $ac_status = 0; }
4099
done
4100
 
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4102
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4103
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4104
  $as_echo_n "(cached) " >&6
4105
else
4106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107
/* end confdefs.h.  */
4108
 
4109
int
4110
main ()
4111
{
4112
#ifndef __GNUC__
4113
       choke me
4114
#endif
4115
 
4116
  ;
4117
  return 0;
4118
}
4119
_ACEOF
4120
if ac_fn_cxx_try_compile "$LINENO"; then :
4121
  ac_compiler_gnu=yes
4122
else
4123
  ac_compiler_gnu=no
4124
fi
4125
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4127
 
4128
fi
4129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4130
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4131
if test $ac_compiler_gnu = yes; then
4132
  GXX=yes
4133
else
4134
  GXX=
4135
fi
4136
ac_test_CXXFLAGS=${CXXFLAGS+set}
4137
ac_save_CXXFLAGS=$CXXFLAGS
4138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4139
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4140
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4141
  $as_echo_n "(cached) " >&6
4142
else
4143
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4144
   ac_cxx_werror_flag=yes
4145
   ac_cv_prog_cxx_g=no
4146
   CXXFLAGS="-g"
4147
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148
/* end confdefs.h.  */
4149
 
4150
int
4151
main ()
4152
{
4153
 
4154
  ;
4155
  return 0;
4156
}
4157
_ACEOF
4158
if ac_fn_cxx_try_compile "$LINENO"; then :
4159
  ac_cv_prog_cxx_g=yes
4160
else
4161
  CXXFLAGS=""
4162
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163
/* end confdefs.h.  */
4164
 
4165
int
4166
main ()
4167
{
4168
 
4169
  ;
4170
  return 0;
4171
}
4172
_ACEOF
4173
if ac_fn_cxx_try_compile "$LINENO"; then :
4174
 
4175
else
4176
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4177
         CXXFLAGS="-g"
4178
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179
/* end confdefs.h.  */
4180
 
4181
int
4182
main ()
4183
{
4184
 
4185
  ;
4186
  return 0;
4187
}
4188
_ACEOF
4189
if ac_fn_cxx_try_compile "$LINENO"; then :
4190
  ac_cv_prog_cxx_g=yes
4191
fi
4192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193
fi
4194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
fi
4196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4198
fi
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4200
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4201
if test "$ac_test_CXXFLAGS" = set; then
4202
  CXXFLAGS=$ac_save_CXXFLAGS
4203
elif test $ac_cv_prog_cxx_g = yes; then
4204
  if test "$GXX" = yes; then
4205
    CXXFLAGS="-g -O2"
4206
  else
4207
    CXXFLAGS="-g"
4208
  fi
4209
else
4210
  if test "$GXX" = yes; then
4211
    CXXFLAGS="-O2"
4212
  else
4213
    CXXFLAGS=
4214
  fi
4215
fi
4216
ac_ext=c
4217
ac_cpp='$CPP $CPPFLAGS'
4218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
 
4222
depcc="$CXX"  am_compiler_list=
4223
 
4224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4225
$as_echo_n "checking dependency style of $depcc... " >&6; }
4226
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4227
  $as_echo_n "(cached) " >&6
4228
else
4229
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230
  # We make a subdir and do the tests there.  Otherwise we can end up
4231
  # making bogus files that we don't know about and never remove.  For
4232
  # instance it was reported that on HP-UX the gcc test will end up
4233
  # making a dummy file named `D' -- because `-MD' means `put the output
4234
  # in D'.
4235
  mkdir conftest.dir
4236
  # Copy depcomp to subdir because otherwise we won't find it if we're
4237
  # using a relative directory.
4238
  cp "$am_depcomp" conftest.dir
4239
  cd conftest.dir
4240
  # We will build objects and dependencies in a subdirectory because
4241
  # it helps to detect inapplicable dependency modes.  For instance
4242
  # both Tru64's cc and ICC support -MD to output dependencies as a
4243
  # side effect of compilation, but ICC will put the dependencies in
4244
  # the current directory while Tru64 will put them in the object
4245
  # directory.
4246
  mkdir sub
4247
 
4248
  am_cv_CXX_dependencies_compiler_type=none
4249
  if test "$am_compiler_list" = ""; then
4250
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251
  fi
4252
  am__universal=false
4253
  case " $depcc " in #(
4254
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4255
     esac
4256
 
4257
  for depmode in $am_compiler_list; do
4258
    # Setup a source with many dependencies, because some compilers
4259
    # like to wrap large dependency lists on column 80 (with \), and
4260
    # we should not choose a depcomp mode which is confused by this.
4261
    #
4262
    # We need to recreate these files for each test, as the compiler may
4263
    # overwrite some of them when testing with obscure command lines.
4264
    # This happens at least with the AIX C compiler.
4265
    : > sub/conftest.c
4266
    for i in 1 2 3 4 5 6; do
4267
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4268
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4269
      # Solaris 8's {/usr,}/bin/sh.
4270
      touch sub/conftst$i.h
4271
    done
4272
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4273
 
4274
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4275
    # mode.  It turns out that the SunPro C++ compiler does not properly
4276
    # handle `-M -o', and we need to detect this.  Also, some Intel
4277
    # versions had trouble with output in subdirs
4278
    am__obj=sub/conftest.${OBJEXT-o}
4279
    am__minus_obj="-o $am__obj"
4280
    case $depmode in
4281
    gcc)
4282
      # This depmode causes a compiler race in universal mode.
4283
      test "$am__universal" = false || continue
4284
      ;;
4285
    nosideeffect)
4286
      # after this tag, mechanisms are not by side-effect, so they'll
4287
      # only be used when explicitly requested
4288
      if test "x$enable_dependency_tracking" = xyes; then
4289
        continue
4290
      else
4291
        break
4292
      fi
4293
      ;;
4294
    msvisualcpp | msvcmsys)
4295
      # This compiler won't grok `-c -o', but also, the minuso test has
4296
      # not run yet.  These depmodes are late enough in the game, and
4297
      # so weak that their functioning should not be impacted.
4298
      am__obj=conftest.${OBJEXT-o}
4299
      am__minus_obj=
4300
      ;;
4301
    none) break ;;
4302
    esac
4303
    if depmode=$depmode \
4304
       source=sub/conftest.c object=$am__obj \
4305
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4306
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4307
         >/dev/null 2>conftest.err &&
4308
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4309
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4311
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312
      # icc doesn't choke on unknown options, it will just issue warnings
4313
      # or remarks (even with -Werror).  So we grep stderr for any message
4314
      # that says an option was ignored or not supported.
4315
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4316
      #   icc: Command line warning: ignoring option '-M'; no argument required
4317
      # The diagnosis changed in icc 8.0:
4318
      #   icc: Command line remark: option '-MP' not supported
4319
      if (grep 'ignoring option' conftest.err ||
4320
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321
        am_cv_CXX_dependencies_compiler_type=$depmode
4322
        break
4323
      fi
4324
    fi
4325
  done
4326
 
4327
  cd ..
4328
  rm -rf conftest.dir
4329
else
4330
  am_cv_CXX_dependencies_compiler_type=none
4331
fi
4332
 
4333
fi
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4335
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4336
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4337
 
4338
 if
4339
  test "x$enable_dependency_tracking" != xno \
4340
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4341
  am__fastdepCXX_TRUE=
4342
  am__fastdepCXX_FALSE='#'
4343
else
4344
  am__fastdepCXX_TRUE='#'
4345
  am__fastdepCXX_FALSE=
4346
fi
4347
 
4348
 
4349
 
4350
 
4351
if test "x$CC" != xcc; then
4352
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4353
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4354
else
4355
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4356
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4357
fi
4358
set dummy $CC; ac_cc=`$as_echo "$2" |
4359
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4360
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4361
  $as_echo_n "(cached) " >&6
4362
else
4363
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364
/* end confdefs.h.  */
4365
 
4366
int
4367
main ()
4368
{
4369
 
4370
  ;
4371
  return 0;
4372
}
4373
_ACEOF
4374
# Make sure it works both with $CC and with simple cc.
4375
# We do the test twice because some compilers refuse to overwrite an
4376
# existing .o file with -o, though they will create one.
4377
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4378
rm -f conftest2.*
4379
if { { case "(($ac_try" in
4380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381
  *) ac_try_echo=$ac_try;;
4382
esac
4383
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384
$as_echo "$ac_try_echo"; } >&5
4385
  (eval "$ac_try") 2>&5
4386
  ac_status=$?
4387
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388
  test $ac_status = 0; } &&
4389
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391
  *) ac_try_echo=$ac_try;;
4392
esac
4393
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394
$as_echo "$ac_try_echo"; } >&5
4395
  (eval "$ac_try") 2>&5
4396
  ac_status=$?
4397
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398
  test $ac_status = 0; };
4399
then
4400
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4401
  if test "x$CC" != xcc; then
4402
    # Test first that cc exists at all.
4403
    if { ac_try='cc -c conftest.$ac_ext >&5'
4404
  { { case "(($ac_try" in
4405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406
  *) ac_try_echo=$ac_try;;
4407
esac
4408
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409
$as_echo "$ac_try_echo"; } >&5
4410
  (eval "$ac_try") 2>&5
4411
  ac_status=$?
4412
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413
  test $ac_status = 0; }; }; then
4414
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4415
      rm -f conftest2.*
4416
      if { { case "(($ac_try" in
4417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418
  *) ac_try_echo=$ac_try;;
4419
esac
4420
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421
$as_echo "$ac_try_echo"; } >&5
4422
  (eval "$ac_try") 2>&5
4423
  ac_status=$?
4424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425
  test $ac_status = 0; } &&
4426
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
4427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428
  *) ac_try_echo=$ac_try;;
4429
esac
4430
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431
$as_echo "$ac_try_echo"; } >&5
4432
  (eval "$ac_try") 2>&5
4433
  ac_status=$?
4434
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435
  test $ac_status = 0; };
4436
      then
4437
        # cc works too.
4438
        :
4439
      else
4440
        # cc exists but doesn't like -o.
4441
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4442
      fi
4443
    fi
4444
  fi
4445
else
4446
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4447
fi
4448
rm -f core conftest*
4449
 
4450
fi
4451
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453
$as_echo "yes" >&6; }
4454
else
4455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456
$as_echo "no" >&6; }
4457
 
4458
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4459
 
4460
fi
4461
 
4462
# FIXME: we rely on the cache variable name because
4463
# there is no other way.
4464
set dummy $CC
4465
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4466
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4467
if test "$am_t" != yes; then
4468
   # Losing compiler, so override with the script.
4469
   # FIXME: It is wrong to rewrite CC.
4470
   # But if we don't then we get into trouble of one sort or another.
4471
   # A longer-term fix would be to have automake use am__CC in this case,
4472
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4473
   CC="$am_aux_dir/compile $CC"
4474
fi
4475
 
4476
 
4477
 
4478
 
4479
 
4480
 
4481
# Newer automakes demand CCAS and CCASFLAGS.
4482
: ${CCAS='$(CC)'}
4483
: ${CCASFLAGS='$(CFLAGS)'}
4484
 
4485
 
4486
 
4487
if test -n "$ac_tool_prefix"; then
4488
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4489
set dummy ${ac_tool_prefix}as; ac_word=$2
4490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491
$as_echo_n "checking for $ac_word... " >&6; }
4492
if test "${ac_cv_prog_AS+set}" = set; then :
4493
  $as_echo_n "(cached) " >&6
4494
else
4495
  if test -n "$AS"; then
4496
  ac_cv_prog_AS="$AS" # Let the user override the test.
4497
else
4498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499
for as_dir in $PATH
4500
do
4501
  IFS=$as_save_IFS
4502
  test -z "$as_dir" && as_dir=.
4503
    for ac_exec_ext in '' $ac_executable_extensions; do
4504
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505
    ac_cv_prog_AS="${ac_tool_prefix}as"
4506
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507
    break 2
4508
  fi
4509
done
4510
  done
4511
IFS=$as_save_IFS
4512
 
4513
fi
4514
fi
4515
AS=$ac_cv_prog_AS
4516
if test -n "$AS"; then
4517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4518
$as_echo "$AS" >&6; }
4519
else
4520
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521
$as_echo "no" >&6; }
4522
fi
4523
 
4524
 
4525
fi
4526
if test -z "$ac_cv_prog_AS"; then
4527
  ac_ct_AS=$AS
4528
  # Extract the first word of "as", so it can be a program name with args.
4529
set dummy as; ac_word=$2
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531
$as_echo_n "checking for $ac_word... " >&6; }
4532
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4533
  $as_echo_n "(cached) " >&6
4534
else
4535
  if test -n "$ac_ct_AS"; then
4536
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4537
else
4538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539
for as_dir in $PATH
4540
do
4541
  IFS=$as_save_IFS
4542
  test -z "$as_dir" && as_dir=.
4543
    for ac_exec_ext in '' $ac_executable_extensions; do
4544
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545
    ac_cv_prog_ac_ct_AS="as"
4546
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547
    break 2
4548
  fi
4549
done
4550
  done
4551
IFS=$as_save_IFS
4552
 
4553
fi
4554
fi
4555
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4556
if test -n "$ac_ct_AS"; then
4557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4558
$as_echo "$ac_ct_AS" >&6; }
4559
else
4560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561
$as_echo "no" >&6; }
4562
fi
4563
 
4564
  if test "x$ac_ct_AS" = x; then
4565
    AS=""
4566
  else
4567
    case $cross_compiling:$ac_tool_warned in
4568
yes:)
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4570
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4571
ac_tool_warned=yes ;;
4572
esac
4573
    AS=$ac_ct_AS
4574
  fi
4575
else
4576
  AS="$ac_cv_prog_AS"
4577
fi
4578
 
4579
if test -n "$ac_tool_prefix"; then
4580
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4581
set dummy ${ac_tool_prefix}ar; ac_word=$2
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583
$as_echo_n "checking for $ac_word... " >&6; }
4584
if test "${ac_cv_prog_AR+set}" = set; then :
4585
  $as_echo_n "(cached) " >&6
4586
else
4587
  if test -n "$AR"; then
4588
  ac_cv_prog_AR="$AR" # Let the user override the test.
4589
else
4590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591
for as_dir in $PATH
4592
do
4593
  IFS=$as_save_IFS
4594
  test -z "$as_dir" && as_dir=.
4595
    for ac_exec_ext in '' $ac_executable_extensions; do
4596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4598
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599
    break 2
4600
  fi
4601
done
4602
  done
4603
IFS=$as_save_IFS
4604
 
4605
fi
4606
fi
4607
AR=$ac_cv_prog_AR
4608
if test -n "$AR"; then
4609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4610
$as_echo "$AR" >&6; }
4611
else
4612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613
$as_echo "no" >&6; }
4614
fi
4615
 
4616
 
4617
fi
4618
if test -z "$ac_cv_prog_AR"; then
4619
  ac_ct_AR=$AR
4620
  # Extract the first word of "ar", so it can be a program name with args.
4621
set dummy ar; ac_word=$2
4622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623
$as_echo_n "checking for $ac_word... " >&6; }
4624
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4625
  $as_echo_n "(cached) " >&6
4626
else
4627
  if test -n "$ac_ct_AR"; then
4628
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4629
else
4630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631
for as_dir in $PATH
4632
do
4633
  IFS=$as_save_IFS
4634
  test -z "$as_dir" && as_dir=.
4635
    for ac_exec_ext in '' $ac_executable_extensions; do
4636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637
    ac_cv_prog_ac_ct_AR="ar"
4638
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639
    break 2
4640
  fi
4641
done
4642
  done
4643
IFS=$as_save_IFS
4644
 
4645
fi
4646
fi
4647
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4648
if test -n "$ac_ct_AR"; then
4649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4650
$as_echo "$ac_ct_AR" >&6; }
4651
else
4652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653
$as_echo "no" >&6; }
4654
fi
4655
 
4656
  if test "x$ac_ct_AR" = x; then
4657
    AR=""
4658
  else
4659
    case $cross_compiling:$ac_tool_warned in
4660
yes:)
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663
ac_tool_warned=yes ;;
4664
esac
4665
    AR=$ac_ct_AR
4666
  fi
4667
else
4668
  AR="$ac_cv_prog_AR"
4669
fi
4670
 
4671
if test -n "$ac_tool_prefix"; then
4672
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4673
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675
$as_echo_n "checking for $ac_word... " >&6; }
4676
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4677
  $as_echo_n "(cached) " >&6
4678
else
4679
  if test -n "$RANLIB"; then
4680
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4681
else
4682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683
for as_dir in $PATH
4684
do
4685
  IFS=$as_save_IFS
4686
  test -z "$as_dir" && as_dir=.
4687
    for ac_exec_ext in '' $ac_executable_extensions; do
4688
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691
    break 2
4692
  fi
4693
done
4694
  done
4695
IFS=$as_save_IFS
4696
 
4697
fi
4698
fi
4699
RANLIB=$ac_cv_prog_RANLIB
4700
if test -n "$RANLIB"; then
4701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4702
$as_echo "$RANLIB" >&6; }
4703
else
4704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705
$as_echo "no" >&6; }
4706
fi
4707
 
4708
 
4709
fi
4710
if test -z "$ac_cv_prog_RANLIB"; then
4711
  ac_ct_RANLIB=$RANLIB
4712
  # Extract the first word of "ranlib", so it can be a program name with args.
4713
set dummy ranlib; ac_word=$2
4714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715
$as_echo_n "checking for $ac_word... " >&6; }
4716
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4717
  $as_echo_n "(cached) " >&6
4718
else
4719
  if test -n "$ac_ct_RANLIB"; then
4720
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4721
else
4722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723
for as_dir in $PATH
4724
do
4725
  IFS=$as_save_IFS
4726
  test -z "$as_dir" && as_dir=.
4727
    for ac_exec_ext in '' $ac_executable_extensions; do
4728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731
    break 2
4732
  fi
4733
done
4734
  done
4735
IFS=$as_save_IFS
4736
 
4737
fi
4738
fi
4739
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4740
if test -n "$ac_ct_RANLIB"; then
4741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4742
$as_echo "$ac_ct_RANLIB" >&6; }
4743
else
4744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745
$as_echo "no" >&6; }
4746
fi
4747
 
4748
  if test "x$ac_ct_RANLIB" = x; then
4749
    RANLIB=":"
4750
  else
4751
    case $cross_compiling:$ac_tool_warned in
4752
yes:)
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755
ac_tool_warned=yes ;;
4756
esac
4757
    RANLIB=$ac_ct_RANLIB
4758
  fi
4759
else
4760
  RANLIB="$ac_cv_prog_RANLIB"
4761
fi
4762
 
4763
 
4764
 
4765
 
4766
 
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4768
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4769
    # Check whether --enable-maintainer-mode was given.
4770
if test "${enable_maintainer_mode+set}" = set; then :
4771
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4772
else
4773
  USE_MAINTAINER_MODE=no
4774
fi
4775
 
4776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4777
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4778
   if test $USE_MAINTAINER_MODE = yes; then
4779
  MAINTAINER_MODE_TRUE=
4780
  MAINTAINER_MODE_FALSE='#'
4781
else
4782
  MAINTAINER_MODE_TRUE='#'
4783
  MAINTAINER_MODE_FALSE=
4784
fi
4785
 
4786
  MAINT=$MAINTAINER_MODE_TRUE
4787
 
4788
 
4789
 
4790
. ${srcdir}/configure.host
4791
 
4792
case ${gc_basedir} in
4793
/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4794
*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4795
esac
4796
 
4797
gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4798
case "${host}" in
4799
  *-*-cygwin32*)
4800
    gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4801
    ;;
4802
esac
4803
 
4804
case "${host}" in
4805
  *-*-mingw*)
4806
    gc_cflags="${gc_cflags} -DGC_BUILD=1"
4807
    ;;
4808
esac
4809
 
4810
 
4811
GC_CFLAGS=${gc_cflags}
4812
 
4813
 
4814
case `pwd` in
4815
  *\ * | *\     *)
4816
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4817
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4818
esac
4819
 
4820
 
4821
 
4822
macro_version='2.2.7a'
4823
macro_revision='1.3134'
4824
 
4825
 
4826
 
4827
 
4828
 
4829
 
4830
 
4831
 
4832
 
4833
 
4834
 
4835
 
4836
 
4837
ltmain="$ac_aux_dir/ltmain.sh"
4838
 
4839
# Backslashify metacharacters that are still active within
4840
# double-quoted strings.
4841
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4842
 
4843
# Same as above, but do not quote variable references.
4844
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4845
 
4846
# Sed substitution to delay expansion of an escaped shell variable in a
4847
# double_quote_subst'ed string.
4848
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4849
 
4850
# Sed substitution to delay expansion of an escaped single quote.
4851
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4852
 
4853
# Sed substitution to avoid accidental globbing in evaled expressions
4854
no_glob_subst='s/\*/\\\*/g'
4855
 
4856
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4857
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4858
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4859
 
4860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4861
$as_echo_n "checking how to print strings... " >&6; }
4862
# Test print first, because it will be a builtin if present.
4863
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4864
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4865
  ECHO='print -r --'
4866
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4867
  ECHO='printf %s\n'
4868
else
4869
  # Use this function as a fallback that always works.
4870
  func_fallback_echo ()
4871
  {
4872
    eval 'cat <<_LTECHO_EOF
4873
$1
4874
_LTECHO_EOF'
4875
  }
4876
  ECHO='func_fallback_echo'
4877
fi
4878
 
4879
# func_echo_all arg...
4880
# Invoke $ECHO with all args, space-separated.
4881
func_echo_all ()
4882
{
4883
    $ECHO ""
4884
}
4885
 
4886
case "$ECHO" in
4887
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4888
$as_echo "printf" >&6; } ;;
4889
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4890
$as_echo "print -r" >&6; } ;;
4891
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4892
$as_echo "cat" >&6; } ;;
4893
esac
4894
 
4895
 
4896
 
4897
 
4898
 
4899
 
4900
 
4901
 
4902
 
4903
 
4904
 
4905
 
4906
 
4907
 
4908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4909
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4910
if test "${ac_cv_path_SED+set}" = set; then :
4911
  $as_echo_n "(cached) " >&6
4912
else
4913
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4914
     for ac_i in 1 2 3 4 5 6 7; do
4915
       ac_script="$ac_script$as_nl$ac_script"
4916
     done
4917
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4918
     { ac_script=; unset ac_script;}
4919
     if test -z "$SED"; then
4920
  ac_path_SED_found=false
4921
  # Loop through the user's path and test for each of PROGNAME-LIST
4922
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923
for as_dir in $PATH
4924
do
4925
  IFS=$as_save_IFS
4926
  test -z "$as_dir" && as_dir=.
4927
    for ac_prog in sed gsed; do
4928
    for ac_exec_ext in '' $ac_executable_extensions; do
4929
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4930
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4931
# Check for GNU ac_path_SED and select it if it is found.
4932
  # Check for GNU $ac_path_SED
4933
case `"$ac_path_SED" --version 2>&1` in
4934
*GNU*)
4935
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4936
*)
4937
  ac_count=0
4938
  $as_echo_n 0123456789 >"conftest.in"
4939
  while :
4940
  do
4941
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4942
    mv "conftest.tmp" "conftest.in"
4943
    cp "conftest.in" "conftest.nl"
4944
    $as_echo '' >> "conftest.nl"
4945
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4946
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4947
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4948
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4949
      # Best one so far, save it but keep looking for a better one
4950
      ac_cv_path_SED="$ac_path_SED"
4951
      ac_path_SED_max=$ac_count
4952
    fi
4953
    # 10*(2^10) chars as input seems more than enough
4954
    test $ac_count -gt 10 && break
4955
  done
4956
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957
esac
4958
 
4959
      $ac_path_SED_found && break 3
4960
    done
4961
  done
4962
  done
4963
IFS=$as_save_IFS
4964
  if test -z "$ac_cv_path_SED"; then
4965
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4966
  fi
4967
else
4968
  ac_cv_path_SED=$SED
4969
fi
4970
 
4971
fi
4972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4973
$as_echo "$ac_cv_path_SED" >&6; }
4974
 SED="$ac_cv_path_SED"
4975
  rm -f conftest.sed
4976
 
4977
test -z "$SED" && SED=sed
4978
Xsed="$SED -e 1s/^X//"
4979
 
4980
 
4981
 
4982
 
4983
 
4984
 
4985
 
4986
 
4987
 
4988
 
4989
 
4990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4991
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4992
if test "${ac_cv_path_GREP+set}" = set; then :
4993
  $as_echo_n "(cached) " >&6
4994
else
4995
  if test -z "$GREP"; then
4996
  ac_path_GREP_found=false
4997
  # Loop through the user's path and test for each of PROGNAME-LIST
4998
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000
do
5001
  IFS=$as_save_IFS
5002
  test -z "$as_dir" && as_dir=.
5003
    for ac_prog in grep ggrep; do
5004
    for ac_exec_ext in '' $ac_executable_extensions; do
5005
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5006
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5007
# Check for GNU ac_path_GREP and select it if it is found.
5008
  # Check for GNU $ac_path_GREP
5009
case `"$ac_path_GREP" --version 2>&1` in
5010
*GNU*)
5011
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5012
*)
5013
  ac_count=0
5014
  $as_echo_n 0123456789 >"conftest.in"
5015
  while :
5016
  do
5017
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5018
    mv "conftest.tmp" "conftest.in"
5019
    cp "conftest.in" "conftest.nl"
5020
    $as_echo 'GREP' >> "conftest.nl"
5021
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5024
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5025
      # Best one so far, save it but keep looking for a better one
5026
      ac_cv_path_GREP="$ac_path_GREP"
5027
      ac_path_GREP_max=$ac_count
5028
    fi
5029
    # 10*(2^10) chars as input seems more than enough
5030
    test $ac_count -gt 10 && break
5031
  done
5032
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033
esac
5034
 
5035
      $ac_path_GREP_found && break 3
5036
    done
5037
  done
5038
  done
5039
IFS=$as_save_IFS
5040
  if test -z "$ac_cv_path_GREP"; then
5041
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042
  fi
5043
else
5044
  ac_cv_path_GREP=$GREP
5045
fi
5046
 
5047
fi
5048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5049
$as_echo "$ac_cv_path_GREP" >&6; }
5050
 GREP="$ac_cv_path_GREP"
5051
 
5052
 
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5054
$as_echo_n "checking for egrep... " >&6; }
5055
if test "${ac_cv_path_EGREP+set}" = set; then :
5056
  $as_echo_n "(cached) " >&6
5057
else
5058
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5059
   then ac_cv_path_EGREP="$GREP -E"
5060
   else
5061
     if test -z "$EGREP"; then
5062
  ac_path_EGREP_found=false
5063
  # Loop through the user's path and test for each of PROGNAME-LIST
5064
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5066
do
5067
  IFS=$as_save_IFS
5068
  test -z "$as_dir" && as_dir=.
5069
    for ac_prog in egrep; do
5070
    for ac_exec_ext in '' $ac_executable_extensions; do
5071
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5072
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5073
# Check for GNU ac_path_EGREP and select it if it is found.
5074
  # Check for GNU $ac_path_EGREP
5075
case `"$ac_path_EGREP" --version 2>&1` in
5076
*GNU*)
5077
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5078
*)
5079
  ac_count=0
5080
  $as_echo_n 0123456789 >"conftest.in"
5081
  while :
5082
  do
5083
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5084
    mv "conftest.tmp" "conftest.in"
5085
    cp "conftest.in" "conftest.nl"
5086
    $as_echo 'EGREP' >> "conftest.nl"
5087
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5090
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5091
      # Best one so far, save it but keep looking for a better one
5092
      ac_cv_path_EGREP="$ac_path_EGREP"
5093
      ac_path_EGREP_max=$ac_count
5094
    fi
5095
    # 10*(2^10) chars as input seems more than enough
5096
    test $ac_count -gt 10 && break
5097
  done
5098
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099
esac
5100
 
5101
      $ac_path_EGREP_found && break 3
5102
    done
5103
  done
5104
  done
5105
IFS=$as_save_IFS
5106
  if test -z "$ac_cv_path_EGREP"; then
5107
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5108
  fi
5109
else
5110
  ac_cv_path_EGREP=$EGREP
5111
fi
5112
 
5113
   fi
5114
fi
5115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5116
$as_echo "$ac_cv_path_EGREP" >&6; }
5117
 EGREP="$ac_cv_path_EGREP"
5118
 
5119
 
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5121
$as_echo_n "checking for fgrep... " >&6; }
5122
if test "${ac_cv_path_FGREP+set}" = set; then :
5123
  $as_echo_n "(cached) " >&6
5124
else
5125
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5126
   then ac_cv_path_FGREP="$GREP -F"
5127
   else
5128
     if test -z "$FGREP"; then
5129
  ac_path_FGREP_found=false
5130
  # Loop through the user's path and test for each of PROGNAME-LIST
5131
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5133
do
5134
  IFS=$as_save_IFS
5135
  test -z "$as_dir" && as_dir=.
5136
    for ac_prog in fgrep; do
5137
    for ac_exec_ext in '' $ac_executable_extensions; do
5138
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5139
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5140
# Check for GNU ac_path_FGREP and select it if it is found.
5141
  # Check for GNU $ac_path_FGREP
5142
case `"$ac_path_FGREP" --version 2>&1` in
5143
*GNU*)
5144
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5145
*)
5146
  ac_count=0
5147
  $as_echo_n 0123456789 >"conftest.in"
5148
  while :
5149
  do
5150
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5151
    mv "conftest.tmp" "conftest.in"
5152
    cp "conftest.in" "conftest.nl"
5153
    $as_echo 'FGREP' >> "conftest.nl"
5154
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5157
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5158
      # Best one so far, save it but keep looking for a better one
5159
      ac_cv_path_FGREP="$ac_path_FGREP"
5160
      ac_path_FGREP_max=$ac_count
5161
    fi
5162
    # 10*(2^10) chars as input seems more than enough
5163
    test $ac_count -gt 10 && break
5164
  done
5165
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166
esac
5167
 
5168
      $ac_path_FGREP_found && break 3
5169
    done
5170
  done
5171
  done
5172
IFS=$as_save_IFS
5173
  if test -z "$ac_cv_path_FGREP"; then
5174
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5175
  fi
5176
else
5177
  ac_cv_path_FGREP=$FGREP
5178
fi
5179
 
5180
   fi
5181
fi
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5183
$as_echo "$ac_cv_path_FGREP" >&6; }
5184
 FGREP="$ac_cv_path_FGREP"
5185
 
5186
 
5187
test -z "$GREP" && GREP=grep
5188
 
5189
 
5190
 
5191
 
5192
 
5193
 
5194
 
5195
 
5196
 
5197
 
5198
 
5199
 
5200
 
5201
 
5202
 
5203
 
5204
 
5205
 
5206
 
5207
# Check whether --with-gnu-ld was given.
5208
if test "${with_gnu_ld+set}" = set; then :
5209
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5210
else
5211
  with_gnu_ld=no
5212
fi
5213
 
5214
ac_prog=ld
5215
if test "$GCC" = yes; then
5216
  # Check if gcc -print-prog-name=ld gives a path.
5217
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5218
$as_echo_n "checking for ld used by $CC... " >&6; }
5219
  case $host in
5220
  *-*-mingw*)
5221
    # gcc leaves a trailing carriage return which upsets mingw
5222
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5223
  *)
5224
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5225
  esac
5226
  case $ac_prog in
5227
    # Accept absolute paths.
5228
    [\\/]* | ?:[\\/]*)
5229
      re_direlt='/[^/][^/]*/\.\./'
5230
      # Canonicalize the pathname of ld
5231
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5232
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5233
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5234
      done
5235
      test -z "$LD" && LD="$ac_prog"
5236
      ;;
5237
  "")
5238
    # If it fails, then pretend we aren't using GCC.
5239
    ac_prog=ld
5240
    ;;
5241
  *)
5242
    # If it is relative, then search for the first ld in PATH.
5243
    with_gnu_ld=unknown
5244
    ;;
5245
  esac
5246
elif test "$with_gnu_ld" = yes; then
5247
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5248
$as_echo_n "checking for GNU ld... " >&6; }
5249
else
5250
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5251
$as_echo_n "checking for non-GNU ld... " >&6; }
5252
fi
5253
if test "${lt_cv_path_LD+set}" = set; then :
5254
  $as_echo_n "(cached) " >&6
5255
else
5256
  if test -z "$LD"; then
5257
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5258
  for ac_dir in $PATH; do
5259
    IFS="$lt_save_ifs"
5260
    test -z "$ac_dir" && ac_dir=.
5261
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5262
      lt_cv_path_LD="$ac_dir/$ac_prog"
5263
      # Check to see if the program is GNU ld.  I'd rather use --version,
5264
      # but apparently some variants of GNU ld only accept -v.
5265
      # Break only if it was the GNU/non-GNU ld that we prefer.
5266
      case `"$lt_cv_path_LD" -v 2>&1 
5267
      *GNU* | *'with BFD'*)
5268
        test "$with_gnu_ld" != no && break
5269
        ;;
5270
      *)
5271
        test "$with_gnu_ld" != yes && break
5272
        ;;
5273
      esac
5274
    fi
5275
  done
5276
  IFS="$lt_save_ifs"
5277
else
5278
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5279
fi
5280
fi
5281
 
5282
LD="$lt_cv_path_LD"
5283
if test -n "$LD"; then
5284
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5285
$as_echo "$LD" >&6; }
5286
else
5287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288
$as_echo "no" >&6; }
5289
fi
5290
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5292
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5293
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5294
  $as_echo_n "(cached) " >&6
5295
else
5296
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5297
case `$LD -v 2>&1 
5298
*GNU* | *'with BFD'*)
5299
  lt_cv_prog_gnu_ld=yes
5300
  ;;
5301
*)
5302
  lt_cv_prog_gnu_ld=no
5303
  ;;
5304
esac
5305
fi
5306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5307
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5308
with_gnu_ld=$lt_cv_prog_gnu_ld
5309
 
5310
 
5311
 
5312
 
5313
 
5314
 
5315
 
5316
 
5317
 
5318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5319
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5320
if test "${lt_cv_path_NM+set}" = set; then :
5321
  $as_echo_n "(cached) " >&6
5322
else
5323
  if test -n "$NM"; then
5324
  # Let the user override the test.
5325
  lt_cv_path_NM="$NM"
5326
else
5327
  lt_nm_to_check="${ac_tool_prefix}nm"
5328
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5329
    lt_nm_to_check="$lt_nm_to_check nm"
5330
  fi
5331
  for lt_tmp_nm in $lt_nm_to_check; do
5332
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5334
      IFS="$lt_save_ifs"
5335
      test -z "$ac_dir" && ac_dir=.
5336
      tmp_nm="$ac_dir/$lt_tmp_nm"
5337
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5338
        # Check to see if the nm accepts a BSD-compat flag.
5339
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5340
        #   nm: unknown option "B" ignored
5341
        # Tru64's nm complains that /dev/null is an invalid object file
5342
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5343
        */dev/null* | *'Invalid file or object type'*)
5344
          lt_cv_path_NM="$tmp_nm -B"
5345
          break
5346
          ;;
5347
        *)
5348
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5349
          */dev/null*)
5350
            lt_cv_path_NM="$tmp_nm -p"
5351
            break
5352
            ;;
5353
          *)
5354
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5355
            continue # so that we can try to find one that supports BSD flags
5356
            ;;
5357
          esac
5358
          ;;
5359
        esac
5360
      fi
5361
    done
5362
    IFS="$lt_save_ifs"
5363
  done
5364
  : ${lt_cv_path_NM=no}
5365
fi
5366
fi
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5368
$as_echo "$lt_cv_path_NM" >&6; }
5369
if test "$lt_cv_path_NM" != "no"; then
5370
  NM="$lt_cv_path_NM"
5371
else
5372
  # Didn't find any BSD compatible name lister, look for dumpbin.
5373
  if test -n "$DUMPBIN"; then :
5374
    # Let the user override the test.
5375
  else
5376
    if test -n "$ac_tool_prefix"; then
5377
  for ac_prog in dumpbin "link -dump"
5378
  do
5379
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382
$as_echo_n "checking for $ac_word... " >&6; }
5383
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5384
  $as_echo_n "(cached) " >&6
5385
else
5386
  if test -n "$DUMPBIN"; then
5387
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5388
else
5389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390
for as_dir in $PATH
5391
do
5392
  IFS=$as_save_IFS
5393
  test -z "$as_dir" && as_dir=.
5394
    for ac_exec_ext in '' $ac_executable_extensions; do
5395
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398
    break 2
5399
  fi
5400
done
5401
  done
5402
IFS=$as_save_IFS
5403
 
5404
fi
5405
fi
5406
DUMPBIN=$ac_cv_prog_DUMPBIN
5407
if test -n "$DUMPBIN"; then
5408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5409
$as_echo "$DUMPBIN" >&6; }
5410
else
5411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412
$as_echo "no" >&6; }
5413
fi
5414
 
5415
 
5416
    test -n "$DUMPBIN" && break
5417
  done
5418
fi
5419
if test -z "$DUMPBIN"; then
5420
  ac_ct_DUMPBIN=$DUMPBIN
5421
  for ac_prog in dumpbin "link -dump"
5422
do
5423
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5424
set dummy $ac_prog; ac_word=$2
5425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426
$as_echo_n "checking for $ac_word... " >&6; }
5427
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5428
  $as_echo_n "(cached) " >&6
5429
else
5430
  if test -n "$ac_ct_DUMPBIN"; then
5431
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5432
else
5433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434
for as_dir in $PATH
5435
do
5436
  IFS=$as_save_IFS
5437
  test -z "$as_dir" && as_dir=.
5438
    for ac_exec_ext in '' $ac_executable_extensions; do
5439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442
    break 2
5443
  fi
5444
done
5445
  done
5446
IFS=$as_save_IFS
5447
 
5448
fi
5449
fi
5450
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5451
if test -n "$ac_ct_DUMPBIN"; then
5452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5453
$as_echo "$ac_ct_DUMPBIN" >&6; }
5454
else
5455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456
$as_echo "no" >&6; }
5457
fi
5458
 
5459
 
5460
  test -n "$ac_ct_DUMPBIN" && break
5461
done
5462
 
5463
  if test "x$ac_ct_DUMPBIN" = x; then
5464
    DUMPBIN=":"
5465
  else
5466
    case $cross_compiling:$ac_tool_warned in
5467
yes:)
5468
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470
ac_tool_warned=yes ;;
5471
esac
5472
    DUMPBIN=$ac_ct_DUMPBIN
5473
  fi
5474
fi
5475
 
5476
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5477
    *COFF*)
5478
      DUMPBIN="$DUMPBIN -symbols"
5479
      ;;
5480
    *)
5481
      DUMPBIN=:
5482
      ;;
5483
    esac
5484
  fi
5485
 
5486
  if test "$DUMPBIN" != ":"; then
5487
    NM="$DUMPBIN"
5488
  fi
5489
fi
5490
test -z "$NM" && NM=nm
5491
 
5492
 
5493
 
5494
 
5495
 
5496
 
5497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5498
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5499
if test "${lt_cv_nm_interface+set}" = set; then :
5500
  $as_echo_n "(cached) " >&6
5501
else
5502
  lt_cv_nm_interface="BSD nm"
5503
  echo "int some_variable = 0;" > conftest.$ac_ext
5504
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5505
  (eval "$ac_compile" 2>conftest.err)
5506
  cat conftest.err >&5
5507
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5508
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5509
  cat conftest.err >&5
5510
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5511
  cat conftest.out >&5
5512
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5513
    lt_cv_nm_interface="MS dumpbin"
5514
  fi
5515
  rm -f conftest*
5516
fi
5517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5518
$as_echo "$lt_cv_nm_interface" >&6; }
5519
 
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5521
$as_echo_n "checking whether ln -s works... " >&6; }
5522
LN_S=$as_ln_s
5523
if test "$LN_S" = "ln -s"; then
5524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5525
$as_echo "yes" >&6; }
5526
else
5527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5528
$as_echo "no, using $LN_S" >&6; }
5529
fi
5530
 
5531
# find the maximum length of command line arguments
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5533
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5534
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5535
  $as_echo_n "(cached) " >&6
5536
else
5537
    i=0
5538
  teststring="ABCD"
5539
 
5540
  case $build_os in
5541
  msdosdjgpp*)
5542
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5543
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5544
    # during glob expansion).  Even if it were fixed, the result of this
5545
    # check would be larger than it should be.
5546
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5547
    ;;
5548
 
5549
  gnu*)
5550
    # Under GNU Hurd, this test is not required because there is
5551
    # no limit to the length of command line arguments.
5552
    # Libtool will interpret -1 as no limit whatsoever
5553
    lt_cv_sys_max_cmd_len=-1;
5554
    ;;
5555
 
5556
  cygwin* | mingw* | cegcc*)
5557
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5558
    # about 5 minutes as the teststring grows exponentially.
5559
    # Worse, since 9x/ME are not pre-emptively multitasking,
5560
    # you end up with a "frozen" computer, even though with patience
5561
    # the test eventually succeeds (with a max line length of 256k).
5562
    # Instead, let's just punt: use the minimum linelength reported by
5563
    # all of the supported platforms: 8192 (on NT/2K/XP).
5564
    lt_cv_sys_max_cmd_len=8192;
5565
    ;;
5566
 
5567
  mint*)
5568
    # On MiNT this can take a long time and run out of memory.
5569
    lt_cv_sys_max_cmd_len=8192;
5570
    ;;
5571
 
5572
  amigaos*)
5573
    # On AmigaOS with pdksh, this test takes hours, literally.
5574
    # So we just punt and use a minimum line length of 8192.
5575
    lt_cv_sys_max_cmd_len=8192;
5576
    ;;
5577
 
5578
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5579
    # This has been around since 386BSD, at least.  Likely further.
5580
    if test -x /sbin/sysctl; then
5581
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5582
    elif test -x /usr/sbin/sysctl; then
5583
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5584
    else
5585
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5586
    fi
5587
    # And add a safety zone
5588
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5589
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590
    ;;
5591
 
5592
  interix*)
5593
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5594
    lt_cv_sys_max_cmd_len=196608
5595
    ;;
5596
 
5597
  osf*)
5598
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5599
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5600
    # nice to cause kernel panics so lets avoid the loop below.
5601
    # First set a reasonable default.
5602
    lt_cv_sys_max_cmd_len=16384
5603
    #
5604
    if test -x /sbin/sysconfig; then
5605
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5606
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5607
      esac
5608
    fi
5609
    ;;
5610
  sco3.2v5*)
5611
    lt_cv_sys_max_cmd_len=102400
5612
    ;;
5613
  sysv5* | sco5v6* | sysv4.2uw2*)
5614
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5615
    if test -n "$kargmax"; then
5616
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5617
    else
5618
      lt_cv_sys_max_cmd_len=32768
5619
    fi
5620
    ;;
5621
  *)
5622
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5623
    if test -n "$lt_cv_sys_max_cmd_len"; then
5624
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626
    else
5627
      # Make teststring a little bigger before we do anything with it.
5628
      # a 1K string should be a reasonable start.
5629
      for i in 1 2 3 4 5 6 7 8 ; do
5630
        teststring=$teststring$teststring
5631
      done
5632
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633
      # If test is not a shell built-in, we'll probably end up computing a
5634
      # maximum length that is only half of the actual maximum length, but
5635
      # we can't tell.
5636
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5637
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5638
              test $i != 17 # 1/2 MB should be enough
5639
      do
5640
        i=`expr $i + 1`
5641
        teststring=$teststring$teststring
5642
      done
5643
      # Only check the string length outside the loop.
5644
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5645
      teststring=
5646
      # Add a significant safety factor because C++ compilers can tack on
5647
      # massive amounts of additional arguments before passing them to the
5648
      # linker.  It appears as though 1/2 is a usable value.
5649
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5650
    fi
5651
    ;;
5652
  esac
5653
 
5654
fi
5655
 
5656
if test -n $lt_cv_sys_max_cmd_len ; then
5657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5658
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5659
else
5660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5661
$as_echo "none" >&6; }
5662
fi
5663
max_cmd_len=$lt_cv_sys_max_cmd_len
5664
 
5665
 
5666
 
5667
 
5668
 
5669
 
5670
: ${CP="cp -f"}
5671
: ${MV="mv -f"}
5672
: ${RM="rm -f"}
5673
 
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5675
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5676
# Try some XSI features
5677
xsi_shell=no
5678
( _lt_dummy="a/b/c"
5679
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5680
      = c,a/b,, \
5681
    && eval 'test $(( 1 + 1 )) -eq 2 \
5682
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5683
  && xsi_shell=yes
5684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5685
$as_echo "$xsi_shell" >&6; }
5686
 
5687
 
5688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5689
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5690
lt_shell_append=no
5691
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5692
    >/dev/null 2>&1 \
5693
  && lt_shell_append=yes
5694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5695
$as_echo "$lt_shell_append" >&6; }
5696
 
5697
 
5698
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5699
  lt_unset=unset
5700
else
5701
  lt_unset=false
5702
fi
5703
 
5704
 
5705
 
5706
 
5707
 
5708
# test EBCDIC or ASCII
5709
case `echo X|tr X '\101'` in
5710
 A) # ASCII based system
5711
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5712
  lt_SP2NL='tr \040 \012'
5713
  lt_NL2SP='tr \015\012 \040\040'
5714
  ;;
5715
 *) # EBCDIC based system
5716
  lt_SP2NL='tr \100 \n'
5717
  lt_NL2SP='tr \r\n \100\100'
5718
  ;;
5719
esac
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5730
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5731
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5732
  $as_echo_n "(cached) " >&6
5733
else
5734
  lt_cv_ld_reload_flag='-r'
5735
fi
5736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5737
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5738
reload_flag=$lt_cv_ld_reload_flag
5739
case $reload_flag in
5740
"" | " "*) ;;
5741
*) reload_flag=" $reload_flag" ;;
5742
esac
5743
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5744
case $host_os in
5745
  darwin*)
5746
    if test "$GCC" = yes; then
5747
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5748
    else
5749
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750
    fi
5751
    ;;
5752
esac
5753
 
5754
 
5755
 
5756
 
5757
 
5758
 
5759
 
5760
 
5761
 
5762
if test -n "$ac_tool_prefix"; then
5763
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5764
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766
$as_echo_n "checking for $ac_word... " >&6; }
5767
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5768
  $as_echo_n "(cached) " >&6
5769
else
5770
  if test -n "$OBJDUMP"; then
5771
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5772
else
5773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774
for as_dir in $PATH
5775
do
5776
  IFS=$as_save_IFS
5777
  test -z "$as_dir" && as_dir=.
5778
    for ac_exec_ext in '' $ac_executable_extensions; do
5779
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5781
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782
    break 2
5783
  fi
5784
done
5785
  done
5786
IFS=$as_save_IFS
5787
 
5788
fi
5789
fi
5790
OBJDUMP=$ac_cv_prog_OBJDUMP
5791
if test -n "$OBJDUMP"; then
5792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5793
$as_echo "$OBJDUMP" >&6; }
5794
else
5795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796
$as_echo "no" >&6; }
5797
fi
5798
 
5799
 
5800
fi
5801
if test -z "$ac_cv_prog_OBJDUMP"; then
5802
  ac_ct_OBJDUMP=$OBJDUMP
5803
  # Extract the first word of "objdump", so it can be a program name with args.
5804
set dummy objdump; ac_word=$2
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806
$as_echo_n "checking for $ac_word... " >&6; }
5807
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5808
  $as_echo_n "(cached) " >&6
5809
else
5810
  if test -n "$ac_ct_OBJDUMP"; then
5811
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5812
else
5813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814
for as_dir in $PATH
5815
do
5816
  IFS=$as_save_IFS
5817
  test -z "$as_dir" && as_dir=.
5818
    for ac_exec_ext in '' $ac_executable_extensions; do
5819
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5821
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822
    break 2
5823
  fi
5824
done
5825
  done
5826
IFS=$as_save_IFS
5827
 
5828
fi
5829
fi
5830
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5831
if test -n "$ac_ct_OBJDUMP"; then
5832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5833
$as_echo "$ac_ct_OBJDUMP" >&6; }
5834
else
5835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836
$as_echo "no" >&6; }
5837
fi
5838
 
5839
  if test "x$ac_ct_OBJDUMP" = x; then
5840
    OBJDUMP="false"
5841
  else
5842
    case $cross_compiling:$ac_tool_warned in
5843
yes:)
5844
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5845
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5846
ac_tool_warned=yes ;;
5847
esac
5848
    OBJDUMP=$ac_ct_OBJDUMP
5849
  fi
5850
else
5851
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5852
fi
5853
 
5854
test -z "$OBJDUMP" && OBJDUMP=objdump
5855
 
5856
 
5857
 
5858
 
5859
 
5860
 
5861
 
5862
 
5863
 
5864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5865
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5866
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5867
  $as_echo_n "(cached) " >&6
5868
else
5869
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5870
lt_cv_file_magic_test_file=
5871
lt_cv_deplibs_check_method='unknown'
5872
# Need to set the preceding variable on all platforms that support
5873
# interlibrary dependencies.
5874
# 'none' -- dependencies not supported.
5875
# `unknown' -- same as none, but documents that we really don't know.
5876
# 'pass_all' -- all dependencies passed with no checks.
5877
# 'test_compile' -- check by making test program.
5878
# 'file_magic [[regex]]' -- check by looking for files in library path
5879
# which responds to the $file_magic_cmd with a given extended regex.
5880
# If you have `file' or equivalent on your system and you're not sure
5881
# whether `pass_all' will *always* work, you probably want this one.
5882
 
5883
case $host_os in
5884
aix[4-9]*)
5885
  lt_cv_deplibs_check_method=pass_all
5886
  ;;
5887
 
5888
beos*)
5889
  lt_cv_deplibs_check_method=pass_all
5890
  ;;
5891
 
5892
bsdi[45]*)
5893
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5895
  lt_cv_file_magic_test_file=/shlib/libc.so
5896
  ;;
5897
 
5898
cygwin*)
5899
  # func_win32_libid is a shell function defined in ltmain.sh
5900
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901
  lt_cv_file_magic_cmd='func_win32_libid'
5902
  ;;
5903
 
5904
mingw* | pw32*)
5905
  # Base MSYS/MinGW do not provide the 'file' command needed by
5906
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5907
  # unless we find 'file', for example because we are cross-compiling.
5908
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5909
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5910
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5911
    lt_cv_file_magic_cmd='func_win32_libid'
5912
  else
5913
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5914
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5915
  fi
5916
  ;;
5917
 
5918
cegcc*)
5919
  # use the weaker test based on 'objdump'. See mingw*.
5920
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5921
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5922
  ;;
5923
 
5924
darwin* | rhapsody*)
5925
  lt_cv_deplibs_check_method=pass_all
5926
  ;;
5927
 
5928
freebsd* | dragonfly*)
5929
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5930
    case $host_cpu in
5931
    i*86 )
5932
      # Not sure whether the presence of OpenBSD here was a mistake.
5933
      # Let's accept both of them until this is cleared up.
5934
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5935
      lt_cv_file_magic_cmd=/usr/bin/file
5936
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5937
      ;;
5938
    esac
5939
  else
5940
    lt_cv_deplibs_check_method=pass_all
5941
  fi
5942
  ;;
5943
 
5944
gnu*)
5945
  lt_cv_deplibs_check_method=pass_all
5946
  ;;
5947
 
5948
haiku*)
5949
  lt_cv_deplibs_check_method=pass_all
5950
  ;;
5951
 
5952
hpux10.20* | hpux11*)
5953
  lt_cv_file_magic_cmd=/usr/bin/file
5954
  case $host_cpu in
5955
  ia64*)
5956
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5957
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5958
    ;;
5959
  hppa*64*)
5960
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5961
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5962
    ;;
5963
  *)
5964
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5965
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5966
    ;;
5967
  esac
5968
  ;;
5969
 
5970
interix[3-9]*)
5971
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5972
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5973
  ;;
5974
 
5975
irix5* | irix6* | nonstopux*)
5976
  case $LD in
5977
  *-32|*"-32 ") libmagic=32-bit;;
5978
  *-n32|*"-n32 ") libmagic=N32;;
5979
  *-64|*"-64 ") libmagic=64-bit;;
5980
  *) libmagic=never-match;;
5981
  esac
5982
  lt_cv_deplibs_check_method=pass_all
5983
  ;;
5984
 
5985
# This must be Linux ELF.
5986
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5987
  lt_cv_deplibs_check_method=pass_all
5988
  ;;
5989
 
5990
netbsd*)
5991
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5992
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5993
  else
5994
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5995
  fi
5996
  ;;
5997
 
5998
newos6*)
5999
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6000
  lt_cv_file_magic_cmd=/usr/bin/file
6001
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6002
  ;;
6003
 
6004
*nto* | *qnx*)
6005
  lt_cv_deplibs_check_method=pass_all
6006
  ;;
6007
 
6008
openbsd*)
6009
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6010
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6011
  else
6012
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6013
  fi
6014
  ;;
6015
 
6016
osf3* | osf4* | osf5*)
6017
  lt_cv_deplibs_check_method=pass_all
6018
  ;;
6019
 
6020
rdos*)
6021
  lt_cv_deplibs_check_method=pass_all
6022
  ;;
6023
 
6024
solaris*)
6025
  lt_cv_deplibs_check_method=pass_all
6026
  ;;
6027
 
6028
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6029
  lt_cv_deplibs_check_method=pass_all
6030
  ;;
6031
 
6032
sysv4 | sysv4.3*)
6033
  case $host_vendor in
6034
  motorola)
6035
    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]'
6036
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6037
    ;;
6038
  ncr)
6039
    lt_cv_deplibs_check_method=pass_all
6040
    ;;
6041
  sequent)
6042
    lt_cv_file_magic_cmd='/bin/file'
6043
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6044
    ;;
6045
  sni)
6046
    lt_cv_file_magic_cmd='/bin/file'
6047
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6048
    lt_cv_file_magic_test_file=/lib/libc.so
6049
    ;;
6050
  siemens)
6051
    lt_cv_deplibs_check_method=pass_all
6052
    ;;
6053
  pc)
6054
    lt_cv_deplibs_check_method=pass_all
6055
    ;;
6056
  esac
6057
  ;;
6058
 
6059
tpf*)
6060
  lt_cv_deplibs_check_method=pass_all
6061
  ;;
6062
esac
6063
 
6064
fi
6065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6066
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6067
file_magic_cmd=$lt_cv_file_magic_cmd
6068
deplibs_check_method=$lt_cv_deplibs_check_method
6069
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6070
 
6071
 
6072
 
6073
 
6074
 
6075
 
6076
 
6077
 
6078
 
6079
 
6080
 
6081
 
6082
if test -n "$ac_tool_prefix"; then
6083
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6084
set dummy ${ac_tool_prefix}ar; ac_word=$2
6085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086
$as_echo_n "checking for $ac_word... " >&6; }
6087
if test "${ac_cv_prog_AR+set}" = set; then :
6088
  $as_echo_n "(cached) " >&6
6089
else
6090
  if test -n "$AR"; then
6091
  ac_cv_prog_AR="$AR" # Let the user override the test.
6092
else
6093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094
for as_dir in $PATH
6095
do
6096
  IFS=$as_save_IFS
6097
  test -z "$as_dir" && as_dir=.
6098
    for ac_exec_ext in '' $ac_executable_extensions; do
6099
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6101
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102
    break 2
6103
  fi
6104
done
6105
  done
6106
IFS=$as_save_IFS
6107
 
6108
fi
6109
fi
6110
AR=$ac_cv_prog_AR
6111
if test -n "$AR"; then
6112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6113
$as_echo "$AR" >&6; }
6114
else
6115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116
$as_echo "no" >&6; }
6117
fi
6118
 
6119
 
6120
fi
6121
if test -z "$ac_cv_prog_AR"; then
6122
  ac_ct_AR=$AR
6123
  # Extract the first word of "ar", so it can be a program name with args.
6124
set dummy ar; ac_word=$2
6125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126
$as_echo_n "checking for $ac_word... " >&6; }
6127
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6128
  $as_echo_n "(cached) " >&6
6129
else
6130
  if test -n "$ac_ct_AR"; then
6131
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6132
else
6133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134
for as_dir in $PATH
6135
do
6136
  IFS=$as_save_IFS
6137
  test -z "$as_dir" && as_dir=.
6138
    for ac_exec_ext in '' $ac_executable_extensions; do
6139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140
    ac_cv_prog_ac_ct_AR="ar"
6141
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142
    break 2
6143
  fi
6144
done
6145
  done
6146
IFS=$as_save_IFS
6147
 
6148
fi
6149
fi
6150
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6151
if test -n "$ac_ct_AR"; then
6152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6153
$as_echo "$ac_ct_AR" >&6; }
6154
else
6155
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156
$as_echo "no" >&6; }
6157
fi
6158
 
6159
  if test "x$ac_ct_AR" = x; then
6160
    AR="false"
6161
  else
6162
    case $cross_compiling:$ac_tool_warned in
6163
yes:)
6164
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166
ac_tool_warned=yes ;;
6167
esac
6168
    AR=$ac_ct_AR
6169
  fi
6170
else
6171
  AR="$ac_cv_prog_AR"
6172
fi
6173
 
6174
test -z "$AR" && AR=ar
6175
test -z "$AR_FLAGS" && AR_FLAGS=cru
6176
 
6177
 
6178
 
6179
 
6180
 
6181
 
6182
 
6183
 
6184
 
6185
 
6186
 
6187
if test -n "$ac_tool_prefix"; then
6188
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6189
set dummy ${ac_tool_prefix}strip; ac_word=$2
6190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191
$as_echo_n "checking for $ac_word... " >&6; }
6192
if test "${ac_cv_prog_STRIP+set}" = set; then :
6193
  $as_echo_n "(cached) " >&6
6194
else
6195
  if test -n "$STRIP"; then
6196
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6197
else
6198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199
for as_dir in $PATH
6200
do
6201
  IFS=$as_save_IFS
6202
  test -z "$as_dir" && as_dir=.
6203
    for ac_exec_ext in '' $ac_executable_extensions; do
6204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6206
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207
    break 2
6208
  fi
6209
done
6210
  done
6211
IFS=$as_save_IFS
6212
 
6213
fi
6214
fi
6215
STRIP=$ac_cv_prog_STRIP
6216
if test -n "$STRIP"; then
6217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6218
$as_echo "$STRIP" >&6; }
6219
else
6220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221
$as_echo "no" >&6; }
6222
fi
6223
 
6224
 
6225
fi
6226
if test -z "$ac_cv_prog_STRIP"; then
6227
  ac_ct_STRIP=$STRIP
6228
  # Extract the first word of "strip", so it can be a program name with args.
6229
set dummy strip; ac_word=$2
6230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231
$as_echo_n "checking for $ac_word... " >&6; }
6232
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6233
  $as_echo_n "(cached) " >&6
6234
else
6235
  if test -n "$ac_ct_STRIP"; then
6236
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6237
else
6238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239
for as_dir in $PATH
6240
do
6241
  IFS=$as_save_IFS
6242
  test -z "$as_dir" && as_dir=.
6243
    for ac_exec_ext in '' $ac_executable_extensions; do
6244
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245
    ac_cv_prog_ac_ct_STRIP="strip"
6246
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247
    break 2
6248
  fi
6249
done
6250
  done
6251
IFS=$as_save_IFS
6252
 
6253
fi
6254
fi
6255
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6256
if test -n "$ac_ct_STRIP"; then
6257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6258
$as_echo "$ac_ct_STRIP" >&6; }
6259
else
6260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261
$as_echo "no" >&6; }
6262
fi
6263
 
6264
  if test "x$ac_ct_STRIP" = x; then
6265
    STRIP=":"
6266
  else
6267
    case $cross_compiling:$ac_tool_warned in
6268
yes:)
6269
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271
ac_tool_warned=yes ;;
6272
esac
6273
    STRIP=$ac_ct_STRIP
6274
  fi
6275
else
6276
  STRIP="$ac_cv_prog_STRIP"
6277
fi
6278
 
6279
test -z "$STRIP" && STRIP=:
6280
 
6281
 
6282
 
6283
 
6284
 
6285
 
6286
if test -n "$ac_tool_prefix"; then
6287
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290
$as_echo_n "checking for $ac_word... " >&6; }
6291
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6292
  $as_echo_n "(cached) " >&6
6293
else
6294
  if test -n "$RANLIB"; then
6295
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6296
else
6297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
for as_dir in $PATH
6299
do
6300
  IFS=$as_save_IFS
6301
  test -z "$as_dir" && as_dir=.
6302
    for ac_exec_ext in '' $ac_executable_extensions; do
6303
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306
    break 2
6307
  fi
6308
done
6309
  done
6310
IFS=$as_save_IFS
6311
 
6312
fi
6313
fi
6314
RANLIB=$ac_cv_prog_RANLIB
6315
if test -n "$RANLIB"; then
6316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6317
$as_echo "$RANLIB" >&6; }
6318
else
6319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320
$as_echo "no" >&6; }
6321
fi
6322
 
6323
 
6324
fi
6325
if test -z "$ac_cv_prog_RANLIB"; then
6326
  ac_ct_RANLIB=$RANLIB
6327
  # Extract the first word of "ranlib", so it can be a program name with args.
6328
set dummy ranlib; ac_word=$2
6329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330
$as_echo_n "checking for $ac_word... " >&6; }
6331
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6332
  $as_echo_n "(cached) " >&6
6333
else
6334
  if test -n "$ac_ct_RANLIB"; then
6335
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6336
else
6337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338
for as_dir in $PATH
6339
do
6340
  IFS=$as_save_IFS
6341
  test -z "$as_dir" && as_dir=.
6342
    for ac_exec_ext in '' $ac_executable_extensions; do
6343
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6345
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346
    break 2
6347
  fi
6348
done
6349
  done
6350
IFS=$as_save_IFS
6351
 
6352
fi
6353
fi
6354
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6355
if test -n "$ac_ct_RANLIB"; then
6356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6357
$as_echo "$ac_ct_RANLIB" >&6; }
6358
else
6359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360
$as_echo "no" >&6; }
6361
fi
6362
 
6363
  if test "x$ac_ct_RANLIB" = x; then
6364
    RANLIB=":"
6365
  else
6366
    case $cross_compiling:$ac_tool_warned in
6367
yes:)
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370
ac_tool_warned=yes ;;
6371
esac
6372
    RANLIB=$ac_ct_RANLIB
6373
  fi
6374
else
6375
  RANLIB="$ac_cv_prog_RANLIB"
6376
fi
6377
 
6378
test -z "$RANLIB" && RANLIB=:
6379
 
6380
 
6381
 
6382
 
6383
 
6384
 
6385
# Determine commands to create old-style static archives.
6386
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6387
old_postinstall_cmds='chmod 644 $oldlib'
6388
old_postuninstall_cmds=
6389
 
6390
if test -n "$RANLIB"; then
6391
  case $host_os in
6392
  openbsd*)
6393
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6394
    ;;
6395
  *)
6396
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6397
    ;;
6398
  esac
6399
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6400
fi
6401
 
6402
case $host_os in
6403
  darwin*)
6404
    lock_old_archive_extraction=yes ;;
6405
  *)
6406
    lock_old_archive_extraction=no ;;
6407
esac
6408
 
6409
 
6410
 
6411
 
6412
 
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
 
6447
# If no C compiler was specified, use CC.
6448
LTCC=${LTCC-"$CC"}
6449
 
6450
# If no C compiler flags were specified, use CFLAGS.
6451
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6452
 
6453
# Allow CC to be a program name with arguments.
6454
compiler=$CC
6455
 
6456
 
6457
# Check for command to grab the raw symbol name followed by C symbol from nm.
6458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6459
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6460
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6461
  $as_echo_n "(cached) " >&6
6462
else
6463
 
6464
# These are sane defaults that work on at least a few old systems.
6465
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6466
 
6467
# Character class describing NM global symbol codes.
6468
symcode='[BCDEGRST]'
6469
 
6470
# Regexp to match symbols that can be accessed directly from C.
6471
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6472
 
6473
# Define system-specific variables.
6474
case $host_os in
6475
aix*)
6476
  symcode='[BCDT]'
6477
  ;;
6478
cygwin* | mingw* | pw32* | cegcc*)
6479
  symcode='[ABCDGISTW]'
6480
  ;;
6481
hpux*)
6482
  if test "$host_cpu" = ia64; then
6483
    symcode='[ABCDEGRST]'
6484
  fi
6485
  ;;
6486
irix* | nonstopux*)
6487
  symcode='[BCDEGRST]'
6488
  ;;
6489
osf*)
6490
  symcode='[BCDEGQRST]'
6491
  ;;
6492
solaris*)
6493
  symcode='[BDRT]'
6494
  ;;
6495
sco3.2v5*)
6496
  symcode='[DT]'
6497
  ;;
6498
sysv4.2uw2*)
6499
  symcode='[DT]'
6500
  ;;
6501
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6502
  symcode='[ABDT]'
6503
  ;;
6504
sysv4)
6505
  symcode='[DFNSTU]'
6506
  ;;
6507
esac
6508
 
6509
# If we're using GNU nm, then use its standard symbol codes.
6510
case `$NM -V 2>&1` in
6511
*GNU* | *'with BFD'*)
6512
  symcode='[ABCDGIRSTW]' ;;
6513
esac
6514
 
6515
# Transform an extracted symbol line into a proper C declaration.
6516
# Some systems (esp. on ia64) link data and code symbols differently,
6517
# so use this general approach.
6518
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519
 
6520
# Transform an extracted symbol line into symbol name and symbol address
6521
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6522
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'"
6523
 
6524
# Handle CRLF in mingw tool chain
6525
opt_cr=
6526
case $build_os in
6527
mingw*)
6528
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6529
  ;;
6530
esac
6531
 
6532
# Try without a prefix underscore, then with it.
6533
for ac_symprfx in "" "_"; do
6534
 
6535
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6536
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6537
 
6538
  # Write the raw and C identifiers.
6539
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6540
    # Fake it for dumpbin and say T for any non-static function
6541
    # and D for any global variable.
6542
    # Also find C++ and __fastcall symbols from MSVC++,
6543
    # which start with @ or ?.
6544
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6545
"     {last_section=section; section=\$ 3};"\
6546
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6547
"     \$ 0!~/External *\|/{next};"\
6548
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6549
"     {if(hide[section]) next};"\
6550
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6551
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6552
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6553
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6554
"     ' prfx=^$ac_symprfx"
6555
  else
6556
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6557
  fi
6558
 
6559
  # Check to see that the pipe works correctly.
6560
  pipe_works=no
6561
 
6562
  rm -f conftest*
6563
  cat > conftest.$ac_ext <<_LT_EOF
6564
#ifdef __cplusplus
6565
extern "C" {
6566
#endif
6567
char nm_test_var;
6568
void nm_test_func(void);
6569
void nm_test_func(void){}
6570
#ifdef __cplusplus
6571
}
6572
#endif
6573
int main(){nm_test_var='a';nm_test_func();return(0);}
6574
_LT_EOF
6575
 
6576
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577
  (eval $ac_compile) 2>&5
6578
  ac_status=$?
6579
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580
  test $ac_status = 0; }; then
6581
    # Now try to grab the symbols.
6582
    nlist=conftest.nm
6583
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6584
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6585
  ac_status=$?
6586
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587
  test $ac_status = 0; } && test -s "$nlist"; then
6588
      # Try sorting and uniquifying the output.
6589
      if sort "$nlist" | uniq > "$nlist"T; then
6590
        mv -f "$nlist"T "$nlist"
6591
      else
6592
        rm -f "$nlist"T
6593
      fi
6594
 
6595
      # Make sure that we snagged all the symbols we need.
6596
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6597
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6598
          cat <<_LT_EOF > conftest.$ac_ext
6599
#ifdef __cplusplus
6600
extern "C" {
6601
#endif
6602
 
6603
_LT_EOF
6604
          # Now generate the symbol file.
6605
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6606
 
6607
          cat <<_LT_EOF >> conftest.$ac_ext
6608
 
6609
/* The mapping between symbol names and symbols.  */
6610
const struct {
6611
  const char *name;
6612
  void       *address;
6613
}
6614
lt__PROGRAM__LTX_preloaded_symbols[] =
6615
{
6616
  { "@PROGRAM@", (void *) 0 },
6617
_LT_EOF
6618
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6619
          cat <<\_LT_EOF >> conftest.$ac_ext
6620
  {0, (void *) 0}
6621
};
6622
 
6623
/* This works around a problem in FreeBSD linker */
6624
#ifdef FREEBSD_WORKAROUND
6625
static const void *lt_preloaded_setup() {
6626
  return lt__PROGRAM__LTX_preloaded_symbols;
6627
}
6628
#endif
6629
 
6630
#ifdef __cplusplus
6631
}
6632
#endif
6633
_LT_EOF
6634
          # Now try linking the two files.
6635
          mv conftest.$ac_objext conftstm.$ac_objext
6636
          lt_save_LIBS="$LIBS"
6637
          lt_save_CFLAGS="$CFLAGS"
6638
          LIBS="conftstm.$ac_objext"
6639
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6640
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6641
  (eval $ac_link) 2>&5
6642
  ac_status=$?
6643
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6645
            pipe_works=yes
6646
          fi
6647
          LIBS="$lt_save_LIBS"
6648
          CFLAGS="$lt_save_CFLAGS"
6649
        else
6650
          echo "cannot find nm_test_func in $nlist" >&5
6651
        fi
6652
      else
6653
        echo "cannot find nm_test_var in $nlist" >&5
6654
      fi
6655
    else
6656
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6657
    fi
6658
  else
6659
    echo "$progname: failed program was:" >&5
6660
    cat conftest.$ac_ext >&5
6661
  fi
6662
  rm -rf conftest* conftst*
6663
 
6664
  # Do not use the global_symbol_pipe unless it works.
6665
  if test "$pipe_works" = yes; then
6666
    break
6667
  else
6668
    lt_cv_sys_global_symbol_pipe=
6669
  fi
6670
done
6671
 
6672
fi
6673
 
6674
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6675
  lt_cv_sys_global_symbol_to_cdecl=
6676
fi
6677
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6679
$as_echo "failed" >&6; }
6680
else
6681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6682
$as_echo "ok" >&6; }
6683
fi
6684
 
6685
 
6686
 
6687
 
6688
 
6689
 
6690
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
# Check whether --enable-libtool-lock was given.
6708
if test "${enable_libtool_lock+set}" = set; then :
6709
  enableval=$enable_libtool_lock;
6710
fi
6711
 
6712
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6713
 
6714
# Some flags need to be propagated to the compiler or linker for good
6715
# libtool support.
6716
case $host in
6717
ia64-*-hpux*)
6718
  # Find out which ABI we are using.
6719
  echo 'int i;' > conftest.$ac_ext
6720
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721
  (eval $ac_compile) 2>&5
6722
  ac_status=$?
6723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724
  test $ac_status = 0; }; then
6725
    case `/usr/bin/file conftest.$ac_objext` in
6726
      *ELF-32*)
6727
        HPUX_IA64_MODE="32"
6728
        ;;
6729
      *ELF-64*)
6730
        HPUX_IA64_MODE="64"
6731
        ;;
6732
    esac
6733
  fi
6734
  rm -rf conftest*
6735
  ;;
6736
*-*-irix6*)
6737
  # Find out which ABI we are using.
6738
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6739
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740
  (eval $ac_compile) 2>&5
6741
  ac_status=$?
6742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743
  test $ac_status = 0; }; then
6744
    if test "$lt_cv_prog_gnu_ld" = yes; then
6745
      case `/usr/bin/file conftest.$ac_objext` in
6746
        *32-bit*)
6747
          LD="${LD-ld} -melf32bsmip"
6748
          ;;
6749
        *N32*)
6750
          LD="${LD-ld} -melf32bmipn32"
6751
          ;;
6752
        *64-bit*)
6753
          LD="${LD-ld} -melf64bmip"
6754
        ;;
6755
      esac
6756
    else
6757
      case `/usr/bin/file conftest.$ac_objext` in
6758
        *32-bit*)
6759
          LD="${LD-ld} -32"
6760
          ;;
6761
        *N32*)
6762
          LD="${LD-ld} -n32"
6763
          ;;
6764
        *64-bit*)
6765
          LD="${LD-ld} -64"
6766
          ;;
6767
      esac
6768
    fi
6769
  fi
6770
  rm -rf conftest*
6771
  ;;
6772
 
6773
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6774
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6775
  # Find out which ABI we are using.
6776
  echo 'int i;' > conftest.$ac_ext
6777
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6778
  (eval $ac_compile) 2>&5
6779
  ac_status=$?
6780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781
  test $ac_status = 0; }; then
6782
    case `/usr/bin/file conftest.o` in
6783
      *32-bit*)
6784
        case $host in
6785
          x86_64-*kfreebsd*-gnu)
6786
            LD="${LD-ld} -m elf_i386_fbsd"
6787
            ;;
6788
          x86_64-*linux*)
6789
            LD="${LD-ld} -m elf_i386"
6790
            ;;
6791
          ppc64-*linux*|powerpc64-*linux*)
6792
            LD="${LD-ld} -m elf32ppclinux"
6793
            ;;
6794
          s390x-*linux*)
6795
            LD="${LD-ld} -m elf_s390"
6796
            ;;
6797
          sparc64-*linux*)
6798
            LD="${LD-ld} -m elf32_sparc"
6799
            ;;
6800
        esac
6801
        ;;
6802
      *64-bit*)
6803
        case $host in
6804
          x86_64-*kfreebsd*-gnu)
6805
            LD="${LD-ld} -m elf_x86_64_fbsd"
6806
            ;;
6807
          x86_64-*linux*)
6808
            LD="${LD-ld} -m elf_x86_64"
6809
            ;;
6810
          ppc*-*linux*|powerpc*-*linux*)
6811
            LD="${LD-ld} -m elf64ppc"
6812
            ;;
6813
          s390*-*linux*|s390*-*tpf*)
6814
            LD="${LD-ld} -m elf64_s390"
6815
            ;;
6816
          sparc*-*linux*)
6817
            LD="${LD-ld} -m elf64_sparc"
6818
            ;;
6819
        esac
6820
        ;;
6821
    esac
6822
  fi
6823
  rm -rf conftest*
6824
  ;;
6825
 
6826
*-*-sco3.2v5*)
6827
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6828
  SAVE_CFLAGS="$CFLAGS"
6829
  CFLAGS="$CFLAGS -belf"
6830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6831
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6832
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6833
  $as_echo_n "(cached) " >&6
6834
else
6835
  ac_ext=c
6836
ac_cpp='$CPP $CPPFLAGS'
6837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840
 
6841
     if test x$gcc_no_link = xyes; then
6842
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6843
fi
6844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845
/* end confdefs.h.  */
6846
 
6847
int
6848
main ()
6849
{
6850
 
6851
  ;
6852
  return 0;
6853
}
6854
_ACEOF
6855
if ac_fn_c_try_link "$LINENO"; then :
6856
  lt_cv_cc_needs_belf=yes
6857
else
6858
  lt_cv_cc_needs_belf=no
6859
fi
6860
rm -f core conftest.err conftest.$ac_objext \
6861
    conftest$ac_exeext conftest.$ac_ext
6862
     ac_ext=c
6863
ac_cpp='$CPP $CPPFLAGS'
6864
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867
 
6868
fi
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6870
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6871
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6872
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6873
    CFLAGS="$SAVE_CFLAGS"
6874
  fi
6875
  ;;
6876
sparc*-*solaris*)
6877
  # Find out which ABI we are using.
6878
  echo 'int i;' > conftest.$ac_ext
6879
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880
  (eval $ac_compile) 2>&5
6881
  ac_status=$?
6882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883
  test $ac_status = 0; }; then
6884
    case `/usr/bin/file conftest.o` in
6885
    *64-bit*)
6886
      case $lt_cv_prog_gnu_ld in
6887
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6888
      *)
6889
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6890
          LD="${LD-ld} -64"
6891
        fi
6892
        ;;
6893
      esac
6894
      ;;
6895
    esac
6896
  fi
6897
  rm -rf conftest*
6898
  ;;
6899
esac
6900
 
6901
need_locks="$enable_libtool_lock"
6902
 
6903
 
6904
  case $host_os in
6905
    rhapsody* | darwin*)
6906
    if test -n "$ac_tool_prefix"; then
6907
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6908
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910
$as_echo_n "checking for $ac_word... " >&6; }
6911
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6912
  $as_echo_n "(cached) " >&6
6913
else
6914
  if test -n "$DSYMUTIL"; then
6915
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6916
else
6917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918
for as_dir in $PATH
6919
do
6920
  IFS=$as_save_IFS
6921
  test -z "$as_dir" && as_dir=.
6922
    for ac_exec_ext in '' $ac_executable_extensions; do
6923
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6925
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926
    break 2
6927
  fi
6928
done
6929
  done
6930
IFS=$as_save_IFS
6931
 
6932
fi
6933
fi
6934
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6935
if test -n "$DSYMUTIL"; then
6936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6937
$as_echo "$DSYMUTIL" >&6; }
6938
else
6939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940
$as_echo "no" >&6; }
6941
fi
6942
 
6943
 
6944
fi
6945
if test -z "$ac_cv_prog_DSYMUTIL"; then
6946
  ac_ct_DSYMUTIL=$DSYMUTIL
6947
  # Extract the first word of "dsymutil", so it can be a program name with args.
6948
set dummy dsymutil; ac_word=$2
6949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950
$as_echo_n "checking for $ac_word... " >&6; }
6951
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6952
  $as_echo_n "(cached) " >&6
6953
else
6954
  if test -n "$ac_ct_DSYMUTIL"; then
6955
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6956
else
6957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958
for as_dir in $PATH
6959
do
6960
  IFS=$as_save_IFS
6961
  test -z "$as_dir" && as_dir=.
6962
    for ac_exec_ext in '' $ac_executable_extensions; do
6963
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6965
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966
    break 2
6967
  fi
6968
done
6969
  done
6970
IFS=$as_save_IFS
6971
 
6972
fi
6973
fi
6974
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6975
if test -n "$ac_ct_DSYMUTIL"; then
6976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6977
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6978
else
6979
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980
$as_echo "no" >&6; }
6981
fi
6982
 
6983
  if test "x$ac_ct_DSYMUTIL" = x; then
6984
    DSYMUTIL=":"
6985
  else
6986
    case $cross_compiling:$ac_tool_warned in
6987
yes:)
6988
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990
ac_tool_warned=yes ;;
6991
esac
6992
    DSYMUTIL=$ac_ct_DSYMUTIL
6993
  fi
6994
else
6995
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6996
fi
6997
 
6998
    if test -n "$ac_tool_prefix"; then
6999
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7000
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002
$as_echo_n "checking for $ac_word... " >&6; }
7003
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7004
  $as_echo_n "(cached) " >&6
7005
else
7006
  if test -n "$NMEDIT"; then
7007
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7008
else
7009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010
for as_dir in $PATH
7011
do
7012
  IFS=$as_save_IFS
7013
  test -z "$as_dir" && as_dir=.
7014
    for ac_exec_ext in '' $ac_executable_extensions; do
7015
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7017
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018
    break 2
7019
  fi
7020
done
7021
  done
7022
IFS=$as_save_IFS
7023
 
7024
fi
7025
fi
7026
NMEDIT=$ac_cv_prog_NMEDIT
7027
if test -n "$NMEDIT"; then
7028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7029
$as_echo "$NMEDIT" >&6; }
7030
else
7031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032
$as_echo "no" >&6; }
7033
fi
7034
 
7035
 
7036
fi
7037
if test -z "$ac_cv_prog_NMEDIT"; then
7038
  ac_ct_NMEDIT=$NMEDIT
7039
  # Extract the first word of "nmedit", so it can be a program name with args.
7040
set dummy nmedit; ac_word=$2
7041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042
$as_echo_n "checking for $ac_word... " >&6; }
7043
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7044
  $as_echo_n "(cached) " >&6
7045
else
7046
  if test -n "$ac_ct_NMEDIT"; then
7047
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7048
else
7049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050
for as_dir in $PATH
7051
do
7052
  IFS=$as_save_IFS
7053
  test -z "$as_dir" && as_dir=.
7054
    for ac_exec_ext in '' $ac_executable_extensions; do
7055
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7057
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058
    break 2
7059
  fi
7060
done
7061
  done
7062
IFS=$as_save_IFS
7063
 
7064
fi
7065
fi
7066
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7067
if test -n "$ac_ct_NMEDIT"; then
7068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7069
$as_echo "$ac_ct_NMEDIT" >&6; }
7070
else
7071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072
$as_echo "no" >&6; }
7073
fi
7074
 
7075
  if test "x$ac_ct_NMEDIT" = x; then
7076
    NMEDIT=":"
7077
  else
7078
    case $cross_compiling:$ac_tool_warned in
7079
yes:)
7080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082
ac_tool_warned=yes ;;
7083
esac
7084
    NMEDIT=$ac_ct_NMEDIT
7085
  fi
7086
else
7087
  NMEDIT="$ac_cv_prog_NMEDIT"
7088
fi
7089
 
7090
    if test -n "$ac_tool_prefix"; then
7091
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7092
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094
$as_echo_n "checking for $ac_word... " >&6; }
7095
if test "${ac_cv_prog_LIPO+set}" = set; then :
7096
  $as_echo_n "(cached) " >&6
7097
else
7098
  if test -n "$LIPO"; then
7099
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7100
else
7101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102
for as_dir in $PATH
7103
do
7104
  IFS=$as_save_IFS
7105
  test -z "$as_dir" && as_dir=.
7106
    for ac_exec_ext in '' $ac_executable_extensions; do
7107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7109
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110
    break 2
7111
  fi
7112
done
7113
  done
7114
IFS=$as_save_IFS
7115
 
7116
fi
7117
fi
7118
LIPO=$ac_cv_prog_LIPO
7119
if test -n "$LIPO"; then
7120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7121
$as_echo "$LIPO" >&6; }
7122
else
7123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124
$as_echo "no" >&6; }
7125
fi
7126
 
7127
 
7128
fi
7129
if test -z "$ac_cv_prog_LIPO"; then
7130
  ac_ct_LIPO=$LIPO
7131
  # Extract the first word of "lipo", so it can be a program name with args.
7132
set dummy lipo; ac_word=$2
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134
$as_echo_n "checking for $ac_word... " >&6; }
7135
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7136
  $as_echo_n "(cached) " >&6
7137
else
7138
  if test -n "$ac_ct_LIPO"; then
7139
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7140
else
7141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142
for as_dir in $PATH
7143
do
7144
  IFS=$as_save_IFS
7145
  test -z "$as_dir" && as_dir=.
7146
    for ac_exec_ext in '' $ac_executable_extensions; do
7147
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148
    ac_cv_prog_ac_ct_LIPO="lipo"
7149
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150
    break 2
7151
  fi
7152
done
7153
  done
7154
IFS=$as_save_IFS
7155
 
7156
fi
7157
fi
7158
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7159
if test -n "$ac_ct_LIPO"; then
7160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7161
$as_echo "$ac_ct_LIPO" >&6; }
7162
else
7163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164
$as_echo "no" >&6; }
7165
fi
7166
 
7167
  if test "x$ac_ct_LIPO" = x; then
7168
    LIPO=":"
7169
  else
7170
    case $cross_compiling:$ac_tool_warned in
7171
yes:)
7172
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174
ac_tool_warned=yes ;;
7175
esac
7176
    LIPO=$ac_ct_LIPO
7177
  fi
7178
else
7179
  LIPO="$ac_cv_prog_LIPO"
7180
fi
7181
 
7182
    if test -n "$ac_tool_prefix"; then
7183
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7184
set dummy ${ac_tool_prefix}otool; ac_word=$2
7185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186
$as_echo_n "checking for $ac_word... " >&6; }
7187
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7188
  $as_echo_n "(cached) " >&6
7189
else
7190
  if test -n "$OTOOL"; then
7191
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7192
else
7193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194
for as_dir in $PATH
7195
do
7196
  IFS=$as_save_IFS
7197
  test -z "$as_dir" && as_dir=.
7198
    for ac_exec_ext in '' $ac_executable_extensions; do
7199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7201
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202
    break 2
7203
  fi
7204
done
7205
  done
7206
IFS=$as_save_IFS
7207
 
7208
fi
7209
fi
7210
OTOOL=$ac_cv_prog_OTOOL
7211
if test -n "$OTOOL"; then
7212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7213
$as_echo "$OTOOL" >&6; }
7214
else
7215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216
$as_echo "no" >&6; }
7217
fi
7218
 
7219
 
7220
fi
7221
if test -z "$ac_cv_prog_OTOOL"; then
7222
  ac_ct_OTOOL=$OTOOL
7223
  # Extract the first word of "otool", so it can be a program name with args.
7224
set dummy otool; ac_word=$2
7225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226
$as_echo_n "checking for $ac_word... " >&6; }
7227
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7228
  $as_echo_n "(cached) " >&6
7229
else
7230
  if test -n "$ac_ct_OTOOL"; then
7231
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7232
else
7233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234
for as_dir in $PATH
7235
do
7236
  IFS=$as_save_IFS
7237
  test -z "$as_dir" && as_dir=.
7238
    for ac_exec_ext in '' $ac_executable_extensions; do
7239
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240
    ac_cv_prog_ac_ct_OTOOL="otool"
7241
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242
    break 2
7243
  fi
7244
done
7245
  done
7246
IFS=$as_save_IFS
7247
 
7248
fi
7249
fi
7250
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7251
if test -n "$ac_ct_OTOOL"; then
7252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7253
$as_echo "$ac_ct_OTOOL" >&6; }
7254
else
7255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256
$as_echo "no" >&6; }
7257
fi
7258
 
7259
  if test "x$ac_ct_OTOOL" = x; then
7260
    OTOOL=":"
7261
  else
7262
    case $cross_compiling:$ac_tool_warned in
7263
yes:)
7264
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266
ac_tool_warned=yes ;;
7267
esac
7268
    OTOOL=$ac_ct_OTOOL
7269
  fi
7270
else
7271
  OTOOL="$ac_cv_prog_OTOOL"
7272
fi
7273
 
7274
    if test -n "$ac_tool_prefix"; then
7275
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7276
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278
$as_echo_n "checking for $ac_word... " >&6; }
7279
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7280
  $as_echo_n "(cached) " >&6
7281
else
7282
  if test -n "$OTOOL64"; then
7283
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7284
else
7285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286
for as_dir in $PATH
7287
do
7288
  IFS=$as_save_IFS
7289
  test -z "$as_dir" && as_dir=.
7290
    for ac_exec_ext in '' $ac_executable_extensions; do
7291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7293
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294
    break 2
7295
  fi
7296
done
7297
  done
7298
IFS=$as_save_IFS
7299
 
7300
fi
7301
fi
7302
OTOOL64=$ac_cv_prog_OTOOL64
7303
if test -n "$OTOOL64"; then
7304
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7305
$as_echo "$OTOOL64" >&6; }
7306
else
7307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308
$as_echo "no" >&6; }
7309
fi
7310
 
7311
 
7312
fi
7313
if test -z "$ac_cv_prog_OTOOL64"; then
7314
  ac_ct_OTOOL64=$OTOOL64
7315
  # Extract the first word of "otool64", so it can be a program name with args.
7316
set dummy otool64; ac_word=$2
7317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318
$as_echo_n "checking for $ac_word... " >&6; }
7319
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7320
  $as_echo_n "(cached) " >&6
7321
else
7322
  if test -n "$ac_ct_OTOOL64"; then
7323
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7324
else
7325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326
for as_dir in $PATH
7327
do
7328
  IFS=$as_save_IFS
7329
  test -z "$as_dir" && as_dir=.
7330
    for ac_exec_ext in '' $ac_executable_extensions; do
7331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7333
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334
    break 2
7335
  fi
7336
done
7337
  done
7338
IFS=$as_save_IFS
7339
 
7340
fi
7341
fi
7342
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7343
if test -n "$ac_ct_OTOOL64"; then
7344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7345
$as_echo "$ac_ct_OTOOL64" >&6; }
7346
else
7347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348
$as_echo "no" >&6; }
7349
fi
7350
 
7351
  if test "x$ac_ct_OTOOL64" = x; then
7352
    OTOOL64=":"
7353
  else
7354
    case $cross_compiling:$ac_tool_warned in
7355
yes:)
7356
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358
ac_tool_warned=yes ;;
7359
esac
7360
    OTOOL64=$ac_ct_OTOOL64
7361
  fi
7362
else
7363
  OTOOL64="$ac_cv_prog_OTOOL64"
7364
fi
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
 
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
 
7389
 
7390
 
7391
 
7392
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7393
$as_echo_n "checking for -single_module linker flag... " >&6; }
7394
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7395
  $as_echo_n "(cached) " >&6
7396
else
7397
  lt_cv_apple_cc_single_mod=no
7398
      if test -z "${LT_MULTI_MODULE}"; then
7399
        # By default we will add the -single_module flag. You can override
7400
        # by either setting the environment variable LT_MULTI_MODULE
7401
        # non-empty at configure time, or by adding -multi_module to the
7402
        # link flags.
7403
        rm -rf libconftest.dylib*
7404
        echo "int foo(void){return 1;}" > conftest.c
7405
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7406
-dynamiclib -Wl,-single_module conftest.c" >&5
7407
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7408
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7409
        _lt_result=$?
7410
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7411
          lt_cv_apple_cc_single_mod=yes
7412
        else
7413
          cat conftest.err >&5
7414
        fi
7415
        rm -rf libconftest.dylib*
7416
        rm -f conftest.*
7417
      fi
7418
fi
7419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7420
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7421
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7422
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7423
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7424
  $as_echo_n "(cached) " >&6
7425
else
7426
  lt_cv_ld_exported_symbols_list=no
7427
      save_LDFLAGS=$LDFLAGS
7428
      echo "_main" > conftest.sym
7429
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7430
      if test x$gcc_no_link = xyes; then
7431
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7432
fi
7433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434
/* end confdefs.h.  */
7435
 
7436
int
7437
main ()
7438
{
7439
 
7440
  ;
7441
  return 0;
7442
}
7443
_ACEOF
7444
if ac_fn_c_try_link "$LINENO"; then :
7445
  lt_cv_ld_exported_symbols_list=yes
7446
else
7447
  lt_cv_ld_exported_symbols_list=no
7448
fi
7449
rm -f core conftest.err conftest.$ac_objext \
7450
    conftest$ac_exeext conftest.$ac_ext
7451
        LDFLAGS="$save_LDFLAGS"
7452
 
7453
fi
7454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7455
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7456
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7457
$as_echo_n "checking for -force_load linker flag... " >&6; }
7458
if test "${lt_cv_ld_force_load+set}" = set; then :
7459
  $as_echo_n "(cached) " >&6
7460
else
7461
  lt_cv_ld_force_load=no
7462
      cat > conftest.c << _LT_EOF
7463
int forced_loaded() { return 2;}
7464
_LT_EOF
7465
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7466
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7467
      echo "$AR cru libconftest.a conftest.o" >&5
7468
      $AR cru libconftest.a conftest.o 2>&5
7469
      cat > conftest.c << _LT_EOF
7470
int main() { return 0;}
7471
_LT_EOF
7472
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7473
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7474
      _lt_result=$?
7475
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7476
        lt_cv_ld_force_load=yes
7477
      else
7478
        cat conftest.err >&5
7479
      fi
7480
        rm -f conftest.err libconftest.a conftest conftest.c
7481
        rm -rf conftest.dSYM
7482
 
7483
fi
7484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485
$as_echo "$lt_cv_ld_force_load" >&6; }
7486
    case $host_os in
7487
    rhapsody* | darwin1.[012])
7488
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7489
    darwin1.*)
7490
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7491
    darwin*) # darwin 5.x on
7492
      # if running on 10.5 or later, the deployment target defaults
7493
      # to the OS version, if on x86, and 10.4, the deployment
7494
      # target defaults to 10.4. Don't you love it?
7495
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7498
        10.[012]*)
7499
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7500
        10.*)
7501
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7502
      esac
7503
    ;;
7504
  esac
7505
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7506
      _lt_dar_single_mod='$single_module'
7507
    fi
7508
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7509
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7510
    else
7511
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7512
    fi
7513
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7514
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7515
    else
7516
      _lt_dsymutil=
7517
    fi
7518
    ;;
7519
  esac
7520
 
7521
ac_ext=c
7522
ac_cpp='$CPP $CPPFLAGS'
7523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7527
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7528
# On Suns, sometimes $CPP names a directory.
7529
if test -n "$CPP" && test -d "$CPP"; then
7530
  CPP=
7531
fi
7532
if test -z "$CPP"; then
7533
  if test "${ac_cv_prog_CPP+set}" = set; then :
7534
  $as_echo_n "(cached) " >&6
7535
else
7536
      # Double quotes because CPP needs to be expanded
7537
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7538
    do
7539
      ac_preproc_ok=false
7540
for ac_c_preproc_warn_flag in '' yes
7541
do
7542
  # Use a header file that comes with gcc, so configuring glibc
7543
  # with a fresh cross-compiler works.
7544
  # Prefer  to  if __STDC__ is defined, since
7545
  #  exists even on freestanding compilers.
7546
  # On the NeXT, cc -E runs the code through the compiler's parser,
7547
  # not just through cpp. "Syntax error" is here to catch this case.
7548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549
/* end confdefs.h.  */
7550
#ifdef __STDC__
7551
# include 
7552
#else
7553
# include 
7554
#endif
7555
                     Syntax error
7556
_ACEOF
7557
if ac_fn_c_try_cpp "$LINENO"; then :
7558
 
7559
else
7560
  # Broken: fails on valid input.
7561
continue
7562
fi
7563
rm -f conftest.err conftest.$ac_ext
7564
 
7565
  # OK, works on sane cases.  Now check whether nonexistent headers
7566
  # can be detected and how.
7567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568
/* end confdefs.h.  */
7569
#include 
7570
_ACEOF
7571
if ac_fn_c_try_cpp "$LINENO"; then :
7572
  # Broken: success on invalid input.
7573
continue
7574
else
7575
  # Passes both tests.
7576
ac_preproc_ok=:
7577
break
7578
fi
7579
rm -f conftest.err conftest.$ac_ext
7580
 
7581
done
7582
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7583
rm -f conftest.err conftest.$ac_ext
7584
if $ac_preproc_ok; then :
7585
  break
7586
fi
7587
 
7588
    done
7589
    ac_cv_prog_CPP=$CPP
7590
 
7591
fi
7592
  CPP=$ac_cv_prog_CPP
7593
else
7594
  ac_cv_prog_CPP=$CPP
7595
fi
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7597
$as_echo "$CPP" >&6; }
7598
ac_preproc_ok=false
7599
for ac_c_preproc_warn_flag in '' yes
7600
do
7601
  # Use a header file that comes with gcc, so configuring glibc
7602
  # with a fresh cross-compiler works.
7603
  # Prefer  to  if __STDC__ is defined, since
7604
  #  exists even on freestanding compilers.
7605
  # On the NeXT, cc -E runs the code through the compiler's parser,
7606
  # not just through cpp. "Syntax error" is here to catch this case.
7607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608
/* end confdefs.h.  */
7609
#ifdef __STDC__
7610
# include 
7611
#else
7612
# include 
7613
#endif
7614
                     Syntax error
7615
_ACEOF
7616
if ac_fn_c_try_cpp "$LINENO"; then :
7617
 
7618
else
7619
  # Broken: fails on valid input.
7620
continue
7621
fi
7622
rm -f conftest.err conftest.$ac_ext
7623
 
7624
  # OK, works on sane cases.  Now check whether nonexistent headers
7625
  # can be detected and how.
7626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627
/* end confdefs.h.  */
7628
#include 
7629
_ACEOF
7630
if ac_fn_c_try_cpp "$LINENO"; then :
7631
  # Broken: success on invalid input.
7632
continue
7633
else
7634
  # Passes both tests.
7635
ac_preproc_ok=:
7636
break
7637
fi
7638
rm -f conftest.err conftest.$ac_ext
7639
 
7640
done
7641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7642
rm -f conftest.err conftest.$ac_ext
7643
if $ac_preproc_ok; then :
7644
 
7645
else
7646
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7648
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7649
See \`config.log' for more details." "$LINENO" 5; }
7650
fi
7651
 
7652
ac_ext=c
7653
ac_cpp='$CPP $CPPFLAGS'
7654
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
 
7658
 
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660
$as_echo_n "checking for ANSI C header files... " >&6; }
7661
if test "${ac_cv_header_stdc+set}" = set; then :
7662
  $as_echo_n "(cached) " >&6
7663
else
7664
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665
/* end confdefs.h.  */
7666
#include 
7667
#include 
7668
#include 
7669
#include 
7670
 
7671
int
7672
main ()
7673
{
7674
 
7675
  ;
7676
  return 0;
7677
}
7678
_ACEOF
7679
if ac_fn_c_try_compile "$LINENO"; then :
7680
  ac_cv_header_stdc=yes
7681
else
7682
  ac_cv_header_stdc=no
7683
fi
7684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685
 
7686
if test $ac_cv_header_stdc = yes; then
7687
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689
/* end confdefs.h.  */
7690
#include 
7691
 
7692
_ACEOF
7693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694
  $EGREP "memchr" >/dev/null 2>&1; then :
7695
 
7696
else
7697
  ac_cv_header_stdc=no
7698
fi
7699
rm -f conftest*
7700
 
7701
fi
7702
 
7703
if test $ac_cv_header_stdc = yes; then
7704
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706
/* end confdefs.h.  */
7707
#include 
7708
 
7709
_ACEOF
7710
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711
  $EGREP "free" >/dev/null 2>&1; then :
7712
 
7713
else
7714
  ac_cv_header_stdc=no
7715
fi
7716
rm -f conftest*
7717
 
7718
fi
7719
 
7720
if test $ac_cv_header_stdc = yes; then
7721
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722
  if test "$cross_compiling" = yes; then :
7723
  :
7724
else
7725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726
/* end confdefs.h.  */
7727
#include 
7728
#include 
7729
#if ((' ' & 0x0FF) == 0x020)
7730
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732
#else
7733
# define ISLOWER(c) \
7734
                   (('a' <= (c) && (c) <= 'i') \
7735
                     || ('j' <= (c) && (c) <= 'r') \
7736
                     || ('s' <= (c) && (c) <= 'z'))
7737
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738
#endif
7739
 
7740
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7741
int
7742
main ()
7743
{
7744
  int i;
7745
  for (i = 0; i < 256; i++)
7746
    if (XOR (islower (i), ISLOWER (i))
7747
        || toupper (i) != TOUPPER (i))
7748
      return 2;
7749
  return 0;
7750
}
7751
_ACEOF
7752
if ac_fn_c_try_run "$LINENO"; then :
7753
 
7754
else
7755
  ac_cv_header_stdc=no
7756
fi
7757
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7758
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7759
fi
7760
 
7761
fi
7762
fi
7763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764
$as_echo "$ac_cv_header_stdc" >&6; }
7765
if test $ac_cv_header_stdc = yes; then
7766
 
7767
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7768
 
7769
fi
7770
 
7771
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7772
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7773
                  inttypes.h stdint.h unistd.h
7774
do :
7775
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7777
"
7778
eval as_val=\$$as_ac_Header
7779
   if test "x$as_val" = x""yes; then :
7780
  cat >>confdefs.h <<_ACEOF
7781
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782
_ACEOF
7783
 
7784
fi
7785
 
7786
done
7787
 
7788
 
7789
for ac_header in dlfcn.h
7790
do :
7791
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7792
"
7793
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7794
  cat >>confdefs.h <<_ACEOF
7795
#define HAVE_DLFCN_H 1
7796
_ACEOF
7797
 
7798
fi
7799
 
7800
done
7801
 
7802
 
7803
 
7804
 
7805
 
7806
 
7807
# Set options
7808
 
7809
 
7810
 
7811
        enable_dlopen=no
7812
 
7813
 
7814
  enable_win32_dll=no
7815
 
7816
 
7817
            # Check whether --enable-shared was given.
7818
if test "${enable_shared+set}" = set; then :
7819
  enableval=$enable_shared; p=${PACKAGE-default}
7820
    case $enableval in
7821
    yes) enable_shared=yes ;;
7822
    no) enable_shared=no ;;
7823
    *)
7824
      enable_shared=no
7825
      # Look at the argument we got.  We use all the common list separators.
7826
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7827
      for pkg in $enableval; do
7828
        IFS="$lt_save_ifs"
7829
        if test "X$pkg" = "X$p"; then
7830
          enable_shared=yes
7831
        fi
7832
      done
7833
      IFS="$lt_save_ifs"
7834
      ;;
7835
    esac
7836
else
7837
  enable_shared=yes
7838
fi
7839
 
7840
 
7841
 
7842
 
7843
 
7844
 
7845
 
7846
 
7847
 
7848
  # Check whether --enable-static was given.
7849
if test "${enable_static+set}" = set; then :
7850
  enableval=$enable_static; p=${PACKAGE-default}
7851
    case $enableval in
7852
    yes) enable_static=yes ;;
7853
    no) enable_static=no ;;
7854
    *)
7855
     enable_static=no
7856
      # Look at the argument we got.  We use all the common list separators.
7857
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7858
      for pkg in $enableval; do
7859
        IFS="$lt_save_ifs"
7860
        if test "X$pkg" = "X$p"; then
7861
          enable_static=yes
7862
        fi
7863
      done
7864
      IFS="$lt_save_ifs"
7865
      ;;
7866
    esac
7867
else
7868
  enable_static=yes
7869
fi
7870
 
7871
 
7872
 
7873
 
7874
 
7875
 
7876
 
7877
 
7878
 
7879
 
7880
# Check whether --with-pic was given.
7881
if test "${with_pic+set}" = set; then :
7882
  withval=$with_pic; pic_mode="$withval"
7883
else
7884
  pic_mode=default
7885
fi
7886
 
7887
 
7888
test -z "$pic_mode" && pic_mode=default
7889
 
7890
 
7891
 
7892
 
7893
 
7894
 
7895
 
7896
  # Check whether --enable-fast-install was given.
7897
if test "${enable_fast_install+set}" = set; then :
7898
  enableval=$enable_fast_install; p=${PACKAGE-default}
7899
    case $enableval in
7900
    yes) enable_fast_install=yes ;;
7901
    no) enable_fast_install=no ;;
7902
    *)
7903
      enable_fast_install=no
7904
      # Look at the argument we got.  We use all the common list separators.
7905
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7906
      for pkg in $enableval; do
7907
        IFS="$lt_save_ifs"
7908
        if test "X$pkg" = "X$p"; then
7909
          enable_fast_install=yes
7910
        fi
7911
      done
7912
      IFS="$lt_save_ifs"
7913
      ;;
7914
    esac
7915
else
7916
  enable_fast_install=yes
7917
fi
7918
 
7919
 
7920
 
7921
 
7922
 
7923
 
7924
 
7925
 
7926
 
7927
 
7928
 
7929
# This can be used to rebuild libtool when needed
7930
LIBTOOL_DEPS="$ltmain"
7931
 
7932
# Always use our own libtool.
7933
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7934
 
7935
 
7936
 
7937
 
7938
 
7939
 
7940
 
7941
 
7942
 
7943
 
7944
 
7945
 
7946
 
7947
 
7948
 
7949
 
7950
 
7951
 
7952
 
7953
 
7954
 
7955
 
7956
 
7957
 
7958
 
7959
 
7960
test -z "$LN_S" && LN_S="ln -s"
7961
 
7962
 
7963
 
7964
 
7965
 
7966
 
7967
 
7968
 
7969
 
7970
 
7971
 
7972
 
7973
 
7974
 
7975
if test -n "${ZSH_VERSION+set}" ; then
7976
   setopt NO_GLOB_SUBST
7977
fi
7978
 
7979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7980
$as_echo_n "checking for objdir... " >&6; }
7981
if test "${lt_cv_objdir+set}" = set; then :
7982
  $as_echo_n "(cached) " >&6
7983
else
7984
  rm -f .libs 2>/dev/null
7985
mkdir .libs 2>/dev/null
7986
if test -d .libs; then
7987
  lt_cv_objdir=.libs
7988
else
7989
  # MS-DOS does not allow filenames that begin with a dot.
7990
  lt_cv_objdir=_libs
7991
fi
7992
rmdir .libs 2>/dev/null
7993
fi
7994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7995
$as_echo "$lt_cv_objdir" >&6; }
7996
objdir=$lt_cv_objdir
7997
 
7998
 
7999
 
8000
 
8001
 
8002
cat >>confdefs.h <<_ACEOF
8003
#define LT_OBJDIR "$lt_cv_objdir/"
8004
_ACEOF
8005
 
8006
 
8007
 
8008
 
8009
case $host_os in
8010
aix3*)
8011
  # AIX sometimes has problems with the GCC collect2 program.  For some
8012
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8013
  # vanish in a puff of smoke.
8014
  if test "X${COLLECT_NAMES+set}" != Xset; then
8015
    COLLECT_NAMES=
8016
    export COLLECT_NAMES
8017
  fi
8018
  ;;
8019
esac
8020
 
8021
# Global variables:
8022
ofile=libtool
8023
can_build_shared=yes
8024
 
8025
# All known linkers require a `.a' archive for static linking (except MSVC,
8026
# which needs '.lib').
8027
libext=a
8028
 
8029
with_gnu_ld="$lt_cv_prog_gnu_ld"
8030
 
8031
old_CC="$CC"
8032
old_CFLAGS="$CFLAGS"
8033
 
8034
# Set sane defaults for various variables
8035
test -z "$CC" && CC=cc
8036
test -z "$LTCC" && LTCC=$CC
8037
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8038
test -z "$LD" && LD=ld
8039
test -z "$ac_objext" && ac_objext=o
8040
 
8041
for cc_temp in $compiler""; do
8042
  case $cc_temp in
8043
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8044
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8045
    \-*) ;;
8046
    *) break;;
8047
  esac
8048
done
8049
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8050
 
8051
 
8052
# Only perform the check for file, if the check method requires it
8053
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8054
case $deplibs_check_method in
8055
file_magic*)
8056
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8057
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8058
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8059
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8060
  $as_echo_n "(cached) " >&6
8061
else
8062
  case $MAGIC_CMD in
8063
[\\/*] |  ?:[\\/]*)
8064
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8065
  ;;
8066
*)
8067
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8068
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8069
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8070
  for ac_dir in $ac_dummy; do
8071
    IFS="$lt_save_ifs"
8072
    test -z "$ac_dir" && ac_dir=.
8073
    if test -f $ac_dir/${ac_tool_prefix}file; then
8074
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8075
      if test -n "$file_magic_test_file"; then
8076
        case $deplibs_check_method in
8077
        "file_magic "*)
8078
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8079
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8081
            $EGREP "$file_magic_regex" > /dev/null; then
8082
            :
8083
          else
8084
            cat <<_LT_EOF 1>&2
8085
 
8086
*** Warning: the command libtool uses to detect shared libraries,
8087
*** $file_magic_cmd, produces output that libtool cannot recognize.
8088
*** The result is that libtool may fail to recognize shared libraries
8089
*** as such.  This will affect the creation of libtool libraries that
8090
*** depend on shared libraries, but programs linked with such libtool
8091
*** libraries will work regardless of this problem.  Nevertheless, you
8092
*** may want to report the problem to your system manager and/or to
8093
*** bug-libtool@gnu.org
8094
 
8095
_LT_EOF
8096
          fi ;;
8097
        esac
8098
      fi
8099
      break
8100
    fi
8101
  done
8102
  IFS="$lt_save_ifs"
8103
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8104
  ;;
8105
esac
8106
fi
8107
 
8108
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8109
if test -n "$MAGIC_CMD"; then
8110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8111
$as_echo "$MAGIC_CMD" >&6; }
8112
else
8113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114
$as_echo "no" >&6; }
8115
fi
8116
 
8117
 
8118
 
8119
 
8120
 
8121
if test -z "$lt_cv_path_MAGIC_CMD"; then
8122
  if test -n "$ac_tool_prefix"; then
8123
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8124
$as_echo_n "checking for file... " >&6; }
8125
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8126
  $as_echo_n "(cached) " >&6
8127
else
8128
  case $MAGIC_CMD in
8129
[\\/*] |  ?:[\\/]*)
8130
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8131
  ;;
8132
*)
8133
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8134
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8135
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8136
  for ac_dir in $ac_dummy; do
8137
    IFS="$lt_save_ifs"
8138
    test -z "$ac_dir" && ac_dir=.
8139
    if test -f $ac_dir/file; then
8140
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8141
      if test -n "$file_magic_test_file"; then
8142
        case $deplibs_check_method in
8143
        "file_magic "*)
8144
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8145
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8147
            $EGREP "$file_magic_regex" > /dev/null; then
8148
            :
8149
          else
8150
            cat <<_LT_EOF 1>&2
8151
 
8152
*** Warning: the command libtool uses to detect shared libraries,
8153
*** $file_magic_cmd, produces output that libtool cannot recognize.
8154
*** The result is that libtool may fail to recognize shared libraries
8155
*** as such.  This will affect the creation of libtool libraries that
8156
*** depend on shared libraries, but programs linked with such libtool
8157
*** libraries will work regardless of this problem.  Nevertheless, you
8158
*** may want to report the problem to your system manager and/or to
8159
*** bug-libtool@gnu.org
8160
 
8161
_LT_EOF
8162
          fi ;;
8163
        esac
8164
      fi
8165
      break
8166
    fi
8167
  done
8168
  IFS="$lt_save_ifs"
8169
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8170
  ;;
8171
esac
8172
fi
8173
 
8174
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8175
if test -n "$MAGIC_CMD"; then
8176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8177
$as_echo "$MAGIC_CMD" >&6; }
8178
else
8179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180
$as_echo "no" >&6; }
8181
fi
8182
 
8183
 
8184
  else
8185
    MAGIC_CMD=:
8186
  fi
8187
fi
8188
 
8189
  fi
8190
  ;;
8191
esac
8192
 
8193
# Use C for the default configuration in the libtool script
8194
 
8195
lt_save_CC="$CC"
8196
ac_ext=c
8197
ac_cpp='$CPP $CPPFLAGS'
8198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8201
 
8202
 
8203
# Source file extension for C test sources.
8204
ac_ext=c
8205
 
8206
# Object file extension for compiled C test sources.
8207
objext=o
8208
objext=$objext
8209
 
8210
# Code to be used in simple compile tests
8211
lt_simple_compile_test_code="int some_variable = 0;"
8212
 
8213
# Code to be used in simple link tests
8214
lt_simple_link_test_code='int main(){return(0);}'
8215
 
8216
 
8217
 
8218
 
8219
 
8220
 
8221
 
8222
# If no C compiler was specified, use CC.
8223
LTCC=${LTCC-"$CC"}
8224
 
8225
# If no C compiler flags were specified, use CFLAGS.
8226
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8227
 
8228
# Allow CC to be a program name with arguments.
8229
compiler=$CC
8230
 
8231
# Save the default compiler, since it gets overwritten when the other
8232
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8233
compiler_DEFAULT=$CC
8234
 
8235
# save warnings/boilerplate of simple test code
8236
ac_outfile=conftest.$ac_objext
8237
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8238
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8239
_lt_compiler_boilerplate=`cat conftest.err`
8240
$RM conftest*
8241
 
8242
ac_outfile=conftest.$ac_objext
8243
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8244
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8245
_lt_linker_boilerplate=`cat conftest.err`
8246
$RM -r conftest*
8247
 
8248
 
8249
## CAVEAT EMPTOR:
8250
## There is no encapsulation within the following macros, do not change
8251
## the running order or otherwise move them around unless you know exactly
8252
## what you are doing...
8253
if test -n "$compiler"; then
8254
 
8255
lt_prog_compiler_no_builtin_flag=
8256
 
8257
if test "$GCC" = yes; then
8258
  case $cc_basename in
8259
  nvcc*)
8260
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8261
  *)
8262
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8263
  esac
8264
 
8265
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8266
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8267
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8268
  $as_echo_n "(cached) " >&6
8269
else
8270
  lt_cv_prog_compiler_rtti_exceptions=no
8271
   ac_outfile=conftest.$ac_objext
8272
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8274
   # Insert the option either (1) after the last *FLAGS variable, or
8275
   # (2) before a word containing "conftest.", or (3) at the end.
8276
   # Note that $ac_compile itself does not contain backslashes and begins
8277
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8278
   # The option is referenced via a variable to avoid confusing sed.
8279
   lt_compile=`echo "$ac_compile" | $SED \
8280
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282
   -e 's:$: $lt_compiler_flag:'`
8283
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284
   (eval "$lt_compile" 2>conftest.err)
8285
   ac_status=$?
8286
   cat conftest.err >&5
8287
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288
   if (exit $ac_status) && test -s "$ac_outfile"; then
8289
     # The compiler can only warn and ignore the option if not recognized
8290
     # So say no if there are warnings other than the usual output.
8291
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8292
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294
       lt_cv_prog_compiler_rtti_exceptions=yes
8295
     fi
8296
   fi
8297
   $RM conftest*
8298
 
8299
fi
8300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8301
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302
 
8303
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8304
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8305
else
8306
    :
8307
fi
8308
 
8309
fi
8310
 
8311
 
8312
 
8313
 
8314
 
8315
 
8316
  lt_prog_compiler_wl=
8317
lt_prog_compiler_pic=
8318
lt_prog_compiler_static=
8319
 
8320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8321
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8322
 
8323
  if test "$GCC" = yes; then
8324
    lt_prog_compiler_wl='-Wl,'
8325
    lt_prog_compiler_static='-static'
8326
 
8327
    case $host_os in
8328
      aix*)
8329
      # All AIX code is PIC.
8330
      if test "$host_cpu" = ia64; then
8331
        # AIX 5 now supports IA64 processor
8332
        lt_prog_compiler_static='-Bstatic'
8333
      fi
8334
      ;;
8335
 
8336
    amigaos*)
8337
      case $host_cpu in
8338
      powerpc)
8339
            # see comment about AmigaOS4 .so support
8340
            lt_prog_compiler_pic='-fPIC'
8341
        ;;
8342
      m68k)
8343
            # FIXME: we need at least 68020 code to build shared libraries, but
8344
            # adding the `-m68020' flag to GCC prevents building anything better,
8345
            # like `-m68040'.
8346
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8347
        ;;
8348
      esac
8349
      ;;
8350
 
8351
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8352
      # PIC is the default for these OSes.
8353
      ;;
8354
 
8355
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8356
      # This hack is so that the source file can tell whether it is being
8357
      # built for inclusion in a dll (and should export symbols for example).
8358
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8359
      # (--disable-auto-import) libraries
8360
      lt_prog_compiler_pic='-DDLL_EXPORT'
8361
      ;;
8362
 
8363
    darwin* | rhapsody*)
8364
      # PIC is the default on this platform
8365
      # Common symbols not allowed in MH_DYLIB files
8366
      lt_prog_compiler_pic='-fno-common'
8367
      ;;
8368
 
8369
    haiku*)
8370
      # PIC is the default for Haiku.
8371
      # The "-static" flag exists, but is broken.
8372
      lt_prog_compiler_static=
8373
      ;;
8374
 
8375
    hpux*)
8376
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8377
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8378
      # sets the default TLS model and affects inlining.
8379
      case $host_cpu in
8380
      hppa*64*)
8381
        # +Z the default
8382
        ;;
8383
      *)
8384
        lt_prog_compiler_pic='-fPIC'
8385
        ;;
8386
      esac
8387
      ;;
8388
 
8389
    interix[3-9]*)
8390
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8391
      # Instead, we relocate shared libraries at runtime.
8392
      ;;
8393
 
8394
    msdosdjgpp*)
8395
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8396
      # on systems that don't support them.
8397
      lt_prog_compiler_can_build_shared=no
8398
      enable_shared=no
8399
      ;;
8400
 
8401
    *nto* | *qnx*)
8402
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8403
      # it will coredump.
8404
      lt_prog_compiler_pic='-fPIC -shared'
8405
      ;;
8406
 
8407
    sysv4*MP*)
8408
      if test -d /usr/nec; then
8409
        lt_prog_compiler_pic=-Kconform_pic
8410
      fi
8411
      ;;
8412
 
8413
    *)
8414
      lt_prog_compiler_pic='-fPIC'
8415
      ;;
8416
    esac
8417
 
8418
    case $cc_basename in
8419
    nvcc*) # Cuda Compiler Driver 2.2
8420
      lt_prog_compiler_wl='-Xlinker '
8421
      lt_prog_compiler_pic='-Xcompiler -fPIC'
8422
      ;;
8423
    esac
8424
  else
8425
    # PORTME Check for flag to pass linker flags through the system compiler.
8426
    case $host_os in
8427
    aix*)
8428
      lt_prog_compiler_wl='-Wl,'
8429
      if test "$host_cpu" = ia64; then
8430
        # AIX 5 now supports IA64 processor
8431
        lt_prog_compiler_static='-Bstatic'
8432
      else
8433
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8434
      fi
8435
      ;;
8436
 
8437
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8438
      # This hack is so that the source file can tell whether it is being
8439
      # built for inclusion in a dll (and should export symbols for example).
8440
      lt_prog_compiler_pic='-DDLL_EXPORT'
8441
      ;;
8442
 
8443
    hpux9* | hpux10* | hpux11*)
8444
      lt_prog_compiler_wl='-Wl,'
8445
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8446
      # not for PA HP-UX.
8447
      case $host_cpu in
8448
      hppa*64*|ia64*)
8449
        # +Z the default
8450
        ;;
8451
      *)
8452
        lt_prog_compiler_pic='+Z'
8453
        ;;
8454
      esac
8455
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8456
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8457
      ;;
8458
 
8459
    irix5* | irix6* | nonstopux*)
8460
      lt_prog_compiler_wl='-Wl,'
8461
      # PIC (with -KPIC) is the default.
8462
      lt_prog_compiler_static='-non_shared'
8463
      ;;
8464
 
8465
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8466
      case $cc_basename in
8467
      # old Intel for x86_64 which still supported -KPIC.
8468
      ecc*)
8469
        lt_prog_compiler_wl='-Wl,'
8470
        lt_prog_compiler_pic='-KPIC'
8471
        lt_prog_compiler_static='-static'
8472
        ;;
8473
      # icc used to be incompatible with GCC.
8474
      # ICC 10 doesn't accept -KPIC any more.
8475
      icc* | ifort*)
8476
        lt_prog_compiler_wl='-Wl,'
8477
        lt_prog_compiler_pic='-fPIC'
8478
        lt_prog_compiler_static='-static'
8479
        ;;
8480
      # Lahey Fortran 8.1.
8481
      lf95*)
8482
        lt_prog_compiler_wl='-Wl,'
8483
        lt_prog_compiler_pic='--shared'
8484
        lt_prog_compiler_static='--static'
8485
        ;;
8486
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8487
        # Portland Group compilers (*not* the Pentium gcc compiler,
8488
        # which looks to be a dead project)
8489
        lt_prog_compiler_wl='-Wl,'
8490
        lt_prog_compiler_pic='-fpic'
8491
        lt_prog_compiler_static='-Bstatic'
8492
        ;;
8493
      ccc*)
8494
        lt_prog_compiler_wl='-Wl,'
8495
        # All Alpha code is PIC.
8496
        lt_prog_compiler_static='-non_shared'
8497
        ;;
8498
      xl* | bgxl* | bgf* | mpixl*)
8499
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8500
        lt_prog_compiler_wl='-Wl,'
8501
        lt_prog_compiler_pic='-qpic'
8502
        lt_prog_compiler_static='-qstaticlink'
8503
        ;;
8504
      *)
8505
        case `$CC -V 2>&1 | sed 5q` in
8506
        *Sun\ F* | *Sun*Fortran*)
8507
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8508
          lt_prog_compiler_pic='-KPIC'
8509
          lt_prog_compiler_static='-Bstatic'
8510
          lt_prog_compiler_wl=''
8511
          ;;
8512
        *Sun\ C*)
8513
          # Sun C 5.9
8514
          lt_prog_compiler_pic='-KPIC'
8515
          lt_prog_compiler_static='-Bstatic'
8516
          lt_prog_compiler_wl='-Wl,'
8517
          ;;
8518
        esac
8519
        ;;
8520
      esac
8521
      ;;
8522
 
8523
    newsos6)
8524
      lt_prog_compiler_pic='-KPIC'
8525
      lt_prog_compiler_static='-Bstatic'
8526
      ;;
8527
 
8528
    *nto* | *qnx*)
8529
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8530
      # it will coredump.
8531
      lt_prog_compiler_pic='-fPIC -shared'
8532
      ;;
8533
 
8534
    osf3* | osf4* | osf5*)
8535
      lt_prog_compiler_wl='-Wl,'
8536
      # All OSF/1 code is PIC.
8537
      lt_prog_compiler_static='-non_shared'
8538
      ;;
8539
 
8540
    rdos*)
8541
      lt_prog_compiler_static='-non_shared'
8542
      ;;
8543
 
8544
    solaris*)
8545
      lt_prog_compiler_pic='-KPIC'
8546
      lt_prog_compiler_static='-Bstatic'
8547
      case $cc_basename in
8548
      f77* | f90* | f95*)
8549
        lt_prog_compiler_wl='-Qoption ld ';;
8550
      *)
8551
        lt_prog_compiler_wl='-Wl,';;
8552
      esac
8553
      ;;
8554
 
8555
    sunos4*)
8556
      lt_prog_compiler_wl='-Qoption ld '
8557
      lt_prog_compiler_pic='-PIC'
8558
      lt_prog_compiler_static='-Bstatic'
8559
      ;;
8560
 
8561
    sysv4 | sysv4.2uw2* | sysv4.3*)
8562
      lt_prog_compiler_wl='-Wl,'
8563
      lt_prog_compiler_pic='-KPIC'
8564
      lt_prog_compiler_static='-Bstatic'
8565
      ;;
8566
 
8567
    sysv4*MP*)
8568
      if test -d /usr/nec ;then
8569
        lt_prog_compiler_pic='-Kconform_pic'
8570
        lt_prog_compiler_static='-Bstatic'
8571
      fi
8572
      ;;
8573
 
8574
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8575
      lt_prog_compiler_wl='-Wl,'
8576
      lt_prog_compiler_pic='-KPIC'
8577
      lt_prog_compiler_static='-Bstatic'
8578
      ;;
8579
 
8580
    unicos*)
8581
      lt_prog_compiler_wl='-Wl,'
8582
      lt_prog_compiler_can_build_shared=no
8583
      ;;
8584
 
8585
    uts4*)
8586
      lt_prog_compiler_pic='-pic'
8587
      lt_prog_compiler_static='-Bstatic'
8588
      ;;
8589
 
8590
    *)
8591
      lt_prog_compiler_can_build_shared=no
8592
      ;;
8593
    esac
8594
  fi
8595
 
8596
case $host_os in
8597
  # For platforms which do not support PIC, -DPIC is meaningless:
8598
  *djgpp*)
8599
    lt_prog_compiler_pic=
8600
    ;;
8601
  *)
8602
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8603
    ;;
8604
esac
8605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8606
$as_echo "$lt_prog_compiler_pic" >&6; }
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
#
8614
# Check to make sure the PIC flag actually works.
8615
#
8616
if test -n "$lt_prog_compiler_pic"; then
8617
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8618
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8619
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8620
  $as_echo_n "(cached) " >&6
8621
else
8622
  lt_cv_prog_compiler_pic_works=no
8623
   ac_outfile=conftest.$ac_objext
8624
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8626
   # Insert the option either (1) after the last *FLAGS variable, or
8627
   # (2) before a word containing "conftest.", or (3) at the end.
8628
   # Note that $ac_compile itself does not contain backslashes and begins
8629
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8630
   # The option is referenced via a variable to avoid confusing sed.
8631
   lt_compile=`echo "$ac_compile" | $SED \
8632
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634
   -e 's:$: $lt_compiler_flag:'`
8635
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8636
   (eval "$lt_compile" 2>conftest.err)
8637
   ac_status=$?
8638
   cat conftest.err >&5
8639
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640
   if (exit $ac_status) && test -s "$ac_outfile"; then
8641
     # The compiler can only warn and ignore the option if not recognized
8642
     # So say no if there are warnings other than the usual output.
8643
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8644
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8645
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8646
       lt_cv_prog_compiler_pic_works=yes
8647
     fi
8648
   fi
8649
   $RM conftest*
8650
 
8651
fi
8652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8653
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8654
 
8655
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8656
    case $lt_prog_compiler_pic in
8657
     "" | " "*) ;;
8658
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8659
     esac
8660
else
8661
    lt_prog_compiler_pic=
8662
     lt_prog_compiler_can_build_shared=no
8663
fi
8664
 
8665
fi
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
#
8673
# Check to make sure the static flag actually works.
8674
#
8675
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8677
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8678
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8679
  $as_echo_n "(cached) " >&6
8680
else
8681
  lt_cv_prog_compiler_static_works=no
8682
   save_LDFLAGS="$LDFLAGS"
8683
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8684
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8685
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8686
     # The linker can only warn and ignore the option if not recognized
8687
     # So say no if there are warnings
8688
     if test -s conftest.err; then
8689
       # Append any errors to the config.log.
8690
       cat conftest.err 1>&5
8691
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8692
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8693
       if diff conftest.exp conftest.er2 >/dev/null; then
8694
         lt_cv_prog_compiler_static_works=yes
8695
       fi
8696
     else
8697
       lt_cv_prog_compiler_static_works=yes
8698
     fi
8699
   fi
8700
   $RM -r conftest*
8701
   LDFLAGS="$save_LDFLAGS"
8702
 
8703
fi
8704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8705
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8706
 
8707
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8708
    :
8709
else
8710
    lt_prog_compiler_static=
8711
fi
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8720
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8721
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8722
  $as_echo_n "(cached) " >&6
8723
else
8724
  lt_cv_prog_compiler_c_o=no
8725
   $RM -r conftest 2>/dev/null
8726
   mkdir conftest
8727
   cd conftest
8728
   mkdir out
8729
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8730
 
8731
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8732
   # Insert the option either (1) after the last *FLAGS variable, or
8733
   # (2) before a word containing "conftest.", or (3) at the end.
8734
   # Note that $ac_compile itself does not contain backslashes and begins
8735
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8736
   lt_compile=`echo "$ac_compile" | $SED \
8737
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8738
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8739
   -e 's:$: $lt_compiler_flag:'`
8740
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8741
   (eval "$lt_compile" 2>out/conftest.err)
8742
   ac_status=$?
8743
   cat out/conftest.err >&5
8744
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8746
   then
8747
     # The compiler can only warn and ignore the option if not recognized
8748
     # So say no if there are warnings
8749
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8750
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8751
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8752
       lt_cv_prog_compiler_c_o=yes
8753
     fi
8754
   fi
8755
   chmod u+w . 2>&5
8756
   $RM conftest*
8757
   # SGI C++ compiler will create directory out/ii_files/ for
8758
   # template instantiation
8759
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8760
   $RM out/* && rmdir out
8761
   cd ..
8762
   $RM -r conftest
8763
   $RM conftest*
8764
 
8765
fi
8766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8767
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8775
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8776
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8777
  $as_echo_n "(cached) " >&6
8778
else
8779
  lt_cv_prog_compiler_c_o=no
8780
   $RM -r conftest 2>/dev/null
8781
   mkdir conftest
8782
   cd conftest
8783
   mkdir out
8784
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785
 
8786
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8787
   # Insert the option either (1) after the last *FLAGS variable, or
8788
   # (2) before a word containing "conftest.", or (3) at the end.
8789
   # Note that $ac_compile itself does not contain backslashes and begins
8790
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8791
   lt_compile=`echo "$ac_compile" | $SED \
8792
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794
   -e 's:$: $lt_compiler_flag:'`
8795
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796
   (eval "$lt_compile" 2>out/conftest.err)
8797
   ac_status=$?
8798
   cat out/conftest.err >&5
8799
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8801
   then
8802
     # The compiler can only warn and ignore the option if not recognized
8803
     # So say no if there are warnings
8804
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8805
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8806
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8807
       lt_cv_prog_compiler_c_o=yes
8808
     fi
8809
   fi
8810
   chmod u+w . 2>&5
8811
   $RM conftest*
8812
   # SGI C++ compiler will create directory out/ii_files/ for
8813
   # template instantiation
8814
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8815
   $RM out/* && rmdir out
8816
   cd ..
8817
   $RM -r conftest
8818
   $RM conftest*
8819
 
8820
fi
8821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8822
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8823
 
8824
 
8825
 
8826
 
8827
hard_links="nottested"
8828
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8829
  # do not overwrite the value of need_locks provided by the user
8830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8831
$as_echo_n "checking if we can lock with hard links... " >&6; }
8832
  hard_links=yes
8833
  $RM conftest*
8834
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8835
  touch conftest.a
8836
  ln conftest.a conftest.b 2>&5 || hard_links=no
8837
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8839
$as_echo "$hard_links" >&6; }
8840
  if test "$hard_links" = no; then
8841
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8842
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8843
    need_locks=warn
8844
  fi
8845
else
8846
  need_locks=no
8847
fi
8848
 
8849
 
8850
 
8851
 
8852
 
8853
 
8854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8855
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8856
 
8857
  runpath_var=
8858
  allow_undefined_flag=
8859
  always_export_symbols=no
8860
  archive_cmds=
8861
  archive_expsym_cmds=
8862
  compiler_needs_object=no
8863
  enable_shared_with_static_runtimes=no
8864
  export_dynamic_flag_spec=
8865
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8866
  hardcode_automatic=no
8867
  hardcode_direct=no
8868
  hardcode_direct_absolute=no
8869
  hardcode_libdir_flag_spec=
8870
  hardcode_libdir_flag_spec_ld=
8871
  hardcode_libdir_separator=
8872
  hardcode_minus_L=no
8873
  hardcode_shlibpath_var=unsupported
8874
  inherit_rpath=no
8875
  link_all_deplibs=unknown
8876
  module_cmds=
8877
  module_expsym_cmds=
8878
  old_archive_from_new_cmds=
8879
  old_archive_from_expsyms_cmds=
8880
  thread_safe_flag_spec=
8881
  whole_archive_flag_spec=
8882
  # include_expsyms should be a list of space-separated symbols to be *always*
8883
  # included in the symbol list
8884
  include_expsyms=
8885
  # exclude_expsyms can be an extended regexp of symbols to exclude
8886
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8887
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8888
  # as well as any symbol that contains `d'.
8889
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8890
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8891
  # platforms (ab)use it in PIC code, but their linkers get confused if
8892
  # the symbol is explicitly referenced.  Since portable code cannot
8893
  # rely on this symbol name, it's probably fine to never include it in
8894
  # preloaded symbol tables.
8895
  # Exclude shared library initialization/finalization symbols.
8896
  extract_expsyms_cmds=
8897
 
8898
  case $host_os in
8899
  cygwin* | mingw* | pw32* | cegcc*)
8900
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8901
    # When not using gcc, we currently assume that we are using
8902
    # Microsoft Visual C++.
8903
    if test "$GCC" != yes; then
8904
      with_gnu_ld=no
8905
    fi
8906
    ;;
8907
  interix*)
8908
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8909
    with_gnu_ld=yes
8910
    ;;
8911
  openbsd*)
8912
    with_gnu_ld=no
8913
    ;;
8914
  esac
8915
 
8916
  ld_shlibs=yes
8917
 
8918
  # On some targets, GNU ld is compatible enough with the native linker
8919
  # that we're better off using the native interface for both.
8920
  lt_use_gnu_ld_interface=no
8921
  if test "$with_gnu_ld" = yes; then
8922
    case $host_os in
8923
      aix*)
8924
        # The AIX port of GNU ld has always aspired to compatibility
8925
        # with the native linker.  However, as the warning in the GNU ld
8926
        # block says, versions before 2.19.5* couldn't really create working
8927
        # shared libraries, regardless of the interface used.
8928
        case `$LD -v 2>&1` in
8929
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8930
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8931
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8932
          *)
8933
            lt_use_gnu_ld_interface=yes
8934
            ;;
8935
        esac
8936
        ;;
8937
      *)
8938
        lt_use_gnu_ld_interface=yes
8939
        ;;
8940
    esac
8941
  fi
8942
 
8943
  if test "$lt_use_gnu_ld_interface" = yes; then
8944
    # If archive_cmds runs LD, not CC, wlarc should be empty
8945
    wlarc='${wl}'
8946
 
8947
    # Set some defaults for GNU ld with shared library support. These
8948
    # are reset later if shared libraries are not supported. Putting them
8949
    # here allows them to be overridden if necessary.
8950
    runpath_var=LD_RUN_PATH
8951
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952
    export_dynamic_flag_spec='${wl}--export-dynamic'
8953
    # ancient GNU ld didn't support --whole-archive et. al.
8954
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8955
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8956
    else
8957
      whole_archive_flag_spec=
8958
    fi
8959
    supports_anon_versioning=no
8960
    case `$LD -v 2>&1` in
8961
      *GNU\ gold*) supports_anon_versioning=yes ;;
8962
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8963
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8964
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8965
      *\ 2.11.*) ;; # other 2.11 versions
8966
      *) supports_anon_versioning=yes ;;
8967
    esac
8968
 
8969
    # See if GNU ld supports shared libraries.
8970
    case $host_os in
8971
    aix[3-9]*)
8972
      # On AIX/PPC, the GNU linker is very broken
8973
      if test "$host_cpu" != ia64; then
8974
        ld_shlibs=no
8975
        cat <<_LT_EOF 1>&2
8976
 
8977
*** Warning: the GNU linker, at least up to release 2.19, is reported
8978
*** to be unable to reliably create shared libraries on AIX.
8979
*** Therefore, libtool is disabling shared libraries support.  If you
8980
*** really care for shared libraries, you may want to install binutils
8981
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8982
*** You will then need to restart the configuration process.
8983
 
8984
_LT_EOF
8985
      fi
8986
      ;;
8987
 
8988
    amigaos*)
8989
      case $host_cpu in
8990
      powerpc)
8991
            # see comment about AmigaOS4 .so support
8992
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993
            archive_expsym_cmds=''
8994
        ;;
8995
      m68k)
8996
            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)'
8997
            hardcode_libdir_flag_spec='-L$libdir'
8998
            hardcode_minus_L=yes
8999
        ;;
9000
      esac
9001
      ;;
9002
 
9003
    beos*)
9004
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005
        allow_undefined_flag=unsupported
9006
        # Joseph Beckenbach  says some releases of gcc
9007
        # support --undefined.  This deserves some investigation.  FIXME
9008
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009
      else
9010
        ld_shlibs=no
9011
      fi
9012
      ;;
9013
 
9014
    cygwin* | mingw* | pw32* | cegcc*)
9015
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9016
      # as there is no search path for DLLs.
9017
      hardcode_libdir_flag_spec='-L$libdir'
9018
      export_dynamic_flag_spec='${wl}--export-all-symbols'
9019
      allow_undefined_flag=unsupported
9020
      always_export_symbols=no
9021
      enable_shared_with_static_runtimes=yes
9022
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9023
 
9024
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9025
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9026
        # If the export-symbols file already is a .def file (1st line
9027
        # is EXPORTS), use it as is; otherwise, prepend...
9028
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9029
          cp $export_symbols $output_objdir/$soname.def;
9030
        else
9031
          echo EXPORTS > $output_objdir/$soname.def;
9032
          cat $export_symbols >> $output_objdir/$soname.def;
9033
        fi~
9034
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9035
      else
9036
        ld_shlibs=no
9037
      fi
9038
      ;;
9039
 
9040
    haiku*)
9041
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042
      link_all_deplibs=yes
9043
      ;;
9044
 
9045
    interix[3-9]*)
9046
      hardcode_direct=no
9047
      hardcode_shlibpath_var=no
9048
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9049
      export_dynamic_flag_spec='${wl}-E'
9050
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9051
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9052
      # default) and relocated if they conflict, which is a slow very memory
9053
      # consuming and fragmenting process.  To avoid this, we pick a random,
9054
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9055
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9056
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9057
      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'
9058
      ;;
9059
 
9060
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9061
      tmp_diet=no
9062
      if test "$host_os" = linux-dietlibc; then
9063
        case $cc_basename in
9064
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9065
        esac
9066
      fi
9067
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9068
         && test "$tmp_diet" = no
9069
      then
9070
        tmp_addflag=
9071
        tmp_sharedflag='-shared'
9072
        case $cc_basename,$host_cpu in
9073
        pgcc*)                          # Portland Group C compiler
9074
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9075
          tmp_addflag=' $pic_flag'
9076
          ;;
9077
        pgf77* | pgf90* | pgf95* | pgfortran*)
9078
                                        # Portland Group f77 and f90 compilers
9079
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9080
          tmp_addflag=' $pic_flag -Mnomain' ;;
9081
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9082
          tmp_addflag=' -i_dynamic' ;;
9083
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9084
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9085
        ifc* | ifort*)                  # Intel Fortran compiler
9086
          tmp_addflag=' -nofor_main' ;;
9087
        lf95*)                          # Lahey Fortran 8.1
9088
          whole_archive_flag_spec=
9089
          tmp_sharedflag='--shared' ;;
9090
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9091
          tmp_sharedflag='-qmkshrobj'
9092
          tmp_addflag= ;;
9093
        nvcc*)  # Cuda Compiler Driver 2.2
9094
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9095
          compiler_needs_object=yes
9096
          ;;
9097
        esac
9098
        case `$CC -V 2>&1 | sed 5q` in
9099
        *Sun\ C*)                       # Sun C 5.9
9100
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9101
          compiler_needs_object=yes
9102
          tmp_sharedflag='-G' ;;
9103
        *Sun\ F*)                       # Sun Fortran 8.3
9104
          tmp_sharedflag='-G' ;;
9105
        esac
9106
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107
 
9108
        if test "x$supports_anon_versioning" = xyes; then
9109
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111
            echo "local: *; };" >> $output_objdir/$libname.ver~
9112
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9113
        fi
9114
 
9115
        case $cc_basename in
9116
        xlf* | bgf* | bgxlf* | mpixlf*)
9117
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9118
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9119
          hardcode_libdir_flag_spec=
9120
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9121
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9122
          if test "x$supports_anon_versioning" = xyes; then
9123
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9124
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9125
              echo "local: *; };" >> $output_objdir/$libname.ver~
9126
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9127
          fi
9128
          ;;
9129
        esac
9130
      else
9131
        ld_shlibs=no
9132
      fi
9133
      ;;
9134
 
9135
    netbsd*)
9136
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9137
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9138
        wlarc=
9139
      else
9140
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9141
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9142
      fi
9143
      ;;
9144
 
9145
    solaris*)
9146
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9147
        ld_shlibs=no
9148
        cat <<_LT_EOF 1>&2
9149
 
9150
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9151
*** create shared libraries on Solaris systems.  Therefore, libtool
9152
*** is disabling shared libraries support.  We urge you to upgrade GNU
9153
*** binutils to release 2.9.1 or newer.  Another option is to modify
9154
*** your PATH or compiler configuration so that the native linker is
9155
*** used, and then restart.
9156
 
9157
_LT_EOF
9158
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9159
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9161
      else
9162
        ld_shlibs=no
9163
      fi
9164
      ;;
9165
 
9166
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9167
      case `$LD -v 2>&1` in
9168
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9169
        ld_shlibs=no
9170
        cat <<_LT_EOF 1>&2
9171
 
9172
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9173
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9174
*** is disabling shared libraries support.  We urge you to upgrade GNU
9175
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9176
*** your PATH or compiler configuration so that the native linker is
9177
*** used, and then restart.
9178
 
9179
_LT_EOF
9180
        ;;
9181
        *)
9182
          # For security reasons, it is highly recommended that you always
9183
          # use absolute paths for naming shared libraries, and exclude the
9184
          # DT_RUNPATH tag from executables and libraries.  But doing so
9185
          # requires that you compile everything twice, which is a pain.
9186
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9190
          else
9191
            ld_shlibs=no
9192
          fi
9193
        ;;
9194
      esac
9195
      ;;
9196
 
9197
    sunos4*)
9198
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9199
      wlarc=
9200
      hardcode_direct=yes
9201
      hardcode_shlibpath_var=no
9202
      ;;
9203
 
9204
    *)
9205
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9206
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9208
      else
9209
        ld_shlibs=no
9210
      fi
9211
      ;;
9212
    esac
9213
 
9214
    if test "$ld_shlibs" = no; then
9215
      runpath_var=
9216
      hardcode_libdir_flag_spec=
9217
      export_dynamic_flag_spec=
9218
      whole_archive_flag_spec=
9219
    fi
9220
  else
9221
    # PORTME fill in a description of your system's linker (not GNU ld)
9222
    case $host_os in
9223
    aix3*)
9224
      allow_undefined_flag=unsupported
9225
      always_export_symbols=yes
9226
      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'
9227
      # Note: this linker hardcodes the directories in LIBPATH if there
9228
      # are no directories specified by -L.
9229
      hardcode_minus_L=yes
9230
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9231
        # Neither direct hardcoding nor static linking is supported with a
9232
        # broken collect2.
9233
        hardcode_direct=unsupported
9234
      fi
9235
      ;;
9236
 
9237
    aix[4-9]*)
9238
      if test "$host_cpu" = ia64; then
9239
        # On IA64, the linker does run time linking by default, so we don't
9240
        # have to do anything special.
9241
        aix_use_runtimelinking=no
9242
        exp_sym_flag='-Bexport'
9243
        no_entry_flag=""
9244
      else
9245
        # If we're using GNU nm, then we don't want the "-C" option.
9246
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9247
        # Also, AIX nm treats weak defined symbols like other global
9248
        # defined symbols, whereas GNU nm marks them as "W".
9249
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9250
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9251
        else
9252
          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'
9253
        fi
9254
        aix_use_runtimelinking=no
9255
 
9256
        # Test if we are trying to use run time linking or normal
9257
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9258
        # need to do runtime linking.
9259
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9260
          for ld_flag in $LDFLAGS; do
9261
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9262
            aix_use_runtimelinking=yes
9263
            break
9264
          fi
9265
          done
9266
          ;;
9267
        esac
9268
 
9269
        exp_sym_flag='-bexport'
9270
        no_entry_flag='-bnoentry'
9271
      fi
9272
 
9273
      # When large executables or shared objects are built, AIX ld can
9274
      # have problems creating the table of contents.  If linking a library
9275
      # or program results in "error TOC overflow" add -mminimal-toc to
9276
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9277
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9278
 
9279
      archive_cmds=''
9280
      hardcode_direct=yes
9281
      hardcode_direct_absolute=yes
9282
      hardcode_libdir_separator=':'
9283
      link_all_deplibs=yes
9284
      file_list_spec='${wl}-f,'
9285
 
9286
      if test "$GCC" = yes; then
9287
        case $host_os in aix4.[012]|aix4.[012].*)
9288
        # We only want to do this on AIX 4.2 and lower, the check
9289
        # below for broken collect2 doesn't work under 4.3+
9290
          collect2name=`${CC} -print-prog-name=collect2`
9291
          if test -f "$collect2name" &&
9292
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9293
          then
9294
          # We have reworked collect2
9295
          :
9296
          else
9297
          # We have old collect2
9298
          hardcode_direct=unsupported
9299
          # It fails to find uninstalled libraries when the uninstalled
9300
          # path is not listed in the libpath.  Setting hardcode_minus_L
9301
          # to unsupported forces relinking
9302
          hardcode_minus_L=yes
9303
          hardcode_libdir_flag_spec='-L$libdir'
9304
          hardcode_libdir_separator=
9305
          fi
9306
          ;;
9307
        esac
9308
        shared_flag='-shared'
9309
        if test "$aix_use_runtimelinking" = yes; then
9310
          shared_flag="$shared_flag "'${wl}-G'
9311
        fi
9312
      else
9313
        # not using gcc
9314
        if test "$host_cpu" = ia64; then
9315
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9316
        # chokes on -Wl,-G. The following line is correct:
9317
          shared_flag='-G'
9318
        else
9319
          if test "$aix_use_runtimelinking" = yes; then
9320
            shared_flag='${wl}-G'
9321
          else
9322
            shared_flag='${wl}-bM:SRE'
9323
          fi
9324
        fi
9325
      fi
9326
 
9327
      export_dynamic_flag_spec='${wl}-bexpall'
9328
      # It seems that -bexpall does not export symbols beginning with
9329
      # underscore (_), so it is better to generate a list of symbols to export.
9330
      always_export_symbols=yes
9331
      if test "$aix_use_runtimelinking" = yes; then
9332
        # Warning - without using the other runtime loading flags (-brtl),
9333
        # -berok will link without error, but may produce a broken library.
9334
        allow_undefined_flag='-berok'
9335
        # Determine the default libpath from the value encoded in an
9336
        # empty executable.
9337
        if test x$gcc_no_link = xyes; then
9338
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9339
fi
9340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341
/* end confdefs.h.  */
9342
 
9343
int
9344
main ()
9345
{
9346
 
9347
  ;
9348
  return 0;
9349
}
9350
_ACEOF
9351
if ac_fn_c_try_link "$LINENO"; then :
9352
 
9353
lt_aix_libpath_sed='
9354
    /Import File Strings/,/^$/ {
9355
        /^0/ {
9356
            s/^0  *\(.*\)$/\1/
9357
            p
9358
        }
9359
    }'
9360
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9361
# Check for a 64-bit object if we didn't find anything.
9362
if test -z "$aix_libpath"; then
9363
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9364
fi
9365
fi
9366
rm -f core conftest.err conftest.$ac_objext \
9367
    conftest$ac_exeext conftest.$ac_ext
9368
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9369
 
9370
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9371
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9372
      else
9373
        if test "$host_cpu" = ia64; then
9374
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9375
          allow_undefined_flag="-z nodefs"
9376
          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"
9377
        else
9378
         # Determine the default libpath from the value encoded in an
9379
         # empty executable.
9380
         if test x$gcc_no_link = xyes; then
9381
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9382
fi
9383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384
/* end confdefs.h.  */
9385
 
9386
int
9387
main ()
9388
{
9389
 
9390
  ;
9391
  return 0;
9392
}
9393
_ACEOF
9394
if ac_fn_c_try_link "$LINENO"; then :
9395
 
9396
lt_aix_libpath_sed='
9397
    /Import File Strings/,/^$/ {
9398
        /^0/ {
9399
            s/^0  *\(.*\)$/\1/
9400
            p
9401
        }
9402
    }'
9403
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9404
# Check for a 64-bit object if we didn't find anything.
9405
if test -z "$aix_libpath"; then
9406
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407
fi
9408
fi
9409
rm -f core conftest.err conftest.$ac_objext \
9410
    conftest$ac_exeext conftest.$ac_ext
9411
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9412
 
9413
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9414
          # Warning - without using the other run time loading flags,
9415
          # -berok will link without error, but may produce a broken library.
9416
          no_undefined_flag=' ${wl}-bernotok'
9417
          allow_undefined_flag=' ${wl}-berok'
9418
          if test "$with_gnu_ld" = yes; then
9419
            # We only use this code for GNU lds that support --whole-archive.
9420
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9421
          else
9422
            # Exported symbols can be pulled into shared objects from archives
9423
            whole_archive_flag_spec='$convenience'
9424
          fi
9425
          archive_cmds_need_lc=yes
9426
          # This is similar to how AIX traditionally builds its shared libraries.
9427
          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'
9428
        fi
9429
      fi
9430
      ;;
9431
 
9432
    amigaos*)
9433
      case $host_cpu in
9434
      powerpc)
9435
            # see comment about AmigaOS4 .so support
9436
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437
            archive_expsym_cmds=''
9438
        ;;
9439
      m68k)
9440
            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)'
9441
            hardcode_libdir_flag_spec='-L$libdir'
9442
            hardcode_minus_L=yes
9443
        ;;
9444
      esac
9445
      ;;
9446
 
9447
    bsdi[45]*)
9448
      export_dynamic_flag_spec=-rdynamic
9449
      ;;
9450
 
9451
    cygwin* | mingw* | pw32* | cegcc*)
9452
      # When not using gcc, we currently assume that we are using
9453
      # Microsoft Visual C++.
9454
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9455
      # no search path for DLLs.
9456
      hardcode_libdir_flag_spec=' '
9457
      allow_undefined_flag=unsupported
9458
      # Tell ltmain to make .lib files, not .a files.
9459
      libext=lib
9460
      # Tell ltmain to make .dll files, not .so files.
9461
      shrext_cmds=".dll"
9462
      # FIXME: Setting linknames here is a bad hack.
9463
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9464
      # The linker will automatically build a .lib file if we build a DLL.
9465
      old_archive_from_new_cmds='true'
9466
      # FIXME: Should let the user specify the lib program.
9467
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9468
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9469
      enable_shared_with_static_runtimes=yes
9470
      ;;
9471
 
9472
    darwin* | rhapsody*)
9473
 
9474
 
9475
  archive_cmds_need_lc=no
9476
  hardcode_direct=no
9477
  hardcode_automatic=yes
9478
  hardcode_shlibpath_var=unsupported
9479
  if test "$lt_cv_ld_force_load" = "yes"; then
9480
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9481
  else
9482
    whole_archive_flag_spec=''
9483
  fi
9484
  link_all_deplibs=yes
9485
  allow_undefined_flag="$_lt_dar_allow_undefined"
9486
  case $cc_basename in
9487
     ifort*) _lt_dar_can_shared=yes ;;
9488
     *) _lt_dar_can_shared=$GCC ;;
9489
  esac
9490
  if test "$_lt_dar_can_shared" = "yes"; then
9491
    output_verbose_link_cmd=func_echo_all
9492
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9493
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9494
    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}"
9495
    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}"
9496
 
9497
  else
9498
  ld_shlibs=no
9499
  fi
9500
 
9501
      ;;
9502
 
9503
    dgux*)
9504
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505
      hardcode_libdir_flag_spec='-L$libdir'
9506
      hardcode_shlibpath_var=no
9507
      ;;
9508
 
9509
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9510
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9511
    # does not break anything, and helps significantly (at the cost of a little
9512
    # extra space).
9513
    freebsd2.2*)
9514
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9515
      hardcode_libdir_flag_spec='-R$libdir'
9516
      hardcode_direct=yes
9517
      hardcode_shlibpath_var=no
9518
      ;;
9519
 
9520
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9521
    freebsd2.*)
9522
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523
      hardcode_direct=yes
9524
      hardcode_minus_L=yes
9525
      hardcode_shlibpath_var=no
9526
      ;;
9527
 
9528
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9529
    freebsd* | dragonfly*)
9530
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9531
      hardcode_libdir_flag_spec='-R$libdir'
9532
      hardcode_direct=yes
9533
      hardcode_shlibpath_var=no
9534
      ;;
9535
 
9536
    hpux9*)
9537
      if test "$GCC" = yes; then
9538
        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'
9539
      else
9540
        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'
9541
      fi
9542
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543
      hardcode_libdir_separator=:
9544
      hardcode_direct=yes
9545
 
9546
      # hardcode_minus_L: Not really in the search PATH,
9547
      # but as the default location of the library.
9548
      hardcode_minus_L=yes
9549
      export_dynamic_flag_spec='${wl}-E'
9550
      ;;
9551
 
9552
    hpux10*)
9553
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9554
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555
      else
9556
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9557
      fi
9558
      if test "$with_gnu_ld" = no; then
9559
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560
        hardcode_libdir_flag_spec_ld='+b $libdir'
9561
        hardcode_libdir_separator=:
9562
        hardcode_direct=yes
9563
        hardcode_direct_absolute=yes
9564
        export_dynamic_flag_spec='${wl}-E'
9565
        # hardcode_minus_L: Not really in the search PATH,
9566
        # but as the default location of the library.
9567
        hardcode_minus_L=yes
9568
      fi
9569
      ;;
9570
 
9571
    hpux11*)
9572
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9573
        case $host_cpu in
9574
        hppa*64*)
9575
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576
          ;;
9577
        ia64*)
9578
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9579
          ;;
9580
        *)
9581
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9582
          ;;
9583
        esac
9584
      else
9585
        case $host_cpu in
9586
        hppa*64*)
9587
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588
          ;;
9589
        ia64*)
9590
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9591
          ;;
9592
        *)
9593
 
9594
          # Older versions of the 11.00 compiler do not understand -b yet
9595
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9596
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9597
$as_echo_n "checking if $CC understands -b... " >&6; }
9598
if test "${lt_cv_prog_compiler__b+set}" = set; then :
9599
  $as_echo_n "(cached) " >&6
9600
else
9601
  lt_cv_prog_compiler__b=no
9602
   save_LDFLAGS="$LDFLAGS"
9603
   LDFLAGS="$LDFLAGS -b"
9604
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9605
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9606
     # The linker can only warn and ignore the option if not recognized
9607
     # So say no if there are warnings
9608
     if test -s conftest.err; then
9609
       # Append any errors to the config.log.
9610
       cat conftest.err 1>&5
9611
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9612
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9613
       if diff conftest.exp conftest.er2 >/dev/null; then
9614
         lt_cv_prog_compiler__b=yes
9615
       fi
9616
     else
9617
       lt_cv_prog_compiler__b=yes
9618
     fi
9619
   fi
9620
   $RM -r conftest*
9621
   LDFLAGS="$save_LDFLAGS"
9622
 
9623
fi
9624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9625
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9626
 
9627
if test x"$lt_cv_prog_compiler__b" = xyes; then
9628
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9629
else
9630
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9631
fi
9632
 
9633
          ;;
9634
        esac
9635
      fi
9636
      if test "$with_gnu_ld" = no; then
9637
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9638
        hardcode_libdir_separator=:
9639
 
9640
        case $host_cpu in
9641
        hppa*64*|ia64*)
9642
          hardcode_direct=no
9643
          hardcode_shlibpath_var=no
9644
          ;;
9645
        *)
9646
          hardcode_direct=yes
9647
          hardcode_direct_absolute=yes
9648
          export_dynamic_flag_spec='${wl}-E'
9649
 
9650
          # hardcode_minus_L: Not really in the search PATH,
9651
          # but as the default location of the library.
9652
          hardcode_minus_L=yes
9653
          ;;
9654
        esac
9655
      fi
9656
      ;;
9657
 
9658
    irix5* | irix6* | nonstopux*)
9659
      if test "$GCC" = yes; then
9660
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9661
        # Try to use the -exported_symbol ld option, if it does not
9662
        # work, assume that -exports_file does not work either and
9663
        # implicitly export all symbols.
9664
        save_LDFLAGS="$LDFLAGS"
9665
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9666
        if test x$gcc_no_link = xyes; then
9667
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9668
fi
9669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670
/* end confdefs.h.  */
9671
int foo(void) {}
9672
_ACEOF
9673
if ac_fn_c_try_link "$LINENO"; then :
9674
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9675
 
9676
fi
9677
rm -f core conftest.err conftest.$ac_objext \
9678
    conftest$ac_exeext conftest.$ac_ext
9679
        LDFLAGS="$save_LDFLAGS"
9680
      else
9681
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9682
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9683
      fi
9684
      archive_cmds_need_lc='no'
9685
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686
      hardcode_libdir_separator=:
9687
      inherit_rpath=yes
9688
      link_all_deplibs=yes
9689
      ;;
9690
 
9691
    netbsd*)
9692
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9693
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9694
      else
9695
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9696
      fi
9697
      hardcode_libdir_flag_spec='-R$libdir'
9698
      hardcode_direct=yes
9699
      hardcode_shlibpath_var=no
9700
      ;;
9701
 
9702
    newsos6)
9703
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704
      hardcode_direct=yes
9705
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706
      hardcode_libdir_separator=:
9707
      hardcode_shlibpath_var=no
9708
      ;;
9709
 
9710
    *nto* | *qnx*)
9711
      ;;
9712
 
9713
    openbsd*)
9714
      if test -f /usr/libexec/ld.so; then
9715
        hardcode_direct=yes
9716
        hardcode_shlibpath_var=no
9717
        hardcode_direct_absolute=yes
9718
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9719
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9720
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9721
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9722
          export_dynamic_flag_spec='${wl}-E'
9723
        else
9724
          case $host_os in
9725
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9726
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9727
             hardcode_libdir_flag_spec='-R$libdir'
9728
             ;;
9729
           *)
9730
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9731
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9732
             ;;
9733
          esac
9734
        fi
9735
      else
9736
        ld_shlibs=no
9737
      fi
9738
      ;;
9739
 
9740
    os2*)
9741
      hardcode_libdir_flag_spec='-L$libdir'
9742
      hardcode_minus_L=yes
9743
      allow_undefined_flag=unsupported
9744
      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'
9745
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9746
      ;;
9747
 
9748
    osf3*)
9749
      if test "$GCC" = yes; then
9750
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9751
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9752
      else
9753
        allow_undefined_flag=' -expect_unresolved \*'
9754
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9755
      fi
9756
      archive_cmds_need_lc='no'
9757
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758
      hardcode_libdir_separator=:
9759
      ;;
9760
 
9761
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9762
      if test "$GCC" = yes; then
9763
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9764
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9765
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766
      else
9767
        allow_undefined_flag=' -expect_unresolved \*'
9768
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9769
        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~
9770
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9771
 
9772
        # Both c and cxx compiler support -rpath directly
9773
        hardcode_libdir_flag_spec='-rpath $libdir'
9774
      fi
9775
      archive_cmds_need_lc='no'
9776
      hardcode_libdir_separator=:
9777
      ;;
9778
 
9779
    solaris*)
9780
      no_undefined_flag=' -z defs'
9781
      if test "$GCC" = yes; then
9782
        wlarc='${wl}'
9783
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9784
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9786
      else
9787
        case `$CC -V 2>&1` in
9788
        *"Compilers 5.0"*)
9789
          wlarc=''
9790
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9792
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9793
          ;;
9794
        *)
9795
          wlarc='${wl}'
9796
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9797
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9798
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9799
          ;;
9800
        esac
9801
      fi
9802
      hardcode_libdir_flag_spec='-R$libdir'
9803
      hardcode_shlibpath_var=no
9804
      case $host_os in
9805
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9806
      *)
9807
        # The compiler driver will combine and reorder linker options,
9808
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9809
        # but is careful enough not to reorder.
9810
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9811
        if test "$GCC" = yes; then
9812
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9813
        else
9814
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9815
        fi
9816
        ;;
9817
      esac
9818
      link_all_deplibs=yes
9819
      ;;
9820
 
9821
    sunos4*)
9822
      if test "x$host_vendor" = xsequent; then
9823
        # Use $CC to link under sequent, because it throws in some extra .o
9824
        # files that make .init and .fini sections work.
9825
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9826
      else
9827
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9828
      fi
9829
      hardcode_libdir_flag_spec='-L$libdir'
9830
      hardcode_direct=yes
9831
      hardcode_minus_L=yes
9832
      hardcode_shlibpath_var=no
9833
      ;;
9834
 
9835
    sysv4)
9836
      case $host_vendor in
9837
        sni)
9838
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839
          hardcode_direct=yes # is this really true???
9840
        ;;
9841
        siemens)
9842
          ## LD is ld it makes a PLAMLIB
9843
          ## CC just makes a GrossModule.
9844
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9845
          reload_cmds='$CC -r -o $output$reload_objs'
9846
          hardcode_direct=no
9847
        ;;
9848
        motorola)
9849
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9851
        ;;
9852
      esac
9853
      runpath_var='LD_RUN_PATH'
9854
      hardcode_shlibpath_var=no
9855
      ;;
9856
 
9857
    sysv4.3*)
9858
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859
      hardcode_shlibpath_var=no
9860
      export_dynamic_flag_spec='-Bexport'
9861
      ;;
9862
 
9863
    sysv4*MP*)
9864
      if test -d /usr/nec; then
9865
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866
        hardcode_shlibpath_var=no
9867
        runpath_var=LD_RUN_PATH
9868
        hardcode_runpath_var=yes
9869
        ld_shlibs=yes
9870
      fi
9871
      ;;
9872
 
9873
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9874
      no_undefined_flag='${wl}-z,text'
9875
      archive_cmds_need_lc=no
9876
      hardcode_shlibpath_var=no
9877
      runpath_var='LD_RUN_PATH'
9878
 
9879
      if test "$GCC" = yes; then
9880
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882
      else
9883
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885
      fi
9886
      ;;
9887
 
9888
    sysv5* | sco3.2v5* | sco5v6*)
9889
      # Note: We can NOT use -z defs as we might desire, because we do not
9890
      # link with -lc, and that would cause any symbols used from libc to
9891
      # always be unresolved, which means just about no library would
9892
      # ever link correctly.  If we're not using GNU ld we use -z text
9893
      # though, which does catch some bad symbols but isn't as heavy-handed
9894
      # as -z defs.
9895
      no_undefined_flag='${wl}-z,text'
9896
      allow_undefined_flag='${wl}-z,nodefs'
9897
      archive_cmds_need_lc=no
9898
      hardcode_shlibpath_var=no
9899
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9900
      hardcode_libdir_separator=':'
9901
      link_all_deplibs=yes
9902
      export_dynamic_flag_spec='${wl}-Bexport'
9903
      runpath_var='LD_RUN_PATH'
9904
 
9905
      if test "$GCC" = yes; then
9906
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908
      else
9909
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9911
      fi
9912
      ;;
9913
 
9914
    uts4*)
9915
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916
      hardcode_libdir_flag_spec='-L$libdir'
9917
      hardcode_shlibpath_var=no
9918
      ;;
9919
 
9920
    *)
9921
      ld_shlibs=no
9922
      ;;
9923
    esac
9924
 
9925
    if test x$host_vendor = xsni; then
9926
      case $host in
9927
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9928
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9929
        ;;
9930
      esac
9931
    fi
9932
  fi
9933
 
9934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9935
$as_echo "$ld_shlibs" >&6; }
9936
test "$ld_shlibs" = no && can_build_shared=no
9937
 
9938
with_gnu_ld=$with_gnu_ld
9939
 
9940
 
9941
 
9942
 
9943
 
9944
 
9945
 
9946
 
9947
 
9948
 
9949
 
9950
 
9951
 
9952
 
9953
 
9954
#
9955
# Do we need to explicitly link libc?
9956
#
9957
case "x$archive_cmds_need_lc" in
9958
x|xyes)
9959
  # Assume -lc should be added
9960
  archive_cmds_need_lc=yes
9961
 
9962
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9963
    case $archive_cmds in
9964
    *'~'*)
9965
      # FIXME: we may have to deal with multi-command sequences.
9966
      ;;
9967
    '$CC '*)
9968
      # Test whether the compiler implicitly links with -lc since on some
9969
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9970
      # to ld, don't add -lc before -lgcc.
9971
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9972
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9973
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9974
  $as_echo_n "(cached) " >&6
9975
else
9976
  $RM conftest*
9977
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9978
 
9979
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9980
  (eval $ac_compile) 2>&5
9981
  ac_status=$?
9982
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9983
  test $ac_status = 0; } 2>conftest.err; then
9984
          soname=conftest
9985
          lib=conftest
9986
          libobjs=conftest.$ac_objext
9987
          deplibs=
9988
          wl=$lt_prog_compiler_wl
9989
          pic_flag=$lt_prog_compiler_pic
9990
          compiler_flags=-v
9991
          linker_flags=-v
9992
          verstring=
9993
          output_objdir=.
9994
          libname=conftest
9995
          lt_save_allow_undefined_flag=$allow_undefined_flag
9996
          allow_undefined_flag=
9997
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9998
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9999
  ac_status=$?
10000
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10001
  test $ac_status = 0; }
10002
          then
10003
            lt_cv_archive_cmds_need_lc=no
10004
          else
10005
            lt_cv_archive_cmds_need_lc=yes
10006
          fi
10007
          allow_undefined_flag=$lt_save_allow_undefined_flag
10008
        else
10009
          cat conftest.err 1>&5
10010
        fi
10011
        $RM conftest*
10012
 
10013
fi
10014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10015
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10016
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10017
      ;;
10018
    esac
10019
  fi
10020
  ;;
10021
esac
10022
 
10023
 
10024
 
10025
 
10026
 
10027
 
10028
 
10029
 
10030
 
10031
 
10032
 
10033
 
10034
 
10035
 
10036
 
10037
 
10038
 
10039
 
10040
 
10041
 
10042
 
10043
 
10044
 
10045
 
10046
 
10047
 
10048
 
10049
 
10050
 
10051
 
10052
 
10053
 
10054
 
10055
 
10056
 
10057
 
10058
 
10059
 
10060
 
10061
 
10062
 
10063
 
10064
 
10065
 
10066
 
10067
 
10068
 
10069
 
10070
 
10071
 
10072
 
10073
 
10074
 
10075
 
10076
 
10077
 
10078
 
10079
 
10080
 
10081
 
10082
 
10083
 
10084
 
10085
 
10086
 
10087
 
10088
 
10089
 
10090
 
10091
 
10092
 
10093
 
10094
 
10095
 
10096
 
10097
 
10098
 
10099
 
10100
 
10101
 
10102
 
10103
 
10104
 
10105
 
10106
 
10107
 
10108
 
10109
 
10110
 
10111
 
10112
 
10113
 
10114
 
10115
 
10116
 
10117
 
10118
 
10119
 
10120
 
10121
 
10122
 
10123
 
10124
 
10125
 
10126
 
10127
 
10128
 
10129
 
10130
 
10131
 
10132
 
10133
 
10134
 
10135
 
10136
 
10137
 
10138
 
10139
 
10140
 
10141
 
10142
 
10143
 
10144
 
10145
 
10146
 
10147
 
10148
 
10149
 
10150
 
10151
 
10152
 
10153
 
10154
 
10155
 
10156
 
10157
 
10158
 
10159
 
10160
 
10161
 
10162
 
10163
 
10164
 
10165
 
10166
 
10167
 
10168
 
10169
 
10170
 
10171
 
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10180
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10181
 
10182
if test "$GCC" = yes; then
10183
  case $host_os in
10184
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10185
    *) lt_awk_arg="/^libraries:/" ;;
10186
  esac
10187
  case $host_os in
10188
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10189
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10190
  esac
10191
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10192
  case $lt_search_path_spec in
10193
  *\;*)
10194
    # if the path contains ";" then we assume it to be the separator
10195
    # otherwise default to the standard path separator (i.e. ":") - it is
10196
    # assumed that no part of a normal pathname contains ";" but that should
10197
    # okay in the real world where ";" in dirpaths is itself problematic.
10198
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10199
    ;;
10200
  *)
10201
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10202
    ;;
10203
  esac
10204
  # Ok, now we have the path, separated by spaces, we can step through it
10205
  # and add multilib dir if necessary.
10206
  lt_tmp_lt_search_path_spec=
10207
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10208
  for lt_sys_path in $lt_search_path_spec; do
10209
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10210
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10211
    else
10212
      test -d "$lt_sys_path" && \
10213
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10214
    fi
10215
  done
10216
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10217
BEGIN {RS=" "; FS="/|\n";} {
10218
  lt_foo="";
10219
  lt_count=0;
10220
  for (lt_i = NF; lt_i > 0; lt_i--) {
10221
    if ($lt_i != "" && $lt_i != ".") {
10222
      if ($lt_i == "..") {
10223
        lt_count++;
10224
      } else {
10225
        if (lt_count == 0) {
10226
          lt_foo="/" $lt_i lt_foo;
10227
        } else {
10228
          lt_count--;
10229
        }
10230
      }
10231
    }
10232
  }
10233
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10234
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10235
}'`
10236
  # AWK program above erroneously prepends '/' to C:/dos/paths
10237
  # for these hosts.
10238
  case $host_os in
10239
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10240
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10241
  esac
10242
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10243
else
10244
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10245
fi
10246
library_names_spec=
10247
libname_spec='lib$name'
10248
soname_spec=
10249
shrext_cmds=".so"
10250
postinstall_cmds=
10251
postuninstall_cmds=
10252
finish_cmds=
10253
finish_eval=
10254
shlibpath_var=
10255
shlibpath_overrides_runpath=unknown
10256
version_type=none
10257
dynamic_linker="$host_os ld.so"
10258
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10259
need_lib_prefix=unknown
10260
hardcode_into_libs=no
10261
 
10262
# when you set need_version to no, make sure it does not cause -set_version
10263
# flags to be left without arguments
10264
need_version=unknown
10265
 
10266
case $host_os in
10267
aix3*)
10268
  version_type=linux
10269
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10270
  shlibpath_var=LIBPATH
10271
 
10272
  # AIX 3 has no versioning support, so we append a major version to the name.
10273
  soname_spec='${libname}${release}${shared_ext}$major'
10274
  ;;
10275
 
10276
aix[4-9]*)
10277
  version_type=linux
10278
  need_lib_prefix=no
10279
  need_version=no
10280
  hardcode_into_libs=yes
10281
  if test "$host_cpu" = ia64; then
10282
    # AIX 5 supports IA64
10283
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10284
    shlibpath_var=LD_LIBRARY_PATH
10285
  else
10286
    # With GCC up to 2.95.x, collect2 would create an import file
10287
    # for dependence libraries.  The import file would start with
10288
    # the line `#! .'.  This would cause the generated library to
10289
    # depend on `.', always an invalid library.  This was fixed in
10290
    # development snapshots of GCC prior to 3.0.
10291
    case $host_os in
10292
      aix4 | aix4.[01] | aix4.[01].*)
10293
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10294
           echo ' yes '
10295
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10296
        :
10297
      else
10298
        can_build_shared=no
10299
      fi
10300
      ;;
10301
    esac
10302
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10303
    # soname into executable. Probably we can add versioning support to
10304
    # collect2, so additional links can be useful in future.
10305
    if test "$aix_use_runtimelinking" = yes; then
10306
      # If using run time linking (on AIX 4.2 or later) use lib.so
10307
      # instead of lib.a to let people know that these are not
10308
      # typical AIX shared libraries.
10309
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310
    else
10311
      # We preserve .a as extension for shared libraries through AIX4.2
10312
      # and later when we are not doing run time linking.
10313
      library_names_spec='${libname}${release}.a $libname.a'
10314
      soname_spec='${libname}${release}${shared_ext}$major'
10315
    fi
10316
    shlibpath_var=LIBPATH
10317
  fi
10318
  ;;
10319
 
10320
amigaos*)
10321
  case $host_cpu in
10322
  powerpc)
10323
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10324
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326
    ;;
10327
  m68k)
10328
    library_names_spec='$libname.ixlibrary $libname.a'
10329
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10330
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10331
    ;;
10332
  esac
10333
  ;;
10334
 
10335
beos*)
10336
  library_names_spec='${libname}${shared_ext}'
10337
  dynamic_linker="$host_os ld.so"
10338
  shlibpath_var=LIBRARY_PATH
10339
  ;;
10340
 
10341
bsdi[45]*)
10342
  version_type=linux
10343
  need_version=no
10344
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345
  soname_spec='${libname}${release}${shared_ext}$major'
10346
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10347
  shlibpath_var=LD_LIBRARY_PATH
10348
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10349
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10350
  # the default ld.so.conf also contains /usr/contrib/lib and
10351
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10352
  # libtool to hard-code these into programs
10353
  ;;
10354
 
10355
cygwin* | mingw* | pw32* | cegcc*)
10356
  version_type=windows
10357
  shrext_cmds=".dll"
10358
  need_version=no
10359
  need_lib_prefix=no
10360
 
10361
  case $GCC,$host_os in
10362
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10363
    library_names_spec='$libname.dll.a'
10364
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10365
    postinstall_cmds='base_file=`basename \${file}`~
10366
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10367
      dldir=$destdir/`dirname \$dlpath`~
10368
      test -d \$dldir || mkdir -p \$dldir~
10369
      $install_prog $dir/$dlname \$dldir/$dlname~
10370
      chmod a+x \$dldir/$dlname~
10371
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10372
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10373
      fi'
10374
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10375
      dlpath=$dir/\$dldll~
10376
       $RM \$dlpath'
10377
    shlibpath_overrides_runpath=yes
10378
 
10379
    case $host_os in
10380
    cygwin*)
10381
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10382
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10383
 
10384
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10385
      ;;
10386
    mingw* | cegcc*)
10387
      # MinGW DLLs use traditional 'lib' prefix
10388
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10389
      ;;
10390
    pw32*)
10391
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10392
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10393
      ;;
10394
    esac
10395
    ;;
10396
 
10397
  *)
10398
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10399
    ;;
10400
  esac
10401
  dynamic_linker='Win32 ld.exe'
10402
  # FIXME: first we should search . and the directory the executable is in
10403
  shlibpath_var=PATH
10404
  ;;
10405
 
10406
darwin* | rhapsody*)
10407
  dynamic_linker="$host_os dyld"
10408
  version_type=darwin
10409
  need_lib_prefix=no
10410
  need_version=no
10411
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10412
  soname_spec='${libname}${release}${major}$shared_ext'
10413
  shlibpath_overrides_runpath=yes
10414
  shlibpath_var=DYLD_LIBRARY_PATH
10415
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10416
 
10417
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10418
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10419
  ;;
10420
 
10421
dgux*)
10422
  version_type=linux
10423
  need_lib_prefix=no
10424
  need_version=no
10425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10426
  soname_spec='${libname}${release}${shared_ext}$major'
10427
  shlibpath_var=LD_LIBRARY_PATH
10428
  ;;
10429
 
10430
freebsd* | dragonfly*)
10431
  # DragonFly does not have aout.  When/if they implement a new
10432
  # versioning mechanism, adjust this.
10433
  if test -x /usr/bin/objformat; then
10434
    objformat=`/usr/bin/objformat`
10435
  else
10436
    case $host_os in
10437
    freebsd[23].*) objformat=aout ;;
10438
    *) objformat=elf ;;
10439
    esac
10440
  fi
10441
  version_type=freebsd-$objformat
10442
  case $version_type in
10443
    freebsd-elf*)
10444
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10445
      need_version=no
10446
      need_lib_prefix=no
10447
      ;;
10448
    freebsd-*)
10449
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10450
      need_version=yes
10451
      ;;
10452
  esac
10453
  shlibpath_var=LD_LIBRARY_PATH
10454
  case $host_os in
10455
  freebsd2.*)
10456
    shlibpath_overrides_runpath=yes
10457
    ;;
10458
  freebsd3.[01]* | freebsdelf3.[01]*)
10459
    shlibpath_overrides_runpath=yes
10460
    hardcode_into_libs=yes
10461
    ;;
10462
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10463
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10464
    shlibpath_overrides_runpath=no
10465
    hardcode_into_libs=yes
10466
    ;;
10467
  *) # from 4.6 on, and DragonFly
10468
    shlibpath_overrides_runpath=yes
10469
    hardcode_into_libs=yes
10470
    ;;
10471
  esac
10472
  ;;
10473
 
10474
gnu*)
10475
  version_type=linux
10476
  need_lib_prefix=no
10477
  need_version=no
10478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10479
  soname_spec='${libname}${release}${shared_ext}$major'
10480
  shlibpath_var=LD_LIBRARY_PATH
10481
  hardcode_into_libs=yes
10482
  ;;
10483
 
10484
haiku*)
10485
  version_type=linux
10486
  need_lib_prefix=no
10487
  need_version=no
10488
  dynamic_linker="$host_os runtime_loader"
10489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10490
  soname_spec='${libname}${release}${shared_ext}$major'
10491
  shlibpath_var=LIBRARY_PATH
10492
  shlibpath_overrides_runpath=yes
10493
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10494
  hardcode_into_libs=yes
10495
  ;;
10496
 
10497
hpux9* | hpux10* | hpux11*)
10498
  # Give a soname corresponding to the major version so that dld.sl refuses to
10499
  # link against other versions.
10500
  version_type=sunos
10501
  need_lib_prefix=no
10502
  need_version=no
10503
  case $host_cpu in
10504
  ia64*)
10505
    shrext_cmds='.so'
10506
    hardcode_into_libs=yes
10507
    dynamic_linker="$host_os dld.so"
10508
    shlibpath_var=LD_LIBRARY_PATH
10509
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10510
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511
    soname_spec='${libname}${release}${shared_ext}$major'
10512
    if test "X$HPUX_IA64_MODE" = X32; then
10513
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10514
    else
10515
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10516
    fi
10517
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10518
    ;;
10519
  hppa*64*)
10520
    shrext_cmds='.sl'
10521
    hardcode_into_libs=yes
10522
    dynamic_linker="$host_os dld.sl"
10523
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10524
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10525
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526
    soname_spec='${libname}${release}${shared_ext}$major'
10527
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10528
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10529
    ;;
10530
  *)
10531
    shrext_cmds='.sl'
10532
    dynamic_linker="$host_os dld.sl"
10533
    shlibpath_var=SHLIB_PATH
10534
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10535
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536
    soname_spec='${libname}${release}${shared_ext}$major'
10537
    ;;
10538
  esac
10539
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10540
  postinstall_cmds='chmod 555 $lib'
10541
  # or fails outright, so override atomically:
10542
  install_override_mode=555
10543
  ;;
10544
 
10545
interix[3-9]*)
10546
  version_type=linux
10547
  need_lib_prefix=no
10548
  need_version=no
10549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10550
  soname_spec='${libname}${release}${shared_ext}$major'
10551
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10552
  shlibpath_var=LD_LIBRARY_PATH
10553
  shlibpath_overrides_runpath=no
10554
  hardcode_into_libs=yes
10555
  ;;
10556
 
10557
irix5* | irix6* | nonstopux*)
10558
  case $host_os in
10559
    nonstopux*) version_type=nonstopux ;;
10560
    *)
10561
        if test "$lt_cv_prog_gnu_ld" = yes; then
10562
                version_type=linux
10563
        else
10564
                version_type=irix
10565
        fi ;;
10566
  esac
10567
  need_lib_prefix=no
10568
  need_version=no
10569
  soname_spec='${libname}${release}${shared_ext}$major'
10570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10571
  case $host_os in
10572
  irix5* | nonstopux*)
10573
    libsuff= shlibsuff=
10574
    ;;
10575
  *)
10576
    case $LD in # libtool.m4 will add one of these switches to LD
10577
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10578
      libsuff= shlibsuff= libmagic=32-bit;;
10579
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10580
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10581
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10582
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10583
    *) libsuff= shlibsuff= libmagic=never-match;;
10584
    esac
10585
    ;;
10586
  esac
10587
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10588
  shlibpath_overrides_runpath=no
10589
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10590
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10591
  hardcode_into_libs=yes
10592
  ;;
10593
 
10594
# No shared lib support for Linux oldld, aout, or coff.
10595
linux*oldld* | linux*aout* | linux*coff*)
10596
  dynamic_linker=no
10597
  ;;
10598
 
10599
# This must be Linux ELF.
10600
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10601
  version_type=linux
10602
  need_lib_prefix=no
10603
  need_version=no
10604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605
  soname_spec='${libname}${release}${shared_ext}$major'
10606
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10607
  shlibpath_var=LD_LIBRARY_PATH
10608
  shlibpath_overrides_runpath=no
10609
 
10610
  # Some binutils ld are patched to set DT_RUNPATH
10611
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10612
  $as_echo_n "(cached) " >&6
10613
else
10614
  lt_cv_shlibpath_overrides_runpath=no
10615
    save_LDFLAGS=$LDFLAGS
10616
    save_libdir=$libdir
10617
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10618
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10619
    if test x$gcc_no_link = xyes; then
10620
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10621
fi
10622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623
/* end confdefs.h.  */
10624
 
10625
int
10626
main ()
10627
{
10628
 
10629
  ;
10630
  return 0;
10631
}
10632
_ACEOF
10633
if ac_fn_c_try_link "$LINENO"; then :
10634
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10635
  lt_cv_shlibpath_overrides_runpath=yes
10636
fi
10637
fi
10638
rm -f core conftest.err conftest.$ac_objext \
10639
    conftest$ac_exeext conftest.$ac_ext
10640
    LDFLAGS=$save_LDFLAGS
10641
    libdir=$save_libdir
10642
 
10643
fi
10644
 
10645
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10646
 
10647
  # This implies no fast_install, which is unacceptable.
10648
  # Some rework will be needed to allow for fast_install
10649
  # before this can be enabled.
10650
  hardcode_into_libs=yes
10651
 
10652
  # Append ld.so.conf contents to the search path
10653
  if test -f /etc/ld.so.conf; then
10654
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10655
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10656
  fi
10657
 
10658
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10659
  # powerpc, because MkLinux only supported shared libraries with the
10660
  # GNU dynamic linker.  Since this was broken with cross compilers,
10661
  # most powerpc-linux boxes support dynamic linking these days and
10662
  # people can always --disable-shared, the test was removed, and we
10663
  # assume the GNU/Linux dynamic linker is in use.
10664
  dynamic_linker='GNU/Linux ld.so'
10665
  ;;
10666
 
10667
netbsd*)
10668
  version_type=sunos
10669
  need_lib_prefix=no
10670
  need_version=no
10671
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10672
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10673
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10674
    dynamic_linker='NetBSD (a.out) ld.so'
10675
  else
10676
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677
    soname_spec='${libname}${release}${shared_ext}$major'
10678
    dynamic_linker='NetBSD ld.elf_so'
10679
  fi
10680
  shlibpath_var=LD_LIBRARY_PATH
10681
  shlibpath_overrides_runpath=yes
10682
  hardcode_into_libs=yes
10683
  ;;
10684
 
10685
newsos6)
10686
  version_type=linux
10687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688
  shlibpath_var=LD_LIBRARY_PATH
10689
  shlibpath_overrides_runpath=yes
10690
  ;;
10691
 
10692
*nto* | *qnx*)
10693
  version_type=qnx
10694
  need_lib_prefix=no
10695
  need_version=no
10696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697
  soname_spec='${libname}${release}${shared_ext}$major'
10698
  shlibpath_var=LD_LIBRARY_PATH
10699
  shlibpath_overrides_runpath=no
10700
  hardcode_into_libs=yes
10701
  dynamic_linker='ldqnx.so'
10702
  ;;
10703
 
10704
openbsd*)
10705
  version_type=sunos
10706
  sys_lib_dlsearch_path_spec="/usr/lib"
10707
  need_lib_prefix=no
10708
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10709
  case $host_os in
10710
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10711
    *)                          need_version=no  ;;
10712
  esac
10713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10715
  shlibpath_var=LD_LIBRARY_PATH
10716
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10717
    case $host_os in
10718
      openbsd2.[89] | openbsd2.[89].*)
10719
        shlibpath_overrides_runpath=no
10720
        ;;
10721
      *)
10722
        shlibpath_overrides_runpath=yes
10723
        ;;
10724
      esac
10725
  else
10726
    shlibpath_overrides_runpath=yes
10727
  fi
10728
  ;;
10729
 
10730
os2*)
10731
  libname_spec='$name'
10732
  shrext_cmds=".dll"
10733
  need_lib_prefix=no
10734
  library_names_spec='$libname${shared_ext} $libname.a'
10735
  dynamic_linker='OS/2 ld.exe'
10736
  shlibpath_var=LIBPATH
10737
  ;;
10738
 
10739
osf3* | osf4* | osf5*)
10740
  version_type=osf
10741
  need_lib_prefix=no
10742
  need_version=no
10743
  soname_spec='${libname}${release}${shared_ext}$major'
10744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745
  shlibpath_var=LD_LIBRARY_PATH
10746
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10747
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10748
  ;;
10749
 
10750
rdos*)
10751
  dynamic_linker=no
10752
  ;;
10753
 
10754
solaris*)
10755
  version_type=linux
10756
  need_lib_prefix=no
10757
  need_version=no
10758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759
  soname_spec='${libname}${release}${shared_ext}$major'
10760
  shlibpath_var=LD_LIBRARY_PATH
10761
  shlibpath_overrides_runpath=yes
10762
  hardcode_into_libs=yes
10763
  # ldd complains unless libraries are executable
10764
  postinstall_cmds='chmod +x $lib'
10765
  ;;
10766
 
10767
sunos4*)
10768
  version_type=sunos
10769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10771
  shlibpath_var=LD_LIBRARY_PATH
10772
  shlibpath_overrides_runpath=yes
10773
  if test "$with_gnu_ld" = yes; then
10774
    need_lib_prefix=no
10775
  fi
10776
  need_version=yes
10777
  ;;
10778
 
10779
sysv4 | sysv4.3*)
10780
  version_type=linux
10781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782
  soname_spec='${libname}${release}${shared_ext}$major'
10783
  shlibpath_var=LD_LIBRARY_PATH
10784
  case $host_vendor in
10785
    sni)
10786
      shlibpath_overrides_runpath=no
10787
      need_lib_prefix=no
10788
      runpath_var=LD_RUN_PATH
10789
      ;;
10790
    siemens)
10791
      need_lib_prefix=no
10792
      ;;
10793
    motorola)
10794
      need_lib_prefix=no
10795
      need_version=no
10796
      shlibpath_overrides_runpath=no
10797
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10798
      ;;
10799
  esac
10800
  ;;
10801
 
10802
sysv4*MP*)
10803
  if test -d /usr/nec ;then
10804
    version_type=linux
10805
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10806
    soname_spec='$libname${shared_ext}.$major'
10807
    shlibpath_var=LD_LIBRARY_PATH
10808
  fi
10809
  ;;
10810
 
10811
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10812
  version_type=freebsd-elf
10813
  need_lib_prefix=no
10814
  need_version=no
10815
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10816
  soname_spec='${libname}${release}${shared_ext}$major'
10817
  shlibpath_var=LD_LIBRARY_PATH
10818
  shlibpath_overrides_runpath=yes
10819
  hardcode_into_libs=yes
10820
  if test "$with_gnu_ld" = yes; then
10821
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10822
  else
10823
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10824
    case $host_os in
10825
      sco3.2v5*)
10826
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10827
        ;;
10828
    esac
10829
  fi
10830
  sys_lib_dlsearch_path_spec='/usr/lib'
10831
  ;;
10832
 
10833
tpf*)
10834
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10835
  version_type=linux
10836
  need_lib_prefix=no
10837
  need_version=no
10838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839
  shlibpath_var=LD_LIBRARY_PATH
10840
  shlibpath_overrides_runpath=no
10841
  hardcode_into_libs=yes
10842
  ;;
10843
 
10844
uts4*)
10845
  version_type=linux
10846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847
  soname_spec='${libname}${release}${shared_ext}$major'
10848
  shlibpath_var=LD_LIBRARY_PATH
10849
  ;;
10850
 
10851
*)
10852
  dynamic_linker=no
10853
  ;;
10854
esac
10855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10856
$as_echo "$dynamic_linker" >&6; }
10857
test "$dynamic_linker" = no && can_build_shared=no
10858
 
10859
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10860
if test "$GCC" = yes; then
10861
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10862
fi
10863
 
10864
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10865
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10866
fi
10867
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10868
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10869
fi
10870
 
10871
 
10872
 
10873
 
10874
 
10875
 
10876
 
10877
 
10878
 
10879
 
10880
 
10881
 
10882
 
10883
 
10884
 
10885
 
10886
 
10887
 
10888
 
10889
 
10890
 
10891
 
10892
 
10893
 
10894
 
10895
 
10896
 
10897
 
10898
 
10899
 
10900
 
10901
 
10902
 
10903
 
10904
 
10905
 
10906
 
10907
 
10908
 
10909
 
10910
 
10911
 
10912
 
10913
 
10914
 
10915
 
10916
 
10917
 
10918
 
10919
 
10920
 
10921
 
10922
 
10923
 
10924
 
10925
 
10926
 
10927
 
10928
 
10929
 
10930
 
10931
 
10932
 
10933
 
10934
 
10935
 
10936
 
10937
 
10938
 
10939
 
10940
 
10941
 
10942
 
10943
 
10944
 
10945
 
10946
 
10947
 
10948
 
10949
 
10950
 
10951
 
10952
 
10953
 
10954
 
10955
 
10956
 
10957
 
10958
 
10959
 
10960
 
10961
 
10962
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10963
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10964
hardcode_action=
10965
if test -n "$hardcode_libdir_flag_spec" ||
10966
   test -n "$runpath_var" ||
10967
   test "X$hardcode_automatic" = "Xyes" ; then
10968
 
10969
  # We can hardcode non-existent directories.
10970
  if test "$hardcode_direct" != no &&
10971
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10972
     # have to relink, otherwise we might link with an installed library
10973
     # when we should be linking with a yet-to-be-installed one
10974
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10975
     test "$hardcode_minus_L" != no; then
10976
    # Linking always hardcodes the temporary library directory.
10977
    hardcode_action=relink
10978
  else
10979
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10980
    hardcode_action=immediate
10981
  fi
10982
else
10983
  # We cannot hardcode anything, or else we can only hardcode existing
10984
  # directories.
10985
  hardcode_action=unsupported
10986
fi
10987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10988
$as_echo "$hardcode_action" >&6; }
10989
 
10990
if test "$hardcode_action" = relink ||
10991
   test "$inherit_rpath" = yes; then
10992
  # Fast installation is not supported
10993
  enable_fast_install=no
10994
elif test "$shlibpath_overrides_runpath" = yes ||
10995
     test "$enable_shared" = no; then
10996
  # Fast installation is not necessary
10997
  enable_fast_install=needless
10998
fi
10999
 
11000
 
11001
 
11002
 
11003
 
11004
 
11005
  if test "x$enable_dlopen" != xyes; then
11006
  enable_dlopen=unknown
11007
  enable_dlopen_self=unknown
11008
  enable_dlopen_self_static=unknown
11009
else
11010
  lt_cv_dlopen=no
11011
  lt_cv_dlopen_libs=
11012
 
11013
  case $host_os in
11014
  beos*)
11015
    lt_cv_dlopen="load_add_on"
11016
    lt_cv_dlopen_libs=
11017
    lt_cv_dlopen_self=yes
11018
    ;;
11019
 
11020
  mingw* | pw32* | cegcc*)
11021
    lt_cv_dlopen="LoadLibrary"
11022
    lt_cv_dlopen_libs=
11023
    ;;
11024
 
11025
  cygwin*)
11026
    lt_cv_dlopen="dlopen"
11027
    lt_cv_dlopen_libs=
11028
    ;;
11029
 
11030
  darwin*)
11031
  # if libdl is installed we need to link against it
11032
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11033
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11034
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11035
  $as_echo_n "(cached) " >&6
11036
else
11037
  ac_check_lib_save_LIBS=$LIBS
11038
LIBS="-ldl  $LIBS"
11039
if test x$gcc_no_link = xyes; then
11040
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11041
fi
11042
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043
/* end confdefs.h.  */
11044
 
11045
/* Override any GCC internal prototype to avoid an error.
11046
   Use char because int might match the return type of a GCC
11047
   builtin and then its argument prototype would still apply.  */
11048
#ifdef __cplusplus
11049
extern "C"
11050
#endif
11051
char dlopen ();
11052
int
11053
main ()
11054
{
11055
return dlopen ();
11056
  ;
11057
  return 0;
11058
}
11059
_ACEOF
11060
if ac_fn_c_try_link "$LINENO"; then :
11061
  ac_cv_lib_dl_dlopen=yes
11062
else
11063
  ac_cv_lib_dl_dlopen=no
11064
fi
11065
rm -f core conftest.err conftest.$ac_objext \
11066
    conftest$ac_exeext conftest.$ac_ext
11067
LIBS=$ac_check_lib_save_LIBS
11068
fi
11069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11070
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11071
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11072
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11073
else
11074
 
11075
    lt_cv_dlopen="dyld"
11076
    lt_cv_dlopen_libs=
11077
    lt_cv_dlopen_self=yes
11078
 
11079
fi
11080
 
11081
    ;;
11082
 
11083
  *)
11084
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11085
if test "x$ac_cv_func_shl_load" = x""yes; then :
11086
  lt_cv_dlopen="shl_load"
11087
else
11088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11089
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11090
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11091
  $as_echo_n "(cached) " >&6
11092
else
11093
  ac_check_lib_save_LIBS=$LIBS
11094
LIBS="-ldld  $LIBS"
11095
if test x$gcc_no_link = xyes; then
11096
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11097
fi
11098
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099
/* end confdefs.h.  */
11100
 
11101
/* Override any GCC internal prototype to avoid an error.
11102
   Use char because int might match the return type of a GCC
11103
   builtin and then its argument prototype would still apply.  */
11104
#ifdef __cplusplus
11105
extern "C"
11106
#endif
11107
char shl_load ();
11108
int
11109
main ()
11110
{
11111
return shl_load ();
11112
  ;
11113
  return 0;
11114
}
11115
_ACEOF
11116
if ac_fn_c_try_link "$LINENO"; then :
11117
  ac_cv_lib_dld_shl_load=yes
11118
else
11119
  ac_cv_lib_dld_shl_load=no
11120
fi
11121
rm -f core conftest.err conftest.$ac_objext \
11122
    conftest$ac_exeext conftest.$ac_ext
11123
LIBS=$ac_check_lib_save_LIBS
11124
fi
11125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11126
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11127
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11128
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11129
else
11130
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11131
if test "x$ac_cv_func_dlopen" = x""yes; then :
11132
  lt_cv_dlopen="dlopen"
11133
else
11134
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11135
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11136
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11137
  $as_echo_n "(cached) " >&6
11138
else
11139
  ac_check_lib_save_LIBS=$LIBS
11140
LIBS="-ldl  $LIBS"
11141
if test x$gcc_no_link = xyes; then
11142
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11143
fi
11144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145
/* end confdefs.h.  */
11146
 
11147
/* Override any GCC internal prototype to avoid an error.
11148
   Use char because int might match the return type of a GCC
11149
   builtin and then its argument prototype would still apply.  */
11150
#ifdef __cplusplus
11151
extern "C"
11152
#endif
11153
char dlopen ();
11154
int
11155
main ()
11156
{
11157
return dlopen ();
11158
  ;
11159
  return 0;
11160
}
11161
_ACEOF
11162
if ac_fn_c_try_link "$LINENO"; then :
11163
  ac_cv_lib_dl_dlopen=yes
11164
else
11165
  ac_cv_lib_dl_dlopen=no
11166
fi
11167
rm -f core conftest.err conftest.$ac_objext \
11168
    conftest$ac_exeext conftest.$ac_ext
11169
LIBS=$ac_check_lib_save_LIBS
11170
fi
11171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11172
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11173
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11174
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11175
else
11176
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11177
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11178
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11179
  $as_echo_n "(cached) " >&6
11180
else
11181
  ac_check_lib_save_LIBS=$LIBS
11182
LIBS="-lsvld  $LIBS"
11183
if test x$gcc_no_link = xyes; then
11184
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11185
fi
11186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187
/* end confdefs.h.  */
11188
 
11189
/* Override any GCC internal prototype to avoid an error.
11190
   Use char because int might match the return type of a GCC
11191
   builtin and then its argument prototype would still apply.  */
11192
#ifdef __cplusplus
11193
extern "C"
11194
#endif
11195
char dlopen ();
11196
int
11197
main ()
11198
{
11199
return dlopen ();
11200
  ;
11201
  return 0;
11202
}
11203
_ACEOF
11204
if ac_fn_c_try_link "$LINENO"; then :
11205
  ac_cv_lib_svld_dlopen=yes
11206
else
11207
  ac_cv_lib_svld_dlopen=no
11208
fi
11209
rm -f core conftest.err conftest.$ac_objext \
11210
    conftest$ac_exeext conftest.$ac_ext
11211
LIBS=$ac_check_lib_save_LIBS
11212
fi
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11214
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11215
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11216
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11217
else
11218
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11219
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11220
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11221
  $as_echo_n "(cached) " >&6
11222
else
11223
  ac_check_lib_save_LIBS=$LIBS
11224
LIBS="-ldld  $LIBS"
11225
if test x$gcc_no_link = xyes; then
11226
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11227
fi
11228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229
/* end confdefs.h.  */
11230
 
11231
/* Override any GCC internal prototype to avoid an error.
11232
   Use char because int might match the return type of a GCC
11233
   builtin and then its argument prototype would still apply.  */
11234
#ifdef __cplusplus
11235
extern "C"
11236
#endif
11237
char dld_link ();
11238
int
11239
main ()
11240
{
11241
return dld_link ();
11242
  ;
11243
  return 0;
11244
}
11245
_ACEOF
11246
if ac_fn_c_try_link "$LINENO"; then :
11247
  ac_cv_lib_dld_dld_link=yes
11248
else
11249
  ac_cv_lib_dld_dld_link=no
11250
fi
11251
rm -f core conftest.err conftest.$ac_objext \
11252
    conftest$ac_exeext conftest.$ac_ext
11253
LIBS=$ac_check_lib_save_LIBS
11254
fi
11255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11256
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11257
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11258
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11259
fi
11260
 
11261
 
11262
fi
11263
 
11264
 
11265
fi
11266
 
11267
 
11268
fi
11269
 
11270
 
11271
fi
11272
 
11273
 
11274
fi
11275
 
11276
    ;;
11277
  esac
11278
 
11279
  if test "x$lt_cv_dlopen" != xno; then
11280
    enable_dlopen=yes
11281
  else
11282
    enable_dlopen=no
11283
  fi
11284
 
11285
  case $lt_cv_dlopen in
11286
  dlopen)
11287
    save_CPPFLAGS="$CPPFLAGS"
11288
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11289
 
11290
    save_LDFLAGS="$LDFLAGS"
11291
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11292
 
11293
    save_LIBS="$LIBS"
11294
    LIBS="$lt_cv_dlopen_libs $LIBS"
11295
 
11296
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11297
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11298
if test "${lt_cv_dlopen_self+set}" = set; then :
11299
  $as_echo_n "(cached) " >&6
11300
else
11301
          if test "$cross_compiling" = yes; then :
11302
  lt_cv_dlopen_self=cross
11303
else
11304
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11305
  lt_status=$lt_dlunknown
11306
  cat > conftest.$ac_ext <<_LT_EOF
11307
#line 11307 "configure"
11308
#include "confdefs.h"
11309
 
11310
#if HAVE_DLFCN_H
11311
#include 
11312
#endif
11313
 
11314
#include 
11315
 
11316
#ifdef RTLD_GLOBAL
11317
#  define LT_DLGLOBAL           RTLD_GLOBAL
11318
#else
11319
#  ifdef DL_GLOBAL
11320
#    define LT_DLGLOBAL         DL_GLOBAL
11321
#  else
11322
#    define LT_DLGLOBAL         0
11323
#  endif
11324
#endif
11325
 
11326
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11327
   find out it does not work in some platform. */
11328
#ifndef LT_DLLAZY_OR_NOW
11329
#  ifdef RTLD_LAZY
11330
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11331
#  else
11332
#    ifdef DL_LAZY
11333
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11334
#    else
11335
#      ifdef RTLD_NOW
11336
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11337
#      else
11338
#        ifdef DL_NOW
11339
#          define LT_DLLAZY_OR_NOW      DL_NOW
11340
#        else
11341
#          define LT_DLLAZY_OR_NOW      0
11342
#        endif
11343
#      endif
11344
#    endif
11345
#  endif
11346
#endif
11347
 
11348
/* When -fvisbility=hidden is used, assume the code has been annotated
11349
   correspondingly for the symbols needed.  */
11350
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11351
void fnord () __attribute__((visibility("default")));
11352
#endif
11353
 
11354
void fnord () { int i=42; }
11355
int main ()
11356
{
11357
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11358
  int status = $lt_dlunknown;
11359
 
11360
  if (self)
11361
    {
11362
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11363
      else
11364
        {
11365
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11366
          else puts (dlerror ());
11367
        }
11368
      /* dlclose (self); */
11369
    }
11370
  else
11371
    puts (dlerror ());
11372
 
11373
  return status;
11374
}
11375
_LT_EOF
11376
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11377
  (eval $ac_link) 2>&5
11378
  ac_status=$?
11379
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11381
    (./conftest; exit; ) >&5 2>/dev/null
11382
    lt_status=$?
11383
    case x$lt_status in
11384
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11385
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11386
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11387
    esac
11388
  else :
11389
    # compilation failed
11390
    lt_cv_dlopen_self=no
11391
  fi
11392
fi
11393
rm -fr conftest*
11394
 
11395
 
11396
fi
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11398
$as_echo "$lt_cv_dlopen_self" >&6; }
11399
 
11400
    if test "x$lt_cv_dlopen_self" = xyes; then
11401
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11402
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11403
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11404
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11405
  $as_echo_n "(cached) " >&6
11406
else
11407
          if test "$cross_compiling" = yes; then :
11408
  lt_cv_dlopen_self_static=cross
11409
else
11410
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11411
  lt_status=$lt_dlunknown
11412
  cat > conftest.$ac_ext <<_LT_EOF
11413
#line 11413 "configure"
11414
#include "confdefs.h"
11415
 
11416
#if HAVE_DLFCN_H
11417
#include 
11418
#endif
11419
 
11420
#include 
11421
 
11422
#ifdef RTLD_GLOBAL
11423
#  define LT_DLGLOBAL           RTLD_GLOBAL
11424
#else
11425
#  ifdef DL_GLOBAL
11426
#    define LT_DLGLOBAL         DL_GLOBAL
11427
#  else
11428
#    define LT_DLGLOBAL         0
11429
#  endif
11430
#endif
11431
 
11432
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11433
   find out it does not work in some platform. */
11434
#ifndef LT_DLLAZY_OR_NOW
11435
#  ifdef RTLD_LAZY
11436
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11437
#  else
11438
#    ifdef DL_LAZY
11439
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11440
#    else
11441
#      ifdef RTLD_NOW
11442
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11443
#      else
11444
#        ifdef DL_NOW
11445
#          define LT_DLLAZY_OR_NOW      DL_NOW
11446
#        else
11447
#          define LT_DLLAZY_OR_NOW      0
11448
#        endif
11449
#      endif
11450
#    endif
11451
#  endif
11452
#endif
11453
 
11454
/* When -fvisbility=hidden is used, assume the code has been annotated
11455
   correspondingly for the symbols needed.  */
11456
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11457
void fnord () __attribute__((visibility("default")));
11458
#endif
11459
 
11460
void fnord () { int i=42; }
11461
int main ()
11462
{
11463
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11464
  int status = $lt_dlunknown;
11465
 
11466
  if (self)
11467
    {
11468
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11469
      else
11470
        {
11471
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11472
          else puts (dlerror ());
11473
        }
11474
      /* dlclose (self); */
11475
    }
11476
  else
11477
    puts (dlerror ());
11478
 
11479
  return status;
11480
}
11481
_LT_EOF
11482
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483
  (eval $ac_link) 2>&5
11484
  ac_status=$?
11485
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11487
    (./conftest; exit; ) >&5 2>/dev/null
11488
    lt_status=$?
11489
    case x$lt_status in
11490
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11491
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11492
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11493
    esac
11494
  else :
11495
    # compilation failed
11496
    lt_cv_dlopen_self_static=no
11497
  fi
11498
fi
11499
rm -fr conftest*
11500
 
11501
 
11502
fi
11503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11504
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11505
    fi
11506
 
11507
    CPPFLAGS="$save_CPPFLAGS"
11508
    LDFLAGS="$save_LDFLAGS"
11509
    LIBS="$save_LIBS"
11510
    ;;
11511
  esac
11512
 
11513
  case $lt_cv_dlopen_self in
11514
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11515
  *) enable_dlopen_self=unknown ;;
11516
  esac
11517
 
11518
  case $lt_cv_dlopen_self_static in
11519
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11520
  *) enable_dlopen_self_static=unknown ;;
11521
  esac
11522
fi
11523
 
11524
 
11525
 
11526
 
11527
 
11528
 
11529
 
11530
 
11531
 
11532
 
11533
 
11534
 
11535
 
11536
 
11537
 
11538
 
11539
 
11540
striplib=
11541
old_striplib=
11542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11543
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11544
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11545
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11546
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11548
$as_echo "yes" >&6; }
11549
else
11550
# FIXME - insert some real tests, host_os isn't really good enough
11551
  case $host_os in
11552
  darwin*)
11553
    if test -n "$STRIP" ; then
11554
      striplib="$STRIP -x"
11555
      old_striplib="$STRIP -S"
11556
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11557
$as_echo "yes" >&6; }
11558
    else
11559
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560
$as_echo "no" >&6; }
11561
    fi
11562
    ;;
11563
  *)
11564
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565
$as_echo "no" >&6; }
11566
    ;;
11567
  esac
11568
fi
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
 
11577
 
11578
 
11579
 
11580
 
11581
  # Report which library types will actually be built
11582
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11583
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11584
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11585
$as_echo "$can_build_shared" >&6; }
11586
 
11587
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11588
$as_echo_n "checking whether to build shared libraries... " >&6; }
11589
  test "$can_build_shared" = "no" && enable_shared=no
11590
 
11591
  # On AIX, shared libraries and static libraries use the same namespace, and
11592
  # are all built from PIC.
11593
  case $host_os in
11594
  aix3*)
11595
    test "$enable_shared" = yes && enable_static=no
11596
    if test -n "$RANLIB"; then
11597
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11598
      postinstall_cmds='$RANLIB $lib'
11599
    fi
11600
    ;;
11601
 
11602
  aix[4-9]*)
11603
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11604
      test "$enable_shared" = yes && enable_static=no
11605
    fi
11606
    ;;
11607
  esac
11608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11609
$as_echo "$enable_shared" >&6; }
11610
 
11611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11612
$as_echo_n "checking whether to build static libraries... " >&6; }
11613
  # Make sure either enable_shared or enable_static is yes.
11614
  test "$enable_shared" = yes || enable_static=yes
11615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11616
$as_echo "$enable_static" >&6; }
11617
 
11618
 
11619
 
11620
 
11621
fi
11622
ac_ext=c
11623
ac_cpp='$CPP $CPPFLAGS'
11624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11627
 
11628
CC="$lt_save_CC"
11629
 
11630
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11631
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11632
    (test "X$CXX" != "Xg++"))) ; then
11633
  ac_ext=cpp
11634
ac_cpp='$CXXCPP $CPPFLAGS'
11635
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11639
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11640
if test -z "$CXXCPP"; then
11641
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11642
  $as_echo_n "(cached) " >&6
11643
else
11644
      # Double quotes because CXXCPP needs to be expanded
11645
    for CXXCPP in "$CXX -E" "/lib/cpp"
11646
    do
11647
      ac_preproc_ok=false
11648
for ac_cxx_preproc_warn_flag in '' yes
11649
do
11650
  # Use a header file that comes with gcc, so configuring glibc
11651
  # with a fresh cross-compiler works.
11652
  # Prefer  to  if __STDC__ is defined, since
11653
  #  exists even on freestanding compilers.
11654
  # On the NeXT, cc -E runs the code through the compiler's parser,
11655
  # not just through cpp. "Syntax error" is here to catch this case.
11656
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657
/* end confdefs.h.  */
11658
#ifdef __STDC__
11659
# include 
11660
#else
11661
# include 
11662
#endif
11663
                     Syntax error
11664
_ACEOF
11665
if ac_fn_cxx_try_cpp "$LINENO"; then :
11666
 
11667
else
11668
  # Broken: fails on valid input.
11669
continue
11670
fi
11671
rm -f conftest.err conftest.$ac_ext
11672
 
11673
  # OK, works on sane cases.  Now check whether nonexistent headers
11674
  # can be detected and how.
11675
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676
/* end confdefs.h.  */
11677
#include 
11678
_ACEOF
11679
if ac_fn_cxx_try_cpp "$LINENO"; then :
11680
  # Broken: success on invalid input.
11681
continue
11682
else
11683
  # Passes both tests.
11684
ac_preproc_ok=:
11685
break
11686
fi
11687
rm -f conftest.err conftest.$ac_ext
11688
 
11689
done
11690
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11691
rm -f conftest.err conftest.$ac_ext
11692
if $ac_preproc_ok; then :
11693
  break
11694
fi
11695
 
11696
    done
11697
    ac_cv_prog_CXXCPP=$CXXCPP
11698
 
11699
fi
11700
  CXXCPP=$ac_cv_prog_CXXCPP
11701
else
11702
  ac_cv_prog_CXXCPP=$CXXCPP
11703
fi
11704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11705
$as_echo "$CXXCPP" >&6; }
11706
ac_preproc_ok=false
11707
for ac_cxx_preproc_warn_flag in '' yes
11708
do
11709
  # Use a header file that comes with gcc, so configuring glibc
11710
  # with a fresh cross-compiler works.
11711
  # Prefer  to  if __STDC__ is defined, since
11712
  #  exists even on freestanding compilers.
11713
  # On the NeXT, cc -E runs the code through the compiler's parser,
11714
  # not just through cpp. "Syntax error" is here to catch this case.
11715
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716
/* end confdefs.h.  */
11717
#ifdef __STDC__
11718
# include 
11719
#else
11720
# include 
11721
#endif
11722
                     Syntax error
11723
_ACEOF
11724
if ac_fn_cxx_try_cpp "$LINENO"; then :
11725
 
11726
else
11727
  # Broken: fails on valid input.
11728
continue
11729
fi
11730
rm -f conftest.err conftest.$ac_ext
11731
 
11732
  # OK, works on sane cases.  Now check whether nonexistent headers
11733
  # can be detected and how.
11734
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735
/* end confdefs.h.  */
11736
#include 
11737
_ACEOF
11738
if ac_fn_cxx_try_cpp "$LINENO"; then :
11739
  # Broken: success on invalid input.
11740
continue
11741
else
11742
  # Passes both tests.
11743
ac_preproc_ok=:
11744
break
11745
fi
11746
rm -f conftest.err conftest.$ac_ext
11747
 
11748
done
11749
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11750
rm -f conftest.err conftest.$ac_ext
11751
if $ac_preproc_ok; then :
11752
 
11753
else
11754
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11755
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11756
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11757
See \`config.log' for more details." "$LINENO" 5; }
11758
fi
11759
 
11760
ac_ext=c
11761
ac_cpp='$CPP $CPPFLAGS'
11762
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
 
11766
else
11767
  _lt_caught_CXX_error=yes
11768
fi
11769
 
11770
ac_ext=cpp
11771
ac_cpp='$CXXCPP $CPPFLAGS'
11772
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11775
 
11776
archive_cmds_need_lc_CXX=no
11777
allow_undefined_flag_CXX=
11778
always_export_symbols_CXX=no
11779
archive_expsym_cmds_CXX=
11780
compiler_needs_object_CXX=no
11781
export_dynamic_flag_spec_CXX=
11782
hardcode_direct_CXX=no
11783
hardcode_direct_absolute_CXX=no
11784
hardcode_libdir_flag_spec_CXX=
11785
hardcode_libdir_flag_spec_ld_CXX=
11786
hardcode_libdir_separator_CXX=
11787
hardcode_minus_L_CXX=no
11788
hardcode_shlibpath_var_CXX=unsupported
11789
hardcode_automatic_CXX=no
11790
inherit_rpath_CXX=no
11791
module_cmds_CXX=
11792
module_expsym_cmds_CXX=
11793
link_all_deplibs_CXX=unknown
11794
old_archive_cmds_CXX=$old_archive_cmds
11795
reload_flag_CXX=$reload_flag
11796
reload_cmds_CXX=$reload_cmds
11797
no_undefined_flag_CXX=
11798
whole_archive_flag_spec_CXX=
11799
enable_shared_with_static_runtimes_CXX=no
11800
 
11801
# Source file extension for C++ test sources.
11802
ac_ext=cpp
11803
 
11804
# Object file extension for compiled C++ test sources.
11805
objext=o
11806
objext_CXX=$objext
11807
 
11808
# No sense in running all these tests if we already determined that
11809
# the CXX compiler isn't working.  Some variables (like enable_shared)
11810
# are currently assumed to apply to all compilers on this platform,
11811
# and will be corrupted by setting them based on a non-working compiler.
11812
if test "$_lt_caught_CXX_error" != yes; then
11813
  # Code to be used in simple compile tests
11814
  lt_simple_compile_test_code="int some_variable = 0;"
11815
 
11816
  # Code to be used in simple link tests
11817
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11818
 
11819
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11820
 
11821
 
11822
 
11823
 
11824
 
11825
 
11826
# If no C compiler was specified, use CC.
11827
LTCC=${LTCC-"$CC"}
11828
 
11829
# If no C compiler flags were specified, use CFLAGS.
11830
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11831
 
11832
# Allow CC to be a program name with arguments.
11833
compiler=$CC
11834
 
11835
 
11836
  # save warnings/boilerplate of simple test code
11837
  ac_outfile=conftest.$ac_objext
11838
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11839
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11840
_lt_compiler_boilerplate=`cat conftest.err`
11841
$RM conftest*
11842
 
11843
  ac_outfile=conftest.$ac_objext
11844
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11845
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11846
_lt_linker_boilerplate=`cat conftest.err`
11847
$RM -r conftest*
11848
 
11849
 
11850
  # Allow CC to be a program name with arguments.
11851
  lt_save_CC=$CC
11852
  lt_save_LD=$LD
11853
  lt_save_GCC=$GCC
11854
  GCC=$GXX
11855
  lt_save_with_gnu_ld=$with_gnu_ld
11856
  lt_save_path_LD=$lt_cv_path_LD
11857
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11858
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11859
  else
11860
    $as_unset lt_cv_prog_gnu_ld
11861
  fi
11862
  if test -n "${lt_cv_path_LDCXX+set}"; then
11863
    lt_cv_path_LD=$lt_cv_path_LDCXX
11864
  else
11865
    $as_unset lt_cv_path_LD
11866
  fi
11867
  test -z "${LDCXX+set}" || LD=$LDCXX
11868
  CC=${CXX-"c++"}
11869
  compiler=$CC
11870
  compiler_CXX=$CC
11871
  for cc_temp in $compiler""; do
11872
  case $cc_temp in
11873
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11874
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11875
    \-*) ;;
11876
    *) break;;
11877
  esac
11878
done
11879
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11880
 
11881
 
11882
  if test -n "$compiler"; then
11883
    # We don't want -fno-exception when compiling C++ code, so set the
11884
    # no_builtin_flag separately
11885
    if test "$GXX" = yes; then
11886
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11887
    else
11888
      lt_prog_compiler_no_builtin_flag_CXX=
11889
    fi
11890
 
11891
    if test "$GXX" = yes; then
11892
      # Set up default GNU C++ configuration
11893
 
11894
 
11895
 
11896
# Check whether --with-gnu-ld was given.
11897
if test "${with_gnu_ld+set}" = set; then :
11898
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11899
else
11900
  with_gnu_ld=no
11901
fi
11902
 
11903
ac_prog=ld
11904
if test "$GCC" = yes; then
11905
  # Check if gcc -print-prog-name=ld gives a path.
11906
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11907
$as_echo_n "checking for ld used by $CC... " >&6; }
11908
  case $host in
11909
  *-*-mingw*)
11910
    # gcc leaves a trailing carriage return which upsets mingw
11911
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11912
  *)
11913
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11914
  esac
11915
  case $ac_prog in
11916
    # Accept absolute paths.
11917
    [\\/]* | ?:[\\/]*)
11918
      re_direlt='/[^/][^/]*/\.\./'
11919
      # Canonicalize the pathname of ld
11920
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11921
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11922
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11923
      done
11924
      test -z "$LD" && LD="$ac_prog"
11925
      ;;
11926
  "")
11927
    # If it fails, then pretend we aren't using GCC.
11928
    ac_prog=ld
11929
    ;;
11930
  *)
11931
    # If it is relative, then search for the first ld in PATH.
11932
    with_gnu_ld=unknown
11933
    ;;
11934
  esac
11935
elif test "$with_gnu_ld" = yes; then
11936
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11937
$as_echo_n "checking for GNU ld... " >&6; }
11938
else
11939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11940
$as_echo_n "checking for non-GNU ld... " >&6; }
11941
fi
11942
if test "${lt_cv_path_LD+set}" = set; then :
11943
  $as_echo_n "(cached) " >&6
11944
else
11945
  if test -z "$LD"; then
11946
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11947
  for ac_dir in $PATH; do
11948
    IFS="$lt_save_ifs"
11949
    test -z "$ac_dir" && ac_dir=.
11950
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11951
      lt_cv_path_LD="$ac_dir/$ac_prog"
11952
      # Check to see if the program is GNU ld.  I'd rather use --version,
11953
      # but apparently some variants of GNU ld only accept -v.
11954
      # Break only if it was the GNU/non-GNU ld that we prefer.
11955
      case `"$lt_cv_path_LD" -v 2>&1 
11956
      *GNU* | *'with BFD'*)
11957
        test "$with_gnu_ld" != no && break
11958
        ;;
11959
      *)
11960
        test "$with_gnu_ld" != yes && break
11961
        ;;
11962
      esac
11963
    fi
11964
  done
11965
  IFS="$lt_save_ifs"
11966
else
11967
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11968
fi
11969
fi
11970
 
11971
LD="$lt_cv_path_LD"
11972
if test -n "$LD"; then
11973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11974
$as_echo "$LD" >&6; }
11975
else
11976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977
$as_echo "no" >&6; }
11978
fi
11979
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11981
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11982
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11983
  $as_echo_n "(cached) " >&6
11984
else
11985
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11986
case `$LD -v 2>&1 
11987
*GNU* | *'with BFD'*)
11988
  lt_cv_prog_gnu_ld=yes
11989
  ;;
11990
*)
11991
  lt_cv_prog_gnu_ld=no
11992
  ;;
11993
esac
11994
fi
11995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11996
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11997
with_gnu_ld=$lt_cv_prog_gnu_ld
11998
 
11999
 
12000
 
12001
 
12002
 
12003
 
12004
 
12005
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12006
      # archiving commands below assume that GNU ld is being used.
12007
      if test "$with_gnu_ld" = yes; then
12008
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12009
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12010
 
12011
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12012
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12013
 
12014
        # If archive_cmds runs LD, not CC, wlarc should be empty
12015
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12016
        #     investigate it a little bit more. (MM)
12017
        wlarc='${wl}'
12018
 
12019
        # ancient GNU ld didn't support --whole-archive et. al.
12020
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12021
          $GREP 'no-whole-archive' > /dev/null; then
12022
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12023
        else
12024
          whole_archive_flag_spec_CXX=
12025
        fi
12026
      else
12027
        with_gnu_ld=no
12028
        wlarc=
12029
 
12030
        # A generic and very simple default shared library creation
12031
        # command for GNU C++ for the case where it uses the native
12032
        # linker, instead of GNU ld.  If possible, this setting should
12033
        # overridden to take advantage of the native linker features on
12034
        # the platform it is being used on.
12035
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12036
      fi
12037
 
12038
      # Commands to make compiler produce verbose output that lists
12039
      # what "hidden" libraries, object files and flags are used when
12040
      # linking a shared library.
12041
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12042
 
12043
    else
12044
      GXX=no
12045
      with_gnu_ld=no
12046
      wlarc=
12047
    fi
12048
 
12049
    # PORTME: fill in a description of your system's C++ link characteristics
12050
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12051
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12052
    ld_shlibs_CXX=yes
12053
    case $host_os in
12054
      aix3*)
12055
        # FIXME: insert proper C++ library support
12056
        ld_shlibs_CXX=no
12057
        ;;
12058
      aix[4-9]*)
12059
        if test "$host_cpu" = ia64; then
12060
          # On IA64, the linker does run time linking by default, so we don't
12061
          # have to do anything special.
12062
          aix_use_runtimelinking=no
12063
          exp_sym_flag='-Bexport'
12064
          no_entry_flag=""
12065
        else
12066
          aix_use_runtimelinking=no
12067
 
12068
          # Test if we are trying to use run time linking or normal
12069
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12070
          # need to do runtime linking.
12071
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12072
            for ld_flag in $LDFLAGS; do
12073
              case $ld_flag in
12074
              *-brtl*)
12075
                aix_use_runtimelinking=yes
12076
                break
12077
                ;;
12078
              esac
12079
            done
12080
            ;;
12081
          esac
12082
 
12083
          exp_sym_flag='-bexport'
12084
          no_entry_flag='-bnoentry'
12085
        fi
12086
 
12087
        # When large executables or shared objects are built, AIX ld can
12088
        # have problems creating the table of contents.  If linking a library
12089
        # or program results in "error TOC overflow" add -mminimal-toc to
12090
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12091
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12092
 
12093
        archive_cmds_CXX=''
12094
        hardcode_direct_CXX=yes
12095
        hardcode_direct_absolute_CXX=yes
12096
        hardcode_libdir_separator_CXX=':'
12097
        link_all_deplibs_CXX=yes
12098
        file_list_spec_CXX='${wl}-f,'
12099
 
12100
        if test "$GXX" = yes; then
12101
          case $host_os in aix4.[012]|aix4.[012].*)
12102
          # We only want to do this on AIX 4.2 and lower, the check
12103
          # below for broken collect2 doesn't work under 4.3+
12104
          collect2name=`${CC} -print-prog-name=collect2`
12105
          if test -f "$collect2name" &&
12106
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12107
          then
12108
            # We have reworked collect2
12109
            :
12110
          else
12111
            # We have old collect2
12112
            hardcode_direct_CXX=unsupported
12113
            # It fails to find uninstalled libraries when the uninstalled
12114
            # path is not listed in the libpath.  Setting hardcode_minus_L
12115
            # to unsupported forces relinking
12116
            hardcode_minus_L_CXX=yes
12117
            hardcode_libdir_flag_spec_CXX='-L$libdir'
12118
            hardcode_libdir_separator_CXX=
12119
          fi
12120
          esac
12121
          shared_flag='-shared'
12122
          if test "$aix_use_runtimelinking" = yes; then
12123
            shared_flag="$shared_flag "'${wl}-G'
12124
          fi
12125
        else
12126
          # not using gcc
12127
          if test "$host_cpu" = ia64; then
12128
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12129
          # chokes on -Wl,-G. The following line is correct:
12130
          shared_flag='-G'
12131
          else
12132
            if test "$aix_use_runtimelinking" = yes; then
12133
              shared_flag='${wl}-G'
12134
            else
12135
              shared_flag='${wl}-bM:SRE'
12136
            fi
12137
          fi
12138
        fi
12139
 
12140
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12141
        # It seems that -bexpall does not export symbols beginning with
12142
        # underscore (_), so it is better to generate a list of symbols to
12143
        # export.
12144
        always_export_symbols_CXX=yes
12145
        if test "$aix_use_runtimelinking" = yes; then
12146
          # Warning - without using the other runtime loading flags (-brtl),
12147
          # -berok will link without error, but may produce a broken library.
12148
          allow_undefined_flag_CXX='-berok'
12149
          # Determine the default libpath from the value encoded in an empty
12150
          # executable.
12151
          if test x$gcc_no_link = xyes; then
12152
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12153
fi
12154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155
/* end confdefs.h.  */
12156
 
12157
int
12158
main ()
12159
{
12160
 
12161
  ;
12162
  return 0;
12163
}
12164
_ACEOF
12165
if ac_fn_cxx_try_link "$LINENO"; then :
12166
 
12167
lt_aix_libpath_sed='
12168
    /Import File Strings/,/^$/ {
12169
        /^0/ {
12170
            s/^0  *\(.*\)$/\1/
12171
            p
12172
        }
12173
    }'
12174
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12175
# Check for a 64-bit object if we didn't find anything.
12176
if test -z "$aix_libpath"; then
12177
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12178
fi
12179
fi
12180
rm -f core conftest.err conftest.$ac_objext \
12181
    conftest$ac_exeext conftest.$ac_ext
12182
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12183
 
12184
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12185
 
12186
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12187
        else
12188
          if test "$host_cpu" = ia64; then
12189
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12190
            allow_undefined_flag_CXX="-z nodefs"
12191
            archive_expsym_cmds_CXX="\$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"
12192
          else
12193
            # Determine the default libpath from the value encoded in an
12194
            # empty executable.
12195
            if test x$gcc_no_link = xyes; then
12196
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12197
fi
12198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199
/* end confdefs.h.  */
12200
 
12201
int
12202
main ()
12203
{
12204
 
12205
  ;
12206
  return 0;
12207
}
12208
_ACEOF
12209
if ac_fn_cxx_try_link "$LINENO"; then :
12210
 
12211
lt_aix_libpath_sed='
12212
    /Import File Strings/,/^$/ {
12213
        /^0/ {
12214
            s/^0  *\(.*\)$/\1/
12215
            p
12216
        }
12217
    }'
12218
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12219
# Check for a 64-bit object if we didn't find anything.
12220
if test -z "$aix_libpath"; then
12221
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12222
fi
12223
fi
12224
rm -f core conftest.err conftest.$ac_objext \
12225
    conftest$ac_exeext conftest.$ac_ext
12226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12227
 
12228
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12229
            # Warning - without using the other run time loading flags,
12230
            # -berok will link without error, but may produce a broken library.
12231
            no_undefined_flag_CXX=' ${wl}-bernotok'
12232
            allow_undefined_flag_CXX=' ${wl}-berok'
12233
            if test "$with_gnu_ld" = yes; then
12234
              # We only use this code for GNU lds that support --whole-archive.
12235
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12236
            else
12237
              # Exported symbols can be pulled into shared objects from archives
12238
              whole_archive_flag_spec_CXX='$convenience'
12239
            fi
12240
            archive_cmds_need_lc_CXX=yes
12241
            # This is similar to how AIX traditionally builds its shared
12242
            # libraries.
12243
            archive_expsym_cmds_CXX="\$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'
12244
          fi
12245
        fi
12246
        ;;
12247
 
12248
      beos*)
12249
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12250
          allow_undefined_flag_CXX=unsupported
12251
          # Joseph Beckenbach  says some releases of gcc
12252
          # support --undefined.  This deserves some investigation.  FIXME
12253
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254
        else
12255
          ld_shlibs_CXX=no
12256
        fi
12257
        ;;
12258
 
12259
      chorus*)
12260
        case $cc_basename in
12261
          *)
12262
          # FIXME: insert proper C++ library support
12263
          ld_shlibs_CXX=no
12264
          ;;
12265
        esac
12266
        ;;
12267
 
12268
      cygwin* | mingw* | pw32* | cegcc*)
12269
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12270
        # as there is no search path for DLLs.
12271
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12272
        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12273
        allow_undefined_flag_CXX=unsupported
12274
        always_export_symbols_CXX=no
12275
        enable_shared_with_static_runtimes_CXX=yes
12276
 
12277
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12278
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279
          # If the export-symbols file already is a .def file (1st line
12280
          # is EXPORTS), use it as is; otherwise, prepend...
12281
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12282
            cp $export_symbols $output_objdir/$soname.def;
12283
          else
12284
            echo EXPORTS > $output_objdir/$soname.def;
12285
            cat $export_symbols >> $output_objdir/$soname.def;
12286
          fi~
12287
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12288
        else
12289
          ld_shlibs_CXX=no
12290
        fi
12291
        ;;
12292
      darwin* | rhapsody*)
12293
 
12294
 
12295
  archive_cmds_need_lc_CXX=no
12296
  hardcode_direct_CXX=no
12297
  hardcode_automatic_CXX=yes
12298
  hardcode_shlibpath_var_CXX=unsupported
12299
  if test "$lt_cv_ld_force_load" = "yes"; then
12300
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12301
  else
12302
    whole_archive_flag_spec_CXX=''
12303
  fi
12304
  link_all_deplibs_CXX=yes
12305
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12306
  case $cc_basename in
12307
     ifort*) _lt_dar_can_shared=yes ;;
12308
     *) _lt_dar_can_shared=$GCC ;;
12309
  esac
12310
  if test "$_lt_dar_can_shared" = "yes"; then
12311
    output_verbose_link_cmd=func_echo_all
12312
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12313
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12314
    archive_expsym_cmds_CXX="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}"
12315
    module_expsym_cmds_CXX="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}"
12316
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12317
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12318
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12319
    fi
12320
 
12321
  else
12322
  ld_shlibs_CXX=no
12323
  fi
12324
 
12325
        ;;
12326
 
12327
      dgux*)
12328
        case $cc_basename in
12329
          ec++*)
12330
            # FIXME: insert proper C++ library support
12331
            ld_shlibs_CXX=no
12332
            ;;
12333
          ghcx*)
12334
            # Green Hills C++ Compiler
12335
            # FIXME: insert proper C++ library support
12336
            ld_shlibs_CXX=no
12337
            ;;
12338
          *)
12339
            # FIXME: insert proper C++ library support
12340
            ld_shlibs_CXX=no
12341
            ;;
12342
        esac
12343
        ;;
12344
 
12345
      freebsd2.*)
12346
        # C++ shared libraries reported to be fairly broken before
12347
        # switch to ELF
12348
        ld_shlibs_CXX=no
12349
        ;;
12350
 
12351
      freebsd-elf*)
12352
        archive_cmds_need_lc_CXX=no
12353
        ;;
12354
 
12355
      freebsd* | dragonfly*)
12356
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12357
        # conventions
12358
        ld_shlibs_CXX=yes
12359
        ;;
12360
 
12361
      gnu*)
12362
        ;;
12363
 
12364
      haiku*)
12365
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12366
        link_all_deplibs_CXX=yes
12367
        ;;
12368
 
12369
      hpux9*)
12370
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12371
        hardcode_libdir_separator_CXX=:
12372
        export_dynamic_flag_spec_CXX='${wl}-E'
12373
        hardcode_direct_CXX=yes
12374
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12375
                                             # but as the default
12376
                                             # location of the library.
12377
 
12378
        case $cc_basename in
12379
          CC*)
12380
            # FIXME: insert proper C++ library support
12381
            ld_shlibs_CXX=no
12382
            ;;
12383
          aCC*)
12384
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12385
            # Commands to make compiler produce verbose output that lists
12386
            # what "hidden" libraries, object files and flags are used when
12387
            # linking a shared library.
12388
            #
12389
            # There doesn't appear to be a way to prevent this compiler from
12390
            # explicitly linking system object files so we need to strip them
12391
            # from the output so that they don't get included in the library
12392
            # dependencies.
12393
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12394
            ;;
12395
          *)
12396
            if test "$GXX" = yes; then
12397
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12398
            else
12399
              # FIXME: insert proper C++ library support
12400
              ld_shlibs_CXX=no
12401
            fi
12402
            ;;
12403
        esac
12404
        ;;
12405
 
12406
      hpux10*|hpux11*)
12407
        if test $with_gnu_ld = no; then
12408
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12409
          hardcode_libdir_separator_CXX=:
12410
 
12411
          case $host_cpu in
12412
            hppa*64*|ia64*)
12413
              ;;
12414
            *)
12415
              export_dynamic_flag_spec_CXX='${wl}-E'
12416
              ;;
12417
          esac
12418
        fi
12419
        case $host_cpu in
12420
          hppa*64*|ia64*)
12421
            hardcode_direct_CXX=no
12422
            hardcode_shlibpath_var_CXX=no
12423
            ;;
12424
          *)
12425
            hardcode_direct_CXX=yes
12426
            hardcode_direct_absolute_CXX=yes
12427
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12428
                                                 # but as the default
12429
                                                 # location of the library.
12430
            ;;
12431
        esac
12432
 
12433
        case $cc_basename in
12434
          CC*)
12435
            # FIXME: insert proper C++ library support
12436
            ld_shlibs_CXX=no
12437
            ;;
12438
          aCC*)
12439
            case $host_cpu in
12440
              hppa*64*)
12441
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12442
                ;;
12443
              ia64*)
12444
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12445
                ;;
12446
              *)
12447
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12448
                ;;
12449
            esac
12450
            # Commands to make compiler produce verbose output that lists
12451
            # what "hidden" libraries, object files and flags are used when
12452
            # linking a shared library.
12453
            #
12454
            # There doesn't appear to be a way to prevent this compiler from
12455
            # explicitly linking system object files so we need to strip them
12456
            # from the output so that they don't get included in the library
12457
            # dependencies.
12458
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12459
            ;;
12460
          *)
12461
            if test "$GXX" = yes; then
12462
              if test $with_gnu_ld = no; then
12463
                case $host_cpu in
12464
                  hppa*64*)
12465
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12466
                    ;;
12467
                  ia64*)
12468
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12469
                    ;;
12470
                  *)
12471
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472
                    ;;
12473
                esac
12474
              fi
12475
            else
12476
              # FIXME: insert proper C++ library support
12477
              ld_shlibs_CXX=no
12478
            fi
12479
            ;;
12480
        esac
12481
        ;;
12482
 
12483
      interix[3-9]*)
12484
        hardcode_direct_CXX=no
12485
        hardcode_shlibpath_var_CXX=no
12486
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12487
        export_dynamic_flag_spec_CXX='${wl}-E'
12488
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12489
        # Instead, shared libraries are loaded at an image base (0x10000000 by
12490
        # default) and relocated if they conflict, which is a slow very memory
12491
        # consuming and fragmenting process.  To avoid this, we pick a random,
12492
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12493
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12494
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12495
        archive_expsym_cmds_CXX='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'
12496
        ;;
12497
      irix5* | irix6*)
12498
        case $cc_basename in
12499
          CC*)
12500
            # SGI C++
12501
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12502
 
12503
            # Archives containing C++ object files must be created using
12504
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12505
            # necessary to make sure instantiated templates are included
12506
            # in the archive.
12507
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12508
            ;;
12509
          *)
12510
            if test "$GXX" = yes; then
12511
              if test "$with_gnu_ld" = no; then
12512
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12513
              else
12514
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12515
              fi
12516
            fi
12517
            link_all_deplibs_CXX=yes
12518
            ;;
12519
        esac
12520
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12521
        hardcode_libdir_separator_CXX=:
12522
        inherit_rpath_CXX=yes
12523
        ;;
12524
 
12525
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12526
        case $cc_basename in
12527
          KCC*)
12528
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12529
 
12530
            # KCC will only create a shared library if the output file
12531
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12532
            # to its proper name (with version) after linking.
12533
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12534
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12535
            # Commands to make compiler produce verbose output that lists
12536
            # what "hidden" libraries, object files and flags are used when
12537
            # linking a shared library.
12538
            #
12539
            # There doesn't appear to be a way to prevent this compiler from
12540
            # explicitly linking system object files so we need to strip them
12541
            # from the output so that they don't get included in the library
12542
            # dependencies.
12543
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12544
 
12545
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12546
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12547
 
12548
            # Archives containing C++ object files must be created using
12549
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12550
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12551
            ;;
12552
          icpc* | ecpc* )
12553
            # Intel C++
12554
            with_gnu_ld=yes
12555
            # version 8.0 and above of icpc choke on multiply defined symbols
12556
            # if we add $predep_objects and $postdep_objects, however 7.1 and
12557
            # earlier do not add the objects themselves.
12558
            case `$CC -V 2>&1` in
12559
              *"Version 7."*)
12560
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12561
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12562
                ;;
12563
              *)  # Version 8.0 or newer
12564
                tmp_idyn=
12565
                case $host_cpu in
12566
                  ia64*) tmp_idyn=' -i_dynamic';;
12567
                esac
12568
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12570
                ;;
12571
            esac
12572
            archive_cmds_need_lc_CXX=no
12573
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12574
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12575
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12576
            ;;
12577
          pgCC* | pgcpp*)
12578
            # Portland Group C++ compiler
12579
            case `$CC -V` in
12580
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12581
              prelink_cmds_CXX='tpldir=Template.dir~
12582
                rm -rf $tpldir~
12583
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12584
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12585
              old_archive_cmds_CXX='tpldir=Template.dir~
12586
                rm -rf $tpldir~
12587
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12588
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12589
                $RANLIB $oldlib'
12590
              archive_cmds_CXX='tpldir=Template.dir~
12591
                rm -rf $tpldir~
12592
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12593
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12594
              archive_expsym_cmds_CXX='tpldir=Template.dir~
12595
                rm -rf $tpldir~
12596
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12597
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12598
              ;;
12599
            *) # Version 6 and above use weak symbols
12600
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12601
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12602
              ;;
12603
            esac
12604
 
12605
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12606
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12607
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12608
            ;;
12609
          cxx*)
12610
            # Compaq C++
12611
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12613
 
12614
            runpath_var=LD_RUN_PATH
12615
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12616
            hardcode_libdir_separator_CXX=:
12617
 
12618
            # Commands to make compiler produce verbose output that lists
12619
            # what "hidden" libraries, object files and flags are used when
12620
            # linking a shared library.
12621
            #
12622
            # There doesn't appear to be a way to prevent this compiler from
12623
            # explicitly linking system object files so we need to strip them
12624
            # from the output so that they don't get included in the library
12625
            # dependencies.
12626
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12627
            ;;
12628
          xl* | mpixl* | bgxl*)
12629
            # IBM XL 8.0 on PPC, with GNU ld
12630
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12631
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12632
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633
            if test "x$supports_anon_versioning" = xyes; then
12634
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12635
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12636
                echo "local: *; };" >> $output_objdir/$libname.ver~
12637
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12638
            fi
12639
            ;;
12640
          *)
12641
            case `$CC -V 2>&1 | sed 5q` in
12642
            *Sun\ C*)
12643
              # Sun C++ 5.9
12644
              no_undefined_flag_CXX=' -zdefs'
12645
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12646
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12647
              hardcode_libdir_flag_spec_CXX='-R$libdir'
12648
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12649
              compiler_needs_object_CXX=yes
12650
 
12651
              # Not sure whether something based on
12652
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12653
              # would be better.
12654
              output_verbose_link_cmd='func_echo_all'
12655
 
12656
              # Archives containing C++ object files must be created using
12657
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12658
              # necessary to make sure instantiated templates are included
12659
              # in the archive.
12660
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12661
              ;;
12662
            esac
12663
            ;;
12664
        esac
12665
        ;;
12666
 
12667
      lynxos*)
12668
        # FIXME: insert proper C++ library support
12669
        ld_shlibs_CXX=no
12670
        ;;
12671
 
12672
      m88k*)
12673
        # FIXME: insert proper C++ library support
12674
        ld_shlibs_CXX=no
12675
        ;;
12676
 
12677
      mvs*)
12678
        case $cc_basename in
12679
          cxx*)
12680
            # FIXME: insert proper C++ library support
12681
            ld_shlibs_CXX=no
12682
            ;;
12683
          *)
12684
            # FIXME: insert proper C++ library support
12685
            ld_shlibs_CXX=no
12686
            ;;
12687
        esac
12688
        ;;
12689
 
12690
      netbsd*)
12691
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12692
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12693
          wlarc=
12694
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12695
          hardcode_direct_CXX=yes
12696
          hardcode_shlibpath_var_CXX=no
12697
        fi
12698
        # Workaround some broken pre-1.5 toolchains
12699
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12700
        ;;
12701
 
12702
      *nto* | *qnx*)
12703
        ld_shlibs_CXX=yes
12704
        ;;
12705
 
12706
      openbsd2*)
12707
        # C++ shared libraries are fairly broken
12708
        ld_shlibs_CXX=no
12709
        ;;
12710
 
12711
      openbsd*)
12712
        if test -f /usr/libexec/ld.so; then
12713
          hardcode_direct_CXX=yes
12714
          hardcode_shlibpath_var_CXX=no
12715
          hardcode_direct_absolute_CXX=yes
12716
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12717
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12718
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12719
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12720
            export_dynamic_flag_spec_CXX='${wl}-E'
12721
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12722
          fi
12723
          output_verbose_link_cmd=func_echo_all
12724
        else
12725
          ld_shlibs_CXX=no
12726
        fi
12727
        ;;
12728
 
12729
      osf3* | osf4* | osf5*)
12730
        case $cc_basename in
12731
          KCC*)
12732
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12733
 
12734
            # KCC will only create a shared library if the output file
12735
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12736
            # to its proper name (with version) after linking.
12737
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12738
 
12739
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12740
            hardcode_libdir_separator_CXX=:
12741
 
12742
            # Archives containing C++ object files must be created using
12743
            # the KAI C++ compiler.
12744
            case $host in
12745
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12746
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12747
            esac
12748
            ;;
12749
          RCC*)
12750
            # Rational C++ 2.4.1
12751
            # FIXME: insert proper C++ library support
12752
            ld_shlibs_CXX=no
12753
            ;;
12754
          cxx*)
12755
            case $host in
12756
              osf3*)
12757
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12758
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12759
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12760
                ;;
12761
              *)
12762
                allow_undefined_flag_CXX=' -expect_unresolved \*'
12763
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12764
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12765
                  echo "-hidden">> $lib.exp~
12766
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12767
                  $RM $lib.exp'
12768
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12769
                ;;
12770
            esac
12771
 
12772
            hardcode_libdir_separator_CXX=:
12773
 
12774
            # Commands to make compiler produce verbose output that lists
12775
            # what "hidden" libraries, object files and flags are used when
12776
            # linking a shared library.
12777
            #
12778
            # There doesn't appear to be a way to prevent this compiler from
12779
            # explicitly linking system object files so we need to strip them
12780
            # from the output so that they don't get included in the library
12781
            # dependencies.
12782
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12783
            ;;
12784
          *)
12785
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12786
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12787
              case $host in
12788
                osf3*)
12789
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12790
                  ;;
12791
                *)
12792
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12793
                  ;;
12794
              esac
12795
 
12796
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12797
              hardcode_libdir_separator_CXX=:
12798
 
12799
              # Commands to make compiler produce verbose output that lists
12800
              # what "hidden" libraries, object files and flags are used when
12801
              # linking a shared library.
12802
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12803
 
12804
            else
12805
              # FIXME: insert proper C++ library support
12806
              ld_shlibs_CXX=no
12807
            fi
12808
            ;;
12809
        esac
12810
        ;;
12811
 
12812
      psos*)
12813
        # FIXME: insert proper C++ library support
12814
        ld_shlibs_CXX=no
12815
        ;;
12816
 
12817
      sunos4*)
12818
        case $cc_basename in
12819
          CC*)
12820
            # Sun C++ 4.x
12821
            # FIXME: insert proper C++ library support
12822
            ld_shlibs_CXX=no
12823
            ;;
12824
          lcc*)
12825
            # Lucid
12826
            # FIXME: insert proper C++ library support
12827
            ld_shlibs_CXX=no
12828
            ;;
12829
          *)
12830
            # FIXME: insert proper C++ library support
12831
            ld_shlibs_CXX=no
12832
            ;;
12833
        esac
12834
        ;;
12835
 
12836
      solaris*)
12837
        case $cc_basename in
12838
          CC*)
12839
            # Sun C++ 4.2, 5.x and Centerline C++
12840
            archive_cmds_need_lc_CXX=yes
12841
            no_undefined_flag_CXX=' -zdefs'
12842
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12843
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12844
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12845
 
12846
            hardcode_libdir_flag_spec_CXX='-R$libdir'
12847
            hardcode_shlibpath_var_CXX=no
12848
            case $host_os in
12849
              solaris2.[0-5] | solaris2.[0-5].*) ;;
12850
              *)
12851
                # The compiler driver will combine and reorder linker options,
12852
                # but understands `-z linker_flag'.
12853
                # Supported since Solaris 2.6 (maybe 2.5.1?)
12854
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12855
                ;;
12856
            esac
12857
            link_all_deplibs_CXX=yes
12858
 
12859
            output_verbose_link_cmd='func_echo_all'
12860
 
12861
            # Archives containing C++ object files must be created using
12862
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12863
            # necessary to make sure instantiated templates are included
12864
            # in the archive.
12865
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12866
            ;;
12867
          gcx*)
12868
            # Green Hills C++ Compiler
12869
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12870
 
12871
            # The C++ compiler must be used to create the archive.
12872
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12873
            ;;
12874
          *)
12875
            # GNU C++ compiler with Solaris linker
12876
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12877
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12878
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12879
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12880
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12881
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12882
 
12883
                # Commands to make compiler produce verbose output that lists
12884
                # what "hidden" libraries, object files and flags are used when
12885
                # linking a shared library.
12886
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12887
              else
12888
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
12889
                # platform.
12890
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12891
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12892
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12893
 
12894
                # Commands to make compiler produce verbose output that lists
12895
                # what "hidden" libraries, object files and flags are used when
12896
                # linking a shared library.
12897
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12898
              fi
12899
 
12900
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12901
              case $host_os in
12902
                solaris2.[0-5] | solaris2.[0-5].*) ;;
12903
                *)
12904
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12905
                  ;;
12906
              esac
12907
            fi
12908
            ;;
12909
        esac
12910
        ;;
12911
 
12912
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12913
      no_undefined_flag_CXX='${wl}-z,text'
12914
      archive_cmds_need_lc_CXX=no
12915
      hardcode_shlibpath_var_CXX=no
12916
      runpath_var='LD_RUN_PATH'
12917
 
12918
      case $cc_basename in
12919
        CC*)
12920
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12921
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12922
          ;;
12923
        *)
12924
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12925
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12926
          ;;
12927
      esac
12928
      ;;
12929
 
12930
      sysv5* | sco3.2v5* | sco5v6*)
12931
        # Note: We can NOT use -z defs as we might desire, because we do not
12932
        # link with -lc, and that would cause any symbols used from libc to
12933
        # always be unresolved, which means just about no library would
12934
        # ever link correctly.  If we're not using GNU ld we use -z text
12935
        # though, which does catch some bad symbols but isn't as heavy-handed
12936
        # as -z defs.
12937
        no_undefined_flag_CXX='${wl}-z,text'
12938
        allow_undefined_flag_CXX='${wl}-z,nodefs'
12939
        archive_cmds_need_lc_CXX=no
12940
        hardcode_shlibpath_var_CXX=no
12941
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12942
        hardcode_libdir_separator_CXX=':'
12943
        link_all_deplibs_CXX=yes
12944
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
12945
        runpath_var='LD_RUN_PATH'
12946
 
12947
        case $cc_basename in
12948
          CC*)
12949
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12950
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12951
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12952
              '"$old_archive_cmds_CXX"
12953
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12954
              '"$reload_cmds_CXX"
12955
            ;;
12956
          *)
12957
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12958
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12959
            ;;
12960
        esac
12961
      ;;
12962
 
12963
      tandem*)
12964
        case $cc_basename in
12965
          NCC*)
12966
            # NonStop-UX NCC 3.20
12967
            # FIXME: insert proper C++ library support
12968
            ld_shlibs_CXX=no
12969
            ;;
12970
          *)
12971
            # FIXME: insert proper C++ library support
12972
            ld_shlibs_CXX=no
12973
            ;;
12974
        esac
12975
        ;;
12976
 
12977
      vxworks*)
12978
        # FIXME: insert proper C++ library support
12979
        ld_shlibs_CXX=no
12980
        ;;
12981
 
12982
      *)
12983
        # FIXME: insert proper C++ library support
12984
        ld_shlibs_CXX=no
12985
        ;;
12986
    esac
12987
 
12988
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12989
$as_echo "$ld_shlibs_CXX" >&6; }
12990
    test "$ld_shlibs_CXX" = no && can_build_shared=no
12991
 
12992
    GCC_CXX="$GXX"
12993
    LD_CXX="$LD"
12994
 
12995
    ## CAVEAT EMPTOR:
12996
    ## There is no encapsulation within the following macros, do not change
12997
    ## the running order or otherwise move them around unless you know exactly
12998
    ## what you are doing...
12999
    # Dependencies to place before and after the object being linked:
13000
predep_objects_CXX=
13001
postdep_objects_CXX=
13002
predeps_CXX=
13003
postdeps_CXX=
13004
compiler_lib_search_path_CXX=
13005
 
13006
cat > conftest.$ac_ext <<_LT_EOF
13007
class Foo
13008
{
13009
public:
13010
  Foo (void) { a = 0; }
13011
private:
13012
  int a;
13013
};
13014
_LT_EOF
13015
 
13016
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13017
  (eval $ac_compile) 2>&5
13018
  ac_status=$?
13019
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13020
  test $ac_status = 0; }; then
13021
  # Parse the compiler output and extract the necessary
13022
  # objects, libraries and library flags.
13023
 
13024
  # Sentinel used to keep track of whether or not we are before
13025
  # the conftest object file.
13026
  pre_test_object_deps_done=no
13027
 
13028
  for p in `eval "$output_verbose_link_cmd"`; do
13029
    case $p in
13030
 
13031
    -L* | -R* | -l*)
13032
       # Some compilers place space between "-{L,R}" and the path.
13033
       # Remove the space.
13034
       if test $p = "-L" ||
13035
          test $p = "-R"; then
13036
         prev=$p
13037
         continue
13038
       else
13039
         prev=
13040
       fi
13041
 
13042
       if test "$pre_test_object_deps_done" = no; then
13043
         case $p in
13044
         -L* | -R*)
13045
           # Internal compiler library paths should come after those
13046
           # provided the user.  The postdeps already come after the
13047
           # user supplied libs so there is no need to process them.
13048
           if test -z "$compiler_lib_search_path_CXX"; then
13049
             compiler_lib_search_path_CXX="${prev}${p}"
13050
           else
13051
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13052
           fi
13053
           ;;
13054
         # The "-l" case would never come before the object being
13055
         # linked, so don't bother handling this case.
13056
         esac
13057
       else
13058
         if test -z "$postdeps_CXX"; then
13059
           postdeps_CXX="${prev}${p}"
13060
         else
13061
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13062
         fi
13063
       fi
13064
       ;;
13065
 
13066
    *.$objext)
13067
       # This assumes that the test object file only shows up
13068
       # once in the compiler output.
13069
       if test "$p" = "conftest.$objext"; then
13070
         pre_test_object_deps_done=yes
13071
         continue
13072
       fi
13073
 
13074
       if test "$pre_test_object_deps_done" = no; then
13075
         if test -z "$predep_objects_CXX"; then
13076
           predep_objects_CXX="$p"
13077
         else
13078
           predep_objects_CXX="$predep_objects_CXX $p"
13079
         fi
13080
       else
13081
         if test -z "$postdep_objects_CXX"; then
13082
           postdep_objects_CXX="$p"
13083
         else
13084
           postdep_objects_CXX="$postdep_objects_CXX $p"
13085
         fi
13086
       fi
13087
       ;;
13088
 
13089
    *) ;; # Ignore the rest.
13090
 
13091
    esac
13092
  done
13093
 
13094
  # Clean up.
13095
  rm -f a.out a.exe
13096
else
13097
  echo "libtool.m4: error: problem compiling CXX test program"
13098
fi
13099
 
13100
$RM -f confest.$objext
13101
 
13102
# PORTME: override above test on systems where it is broken
13103
case $host_os in
13104
interix[3-9]*)
13105
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13106
  # hack all around it, let's just trust "g++" to DTRT.
13107
  predep_objects_CXX=
13108
  postdep_objects_CXX=
13109
  postdeps_CXX=
13110
  ;;
13111
 
13112
linux*)
13113
  case `$CC -V 2>&1 | sed 5q` in
13114
  *Sun\ C*)
13115
    # Sun C++ 5.9
13116
 
13117
    # The more standards-conforming stlport4 library is
13118
    # incompatible with the Cstd library. Avoid specifying
13119
    # it if it's in CXXFLAGS. Ignore libCrun as
13120
    # -library=stlport4 depends on it.
13121
    case " $CXX $CXXFLAGS " in
13122
    *" -library=stlport4 "*)
13123
      solaris_use_stlport4=yes
13124
      ;;
13125
    esac
13126
 
13127
    if test "$solaris_use_stlport4" != yes; then
13128
      postdeps_CXX='-library=Cstd -library=Crun'
13129
    fi
13130
    ;;
13131
  esac
13132
  ;;
13133
 
13134
solaris*)
13135
  case $cc_basename in
13136
  CC*)
13137
    # The more standards-conforming stlport4 library is
13138
    # incompatible with the Cstd library. Avoid specifying
13139
    # it if it's in CXXFLAGS. Ignore libCrun as
13140
    # -library=stlport4 depends on it.
13141
    case " $CXX $CXXFLAGS " in
13142
    *" -library=stlport4 "*)
13143
      solaris_use_stlport4=yes
13144
      ;;
13145
    esac
13146
 
13147
    # Adding this requires a known-good setup of shared libraries for
13148
    # Sun compiler versions before 5.6, else PIC objects from an old
13149
    # archive will be linked into the output, leading to subtle bugs.
13150
    if test "$solaris_use_stlport4" != yes; then
13151
      postdeps_CXX='-library=Cstd -library=Crun'
13152
    fi
13153
    ;;
13154
  esac
13155
  ;;
13156
esac
13157
 
13158
 
13159
case " $postdeps_CXX " in
13160
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13161
esac
13162
 compiler_lib_search_dirs_CXX=
13163
if test -n "${compiler_lib_search_path_CXX}"; then
13164
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13165
fi
13166
 
13167
 
13168
 
13169
 
13170
 
13171
 
13172
 
13173
 
13174
 
13175
 
13176
 
13177
 
13178
 
13179
 
13180
 
13181
 
13182
 
13183
 
13184
 
13185
 
13186
 
13187
 
13188
 
13189
 
13190
 
13191
 
13192
 
13193
 
13194
 
13195
 
13196
 
13197
    lt_prog_compiler_wl_CXX=
13198
lt_prog_compiler_pic_CXX=
13199
lt_prog_compiler_static_CXX=
13200
 
13201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13202
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13203
 
13204
  # C++ specific cases for pic, static, wl, etc.
13205
  if test "$GXX" = yes; then
13206
    lt_prog_compiler_wl_CXX='-Wl,'
13207
    lt_prog_compiler_static_CXX='-static'
13208
 
13209
    case $host_os in
13210
    aix*)
13211
      # All AIX code is PIC.
13212
      if test "$host_cpu" = ia64; then
13213
        # AIX 5 now supports IA64 processor
13214
        lt_prog_compiler_static_CXX='-Bstatic'
13215
      fi
13216
      ;;
13217
 
13218
    amigaos*)
13219
      case $host_cpu in
13220
      powerpc)
13221
            # see comment about AmigaOS4 .so support
13222
            lt_prog_compiler_pic_CXX='-fPIC'
13223
        ;;
13224
      m68k)
13225
            # FIXME: we need at least 68020 code to build shared libraries, but
13226
            # adding the `-m68020' flag to GCC prevents building anything better,
13227
            # like `-m68040'.
13228
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13229
        ;;
13230
      esac
13231
      ;;
13232
 
13233
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13234
      # PIC is the default for these OSes.
13235
      ;;
13236
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13237
      # This hack is so that the source file can tell whether it is being
13238
      # built for inclusion in a dll (and should export symbols for example).
13239
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13240
      # (--disable-auto-import) libraries
13241
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13242
      ;;
13243
    darwin* | rhapsody*)
13244
      # PIC is the default on this platform
13245
      # Common symbols not allowed in MH_DYLIB files
13246
      lt_prog_compiler_pic_CXX='-fno-common'
13247
      ;;
13248
    *djgpp*)
13249
      # DJGPP does not support shared libraries at all
13250
      lt_prog_compiler_pic_CXX=
13251
      ;;
13252
    haiku*)
13253
      # PIC is the default for Haiku.
13254
      # The "-static" flag exists, but is broken.
13255
      lt_prog_compiler_static_CXX=
13256
      ;;
13257
    interix[3-9]*)
13258
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13259
      # Instead, we relocate shared libraries at runtime.
13260
      ;;
13261
    sysv4*MP*)
13262
      if test -d /usr/nec; then
13263
        lt_prog_compiler_pic_CXX=-Kconform_pic
13264
      fi
13265
      ;;
13266
    hpux*)
13267
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13268
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13269
      # sets the default TLS model and affects inlining.
13270
      case $host_cpu in
13271
      hppa*64*)
13272
        ;;
13273
      *)
13274
        lt_prog_compiler_pic_CXX='-fPIC'
13275
        ;;
13276
      esac
13277
      ;;
13278
    *qnx* | *nto*)
13279
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13280
      # it will coredump.
13281
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13282
      ;;
13283
    *)
13284
      lt_prog_compiler_pic_CXX='-fPIC'
13285
      ;;
13286
    esac
13287
  else
13288
    case $host_os in
13289
      aix[4-9]*)
13290
        # All AIX code is PIC.
13291
        if test "$host_cpu" = ia64; then
13292
          # AIX 5 now supports IA64 processor
13293
          lt_prog_compiler_static_CXX='-Bstatic'
13294
        else
13295
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13296
        fi
13297
        ;;
13298
      chorus*)
13299
        case $cc_basename in
13300
        cxch68*)
13301
          # Green Hills C++ Compiler
13302
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13303
          ;;
13304
        esac
13305
        ;;
13306
      dgux*)
13307
        case $cc_basename in
13308
          ec++*)
13309
            lt_prog_compiler_pic_CXX='-KPIC'
13310
            ;;
13311
          ghcx*)
13312
            # Green Hills C++ Compiler
13313
            lt_prog_compiler_pic_CXX='-pic'
13314
            ;;
13315
          *)
13316
            ;;
13317
        esac
13318
        ;;
13319
      freebsd* | dragonfly*)
13320
        # FreeBSD uses GNU C++
13321
        ;;
13322
      hpux9* | hpux10* | hpux11*)
13323
        case $cc_basename in
13324
          CC*)
13325
            lt_prog_compiler_wl_CXX='-Wl,'
13326
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13327
            if test "$host_cpu" != ia64; then
13328
              lt_prog_compiler_pic_CXX='+Z'
13329
            fi
13330
            ;;
13331
          aCC*)
13332
            lt_prog_compiler_wl_CXX='-Wl,'
13333
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13334
            case $host_cpu in
13335
            hppa*64*|ia64*)
13336
              # +Z the default
13337
              ;;
13338
            *)
13339
              lt_prog_compiler_pic_CXX='+Z'
13340
              ;;
13341
            esac
13342
            ;;
13343
          *)
13344
            ;;
13345
        esac
13346
        ;;
13347
      interix*)
13348
        # This is c89, which is MS Visual C++ (no shared libs)
13349
        # Anyone wants to do a port?
13350
        ;;
13351
      irix5* | irix6* | nonstopux*)
13352
        case $cc_basename in
13353
          CC*)
13354
            lt_prog_compiler_wl_CXX='-Wl,'
13355
            lt_prog_compiler_static_CXX='-non_shared'
13356
            # CC pic flag -KPIC is the default.
13357
            ;;
13358
          *)
13359
            ;;
13360
        esac
13361
        ;;
13362
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13363
        case $cc_basename in
13364
          KCC*)
13365
            # KAI C++ Compiler
13366
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13367
            lt_prog_compiler_pic_CXX='-fPIC'
13368
            ;;
13369
          ecpc* )
13370
            # old Intel C++ for x86_64 which still supported -KPIC.
13371
            lt_prog_compiler_wl_CXX='-Wl,'
13372
            lt_prog_compiler_pic_CXX='-KPIC'
13373
            lt_prog_compiler_static_CXX='-static'
13374
            ;;
13375
          icpc* )
13376
            # Intel C++, used to be incompatible with GCC.
13377
            # ICC 10 doesn't accept -KPIC any more.
13378
            lt_prog_compiler_wl_CXX='-Wl,'
13379
            lt_prog_compiler_pic_CXX='-fPIC'
13380
            lt_prog_compiler_static_CXX='-static'
13381
            ;;
13382
          pgCC* | pgcpp*)
13383
            # Portland Group C++ compiler
13384
            lt_prog_compiler_wl_CXX='-Wl,'
13385
            lt_prog_compiler_pic_CXX='-fpic'
13386
            lt_prog_compiler_static_CXX='-Bstatic'
13387
            ;;
13388
          cxx*)
13389
            # Compaq C++
13390
            # Make sure the PIC flag is empty.  It appears that all Alpha
13391
            # Linux and Compaq Tru64 Unix objects are PIC.
13392
            lt_prog_compiler_pic_CXX=
13393
            lt_prog_compiler_static_CXX='-non_shared'
13394
            ;;
13395
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13396
            # IBM XL 8.0, 9.0 on PPC and BlueGene
13397
            lt_prog_compiler_wl_CXX='-Wl,'
13398
            lt_prog_compiler_pic_CXX='-qpic'
13399
            lt_prog_compiler_static_CXX='-qstaticlink'
13400
            ;;
13401
          *)
13402
            case `$CC -V 2>&1 | sed 5q` in
13403
            *Sun\ C*)
13404
              # Sun C++ 5.9
13405
              lt_prog_compiler_pic_CXX='-KPIC'
13406
              lt_prog_compiler_static_CXX='-Bstatic'
13407
              lt_prog_compiler_wl_CXX='-Qoption ld '
13408
              ;;
13409
            esac
13410
            ;;
13411
        esac
13412
        ;;
13413
      lynxos*)
13414
        ;;
13415
      m88k*)
13416
        ;;
13417
      mvs*)
13418
        case $cc_basename in
13419
          cxx*)
13420
            lt_prog_compiler_pic_CXX='-W c,exportall'
13421
            ;;
13422
          *)
13423
            ;;
13424
        esac
13425
        ;;
13426
      netbsd*)
13427
        ;;
13428
      *qnx* | *nto*)
13429
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13430
        # it will coredump.
13431
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13432
        ;;
13433
      osf3* | osf4* | osf5*)
13434
        case $cc_basename in
13435
          KCC*)
13436
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13437
            ;;
13438
          RCC*)
13439
            # Rational C++ 2.4.1
13440
            lt_prog_compiler_pic_CXX='-pic'
13441
            ;;
13442
          cxx*)
13443
            # Digital/Compaq C++
13444
            lt_prog_compiler_wl_CXX='-Wl,'
13445
            # Make sure the PIC flag is empty.  It appears that all Alpha
13446
            # Linux and Compaq Tru64 Unix objects are PIC.
13447
            lt_prog_compiler_pic_CXX=
13448
            lt_prog_compiler_static_CXX='-non_shared'
13449
            ;;
13450
          *)
13451
            ;;
13452
        esac
13453
        ;;
13454
      psos*)
13455
        ;;
13456
      solaris*)
13457
        case $cc_basename in
13458
          CC*)
13459
            # Sun C++ 4.2, 5.x and Centerline C++
13460
            lt_prog_compiler_pic_CXX='-KPIC'
13461
            lt_prog_compiler_static_CXX='-Bstatic'
13462
            lt_prog_compiler_wl_CXX='-Qoption ld '
13463
            ;;
13464
          gcx*)
13465
            # Green Hills C++ Compiler
13466
            lt_prog_compiler_pic_CXX='-PIC'
13467
            ;;
13468
          *)
13469
            ;;
13470
        esac
13471
        ;;
13472
      sunos4*)
13473
        case $cc_basename in
13474
          CC*)
13475
            # Sun C++ 4.x
13476
            lt_prog_compiler_pic_CXX='-pic'
13477
            lt_prog_compiler_static_CXX='-Bstatic'
13478
            ;;
13479
          lcc*)
13480
            # Lucid
13481
            lt_prog_compiler_pic_CXX='-pic'
13482
            ;;
13483
          *)
13484
            ;;
13485
        esac
13486
        ;;
13487
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13488
        case $cc_basename in
13489
          CC*)
13490
            lt_prog_compiler_wl_CXX='-Wl,'
13491
            lt_prog_compiler_pic_CXX='-KPIC'
13492
            lt_prog_compiler_static_CXX='-Bstatic'
13493
            ;;
13494
        esac
13495
        ;;
13496
      tandem*)
13497
        case $cc_basename in
13498
          NCC*)
13499
            # NonStop-UX NCC 3.20
13500
            lt_prog_compiler_pic_CXX='-KPIC'
13501
            ;;
13502
          *)
13503
            ;;
13504
        esac
13505
        ;;
13506
      vxworks*)
13507
        ;;
13508
      *)
13509
        lt_prog_compiler_can_build_shared_CXX=no
13510
        ;;
13511
    esac
13512
  fi
13513
 
13514
case $host_os in
13515
  # For platforms which do not support PIC, -DPIC is meaningless:
13516
  *djgpp*)
13517
    lt_prog_compiler_pic_CXX=
13518
    ;;
13519
  *)
13520
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13521
    ;;
13522
esac
13523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13524
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13525
 
13526
 
13527
 
13528
#
13529
# Check to make sure the PIC flag actually works.
13530
#
13531
if test -n "$lt_prog_compiler_pic_CXX"; then
13532
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13533
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13534
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13535
  $as_echo_n "(cached) " >&6
13536
else
13537
  lt_cv_prog_compiler_pic_works_CXX=no
13538
   ac_outfile=conftest.$ac_objext
13539
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13540
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13541
   # Insert the option either (1) after the last *FLAGS variable, or
13542
   # (2) before a word containing "conftest.", or (3) at the end.
13543
   # Note that $ac_compile itself does not contain backslashes and begins
13544
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13545
   # The option is referenced via a variable to avoid confusing sed.
13546
   lt_compile=`echo "$ac_compile" | $SED \
13547
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13548
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13549
   -e 's:$: $lt_compiler_flag:'`
13550
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13551
   (eval "$lt_compile" 2>conftest.err)
13552
   ac_status=$?
13553
   cat conftest.err >&5
13554
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555
   if (exit $ac_status) && test -s "$ac_outfile"; then
13556
     # The compiler can only warn and ignore the option if not recognized
13557
     # So say no if there are warnings other than the usual output.
13558
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13559
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13560
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13561
       lt_cv_prog_compiler_pic_works_CXX=yes
13562
     fi
13563
   fi
13564
   $RM conftest*
13565
 
13566
fi
13567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13568
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13569
 
13570
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13571
    case $lt_prog_compiler_pic_CXX in
13572
     "" | " "*) ;;
13573
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13574
     esac
13575
else
13576
    lt_prog_compiler_pic_CXX=
13577
     lt_prog_compiler_can_build_shared_CXX=no
13578
fi
13579
 
13580
fi
13581
 
13582
 
13583
 
13584
#
13585
# Check to make sure the static flag actually works.
13586
#
13587
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13589
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13590
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13591
  $as_echo_n "(cached) " >&6
13592
else
13593
  lt_cv_prog_compiler_static_works_CXX=no
13594
   save_LDFLAGS="$LDFLAGS"
13595
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13596
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13597
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13598
     # The linker can only warn and ignore the option if not recognized
13599
     # So say no if there are warnings
13600
     if test -s conftest.err; then
13601
       # Append any errors to the config.log.
13602
       cat conftest.err 1>&5
13603
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13604
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13605
       if diff conftest.exp conftest.er2 >/dev/null; then
13606
         lt_cv_prog_compiler_static_works_CXX=yes
13607
       fi
13608
     else
13609
       lt_cv_prog_compiler_static_works_CXX=yes
13610
     fi
13611
   fi
13612
   $RM -r conftest*
13613
   LDFLAGS="$save_LDFLAGS"
13614
 
13615
fi
13616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13617
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13618
 
13619
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13620
    :
13621
else
13622
    lt_prog_compiler_static_CXX=
13623
fi
13624
 
13625
 
13626
 
13627
 
13628
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13629
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13630
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13631
  $as_echo_n "(cached) " >&6
13632
else
13633
  lt_cv_prog_compiler_c_o_CXX=no
13634
   $RM -r conftest 2>/dev/null
13635
   mkdir conftest
13636
   cd conftest
13637
   mkdir out
13638
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13639
 
13640
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13641
   # Insert the option either (1) after the last *FLAGS variable, or
13642
   # (2) before a word containing "conftest.", or (3) at the end.
13643
   # Note that $ac_compile itself does not contain backslashes and begins
13644
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13645
   lt_compile=`echo "$ac_compile" | $SED \
13646
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13647
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13648
   -e 's:$: $lt_compiler_flag:'`
13649
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13650
   (eval "$lt_compile" 2>out/conftest.err)
13651
   ac_status=$?
13652
   cat out/conftest.err >&5
13653
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13655
   then
13656
     # The compiler can only warn and ignore the option if not recognized
13657
     # So say no if there are warnings
13658
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13659
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13660
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13661
       lt_cv_prog_compiler_c_o_CXX=yes
13662
     fi
13663
   fi
13664
   chmod u+w . 2>&5
13665
   $RM conftest*
13666
   # SGI C++ compiler will create directory out/ii_files/ for
13667
   # template instantiation
13668
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13669
   $RM out/* && rmdir out
13670
   cd ..
13671
   $RM -r conftest
13672
   $RM conftest*
13673
 
13674
fi
13675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13676
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13677
 
13678
 
13679
 
13680
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13681
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13682
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13683
  $as_echo_n "(cached) " >&6
13684
else
13685
  lt_cv_prog_compiler_c_o_CXX=no
13686
   $RM -r conftest 2>/dev/null
13687
   mkdir conftest
13688
   cd conftest
13689
   mkdir out
13690
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13691
 
13692
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13693
   # Insert the option either (1) after the last *FLAGS variable, or
13694
   # (2) before a word containing "conftest.", or (3) at the end.
13695
   # Note that $ac_compile itself does not contain backslashes and begins
13696
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13697
   lt_compile=`echo "$ac_compile" | $SED \
13698
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13699
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13700
   -e 's:$: $lt_compiler_flag:'`
13701
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13702
   (eval "$lt_compile" 2>out/conftest.err)
13703
   ac_status=$?
13704
   cat out/conftest.err >&5
13705
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13707
   then
13708
     # The compiler can only warn and ignore the option if not recognized
13709
     # So say no if there are warnings
13710
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13711
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13712
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13713
       lt_cv_prog_compiler_c_o_CXX=yes
13714
     fi
13715
   fi
13716
   chmod u+w . 2>&5
13717
   $RM conftest*
13718
   # SGI C++ compiler will create directory out/ii_files/ for
13719
   # template instantiation
13720
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13721
   $RM out/* && rmdir out
13722
   cd ..
13723
   $RM -r conftest
13724
   $RM conftest*
13725
 
13726
fi
13727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13728
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13729
 
13730
 
13731
 
13732
 
13733
hard_links="nottested"
13734
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13735
  # do not overwrite the value of need_locks provided by the user
13736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13737
$as_echo_n "checking if we can lock with hard links... " >&6; }
13738
  hard_links=yes
13739
  $RM conftest*
13740
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13741
  touch conftest.a
13742
  ln conftest.a conftest.b 2>&5 || hard_links=no
13743
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13745
$as_echo "$hard_links" >&6; }
13746
  if test "$hard_links" = no; then
13747
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13748
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13749
    need_locks=warn
13750
  fi
13751
else
13752
  need_locks=no
13753
fi
13754
 
13755
 
13756
 
13757
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13758
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13759
 
13760
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13761
  case $host_os in
13762
  aix[4-9]*)
13763
    # If we're using GNU nm, then we don't want the "-C" option.
13764
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13765
    # Also, AIX nm treats weak defined symbols like other global defined
13766
    # symbols, whereas GNU nm marks them as "W".
13767
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13768
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13769
    else
13770
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13771
    fi
13772
    ;;
13773
  pw32*)
13774
    export_symbols_cmds_CXX="$ltdll_cmds"
13775
  ;;
13776
  cygwin* | mingw* | cegcc*)
13777
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13778
  ;;
13779
  *)
13780
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13781
  ;;
13782
  esac
13783
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13784
 
13785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13786
$as_echo "$ld_shlibs_CXX" >&6; }
13787
test "$ld_shlibs_CXX" = no && can_build_shared=no
13788
 
13789
with_gnu_ld_CXX=$with_gnu_ld
13790
 
13791
 
13792
 
13793
 
13794
 
13795
 
13796
#
13797
# Do we need to explicitly link libc?
13798
#
13799
case "x$archive_cmds_need_lc_CXX" in
13800
x|xyes)
13801
  # Assume -lc should be added
13802
  archive_cmds_need_lc_CXX=yes
13803
 
13804
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13805
    case $archive_cmds_CXX in
13806
    *'~'*)
13807
      # FIXME: we may have to deal with multi-command sequences.
13808
      ;;
13809
    '$CC '*)
13810
      # Test whether the compiler implicitly links with -lc since on some
13811
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13812
      # to ld, don't add -lc before -lgcc.
13813
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13814
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13815
if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13816
  $as_echo_n "(cached) " >&6
13817
else
13818
  $RM conftest*
13819
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13820
 
13821
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822
  (eval $ac_compile) 2>&5
13823
  ac_status=$?
13824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825
  test $ac_status = 0; } 2>conftest.err; then
13826
          soname=conftest
13827
          lib=conftest
13828
          libobjs=conftest.$ac_objext
13829
          deplibs=
13830
          wl=$lt_prog_compiler_wl_CXX
13831
          pic_flag=$lt_prog_compiler_pic_CXX
13832
          compiler_flags=-v
13833
          linker_flags=-v
13834
          verstring=
13835
          output_objdir=.
13836
          libname=conftest
13837
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13838
          allow_undefined_flag_CXX=
13839
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13840
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13841
  ac_status=$?
13842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13843
  test $ac_status = 0; }
13844
          then
13845
            lt_cv_archive_cmds_need_lc_CXX=no
13846
          else
13847
            lt_cv_archive_cmds_need_lc_CXX=yes
13848
          fi
13849
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13850
        else
13851
          cat conftest.err 1>&5
13852
        fi
13853
        $RM conftest*
13854
 
13855
fi
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13857
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13858
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13859
      ;;
13860
    esac
13861
  fi
13862
  ;;
13863
esac
13864
 
13865
 
13866
 
13867
 
13868
 
13869
 
13870
 
13871
 
13872
 
13873
 
13874
 
13875
 
13876
 
13877
 
13878
 
13879
 
13880
 
13881
 
13882
 
13883
 
13884
 
13885
 
13886
 
13887
 
13888
 
13889
 
13890
 
13891
 
13892
 
13893
 
13894
 
13895
 
13896
 
13897
 
13898
 
13899
 
13900
 
13901
 
13902
 
13903
 
13904
 
13905
 
13906
 
13907
 
13908
 
13909
 
13910
 
13911
 
13912
 
13913
 
13914
 
13915
 
13916
 
13917
 
13918
 
13919
 
13920
 
13921
 
13922
 
13923
 
13924
 
13925
 
13926
 
13927
 
13928
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13929
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13930
 
13931
library_names_spec=
13932
libname_spec='lib$name'
13933
soname_spec=
13934
shrext_cmds=".so"
13935
postinstall_cmds=
13936
postuninstall_cmds=
13937
finish_cmds=
13938
finish_eval=
13939
shlibpath_var=
13940
shlibpath_overrides_runpath=unknown
13941
version_type=none
13942
dynamic_linker="$host_os ld.so"
13943
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13944
need_lib_prefix=unknown
13945
hardcode_into_libs=no
13946
 
13947
# when you set need_version to no, make sure it does not cause -set_version
13948
# flags to be left without arguments
13949
need_version=unknown
13950
 
13951
case $host_os in
13952
aix3*)
13953
  version_type=linux
13954
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13955
  shlibpath_var=LIBPATH
13956
 
13957
  # AIX 3 has no versioning support, so we append a major version to the name.
13958
  soname_spec='${libname}${release}${shared_ext}$major'
13959
  ;;
13960
 
13961
aix[4-9]*)
13962
  version_type=linux
13963
  need_lib_prefix=no
13964
  need_version=no
13965
  hardcode_into_libs=yes
13966
  if test "$host_cpu" = ia64; then
13967
    # AIX 5 supports IA64
13968
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13969
    shlibpath_var=LD_LIBRARY_PATH
13970
  else
13971
    # With GCC up to 2.95.x, collect2 would create an import file
13972
    # for dependence libraries.  The import file would start with
13973
    # the line `#! .'.  This would cause the generated library to
13974
    # depend on `.', always an invalid library.  This was fixed in
13975
    # development snapshots of GCC prior to 3.0.
13976
    case $host_os in
13977
      aix4 | aix4.[01] | aix4.[01].*)
13978
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13979
           echo ' yes '
13980
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13981
        :
13982
      else
13983
        can_build_shared=no
13984
      fi
13985
      ;;
13986
    esac
13987
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13988
    # soname into executable. Probably we can add versioning support to
13989
    # collect2, so additional links can be useful in future.
13990
    if test "$aix_use_runtimelinking" = yes; then
13991
      # If using run time linking (on AIX 4.2 or later) use lib.so
13992
      # instead of lib.a to let people know that these are not
13993
      # typical AIX shared libraries.
13994
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13995
    else
13996
      # We preserve .a as extension for shared libraries through AIX4.2
13997
      # and later when we are not doing run time linking.
13998
      library_names_spec='${libname}${release}.a $libname.a'
13999
      soname_spec='${libname}${release}${shared_ext}$major'
14000
    fi
14001
    shlibpath_var=LIBPATH
14002
  fi
14003
  ;;
14004
 
14005
amigaos*)
14006
  case $host_cpu in
14007
  powerpc)
14008
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14009
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14010
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011
    ;;
14012
  m68k)
14013
    library_names_spec='$libname.ixlibrary $libname.a'
14014
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14015
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14016
    ;;
14017
  esac
14018
  ;;
14019
 
14020
beos*)
14021
  library_names_spec='${libname}${shared_ext}'
14022
  dynamic_linker="$host_os ld.so"
14023
  shlibpath_var=LIBRARY_PATH
14024
  ;;
14025
 
14026
bsdi[45]*)
14027
  version_type=linux
14028
  need_version=no
14029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030
  soname_spec='${libname}${release}${shared_ext}$major'
14031
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14032
  shlibpath_var=LD_LIBRARY_PATH
14033
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14034
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14035
  # the default ld.so.conf also contains /usr/contrib/lib and
14036
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14037
  # libtool to hard-code these into programs
14038
  ;;
14039
 
14040
cygwin* | mingw* | pw32* | cegcc*)
14041
  version_type=windows
14042
  shrext_cmds=".dll"
14043
  need_version=no
14044
  need_lib_prefix=no
14045
 
14046
  case $GCC,$host_os in
14047
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14048
    library_names_spec='$libname.dll.a'
14049
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14050
    postinstall_cmds='base_file=`basename \${file}`~
14051
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14052
      dldir=$destdir/`dirname \$dlpath`~
14053
      test -d \$dldir || mkdir -p \$dldir~
14054
      $install_prog $dir/$dlname \$dldir/$dlname~
14055
      chmod a+x \$dldir/$dlname~
14056
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14057
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14058
      fi'
14059
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14060
      dlpath=$dir/\$dldll~
14061
       $RM \$dlpath'
14062
    shlibpath_overrides_runpath=yes
14063
 
14064
    case $host_os in
14065
    cygwin*)
14066
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14067
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14068
 
14069
      ;;
14070
    mingw* | cegcc*)
14071
      # MinGW DLLs use traditional 'lib' prefix
14072
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14073
      ;;
14074
    pw32*)
14075
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14076
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14077
      ;;
14078
    esac
14079
    ;;
14080
 
14081
  *)
14082
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14083
    ;;
14084
  esac
14085
  dynamic_linker='Win32 ld.exe'
14086
  # FIXME: first we should search . and the directory the executable is in
14087
  shlibpath_var=PATH
14088
  ;;
14089
 
14090
darwin* | rhapsody*)
14091
  dynamic_linker="$host_os dyld"
14092
  version_type=darwin
14093
  need_lib_prefix=no
14094
  need_version=no
14095
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14096
  soname_spec='${libname}${release}${major}$shared_ext'
14097
  shlibpath_overrides_runpath=yes
14098
  shlibpath_var=DYLD_LIBRARY_PATH
14099
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14100
 
14101
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14102
  ;;
14103
 
14104
dgux*)
14105
  version_type=linux
14106
  need_lib_prefix=no
14107
  need_version=no
14108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14109
  soname_spec='${libname}${release}${shared_ext}$major'
14110
  shlibpath_var=LD_LIBRARY_PATH
14111
  ;;
14112
 
14113
freebsd* | dragonfly*)
14114
  # DragonFly does not have aout.  When/if they implement a new
14115
  # versioning mechanism, adjust this.
14116
  if test -x /usr/bin/objformat; then
14117
    objformat=`/usr/bin/objformat`
14118
  else
14119
    case $host_os in
14120
    freebsd[23].*) objformat=aout ;;
14121
    *) objformat=elf ;;
14122
    esac
14123
  fi
14124
  version_type=freebsd-$objformat
14125
  case $version_type in
14126
    freebsd-elf*)
14127
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14128
      need_version=no
14129
      need_lib_prefix=no
14130
      ;;
14131
    freebsd-*)
14132
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14133
      need_version=yes
14134
      ;;
14135
  esac
14136
  shlibpath_var=LD_LIBRARY_PATH
14137
  case $host_os in
14138
  freebsd2.*)
14139
    shlibpath_overrides_runpath=yes
14140
    ;;
14141
  freebsd3.[01]* | freebsdelf3.[01]*)
14142
    shlibpath_overrides_runpath=yes
14143
    hardcode_into_libs=yes
14144
    ;;
14145
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14146
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14147
    shlibpath_overrides_runpath=no
14148
    hardcode_into_libs=yes
14149
    ;;
14150
  *) # from 4.6 on, and DragonFly
14151
    shlibpath_overrides_runpath=yes
14152
    hardcode_into_libs=yes
14153
    ;;
14154
  esac
14155
  ;;
14156
 
14157
gnu*)
14158
  version_type=linux
14159
  need_lib_prefix=no
14160
  need_version=no
14161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14162
  soname_spec='${libname}${release}${shared_ext}$major'
14163
  shlibpath_var=LD_LIBRARY_PATH
14164
  hardcode_into_libs=yes
14165
  ;;
14166
 
14167
haiku*)
14168
  version_type=linux
14169
  need_lib_prefix=no
14170
  need_version=no
14171
  dynamic_linker="$host_os runtime_loader"
14172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14173
  soname_spec='${libname}${release}${shared_ext}$major'
14174
  shlibpath_var=LIBRARY_PATH
14175
  shlibpath_overrides_runpath=yes
14176
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14177
  hardcode_into_libs=yes
14178
  ;;
14179
 
14180
hpux9* | hpux10* | hpux11*)
14181
  # Give a soname corresponding to the major version so that dld.sl refuses to
14182
  # link against other versions.
14183
  version_type=sunos
14184
  need_lib_prefix=no
14185
  need_version=no
14186
  case $host_cpu in
14187
  ia64*)
14188
    shrext_cmds='.so'
14189
    hardcode_into_libs=yes
14190
    dynamic_linker="$host_os dld.so"
14191
    shlibpath_var=LD_LIBRARY_PATH
14192
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14193
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194
    soname_spec='${libname}${release}${shared_ext}$major'
14195
    if test "X$HPUX_IA64_MODE" = X32; then
14196
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14197
    else
14198
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14199
    fi
14200
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14201
    ;;
14202
  hppa*64*)
14203
    shrext_cmds='.sl'
14204
    hardcode_into_libs=yes
14205
    dynamic_linker="$host_os dld.sl"
14206
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14207
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14208
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209
    soname_spec='${libname}${release}${shared_ext}$major'
14210
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14211
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14212
    ;;
14213
  *)
14214
    shrext_cmds='.sl'
14215
    dynamic_linker="$host_os dld.sl"
14216
    shlibpath_var=SHLIB_PATH
14217
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14218
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219
    soname_spec='${libname}${release}${shared_ext}$major'
14220
    ;;
14221
  esac
14222
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14223
  postinstall_cmds='chmod 555 $lib'
14224
  # or fails outright, so override atomically:
14225
  install_override_mode=555
14226
  ;;
14227
 
14228
interix[3-9]*)
14229
  version_type=linux
14230
  need_lib_prefix=no
14231
  need_version=no
14232
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14233
  soname_spec='${libname}${release}${shared_ext}$major'
14234
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14235
  shlibpath_var=LD_LIBRARY_PATH
14236
  shlibpath_overrides_runpath=no
14237
  hardcode_into_libs=yes
14238
  ;;
14239
 
14240
irix5* | irix6* | nonstopux*)
14241
  case $host_os in
14242
    nonstopux*) version_type=nonstopux ;;
14243
    *)
14244
        if test "$lt_cv_prog_gnu_ld" = yes; then
14245
                version_type=linux
14246
        else
14247
                version_type=irix
14248
        fi ;;
14249
  esac
14250
  need_lib_prefix=no
14251
  need_version=no
14252
  soname_spec='${libname}${release}${shared_ext}$major'
14253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14254
  case $host_os in
14255
  irix5* | nonstopux*)
14256
    libsuff= shlibsuff=
14257
    ;;
14258
  *)
14259
    case $LD in # libtool.m4 will add one of these switches to LD
14260
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14261
      libsuff= shlibsuff= libmagic=32-bit;;
14262
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14263
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14264
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14265
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14266
    *) libsuff= shlibsuff= libmagic=never-match;;
14267
    esac
14268
    ;;
14269
  esac
14270
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14271
  shlibpath_overrides_runpath=no
14272
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14273
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14274
  hardcode_into_libs=yes
14275
  ;;
14276
 
14277
# No shared lib support for Linux oldld, aout, or coff.
14278
linux*oldld* | linux*aout* | linux*coff*)
14279
  dynamic_linker=no
14280
  ;;
14281
 
14282
# This must be Linux ELF.
14283
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14284
  version_type=linux
14285
  need_lib_prefix=no
14286
  need_version=no
14287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288
  soname_spec='${libname}${release}${shared_ext}$major'
14289
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14290
  shlibpath_var=LD_LIBRARY_PATH
14291
  shlibpath_overrides_runpath=no
14292
 
14293
  # Some binutils ld are patched to set DT_RUNPATH
14294
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14295
  $as_echo_n "(cached) " >&6
14296
else
14297
  lt_cv_shlibpath_overrides_runpath=no
14298
    save_LDFLAGS=$LDFLAGS
14299
    save_libdir=$libdir
14300
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14301
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14302
    if test x$gcc_no_link = xyes; then
14303
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14304
fi
14305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306
/* end confdefs.h.  */
14307
 
14308
int
14309
main ()
14310
{
14311
 
14312
  ;
14313
  return 0;
14314
}
14315
_ACEOF
14316
if ac_fn_cxx_try_link "$LINENO"; then :
14317
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14318
  lt_cv_shlibpath_overrides_runpath=yes
14319
fi
14320
fi
14321
rm -f core conftest.err conftest.$ac_objext \
14322
    conftest$ac_exeext conftest.$ac_ext
14323
    LDFLAGS=$save_LDFLAGS
14324
    libdir=$save_libdir
14325
 
14326
fi
14327
 
14328
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14329
 
14330
  # This implies no fast_install, which is unacceptable.
14331
  # Some rework will be needed to allow for fast_install
14332
  # before this can be enabled.
14333
  hardcode_into_libs=yes
14334
 
14335
  # Append ld.so.conf contents to the search path
14336
  if test -f /etc/ld.so.conf; then
14337
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14338
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14339
  fi
14340
 
14341
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14342
  # powerpc, because MkLinux only supported shared libraries with the
14343
  # GNU dynamic linker.  Since this was broken with cross compilers,
14344
  # most powerpc-linux boxes support dynamic linking these days and
14345
  # people can always --disable-shared, the test was removed, and we
14346
  # assume the GNU/Linux dynamic linker is in use.
14347
  dynamic_linker='GNU/Linux ld.so'
14348
  ;;
14349
 
14350
netbsd*)
14351
  version_type=sunos
14352
  need_lib_prefix=no
14353
  need_version=no
14354
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14355
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14356
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14357
    dynamic_linker='NetBSD (a.out) ld.so'
14358
  else
14359
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14360
    soname_spec='${libname}${release}${shared_ext}$major'
14361
    dynamic_linker='NetBSD ld.elf_so'
14362
  fi
14363
  shlibpath_var=LD_LIBRARY_PATH
14364
  shlibpath_overrides_runpath=yes
14365
  hardcode_into_libs=yes
14366
  ;;
14367
 
14368
newsos6)
14369
  version_type=linux
14370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371
  shlibpath_var=LD_LIBRARY_PATH
14372
  shlibpath_overrides_runpath=yes
14373
  ;;
14374
 
14375
*nto* | *qnx*)
14376
  version_type=qnx
14377
  need_lib_prefix=no
14378
  need_version=no
14379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380
  soname_spec='${libname}${release}${shared_ext}$major'
14381
  shlibpath_var=LD_LIBRARY_PATH
14382
  shlibpath_overrides_runpath=no
14383
  hardcode_into_libs=yes
14384
  dynamic_linker='ldqnx.so'
14385
  ;;
14386
 
14387
openbsd*)
14388
  version_type=sunos
14389
  sys_lib_dlsearch_path_spec="/usr/lib"
14390
  need_lib_prefix=no
14391
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14392
  case $host_os in
14393
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14394
    *)                          need_version=no  ;;
14395
  esac
14396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14397
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14398
  shlibpath_var=LD_LIBRARY_PATH
14399
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14400
    case $host_os in
14401
      openbsd2.[89] | openbsd2.[89].*)
14402
        shlibpath_overrides_runpath=no
14403
        ;;
14404
      *)
14405
        shlibpath_overrides_runpath=yes
14406
        ;;
14407
      esac
14408
  else
14409
    shlibpath_overrides_runpath=yes
14410
  fi
14411
  ;;
14412
 
14413
os2*)
14414
  libname_spec='$name'
14415
  shrext_cmds=".dll"
14416
  need_lib_prefix=no
14417
  library_names_spec='$libname${shared_ext} $libname.a'
14418
  dynamic_linker='OS/2 ld.exe'
14419
  shlibpath_var=LIBPATH
14420
  ;;
14421
 
14422
osf3* | osf4* | osf5*)
14423
  version_type=osf
14424
  need_lib_prefix=no
14425
  need_version=no
14426
  soname_spec='${libname}${release}${shared_ext}$major'
14427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14428
  shlibpath_var=LD_LIBRARY_PATH
14429
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14430
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14431
  ;;
14432
 
14433
rdos*)
14434
  dynamic_linker=no
14435
  ;;
14436
 
14437
solaris*)
14438
  version_type=linux
14439
  need_lib_prefix=no
14440
  need_version=no
14441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442
  soname_spec='${libname}${release}${shared_ext}$major'
14443
  shlibpath_var=LD_LIBRARY_PATH
14444
  shlibpath_overrides_runpath=yes
14445
  hardcode_into_libs=yes
14446
  # ldd complains unless libraries are executable
14447
  postinstall_cmds='chmod +x $lib'
14448
  ;;
14449
 
14450
sunos4*)
14451
  version_type=sunos
14452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14453
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14454
  shlibpath_var=LD_LIBRARY_PATH
14455
  shlibpath_overrides_runpath=yes
14456
  if test "$with_gnu_ld" = yes; then
14457
    need_lib_prefix=no
14458
  fi
14459
  need_version=yes
14460
  ;;
14461
 
14462
sysv4 | sysv4.3*)
14463
  version_type=linux
14464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465
  soname_spec='${libname}${release}${shared_ext}$major'
14466
  shlibpath_var=LD_LIBRARY_PATH
14467
  case $host_vendor in
14468
    sni)
14469
      shlibpath_overrides_runpath=no
14470
      need_lib_prefix=no
14471
      runpath_var=LD_RUN_PATH
14472
      ;;
14473
    siemens)
14474
      need_lib_prefix=no
14475
      ;;
14476
    motorola)
14477
      need_lib_prefix=no
14478
      need_version=no
14479
      shlibpath_overrides_runpath=no
14480
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14481
      ;;
14482
  esac
14483
  ;;
14484
 
14485
sysv4*MP*)
14486
  if test -d /usr/nec ;then
14487
    version_type=linux
14488
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14489
    soname_spec='$libname${shared_ext}.$major'
14490
    shlibpath_var=LD_LIBRARY_PATH
14491
  fi
14492
  ;;
14493
 
14494
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14495
  version_type=freebsd-elf
14496
  need_lib_prefix=no
14497
  need_version=no
14498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14499
  soname_spec='${libname}${release}${shared_ext}$major'
14500
  shlibpath_var=LD_LIBRARY_PATH
14501
  shlibpath_overrides_runpath=yes
14502
  hardcode_into_libs=yes
14503
  if test "$with_gnu_ld" = yes; then
14504
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14505
  else
14506
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14507
    case $host_os in
14508
      sco3.2v5*)
14509
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14510
        ;;
14511
    esac
14512
  fi
14513
  sys_lib_dlsearch_path_spec='/usr/lib'
14514
  ;;
14515
 
14516
tpf*)
14517
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14518
  version_type=linux
14519
  need_lib_prefix=no
14520
  need_version=no
14521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522
  shlibpath_var=LD_LIBRARY_PATH
14523
  shlibpath_overrides_runpath=no
14524
  hardcode_into_libs=yes
14525
  ;;
14526
 
14527
uts4*)
14528
  version_type=linux
14529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530
  soname_spec='${libname}${release}${shared_ext}$major'
14531
  shlibpath_var=LD_LIBRARY_PATH
14532
  ;;
14533
 
14534
*)
14535
  dynamic_linker=no
14536
  ;;
14537
esac
14538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14539
$as_echo "$dynamic_linker" >&6; }
14540
test "$dynamic_linker" = no && can_build_shared=no
14541
 
14542
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14543
if test "$GCC" = yes; then
14544
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14545
fi
14546
 
14547
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14548
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14549
fi
14550
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14551
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14552
fi
14553
 
14554
 
14555
 
14556
 
14557
 
14558
 
14559
 
14560
 
14561
 
14562
 
14563
 
14564
 
14565
 
14566
 
14567
 
14568
 
14569
 
14570
 
14571
 
14572
 
14573
 
14574
 
14575
 
14576
 
14577
 
14578
 
14579
 
14580
 
14581
 
14582
 
14583
 
14584
 
14585
 
14586
 
14587
 
14588
 
14589
 
14590
 
14591
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14592
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14593
hardcode_action_CXX=
14594
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14595
   test -n "$runpath_var_CXX" ||
14596
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14597
 
14598
  # We can hardcode non-existent directories.
14599
  if test "$hardcode_direct_CXX" != no &&
14600
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14601
     # have to relink, otherwise we might link with an installed library
14602
     # when we should be linking with a yet-to-be-installed one
14603
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14604
     test "$hardcode_minus_L_CXX" != no; then
14605
    # Linking always hardcodes the temporary library directory.
14606
    hardcode_action_CXX=relink
14607
  else
14608
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14609
    hardcode_action_CXX=immediate
14610
  fi
14611
else
14612
  # We cannot hardcode anything, or else we can only hardcode existing
14613
  # directories.
14614
  hardcode_action_CXX=unsupported
14615
fi
14616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14617
$as_echo "$hardcode_action_CXX" >&6; }
14618
 
14619
if test "$hardcode_action_CXX" = relink ||
14620
   test "$inherit_rpath_CXX" = yes; then
14621
  # Fast installation is not supported
14622
  enable_fast_install=no
14623
elif test "$shlibpath_overrides_runpath" = yes ||
14624
     test "$enable_shared" = no; then
14625
  # Fast installation is not necessary
14626
  enable_fast_install=needless
14627
fi
14628
 
14629
 
14630
 
14631
 
14632
 
14633
 
14634
 
14635
  fi # test -n "$compiler"
14636
 
14637
  CC=$lt_save_CC
14638
  LDCXX=$LD
14639
  LD=$lt_save_LD
14640
  GCC=$lt_save_GCC
14641
  with_gnu_ld=$lt_save_with_gnu_ld
14642
  lt_cv_path_LDCXX=$lt_cv_path_LD
14643
  lt_cv_path_LD=$lt_save_path_LD
14644
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14645
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14646
fi # test "$_lt_caught_CXX_error" != yes
14647
 
14648
ac_ext=c
14649
ac_cpp='$CPP $CPPFLAGS'
14650
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14651
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14652
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14653
 
14654
 
14655
 
14656
 
14657
 
14658
 
14659
 
14660
 
14661
 
14662
 
14663
 
14664
 
14665
 
14666
        ac_config_commands="$ac_config_commands libtool"
14667
 
14668
 
14669
 
14670
 
14671
# Only expand once:
14672
 
14673
 
14674
 
14675
 
14676
# Check whether --with-target-subdir was given.
14677
if test "${with_target_subdir+set}" = set; then :
14678
  withval=$with_target_subdir;
14679
fi
14680
 
14681
 
14682
# Check whether --with-cross-host was given.
14683
if test "${with_cross_host+set}" = set; then :
14684
  withval=$with_cross_host;
14685
fi
14686
 
14687
 
14688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14689
$as_echo_n "checking for thread model used by GCC... " >&6; }
14690
THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14691
if test -z "$THREADS"; then
14692
   THREADS=no
14693
fi
14694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
14695
$as_echo "$THREADS" >&6; }
14696
 
14697
# Check whether --enable-parallel-mark was given.
14698
if test "${enable_parallel_mark+set}" = set; then :
14699
  enableval=$enable_parallel_mark; case "$THREADS" in
14700
      no | none | single)
14701
        as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
14702
        ;;
14703
    esac
14704
 
14705
fi
14706
 
14707
 
14708
AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14709
THREADCFLAGS=
14710
THREADLIBS=
14711
case "$THREADS" in
14712
 no | none | single)
14713
    THREADS=none
14714
    ;;
14715
 posix | pthreads)
14716
    THREADS=posix
14717
    THREADLIBS=-lpthread
14718
    case "$host" in
14719
     x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14720
 
14721
$as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14722
 
14723
 
14724
$as_echo "#define _REENTRANT 1" >>confdefs.h
14725
 
14726
        if test "${enable_parallel_mark}" = yes; then
14727
 
14728
$as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14729
 
14730
        fi
14731
 
14732
$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14733
 
14734
        ;;
14735
     *-*-linux*)
14736
        $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14737
 
14738
        $as_echo "#define _REENTRANT 1" >>confdefs.h
14739
 
14740
        ;;
14741
     *-*-aix*)
14742
 
14743
$as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14744
 
14745
        $as_echo "#define _REENTRANT 1" >>confdefs.h
14746
 
14747
        ;;
14748
     *-*-hpux11*)
14749
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14750
$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14751
 
14752
$as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
14753
 
14754
 
14755
$as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
14756
 
14757
        if test "${enable_parallel_mark}" = yes; then
14758
          $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14759
 
14760
        fi
14761
        $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14762
 
14763
        THREADLIBS="-lpthread -lrt"
14764
        # HPUX needs REENTRANT for the _r calls.
14765
 
14766
$as_echo "#define _REENTRANT 1" >>confdefs.h
14767
 
14768
        ;;
14769
     *-*-hpux10*)
14770
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14771
$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14772
        ;;
14773
     *-*-kfreebsd*-gnu)
14774
       $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14775
 
14776
       THREADCFLAGS=-pthread
14777
       THREADLIBS=-pthread
14778
       $as_echo "#define _REENTRANT 1" >>confdefs.h
14779
 
14780
         if test "${enable_parallel_mark}" = yes; then
14781
         $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14782
 
14783
       fi
14784
       $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14785
 
14786
 
14787
$as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
14788
 
14789
       ;;
14790
     *-*-freebsd*)
14791
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14792
$as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14793
 
14794
$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14795
 
14796
        THREADCFLAGS=-pthread
14797
        THREADLIBS=-pthread
14798
        ;;
14799
     *-*-solaris2.8*)
14800
 
14801
$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14802
 
14803
        # Need to use alternate thread library, otherwise gctest hangs
14804
        # on Solaris 8.
14805
        multi_os_directory=`$CC -print-multi-os-directory`
14806
        THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14807
                    -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14808
        ;;
14809
     *-*-solaris2*)
14810
 
14811
$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14812
 
14813
        # The alternate thread library was only introduced in Solaris 8 and
14814
        # became the default in Solaris 9, so no need for the special code
14815
        # above otherwise.
14816
        # nanosleep, sched_yield, and sem_* only live in librt before
14817
        # Solaris 11.
14818
        THREADLIBS="-lpthread -lrt"
14819
        ;;
14820
     *-*-irix*)
14821
 
14822
$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
14823
 
14824
        ;;
14825
     *-*-cygwin*)
14826
 
14827
$as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14828
 
14829
        ;;
14830
     *-*-darwin*)
14831
 
14832
$as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
14833
 
14834
        $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14835
 
14836
        if test "${enable_parallel_mark}" = yes; then
14837
          $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14838
 
14839
        fi
14840
        ;;
14841
     *-*-osf*)
14842
 
14843
$as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
14844
 
14845
        if test "${enable_parallel_mark}" = yes; then
14846
          $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14847
 
14848
          $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14849
 
14850
          # May want to enable it in other cases, too.
14851
          # Measurements havent yet been done.
14852
        fi
14853
        THREADCFLAGS=-pthread
14854
        THREADLIBS="-lpthread -lrt"
14855
        ;;
14856
    esac
14857
    ;;
14858
 win32)
14859
    $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14860
 
14861
            ;;
14862
 aix)
14863
    THREADS=posix
14864
    THREADLIBS=-lpthread
14865
    $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14866
 
14867
    $as_echo "#define _REENTRANT 1" >>confdefs.h
14868
 
14869
    ;;
14870
 dce | vxworks)
14871
    as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
14872
    ;;
14873
 *)
14874
    as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
14875
    ;;
14876
esac
14877
 
14878
 
14879
 
14880
case "$host" in
14881
   powerpc-*-darwin*)
14882
      powerpc_darwin=true
14883
      ;;
14884
esac
14885
 if test x$powerpc_darwin = xtrue; then
14886
  POWERPC_DARWIN_TRUE=
14887
  POWERPC_DARWIN_FALSE='#'
14888
else
14889
  POWERPC_DARWIN_TRUE='#'
14890
  POWERPC_DARWIN_FALSE=
14891
fi
14892
 
14893
 
14894
# Darwin needs a few extra special tests to deal with variation in the
14895
# system headers.
14896
case "$host" in
14897
  powerpc*-*-darwin*)
14898
    ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include 
14899
"
14900
if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
14901
 
14902
$as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
14903
 
14904
fi
14905
 
14906
    ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include 
14907
"
14908
if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
14909
 
14910
$as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
14911
 
14912
fi
14913
 
14914
    ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include 
14915
"
14916
if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
14917
 
14918
$as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
14919
 
14920
fi
14921
 
14922
    ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include 
14923
"
14924
if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
14925
 
14926
$as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
14927
 
14928
fi
14929
 
14930
    ;;
14931
  i?86*-*-darwin*)
14932
    ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include 
14933
      #include 
14934
"
14935
if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
14936
 
14937
$as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
14938
 
14939
fi
14940
 
14941
    ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include 
14942
      #include 
14943
"
14944
if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
14945
 
14946
$as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
14947
 
14948
fi
14949
 
14950
    ;;
14951
  x86_64-*-darwin*)
14952
    ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include 
14953
      #include 
14954
"
14955
if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
14956
 
14957
$as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
14958
 
14959
fi
14960
 
14961
    ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include 
14962
      #include 
14963
"
14964
if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
14965
 
14966
$as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
14967
 
14968
fi
14969
 
14970
     ;;
14971
  *) ;;
14972
esac
14973
 
14974
case "$host" in
14975
  # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
14976
  # and unnecessary everywhere.
14977
  mips-sgi-irix6*) ;;
14978
  # We never want libdl on darwin. It is a fake libdl that just ends up making
14979
  # dyld calls anyway
14980
  *-*-darwin*) ;;
14981
  *)
14982
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14983
$as_echo_n "checking for dlopen in -ldl... " >&6; }
14984
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14985
  $as_echo_n "(cached) " >&6
14986
else
14987
  ac_check_lib_save_LIBS=$LIBS
14988
LIBS="-ldl  $LIBS"
14989
if test x$gcc_no_link = xyes; then
14990
  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14991
fi
14992
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993
/* end confdefs.h.  */
14994
 
14995
/* Override any GCC internal prototype to avoid an error.
14996
   Use char because int might match the return type of a GCC
14997
   builtin and then its argument prototype would still apply.  */
14998
#ifdef __cplusplus
14999
extern "C"
15000
#endif
15001
char dlopen ();
15002
int
15003
main ()
15004
{
15005
return dlopen ();
15006
  ;
15007
  return 0;
15008
}
15009
_ACEOF
15010
if ac_fn_c_try_link "$LINENO"; then :
15011
  ac_cv_lib_dl_dlopen=yes
15012
else
15013
  ac_cv_lib_dl_dlopen=no
15014
fi
15015
rm -f core conftest.err conftest.$ac_objext \
15016
    conftest$ac_exeext conftest.$ac_ext
15017
LIBS=$ac_check_lib_save_LIBS
15018
fi
15019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15020
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15021
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15022
  EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15023
fi
15024
 
15025
    ;;
15026
esac
15027
 
15028
# extra LD Flags which are required for targets
15029
case "${host}" in
15030
  *-*-darwin*)
15031
    extra_ldflags_libgc=-Wl,-single_module
15032
    ;;
15033
esac
15034
 
15035
 
15036
 
15037
 
15038
target_all=libgcjgc.la
15039
 
15040
 
15041
TARGET_ECOS="no"
15042
 
15043
# Check whether --with-ecos was given.
15044
if test "${with_ecos+set}" = set; then :
15045
  withval=$with_ecos; TARGET_ECOS="$with_ecos"
15046
 
15047
fi
15048
 
15049
 
15050
addobjs=
15051
addlibs=
15052
addincludes=
15053
addtests=
15054
case "$TARGET_ECOS" in
15055
   no)
15056
      ;;
15057
   *)
15058
 
15059
$as_echo "#define ECOS 1" >>confdefs.h
15060
 
15061
      AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15062
      addobjs="$addobjs ecos.lo"
15063
      ;;
15064
esac
15065
 
15066
if test "${enable_cplusplus}" = yes; then
15067
      addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15068
      addtests="$addtests test_cpp"
15069
fi
15070
 
15071
 if test "${enable_cplusplus}" = yes; then
15072
  CPLUSPLUS_TRUE=
15073
  CPLUSPLUS_FALSE='#'
15074
else
15075
  CPLUSPLUS_TRUE='#'
15076
  CPLUSPLUS_FALSE=
15077
fi
15078
 
15079
 
15080
 
15081
 
15082
 
15083
 
15084
# Configuration of shared libraries
15085
#
15086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15087
$as_echo_n "checking whether to build shared libraries... " >&6; }
15088
# Check whether --enable-shared was given.
15089
if test "${enable_shared+set}" = set; then :
15090
  enableval=$enable_shared; p=${PACKAGE-default}
15091
    case $enableval in
15092
    yes) enable_shared=yes ;;
15093
    no) enable_shared=no ;;
15094
    *)
15095
      enable_shared=no
15096
      # Look at the argument we got.  We use all the common list separators.
15097
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15098
      for pkg in $enableval; do
15099
        IFS="$lt_save_ifs"
15100
        if test "X$pkg" = "X$p"; then
15101
          enable_shared=yes
15102
        fi
15103
      done
15104
      IFS="$lt_save_ifs"
15105
      ;;
15106
    esac
15107
else
15108
  enable_shared=yes
15109
fi
15110
 
15111
 
15112
 
15113
 
15114
 
15115
 
15116
 
15117
case "$host" in
15118
 alpha-*-openbsd*)
15119
     enable_shared=no
15120
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15121
$as_echo "no" >&6; }
15122
     ;;
15123
 *)
15124
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125
$as_echo "yes" >&6; }
15126
     ;;
15127
esac
15128
 
15129
# Checks for pthreads functions
15130
#
15131
oldLIBS="$LIBS"
15132
LIBS="$LIBS $THREADLIBS"
15133
for ac_func in pthread_getattr_np
15134
do :
15135
  ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15136
if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
15137
  cat >>confdefs.h <<_ACEOF
15138
#define HAVE_PTHREAD_GETATTR_NP 1
15139
_ACEOF
15140
 
15141
fi
15142
done
15143
 
15144
for ac_func in pthread_get_stackaddr_np
15145
do :
15146
  ac_fn_c_check_func "$LINENO" "pthread_get_stackaddr_np" "ac_cv_func_pthread_get_stackaddr_np"
15147
if test "x$ac_cv_func_pthread_get_stackaddr_np" = x""yes; then :
15148
  cat >>confdefs.h <<_ACEOF
15149
#define HAVE_PTHREAD_GET_STACKADDR_NP 1
15150
_ACEOF
15151
 
15152
fi
15153
done
15154
 
15155
LIBS="$oldLIBS"
15156
 
15157
# Configuration of machine-dependent code
15158
#
15159
# Set NO_EXECUTE_PERMISSION by default because gcj already uses
15160
# ffi_closure_{alloc,free} which takes care of allocating trampolines
15161
# in executable memory.
15162
#
15163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15164
$as_echo_n "checking which machine-dependent code should be used... " >&6; }
15165
machdep=
15166
case "$host" in
15167
 alpha*-*-openbsd*)
15168
    machdep="alpha_mach_dep.lo"
15169
    if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15170
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15171
$as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15172
    fi
15173
    ;;
15174
 alpha*-*-linux*)
15175
    machdep="alpha_mach_dep.lo"
15176
    ;;
15177
 i?86-*-solaris2.[89] | i?86-*-solaris2.1? | x86_64-*-solaris2.1?)
15178
 
15179
$as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
15180
 
15181
    ;;
15182
 mipstx39-*-elf*)
15183
    machdep="mips_ultrix_mach_dep.lo"
15184
 
15185
$as_echo "#define STACKBASE __stackbase" >>confdefs.h
15186
 
15187
 
15188
$as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
15189
 
15190
    ;;
15191
 mips-dec-ultrix*)
15192
    machdep="mips_ultrix_mach-dep.lo"
15193
    ;;
15194
 mips-nec-sysv*|mips-unknown-sysv*)
15195
    ;;
15196
 mips*-*-linux*)
15197
    ;;
15198
 mips-*-*)
15199
    machdep="mips_sgi_mach_dep.lo"
15200
    ;;
15201
 sparc-*-netbsd*)
15202
    machdep="sparc_netbsd_mach_dep.lo"
15203
    ;;
15204
 sparc-sun-solaris2.3)
15205
    machdep="sparc_mach_dep.lo"
15206
 
15207
$as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
15208
 
15209
    ;;
15210
 sparc*-sun-solaris2.*)
15211
    machdep="sparc_mach_dep.lo"
15212
    ;;
15213
 ia64-*-*)
15214
    machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15215
    ;;
15216
esac
15217
 
15218
$as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15219
 
15220
if test x"$machdep" = x; then
15221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15222
$as_echo "$machdep" >&6; }
15223
   machdep="mach_dep.lo"
15224
fi
15225
addobjs="$addobjs $machdep"
15226
 
15227
 
15228
 
15229
 
15230
 
15231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC optimization should be disabled" >&5
15232
$as_echo_n "checking whether GCC optimization should be disabled... " >&6; }
15233
O0_CFLAGS=
15234
case "$host" in
15235
 *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
15236
 *) ;;
15237
esac
15238
if test x"$O0_CFLAGS" != x; then
15239
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240
$as_echo "yes" >&6; }
15241
else
15242
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243
$as_echo "no" >&6; }
15244
fi
15245
 
15246
 
15247
 
15248
$as_echo "#define SILENT 1" >>confdefs.h
15249
 
15250
 
15251
$as_echo "#define NO_SIGNALS 1" >>confdefs.h
15252
 
15253
 
15254
$as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15255
 
15256
 
15257
 
15258
$as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15259
 
15260
 
15261
$as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15262
 
15263
 
15264
$as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15265
 
15266
 
15267
# Check whether --enable-gc-debug was given.
15268
if test "${enable_gc_debug+set}" = set; then :
15269
  enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
15270
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15271
$as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15272
 
15273
$as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15274
 
15275
 
15276
$as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15277
 
15278
    case $host in
15279
      ia64-*-linux* )
15280
 
15281
$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15282
 
15283
      ;;
15284
      x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15285
        $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15286
 
15287
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15288
$as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15289
 
15290
$as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15291
 
15292
      ;;
15293
    esac
15294
  fi
15295
fi
15296
 
15297
 
15298
if test "${gc_use_mmap}" = "yes"; then
15299
 
15300
$as_echo "#define USE_MMAP 1" >>confdefs.h
15301
 
15302
fi
15303
 
15304
if test -n "$with_cross_host" &&
15305
   test x"$with_cross_host" != x"no"; then
15306
  toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15307
  toolexeclibdir='$(toolexecdir)/lib'
15308
else
15309
  toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15310
  toolexeclibdir='$(libdir)'
15311
fi
15312
multi_os_directory=`$CC -print-multi-os-directory`
15313
case $multi_os_directory in
15314
  .) ;; # Avoid trailing /.
15315
  *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15316
esac
15317
 
15318
 
15319
 
15320
if test "${multilib}" = "yes"; then
15321
  multilib_arg="--enable-multilib"
15322
else
15323
  multilib_arg=
15324
fi
15325
 
15326
ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
15327
 
15328
 
15329
ac_config_files="$ac_config_files Makefile include/Makefile testsuite/Makefile threads.mk"
15330
 
15331
cat >confcache <<\_ACEOF
15332
# This file is a shell script that caches the results of configure
15333
# tests run on this system so they can be shared between configure
15334
# scripts and configure runs, see configure's option --config-cache.
15335
# It is not useful on other systems.  If it contains results you don't
15336
# want to keep, you may remove or edit it.
15337
#
15338
# config.status only pays attention to the cache file if you give it
15339
# the --recheck option to rerun configure.
15340
#
15341
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15342
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15343
# following values.
15344
 
15345
_ACEOF
15346
 
15347
# The following way of writing the cache mishandles newlines in values,
15348
# but we know of no workaround that is simple, portable, and efficient.
15349
# So, we kill variables containing newlines.
15350
# Ultrix sh set writes to stderr and can't be redirected directly,
15351
# and sets the high bit in the cache file unless we assign to the vars.
15352
(
15353
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15354
    eval ac_val=\$$ac_var
15355
    case $ac_val in #(
15356
    *${as_nl}*)
15357
      case $ac_var in #(
15358
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15359
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15360
      esac
15361
      case $ac_var in #(
15362
      _ | IFS | as_nl) ;; #(
15363
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15364
      *) { eval $ac_var=; unset $ac_var;} ;;
15365
      esac ;;
15366
    esac
15367
  done
15368
 
15369
  (set) 2>&1 |
15370
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15371
    *${as_nl}ac_space=\ *)
15372
      # `set' does not quote correctly, so add quotes: double-quote
15373
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15374
      sed -n \
15375
        "s/'/'\\\\''/g;
15376
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15377
      ;; #(
15378
    *)
15379
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15380
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15381
      ;;
15382
    esac |
15383
    sort
15384
) |
15385
  sed '
15386
     /^ac_cv_env_/b end
15387
     t clear
15388
     :clear
15389
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15390
     t end
15391
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15392
     :end' >>confcache
15393
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15394
  if test -w "$cache_file"; then
15395
    test "x$cache_file" != "x/dev/null" &&
15396
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15397
$as_echo "$as_me: updating cache $cache_file" >&6;}
15398
    cat confcache >$cache_file
15399
  else
15400
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15401
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15402
  fi
15403
fi
15404
rm -f confcache
15405
 
15406
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15407
# Let make expand exec_prefix.
15408
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15409
 
15410
DEFS=-DHAVE_CONFIG_H
15411
 
15412
ac_libobjs=
15413
ac_ltlibobjs=
15414
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15415
  # 1. Remove the extension, and $U if already installed.
15416
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15417
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15418
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15419
  #    will be set to the directory where LIBOBJS objects are built.
15420
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15421
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15422
done
15423
LIBOBJS=$ac_libobjs
15424
 
15425
LTLIBOBJS=$ac_ltlibobjs
15426
 
15427
 
15428
 if test -n "$EXEEXT"; then
15429
  am__EXEEXT_TRUE=
15430
  am__EXEEXT_FALSE='#'
15431
else
15432
  am__EXEEXT_TRUE='#'
15433
  am__EXEEXT_FALSE=
15434
fi
15435
 
15436
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15437
  as_fn_error "conditional \"AMDEP\" was never defined.
15438
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15439
fi
15440
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15441
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15442
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443
fi
15444
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15445
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15446
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447
fi
15448
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15449
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15450
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451
fi
15452
if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15453
  as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15454
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15455
fi
15456
if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15457
  as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15458
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15459
fi
15460
 
15461
: ${CONFIG_STATUS=./config.status}
15462
ac_write_fail=0
15463
ac_clean_files_save=$ac_clean_files
15464
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15465
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15466
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15467
as_write_fail=0
15468
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15469
#! $SHELL
15470
# Generated by $as_me.
15471
# Run this file to recreate the current configuration.
15472
# Compiler output produced by configure, useful for debugging
15473
# configure, is in config.log if it exists.
15474
 
15475
debug=false
15476
ac_cs_recheck=false
15477
ac_cs_silent=false
15478
 
15479
SHELL=\${CONFIG_SHELL-$SHELL}
15480
export SHELL
15481
_ASEOF
15482
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15483
## -------------------- ##
15484
## M4sh Initialization. ##
15485
## -------------------- ##
15486
 
15487
# Be more Bourne compatible
15488
DUALCASE=1; export DUALCASE # for MKS sh
15489
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15490
  emulate sh
15491
  NULLCMD=:
15492
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15493
  # is contrary to our usage.  Disable this feature.
15494
  alias -g '${1+"$@"}'='"$@"'
15495
  setopt NO_GLOB_SUBST
15496
else
15497
  case `(set -o) 2>/dev/null` in #(
15498
  *posix*) :
15499
    set -o posix ;; #(
15500
  *) :
15501
     ;;
15502
esac
15503
fi
15504
 
15505
 
15506
as_nl='
15507
'
15508
export as_nl
15509
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15510
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15511
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15512
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15513
# Prefer a ksh shell builtin over an external printf program on Solaris,
15514
# but without wasting forks for bash or zsh.
15515
if test -z "$BASH_VERSION$ZSH_VERSION" \
15516
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15517
  as_echo='print -r --'
15518
  as_echo_n='print -rn --'
15519
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15520
  as_echo='printf %s\n'
15521
  as_echo_n='printf %s'
15522
else
15523
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15524
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15525
    as_echo_n='/usr/ucb/echo -n'
15526
  else
15527
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15528
    as_echo_n_body='eval
15529
      arg=$1;
15530
      case $arg in #(
15531
      *"$as_nl"*)
15532
        expr "X$arg" : "X\\(.*\\)$as_nl";
15533
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15534
      esac;
15535
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15536
    '
15537
    export as_echo_n_body
15538
    as_echo_n='sh -c $as_echo_n_body as_echo'
15539
  fi
15540
  export as_echo_body
15541
  as_echo='sh -c $as_echo_body as_echo'
15542
fi
15543
 
15544
# The user is always right.
15545
if test "${PATH_SEPARATOR+set}" != set; then
15546
  PATH_SEPARATOR=:
15547
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15548
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15549
      PATH_SEPARATOR=';'
15550
  }
15551
fi
15552
 
15553
 
15554
# IFS
15555
# We need space, tab and new line, in precisely that order.  Quoting is
15556
# there to prevent editors from complaining about space-tab.
15557
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15558
# splitting by setting IFS to empty value.)
15559
IFS=" ""        $as_nl"
15560
 
15561
# Find who we are.  Look in the path if we contain no directory separator.
15562
case $0 in #((
15563
  *[\\/]* ) as_myself=$0 ;;
15564
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15565
for as_dir in $PATH
15566
do
15567
  IFS=$as_save_IFS
15568
  test -z "$as_dir" && as_dir=.
15569
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15570
  done
15571
IFS=$as_save_IFS
15572
 
15573
     ;;
15574
esac
15575
# We did not find ourselves, most probably we were run as `sh COMMAND'
15576
# in which case we are not to be found in the path.
15577
if test "x$as_myself" = x; then
15578
  as_myself=$0
15579
fi
15580
if test ! -f "$as_myself"; then
15581
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15582
  exit 1
15583
fi
15584
 
15585
# Unset variables that we do not need and which cause bugs (e.g. in
15586
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15587
# suppresses any "Segmentation fault" message there.  '((' could
15588
# trigger a bug in pdksh 5.2.14.
15589
for as_var in BASH_ENV ENV MAIL MAILPATH
15590
do eval test x\${$as_var+set} = xset \
15591
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15592
done
15593
PS1='$ '
15594
PS2='> '
15595
PS4='+ '
15596
 
15597
# NLS nuisances.
15598
LC_ALL=C
15599
export LC_ALL
15600
LANGUAGE=C
15601
export LANGUAGE
15602
 
15603
# CDPATH.
15604
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15605
 
15606
 
15607
# as_fn_error ERROR [LINENO LOG_FD]
15608
# ---------------------------------
15609
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15610
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15611
# script with status $?, using 1 if that was 0.
15612
as_fn_error ()
15613
{
15614
  as_status=$?; test $as_status -eq 0 && as_status=1
15615
  if test "$3"; then
15616
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15617
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15618
  fi
15619
  $as_echo "$as_me: error: $1" >&2
15620
  as_fn_exit $as_status
15621
} # as_fn_error
15622
 
15623
 
15624
# as_fn_set_status STATUS
15625
# -----------------------
15626
# Set $? to STATUS, without forking.
15627
as_fn_set_status ()
15628
{
15629
  return $1
15630
} # as_fn_set_status
15631
 
15632
# as_fn_exit STATUS
15633
# -----------------
15634
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15635
as_fn_exit ()
15636
{
15637
  set +e
15638
  as_fn_set_status $1
15639
  exit $1
15640
} # as_fn_exit
15641
 
15642
# as_fn_unset VAR
15643
# ---------------
15644
# Portably unset VAR.
15645
as_fn_unset ()
15646
{
15647
  { eval $1=; unset $1;}
15648
}
15649
as_unset=as_fn_unset
15650
# as_fn_append VAR VALUE
15651
# ----------------------
15652
# Append the text in VALUE to the end of the definition contained in VAR. Take
15653
# advantage of any shell optimizations that allow amortized linear growth over
15654
# repeated appends, instead of the typical quadratic growth present in naive
15655
# implementations.
15656
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15657
  eval 'as_fn_append ()
15658
  {
15659
    eval $1+=\$2
15660
  }'
15661
else
15662
  as_fn_append ()
15663
  {
15664
    eval $1=\$$1\$2
15665
  }
15666
fi # as_fn_append
15667
 
15668
# as_fn_arith ARG...
15669
# ------------------
15670
# Perform arithmetic evaluation on the ARGs, and store the result in the
15671
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15672
# must be portable across $(()) and expr.
15673
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15674
  eval 'as_fn_arith ()
15675
  {
15676
    as_val=$(( $* ))
15677
  }'
15678
else
15679
  as_fn_arith ()
15680
  {
15681
    as_val=`expr "$@" || test $? -eq 1`
15682
  }
15683
fi # as_fn_arith
15684
 
15685
 
15686
if expr a : '\(a\)' >/dev/null 2>&1 &&
15687
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15688
  as_expr=expr
15689
else
15690
  as_expr=false
15691
fi
15692
 
15693
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15694
  as_basename=basename
15695
else
15696
  as_basename=false
15697
fi
15698
 
15699
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15700
  as_dirname=dirname
15701
else
15702
  as_dirname=false
15703
fi
15704
 
15705
as_me=`$as_basename -- "$0" ||
15706
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15707
         X"$0" : 'X\(//\)$' \| \
15708
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15709
$as_echo X/"$0" |
15710
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15711
            s//\1/
15712
            q
15713
          }
15714
          /^X\/\(\/\/\)$/{
15715
            s//\1/
15716
            q
15717
          }
15718
          /^X\/\(\/\).*/{
15719
            s//\1/
15720
            q
15721
          }
15722
          s/.*/./; q'`
15723
 
15724
# Avoid depending upon Character Ranges.
15725
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15726
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15727
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15728
as_cr_digits='0123456789'
15729
as_cr_alnum=$as_cr_Letters$as_cr_digits
15730
 
15731
ECHO_C= ECHO_N= ECHO_T=
15732
case `echo -n x` in #(((((
15733
-n*)
15734
  case `echo 'xy\c'` in
15735
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15736
  xy)  ECHO_C='\c';;
15737
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15738
       ECHO_T=' ';;
15739
  esac;;
15740
*)
15741
  ECHO_N='-n';;
15742
esac
15743
 
15744
rm -f conf$$ conf$$.exe conf$$.file
15745
if test -d conf$$.dir; then
15746
  rm -f conf$$.dir/conf$$.file
15747
else
15748
  rm -f conf$$.dir
15749
  mkdir conf$$.dir 2>/dev/null
15750
fi
15751
if (echo >conf$$.file) 2>/dev/null; then
15752
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15753
    as_ln_s='ln -s'
15754
    # ... but there are two gotchas:
15755
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15756
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15757
    # In both cases, we have to default to `cp -p'.
15758
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15759
      as_ln_s='cp -p'
15760
  elif ln conf$$.file conf$$ 2>/dev/null; then
15761
    as_ln_s=ln
15762
  else
15763
    as_ln_s='cp -p'
15764
  fi
15765
else
15766
  as_ln_s='cp -p'
15767
fi
15768
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15769
rmdir conf$$.dir 2>/dev/null
15770
 
15771
 
15772
# as_fn_mkdir_p
15773
# -------------
15774
# Create "$as_dir" as a directory, including parents if necessary.
15775
as_fn_mkdir_p ()
15776
{
15777
 
15778
  case $as_dir in #(
15779
  -*) as_dir=./$as_dir;;
15780
  esac
15781
  test -d "$as_dir" || eval $as_mkdir_p || {
15782
    as_dirs=
15783
    while :; do
15784
      case $as_dir in #(
15785
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15786
      *) as_qdir=$as_dir;;
15787
      esac
15788
      as_dirs="'$as_qdir' $as_dirs"
15789
      as_dir=`$as_dirname -- "$as_dir" ||
15790
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15791
         X"$as_dir" : 'X\(//\)[^/]' \| \
15792
         X"$as_dir" : 'X\(//\)$' \| \
15793
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15794
$as_echo X"$as_dir" |
15795
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15796
            s//\1/
15797
            q
15798
          }
15799
          /^X\(\/\/\)[^/].*/{
15800
            s//\1/
15801
            q
15802
          }
15803
          /^X\(\/\/\)$/{
15804
            s//\1/
15805
            q
15806
          }
15807
          /^X\(\/\).*/{
15808
            s//\1/
15809
            q
15810
          }
15811
          s/.*/./; q'`
15812
      test -d "$as_dir" && break
15813
    done
15814
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15815
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15816
 
15817
 
15818
} # as_fn_mkdir_p
15819
if mkdir -p . 2>/dev/null; then
15820
  as_mkdir_p='mkdir -p "$as_dir"'
15821
else
15822
  test -d ./-p && rmdir ./-p
15823
  as_mkdir_p=false
15824
fi
15825
 
15826
if test -x / >/dev/null 2>&1; then
15827
  as_test_x='test -x'
15828
else
15829
  if ls -dL / >/dev/null 2>&1; then
15830
    as_ls_L_option=L
15831
  else
15832
    as_ls_L_option=
15833
  fi
15834
  as_test_x='
15835
    eval sh -c '\''
15836
      if test -d "$1"; then
15837
        test -d "$1/.";
15838
      else
15839
        case $1 in #(
15840
        -*)set "./$1";;
15841
        esac;
15842
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15843
        ???[sx]*):;;*)false;;esac;fi
15844
    '\'' sh
15845
  '
15846
fi
15847
as_executable_p=$as_test_x
15848
 
15849
# Sed expression to map a string onto a valid CPP name.
15850
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15851
 
15852
# Sed expression to map a string onto a valid variable name.
15853
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15854
 
15855
 
15856
exec 6>&1
15857
## ----------------------------------- ##
15858
## Main body of $CONFIG_STATUS script. ##
15859
## ----------------------------------- ##
15860
_ASEOF
15861
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15862
 
15863
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15864
# Save the log message, to keep $0 and so on meaningful, and to
15865
# report actual input values of CONFIG_FILES etc. instead of their
15866
# values after options handling.
15867
ac_log="
15868
This file was extended by $as_me, which was
15869
generated by GNU Autoconf 2.64.  Invocation command line was
15870
 
15871
  CONFIG_FILES    = $CONFIG_FILES
15872
  CONFIG_HEADERS  = $CONFIG_HEADERS
15873
  CONFIG_LINKS    = $CONFIG_LINKS
15874
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15875
  $ $0 $@
15876
 
15877
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15878
"
15879
 
15880
_ACEOF
15881
 
15882
case $ac_config_files in *"
15883
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15884
esac
15885
 
15886
case $ac_config_headers in *"
15887
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15888
esac
15889
 
15890
 
15891
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15892
# Files that config.status was made for.
15893
config_files="$ac_config_files"
15894
config_headers="$ac_config_headers"
15895
config_commands="$ac_config_commands"
15896
 
15897
_ACEOF
15898
 
15899
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15900
ac_cs_usage="\
15901
\`$as_me' instantiates files and other configuration actions
15902
from templates according to the current configuration.  Unless the files
15903
and actions are specified as TAGs, all are instantiated by default.
15904
 
15905
Usage: $0 [OPTION]... [TAG]...
15906
 
15907
  -h, --help       print this help, then exit
15908
  -V, --version    print version number and configuration settings, then exit
15909
  -q, --quiet, --silent
15910
                   do not print progress messages
15911
  -d, --debug      don't remove temporary files
15912
      --recheck    update $as_me by reconfiguring in the same conditions
15913
      --file=FILE[:TEMPLATE]
15914
                   instantiate the configuration file FILE
15915
      --header=FILE[:TEMPLATE]
15916
                   instantiate the configuration header FILE
15917
 
15918
Configuration files:
15919
$config_files
15920
 
15921
Configuration headers:
15922
$config_headers
15923
 
15924
Configuration commands:
15925
$config_commands
15926
 
15927
Report bugs to the package provider."
15928
 
15929
_ACEOF
15930
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931
ac_cs_version="\\
15932
config.status
15933
configured by $0, generated by GNU Autoconf 2.64,
15934
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15935
 
15936
Copyright (C) 2009 Free Software Foundation, Inc.
15937
This config.status script is free software; the Free Software Foundation
15938
gives unlimited permission to copy, distribute and modify it."
15939
 
15940
ac_pwd='$ac_pwd'
15941
srcdir='$srcdir'
15942
INSTALL='$INSTALL'
15943
MKDIR_P='$MKDIR_P'
15944
AWK='$AWK'
15945
test -n "\$AWK" || AWK=awk
15946
_ACEOF
15947
 
15948
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949
# The default lists apply if the user does not specify any file.
15950
ac_need_defaults=:
15951
while test $# != 0
15952
do
15953
  case $1 in
15954
  --*=*)
15955
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15956
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15957
    ac_shift=:
15958
    ;;
15959
  *)
15960
    ac_option=$1
15961
    ac_optarg=$2
15962
    ac_shift=shift
15963
    ;;
15964
  esac
15965
 
15966
  case $ac_option in
15967
  # Handling of the options.
15968
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15969
    ac_cs_recheck=: ;;
15970
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15971
    $as_echo "$ac_cs_version"; exit ;;
15972
  --debug | --debu | --deb | --de | --d | -d )
15973
    debug=: ;;
15974
  --file | --fil | --fi | --f )
15975
    $ac_shift
15976
    case $ac_optarg in
15977
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15978
    esac
15979
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15980
    ac_need_defaults=false;;
15981
  --header | --heade | --head | --hea )
15982
    $ac_shift
15983
    case $ac_optarg in
15984
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15985
    esac
15986
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15987
    ac_need_defaults=false;;
15988
  --he | --h)
15989
    # Conflict between --help and --header
15990
    as_fn_error "ambiguous option: \`$1'
15991
Try \`$0 --help' for more information.";;
15992
  --help | --hel | -h )
15993
    $as_echo "$ac_cs_usage"; exit ;;
15994
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15995
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15996
    ac_cs_silent=: ;;
15997
 
15998
  # This is an error.
15999
  -*) as_fn_error "unrecognized option: \`$1'
16000
Try \`$0 --help' for more information." ;;
16001
 
16002
  *) as_fn_append ac_config_targets " $1"
16003
     ac_need_defaults=false ;;
16004
 
16005
  esac
16006
  shift
16007
done
16008
 
16009
ac_configure_extra_args=
16010
 
16011
if $ac_cs_silent; then
16012
  exec 6>/dev/null
16013
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16014
fi
16015
 
16016
_ACEOF
16017
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018
if \$ac_cs_recheck; then
16019
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16020
  shift
16021
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16022
  CONFIG_SHELL='$SHELL'
16023
  export CONFIG_SHELL
16024
  exec "\$@"
16025
fi
16026
 
16027
_ACEOF
16028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029
exec 5>>config.log
16030
{
16031
  echo
16032
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16033
## Running $as_me. ##
16034
_ASBOX
16035
  $as_echo "$ac_log"
16036
} >&5
16037
 
16038
_ACEOF
16039
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040
#
16041
# INIT-COMMANDS
16042
#
16043
 
16044
srcdir="$srcdir"
16045
host="$host"
16046
target="$target"
16047
with_multisubdir="$with_multisubdir"
16048
with_multisrctop="$with_multisrctop"
16049
with_target_subdir="$with_target_subdir"
16050
ac_configure_args="${multilib_arg} ${ac_configure_args}"
16051
multi_basedir="$multi_basedir"
16052
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16053
CC="$CC"
16054
CXX="$CXX"
16055
GFORTRAN="$GFORTRAN"
16056
GCJ="$GCJ"
16057
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16058
 
16059
 
16060
# The HP-UX ksh and POSIX shell print the target directory to stdout
16061
# if CDPATH is set.
16062
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16063
 
16064
sed_quote_subst='$sed_quote_subst'
16065
double_quote_subst='$double_quote_subst'
16066
delay_variable_subst='$delay_variable_subst'
16067
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16068
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16069
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16070
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16071
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16072
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16073
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16074
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16075
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16076
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16077
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16078
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16079
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16080
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16081
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16082
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16083
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16084
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16085
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16086
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16087
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16088
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16089
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16090
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16091
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16092
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16093
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16094
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16095
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16096
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16097
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16098
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16099
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16100
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16101
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16102
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16103
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16104
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16105
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16106
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16107
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16108
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16109
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16110
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16111
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16112
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16113
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16114
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16115
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16116
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16117
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16118
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16119
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16120
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16121
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16122
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16123
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16124
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16125
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16126
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16127
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16128
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16129
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16130
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16131
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16132
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16133
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16134
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16135
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16136
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16137
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16138
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16139
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16140
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16141
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16142
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16143
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16144
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16145
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16146
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16147
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16148
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16149
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16150
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16151
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16152
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16153
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16154
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16155
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16156
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16157
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16158
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16159
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16160
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16161
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16162
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16163
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16164
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16165
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16166
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16167
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16168
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16169
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16170
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16171
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16172
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16173
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16174
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16175
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16176
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16177
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16178
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16179
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16180
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16181
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16182
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16183
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16184
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16185
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16186
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16187
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16188
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16189
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16190
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16191
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16192
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16193
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16194
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16195
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16196
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16197
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16198
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16199
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16200
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16201
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16202
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16203
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16204
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16205
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16206
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16207
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16208
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16209
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16210
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16211
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16212
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16213
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16214
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16215
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16216
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16217
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16218
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16219
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16220
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16221
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16222
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16223
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16224
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16225
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16226
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16227
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16228
fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16229
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16230
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16231
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16232
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16233
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16234
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16235
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16236
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16237
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16238
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16239
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16240
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16241
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16242
 
16243
LTCC='$LTCC'
16244
LTCFLAGS='$LTCFLAGS'
16245
compiler='$compiler_DEFAULT'
16246
 
16247
# A function that is used when there is no print builtin or printf.
16248
func_fallback_echo ()
16249
{
16250
  eval 'cat <<_LTECHO_EOF
16251
\$1
16252
_LTECHO_EOF'
16253
}
16254
 
16255
# Quote evaled strings.
16256
for var in SHELL \
16257
ECHO \
16258
SED \
16259
GREP \
16260
EGREP \
16261
FGREP \
16262
LD \
16263
NM \
16264
LN_S \
16265
lt_SP2NL \
16266
lt_NL2SP \
16267
reload_flag \
16268
OBJDUMP \
16269
deplibs_check_method \
16270
file_magic_cmd \
16271
AR \
16272
AR_FLAGS \
16273
STRIP \
16274
RANLIB \
16275
CC \
16276
CFLAGS \
16277
compiler \
16278
lt_cv_sys_global_symbol_pipe \
16279
lt_cv_sys_global_symbol_to_cdecl \
16280
lt_cv_sys_global_symbol_to_c_name_address \
16281
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16282
lt_prog_compiler_no_builtin_flag \
16283
lt_prog_compiler_wl \
16284
lt_prog_compiler_pic \
16285
lt_prog_compiler_static \
16286
lt_cv_prog_compiler_c_o \
16287
need_locks \
16288
DSYMUTIL \
16289
NMEDIT \
16290
LIPO \
16291
OTOOL \
16292
OTOOL64 \
16293
shrext_cmds \
16294
export_dynamic_flag_spec \
16295
whole_archive_flag_spec \
16296
compiler_needs_object \
16297
with_gnu_ld \
16298
allow_undefined_flag \
16299
no_undefined_flag \
16300
hardcode_libdir_flag_spec \
16301
hardcode_libdir_flag_spec_ld \
16302
hardcode_libdir_separator \
16303
fix_srcfile_path \
16304
exclude_expsyms \
16305
include_expsyms \
16306
file_list_spec \
16307
variables_saved_for_relink \
16308
libname_spec \
16309
library_names_spec \
16310
soname_spec \
16311
install_override_mode \
16312
finish_eval \
16313
old_striplib \
16314
striplib \
16315
compiler_lib_search_dirs \
16316
predep_objects \
16317
postdep_objects \
16318
predeps \
16319
postdeps \
16320
compiler_lib_search_path \
16321
LD_CXX \
16322
reload_flag_CXX \
16323
compiler_CXX \
16324
lt_prog_compiler_no_builtin_flag_CXX \
16325
lt_prog_compiler_wl_CXX \
16326
lt_prog_compiler_pic_CXX \
16327
lt_prog_compiler_static_CXX \
16328
lt_cv_prog_compiler_c_o_CXX \
16329
export_dynamic_flag_spec_CXX \
16330
whole_archive_flag_spec_CXX \
16331
compiler_needs_object_CXX \
16332
with_gnu_ld_CXX \
16333
allow_undefined_flag_CXX \
16334
no_undefined_flag_CXX \
16335
hardcode_libdir_flag_spec_CXX \
16336
hardcode_libdir_flag_spec_ld_CXX \
16337
hardcode_libdir_separator_CXX \
16338
fix_srcfile_path_CXX \
16339
exclude_expsyms_CXX \
16340
include_expsyms_CXX \
16341
file_list_spec_CXX \
16342
compiler_lib_search_dirs_CXX \
16343
predep_objects_CXX \
16344
postdep_objects_CXX \
16345
predeps_CXX \
16346
postdeps_CXX \
16347
compiler_lib_search_path_CXX; do
16348
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16349
    *[\\\\\\\`\\"\\\$]*)
16350
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16351
      ;;
16352
    *)
16353
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16354
      ;;
16355
    esac
16356
done
16357
 
16358
# Double-quote double-evaled strings.
16359
for var in reload_cmds \
16360
old_postinstall_cmds \
16361
old_postuninstall_cmds \
16362
old_archive_cmds \
16363
extract_expsyms_cmds \
16364
old_archive_from_new_cmds \
16365
old_archive_from_expsyms_cmds \
16366
archive_cmds \
16367
archive_expsym_cmds \
16368
module_cmds \
16369
module_expsym_cmds \
16370
export_symbols_cmds \
16371
prelink_cmds \
16372
postinstall_cmds \
16373
postuninstall_cmds \
16374
finish_cmds \
16375
sys_lib_search_path_spec \
16376
sys_lib_dlsearch_path_spec \
16377
reload_cmds_CXX \
16378
old_archive_cmds_CXX \
16379
old_archive_from_new_cmds_CXX \
16380
old_archive_from_expsyms_cmds_CXX \
16381
archive_cmds_CXX \
16382
archive_expsym_cmds_CXX \
16383
module_cmds_CXX \
16384
module_expsym_cmds_CXX \
16385
export_symbols_cmds_CXX \
16386
prelink_cmds_CXX; do
16387
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16388
    *[\\\\\\\`\\"\\\$]*)
16389
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16390
      ;;
16391
    *)
16392
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16393
      ;;
16394
    esac
16395
done
16396
 
16397
ac_aux_dir='$ac_aux_dir'
16398
xsi_shell='$xsi_shell'
16399
lt_shell_append='$lt_shell_append'
16400
 
16401
# See if we are running on zsh, and set the options which allow our
16402
# commands through without removal of \ escapes INIT.
16403
if test -n "\${ZSH_VERSION+set}" ; then
16404
   setopt NO_GLOB_SUBST
16405
fi
16406
 
16407
 
16408
    PACKAGE='$PACKAGE'
16409
    VERSION='$VERSION'
16410
    TIMESTAMP='$TIMESTAMP'
16411
    RM='$RM'
16412
    ofile='$ofile'
16413
 
16414
 
16415
 
16416
 
16417
 
16418
 
16419
_ACEOF
16420
 
16421
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422
 
16423
# Handling of arguments.
16424
for ac_config_target in $ac_config_targets
16425
do
16426
  case $ac_config_target in
16427
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16428
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16429
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16430
    "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16431
    "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16432
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16433
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16434
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16435
    "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16436
 
16437
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16438
  esac
16439
done
16440
 
16441
 
16442
# If the user did not use the arguments to specify the items to instantiate,
16443
# then the envvar interface is used.  Set only those that are not.
16444
# We use the long form for the default assignment because of an extremely
16445
# bizarre bug on SunOS 4.1.3.
16446
if $ac_need_defaults; then
16447
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16448
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16449
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16450
fi
16451
 
16452
# Have a temporary directory for convenience.  Make it in the build tree
16453
# simply because there is no reason against having it here, and in addition,
16454
# creating and moving files from /tmp can sometimes cause problems.
16455
# Hook for its removal unless debugging.
16456
# Note that there is a small window in which the directory will not be cleaned:
16457
# after its creation but before its name has been assigned to `$tmp'.
16458
$debug ||
16459
{
16460
  tmp=
16461
  trap 'exit_status=$?
16462
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16463
' 0
16464
  trap 'as_fn_exit 1' 1 2 13 15
16465
}
16466
# Create a (secure) tmp directory for tmp files.
16467
 
16468
{
16469
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16470
  test -n "$tmp" && test -d "$tmp"
16471
}  ||
16472
{
16473
  tmp=./conf$$-$RANDOM
16474
  (umask 077 && mkdir "$tmp")
16475
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16476
 
16477
# Set up the scripts for CONFIG_FILES section.
16478
# No need to generate them if there are no CONFIG_FILES.
16479
# This happens for instance with `./config.status config.h'.
16480
if test -n "$CONFIG_FILES"; then
16481
 
16482
 
16483
ac_cr=`echo X | tr X '\015'`
16484
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16485
# But we know of no other shell where ac_cr would be empty at this
16486
# point, so we can use a bashism as a fallback.
16487
if test "x$ac_cr" = x; then
16488
  eval ac_cr=\$\'\\r\'
16489
fi
16490
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
16491
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16492
  ac_cs_awk_cr='\r'
16493
else
16494
  ac_cs_awk_cr=$ac_cr
16495
fi
16496
 
16497
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16498
_ACEOF
16499
 
16500
 
16501
{
16502
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16503
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16504
  echo "_ACEOF"
16505
} >conf$$subs.sh ||
16506
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16507
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16508
ac_delim='%!_!# '
16509
for ac_last_try in false false false false false :; do
16510
  . ./conf$$subs.sh ||
16511
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16512
 
16513
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16514
  if test $ac_delim_n = $ac_delim_num; then
16515
    break
16516
  elif $ac_last_try; then
16517
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16518
  else
16519
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16520
  fi
16521
done
16522
rm -f conf$$subs.sh
16523
 
16524
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16526
_ACEOF
16527
sed -n '
16528
h
16529
s/^/S["/; s/!.*/"]=/
16530
p
16531
g
16532
s/^[^!]*!//
16533
:repl
16534
t repl
16535
s/'"$ac_delim"'$//
16536
t delim
16537
:nl
16538
h
16539
s/\(.\{148\}\).*/\1/
16540
t more1
16541
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16542
p
16543
n
16544
b repl
16545
:more1
16546
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16547
p
16548
g
16549
s/.\{148\}//
16550
t nl
16551
:delim
16552
h
16553
s/\(.\{148\}\).*/\1/
16554
t more2
16555
s/["\\]/\\&/g; s/^/"/; s/$/"/
16556
p
16557
b
16558
:more2
16559
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16560
p
16561
g
16562
s/.\{148\}//
16563
t delim
16564
' 
16565
/^[^""]/{
16566
  N
16567
  s/\n//
16568
}
16569
' >>$CONFIG_STATUS || ac_write_fail=1
16570
rm -f conf$$subs.awk
16571
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572
_ACAWK
16573
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16574
  for (key in S) S_is_set[key] = 1
16575
  FS = ""
16576
 
16577
}
16578
{
16579
  line = $ 0
16580
  nfields = split(line, field, "@")
16581
  substed = 0
16582
  len = length(field[1])
16583
  for (i = 2; i < nfields; i++) {
16584
    key = field[i]
16585
    keylen = length(key)
16586
    if (S_is_set[key]) {
16587
      value = S[key]
16588
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16589
      len += length(value) + length(field[++i])
16590
      substed = 1
16591
    } else
16592
      len += 1 + keylen
16593
  }
16594
 
16595
  print line
16596
}
16597
 
16598
_ACAWK
16599
_ACEOF
16600
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16602
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16603
else
16604
  cat
16605
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16606
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16607
_ACEOF
16608
 
16609
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16610
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16611
# trailing colons and then remove the whole line if VPATH becomes empty
16612
# (actually we leave an empty line to preserve line numbers).
16613
if test "x$srcdir" = x.; then
16614
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
16615
s/:*\$(srcdir):*/:/
16616
s/:*\${srcdir}:*/:/
16617
s/:*@srcdir@:*/:/
16618
s/^\([^=]*=[     ]*\):*/\1/
16619
s/:*$//
16620
s/^[^=]*=[       ]*$//
16621
}'
16622
fi
16623
 
16624
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16625
fi # test -n "$CONFIG_FILES"
16626
 
16627
# Set up the scripts for CONFIG_HEADERS section.
16628
# No need to generate them if there are no CONFIG_HEADERS.
16629
# This happens for instance with `./config.status Makefile'.
16630
if test -n "$CONFIG_HEADERS"; then
16631
cat >"$tmp/defines.awk" <<\_ACAWK ||
16632
BEGIN {
16633
_ACEOF
16634
 
16635
# Transform confdefs.h into an awk script `defines.awk', embedded as
16636
# here-document in config.status, that substitutes the proper values into
16637
# config.h.in to produce config.h.
16638
 
16639
# Create a delimiter string that does not exist in confdefs.h, to ease
16640
# handling of long lines.
16641
ac_delim='%!_!# '
16642
for ac_last_try in false false :; do
16643
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16644
  if test -z "$ac_t"; then
16645
    break
16646
  elif $ac_last_try; then
16647
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16648
  else
16649
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16650
  fi
16651
done
16652
 
16653
# For the awk script, D is an array of macro values keyed by name,
16654
# likewise P contains macro parameters if any.  Preserve backslash
16655
# newline sequences.
16656
 
16657
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16658
sed -n '
16659
s/.\{148\}/&'"$ac_delim"'/g
16660
t rset
16661
:rset
16662
s/^[     ]*#[    ]*define[       ][      ]*/ /
16663
t def
16664
d
16665
:def
16666
s/\\$//
16667
t bsnl
16668
s/["\\]/\\&/g
16669
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16670
D["\1"]=" \3"/p
16671
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16672
d
16673
:bsnl
16674
s/["\\]/\\&/g
16675
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16676
D["\1"]=" \3\\\\\\n"\\/p
16677
t cont
16678
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16679
t cont
16680
d
16681
:cont
16682
n
16683
s/.\{148\}/&'"$ac_delim"'/g
16684
t clear
16685
:clear
16686
s/\\$//
16687
t bsnlc
16688
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16689
d
16690
:bsnlc
16691
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16692
b cont
16693
' 
16694
s/'"$ac_delim"'/"\\\
16695
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16696
 
16697
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16698
  for (key in D) D_is_set[key] = 1
16699
  FS = ""
16700
}
16701
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16702
  line = \$ 0
16703
  split(line, arg, " ")
16704
  if (arg[1] == "#") {
16705
    defundef = arg[2]
16706
    mac1 = arg[3]
16707
  } else {
16708
    defundef = substr(arg[1], 2)
16709
    mac1 = arg[2]
16710
  }
16711
  split(mac1, mac2, "(") #)
16712
  macro = mac2[1]
16713
  prefix = substr(line, 1, index(line, defundef) - 1)
16714
  if (D_is_set[macro]) {
16715
    # Preserve the white space surrounding the "#".
16716
    print prefix "define", macro P[macro] D[macro]
16717
    next
16718
  } else {
16719
    # Replace #undef with comments.  This is necessary, for example,
16720
    # in the case of _POSIX_SOURCE, which is predefined and required
16721
    # on some systems where configure will not decide to define it.
16722
    if (defundef == "undef") {
16723
      print "/*", prefix defundef, macro, "*/"
16724
      next
16725
    }
16726
  }
16727
}
16728
{ print }
16729
_ACAWK
16730
_ACEOF
16731
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16732
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16733
fi # test -n "$CONFIG_HEADERS"
16734
 
16735
 
16736
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16737
shift
16738
for ac_tag
16739
do
16740
  case $ac_tag in
16741
  :[FHLC]) ac_mode=$ac_tag; continue;;
16742
  esac
16743
  case $ac_mode$ac_tag in
16744
  :[FHL]*:*);;
16745
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16746
  :[FH]-) ac_tag=-:-;;
16747
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16748
  esac
16749
  ac_save_IFS=$IFS
16750
  IFS=:
16751
  set x $ac_tag
16752
  IFS=$ac_save_IFS
16753
  shift
16754
  ac_file=$1
16755
  shift
16756
 
16757
  case $ac_mode in
16758
  :L) ac_source=$1;;
16759
  :[FH])
16760
    ac_file_inputs=
16761
    for ac_f
16762
    do
16763
      case $ac_f in
16764
      -) ac_f="$tmp/stdin";;
16765
      *) # Look for the file first in the build tree, then in the source tree
16766
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
16767
         # because $ac_f cannot contain `:'.
16768
         test -f "$ac_f" ||
16769
           case $ac_f in
16770
           [\\/$]*) false;;
16771
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16772
           esac ||
16773
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16774
      esac
16775
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16776
      as_fn_append ac_file_inputs " '$ac_f'"
16777
    done
16778
 
16779
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16780
    # use $as_me), people would be surprised to read:
16781
    #    /* config.h.  Generated by config.status.  */
16782
    configure_input='Generated from '`
16783
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16784
        `' by configure.'
16785
    if test x"$ac_file" != x-; then
16786
      configure_input="$ac_file.  $configure_input"
16787
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16788
$as_echo "$as_me: creating $ac_file" >&6;}
16789
    fi
16790
    # Neutralize special characters interpreted by sed in replacement strings.
16791
    case $configure_input in #(
16792
    *\&* | *\|* | *\\* )
16793
       ac_sed_conf_input=`$as_echo "$configure_input" |
16794
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16795
    *) ac_sed_conf_input=$configure_input;;
16796
    esac
16797
 
16798
    case $ac_tag in
16799
    *:-:* | *:-) cat >"$tmp/stdin" \
16800
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16801
    esac
16802
    ;;
16803
  esac
16804
 
16805
  ac_dir=`$as_dirname -- "$ac_file" ||
16806
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16807
         X"$ac_file" : 'X\(//\)[^/]' \| \
16808
         X"$ac_file" : 'X\(//\)$' \| \
16809
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16810
$as_echo X"$ac_file" |
16811
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16812
            s//\1/
16813
            q
16814
          }
16815
          /^X\(\/\/\)[^/].*/{
16816
            s//\1/
16817
            q
16818
          }
16819
          /^X\(\/\/\)$/{
16820
            s//\1/
16821
            q
16822
          }
16823
          /^X\(\/\).*/{
16824
            s//\1/
16825
            q
16826
          }
16827
          s/.*/./; q'`
16828
  as_dir="$ac_dir"; as_fn_mkdir_p
16829
  ac_builddir=.
16830
 
16831
case "$ac_dir" in
16832
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16833
*)
16834
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16835
  # A ".." for each directory in $ac_dir_suffix.
16836
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16837
  case $ac_top_builddir_sub in
16838
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16839
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16840
  esac ;;
16841
esac
16842
ac_abs_top_builddir=$ac_pwd
16843
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16844
# for backward compatibility:
16845
ac_top_builddir=$ac_top_build_prefix
16846
 
16847
case $srcdir in
16848
  .)  # We are building in place.
16849
    ac_srcdir=.
16850
    ac_top_srcdir=$ac_top_builddir_sub
16851
    ac_abs_top_srcdir=$ac_pwd ;;
16852
  [\\/]* | ?:[\\/]* )  # Absolute name.
16853
    ac_srcdir=$srcdir$ac_dir_suffix;
16854
    ac_top_srcdir=$srcdir
16855
    ac_abs_top_srcdir=$srcdir ;;
16856
  *) # Relative name.
16857
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16858
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16859
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16860
esac
16861
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16862
 
16863
 
16864
  case $ac_mode in
16865
  :F)
16866
  #
16867
  # CONFIG_FILE
16868
  #
16869
 
16870
  case $INSTALL in
16871
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16872
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16873
  esac
16874
  ac_MKDIR_P=$MKDIR_P
16875
  case $MKDIR_P in
16876
  [\\/$]* | ?:[\\/]* ) ;;
16877
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16878
  esac
16879
_ACEOF
16880
 
16881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16882
# If the template does not know about datarootdir, expand it.
16883
# FIXME: This hack should be removed a few years after 2.60.
16884
ac_datarootdir_hack=; ac_datarootdir_seen=
16885
ac_sed_dataroot='
16886
/datarootdir/ {
16887
  p
16888
  q
16889
}
16890
/@datadir@/p
16891
/@docdir@/p
16892
/@infodir@/p
16893
/@localedir@/p
16894
/@mandir@/p'
16895
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16896
*datarootdir*) ac_datarootdir_seen=yes;;
16897
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16898
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16899
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16900
_ACEOF
16901
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902
  ac_datarootdir_hack='
16903
  s&@datadir@&$datadir&g
16904
  s&@docdir@&$docdir&g
16905
  s&@infodir@&$infodir&g
16906
  s&@localedir@&$localedir&g
16907
  s&@mandir@&$mandir&g
16908
  s&\\\${datarootdir}&$datarootdir&g' ;;
16909
esac
16910
_ACEOF
16911
 
16912
# Neutralize VPATH when `$srcdir' = `.'.
16913
# Shell code in configure.ac might set extrasub.
16914
# FIXME: do we really want to maintain this feature?
16915
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16916
ac_sed_extra="$ac_vpsub
16917
$extrasub
16918
_ACEOF
16919
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16920
:t
16921
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16922
s|@configure_input@|$ac_sed_conf_input|;t t
16923
s&@top_builddir@&$ac_top_builddir_sub&;t t
16924
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16925
s&@srcdir@&$ac_srcdir&;t t
16926
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16927
s&@top_srcdir@&$ac_top_srcdir&;t t
16928
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16929
s&@builddir@&$ac_builddir&;t t
16930
s&@abs_builddir@&$ac_abs_builddir&;t t
16931
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16932
s&@INSTALL@&$ac_INSTALL&;t t
16933
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16934
$ac_datarootdir_hack
16935
"
16936
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16937
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16938
 
16939
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16940
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16941
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16942
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16943
which seems to be undefined.  Please make sure it is defined." >&5
16944
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16945
which seems to be undefined.  Please make sure it is defined." >&2;}
16946
 
16947
  rm -f "$tmp/stdin"
16948
  case $ac_file in
16949
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16950
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16951
  esac \
16952
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16953
 ;;
16954
  :H)
16955
  #
16956
  # CONFIG_HEADER
16957
  #
16958
  if test x"$ac_file" != x-; then
16959
    {
16960
      $as_echo "/* $configure_input  */" \
16961
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16962
    } >"$tmp/config.h" \
16963
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16964
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16965
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16966
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16967
    else
16968
      rm -f "$ac_file"
16969
      mv "$tmp/config.h" "$ac_file" \
16970
        || as_fn_error "could not create $ac_file" "$LINENO" 5
16971
    fi
16972
  else
16973
    $as_echo "/* $configure_input  */" \
16974
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16975
      || as_fn_error "could not create -" "$LINENO" 5
16976
  fi
16977
# Compute "$ac_file"'s index in $config_headers.
16978
_am_arg="$ac_file"
16979
_am_stamp_count=1
16980
for _am_header in $config_headers :; do
16981
  case $_am_header in
16982
    $_am_arg | $_am_arg:* )
16983
      break ;;
16984
    * )
16985
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16986
  esac
16987
done
16988
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16989
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990
         X"$_am_arg" : 'X\(//\)[^/]' \| \
16991
         X"$_am_arg" : 'X\(//\)$' \| \
16992
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16993
$as_echo X"$_am_arg" |
16994
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995
            s//\1/
16996
            q
16997
          }
16998
          /^X\(\/\/\)[^/].*/{
16999
            s//\1/
17000
            q
17001
          }
17002
          /^X\(\/\/\)$/{
17003
            s//\1/
17004
            q
17005
          }
17006
          /^X\(\/\).*/{
17007
            s//\1/
17008
            q
17009
          }
17010
          s/.*/./; q'`/stamp-h$_am_stamp_count
17011
 ;;
17012
 
17013
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17014
$as_echo "$as_me: executing $ac_file commands" >&6;}
17015
 ;;
17016
  esac
17017
 
17018
 
17019
  case $ac_file$ac_mode in
17020
    "default-1":C)
17021
# Only add multilib support code if we just rebuilt the top-level
17022
# Makefile.
17023
case " $CONFIG_FILES " in
17024
 *" Makefile "*)
17025
   ac_file=Makefile . ${multi_basedir}/config-ml.in
17026
   ;;
17027
esac ;;
17028
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17029
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17030
  # are listed without --file.  Let's play safe and only enable the eval
17031
  # if we detect the quoting.
17032
  case $CONFIG_FILES in
17033
  *\'*) eval set x "$CONFIG_FILES" ;;
17034
  *)   set x $CONFIG_FILES ;;
17035
  esac
17036
  shift
17037
  for mf
17038
  do
17039
    # Strip MF so we end up with the name of the file.
17040
    mf=`echo "$mf" | sed -e 's/:.*$//'`
17041
    # Check whether this is an Automake generated Makefile or not.
17042
    # We used to match only the files named `Makefile.in', but
17043
    # some people rename them; so instead we look at the file content.
17044
    # Grep'ing the first line is not enough: some people post-process
17045
    # each Makefile.in and add a new line on top of each file to say so.
17046
    # Grep'ing the whole file is not good either: AIX grep has a line
17047
    # limit of 2048, but all sed's we know have understand at least 4000.
17048
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17049
      dirpart=`$as_dirname -- "$mf" ||
17050
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17051
         X"$mf" : 'X\(//\)[^/]' \| \
17052
         X"$mf" : 'X\(//\)$' \| \
17053
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17054
$as_echo X"$mf" |
17055
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17056
            s//\1/
17057
            q
17058
          }
17059
          /^X\(\/\/\)[^/].*/{
17060
            s//\1/
17061
            q
17062
          }
17063
          /^X\(\/\/\)$/{
17064
            s//\1/
17065
            q
17066
          }
17067
          /^X\(\/\).*/{
17068
            s//\1/
17069
            q
17070
          }
17071
          s/.*/./; q'`
17072
    else
17073
      continue
17074
    fi
17075
    # Extract the definition of DEPDIR, am__include, and am__quote
17076
    # from the Makefile without running `make'.
17077
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17078
    test -z "$DEPDIR" && continue
17079
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17080
    test -z "am__include" && continue
17081
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17082
    # When using ansi2knr, U may be empty or an underscore; expand it
17083
    U=`sed -n 's/^U = //p' < "$mf"`
17084
    # Find all dependency output files, they are included files with
17085
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17086
    # simplest approach to changing $(DEPDIR) to its actual value in the
17087
    # expansion.
17088
    for file in `sed -n "
17089
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17090
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17091
      # Make sure the directory exists.
17092
      test -f "$dirpart/$file" && continue
17093
      fdir=`$as_dirname -- "$file" ||
17094
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17095
         X"$file" : 'X\(//\)[^/]' \| \
17096
         X"$file" : 'X\(//\)$' \| \
17097
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17098
$as_echo X"$file" |
17099
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17100
            s//\1/
17101
            q
17102
          }
17103
          /^X\(\/\/\)[^/].*/{
17104
            s//\1/
17105
            q
17106
          }
17107
          /^X\(\/\/\)$/{
17108
            s//\1/
17109
            q
17110
          }
17111
          /^X\(\/\).*/{
17112
            s//\1/
17113
            q
17114
          }
17115
          s/.*/./; q'`
17116
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17117
      # echo "creating $dirpart/$file"
17118
      echo '# dummy' > "$dirpart/$file"
17119
    done
17120
  done
17121
}
17122
 ;;
17123
    "libtool":C)
17124
 
17125
    # See if we are running on zsh, and set the options which allow our
17126
    # commands through without removal of \ escapes.
17127
    if test -n "${ZSH_VERSION+set}" ; then
17128
      setopt NO_GLOB_SUBST
17129
    fi
17130
 
17131
    cfgfile="${ofile}T"
17132
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17133
    $RM "$cfgfile"
17134
 
17135
    cat <<_LT_EOF >> "$cfgfile"
17136
#! $SHELL
17137
 
17138
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17139
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17140
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17141
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17142
#
17143
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17144
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17145
#   Written by Gordon Matzigkeit, 1996
17146
#
17147
#   This file is part of GNU Libtool.
17148
#
17149
# GNU Libtool is free software; you can redistribute it and/or
17150
# modify it under the terms of the GNU General Public License as
17151
# published by the Free Software Foundation; either version 2 of
17152
# the License, or (at your option) any later version.
17153
#
17154
# As a special exception to the GNU General Public License,
17155
# if you distribute this file as part of a program or library that
17156
# is built using GNU Libtool, you may include this file under the
17157
# same distribution terms that you use for the rest of that program.
17158
#
17159
# GNU Libtool is distributed in the hope that it will be useful,
17160
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17161
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17162
# GNU General Public License for more details.
17163
#
17164
# You should have received a copy of the GNU General Public License
17165
# along with GNU Libtool; see the file COPYING.  If not, a copy
17166
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17167
# obtained by writing to the Free Software Foundation, Inc.,
17168
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17169
 
17170
 
17171
# The names of the tagged configurations supported by this script.
17172
available_tags="CXX "
17173
 
17174
# ### BEGIN LIBTOOL CONFIG
17175
 
17176
# Which release of libtool.m4 was used?
17177
macro_version=$macro_version
17178
macro_revision=$macro_revision
17179
 
17180
# Whether or not to build shared libraries.
17181
build_libtool_libs=$enable_shared
17182
 
17183
# Whether or not to build static libraries.
17184
build_old_libs=$enable_static
17185
 
17186
# What type of objects to build.
17187
pic_mode=$pic_mode
17188
 
17189
# Whether or not to optimize for fast installation.
17190
fast_install=$enable_fast_install
17191
 
17192
# Shell to use when invoking shell scripts.
17193
SHELL=$lt_SHELL
17194
 
17195
# An echo program that protects backslashes.
17196
ECHO=$lt_ECHO
17197
 
17198
# The host system.
17199
host_alias=$host_alias
17200
host=$host
17201
host_os=$host_os
17202
 
17203
# The build system.
17204
build_alias=$build_alias
17205
build=$build
17206
build_os=$build_os
17207
 
17208
# A sed program that does not truncate output.
17209
SED=$lt_SED
17210
 
17211
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17212
Xsed="\$SED -e 1s/^X//"
17213
 
17214
# A grep program that handles long lines.
17215
GREP=$lt_GREP
17216
 
17217
# An ERE matcher.
17218
EGREP=$lt_EGREP
17219
 
17220
# A literal string matcher.
17221
FGREP=$lt_FGREP
17222
 
17223
# A BSD- or MS-compatible name lister.
17224
NM=$lt_NM
17225
 
17226
# Whether we need soft or hard links.
17227
LN_S=$lt_LN_S
17228
 
17229
# What is the maximum length of a command?
17230
max_cmd_len=$max_cmd_len
17231
 
17232
# Object file suffix (normally "o").
17233
objext=$ac_objext
17234
 
17235
# Executable file suffix (normally "").
17236
exeext=$exeext
17237
 
17238
# whether the shell understands "unset".
17239
lt_unset=$lt_unset
17240
 
17241
# turn spaces into newlines.
17242
SP2NL=$lt_lt_SP2NL
17243
 
17244
# turn newlines into spaces.
17245
NL2SP=$lt_lt_NL2SP
17246
 
17247
# An object symbol dumper.
17248
OBJDUMP=$lt_OBJDUMP
17249
 
17250
# Method to check whether dependent libraries are shared objects.
17251
deplibs_check_method=$lt_deplibs_check_method
17252
 
17253
# Command to use when deplibs_check_method == "file_magic".
17254
file_magic_cmd=$lt_file_magic_cmd
17255
 
17256
# The archiver.
17257
AR=$lt_AR
17258
AR_FLAGS=$lt_AR_FLAGS
17259
 
17260
# A symbol stripping program.
17261
STRIP=$lt_STRIP
17262
 
17263
# Commands used to install an old-style archive.
17264
RANLIB=$lt_RANLIB
17265
old_postinstall_cmds=$lt_old_postinstall_cmds
17266
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17267
 
17268
# Whether to use a lock for old archive extraction.
17269
lock_old_archive_extraction=$lock_old_archive_extraction
17270
 
17271
# A C compiler.
17272
LTCC=$lt_CC
17273
 
17274
# LTCC compiler flags.
17275
LTCFLAGS=$lt_CFLAGS
17276
 
17277
# Take the output of nm and produce a listing of raw symbols and C names.
17278
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17279
 
17280
# Transform the output of nm in a proper C declaration.
17281
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17282
 
17283
# Transform the output of nm in a C name address pair.
17284
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17285
 
17286
# Transform the output of nm in a C name address pair when lib prefix is needed.
17287
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17288
 
17289
# The name of the directory that contains temporary libtool files.
17290
objdir=$objdir
17291
 
17292
# Used to examine libraries when file_magic_cmd begins with "file".
17293
MAGIC_CMD=$MAGIC_CMD
17294
 
17295
# Must we lock files when doing compilation?
17296
need_locks=$lt_need_locks
17297
 
17298
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17299
DSYMUTIL=$lt_DSYMUTIL
17300
 
17301
# Tool to change global to local symbols on Mac OS X.
17302
NMEDIT=$lt_NMEDIT
17303
 
17304
# Tool to manipulate fat objects and archives on Mac OS X.
17305
LIPO=$lt_LIPO
17306
 
17307
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17308
OTOOL=$lt_OTOOL
17309
 
17310
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17311
OTOOL64=$lt_OTOOL64
17312
 
17313
# Old archive suffix (normally "a").
17314
libext=$libext
17315
 
17316
# Shared library suffix (normally ".so").
17317
shrext_cmds=$lt_shrext_cmds
17318
 
17319
# The commands to extract the exported symbol list from a shared archive.
17320
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17321
 
17322
# Variables whose values should be saved in libtool wrapper scripts and
17323
# restored at link time.
17324
variables_saved_for_relink=$lt_variables_saved_for_relink
17325
 
17326
# Do we need the "lib" prefix for modules?
17327
need_lib_prefix=$need_lib_prefix
17328
 
17329
# Do we need a version for libraries?
17330
need_version=$need_version
17331
 
17332
# Library versioning type.
17333
version_type=$version_type
17334
 
17335
# Shared library runtime path variable.
17336
runpath_var=$runpath_var
17337
 
17338
# Shared library path variable.
17339
shlibpath_var=$shlibpath_var
17340
 
17341
# Is shlibpath searched before the hard-coded library search path?
17342
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17343
 
17344
# Format of library name prefix.
17345
libname_spec=$lt_libname_spec
17346
 
17347
# List of archive names.  First name is the real one, the rest are links.
17348
# The last name is the one that the linker finds with -lNAME
17349
library_names_spec=$lt_library_names_spec
17350
 
17351
# The coded name of the library, if different from the real name.
17352
soname_spec=$lt_soname_spec
17353
 
17354
# Permission mode override for installation of shared libraries.
17355
install_override_mode=$lt_install_override_mode
17356
 
17357
# Command to use after installation of a shared archive.
17358
postinstall_cmds=$lt_postinstall_cmds
17359
 
17360
# Command to use after uninstallation of a shared archive.
17361
postuninstall_cmds=$lt_postuninstall_cmds
17362
 
17363
# Commands used to finish a libtool library installation in a directory.
17364
finish_cmds=$lt_finish_cmds
17365
 
17366
# As "finish_cmds", except a single script fragment to be evaled but
17367
# not shown.
17368
finish_eval=$lt_finish_eval
17369
 
17370
# Whether we should hardcode library paths into libraries.
17371
hardcode_into_libs=$hardcode_into_libs
17372
 
17373
# Compile-time system search path for libraries.
17374
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17375
 
17376
# Run-time system search path for libraries.
17377
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17378
 
17379
# Whether dlopen is supported.
17380
dlopen_support=$enable_dlopen
17381
 
17382
# Whether dlopen of programs is supported.
17383
dlopen_self=$enable_dlopen_self
17384
 
17385
# Whether dlopen of statically linked programs is supported.
17386
dlopen_self_static=$enable_dlopen_self_static
17387
 
17388
# Commands to strip libraries.
17389
old_striplib=$lt_old_striplib
17390
striplib=$lt_striplib
17391
 
17392
 
17393
# The linker used to build libraries.
17394
LD=$lt_LD
17395
 
17396
# How to create reloadable object files.
17397
reload_flag=$lt_reload_flag
17398
reload_cmds=$lt_reload_cmds
17399
 
17400
# Commands used to build an old-style archive.
17401
old_archive_cmds=$lt_old_archive_cmds
17402
 
17403
# A language specific compiler.
17404
CC=$lt_compiler
17405
 
17406
# Is the compiler the GNU compiler?
17407
with_gcc=$GCC
17408
 
17409
# Compiler flag to turn off builtin functions.
17410
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17411
 
17412
# How to pass a linker flag through the compiler.
17413
wl=$lt_lt_prog_compiler_wl
17414
 
17415
# Additional compiler flags for building library objects.
17416
pic_flag=$lt_lt_prog_compiler_pic
17417
 
17418
# Compiler flag to prevent dynamic linking.
17419
link_static_flag=$lt_lt_prog_compiler_static
17420
 
17421
# Does compiler simultaneously support -c and -o options?
17422
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17423
 
17424
# Whether or not to add -lc for building shared libraries.
17425
build_libtool_need_lc=$archive_cmds_need_lc
17426
 
17427
# Whether or not to disallow shared libs when runtime libs are static.
17428
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17429
 
17430
# Compiler flag to allow reflexive dlopens.
17431
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17432
 
17433
# Compiler flag to generate shared objects directly from archives.
17434
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17435
 
17436
# Whether the compiler copes with passing no objects directly.
17437
compiler_needs_object=$lt_compiler_needs_object
17438
 
17439
# Create an old-style archive from a shared archive.
17440
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17441
 
17442
# Create a temporary old-style archive to link instead of a shared archive.
17443
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17444
 
17445
# Commands used to build a shared archive.
17446
archive_cmds=$lt_archive_cmds
17447
archive_expsym_cmds=$lt_archive_expsym_cmds
17448
 
17449
# Commands used to build a loadable module if different from building
17450
# a shared archive.
17451
module_cmds=$lt_module_cmds
17452
module_expsym_cmds=$lt_module_expsym_cmds
17453
 
17454
# Whether we are building with GNU ld or not.
17455
with_gnu_ld=$lt_with_gnu_ld
17456
 
17457
# Flag that allows shared libraries with undefined symbols to be built.
17458
allow_undefined_flag=$lt_allow_undefined_flag
17459
 
17460
# Flag that enforces no undefined symbols.
17461
no_undefined_flag=$lt_no_undefined_flag
17462
 
17463
# Flag to hardcode \$libdir into a binary during linking.
17464
# This must work even if \$libdir does not exist
17465
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17466
 
17467
# If ld is used when linking, flag to hardcode \$libdir into a binary
17468
# during linking.  This must work even if \$libdir does not exist.
17469
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17470
 
17471
# Whether we need a single "-rpath" flag with a separated argument.
17472
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17473
 
17474
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17475
# DIR into the resulting binary.
17476
hardcode_direct=$hardcode_direct
17477
 
17478
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17479
# DIR into the resulting binary and the resulting library dependency is
17480
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17481
# library is relocated.
17482
hardcode_direct_absolute=$hardcode_direct_absolute
17483
 
17484
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17485
# into the resulting binary.
17486
hardcode_minus_L=$hardcode_minus_L
17487
 
17488
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17489
# into the resulting binary.
17490
hardcode_shlibpath_var=$hardcode_shlibpath_var
17491
 
17492
# Set to "yes" if building a shared library automatically hardcodes DIR
17493
# into the library and all subsequent libraries and executables linked
17494
# against it.
17495
hardcode_automatic=$hardcode_automatic
17496
 
17497
# Set to yes if linker adds runtime paths of dependent libraries
17498
# to runtime path list.
17499
inherit_rpath=$inherit_rpath
17500
 
17501
# Whether libtool must link a program against all its dependency libraries.
17502
link_all_deplibs=$link_all_deplibs
17503
 
17504
# Fix the shell variable \$srcfile for the compiler.
17505
fix_srcfile_path=$lt_fix_srcfile_path
17506
 
17507
# Set to "yes" if exported symbols are required.
17508
always_export_symbols=$always_export_symbols
17509
 
17510
# The commands to list exported symbols.
17511
export_symbols_cmds=$lt_export_symbols_cmds
17512
 
17513
# Symbols that should not be listed in the preloaded symbols.
17514
exclude_expsyms=$lt_exclude_expsyms
17515
 
17516
# Symbols that must always be exported.
17517
include_expsyms=$lt_include_expsyms
17518
 
17519
# Commands necessary for linking programs (against libraries) with templates.
17520
prelink_cmds=$lt_prelink_cmds
17521
 
17522
# Specify filename containing input files.
17523
file_list_spec=$lt_file_list_spec
17524
 
17525
# How to hardcode a shared library path into an executable.
17526
hardcode_action=$hardcode_action
17527
 
17528
# The directories searched by this compiler when creating a shared library.
17529
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17530
 
17531
# Dependencies to place before and after the objects being linked to
17532
# create a shared library.
17533
predep_objects=$lt_predep_objects
17534
postdep_objects=$lt_postdep_objects
17535
predeps=$lt_predeps
17536
postdeps=$lt_postdeps
17537
 
17538
# The library search path used internally by the compiler when linking
17539
# a shared library.
17540
compiler_lib_search_path=$lt_compiler_lib_search_path
17541
 
17542
# ### END LIBTOOL CONFIG
17543
 
17544
_LT_EOF
17545
 
17546
  case $host_os in
17547
  aix3*)
17548
    cat <<\_LT_EOF >> "$cfgfile"
17549
# AIX sometimes has problems with the GCC collect2 program.  For some
17550
# reason, if we set the COLLECT_NAMES environment variable, the problems
17551
# vanish in a puff of smoke.
17552
if test "X${COLLECT_NAMES+set}" != Xset; then
17553
  COLLECT_NAMES=
17554
  export COLLECT_NAMES
17555
fi
17556
_LT_EOF
17557
    ;;
17558
  esac
17559
 
17560
 
17561
ltmain="$ac_aux_dir/ltmain.sh"
17562
 
17563
 
17564
  # We use sed instead of cat because bash on DJGPP gets confused if
17565
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17566
  # text mode, it properly converts lines to CR/LF.  This bash problem
17567
  # is reportedly fixed, but why not run on old versions too?
17568
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17569
    || (rm -f "$cfgfile"; exit 1)
17570
 
17571
  case $xsi_shell in
17572
  yes)
17573
    cat << \_LT_EOF >> "$cfgfile"
17574
 
17575
# func_dirname file append nondir_replacement
17576
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17577
# otherwise set result to NONDIR_REPLACEMENT.
17578
func_dirname ()
17579
{
17580
  case ${1} in
17581
    */*) func_dirname_result="${1%/*}${2}" ;;
17582
    *  ) func_dirname_result="${3}" ;;
17583
  esac
17584
}
17585
 
17586
# func_basename file
17587
func_basename ()
17588
{
17589
  func_basename_result="${1##*/}"
17590
}
17591
 
17592
# func_dirname_and_basename file append nondir_replacement
17593
# perform func_basename and func_dirname in a single function
17594
# call:
17595
#   dirname:  Compute the dirname of FILE.  If nonempty,
17596
#             add APPEND to the result, otherwise set result
17597
#             to NONDIR_REPLACEMENT.
17598
#             value returned in "$func_dirname_result"
17599
#   basename: Compute filename of FILE.
17600
#             value retuned in "$func_basename_result"
17601
# Implementation must be kept synchronized with func_dirname
17602
# and func_basename. For efficiency, we do not delegate to
17603
# those functions but instead duplicate the functionality here.
17604
func_dirname_and_basename ()
17605
{
17606
  case ${1} in
17607
    */*) func_dirname_result="${1%/*}${2}" ;;
17608
    *  ) func_dirname_result="${3}" ;;
17609
  esac
17610
  func_basename_result="${1##*/}"
17611
}
17612
 
17613
# func_stripname prefix suffix name
17614
# strip PREFIX and SUFFIX off of NAME.
17615
# PREFIX and SUFFIX must not contain globbing or regex special
17616
# characters, hashes, percent signs, but SUFFIX may contain a leading
17617
# dot (in which case that matches only a dot).
17618
func_stripname ()
17619
{
17620
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17621
  # positional parameters, so assign one to ordinary parameter first.
17622
  func_stripname_result=${3}
17623
  func_stripname_result=${func_stripname_result#"${1}"}
17624
  func_stripname_result=${func_stripname_result%"${2}"}
17625
}
17626
 
17627
# func_opt_split
17628
func_opt_split ()
17629
{
17630
  func_opt_split_opt=${1%%=*}
17631
  func_opt_split_arg=${1#*=}
17632
}
17633
 
17634
# func_lo2o object
17635
func_lo2o ()
17636
{
17637
  case ${1} in
17638
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17639
    *)    func_lo2o_result=${1} ;;
17640
  esac
17641
}
17642
 
17643
# func_xform libobj-or-source
17644
func_xform ()
17645
{
17646
  func_xform_result=${1%.*}.lo
17647
}
17648
 
17649
# func_arith arithmetic-term...
17650
func_arith ()
17651
{
17652
  func_arith_result=$(( $* ))
17653
}
17654
 
17655
# func_len string
17656
# STRING may not start with a hyphen.
17657
func_len ()
17658
{
17659
  func_len_result=${#1}
17660
}
17661
 
17662
_LT_EOF
17663
    ;;
17664
  *) # Bourne compatible functions.
17665
    cat << \_LT_EOF >> "$cfgfile"
17666
 
17667
# func_dirname file append nondir_replacement
17668
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17669
# otherwise set result to NONDIR_REPLACEMENT.
17670
func_dirname ()
17671
{
17672
  # Extract subdirectory from the argument.
17673
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17674
  if test "X$func_dirname_result" = "X${1}"; then
17675
    func_dirname_result="${3}"
17676
  else
17677
    func_dirname_result="$func_dirname_result${2}"
17678
  fi
17679
}
17680
 
17681
# func_basename file
17682
func_basename ()
17683
{
17684
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17685
}
17686
 
17687
 
17688
# func_stripname prefix suffix name
17689
# strip PREFIX and SUFFIX off of NAME.
17690
# PREFIX and SUFFIX must not contain globbing or regex special
17691
# characters, hashes, percent signs, but SUFFIX may contain a leading
17692
# dot (in which case that matches only a dot).
17693
# func_strip_suffix prefix name
17694
func_stripname ()
17695
{
17696
  case ${2} in
17697
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17698
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17699
  esac
17700
}
17701
 
17702
# sed scripts:
17703
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17704
my_sed_long_arg='1s/^-[^=]*=//'
17705
 
17706
# func_opt_split
17707
func_opt_split ()
17708
{
17709
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17710
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17711
}
17712
 
17713
# func_lo2o object
17714
func_lo2o ()
17715
{
17716
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17717
}
17718
 
17719
# func_xform libobj-or-source
17720
func_xform ()
17721
{
17722
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17723
}
17724
 
17725
# func_arith arithmetic-term...
17726
func_arith ()
17727
{
17728
  func_arith_result=`expr "$@"`
17729
}
17730
 
17731
# func_len string
17732
# STRING may not start with a hyphen.
17733
func_len ()
17734
{
17735
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17736
}
17737
 
17738
_LT_EOF
17739
esac
17740
 
17741
case $lt_shell_append in
17742
  yes)
17743
    cat << \_LT_EOF >> "$cfgfile"
17744
 
17745
# func_append var value
17746
# Append VALUE to the end of shell variable VAR.
17747
func_append ()
17748
{
17749
  eval "$1+=\$2"
17750
}
17751
_LT_EOF
17752
    ;;
17753
  *)
17754
    cat << \_LT_EOF >> "$cfgfile"
17755
 
17756
# func_append var value
17757
# Append VALUE to the end of shell variable VAR.
17758
func_append ()
17759
{
17760
  eval "$1=\$$1\$2"
17761
}
17762
 
17763
_LT_EOF
17764
    ;;
17765
  esac
17766
 
17767
 
17768
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17769
    || (rm -f "$cfgfile"; exit 1)
17770
 
17771
  mv -f "$cfgfile" "$ofile" ||
17772
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17773
  chmod +x "$ofile"
17774
 
17775
 
17776
    cat <<_LT_EOF >> "$ofile"
17777
 
17778
# ### BEGIN LIBTOOL TAG CONFIG: CXX
17779
 
17780
# The linker used to build libraries.
17781
LD=$lt_LD_CXX
17782
 
17783
# How to create reloadable object files.
17784
reload_flag=$lt_reload_flag_CXX
17785
reload_cmds=$lt_reload_cmds_CXX
17786
 
17787
# Commands used to build an old-style archive.
17788
old_archive_cmds=$lt_old_archive_cmds_CXX
17789
 
17790
# A language specific compiler.
17791
CC=$lt_compiler_CXX
17792
 
17793
# Is the compiler the GNU compiler?
17794
with_gcc=$GCC_CXX
17795
 
17796
# Compiler flag to turn off builtin functions.
17797
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17798
 
17799
# How to pass a linker flag through the compiler.
17800
wl=$lt_lt_prog_compiler_wl_CXX
17801
 
17802
# Additional compiler flags for building library objects.
17803
pic_flag=$lt_lt_prog_compiler_pic_CXX
17804
 
17805
# Compiler flag to prevent dynamic linking.
17806
link_static_flag=$lt_lt_prog_compiler_static_CXX
17807
 
17808
# Does compiler simultaneously support -c and -o options?
17809
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17810
 
17811
# Whether or not to add -lc for building shared libraries.
17812
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17813
 
17814
# Whether or not to disallow shared libs when runtime libs are static.
17815
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17816
 
17817
# Compiler flag to allow reflexive dlopens.
17818
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17819
 
17820
# Compiler flag to generate shared objects directly from archives.
17821
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17822
 
17823
# Whether the compiler copes with passing no objects directly.
17824
compiler_needs_object=$lt_compiler_needs_object_CXX
17825
 
17826
# Create an old-style archive from a shared archive.
17827
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17828
 
17829
# Create a temporary old-style archive to link instead of a shared archive.
17830
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17831
 
17832
# Commands used to build a shared archive.
17833
archive_cmds=$lt_archive_cmds_CXX
17834
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17835
 
17836
# Commands used to build a loadable module if different from building
17837
# a shared archive.
17838
module_cmds=$lt_module_cmds_CXX
17839
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17840
 
17841
# Whether we are building with GNU ld or not.
17842
with_gnu_ld=$lt_with_gnu_ld_CXX
17843
 
17844
# Flag that allows shared libraries with undefined symbols to be built.
17845
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17846
 
17847
# Flag that enforces no undefined symbols.
17848
no_undefined_flag=$lt_no_undefined_flag_CXX
17849
 
17850
# Flag to hardcode \$libdir into a binary during linking.
17851
# This must work even if \$libdir does not exist
17852
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17853
 
17854
# If ld is used when linking, flag to hardcode \$libdir into a binary
17855
# during linking.  This must work even if \$libdir does not exist.
17856
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17857
 
17858
# Whether we need a single "-rpath" flag with a separated argument.
17859
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17860
 
17861
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17862
# DIR into the resulting binary.
17863
hardcode_direct=$hardcode_direct_CXX
17864
 
17865
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17866
# DIR into the resulting binary and the resulting library dependency is
17867
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17868
# library is relocated.
17869
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17870
 
17871
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17872
# into the resulting binary.
17873
hardcode_minus_L=$hardcode_minus_L_CXX
17874
 
17875
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17876
# into the resulting binary.
17877
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17878
 
17879
# Set to "yes" if building a shared library automatically hardcodes DIR
17880
# into the library and all subsequent libraries and executables linked
17881
# against it.
17882
hardcode_automatic=$hardcode_automatic_CXX
17883
 
17884
# Set to yes if linker adds runtime paths of dependent libraries
17885
# to runtime path list.
17886
inherit_rpath=$inherit_rpath_CXX
17887
 
17888
# Whether libtool must link a program against all its dependency libraries.
17889
link_all_deplibs=$link_all_deplibs_CXX
17890
 
17891
# Fix the shell variable \$srcfile for the compiler.
17892
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17893
 
17894
# Set to "yes" if exported symbols are required.
17895
always_export_symbols=$always_export_symbols_CXX
17896
 
17897
# The commands to list exported symbols.
17898
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17899
 
17900
# Symbols that should not be listed in the preloaded symbols.
17901
exclude_expsyms=$lt_exclude_expsyms_CXX
17902
 
17903
# Symbols that must always be exported.
17904
include_expsyms=$lt_include_expsyms_CXX
17905
 
17906
# Commands necessary for linking programs (against libraries) with templates.
17907
prelink_cmds=$lt_prelink_cmds_CXX
17908
 
17909
# Specify filename containing input files.
17910
file_list_spec=$lt_file_list_spec_CXX
17911
 
17912
# How to hardcode a shared library path into an executable.
17913
hardcode_action=$hardcode_action_CXX
17914
 
17915
# The directories searched by this compiler when creating a shared library.
17916
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17917
 
17918
# Dependencies to place before and after the objects being linked to
17919
# create a shared library.
17920
predep_objects=$lt_predep_objects_CXX
17921
postdep_objects=$lt_postdep_objects_CXX
17922
predeps=$lt_predeps_CXX
17923
postdeps=$lt_postdeps_CXX
17924
 
17925
# The library search path used internally by the compiler when linking
17926
# a shared library.
17927
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17928
 
17929
# ### END LIBTOOL TAG CONFIG: CXX
17930
_LT_EOF
17931
 
17932
 ;;
17933
 
17934
  esac
17935
done # for ac_tag
17936
 
17937
 
17938
as_fn_exit 0
17939
_ACEOF
17940
ac_clean_files=$ac_clean_files_save
17941
 
17942
test $ac_write_fail = 0 ||
17943
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17944
 
17945
 
17946
# configure is writing to config.log, and then calls config.status.
17947
# config.status does its own redirection, appending to config.log.
17948
# Unfortunately, on DOS this fails, as config.log is still kept open
17949
# by configure, so config.status won't be able to write to it; its
17950
# output is simply discarded.  So we exec the FD to /dev/null,
17951
# effectively closing config.log, so it can be properly (re)opened and
17952
# appended to by config.status.  When coming back to configure, we
17953
# need to make the FD available again.
17954
if test "$no_create" != yes; then
17955
  ac_cs_success=:
17956
  ac_config_status_args=
17957
  test "$silent" = yes &&
17958
    ac_config_status_args="$ac_config_status_args --quiet"
17959
  exec 5>/dev/null
17960
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17961
  exec 5>>config.log
17962
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17963
  # would make configure fail if this is the last instruction.
17964
  $ac_cs_success || as_fn_exit $?
17965
fi
17966
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17967
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17968
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17969
fi
17970
 

powered by: WebSVN 2.1.0

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