~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.65 for libclamavc++ devel.
 
4
#
 
5
# Report bugs to <http://bugs.clamav.net>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
234
$0: http://bugs.clamav.net about your system, including any
 
235
$0: error possibly output before this message. Then install
 
236
$0: a modern shell, or manually run the script under such a
 
237
$0: shell if you do have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
 
 
533
# Check that we are running under the correct shell.
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
 
535
 
 
536
case X$lt_ECHO in
 
537
X*--fallback-echo)
 
538
  # Remove one level of quotation (which was required for Make).
 
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
540
  ;;
 
541
esac
 
542
 
 
543
ECHO=${lt_ECHO-echo}
 
544
if test "X$1" = X--no-reexec; then
 
545
  # Discard the --no-reexec flag, and continue.
 
546
  shift
 
547
elif test "X$1" = X--fallback-echo; then
 
548
  # Avoid inline document here, it may be left over
 
549
  :
 
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
551
  # Yippee, $ECHO works!
 
552
  :
 
553
else
 
554
  # Restart under the correct shell.
 
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
556
fi
 
557
 
 
558
if test "X$1" = X--fallback-echo; then
 
559
  # used as fallback echo
 
560
  shift
 
561
  cat <<_LT_EOF
 
562
$*
 
563
_LT_EOF
 
564
  exit 0
 
565
fi
 
566
 
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
568
# if CDPATH is set.
 
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
570
 
 
571
if test -z "$lt_ECHO"; then
 
572
  if test "X${echo_test_string+set}" != Xset; then
 
573
    # find a string as large as possible, as long as the shell can cope with it
 
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
578
      then
 
579
        break
 
580
      fi
 
581
    done
 
582
  fi
 
583
 
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
587
    :
 
588
  else
 
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
590
    # backslashes.  This makes it impossible to quote backslashes using
 
591
    #   echo "$something" | sed 's/\\/\\\\/g'
 
592
    #
 
593
    # So, first we look for a working echo in the user's PATH.
 
594
 
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
596
    for dir in $PATH /usr/ucb; do
 
597
      IFS="$lt_save_ifs"
 
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
602
        ECHO="$dir/echo"
 
603
        break
 
604
      fi
 
605
    done
 
606
    IFS="$lt_save_ifs"
 
607
 
 
608
    if test "X$ECHO" = Xecho; then
 
609
      # We didn't find a better echo, so look for alternatives.
 
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
613
        # This shell has a builtin print -r that does the trick.
 
614
        ECHO='print -r'
 
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
617
        # If we have ksh, try running configure again with it.
 
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
619
        export ORIGINAL_CONFIG_SHELL
 
620
        CONFIG_SHELL=/bin/ksh
 
621
        export CONFIG_SHELL
 
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
623
      else
 
624
        # Try using printf.
 
625
        ECHO='printf %s\n'
 
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
          # Cool, printf works
 
630
          :
 
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = 'X\t' &&
 
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
636
          export CONFIG_SHELL
 
637
          SHELL="$CONFIG_SHELL"
 
638
          export SHELL
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = 'X\t' &&
 
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
645
        else
 
646
          # maybe with a smaller string...
 
647
          prev=:
 
648
 
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
651
            then
 
652
              break
 
653
            fi
 
654
            prev="$cmd"
 
655
          done
 
656
 
 
657
          if test "$prev" != 'sed 50q "$0"'; then
 
658
            echo_test_string=`eval $prev`
 
659
            export echo_test_string
 
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
661
          else
 
662
            # Oops.  We lost completely, so just stick with echo.
 
663
            ECHO=echo
 
664
          fi
 
665
        fi
 
666
      fi
 
667
    fi
 
668
  fi
 
669
fi
 
670
 
 
671
# Copy echo and quote the copy suitably for passing to libtool from
 
672
# the Makefile, instead of quoting the original, which is used later.
 
673
lt_ECHO=$ECHO
 
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
676
fi
 
677
 
 
678
 
 
679
 
 
680
 
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
 
683
 
 
684
# Name of the host.
 
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
686
# so uname gets run too.
 
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
688
 
 
689
#
 
690
# Initializations.
 
691
#
 
692
ac_default_prefix=/usr/local
 
693
ac_clean_files=
 
694
ac_config_libobj_dir=.
 
695
LIBOBJS=
 
696
cross_compiling=no
 
697
subdirs=
 
698
MFLAGS=
 
699
MAKEFLAGS=
 
700
 
 
701
# Identity of this package.
 
702
PACKAGE_NAME='libclamavc++'
 
703
PACKAGE_TARNAME='libclamavc--'
 
704
PACKAGE_VERSION='devel'
 
705
PACKAGE_STRING='libclamavc++ devel'
 
706
PACKAGE_BUGREPORT='http://bugs.clamav.net'
 
707
PACKAGE_URL=''
 
708
 
 
709
ac_unique_file="llvm/configure"
 
710
# Factoring default headers for most tests.
 
711
ac_includes_default="\
 
712
#include <stdio.h>
 
713
#ifdef HAVE_SYS_TYPES_H
 
714
# include <sys/types.h>
 
715
#endif
 
716
#ifdef HAVE_SYS_STAT_H
 
717
# include <sys/stat.h>
 
718
#endif
 
719
#ifdef STDC_HEADERS
 
720
# include <stdlib.h>
 
721
# include <stddef.h>
 
722
#else
 
723
# ifdef HAVE_STDLIB_H
 
724
#  include <stdlib.h>
 
725
# endif
 
726
#endif
 
727
#ifdef HAVE_STRING_H
 
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
729
#  include <memory.h>
 
730
# endif
 
731
# include <string.h>
 
732
#endif
 
733
#ifdef HAVE_STRINGS_H
 
734
# include <strings.h>
 
735
#endif
 
736
#ifdef HAVE_INTTYPES_H
 
737
# include <inttypes.h>
 
738
#endif
 
739
#ifdef HAVE_STDINT_H
 
740
# include <stdint.h>
 
741
#endif
 
742
#ifdef HAVE_UNISTD_H
 
743
# include <unistd.h>
 
744
#endif"
 
745
 
 
746
enable_option_checking=no
 
747
ac_subst_vars='am__EXEEXT_FALSE
 
748
am__EXEEXT_TRUE
 
749
LTLIBOBJS
 
750
LIBOBJS
 
751
BUILD_ARM_FALSE
 
752
BUILD_ARM_TRUE
 
753
BUILD_PPC_FALSE
 
754
BUILD_PPC_TRUE
 
755
BUILD_X86_FALSE
 
756
BUILD_X86_TRUE
 
757
THREAD_LIBS
 
758
DEBUG_BUILD_FALSE
 
759
DEBUG_BUILD_TRUE
 
760
subdirs
 
761
GMAKE
 
762
ifGNUmake
 
763
CXXCPP
 
764
CPP
 
765
OTOOL64
 
766
OTOOL
 
767
LIPO
 
768
NMEDIT
 
769
DSYMUTIL
 
770
lt_ECHO
 
771
RANLIB
 
772
AR
 
773
OBJDUMP
 
774
LN_S
 
775
NM
 
776
ac_ct_DUMPBIN
 
777
DUMPBIN
 
778
LD
 
779
FGREP
 
780
EGREP
 
781
GREP
 
782
SED
 
783
am__fastdepCC_FALSE
 
784
am__fastdepCC_TRUE
 
785
CCDEPMODE
 
786
ac_ct_CC
 
787
CFLAGS
 
788
CC
 
789
LIBTOOL
 
790
MAINT
 
791
MAINTAINER_MODE_FALSE
 
792
MAINTAINER_MODE_TRUE
 
793
am__fastdepCXX_FALSE
 
794
am__fastdepCXX_TRUE
 
795
CXXDEPMODE
 
796
AMDEPBACKSLASH
 
797
AMDEP_FALSE
 
798
AMDEP_TRUE
 
799
am__quote
 
800
am__include
 
801
DEPDIR
 
802
OBJEXT
 
803
EXEEXT
 
804
ac_ct_CXX
 
805
CPPFLAGS
 
806
LDFLAGS
 
807
CXXFLAGS
 
808
CXX
 
809
AM_BACKSLASH
 
810
AM_DEFAULT_VERBOSITY
 
811
am__untar
 
812
am__tar
 
813
AMTAR
 
814
am__leading_dot
 
815
SET_MAKE
 
816
AWK
 
817
mkdir_p
 
818
MKDIR_P
 
819
INSTALL_STRIP_PROGRAM
 
820
STRIP
 
821
install_sh
 
822
MAKEINFO
 
823
AUTOHEADER
 
824
AUTOMAKE
 
825
AUTOCONF
 
826
ACLOCAL
 
827
VERSION
 
828
PACKAGE
 
829
CYGPATH_W
 
830
am__isrc
 
831
INSTALL_DATA
 
832
INSTALL_SCRIPT
 
833
INSTALL_PROGRAM
 
834
target_os
 
835
target_vendor
 
836
target_cpu
 
837
target
 
838
host_os
 
839
host_vendor
 
840
host_cpu
 
841
host
 
842
build_os
 
843
build_vendor
 
844
build_cpu
 
845
build
 
846
target_alias
 
847
host_alias
 
848
build_alias
 
849
LIBS
 
850
ECHO_T
 
851
ECHO_N
 
852
ECHO_C
 
853
DEFS
 
854
mandir
 
855
localedir
 
856
libdir
 
857
psdir
 
858
pdfdir
 
859
dvidir
 
860
htmldir
 
861
infodir
 
862
docdir
 
863
oldincludedir
 
864
includedir
 
865
localstatedir
 
866
sharedstatedir
 
867
sysconfdir
 
868
datadir
 
869
datarootdir
 
870
libexecdir
 
871
sbindir
 
872
bindir
 
873
program_transform_name
 
874
prefix
 
875
exec_prefix
 
876
PACKAGE_URL
 
877
PACKAGE_BUGREPORT
 
878
PACKAGE_STRING
 
879
PACKAGE_VERSION
 
880
PACKAGE_TARNAME
 
881
PACKAGE_NAME
 
882
PATH_SEPARATOR
 
883
SHELL'
 
884
ac_subst_files=''
 
885
ac_user_opts='
 
886
enable_option_checking
 
887
enable_silent_rules
 
888
enable_dependency_tracking
 
889
enable_maintainer_mode
 
890
enable_static
 
891
enable_shared
 
892
with_pic
 
893
enable_fast_install
 
894
with_gnu_ld
 
895
enable_libtool_lock
 
896
enable_llvm
 
897
enable_optimized
 
898
enable_all_jit_targets
 
899
'
 
900
      ac_precious_vars='build_alias
 
901
host_alias
 
902
target_alias
 
903
CXX
 
904
CXXFLAGS
 
905
LDFLAGS
 
906
LIBS
 
907
CPPFLAGS
 
908
CCC
 
909
CC
 
910
CFLAGS
 
911
CPP
 
912
CXXCPP'
 
913
ac_subdirs_all='llvm'
 
914
 
 
915
# Initialize some variables set by options.
 
916
ac_init_help=
 
917
ac_init_version=false
 
918
ac_unrecognized_opts=
 
919
ac_unrecognized_sep=
 
920
# The variables have the same names as the options, with
 
921
# dashes changed to underlines.
 
922
cache_file=/dev/null
 
923
exec_prefix=NONE
 
924
no_create=
 
925
no_recursion=
 
926
prefix=NONE
 
927
program_prefix=NONE
 
928
program_suffix=NONE
 
929
program_transform_name=s,x,x,
 
930
silent=
 
931
site=
 
932
srcdir=
 
933
verbose=
 
934
x_includes=NONE
 
935
x_libraries=NONE
 
936
 
 
937
# Installation directory options.
 
938
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
939
# and all the variables that are supposed to be based on exec_prefix
 
940
# by default will actually change.
 
941
# Use braces instead of parens because sh, perl, etc. also accept them.
 
942
# (The list follows the same order as the GNU Coding Standards.)
 
943
bindir='${exec_prefix}/bin'
 
944
sbindir='${exec_prefix}/sbin'
 
945
libexecdir='${exec_prefix}/libexec'
 
946
datarootdir='${prefix}/share'
 
947
datadir='${datarootdir}'
 
948
sysconfdir='${prefix}/etc'
 
949
sharedstatedir='${prefix}/com'
 
950
localstatedir='${prefix}/var'
 
951
includedir='${prefix}/include'
 
952
oldincludedir='/usr/include'
 
953
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
954
infodir='${datarootdir}/info'
 
955
htmldir='${docdir}'
 
956
dvidir='${docdir}'
 
957
pdfdir='${docdir}'
 
958
psdir='${docdir}'
 
959
libdir='${exec_prefix}/lib'
 
960
localedir='${datarootdir}/locale'
 
961
mandir='${datarootdir}/man'
 
962
 
 
963
ac_prev=
 
964
ac_dashdash=
 
965
for ac_option
 
966
do
 
967
  # If the previous option needs an argument, assign it.
 
968
  if test -n "$ac_prev"; then
 
969
    eval $ac_prev=\$ac_option
 
970
    ac_prev=
 
971
    continue
 
972
  fi
 
973
 
 
974
  case $ac_option in
 
975
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
976
  *)    ac_optarg=yes ;;
 
977
  esac
 
978
 
 
979
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
980
 
 
981
  case $ac_dashdash$ac_option in
 
982
  --)
 
983
    ac_dashdash=yes ;;
 
984
 
 
985
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
986
    ac_prev=bindir ;;
 
987
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
988
    bindir=$ac_optarg ;;
 
989
 
 
990
  -build | --build | --buil | --bui | --bu)
 
991
    ac_prev=build_alias ;;
 
992
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
993
    build_alias=$ac_optarg ;;
 
994
 
 
995
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
996
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
997
    ac_prev=cache_file ;;
 
998
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
999
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1000
    cache_file=$ac_optarg ;;
 
1001
 
 
1002
  --config-cache | -C)
 
1003
    cache_file=config.cache ;;
 
1004
 
 
1005
  -datadir | --datadir | --datadi | --datad)
 
1006
    ac_prev=datadir ;;
 
1007
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1008
    datadir=$ac_optarg ;;
 
1009
 
 
1010
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1011
  | --dataroo | --dataro | --datar)
 
1012
    ac_prev=datarootdir ;;
 
1013
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1014
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1015
    datarootdir=$ac_optarg ;;
 
1016
 
 
1017
  -disable-* | --disable-*)
 
1018
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1019
    # Reject names that are not valid shell variable names.
 
1020
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1021
      as_fn_error "invalid feature name: $ac_useropt"
 
1022
    ac_useropt_orig=$ac_useropt
 
1023
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1024
    case $ac_user_opts in
 
1025
      *"
 
1026
"enable_$ac_useropt"
 
1027
"*) ;;
 
1028
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1029
         ac_unrecognized_sep=', ';;
 
1030
    esac
 
1031
    eval enable_$ac_useropt=no ;;
 
1032
 
 
1033
  -docdir | --docdir | --docdi | --doc | --do)
 
1034
    ac_prev=docdir ;;
 
1035
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1036
    docdir=$ac_optarg ;;
 
1037
 
 
1038
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1039
    ac_prev=dvidir ;;
 
1040
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1041
    dvidir=$ac_optarg ;;
 
1042
 
 
1043
  -enable-* | --enable-*)
 
1044
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1045
    # Reject names that are not valid shell variable names.
 
1046
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1047
      as_fn_error "invalid feature name: $ac_useropt"
 
1048
    ac_useropt_orig=$ac_useropt
 
1049
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1050
    case $ac_user_opts in
 
1051
      *"
 
1052
"enable_$ac_useropt"
 
1053
"*) ;;
 
1054
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1055
         ac_unrecognized_sep=', ';;
 
1056
    esac
 
1057
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1058
 
 
1059
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1060
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1061
  | --exec | --exe | --ex)
 
1062
    ac_prev=exec_prefix ;;
 
1063
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1064
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1065
  | --exec=* | --exe=* | --ex=*)
 
1066
    exec_prefix=$ac_optarg ;;
 
1067
 
 
1068
  -gas | --gas | --ga | --g)
 
1069
    # Obsolete; use --with-gas.
 
1070
    with_gas=yes ;;
 
1071
 
 
1072
  -help | --help | --hel | --he | -h)
 
1073
    ac_init_help=long ;;
 
1074
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1075
    ac_init_help=recursive ;;
 
1076
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1077
    ac_init_help=short ;;
 
1078
 
 
1079
  -host | --host | --hos | --ho)
 
1080
    ac_prev=host_alias ;;
 
1081
  -host=* | --host=* | --hos=* | --ho=*)
 
1082
    host_alias=$ac_optarg ;;
 
1083
 
 
1084
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1085
    ac_prev=htmldir ;;
 
1086
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1087
  | --ht=*)
 
1088
    htmldir=$ac_optarg ;;
 
1089
 
 
1090
  -includedir | --includedir | --includedi | --included | --include \
 
1091
  | --includ | --inclu | --incl | --inc)
 
1092
    ac_prev=includedir ;;
 
1093
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1094
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1095
    includedir=$ac_optarg ;;
 
1096
 
 
1097
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1098
    ac_prev=infodir ;;
 
1099
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1100
    infodir=$ac_optarg ;;
 
1101
 
 
1102
  -libdir | --libdir | --libdi | --libd)
 
1103
    ac_prev=libdir ;;
 
1104
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1105
    libdir=$ac_optarg ;;
 
1106
 
 
1107
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1108
  | --libexe | --libex | --libe)
 
1109
    ac_prev=libexecdir ;;
 
1110
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1111
  | --libexe=* | --libex=* | --libe=*)
 
1112
    libexecdir=$ac_optarg ;;
 
1113
 
 
1114
  -localedir | --localedir | --localedi | --localed | --locale)
 
1115
    ac_prev=localedir ;;
 
1116
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1117
    localedir=$ac_optarg ;;
 
1118
 
 
1119
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1120
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1121
    ac_prev=localstatedir ;;
 
1122
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1123
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1124
    localstatedir=$ac_optarg ;;
 
1125
 
 
1126
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1127
    ac_prev=mandir ;;
 
1128
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1129
    mandir=$ac_optarg ;;
 
1130
 
 
1131
  -nfp | --nfp | --nf)
 
1132
    # Obsolete; use --without-fp.
 
1133
    with_fp=no ;;
 
1134
 
 
1135
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1136
  | --no-cr | --no-c | -n)
 
1137
    no_create=yes ;;
 
1138
 
 
1139
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1140
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1141
    no_recursion=yes ;;
 
1142
 
 
1143
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1144
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1145
  | --oldin | --oldi | --old | --ol | --o)
 
1146
    ac_prev=oldincludedir ;;
 
1147
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1148
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1149
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1150
    oldincludedir=$ac_optarg ;;
 
1151
 
 
1152
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1153
    ac_prev=prefix ;;
 
1154
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1155
    prefix=$ac_optarg ;;
 
1156
 
 
1157
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1158
  | --program-pre | --program-pr | --program-p)
 
1159
    ac_prev=program_prefix ;;
 
1160
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1161
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1162
    program_prefix=$ac_optarg ;;
 
1163
 
 
1164
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1165
  | --program-suf | --program-su | --program-s)
 
1166
    ac_prev=program_suffix ;;
 
1167
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1168
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1169
    program_suffix=$ac_optarg ;;
 
1170
 
 
1171
  -program-transform-name | --program-transform-name \
 
1172
  | --program-transform-nam | --program-transform-na \
 
1173
  | --program-transform-n | --program-transform- \
 
1174
  | --program-transform | --program-transfor \
 
1175
  | --program-transfo | --program-transf \
 
1176
  | --program-trans | --program-tran \
 
1177
  | --progr-tra | --program-tr | --program-t)
 
1178
    ac_prev=program_transform_name ;;
 
1179
  -program-transform-name=* | --program-transform-name=* \
 
1180
  | --program-transform-nam=* | --program-transform-na=* \
 
1181
  | --program-transform-n=* | --program-transform-=* \
 
1182
  | --program-transform=* | --program-transfor=* \
 
1183
  | --program-transfo=* | --program-transf=* \
 
1184
  | --program-trans=* | --program-tran=* \
 
1185
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1186
    program_transform_name=$ac_optarg ;;
 
1187
 
 
1188
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1189
    ac_prev=pdfdir ;;
 
1190
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1191
    pdfdir=$ac_optarg ;;
 
1192
 
 
1193
  -psdir | --psdir | --psdi | --psd | --ps)
 
1194
    ac_prev=psdir ;;
 
1195
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1196
    psdir=$ac_optarg ;;
 
1197
 
 
1198
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1199
  | -silent | --silent | --silen | --sile | --sil)
 
1200
    silent=yes ;;
 
1201
 
 
1202
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1203
    ac_prev=sbindir ;;
 
1204
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1205
  | --sbi=* | --sb=*)
 
1206
    sbindir=$ac_optarg ;;
 
1207
 
 
1208
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1209
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1210
  | --sharedst | --shareds | --shared | --share | --shar \
 
1211
  | --sha | --sh)
 
1212
    ac_prev=sharedstatedir ;;
 
1213
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1214
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1215
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1216
  | --sha=* | --sh=*)
 
1217
    sharedstatedir=$ac_optarg ;;
 
1218
 
 
1219
  -site | --site | --sit)
 
1220
    ac_prev=site ;;
 
1221
  -site=* | --site=* | --sit=*)
 
1222
    site=$ac_optarg ;;
 
1223
 
 
1224
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1225
    ac_prev=srcdir ;;
 
1226
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1227
    srcdir=$ac_optarg ;;
 
1228
 
 
1229
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1230
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1231
    ac_prev=sysconfdir ;;
 
1232
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1233
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1234
    sysconfdir=$ac_optarg ;;
 
1235
 
 
1236
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1237
    ac_prev=target_alias ;;
 
1238
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1239
    target_alias=$ac_optarg ;;
 
1240
 
 
1241
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1242
    verbose=yes ;;
 
1243
 
 
1244
  -version | --version | --versio | --versi | --vers | -V)
 
1245
    ac_init_version=: ;;
 
1246
 
 
1247
  -with-* | --with-*)
 
1248
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1249
    # Reject names that are not valid shell variable names.
 
1250
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1251
      as_fn_error "invalid package name: $ac_useropt"
 
1252
    ac_useropt_orig=$ac_useropt
 
1253
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1254
    case $ac_user_opts in
 
1255
      *"
 
1256
"with_$ac_useropt"
 
1257
"*) ;;
 
1258
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1259
         ac_unrecognized_sep=', ';;
 
1260
    esac
 
1261
    eval with_$ac_useropt=\$ac_optarg ;;
 
1262
 
 
1263
  -without-* | --without-*)
 
1264
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1265
    # Reject names that are not valid shell variable names.
 
1266
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1267
      as_fn_error "invalid package name: $ac_useropt"
 
1268
    ac_useropt_orig=$ac_useropt
 
1269
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1270
    case $ac_user_opts in
 
1271
      *"
 
1272
"with_$ac_useropt"
 
1273
"*) ;;
 
1274
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1275
         ac_unrecognized_sep=', ';;
 
1276
    esac
 
1277
    eval with_$ac_useropt=no ;;
 
1278
 
 
1279
  --x)
 
1280
    # Obsolete; use --with-x.
 
1281
    with_x=yes ;;
 
1282
 
 
1283
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1284
  | --x-incl | --x-inc | --x-in | --x-i)
 
1285
    ac_prev=x_includes ;;
 
1286
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1287
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1288
    x_includes=$ac_optarg ;;
 
1289
 
 
1290
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1291
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1292
    ac_prev=x_libraries ;;
 
1293
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1294
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1295
    x_libraries=$ac_optarg ;;
 
1296
 
 
1297
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1298
Try \`$0 --help' for more information."
 
1299
    ;;
 
1300
 
 
1301
  *=*)
 
1302
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1303
    # Reject names that are not valid shell variable names.
 
1304
    case $ac_envvar in #(
 
1305
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1306
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1307
    esac
 
1308
    eval $ac_envvar=\$ac_optarg
 
1309
    export $ac_envvar ;;
 
1310
 
 
1311
  *)
 
1312
    # FIXME: should be removed in autoconf 3.0.
 
1313
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1314
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1315
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1316
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1317
    ;;
 
1318
 
 
1319
  esac
 
1320
done
 
1321
 
 
1322
if test -n "$ac_prev"; then
 
1323
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1324
  as_fn_error "missing argument to $ac_option"
 
1325
fi
 
1326
 
 
1327
if test -n "$ac_unrecognized_opts"; then
 
1328
  case $enable_option_checking in
 
1329
    no) ;;
 
1330
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1331
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1332
  esac
 
1333
fi
 
1334
 
 
1335
# Check all directory arguments for consistency.
 
1336
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1337
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1338
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1339
                libdir localedir mandir
 
1340
do
 
1341
  eval ac_val=\$$ac_var
 
1342
  # Remove trailing slashes.
 
1343
  case $ac_val in
 
1344
    */ )
 
1345
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1346
      eval $ac_var=\$ac_val;;
 
1347
  esac
 
1348
  # Be sure to have absolute directory names.
 
1349
  case $ac_val in
 
1350
    [\\/$]* | ?:[\\/]* )  continue;;
 
1351
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1352
  esac
 
1353
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1354
done
 
1355
 
 
1356
# There might be people who depend on the old broken behavior: `$host'
 
1357
# used to hold the argument of --host etc.
 
1358
# FIXME: To remove some day.
 
1359
build=$build_alias
 
1360
host=$host_alias
 
1361
target=$target_alias
 
1362
 
 
1363
# FIXME: To remove some day.
 
1364
if test "x$host_alias" != x; then
 
1365
  if test "x$build_alias" = x; then
 
1366
    cross_compiling=maybe
 
1367
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1368
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1369
  elif test "x$build_alias" != "x$host_alias"; then
 
1370
    cross_compiling=yes
 
1371
  fi
 
1372
fi
 
1373
 
 
1374
ac_tool_prefix=
 
1375
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1376
 
 
1377
test "$silent" = yes && exec 6>/dev/null
 
1378
 
 
1379
 
 
1380
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1381
ac_ls_di=`ls -di .` &&
 
1382
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1383
  as_fn_error "working directory cannot be determined"
 
1384
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1385
  as_fn_error "pwd does not report name of working directory"
 
1386
 
 
1387
 
 
1388
# Find the source files, if location was not specified.
 
1389
if test -z "$srcdir"; then
 
1390
  ac_srcdir_defaulted=yes
 
1391
  # Try the directory containing this script, then the parent directory.
 
1392
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1393
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1394
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1395
         X"$as_myself" : 'X\(//\)$' \| \
 
1396
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1397
$as_echo X"$as_myself" |
 
1398
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1399
            s//\1/
 
1400
            q
 
1401
          }
 
1402
          /^X\(\/\/\)[^/].*/{
 
1403
            s//\1/
 
1404
            q
 
1405
          }
 
1406
          /^X\(\/\/\)$/{
 
1407
            s//\1/
 
1408
            q
 
1409
          }
 
1410
          /^X\(\/\).*/{
 
1411
            s//\1/
 
1412
            q
 
1413
          }
 
1414
          s/.*/./; q'`
 
1415
  srcdir=$ac_confdir
 
1416
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1417
    srcdir=..
 
1418
  fi
 
1419
else
 
1420
  ac_srcdir_defaulted=no
 
1421
fi
 
1422
if test ! -r "$srcdir/$ac_unique_file"; then
 
1423
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1424
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1425
fi
 
1426
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1427
ac_abs_confdir=`(
 
1428
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1429
        pwd)`
 
1430
# When building in place, set srcdir=.
 
1431
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1432
  srcdir=.
 
1433
fi
 
1434
# Remove unnecessary trailing slashes from srcdir.
 
1435
# Double slashes in file names in object file debugging info
 
1436
# mess up M-x gdb in Emacs.
 
1437
case $srcdir in
 
1438
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1439
esac
 
1440
for ac_var in $ac_precious_vars; do
 
1441
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1442
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1443
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1444
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1445
done
 
1446
 
 
1447
#
 
1448
# Report the --help message.
 
1449
#
 
1450
if test "$ac_init_help" = "long"; then
 
1451
  # Omit some internal or obsolete options to make the list less imposing.
 
1452
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1453
  cat <<_ACEOF
 
1454
\`configure' configures libclamavc++ devel to adapt to many kinds of systems.
 
1455
 
 
1456
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1457
 
 
1458
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1459
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1460
 
 
1461
Defaults for the options are specified in brackets.
 
1462
 
 
1463
Configuration:
 
1464
  -h, --help              display this help and exit
 
1465
      --help=short        display options specific to this package
 
1466
      --help=recursive    display the short help of all the included packages
 
1467
  -V, --version           display version information and exit
 
1468
  -q, --quiet, --silent   do not print \`checking...' messages
 
1469
      --cache-file=FILE   cache test results in FILE [disabled]
 
1470
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1471
  -n, --no-create         do not create output files
 
1472
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1473
 
 
1474
Installation directories:
 
1475
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1476
                          [$ac_default_prefix]
 
1477
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1478
                          [PREFIX]
 
1479
 
 
1480
By default, \`make install' will install all the files in
 
1481
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1482
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1483
for instance \`--prefix=\$HOME'.
 
1484
 
 
1485
For better control, use the options below.
 
1486
 
 
1487
Fine tuning of the installation directories:
 
1488
  --bindir=DIR            user executables [EPREFIX/bin]
 
1489
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1490
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1491
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1492
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1493
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1494
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1495
  --includedir=DIR        C header files [PREFIX/include]
 
1496
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1497
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1498
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1499
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1500
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1501
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1502
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libclamavc--]
 
1503
  --htmldir=DIR           html documentation [DOCDIR]
 
1504
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1505
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1506
  --psdir=DIR             ps documentation [DOCDIR]
 
1507
_ACEOF
 
1508
 
 
1509
  cat <<\_ACEOF
 
1510
 
 
1511
Program names:
 
1512
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1513
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1514
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1515
 
 
1516
System types:
 
1517
  --build=BUILD     configure for building on BUILD [guessed]
 
1518
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1519
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1520
_ACEOF
 
1521
fi
 
1522
 
 
1523
if test -n "$ac_init_help"; then
 
1524
  case $ac_init_help in
 
1525
     short | recursive ) echo "Configuration of libclamavc++ devel:";;
 
1526
   esac
 
1527
  cat <<\_ACEOF
 
1528
 
 
1529
Optional Features:
 
1530
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1531
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1532
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1533
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1534
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1535
  --disable-dependency-tracking  speeds up one-time build
 
1536
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1537
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1538
                          (and sometimes confusing) to the casual installer
 
1539
  --enable-static[=PKGS]  build static libraries [default=no]
 
1540
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1541
  --enable-fast-install[=PKGS]
 
1542
                          optimize for fast installation [default=yes]
 
1543
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1544
  -enable-llvm            Enable 'llvm' JIT/verifier support [default=auto]
 
1545
  -enable-optimized       Compile with optimizations enabled (default is YES)
 
1546
  -enable-all-jit-targets Build all the targets that support JIT for testing
 
1547
                          (default NO)
 
1548
 
 
1549
Optional Packages:
 
1550
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1551
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1552
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1553
                          both]
 
1554
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1555
 
 
1556
Some influential environment variables:
 
1557
  CXX         C++ compiler command
 
1558
  CXXFLAGS    C++ compiler flags
 
1559
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1560
              nonstandard directory <lib dir>
 
1561
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1562
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1563
              you have headers in a nonstandard directory <include dir>
 
1564
  CC          C compiler command
 
1565
  CFLAGS      C compiler flags
 
1566
  CPP         C preprocessor
 
1567
  CXXCPP      C++ preprocessor
 
1568
 
 
1569
Use these variables to override the choices made by `configure' or to help
 
1570
it to find libraries and programs with nonstandard names/locations.
 
1571
 
 
1572
Report bugs to <http://bugs.clamav.net>.
 
1573
_ACEOF
 
1574
ac_status=$?
 
1575
fi
 
1576
 
 
1577
if test "$ac_init_help" = "recursive"; then
 
1578
  # If there are subdirs, report their specific --help.
 
1579
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1580
    test -d "$ac_dir" ||
 
1581
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1582
      continue
 
1583
    ac_builddir=.
 
1584
 
 
1585
case "$ac_dir" in
 
1586
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1587
*)
 
1588
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1589
  # A ".." for each directory in $ac_dir_suffix.
 
1590
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1591
  case $ac_top_builddir_sub in
 
1592
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1593
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1594
  esac ;;
 
1595
esac
 
1596
ac_abs_top_builddir=$ac_pwd
 
1597
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1598
# for backward compatibility:
 
1599
ac_top_builddir=$ac_top_build_prefix
 
1600
 
 
1601
case $srcdir in
 
1602
  .)  # We are building in place.
 
1603
    ac_srcdir=.
 
1604
    ac_top_srcdir=$ac_top_builddir_sub
 
1605
    ac_abs_top_srcdir=$ac_pwd ;;
 
1606
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1607
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1608
    ac_top_srcdir=$srcdir
 
1609
    ac_abs_top_srcdir=$srcdir ;;
 
1610
  *) # Relative name.
 
1611
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1612
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1613
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1614
esac
 
1615
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1616
 
 
1617
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1618
    # Check for guested configure.
 
1619
    if test -f "$ac_srcdir/configure.gnu"; then
 
1620
      echo &&
 
1621
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1622
    elif test -f "$ac_srcdir/configure"; then
 
1623
      echo &&
 
1624
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1625
    else
 
1626
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1627
    fi || ac_status=$?
 
1628
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1629
  done
 
1630
fi
 
1631
 
 
1632
test -n "$ac_init_help" && exit $ac_status
 
1633
if $ac_init_version; then
 
1634
  cat <<\_ACEOF
 
1635
libclamavc++ configure devel
 
1636
generated by GNU Autoconf 2.65
 
1637
 
 
1638
Copyright (C) 2009 Free Software Foundation, Inc.
 
1639
This configure script is free software; the Free Software Foundation
 
1640
gives unlimited permission to copy, distribute and modify it.
 
1641
_ACEOF
 
1642
  exit
 
1643
fi
 
1644
 
 
1645
## ------------------------ ##
 
1646
## Autoconf initialization. ##
 
1647
## ------------------------ ##
 
1648
 
 
1649
# ac_fn_cxx_try_compile LINENO
 
1650
# ----------------------------
 
1651
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1652
ac_fn_cxx_try_compile ()
 
1653
{
 
1654
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1655
  rm -f conftest.$ac_objext
 
1656
  if { { ac_try="$ac_compile"
 
1657
case "(($ac_try" in
 
1658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1659
  *) ac_try_echo=$ac_try;;
 
1660
esac
 
1661
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1662
$as_echo "$ac_try_echo"; } >&5
 
1663
  (eval "$ac_compile") 2>conftest.err
 
1664
  ac_status=$?
 
1665
  if test -s conftest.err; then
 
1666
    grep -v '^ *+' conftest.err >conftest.er1
 
1667
    cat conftest.er1 >&5
 
1668
    mv -f conftest.er1 conftest.err
 
1669
  fi
 
1670
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1671
  test $ac_status = 0; } && {
 
1672
         test -z "$ac_cxx_werror_flag" ||
 
1673
         test ! -s conftest.err
 
1674
       } && test -s conftest.$ac_objext; then :
 
1675
  ac_retval=0
 
1676
else
 
1677
  $as_echo "$as_me: failed program was:" >&5
 
1678
sed 's/^/| /' conftest.$ac_ext >&5
 
1679
 
 
1680
        ac_retval=1
 
1681
fi
 
1682
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1683
  as_fn_set_status $ac_retval
 
1684
 
 
1685
} # ac_fn_cxx_try_compile
 
1686
 
 
1687
# ac_fn_c_try_compile LINENO
 
1688
# --------------------------
 
1689
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1690
ac_fn_c_try_compile ()
 
1691
{
 
1692
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1693
  rm -f conftest.$ac_objext
 
1694
  if { { ac_try="$ac_compile"
 
1695
case "(($ac_try" in
 
1696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1697
  *) ac_try_echo=$ac_try;;
 
1698
esac
 
1699
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1700
$as_echo "$ac_try_echo"; } >&5
 
1701
  (eval "$ac_compile") 2>conftest.err
 
1702
  ac_status=$?
 
1703
  if test -s conftest.err; then
 
1704
    grep -v '^ *+' conftest.err >conftest.er1
 
1705
    cat conftest.er1 >&5
 
1706
    mv -f conftest.er1 conftest.err
 
1707
  fi
 
1708
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1709
  test $ac_status = 0; } && {
 
1710
         test -z "$ac_c_werror_flag" ||
 
1711
         test ! -s conftest.err
 
1712
       } && test -s conftest.$ac_objext; then :
 
1713
  ac_retval=0
 
1714
else
 
1715
  $as_echo "$as_me: failed program was:" >&5
 
1716
sed 's/^/| /' conftest.$ac_ext >&5
 
1717
 
 
1718
        ac_retval=1
 
1719
fi
 
1720
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1721
  as_fn_set_status $ac_retval
 
1722
 
 
1723
} # ac_fn_c_try_compile
 
1724
 
 
1725
# ac_fn_c_try_link LINENO
 
1726
# -----------------------
 
1727
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1728
ac_fn_c_try_link ()
 
1729
{
 
1730
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1731
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1732
  if { { ac_try="$ac_link"
 
1733
case "(($ac_try" in
 
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1735
  *) ac_try_echo=$ac_try;;
 
1736
esac
 
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1738
$as_echo "$ac_try_echo"; } >&5
 
1739
  (eval "$ac_link") 2>conftest.err
 
1740
  ac_status=$?
 
1741
  if test -s conftest.err; then
 
1742
    grep -v '^ *+' conftest.err >conftest.er1
 
1743
    cat conftest.er1 >&5
 
1744
    mv -f conftest.er1 conftest.err
 
1745
  fi
 
1746
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1747
  test $ac_status = 0; } && {
 
1748
         test -z "$ac_c_werror_flag" ||
 
1749
         test ! -s conftest.err
 
1750
       } && test -s conftest$ac_exeext && {
 
1751
         test "$cross_compiling" = yes ||
 
1752
         $as_test_x conftest$ac_exeext
 
1753
       }; then :
 
1754
  ac_retval=0
 
1755
else
 
1756
  $as_echo "$as_me: failed program was:" >&5
 
1757
sed 's/^/| /' conftest.$ac_ext >&5
 
1758
 
 
1759
        ac_retval=1
 
1760
fi
 
1761
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1762
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1763
  # interfere with the next link command; also delete a directory that is
 
1764
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1765
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1766
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1767
  as_fn_set_status $ac_retval
 
1768
 
 
1769
} # ac_fn_c_try_link
 
1770
 
 
1771
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1772
# -------------------------------------------------------
 
1773
# Tests whether HEADER exists and can be compiled using the include files in
 
1774
# INCLUDES, setting the cache variable VAR accordingly.
 
1775
ac_fn_c_check_header_compile ()
 
1776
{
 
1777
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1778
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1779
$as_echo_n "checking for $2... " >&6; }
 
1780
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1781
  $as_echo_n "(cached) " >&6
 
1782
else
 
1783
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1784
/* end confdefs.h.  */
 
1785
$4
 
1786
#include <$2>
 
1787
_ACEOF
 
1788
if ac_fn_c_try_compile "$LINENO"; then :
 
1789
  eval "$3=yes"
 
1790
else
 
1791
  eval "$3=no"
 
1792
fi
 
1793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1794
fi
 
1795
eval ac_res=\$$3
 
1796
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1797
$as_echo "$ac_res" >&6; }
 
1798
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1799
 
 
1800
} # ac_fn_c_check_header_compile
 
1801
 
 
1802
# ac_fn_c_try_cpp LINENO
 
1803
# ----------------------
 
1804
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1805
ac_fn_c_try_cpp ()
 
1806
{
 
1807
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1808
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1809
case "(($ac_try" in
 
1810
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1811
  *) ac_try_echo=$ac_try;;
 
1812
esac
 
1813
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1814
$as_echo "$ac_try_echo"; } >&5
 
1815
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1816
  ac_status=$?
 
1817
  if test -s conftest.err; then
 
1818
    grep -v '^ *+' conftest.err >conftest.er1
 
1819
    cat conftest.er1 >&5
 
1820
    mv -f conftest.er1 conftest.err
 
1821
  fi
 
1822
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1823
  test $ac_status = 0; } >/dev/null && {
 
1824
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1825
         test ! -s conftest.err
 
1826
       }; then :
 
1827
  ac_retval=0
 
1828
else
 
1829
  $as_echo "$as_me: failed program was:" >&5
 
1830
sed 's/^/| /' conftest.$ac_ext >&5
 
1831
 
 
1832
    ac_retval=1
 
1833
fi
 
1834
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1835
  as_fn_set_status $ac_retval
 
1836
 
 
1837
} # ac_fn_c_try_cpp
 
1838
 
 
1839
# ac_fn_c_try_run LINENO
 
1840
# ----------------------
 
1841
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1842
# that executables *can* be run.
 
1843
ac_fn_c_try_run ()
 
1844
{
 
1845
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1846
  if { { ac_try="$ac_link"
 
1847
case "(($ac_try" in
 
1848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1849
  *) ac_try_echo=$ac_try;;
 
1850
esac
 
1851
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1852
$as_echo "$ac_try_echo"; } >&5
 
1853
  (eval "$ac_link") 2>&5
 
1854
  ac_status=$?
 
1855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1856
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1857
  { { case "(($ac_try" in
 
1858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1859
  *) ac_try_echo=$ac_try;;
 
1860
esac
 
1861
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1862
$as_echo "$ac_try_echo"; } >&5
 
1863
  (eval "$ac_try") 2>&5
 
1864
  ac_status=$?
 
1865
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1866
  test $ac_status = 0; }; }; then :
 
1867
  ac_retval=0
 
1868
else
 
1869
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1870
       $as_echo "$as_me: failed program was:" >&5
 
1871
sed 's/^/| /' conftest.$ac_ext >&5
 
1872
 
 
1873
       ac_retval=$ac_status
 
1874
fi
 
1875
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1876
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1877
  as_fn_set_status $ac_retval
 
1878
 
 
1879
} # ac_fn_c_try_run
 
1880
 
 
1881
# ac_fn_c_check_func LINENO FUNC VAR
 
1882
# ----------------------------------
 
1883
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1884
ac_fn_c_check_func ()
 
1885
{
 
1886
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1888
$as_echo_n "checking for $2... " >&6; }
 
1889
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1890
  $as_echo_n "(cached) " >&6
 
1891
else
 
1892
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1893
/* end confdefs.h.  */
 
1894
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1895
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1896
#define $2 innocuous_$2
 
1897
 
 
1898
/* System header to define __stub macros and hopefully few prototypes,
 
1899
    which can conflict with char $2 (); below.
 
1900
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1901
    <limits.h> exists even on freestanding compilers.  */
 
1902
 
 
1903
#ifdef __STDC__
 
1904
# include <limits.h>
 
1905
#else
 
1906
# include <assert.h>
 
1907
#endif
 
1908
 
 
1909
#undef $2
 
1910
 
 
1911
/* Override any GCC internal prototype to avoid an error.
 
1912
   Use char because int might match the return type of a GCC
 
1913
   builtin and then its argument prototype would still apply.  */
 
1914
#ifdef __cplusplus
 
1915
extern "C"
 
1916
#endif
 
1917
char $2 ();
 
1918
/* The GNU C library defines this for functions which it implements
 
1919
    to always fail with ENOSYS.  Some functions are actually named
 
1920
    something starting with __ and the normal name is an alias.  */
 
1921
#if defined __stub_$2 || defined __stub___$2
 
1922
choke me
 
1923
#endif
 
1924
 
 
1925
int
 
1926
main ()
 
1927
{
 
1928
return $2 ();
 
1929
  ;
 
1930
  return 0;
 
1931
}
 
1932
_ACEOF
 
1933
if ac_fn_c_try_link "$LINENO"; then :
 
1934
  eval "$3=yes"
 
1935
else
 
1936
  eval "$3=no"
 
1937
fi
 
1938
rm -f core conftest.err conftest.$ac_objext \
 
1939
    conftest$ac_exeext conftest.$ac_ext
 
1940
fi
 
1941
eval ac_res=\$$3
 
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_func
 
1947
 
 
1948
# ac_fn_cxx_try_cpp LINENO
 
1949
# ------------------------
 
1950
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1951
ac_fn_cxx_try_cpp ()
 
1952
{
 
1953
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1954
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1955
case "(($ac_try" in
 
1956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1957
  *) ac_try_echo=$ac_try;;
 
1958
esac
 
1959
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1960
$as_echo "$ac_try_echo"; } >&5
 
1961
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1962
  ac_status=$?
 
1963
  if test -s conftest.err; then
 
1964
    grep -v '^ *+' conftest.err >conftest.er1
 
1965
    cat conftest.er1 >&5
 
1966
    mv -f conftest.er1 conftest.err
 
1967
  fi
 
1968
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1969
  test $ac_status = 0; } >/dev/null && {
 
1970
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1971
         test ! -s conftest.err
 
1972
       }; then :
 
1973
  ac_retval=0
 
1974
else
 
1975
  $as_echo "$as_me: failed program was:" >&5
 
1976
sed 's/^/| /' conftest.$ac_ext >&5
 
1977
 
 
1978
    ac_retval=1
 
1979
fi
 
1980
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1981
  as_fn_set_status $ac_retval
 
1982
 
 
1983
} # ac_fn_cxx_try_cpp
 
1984
 
 
1985
# ac_fn_cxx_try_link LINENO
 
1986
# -------------------------
 
1987
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1988
ac_fn_cxx_try_link ()
 
1989
{
 
1990
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1991
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1992
  if { { ac_try="$ac_link"
 
1993
case "(($ac_try" in
 
1994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1995
  *) ac_try_echo=$ac_try;;
 
1996
esac
 
1997
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1998
$as_echo "$ac_try_echo"; } >&5
 
1999
  (eval "$ac_link") 2>conftest.err
 
2000
  ac_status=$?
 
2001
  if test -s conftest.err; then
 
2002
    grep -v '^ *+' conftest.err >conftest.er1
 
2003
    cat conftest.er1 >&5
 
2004
    mv -f conftest.er1 conftest.err
 
2005
  fi
 
2006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2007
  test $ac_status = 0; } && {
 
2008
         test -z "$ac_cxx_werror_flag" ||
 
2009
         test ! -s conftest.err
 
2010
       } && test -s conftest$ac_exeext && {
 
2011
         test "$cross_compiling" = yes ||
 
2012
         $as_test_x conftest$ac_exeext
 
2013
       }; then :
 
2014
  ac_retval=0
 
2015
else
 
2016
  $as_echo "$as_me: failed program was:" >&5
 
2017
sed 's/^/| /' conftest.$ac_ext >&5
 
2018
 
 
2019
        ac_retval=1
 
2020
fi
 
2021
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2022
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2023
  # interfere with the next link command; also delete a directory that is
 
2024
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2025
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2026
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2027
  as_fn_set_status $ac_retval
 
2028
 
 
2029
} # ac_fn_cxx_try_link
 
2030
cat >config.log <<_ACEOF
 
2031
This file contains any messages produced by compilers while
 
2032
running configure, to aid debugging if configure makes a mistake.
 
2033
 
 
2034
It was created by libclamavc++ $as_me devel, which was
 
2035
generated by GNU Autoconf 2.65.  Invocation command line was
 
2036
 
 
2037
  $ $0 $@
 
2038
 
 
2039
_ACEOF
 
2040
exec 5>>config.log
 
2041
{
 
2042
cat <<_ASUNAME
 
2043
## --------- ##
 
2044
## Platform. ##
 
2045
## --------- ##
 
2046
 
 
2047
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2048
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2049
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2050
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2051
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2052
 
 
2053
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2054
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2055
 
 
2056
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2057
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2058
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2059
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2060
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2061
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2062
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2063
 
 
2064
_ASUNAME
 
2065
 
 
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2067
for as_dir in $PATH
 
2068
do
 
2069
  IFS=$as_save_IFS
 
2070
  test -z "$as_dir" && as_dir=.
 
2071
    $as_echo "PATH: $as_dir"
 
2072
  done
 
2073
IFS=$as_save_IFS
 
2074
 
 
2075
} >&5
 
2076
 
 
2077
cat >&5 <<_ACEOF
 
2078
 
 
2079
 
 
2080
## ----------- ##
 
2081
## Core tests. ##
 
2082
## ----------- ##
 
2083
 
 
2084
_ACEOF
 
2085
 
 
2086
 
 
2087
# Keep a trace of the command line.
 
2088
# Strip out --no-create and --no-recursion so they do not pile up.
 
2089
# Strip out --silent because we don't want to record it for future runs.
 
2090
# Also quote any args containing shell meta-characters.
 
2091
# Make two passes to allow for proper duplicate-argument suppression.
 
2092
ac_configure_args=
 
2093
ac_configure_args0=
 
2094
ac_configure_args1=
 
2095
ac_must_keep_next=false
 
2096
for ac_pass in 1 2
 
2097
do
 
2098
  for ac_arg
 
2099
  do
 
2100
    case $ac_arg in
 
2101
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2102
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2103
    | -silent | --silent | --silen | --sile | --sil)
 
2104
      continue ;;
 
2105
    *\'*)
 
2106
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2107
    esac
 
2108
    case $ac_pass in
 
2109
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2110
    2)
 
2111
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2112
      if test $ac_must_keep_next = true; then
 
2113
        ac_must_keep_next=false # Got value, back to normal.
 
2114
      else
 
2115
        case $ac_arg in
 
2116
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2117
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2118
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2119
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2120
            case "$ac_configure_args0 " in
 
2121
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2122
            esac
 
2123
            ;;
 
2124
          -* ) ac_must_keep_next=true ;;
 
2125
        esac
 
2126
      fi
 
2127
      as_fn_append ac_configure_args " '$ac_arg'"
 
2128
      ;;
 
2129
    esac
 
2130
  done
 
2131
done
 
2132
{ ac_configure_args0=; unset ac_configure_args0;}
 
2133
{ ac_configure_args1=; unset ac_configure_args1;}
 
2134
 
 
2135
# When interrupted or exit'd, cleanup temporary files, and complete
 
2136
# config.log.  We remove comments because anyway the quotes in there
 
2137
# would cause problems or look ugly.
 
2138
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2139
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2140
trap 'exit_status=$?
 
2141
  # Save into config.log some information that might help in debugging.
 
2142
  {
 
2143
    echo
 
2144
 
 
2145
    cat <<\_ASBOX
 
2146
## ---------------- ##
 
2147
## Cache variables. ##
 
2148
## ---------------- ##
 
2149
_ASBOX
 
2150
    echo
 
2151
    # The following way of writing the cache mishandles newlines in values,
 
2152
(
 
2153
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2154
    eval ac_val=\$$ac_var
 
2155
    case $ac_val in #(
 
2156
    *${as_nl}*)
 
2157
      case $ac_var in #(
 
2158
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2159
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2160
      esac
 
2161
      case $ac_var in #(
 
2162
      _ | IFS | as_nl) ;; #(
 
2163
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2164
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2165
      esac ;;
 
2166
    esac
 
2167
  done
 
2168
  (set) 2>&1 |
 
2169
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2170
    *${as_nl}ac_space=\ *)
 
2171
      sed -n \
 
2172
        "s/'\''/'\''\\\\'\'''\''/g;
 
2173
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2174
      ;; #(
 
2175
    *)
 
2176
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2177
      ;;
 
2178
    esac |
 
2179
    sort
 
2180
)
 
2181
    echo
 
2182
 
 
2183
    cat <<\_ASBOX
 
2184
## ----------------- ##
 
2185
## Output variables. ##
 
2186
## ----------------- ##
 
2187
_ASBOX
 
2188
    echo
 
2189
    for ac_var in $ac_subst_vars
 
2190
    do
 
2191
      eval ac_val=\$$ac_var
 
2192
      case $ac_val in
 
2193
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2194
      esac
 
2195
      $as_echo "$ac_var='\''$ac_val'\''"
 
2196
    done | sort
 
2197
    echo
 
2198
 
 
2199
    if test -n "$ac_subst_files"; then
 
2200
      cat <<\_ASBOX
 
2201
## ------------------- ##
 
2202
## File substitutions. ##
 
2203
## ------------------- ##
 
2204
_ASBOX
 
2205
      echo
 
2206
      for ac_var in $ac_subst_files
 
2207
      do
 
2208
        eval ac_val=\$$ac_var
 
2209
        case $ac_val in
 
2210
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2211
        esac
 
2212
        $as_echo "$ac_var='\''$ac_val'\''"
 
2213
      done | sort
 
2214
      echo
 
2215
    fi
 
2216
 
 
2217
    if test -s confdefs.h; then
 
2218
      cat <<\_ASBOX
 
2219
## ----------- ##
 
2220
## confdefs.h. ##
 
2221
## ----------- ##
 
2222
_ASBOX
 
2223
      echo
 
2224
      cat confdefs.h
 
2225
      echo
 
2226
    fi
 
2227
    test "$ac_signal" != 0 &&
 
2228
      $as_echo "$as_me: caught signal $ac_signal"
 
2229
    $as_echo "$as_me: exit $exit_status"
 
2230
  } >&5
 
2231
  rm -f core *.core core.conftest.* &&
 
2232
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2233
    exit $exit_status
 
2234
' 0
 
2235
for ac_signal in 1 2 13 15; do
 
2236
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2237
done
 
2238
ac_signal=0
 
2239
 
 
2240
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2241
rm -f -r conftest* confdefs.h
 
2242
 
 
2243
$as_echo "/* confdefs.h */" > confdefs.h
 
2244
 
 
2245
# Predefined preprocessor variables.
 
2246
 
 
2247
cat >>confdefs.h <<_ACEOF
 
2248
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2249
_ACEOF
 
2250
 
 
2251
cat >>confdefs.h <<_ACEOF
 
2252
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2253
_ACEOF
 
2254
 
 
2255
cat >>confdefs.h <<_ACEOF
 
2256
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2257
_ACEOF
 
2258
 
 
2259
cat >>confdefs.h <<_ACEOF
 
2260
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2261
_ACEOF
 
2262
 
 
2263
cat >>confdefs.h <<_ACEOF
 
2264
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2265
_ACEOF
 
2266
 
 
2267
cat >>confdefs.h <<_ACEOF
 
2268
#define PACKAGE_URL "$PACKAGE_URL"
 
2269
_ACEOF
 
2270
 
 
2271
 
 
2272
# Let the site file select an alternate cache file if it wants to.
 
2273
# Prefer an explicitly selected file to automatically selected ones.
 
2274
ac_site_file1=NONE
 
2275
ac_site_file2=NONE
 
2276
if test -n "$CONFIG_SITE"; then
 
2277
  ac_site_file1=$CONFIG_SITE
 
2278
elif test "x$prefix" != xNONE; then
 
2279
  ac_site_file1=$prefix/share/config.site
 
2280
  ac_site_file2=$prefix/etc/config.site
 
2281
else
 
2282
  ac_site_file1=$ac_default_prefix/share/config.site
 
2283
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2284
fi
 
2285
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2286
do
 
2287
  test "x$ac_site_file" = xNONE && continue
 
2288
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2289
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2290
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2291
    sed 's/^/| /' "$ac_site_file" >&5
 
2292
    . "$ac_site_file"
 
2293
  fi
 
2294
done
 
2295
 
 
2296
if test -r "$cache_file"; then
 
2297
  # Some versions of bash will fail to source /dev/null (special files
 
2298
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2299
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2300
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2301
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2302
    case $cache_file in
 
2303
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2304
      *)                      . "./$cache_file";;
 
2305
    esac
 
2306
  fi
 
2307
else
 
2308
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2309
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2310
  >$cache_file
 
2311
fi
 
2312
 
 
2313
# Check that the precious variables saved in the cache have kept the same
 
2314
# value.
 
2315
ac_cache_corrupted=false
 
2316
for ac_var in $ac_precious_vars; do
 
2317
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2318
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2319
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2320
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2321
  case $ac_old_set,$ac_new_set in
 
2322
    set,)
 
2323
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2324
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2325
      ac_cache_corrupted=: ;;
 
2326
    ,set)
 
2327
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2328
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2329
      ac_cache_corrupted=: ;;
 
2330
    ,);;
 
2331
    *)
 
2332
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2333
        # differences in whitespace do not lead to failure.
 
2334
        ac_old_val_w=`echo x $ac_old_val`
 
2335
        ac_new_val_w=`echo x $ac_new_val`
 
2336
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2337
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2338
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2339
          ac_cache_corrupted=:
 
2340
        else
 
2341
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2342
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2343
          eval $ac_var=\$ac_old_val
 
2344
        fi
 
2345
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2346
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2347
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2348
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2349
      fi;;
 
2350
  esac
 
2351
  # Pass precious variables to config.status.
 
2352
  if test "$ac_new_set" = set; then
 
2353
    case $ac_new_val in
 
2354
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2355
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2356
    esac
 
2357
    case " $ac_configure_args " in
 
2358
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2359
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2360
    esac
 
2361
  fi
 
2362
done
 
2363
if $ac_cache_corrupted; then
 
2364
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2365
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2366
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2367
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2368
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2369
fi
 
2370
## -------------------- ##
 
2371
## Main body of script. ##
 
2372
## -------------------- ##
 
2373
 
 
2374
ac_ext=c
 
2375
ac_cpp='$CPP $CPPFLAGS'
 
2376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2379
 
 
2380
 
 
2381
ac_aux_dir=
 
2382
for ac_dir in config "$srcdir"/config; do
 
2383
  for ac_t in install-sh install.sh shtool; do
 
2384
    if test -f "$ac_dir/$ac_t"; then
 
2385
      ac_aux_dir=$ac_dir
 
2386
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2387
      break 2
 
2388
    fi
 
2389
  done
 
2390
done
 
2391
if test -z "$ac_aux_dir"; then
 
2392
  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 
2393
fi
 
2394
 
 
2395
# These three variables are undocumented and unsupported,
 
2396
# and are intended to be withdrawn in a future Autoconf release.
 
2397
# They can cause serious problems if a builder's source tree is in a directory
 
2398
# whose full name contains unusual characters.
 
2399
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2400
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2401
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2402
 
 
2403
 
 
2404
 
 
2405
 
 
2406
ac_config_headers="$ac_config_headers clamavcxx-config.h"
 
2407
 
 
2408
# Make sure we can run config.sub.
 
2409
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2410
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2411
 
 
2412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2413
$as_echo_n "checking build system type... " >&6; }
 
2414
if test "${ac_cv_build+set}" = set; then :
 
2415
  $as_echo_n "(cached) " >&6
 
2416
else
 
2417
  ac_build_alias=$build_alias
 
2418
test "x$ac_build_alias" = x &&
 
2419
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2420
test "x$ac_build_alias" = x &&
 
2421
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2422
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2423
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2424
 
 
2425
fi
 
2426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2427
$as_echo "$ac_cv_build" >&6; }
 
2428
case $ac_cv_build in
 
2429
*-*-*) ;;
 
2430
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2431
esac
 
2432
build=$ac_cv_build
 
2433
ac_save_IFS=$IFS; IFS='-'
 
2434
set x $ac_cv_build
 
2435
shift
 
2436
build_cpu=$1
 
2437
build_vendor=$2
 
2438
shift; shift
 
2439
# Remember, the first character of IFS is used to create $*,
 
2440
# except with old shells:
 
2441
build_os=$*
 
2442
IFS=$ac_save_IFS
 
2443
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2444
 
 
2445
 
 
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2447
$as_echo_n "checking host system type... " >&6; }
 
2448
if test "${ac_cv_host+set}" = set; then :
 
2449
  $as_echo_n "(cached) " >&6
 
2450
else
 
2451
  if test "x$host_alias" = x; then
 
2452
  ac_cv_host=$ac_cv_build
 
2453
else
 
2454
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2455
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2456
fi
 
2457
 
 
2458
fi
 
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2460
$as_echo "$ac_cv_host" >&6; }
 
2461
case $ac_cv_host in
 
2462
*-*-*) ;;
 
2463
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2464
esac
 
2465
host=$ac_cv_host
 
2466
ac_save_IFS=$IFS; IFS='-'
 
2467
set x $ac_cv_host
 
2468
shift
 
2469
host_cpu=$1
 
2470
host_vendor=$2
 
2471
shift; shift
 
2472
# Remember, the first character of IFS is used to create $*,
 
2473
# except with old shells:
 
2474
host_os=$*
 
2475
IFS=$ac_save_IFS
 
2476
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2477
 
 
2478
 
 
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2480
$as_echo_n "checking target system type... " >&6; }
 
2481
if test "${ac_cv_target+set}" = set; then :
 
2482
  $as_echo_n "(cached) " >&6
 
2483
else
 
2484
  if test "x$target_alias" = x; then
 
2485
  ac_cv_target=$ac_cv_host
 
2486
else
 
2487
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2488
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2489
fi
 
2490
 
 
2491
fi
 
2492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2493
$as_echo "$ac_cv_target" >&6; }
 
2494
case $ac_cv_target in
 
2495
*-*-*) ;;
 
2496
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2497
esac
 
2498
target=$ac_cv_target
 
2499
ac_save_IFS=$IFS; IFS='-'
 
2500
set x $ac_cv_target
 
2501
shift
 
2502
target_cpu=$1
 
2503
target_vendor=$2
 
2504
shift; shift
 
2505
# Remember, the first character of IFS is used to create $*,
 
2506
# except with old shells:
 
2507
target_os=$*
 
2508
IFS=$ac_save_IFS
 
2509
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2510
 
 
2511
 
 
2512
# The aliases save the names the user supplied, while $host etc.
 
2513
# will get canonicalized.
 
2514
test -n "$target_alias" &&
 
2515
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2516
    NONENONEs,x,x, &&
 
2517
  program_prefix=${target_alias}-
 
2518
am__api_version='1.11'
 
2519
 
 
2520
# Find a good install program.  We prefer a C program (faster),
 
2521
# so one script is as good as another.  But avoid the broken or
 
2522
# incompatible versions:
 
2523
# SysV /etc/install, /usr/sbin/install
 
2524
# SunOS /usr/etc/install
 
2525
# IRIX /sbin/install
 
2526
# AIX /bin/install
 
2527
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2528
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2529
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2530
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2531
# OS/2's system install, which has a completely different semantic
 
2532
# ./install, which can be erroneously created by make from ./install.sh.
 
2533
# Reject install programs that cannot install multiple files.
 
2534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2535
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2536
if test -z "$INSTALL"; then
 
2537
if test "${ac_cv_path_install+set}" = set; then :
 
2538
  $as_echo_n "(cached) " >&6
 
2539
else
 
2540
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2541
for as_dir in $PATH
 
2542
do
 
2543
  IFS=$as_save_IFS
 
2544
  test -z "$as_dir" && as_dir=.
 
2545
    # Account for people who put trailing slashes in PATH elements.
 
2546
case $as_dir/ in #((
 
2547
  ./ | .// | /[cC]/* | \
 
2548
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2549
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2550
  /usr/ucb/* ) ;;
 
2551
  *)
 
2552
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2553
    # Don't use installbsd from OSF since it installs stuff as root
 
2554
    # by default.
 
2555
    for ac_prog in ginstall scoinst install; do
 
2556
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2557
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2558
          if test $ac_prog = install &&
 
2559
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2560
            # AIX install.  It has an incompatible calling convention.
 
2561
            :
 
2562
          elif test $ac_prog = install &&
 
2563
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2564
            # program-specific install script used by HP pwplus--don't use.
 
2565
            :
 
2566
          else
 
2567
            rm -rf conftest.one conftest.two conftest.dir
 
2568
            echo one > conftest.one
 
2569
            echo two > conftest.two
 
2570
            mkdir conftest.dir
 
2571
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2572
              test -s conftest.one && test -s conftest.two &&
 
2573
              test -s conftest.dir/conftest.one &&
 
2574
              test -s conftest.dir/conftest.two
 
2575
            then
 
2576
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2577
              break 3
 
2578
            fi
 
2579
          fi
 
2580
        fi
 
2581
      done
 
2582
    done
 
2583
    ;;
 
2584
esac
 
2585
 
 
2586
  done
 
2587
IFS=$as_save_IFS
 
2588
 
 
2589
rm -rf conftest.one conftest.two conftest.dir
 
2590
 
 
2591
fi
 
2592
  if test "${ac_cv_path_install+set}" = set; then
 
2593
    INSTALL=$ac_cv_path_install
 
2594
  else
 
2595
    # As a last resort, use the slow shell script.  Don't cache a
 
2596
    # value for INSTALL within a source directory, because that will
 
2597
    # break other packages using the cache if that directory is
 
2598
    # removed, or if the value is a relative name.
 
2599
    INSTALL=$ac_install_sh
 
2600
  fi
 
2601
fi
 
2602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2603
$as_echo "$INSTALL" >&6; }
 
2604
 
 
2605
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2606
# It thinks the first close brace ends the variable substitution.
 
2607
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2608
 
 
2609
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2610
 
 
2611
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2612
 
 
2613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2614
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2615
# Just in case
 
2616
sleep 1
 
2617
echo timestamp > conftest.file
 
2618
# Reject unsafe characters in $srcdir or the absolute working directory
 
2619
# name.  Accept space and tab only in the latter.
 
2620
am_lf='
 
2621
'
 
2622
case `pwd` in
 
2623
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2624
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2625
esac
 
2626
case $srcdir in
 
2627
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2628
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2629
esac
 
2630
 
 
2631
# Do `set' in a subshell so we don't clobber the current shell's
 
2632
# arguments.  Must try -L first in case configure is actually a
 
2633
# symlink; some systems play weird games with the mod time of symlinks
 
2634
# (eg FreeBSD returns the mod time of the symlink's containing
 
2635
# directory).
 
2636
if (
 
2637
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2638
   if test "$*" = "X"; then
 
2639
      # -L didn't work.
 
2640
      set X `ls -t "$srcdir/configure" conftest.file`
 
2641
   fi
 
2642
   rm -f conftest.file
 
2643
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2644
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2645
 
 
2646
      # If neither matched, then we have a broken ls.  This can happen
 
2647
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2648
      # broken ls alias from the environment.  This has actually
 
2649
      # happened.  Such a system could not be considered "sane".
 
2650
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2651
alias in your environment" "$LINENO" 5
 
2652
   fi
 
2653
 
 
2654
   test "$2" = conftest.file
 
2655
   )
 
2656
then
 
2657
   # Ok.
 
2658
   :
 
2659
else
 
2660
   as_fn_error "newly created file is older than distributed files!
 
2661
Check your system clock" "$LINENO" 5
 
2662
fi
 
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2664
$as_echo "yes" >&6; }
 
2665
test "$program_prefix" != NONE &&
 
2666
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2667
# Use a double $ so make ignores it.
 
2668
test "$program_suffix" != NONE &&
 
2669
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2670
# Double any \ or $.
 
2671
# By default was `s,x,x', remove it if useless.
 
2672
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2673
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2674
 
 
2675
# expand $ac_aux_dir to an absolute path
 
2676
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2677
 
 
2678
if test x"${MISSING+set}" != xset; then
 
2679
  case $am_aux_dir in
 
2680
  *\ * | *\     *)
 
2681
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2682
  *)
 
2683
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2684
  esac
 
2685
fi
 
2686
# Use eval to expand $SHELL
 
2687
if eval "$MISSING --run true"; then
 
2688
  am_missing_run="$MISSING --run "
 
2689
else
 
2690
  am_missing_run=
 
2691
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2692
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2693
fi
 
2694
 
 
2695
if test x"${install_sh}" != xset; then
 
2696
  case $am_aux_dir in
 
2697
  *\ * | *\     *)
 
2698
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2699
  *)
 
2700
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2701
  esac
 
2702
fi
 
2703
 
 
2704
# Installed binaries are usually stripped using `strip' when the user
 
2705
# run `make install-strip'.  However `strip' might not be the right
 
2706
# tool to use in cross-compilation environments, therefore Automake
 
2707
# will honor the `STRIP' environment variable to overrule this program.
 
2708
if test "$cross_compiling" != no; then
 
2709
  if test -n "$ac_tool_prefix"; then
 
2710
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2711
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2713
$as_echo_n "checking for $ac_word... " >&6; }
 
2714
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2715
  $as_echo_n "(cached) " >&6
 
2716
else
 
2717
  if test -n "$STRIP"; then
 
2718
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2719
else
 
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2721
for as_dir in $PATH
 
2722
do
 
2723
  IFS=$as_save_IFS
 
2724
  test -z "$as_dir" && as_dir=.
 
2725
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2726
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2727
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2729
    break 2
 
2730
  fi
 
2731
done
 
2732
  done
 
2733
IFS=$as_save_IFS
 
2734
 
 
2735
fi
 
2736
fi
 
2737
STRIP=$ac_cv_prog_STRIP
 
2738
if test -n "$STRIP"; then
 
2739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2740
$as_echo "$STRIP" >&6; }
 
2741
else
 
2742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2743
$as_echo "no" >&6; }
 
2744
fi
 
2745
 
 
2746
 
 
2747
fi
 
2748
if test -z "$ac_cv_prog_STRIP"; then
 
2749
  ac_ct_STRIP=$STRIP
 
2750
  # Extract the first word of "strip", so it can be a program name with args.
 
2751
set dummy strip; ac_word=$2
 
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2753
$as_echo_n "checking for $ac_word... " >&6; }
 
2754
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2755
  $as_echo_n "(cached) " >&6
 
2756
else
 
2757
  if test -n "$ac_ct_STRIP"; then
 
2758
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2759
else
 
2760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2761
for as_dir in $PATH
 
2762
do
 
2763
  IFS=$as_save_IFS
 
2764
  test -z "$as_dir" && as_dir=.
 
2765
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2766
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2767
    ac_cv_prog_ac_ct_STRIP="strip"
 
2768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2769
    break 2
 
2770
  fi
 
2771
done
 
2772
  done
 
2773
IFS=$as_save_IFS
 
2774
 
 
2775
fi
 
2776
fi
 
2777
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2778
if test -n "$ac_ct_STRIP"; then
 
2779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2780
$as_echo "$ac_ct_STRIP" >&6; }
 
2781
else
 
2782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2783
$as_echo "no" >&6; }
 
2784
fi
 
2785
 
 
2786
  if test "x$ac_ct_STRIP" = x; then
 
2787
    STRIP=":"
 
2788
  else
 
2789
    case $cross_compiling:$ac_tool_warned in
 
2790
yes:)
 
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2793
ac_tool_warned=yes ;;
 
2794
esac
 
2795
    STRIP=$ac_ct_STRIP
 
2796
  fi
 
2797
else
 
2798
  STRIP="$ac_cv_prog_STRIP"
 
2799
fi
 
2800
 
 
2801
fi
 
2802
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2803
 
 
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2805
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2806
if test -z "$MKDIR_P"; then
 
2807
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2808
  $as_echo_n "(cached) " >&6
 
2809
else
 
2810
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2811
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2812
do
 
2813
  IFS=$as_save_IFS
 
2814
  test -z "$as_dir" && as_dir=.
 
2815
    for ac_prog in mkdir gmkdir; do
 
2816
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2817
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2818
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2819
             'mkdir (GNU coreutils) '* | \
 
2820
             'mkdir (coreutils) '* | \
 
2821
             'mkdir (fileutils) '4.1*)
 
2822
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2823
               break 3;;
 
2824
           esac
 
2825
         done
 
2826
       done
 
2827
  done
 
2828
IFS=$as_save_IFS
 
2829
 
 
2830
fi
 
2831
 
 
2832
  test -d ./--version && rmdir ./--version
 
2833
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2834
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2835
  else
 
2836
    # As a last resort, use the slow shell script.  Don't cache a
 
2837
    # value for MKDIR_P within a source directory, because that will
 
2838
    # break other packages using the cache if that directory is
 
2839
    # removed, or if the value is a relative name.
 
2840
    MKDIR_P="$ac_install_sh -d"
 
2841
  fi
 
2842
fi
 
2843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2844
$as_echo "$MKDIR_P" >&6; }
 
2845
 
 
2846
mkdir_p="$MKDIR_P"
 
2847
case $mkdir_p in
 
2848
  [\\/$]* | ?:[\\/]*) ;;
 
2849
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2850
esac
 
2851
 
 
2852
for ac_prog in gawk mawk nawk awk
 
2853
do
 
2854
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2855
set dummy $ac_prog; ac_word=$2
 
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2857
$as_echo_n "checking for $ac_word... " >&6; }
 
2858
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2859
  $as_echo_n "(cached) " >&6
 
2860
else
 
2861
  if test -n "$AWK"; then
 
2862
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2863
else
 
2864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2865
for as_dir in $PATH
 
2866
do
 
2867
  IFS=$as_save_IFS
 
2868
  test -z "$as_dir" && as_dir=.
 
2869
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2871
    ac_cv_prog_AWK="$ac_prog"
 
2872
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2873
    break 2
 
2874
  fi
 
2875
done
 
2876
  done
 
2877
IFS=$as_save_IFS
 
2878
 
 
2879
fi
 
2880
fi
 
2881
AWK=$ac_cv_prog_AWK
 
2882
if test -n "$AWK"; then
 
2883
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2884
$as_echo "$AWK" >&6; }
 
2885
else
 
2886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2887
$as_echo "no" >&6; }
 
2888
fi
 
2889
 
 
2890
 
 
2891
  test -n "$AWK" && break
 
2892
done
 
2893
 
 
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2895
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2896
set x ${MAKE-make}
 
2897
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2898
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2899
  $as_echo_n "(cached) " >&6
 
2900
else
 
2901
  cat >conftest.make <<\_ACEOF
 
2902
SHELL = /bin/sh
 
2903
all:
 
2904
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2905
_ACEOF
 
2906
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2907
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2908
  *@@@%%%=?*=@@@%%%*)
 
2909
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2910
  *)
 
2911
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2912
esac
 
2913
rm -f conftest.make
 
2914
fi
 
2915
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2917
$as_echo "yes" >&6; }
 
2918
  SET_MAKE=
 
2919
else
 
2920
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2921
$as_echo "no" >&6; }
 
2922
  SET_MAKE="MAKE=${MAKE-make}"
 
2923
fi
 
2924
 
 
2925
rm -rf .tst 2>/dev/null
 
2926
mkdir .tst 2>/dev/null
 
2927
if test -d .tst; then
 
2928
  am__leading_dot=.
 
2929
else
 
2930
  am__leading_dot=_
 
2931
fi
 
2932
rmdir .tst 2>/dev/null
 
2933
 
 
2934
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2935
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2936
  # is not polluted with repeated "-I."
 
2937
  am__isrc=' -I$(srcdir)'
 
2938
  # test to see if srcdir already configured
 
2939
  if test -f $srcdir/config.status; then
 
2940
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2941
  fi
 
2942
fi
 
2943
 
 
2944
# test whether we have cygpath
 
2945
if test -z "$CYGPATH_W"; then
 
2946
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2947
    CYGPATH_W='cygpath -w'
 
2948
  else
 
2949
    CYGPATH_W=echo
 
2950
  fi
 
2951
fi
 
2952
 
 
2953
 
 
2954
# Define the identity of the package.
 
2955
 PACKAGE='libclamavc--'
 
2956
 VERSION='devel'
 
2957
 
 
2958
 
 
2959
# Some tools Automake needs.
 
2960
 
 
2961
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2962
 
 
2963
 
 
2964
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2965
 
 
2966
 
 
2967
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2968
 
 
2969
 
 
2970
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2971
 
 
2972
 
 
2973
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2974
 
 
2975
# We need awk for the "check" target.  The system "awk" is bad on
 
2976
# some platforms.
 
2977
# Always define AMTAR for backward compatibility.
 
2978
 
 
2979
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2980
 
 
2981
 
 
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
 
2983
$as_echo_n "checking how to create a pax tar archive... " >&6; }
 
2984
# Loop over all known methods to create a tar archive until one works.
 
2985
_am_tools='gnutar  pax cpio none'
 
2986
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
 
2987
# Do not fold the above two line into one, because Tru64 sh and
 
2988
# Solaris sh will not grok spaces in the rhs of `-'.
 
2989
for _am_tool in $_am_tools
 
2990
do
 
2991
  case $_am_tool in
 
2992
  gnutar)
 
2993
    for _am_tar in tar gnutar gtar;
 
2994
    do
 
2995
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
2996
   ($_am_tar --version) >&5 2>&5
 
2997
   ac_status=$?
 
2998
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2999
   (exit $ac_status); } && break
 
3000
    done
 
3001
    am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
 
3002
    am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
 
3003
    am__untar="$_am_tar -xf -"
 
3004
    ;;
 
3005
  plaintar)
 
3006
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
3007
    # ustar tarball either.
 
3008
    (tar --version) >/dev/null 2>&1 && continue
 
3009
    am__tar='tar chf - "$$tardir"'
 
3010
    am__tar_='tar chf - "$tardir"'
 
3011
    am__untar='tar xf -'
 
3012
    ;;
 
3013
  pax)
 
3014
    am__tar='pax -L -x pax -w "$$tardir"'
 
3015
    am__tar_='pax -L -x pax -w "$tardir"'
 
3016
    am__untar='pax -r'
 
3017
    ;;
 
3018
  cpio)
 
3019
    am__tar='find "$$tardir" -print | cpio -o -H pax -L'
 
3020
    am__tar_='find "$tardir" -print | cpio -o -H pax -L'
 
3021
    am__untar='cpio -i -H pax -d'
 
3022
    ;;
 
3023
  none)
 
3024
    am__tar=false
 
3025
    am__tar_=false
 
3026
    am__untar=false
 
3027
    ;;
 
3028
  esac
 
3029
 
 
3030
  # If the value was cached, stop now.  We just wanted to have am__tar
 
3031
  # and am__untar set.
 
3032
  test -n "${am_cv_prog_tar_pax}" && break
 
3033
 
 
3034
  # tar/untar a dummy directory, and stop if the command works
 
3035
  rm -rf conftest.dir
 
3036
  mkdir conftest.dir
 
3037
  echo GrepMe > conftest.dir/file
 
3038
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
3039
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
3040
   ac_status=$?
 
3041
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3042
   (exit $ac_status); }
 
3043
  rm -rf conftest.dir
 
3044
  if test -s conftest.tar; then
 
3045
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
3046
   ($am__untar <conftest.tar) >&5 2>&5
 
3047
   ac_status=$?
 
3048
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3049
   (exit $ac_status); }
 
3050
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
3051
  fi
 
3052
done
 
3053
rm -rf conftest.dir
 
3054
 
 
3055
if test "${am_cv_prog_tar_pax+set}" = set; then :
 
3056
  $as_echo_n "(cached) " >&6
 
3057
else
 
3058
  am_cv_prog_tar_pax=$_am_tool
 
3059
fi
 
3060
 
 
3061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
 
3062
$as_echo "$am_cv_prog_tar_pax" >&6; }
 
3063
 
 
3064
 
 
3065
 
 
3066
 
 
3067
 
 
3068
# Check whether --enable-silent-rules was given.
 
3069
if test "${enable_silent_rules+set}" = set; then :
 
3070
  enableval=$enable_silent_rules;
 
3071
fi
 
3072
 
 
3073
case $enable_silent_rules in
 
3074
yes) AM_DEFAULT_VERBOSITY=0;;
 
3075
no)  AM_DEFAULT_VERBOSITY=1;;
 
3076
*)   AM_DEFAULT_VERBOSITY=0;;
 
3077
esac
 
3078
AM_BACKSLASH='\'
 
3079
 
 
3080
 
 
3081
cxxset=${CXXFLAGS+set}
 
3082
ac_ext=cpp
 
3083
ac_cpp='$CXXCPP $CPPFLAGS'
 
3084
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3085
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3086
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3087
if test -z "$CXX"; then
 
3088
  if test -n "$CCC"; then
 
3089
    CXX=$CCC
 
3090
  else
 
3091
    if test -n "$ac_tool_prefix"; then
 
3092
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3093
  do
 
3094
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3095
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3097
$as_echo_n "checking for $ac_word... " >&6; }
 
3098
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3099
  $as_echo_n "(cached) " >&6
 
3100
else
 
3101
  if test -n "$CXX"; then
 
3102
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3103
else
 
3104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3105
for as_dir in $PATH
 
3106
do
 
3107
  IFS=$as_save_IFS
 
3108
  test -z "$as_dir" && as_dir=.
 
3109
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3110
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3111
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3112
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3113
    break 2
 
3114
  fi
 
3115
done
 
3116
  done
 
3117
IFS=$as_save_IFS
 
3118
 
 
3119
fi
 
3120
fi
 
3121
CXX=$ac_cv_prog_CXX
 
3122
if test -n "$CXX"; then
 
3123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3124
$as_echo "$CXX" >&6; }
 
3125
else
 
3126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3127
$as_echo "no" >&6; }
 
3128
fi
 
3129
 
 
3130
 
 
3131
    test -n "$CXX" && break
 
3132
  done
 
3133
fi
 
3134
if test -z "$CXX"; then
 
3135
  ac_ct_CXX=$CXX
 
3136
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3137
do
 
3138
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3139
set dummy $ac_prog; ac_word=$2
 
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3141
$as_echo_n "checking for $ac_word... " >&6; }
 
3142
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3143
  $as_echo_n "(cached) " >&6
 
3144
else
 
3145
  if test -n "$ac_ct_CXX"; then
 
3146
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3147
else
 
3148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3149
for as_dir in $PATH
 
3150
do
 
3151
  IFS=$as_save_IFS
 
3152
  test -z "$as_dir" && as_dir=.
 
3153
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3155
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3156
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3157
    break 2
 
3158
  fi
 
3159
done
 
3160
  done
 
3161
IFS=$as_save_IFS
 
3162
 
 
3163
fi
 
3164
fi
 
3165
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3166
if test -n "$ac_ct_CXX"; then
 
3167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3168
$as_echo "$ac_ct_CXX" >&6; }
 
3169
else
 
3170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3171
$as_echo "no" >&6; }
 
3172
fi
 
3173
 
 
3174
 
 
3175
  test -n "$ac_ct_CXX" && break
 
3176
done
 
3177
 
 
3178
  if test "x$ac_ct_CXX" = x; then
 
3179
    CXX="g++"
 
3180
  else
 
3181
    case $cross_compiling:$ac_tool_warned in
 
3182
yes:)
 
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3184
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3185
ac_tool_warned=yes ;;
 
3186
esac
 
3187
    CXX=$ac_ct_CXX
 
3188
  fi
 
3189
fi
 
3190
 
 
3191
  fi
 
3192
fi
 
3193
# Provide some information about the compiler.
 
3194
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3195
set X $ac_compile
 
3196
ac_compiler=$2
 
3197
for ac_option in --version -v -V -qversion; do
 
3198
  { { ac_try="$ac_compiler $ac_option >&5"
 
3199
case "(($ac_try" in
 
3200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3201
  *) ac_try_echo=$ac_try;;
 
3202
esac
 
3203
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3204
$as_echo "$ac_try_echo"; } >&5
 
3205
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3206
  ac_status=$?
 
3207
  if test -s conftest.err; then
 
3208
    sed '10a\
 
3209
... rest of stderr output deleted ...
 
3210
         10q' conftest.err >conftest.er1
 
3211
    cat conftest.er1 >&5
 
3212
  fi
 
3213
  rm -f conftest.er1 conftest.err
 
3214
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3215
  test $ac_status = 0; }
 
3216
done
 
3217
 
 
3218
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3219
/* end confdefs.h.  */
 
3220
 
 
3221
int
 
3222
main ()
 
3223
{
 
3224
 
 
3225
  ;
 
3226
  return 0;
 
3227
}
 
3228
_ACEOF
 
3229
ac_clean_files_save=$ac_clean_files
 
3230
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3231
# Try to create an executable without -o first, disregard a.out.
 
3232
# It will help us diagnose broken compilers, and finding out an intuition
 
3233
# of exeext.
 
3234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
3235
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
3236
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3237
 
 
3238
# The possible output files:
 
3239
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3240
 
 
3241
ac_rmfiles=
 
3242
for ac_file in $ac_files
 
3243
do
 
3244
  case $ac_file in
 
3245
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3246
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3247
  esac
 
3248
done
 
3249
rm -f $ac_rmfiles
 
3250
 
 
3251
if { { ac_try="$ac_link_default"
 
3252
case "(($ac_try" in
 
3253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3254
  *) ac_try_echo=$ac_try;;
 
3255
esac
 
3256
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3257
$as_echo "$ac_try_echo"; } >&5
 
3258
  (eval "$ac_link_default") 2>&5
 
3259
  ac_status=$?
 
3260
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3261
  test $ac_status = 0; }; then :
 
3262
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3263
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3264
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3265
# so that the user can short-circuit this test for compilers unknown to
 
3266
# Autoconf.
 
3267
for ac_file in $ac_files ''
 
3268
do
 
3269
  test -f "$ac_file" || continue
 
3270
  case $ac_file in
 
3271
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3272
        ;;
 
3273
    [ab].out )
 
3274
        # We found the default executable, but exeext='' is most
 
3275
        # certainly right.
 
3276
        break;;
 
3277
    *.* )
 
3278
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3279
        then :; else
 
3280
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3281
        fi
 
3282
        # We set ac_cv_exeext here because the later test for it is not
 
3283
        # safe: cross compilers may not add the suffix if given an `-o'
 
3284
        # argument, so we may need to know it at that point already.
 
3285
        # Even if this section looks crufty: it has the advantage of
 
3286
        # actually working.
 
3287
        break;;
 
3288
    * )
 
3289
        break;;
 
3290
  esac
 
3291
done
 
3292
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3293
 
 
3294
else
 
3295
  ac_file=''
 
3296
fi
 
3297
if test -z "$ac_file"; then :
 
3298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3299
$as_echo "no" >&6; }
 
3300
$as_echo "$as_me: failed program was:" >&5
 
3301
sed 's/^/| /' conftest.$ac_ext >&5
 
3302
 
 
3303
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3304
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3305
{ as_fn_set_status 77
 
3306
as_fn_error "C++ compiler cannot create executables
 
3307
See \`config.log' for more details." "$LINENO" 5; }; }
 
3308
else
 
3309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3310
$as_echo "yes" >&6; }
 
3311
fi
 
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
3313
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
3314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3315
$as_echo "$ac_file" >&6; }
 
3316
ac_exeext=$ac_cv_exeext
 
3317
 
 
3318
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3319
ac_clean_files=$ac_clean_files_save
 
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3321
$as_echo_n "checking for suffix of executables... " >&6; }
 
3322
if { { ac_try="$ac_link"
 
3323
case "(($ac_try" in
 
3324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3325
  *) ac_try_echo=$ac_try;;
 
3326
esac
 
3327
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3328
$as_echo "$ac_try_echo"; } >&5
 
3329
  (eval "$ac_link") 2>&5
 
3330
  ac_status=$?
 
3331
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3332
  test $ac_status = 0; }; then :
 
3333
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3334
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3335
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3336
# `rm'.
 
3337
for ac_file in conftest.exe conftest conftest.*; do
 
3338
  test -f "$ac_file" || continue
 
3339
  case $ac_file in
 
3340
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3341
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3342
          break;;
 
3343
    * ) break;;
 
3344
  esac
 
3345
done
 
3346
else
 
3347
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3349
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3350
See \`config.log' for more details." "$LINENO" 5; }
 
3351
fi
 
3352
rm -f conftest conftest$ac_cv_exeext
 
3353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3354
$as_echo "$ac_cv_exeext" >&6; }
 
3355
 
 
3356
rm -f conftest.$ac_ext
 
3357
EXEEXT=$ac_cv_exeext
 
3358
ac_exeext=$EXEEXT
 
3359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3360
/* end confdefs.h.  */
 
3361
#include <stdio.h>
 
3362
int
 
3363
main ()
 
3364
{
 
3365
FILE *f = fopen ("conftest.out", "w");
 
3366
 return ferror (f) || fclose (f) != 0;
 
3367
 
 
3368
  ;
 
3369
  return 0;
 
3370
}
 
3371
_ACEOF
 
3372
ac_clean_files="$ac_clean_files conftest.out"
 
3373
# Check that the compiler produces executables we can run.  If not, either
 
3374
# the compiler is broken, or we cross compile.
 
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3376
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3377
if test "$cross_compiling" != yes; then
 
3378
  { { ac_try="$ac_link"
 
3379
case "(($ac_try" in
 
3380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3381
  *) ac_try_echo=$ac_try;;
 
3382
esac
 
3383
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3384
$as_echo "$ac_try_echo"; } >&5
 
3385
  (eval "$ac_link") 2>&5
 
3386
  ac_status=$?
 
3387
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3388
  test $ac_status = 0; }
 
3389
  if { ac_try='./conftest$ac_cv_exeext'
 
3390
  { { case "(($ac_try" in
 
3391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3392
  *) ac_try_echo=$ac_try;;
 
3393
esac
 
3394
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3395
$as_echo "$ac_try_echo"; } >&5
 
3396
  (eval "$ac_try") 2>&5
 
3397
  ac_status=$?
 
3398
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3399
  test $ac_status = 0; }; }; then
 
3400
    cross_compiling=no
 
3401
  else
 
3402
    if test "$cross_compiling" = maybe; then
 
3403
        cross_compiling=yes
 
3404
    else
 
3405
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3406
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3407
as_fn_error "cannot run C++ compiled programs.
 
3408
If you meant to cross compile, use \`--host'.
 
3409
See \`config.log' for more details." "$LINENO" 5; }
 
3410
    fi
 
3411
  fi
 
3412
fi
 
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3414
$as_echo "$cross_compiling" >&6; }
 
3415
 
 
3416
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3417
ac_clean_files=$ac_clean_files_save
 
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3419
$as_echo_n "checking for suffix of object files... " >&6; }
 
3420
if test "${ac_cv_objext+set}" = set; then :
 
3421
  $as_echo_n "(cached) " >&6
 
3422
else
 
3423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3424
/* end confdefs.h.  */
 
3425
 
 
3426
int
 
3427
main ()
 
3428
{
 
3429
 
 
3430
  ;
 
3431
  return 0;
 
3432
}
 
3433
_ACEOF
 
3434
rm -f conftest.o conftest.obj
 
3435
if { { ac_try="$ac_compile"
 
3436
case "(($ac_try" in
 
3437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3438
  *) ac_try_echo=$ac_try;;
 
3439
esac
 
3440
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3441
$as_echo "$ac_try_echo"; } >&5
 
3442
  (eval "$ac_compile") 2>&5
 
3443
  ac_status=$?
 
3444
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3445
  test $ac_status = 0; }; then :
 
3446
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3447
  test -f "$ac_file" || continue;
 
3448
  case $ac_file in
 
3449
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3450
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3451
       break;;
 
3452
  esac
 
3453
done
 
3454
else
 
3455
  $as_echo "$as_me: failed program was:" >&5
 
3456
sed 's/^/| /' conftest.$ac_ext >&5
 
3457
 
 
3458
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3459
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3460
as_fn_error "cannot compute suffix of object files: cannot compile
 
3461
See \`config.log' for more details." "$LINENO" 5; }
 
3462
fi
 
3463
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3464
fi
 
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3466
$as_echo "$ac_cv_objext" >&6; }
 
3467
OBJEXT=$ac_cv_objext
 
3468
ac_objext=$OBJEXT
 
3469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3470
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3471
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3472
  $as_echo_n "(cached) " >&6
 
3473
else
 
3474
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3475
/* end confdefs.h.  */
 
3476
 
 
3477
int
 
3478
main ()
 
3479
{
 
3480
#ifndef __GNUC__
 
3481
       choke me
 
3482
#endif
 
3483
 
 
3484
  ;
 
3485
  return 0;
 
3486
}
 
3487
_ACEOF
 
3488
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3489
  ac_compiler_gnu=yes
 
3490
else
 
3491
  ac_compiler_gnu=no
 
3492
fi
 
3493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3494
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3495
 
 
3496
fi
 
3497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3498
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3499
if test $ac_compiler_gnu = yes; then
 
3500
  GXX=yes
 
3501
else
 
3502
  GXX=
 
3503
fi
 
3504
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3505
ac_save_CXXFLAGS=$CXXFLAGS
 
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3507
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3508
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3509
  $as_echo_n "(cached) " >&6
 
3510
else
 
3511
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3512
   ac_cxx_werror_flag=yes
 
3513
   ac_cv_prog_cxx_g=no
 
3514
   CXXFLAGS="-g"
 
3515
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3516
/* end confdefs.h.  */
 
3517
 
 
3518
int
 
3519
main ()
 
3520
{
 
3521
 
 
3522
  ;
 
3523
  return 0;
 
3524
}
 
3525
_ACEOF
 
3526
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3527
  ac_cv_prog_cxx_g=yes
 
3528
else
 
3529
  CXXFLAGS=""
 
3530
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3531
/* end confdefs.h.  */
 
3532
 
 
3533
int
 
3534
main ()
 
3535
{
 
3536
 
 
3537
  ;
 
3538
  return 0;
 
3539
}
 
3540
_ACEOF
 
3541
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3542
 
 
3543
else
 
3544
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3545
         CXXFLAGS="-g"
 
3546
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3547
/* end confdefs.h.  */
 
3548
 
 
3549
int
 
3550
main ()
 
3551
{
 
3552
 
 
3553
  ;
 
3554
  return 0;
 
3555
}
 
3556
_ACEOF
 
3557
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3558
  ac_cv_prog_cxx_g=yes
 
3559
fi
 
3560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3561
fi
 
3562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3563
fi
 
3564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3565
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3566
fi
 
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3568
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3569
if test "$ac_test_CXXFLAGS" = set; then
 
3570
  CXXFLAGS=$ac_save_CXXFLAGS
 
3571
elif test $ac_cv_prog_cxx_g = yes; then
 
3572
  if test "$GXX" = yes; then
 
3573
    CXXFLAGS="-g -O2"
 
3574
  else
 
3575
    CXXFLAGS="-g"
 
3576
  fi
 
3577
else
 
3578
  if test "$GXX" = yes; then
 
3579
    CXXFLAGS="-O2"
 
3580
  else
 
3581
    CXXFLAGS=
 
3582
  fi
 
3583
fi
 
3584
ac_ext=c
 
3585
ac_cpp='$CPP $CPPFLAGS'
 
3586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3589
DEPDIR="${am__leading_dot}deps"
 
3590
 
 
3591
ac_config_commands="$ac_config_commands depfiles"
 
3592
 
 
3593
 
 
3594
am_make=${MAKE-make}
 
3595
cat > confinc << 'END'
 
3596
am__doit:
 
3597
        @echo this is the am__doit target
 
3598
.PHONY: am__doit
 
3599
END
 
3600
# If we don't find an include directive, just comment out the code.
 
3601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3602
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3603
am__include="#"
 
3604
am__quote=
 
3605
_am_result=none
 
3606
# First try GNU make style include.
 
3607
echo "include confinc" > confmf
 
3608
# Ignore all kinds of additional output from `make'.
 
3609
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3610
*the\ am__doit\ target*)
 
3611
  am__include=include
 
3612
  am__quote=
 
3613
  _am_result=GNU
 
3614
  ;;
 
3615
esac
 
3616
# Now try BSD make style include.
 
3617
if test "$am__include" = "#"; then
 
3618
   echo '.include "confinc"' > confmf
 
3619
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3620
   *the\ am__doit\ target*)
 
3621
     am__include=.include
 
3622
     am__quote="\""
 
3623
     _am_result=BSD
 
3624
     ;;
 
3625
   esac
 
3626
fi
 
3627
 
 
3628
 
 
3629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3630
$as_echo "$_am_result" >&6; }
 
3631
rm -f confinc confmf
 
3632
 
 
3633
# Check whether --enable-dependency-tracking was given.
 
3634
if test "${enable_dependency_tracking+set}" = set; then :
 
3635
  enableval=$enable_dependency_tracking;
 
3636
fi
 
3637
 
 
3638
if test "x$enable_dependency_tracking" != xno; then
 
3639
  am_depcomp="$ac_aux_dir/depcomp"
 
3640
  AMDEPBACKSLASH='\'
 
3641
fi
 
3642
 if test "x$enable_dependency_tracking" != xno; then
 
3643
  AMDEP_TRUE=
 
3644
  AMDEP_FALSE='#'
 
3645
else
 
3646
  AMDEP_TRUE='#'
 
3647
  AMDEP_FALSE=
 
3648
fi
 
3649
 
 
3650
 
 
3651
 
 
3652
depcc="$CXX"  am_compiler_list=
 
3653
 
 
3654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3655
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3656
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
3657
  $as_echo_n "(cached) " >&6
 
3658
else
 
3659
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3660
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3661
  # making bogus files that we don't know about and never remove.  For
 
3662
  # instance it was reported that on HP-UX the gcc test will end up
 
3663
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3664
  # in D'.
 
3665
  mkdir conftest.dir
 
3666
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3667
  # using a relative directory.
 
3668
  cp "$am_depcomp" conftest.dir
 
3669
  cd conftest.dir
 
3670
  # We will build objects and dependencies in a subdirectory because
 
3671
  # it helps to detect inapplicable dependency modes.  For instance
 
3672
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3673
  # side effect of compilation, but ICC will put the dependencies in
 
3674
  # the current directory while Tru64 will put them in the object
 
3675
  # directory.
 
3676
  mkdir sub
 
3677
 
 
3678
  am_cv_CXX_dependencies_compiler_type=none
 
3679
  if test "$am_compiler_list" = ""; then
 
3680
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3681
  fi
 
3682
  am__universal=false
 
3683
  case " $depcc " in #(
 
3684
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3685
     esac
 
3686
 
 
3687
  for depmode in $am_compiler_list; do
 
3688
    # Setup a source with many dependencies, because some compilers
 
3689
    # like to wrap large dependency lists on column 80 (with \), and
 
3690
    # we should not choose a depcomp mode which is confused by this.
 
3691
    #
 
3692
    # We need to recreate these files for each test, as the compiler may
 
3693
    # overwrite some of them when testing with obscure command lines.
 
3694
    # This happens at least with the AIX C compiler.
 
3695
    : > sub/conftest.c
 
3696
    for i in 1 2 3 4 5 6; do
 
3697
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3698
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3699
      # Solaris 8's {/usr,}/bin/sh.
 
3700
      touch sub/conftst$i.h
 
3701
    done
 
3702
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3703
 
 
3704
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3705
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3706
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3707
    # versions had trouble with output in subdirs
 
3708
    am__obj=sub/conftest.${OBJEXT-o}
 
3709
    am__minus_obj="-o $am__obj"
 
3710
    case $depmode in
 
3711
    gcc)
 
3712
      # This depmode causes a compiler race in universal mode.
 
3713
      test "$am__universal" = false || continue
 
3714
      ;;
 
3715
    nosideeffect)
 
3716
      # after this tag, mechanisms are not by side-effect, so they'll
 
3717
      # only be used when explicitly requested
 
3718
      if test "x$enable_dependency_tracking" = xyes; then
 
3719
        continue
 
3720
      else
 
3721
        break
 
3722
      fi
 
3723
      ;;
 
3724
    msvisualcpp | msvcmsys)
 
3725
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3726
      # not run yet.  These depmodes are late enough in the game, and
 
3727
      # so weak that their functioning should not be impacted.
 
3728
      am__obj=conftest.${OBJEXT-o}
 
3729
      am__minus_obj=
 
3730
      ;;
 
3731
    none) break ;;
 
3732
    esac
 
3733
    if depmode=$depmode \
 
3734
       source=sub/conftest.c object=$am__obj \
 
3735
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3736
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3737
         >/dev/null 2>conftest.err &&
 
3738
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3739
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3740
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3741
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3742
      # icc doesn't choke on unknown options, it will just issue warnings
 
3743
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3744
      # that says an option was ignored or not supported.
 
3745
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3746
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3747
      # The diagnosis changed in icc 8.0:
 
3748
      #   icc: Command line remark: option '-MP' not supported
 
3749
      if (grep 'ignoring option' conftest.err ||
 
3750
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3751
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3752
        break
 
3753
      fi
 
3754
    fi
 
3755
  done
 
3756
 
 
3757
  cd ..
 
3758
  rm -rf conftest.dir
 
3759
else
 
3760
  am_cv_CXX_dependencies_compiler_type=none
 
3761
fi
 
3762
 
 
3763
fi
 
3764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3765
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3766
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3767
 
 
3768
 if
 
3769
  test "x$enable_dependency_tracking" != xno \
 
3770
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3771
  am__fastdepCXX_TRUE=
 
3772
  am__fastdepCXX_FALSE='#'
 
3773
else
 
3774
  am__fastdepCXX_TRUE='#'
 
3775
  am__fastdepCXX_FALSE=
 
3776
fi
 
3777
 
 
3778
 
 
3779
 
 
3780
if test "$cxxset" != set; then
 
3781
# don't use the default -O2 -g because -g bloats the C++ binaries too much
 
3782
  CXXFLAGS="-O2"
 
3783
fi
 
3784
 
 
3785
 
 
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3787
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
3788
    # Check whether --enable-maintainer-mode was given.
 
3789
if test "${enable_maintainer_mode+set}" = set; then :
 
3790
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
3791
else
 
3792
  USE_MAINTAINER_MODE=no
 
3793
fi
 
3794
 
 
3795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
3796
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
3797
   if test $USE_MAINTAINER_MODE = yes; then
 
3798
  MAINTAINER_MODE_TRUE=
 
3799
  MAINTAINER_MODE_FALSE='#'
 
3800
else
 
3801
  MAINTAINER_MODE_TRUE='#'
 
3802
  MAINTAINER_MODE_FALSE=
 
3803
fi
 
3804
 
 
3805
  MAINT=$MAINTAINER_MODE_TRUE
 
3806
 
 
3807
 
 
3808
case `pwd` in
 
3809
  *\ * | *\     *)
 
3810
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3811
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3812
esac
 
3813
 
 
3814
 
 
3815
 
 
3816
macro_version='2.2.6b'
 
3817
macro_revision='1.3017'
 
3818
 
 
3819
 
 
3820
 
 
3821
 
 
3822
 
 
3823
 
 
3824
 
 
3825
 
 
3826
 
 
3827
 
 
3828
 
 
3829
 
 
3830
 
 
3831
ltmain="$ac_aux_dir/ltmain.sh"
 
3832
 
 
3833
ac_ext=c
 
3834
ac_cpp='$CPP $CPPFLAGS'
 
3835
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3836
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3837
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3838
if test -n "$ac_tool_prefix"; then
 
3839
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3840
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3842
$as_echo_n "checking for $ac_word... " >&6; }
 
3843
if test "${ac_cv_prog_CC+set}" = set; then :
 
3844
  $as_echo_n "(cached) " >&6
 
3845
else
 
3846
  if test -n "$CC"; then
 
3847
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3848
else
 
3849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3850
for as_dir in $PATH
 
3851
do
 
3852
  IFS=$as_save_IFS
 
3853
  test -z "$as_dir" && as_dir=.
 
3854
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3855
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3856
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3857
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3858
    break 2
 
3859
  fi
 
3860
done
 
3861
  done
 
3862
IFS=$as_save_IFS
 
3863
 
 
3864
fi
 
3865
fi
 
3866
CC=$ac_cv_prog_CC
 
3867
if test -n "$CC"; then
 
3868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3869
$as_echo "$CC" >&6; }
 
3870
else
 
3871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3872
$as_echo "no" >&6; }
 
3873
fi
 
3874
 
 
3875
 
 
3876
fi
 
3877
if test -z "$ac_cv_prog_CC"; then
 
3878
  ac_ct_CC=$CC
 
3879
  # Extract the first word of "gcc", so it can be a program name with args.
 
3880
set dummy gcc; ac_word=$2
 
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3882
$as_echo_n "checking for $ac_word... " >&6; }
 
3883
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3884
  $as_echo_n "(cached) " >&6
 
3885
else
 
3886
  if test -n "$ac_ct_CC"; then
 
3887
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3888
else
 
3889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3890
for as_dir in $PATH
 
3891
do
 
3892
  IFS=$as_save_IFS
 
3893
  test -z "$as_dir" && as_dir=.
 
3894
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3895
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3896
    ac_cv_prog_ac_ct_CC="gcc"
 
3897
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3898
    break 2
 
3899
  fi
 
3900
done
 
3901
  done
 
3902
IFS=$as_save_IFS
 
3903
 
 
3904
fi
 
3905
fi
 
3906
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3907
if test -n "$ac_ct_CC"; then
 
3908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3909
$as_echo "$ac_ct_CC" >&6; }
 
3910
else
 
3911
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3912
$as_echo "no" >&6; }
 
3913
fi
 
3914
 
 
3915
  if test "x$ac_ct_CC" = x; then
 
3916
    CC=""
 
3917
  else
 
3918
    case $cross_compiling:$ac_tool_warned in
 
3919
yes:)
 
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3921
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3922
ac_tool_warned=yes ;;
 
3923
esac
 
3924
    CC=$ac_ct_CC
 
3925
  fi
 
3926
else
 
3927
  CC="$ac_cv_prog_CC"
 
3928
fi
 
3929
 
 
3930
if test -z "$CC"; then
 
3931
          if test -n "$ac_tool_prefix"; then
 
3932
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3933
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3935
$as_echo_n "checking for $ac_word... " >&6; }
 
3936
if test "${ac_cv_prog_CC+set}" = set; then :
 
3937
  $as_echo_n "(cached) " >&6
 
3938
else
 
3939
  if test -n "$CC"; then
 
3940
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3941
else
 
3942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3943
for as_dir in $PATH
 
3944
do
 
3945
  IFS=$as_save_IFS
 
3946
  test -z "$as_dir" && as_dir=.
 
3947
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3948
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3949
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3950
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3951
    break 2
 
3952
  fi
 
3953
done
 
3954
  done
 
3955
IFS=$as_save_IFS
 
3956
 
 
3957
fi
 
3958
fi
 
3959
CC=$ac_cv_prog_CC
 
3960
if test -n "$CC"; then
 
3961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3962
$as_echo "$CC" >&6; }
 
3963
else
 
3964
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3965
$as_echo "no" >&6; }
 
3966
fi
 
3967
 
 
3968
 
 
3969
  fi
 
3970
fi
 
3971
if test -z "$CC"; then
 
3972
  # Extract the first word of "cc", so it can be a program name with args.
 
3973
set dummy cc; ac_word=$2
 
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3975
$as_echo_n "checking for $ac_word... " >&6; }
 
3976
if test "${ac_cv_prog_CC+set}" = set; then :
 
3977
  $as_echo_n "(cached) " >&6
 
3978
else
 
3979
  if test -n "$CC"; then
 
3980
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3981
else
 
3982
  ac_prog_rejected=no
 
3983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3984
for as_dir in $PATH
 
3985
do
 
3986
  IFS=$as_save_IFS
 
3987
  test -z "$as_dir" && as_dir=.
 
3988
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3990
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3991
       ac_prog_rejected=yes
 
3992
       continue
 
3993
     fi
 
3994
    ac_cv_prog_CC="cc"
 
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
if test $ac_prog_rejected = yes; then
 
4003
  # We found a bogon in the path, so make sure we never use it.
 
4004
  set dummy $ac_cv_prog_CC
 
4005
  shift
 
4006
  if test $# != 0; then
 
4007
    # We chose a different compiler from the bogus one.
 
4008
    # However, it has the same basename, so the bogon will be chosen
 
4009
    # first if we set CC to just the basename; use the full file name.
 
4010
    shift
 
4011
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4012
  fi
 
4013
fi
 
4014
fi
 
4015
fi
 
4016
CC=$ac_cv_prog_CC
 
4017
if test -n "$CC"; then
 
4018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4019
$as_echo "$CC" >&6; }
 
4020
else
 
4021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4022
$as_echo "no" >&6; }
 
4023
fi
 
4024
 
 
4025
 
 
4026
fi
 
4027
if test -z "$CC"; then
 
4028
  if test -n "$ac_tool_prefix"; then
 
4029
  for ac_prog in cl.exe
 
4030
  do
 
4031
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4032
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4034
$as_echo_n "checking for $ac_word... " >&6; }
 
4035
if test "${ac_cv_prog_CC+set}" = set; then :
 
4036
  $as_echo_n "(cached) " >&6
 
4037
else
 
4038
  if test -n "$CC"; then
 
4039
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4040
else
 
4041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4042
for as_dir in $PATH
 
4043
do
 
4044
  IFS=$as_save_IFS
 
4045
  test -z "$as_dir" && as_dir=.
 
4046
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4048
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4049
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4050
    break 2
 
4051
  fi
 
4052
done
 
4053
  done
 
4054
IFS=$as_save_IFS
 
4055
 
 
4056
fi
 
4057
fi
 
4058
CC=$ac_cv_prog_CC
 
4059
if test -n "$CC"; then
 
4060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4061
$as_echo "$CC" >&6; }
 
4062
else
 
4063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4064
$as_echo "no" >&6; }
 
4065
fi
 
4066
 
 
4067
 
 
4068
    test -n "$CC" && break
 
4069
  done
 
4070
fi
 
4071
if test -z "$CC"; then
 
4072
  ac_ct_CC=$CC
 
4073
  for ac_prog in cl.exe
 
4074
do
 
4075
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4076
set dummy $ac_prog; ac_word=$2
 
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4078
$as_echo_n "checking for $ac_word... " >&6; }
 
4079
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4080
  $as_echo_n "(cached) " >&6
 
4081
else
 
4082
  if test -n "$ac_ct_CC"; then
 
4083
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4084
else
 
4085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4086
for as_dir in $PATH
 
4087
do
 
4088
  IFS=$as_save_IFS
 
4089
  test -z "$as_dir" && as_dir=.
 
4090
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4091
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4092
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4093
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4094
    break 2
 
4095
  fi
 
4096
done
 
4097
  done
 
4098
IFS=$as_save_IFS
 
4099
 
 
4100
fi
 
4101
fi
 
4102
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4103
if test -n "$ac_ct_CC"; then
 
4104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4105
$as_echo "$ac_ct_CC" >&6; }
 
4106
else
 
4107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4108
$as_echo "no" >&6; }
 
4109
fi
 
4110
 
 
4111
 
 
4112
  test -n "$ac_ct_CC" && break
 
4113
done
 
4114
 
 
4115
  if test "x$ac_ct_CC" = x; then
 
4116
    CC=""
 
4117
  else
 
4118
    case $cross_compiling:$ac_tool_warned in
 
4119
yes:)
 
4120
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4121
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4122
ac_tool_warned=yes ;;
 
4123
esac
 
4124
    CC=$ac_ct_CC
 
4125
  fi
 
4126
fi
 
4127
 
 
4128
fi
 
4129
 
 
4130
 
 
4131
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4132
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4133
as_fn_error "no acceptable C compiler found in \$PATH
 
4134
See \`config.log' for more details." "$LINENO" 5; }
 
4135
 
 
4136
# Provide some information about the compiler.
 
4137
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4138
set X $ac_compile
 
4139
ac_compiler=$2
 
4140
for ac_option in --version -v -V -qversion; do
 
4141
  { { ac_try="$ac_compiler $ac_option >&5"
 
4142
case "(($ac_try" in
 
4143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4144
  *) ac_try_echo=$ac_try;;
 
4145
esac
 
4146
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4147
$as_echo "$ac_try_echo"; } >&5
 
4148
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4149
  ac_status=$?
 
4150
  if test -s conftest.err; then
 
4151
    sed '10a\
 
4152
... rest of stderr output deleted ...
 
4153
         10q' conftest.err >conftest.er1
 
4154
    cat conftest.er1 >&5
 
4155
  fi
 
4156
  rm -f conftest.er1 conftest.err
 
4157
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4158
  test $ac_status = 0; }
 
4159
done
 
4160
 
 
4161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4162
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4163
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4164
  $as_echo_n "(cached) " >&6
 
4165
else
 
4166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4167
/* end confdefs.h.  */
 
4168
 
 
4169
int
 
4170
main ()
 
4171
{
 
4172
#ifndef __GNUC__
 
4173
       choke me
 
4174
#endif
 
4175
 
 
4176
  ;
 
4177
  return 0;
 
4178
}
 
4179
_ACEOF
 
4180
if ac_fn_c_try_compile "$LINENO"; then :
 
4181
  ac_compiler_gnu=yes
 
4182
else
 
4183
  ac_compiler_gnu=no
 
4184
fi
 
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4186
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4187
 
 
4188
fi
 
4189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4190
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4191
if test $ac_compiler_gnu = yes; then
 
4192
  GCC=yes
 
4193
else
 
4194
  GCC=
 
4195
fi
 
4196
ac_test_CFLAGS=${CFLAGS+set}
 
4197
ac_save_CFLAGS=$CFLAGS
 
4198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4199
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4200
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4201
  $as_echo_n "(cached) " >&6
 
4202
else
 
4203
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4204
   ac_c_werror_flag=yes
 
4205
   ac_cv_prog_cc_g=no
 
4206
   CFLAGS="-g"
 
4207
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4208
/* end confdefs.h.  */
 
4209
 
 
4210
int
 
4211
main ()
 
4212
{
 
4213
 
 
4214
  ;
 
4215
  return 0;
 
4216
}
 
4217
_ACEOF
 
4218
if ac_fn_c_try_compile "$LINENO"; then :
 
4219
  ac_cv_prog_cc_g=yes
 
4220
else
 
4221
  CFLAGS=""
 
4222
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4223
/* end confdefs.h.  */
 
4224
 
 
4225
int
 
4226
main ()
 
4227
{
 
4228
 
 
4229
  ;
 
4230
  return 0;
 
4231
}
 
4232
_ACEOF
 
4233
if ac_fn_c_try_compile "$LINENO"; then :
 
4234
 
 
4235
else
 
4236
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4237
         CFLAGS="-g"
 
4238
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4239
/* end confdefs.h.  */
 
4240
 
 
4241
int
 
4242
main ()
 
4243
{
 
4244
 
 
4245
  ;
 
4246
  return 0;
 
4247
}
 
4248
_ACEOF
 
4249
if ac_fn_c_try_compile "$LINENO"; then :
 
4250
  ac_cv_prog_cc_g=yes
 
4251
fi
 
4252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4253
fi
 
4254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4255
fi
 
4256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4257
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4258
fi
 
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4260
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4261
if test "$ac_test_CFLAGS" = set; then
 
4262
  CFLAGS=$ac_save_CFLAGS
 
4263
elif test $ac_cv_prog_cc_g = yes; then
 
4264
  if test "$GCC" = yes; then
 
4265
    CFLAGS="-g -O2"
 
4266
  else
 
4267
    CFLAGS="-g"
 
4268
  fi
 
4269
else
 
4270
  if test "$GCC" = yes; then
 
4271
    CFLAGS="-O2"
 
4272
  else
 
4273
    CFLAGS=
 
4274
  fi
 
4275
fi
 
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4277
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4278
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4279
  $as_echo_n "(cached) " >&6
 
4280
else
 
4281
  ac_cv_prog_cc_c89=no
 
4282
ac_save_CC=$CC
 
4283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4284
/* end confdefs.h.  */
 
4285
#include <stdarg.h>
 
4286
#include <stdio.h>
 
4287
#include <sys/types.h>
 
4288
#include <sys/stat.h>
 
4289
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4290
struct buf { int x; };
 
4291
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4292
static char *e (p, i)
 
4293
     char **p;
 
4294
     int i;
 
4295
{
 
4296
  return p[i];
 
4297
}
 
4298
static char *f (char * (*g) (char **, int), char **p, ...)
 
4299
{
 
4300
  char *s;
 
4301
  va_list v;
 
4302
  va_start (v,p);
 
4303
  s = g (p, va_arg (v,int));
 
4304
  va_end (v);
 
4305
  return s;
 
4306
}
 
4307
 
 
4308
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4309
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4310
   These don't provoke an error unfortunately, instead are silently treated
 
4311
   as 'x'.  The following induces an error, until -std is added to get
 
4312
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4313
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4314
   that's true only with -std.  */
 
4315
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4316
 
 
4317
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4318
   inside strings and character constants.  */
 
4319
#define FOO(x) 'x'
 
4320
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4321
 
 
4322
int test (int i, double x);
 
4323
struct s1 {int (*f) (int a);};
 
4324
struct s2 {int (*f) (double a);};
 
4325
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4326
int argc;
 
4327
char **argv;
 
4328
int
 
4329
main ()
 
4330
{
 
4331
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4332
  ;
 
4333
  return 0;
 
4334
}
 
4335
_ACEOF
 
4336
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4337
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4338
do
 
4339
  CC="$ac_save_CC $ac_arg"
 
4340
  if ac_fn_c_try_compile "$LINENO"; then :
 
4341
  ac_cv_prog_cc_c89=$ac_arg
 
4342
fi
 
4343
rm -f core conftest.err conftest.$ac_objext
 
4344
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4345
done
 
4346
rm -f conftest.$ac_ext
 
4347
CC=$ac_save_CC
 
4348
 
 
4349
fi
 
4350
# AC_CACHE_VAL
 
4351
case "x$ac_cv_prog_cc_c89" in
 
4352
  x)
 
4353
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4354
$as_echo "none needed" >&6; } ;;
 
4355
  xno)
 
4356
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4357
$as_echo "unsupported" >&6; } ;;
 
4358
  *)
 
4359
    CC="$CC $ac_cv_prog_cc_c89"
 
4360
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4361
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4362
esac
 
4363
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4364
 
 
4365
fi
 
4366
 
 
4367
ac_ext=c
 
4368
ac_cpp='$CPP $CPPFLAGS'
 
4369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4372
 
 
4373
depcc="$CC"   am_compiler_list=
 
4374
 
 
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4376
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4377
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4378
  $as_echo_n "(cached) " >&6
 
4379
else
 
4380
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4381
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4382
  # making bogus files that we don't know about and never remove.  For
 
4383
  # instance it was reported that on HP-UX the gcc test will end up
 
4384
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4385
  # in D'.
 
4386
  mkdir conftest.dir
 
4387
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4388
  # using a relative directory.
 
4389
  cp "$am_depcomp" conftest.dir
 
4390
  cd conftest.dir
 
4391
  # We will build objects and dependencies in a subdirectory because
 
4392
  # it helps to detect inapplicable dependency modes.  For instance
 
4393
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4394
  # side effect of compilation, but ICC will put the dependencies in
 
4395
  # the current directory while Tru64 will put them in the object
 
4396
  # directory.
 
4397
  mkdir sub
 
4398
 
 
4399
  am_cv_CC_dependencies_compiler_type=none
 
4400
  if test "$am_compiler_list" = ""; then
 
4401
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4402
  fi
 
4403
  am__universal=false
 
4404
  case " $depcc " in #(
 
4405
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4406
     esac
 
4407
 
 
4408
  for depmode in $am_compiler_list; do
 
4409
    # Setup a source with many dependencies, because some compilers
 
4410
    # like to wrap large dependency lists on column 80 (with \), and
 
4411
    # we should not choose a depcomp mode which is confused by this.
 
4412
    #
 
4413
    # We need to recreate these files for each test, as the compiler may
 
4414
    # overwrite some of them when testing with obscure command lines.
 
4415
    # This happens at least with the AIX C compiler.
 
4416
    : > sub/conftest.c
 
4417
    for i in 1 2 3 4 5 6; do
 
4418
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4419
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4420
      # Solaris 8's {/usr,}/bin/sh.
 
4421
      touch sub/conftst$i.h
 
4422
    done
 
4423
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4424
 
 
4425
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4426
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4427
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4428
    # versions had trouble with output in subdirs
 
4429
    am__obj=sub/conftest.${OBJEXT-o}
 
4430
    am__minus_obj="-o $am__obj"
 
4431
    case $depmode in
 
4432
    gcc)
 
4433
      # This depmode causes a compiler race in universal mode.
 
4434
      test "$am__universal" = false || continue
 
4435
      ;;
 
4436
    nosideeffect)
 
4437
      # after this tag, mechanisms are not by side-effect, so they'll
 
4438
      # only be used when explicitly requested
 
4439
      if test "x$enable_dependency_tracking" = xyes; then
 
4440
        continue
 
4441
      else
 
4442
        break
 
4443
      fi
 
4444
      ;;
 
4445
    msvisualcpp | msvcmsys)
 
4446
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4447
      # not run yet.  These depmodes are late enough in the game, and
 
4448
      # so weak that their functioning should not be impacted.
 
4449
      am__obj=conftest.${OBJEXT-o}
 
4450
      am__minus_obj=
 
4451
      ;;
 
4452
    none) break ;;
 
4453
    esac
 
4454
    if depmode=$depmode \
 
4455
       source=sub/conftest.c object=$am__obj \
 
4456
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4457
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4458
         >/dev/null 2>conftest.err &&
 
4459
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4460
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4461
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4462
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4463
      # icc doesn't choke on unknown options, it will just issue warnings
 
4464
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4465
      # that says an option was ignored or not supported.
 
4466
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4467
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4468
      # The diagnosis changed in icc 8.0:
 
4469
      #   icc: Command line remark: option '-MP' not supported
 
4470
      if (grep 'ignoring option' conftest.err ||
 
4471
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4472
        am_cv_CC_dependencies_compiler_type=$depmode
 
4473
        break
 
4474
      fi
 
4475
    fi
 
4476
  done
 
4477
 
 
4478
  cd ..
 
4479
  rm -rf conftest.dir
 
4480
else
 
4481
  am_cv_CC_dependencies_compiler_type=none
 
4482
fi
 
4483
 
 
4484
fi
 
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4486
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4487
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4488
 
 
4489
 if
 
4490
  test "x$enable_dependency_tracking" != xno \
 
4491
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4492
  am__fastdepCC_TRUE=
 
4493
  am__fastdepCC_FALSE='#'
 
4494
else
 
4495
  am__fastdepCC_TRUE='#'
 
4496
  am__fastdepCC_FALSE=
 
4497
fi
 
4498
 
 
4499
 
 
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4501
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4502
if test "${ac_cv_path_SED+set}" = set; then :
 
4503
  $as_echo_n "(cached) " >&6
 
4504
else
 
4505
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4506
     for ac_i in 1 2 3 4 5 6 7; do
 
4507
       ac_script="$ac_script$as_nl$ac_script"
 
4508
     done
 
4509
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4510
     { ac_script=; unset ac_script;}
 
4511
     if test -z "$SED"; then
 
4512
  ac_path_SED_found=false
 
4513
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4514
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4515
for as_dir in $PATH
 
4516
do
 
4517
  IFS=$as_save_IFS
 
4518
  test -z "$as_dir" && as_dir=.
 
4519
    for ac_prog in sed gsed; do
 
4520
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4521
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4522
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4523
# Check for GNU ac_path_SED and select it if it is found.
 
4524
  # Check for GNU $ac_path_SED
 
4525
case `"$ac_path_SED" --version 2>&1` in
 
4526
*GNU*)
 
4527
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4528
*)
 
4529
  ac_count=0
 
4530
  $as_echo_n 0123456789 >"conftest.in"
 
4531
  while :
 
4532
  do
 
4533
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4534
    mv "conftest.tmp" "conftest.in"
 
4535
    cp "conftest.in" "conftest.nl"
 
4536
    $as_echo '' >> "conftest.nl"
 
4537
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4538
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4539
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4540
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4541
      # Best one so far, save it but keep looking for a better one
 
4542
      ac_cv_path_SED="$ac_path_SED"
 
4543
      ac_path_SED_max=$ac_count
 
4544
    fi
 
4545
    # 10*(2^10) chars as input seems more than enough
 
4546
    test $ac_count -gt 10 && break
 
4547
  done
 
4548
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4549
esac
 
4550
 
 
4551
      $ac_path_SED_found && break 3
 
4552
    done
 
4553
  done
 
4554
  done
 
4555
IFS=$as_save_IFS
 
4556
  if test -z "$ac_cv_path_SED"; then
 
4557
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4558
  fi
 
4559
else
 
4560
  ac_cv_path_SED=$SED
 
4561
fi
 
4562
 
 
4563
fi
 
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4565
$as_echo "$ac_cv_path_SED" >&6; }
 
4566
 SED="$ac_cv_path_SED"
 
4567
  rm -f conftest.sed
 
4568
 
 
4569
test -z "$SED" && SED=sed
 
4570
Xsed="$SED -e 1s/^X//"
 
4571
 
 
4572
 
 
4573
 
 
4574
 
 
4575
 
 
4576
 
 
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
 
 
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4583
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4584
if test "${ac_cv_path_GREP+set}" = set; then :
 
4585
  $as_echo_n "(cached) " >&6
 
4586
else
 
4587
  if test -z "$GREP"; then
 
4588
  ac_path_GREP_found=false
 
4589
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4590
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4591
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4592
do
 
4593
  IFS=$as_save_IFS
 
4594
  test -z "$as_dir" && as_dir=.
 
4595
    for ac_prog in grep ggrep; do
 
4596
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4597
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4598
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4599
# Check for GNU ac_path_GREP and select it if it is found.
 
4600
  # Check for GNU $ac_path_GREP
 
4601
case `"$ac_path_GREP" --version 2>&1` in
 
4602
*GNU*)
 
4603
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4604
*)
 
4605
  ac_count=0
 
4606
  $as_echo_n 0123456789 >"conftest.in"
 
4607
  while :
 
4608
  do
 
4609
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4610
    mv "conftest.tmp" "conftest.in"
 
4611
    cp "conftest.in" "conftest.nl"
 
4612
    $as_echo 'GREP' >> "conftest.nl"
 
4613
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4614
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4615
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4616
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4617
      # Best one so far, save it but keep looking for a better one
 
4618
      ac_cv_path_GREP="$ac_path_GREP"
 
4619
      ac_path_GREP_max=$ac_count
 
4620
    fi
 
4621
    # 10*(2^10) chars as input seems more than enough
 
4622
    test $ac_count -gt 10 && break
 
4623
  done
 
4624
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4625
esac
 
4626
 
 
4627
      $ac_path_GREP_found && break 3
 
4628
    done
 
4629
  done
 
4630
  done
 
4631
IFS=$as_save_IFS
 
4632
  if test -z "$ac_cv_path_GREP"; then
 
4633
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4634
  fi
 
4635
else
 
4636
  ac_cv_path_GREP=$GREP
 
4637
fi
 
4638
 
 
4639
fi
 
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4641
$as_echo "$ac_cv_path_GREP" >&6; }
 
4642
 GREP="$ac_cv_path_GREP"
 
4643
 
 
4644
 
 
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4646
$as_echo_n "checking for egrep... " >&6; }
 
4647
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4648
  $as_echo_n "(cached) " >&6
 
4649
else
 
4650
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4651
   then ac_cv_path_EGREP="$GREP -E"
 
4652
   else
 
4653
     if test -z "$EGREP"; then
 
4654
  ac_path_EGREP_found=false
 
4655
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4656
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4657
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4658
do
 
4659
  IFS=$as_save_IFS
 
4660
  test -z "$as_dir" && as_dir=.
 
4661
    for ac_prog in egrep; do
 
4662
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4663
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4664
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4665
# Check for GNU ac_path_EGREP and select it if it is found.
 
4666
  # Check for GNU $ac_path_EGREP
 
4667
case `"$ac_path_EGREP" --version 2>&1` in
 
4668
*GNU*)
 
4669
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4670
*)
 
4671
  ac_count=0
 
4672
  $as_echo_n 0123456789 >"conftest.in"
 
4673
  while :
 
4674
  do
 
4675
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4676
    mv "conftest.tmp" "conftest.in"
 
4677
    cp "conftest.in" "conftest.nl"
 
4678
    $as_echo 'EGREP' >> "conftest.nl"
 
4679
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4680
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4681
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4682
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4683
      # Best one so far, save it but keep looking for a better one
 
4684
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4685
      ac_path_EGREP_max=$ac_count
 
4686
    fi
 
4687
    # 10*(2^10) chars as input seems more than enough
 
4688
    test $ac_count -gt 10 && break
 
4689
  done
 
4690
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4691
esac
 
4692
 
 
4693
      $ac_path_EGREP_found && break 3
 
4694
    done
 
4695
  done
 
4696
  done
 
4697
IFS=$as_save_IFS
 
4698
  if test -z "$ac_cv_path_EGREP"; then
 
4699
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4700
  fi
 
4701
else
 
4702
  ac_cv_path_EGREP=$EGREP
 
4703
fi
 
4704
 
 
4705
   fi
 
4706
fi
 
4707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4708
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4709
 EGREP="$ac_cv_path_EGREP"
 
4710
 
 
4711
 
 
4712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4713
$as_echo_n "checking for fgrep... " >&6; }
 
4714
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4715
  $as_echo_n "(cached) " >&6
 
4716
else
 
4717
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4718
   then ac_cv_path_FGREP="$GREP -F"
 
4719
   else
 
4720
     if test -z "$FGREP"; then
 
4721
  ac_path_FGREP_found=false
 
4722
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4723
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4724
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4725
do
 
4726
  IFS=$as_save_IFS
 
4727
  test -z "$as_dir" && as_dir=.
 
4728
    for ac_prog in fgrep; do
 
4729
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4730
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4731
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4732
# Check for GNU ac_path_FGREP and select it if it is found.
 
4733
  # Check for GNU $ac_path_FGREP
 
4734
case `"$ac_path_FGREP" --version 2>&1` in
 
4735
*GNU*)
 
4736
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4737
*)
 
4738
  ac_count=0
 
4739
  $as_echo_n 0123456789 >"conftest.in"
 
4740
  while :
 
4741
  do
 
4742
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4743
    mv "conftest.tmp" "conftest.in"
 
4744
    cp "conftest.in" "conftest.nl"
 
4745
    $as_echo 'FGREP' >> "conftest.nl"
 
4746
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4747
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4748
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4749
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4750
      # Best one so far, save it but keep looking for a better one
 
4751
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4752
      ac_path_FGREP_max=$ac_count
 
4753
    fi
 
4754
    # 10*(2^10) chars as input seems more than enough
 
4755
    test $ac_count -gt 10 && break
 
4756
  done
 
4757
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4758
esac
 
4759
 
 
4760
      $ac_path_FGREP_found && break 3
 
4761
    done
 
4762
  done
 
4763
  done
 
4764
IFS=$as_save_IFS
 
4765
  if test -z "$ac_cv_path_FGREP"; then
 
4766
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4767
  fi
 
4768
else
 
4769
  ac_cv_path_FGREP=$FGREP
 
4770
fi
 
4771
 
 
4772
   fi
 
4773
fi
 
4774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4775
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4776
 FGREP="$ac_cv_path_FGREP"
 
4777
 
 
4778
 
 
4779
test -z "$GREP" && GREP=grep
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
 
 
4787
 
 
4788
 
 
4789
 
 
4790
 
 
4791
 
 
4792
 
 
4793
 
 
4794
 
 
4795
 
 
4796
 
 
4797
 
 
4798
 
 
4799
# Check whether --with-gnu-ld was given.
 
4800
if test "${with_gnu_ld+set}" = set; then :
 
4801
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4802
else
 
4803
  with_gnu_ld=no
 
4804
fi
 
4805
 
 
4806
ac_prog=ld
 
4807
if test "$GCC" = yes; then
 
4808
  # Check if gcc -print-prog-name=ld gives a path.
 
4809
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4810
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4811
  case $host in
 
4812
  *-*-mingw*)
 
4813
    # gcc leaves a trailing carriage return which upsets mingw
 
4814
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4815
  *)
 
4816
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4817
  esac
 
4818
  case $ac_prog in
 
4819
    # Accept absolute paths.
 
4820
    [\\/]* | ?:[\\/]*)
 
4821
      re_direlt='/[^/][^/]*/\.\./'
 
4822
      # Canonicalize the pathname of ld
 
4823
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4824
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4825
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4826
      done
 
4827
      test -z "$LD" && LD="$ac_prog"
 
4828
      ;;
 
4829
  "")
 
4830
    # If it fails, then pretend we aren't using GCC.
 
4831
    ac_prog=ld
 
4832
    ;;
 
4833
  *)
 
4834
    # If it is relative, then search for the first ld in PATH.
 
4835
    with_gnu_ld=unknown
 
4836
    ;;
 
4837
  esac
 
4838
elif test "$with_gnu_ld" = yes; then
 
4839
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4840
$as_echo_n "checking for GNU ld... " >&6; }
 
4841
else
 
4842
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4843
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4844
fi
 
4845
if test "${lt_cv_path_LD+set}" = set; then :
 
4846
  $as_echo_n "(cached) " >&6
 
4847
else
 
4848
  if test -z "$LD"; then
 
4849
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4850
  for ac_dir in $PATH; do
 
4851
    IFS="$lt_save_ifs"
 
4852
    test -z "$ac_dir" && ac_dir=.
 
4853
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4854
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4855
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4856
      # but apparently some variants of GNU ld only accept -v.
 
4857
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4858
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4859
      *GNU* | *'with BFD'*)
 
4860
        test "$with_gnu_ld" != no && break
 
4861
        ;;
 
4862
      *)
 
4863
        test "$with_gnu_ld" != yes && break
 
4864
        ;;
 
4865
      esac
 
4866
    fi
 
4867
  done
 
4868
  IFS="$lt_save_ifs"
 
4869
else
 
4870
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4871
fi
 
4872
fi
 
4873
 
 
4874
LD="$lt_cv_path_LD"
 
4875
if test -n "$LD"; then
 
4876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4877
$as_echo "$LD" >&6; }
 
4878
else
 
4879
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4880
$as_echo "no" >&6; }
 
4881
fi
 
4882
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4884
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4885
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4886
  $as_echo_n "(cached) " >&6
 
4887
else
 
4888
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4889
case `$LD -v 2>&1 </dev/null` in
 
4890
*GNU* | *'with BFD'*)
 
4891
  lt_cv_prog_gnu_ld=yes
 
4892
  ;;
 
4893
*)
 
4894
  lt_cv_prog_gnu_ld=no
 
4895
  ;;
 
4896
esac
 
4897
fi
 
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4899
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4900
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4901
 
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4911
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4912
if test "${lt_cv_path_NM+set}" = set; then :
 
4913
  $as_echo_n "(cached) " >&6
 
4914
else
 
4915
  if test -n "$NM"; then
 
4916
  # Let the user override the test.
 
4917
  lt_cv_path_NM="$NM"
 
4918
else
 
4919
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4920
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4921
    lt_nm_to_check="$lt_nm_to_check nm"
 
4922
  fi
 
4923
  for lt_tmp_nm in $lt_nm_to_check; do
 
4924
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4925
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4926
      IFS="$lt_save_ifs"
 
4927
      test -z "$ac_dir" && ac_dir=.
 
4928
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4929
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4930
        # Check to see if the nm accepts a BSD-compat flag.
 
4931
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4932
        #   nm: unknown option "B" ignored
 
4933
        # Tru64's nm complains that /dev/null is an invalid object file
 
4934
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4935
        */dev/null* | *'Invalid file or object type'*)
 
4936
          lt_cv_path_NM="$tmp_nm -B"
 
4937
          break
 
4938
          ;;
 
4939
        *)
 
4940
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4941
          */dev/null*)
 
4942
            lt_cv_path_NM="$tmp_nm -p"
 
4943
            break
 
4944
            ;;
 
4945
          *)
 
4946
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4947
            continue # so that we can try to find one that supports BSD flags
 
4948
            ;;
 
4949
          esac
 
4950
          ;;
 
4951
        esac
 
4952
      fi
 
4953
    done
 
4954
    IFS="$lt_save_ifs"
 
4955
  done
 
4956
  : ${lt_cv_path_NM=no}
 
4957
fi
 
4958
fi
 
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4960
$as_echo "$lt_cv_path_NM" >&6; }
 
4961
if test "$lt_cv_path_NM" != "no"; then
 
4962
  NM="$lt_cv_path_NM"
 
4963
else
 
4964
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4965
  if test -n "$ac_tool_prefix"; then
 
4966
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4967
  do
 
4968
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4969
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4971
$as_echo_n "checking for $ac_word... " >&6; }
 
4972
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4973
  $as_echo_n "(cached) " >&6
 
4974
else
 
4975
  if test -n "$DUMPBIN"; then
 
4976
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4977
else
 
4978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4979
for as_dir in $PATH
 
4980
do
 
4981
  IFS=$as_save_IFS
 
4982
  test -z "$as_dir" && as_dir=.
 
4983
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4985
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4986
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4987
    break 2
 
4988
  fi
 
4989
done
 
4990
  done
 
4991
IFS=$as_save_IFS
 
4992
 
 
4993
fi
 
4994
fi
 
4995
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4996
if test -n "$DUMPBIN"; then
 
4997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4998
$as_echo "$DUMPBIN" >&6; }
 
4999
else
 
5000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5001
$as_echo "no" >&6; }
 
5002
fi
 
5003
 
 
5004
 
 
5005
    test -n "$DUMPBIN" && break
 
5006
  done
 
5007
fi
 
5008
if test -z "$DUMPBIN"; then
 
5009
  ac_ct_DUMPBIN=$DUMPBIN
 
5010
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5011
do
 
5012
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5013
set dummy $ac_prog; ac_word=$2
 
5014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5015
$as_echo_n "checking for $ac_word... " >&6; }
 
5016
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5017
  $as_echo_n "(cached) " >&6
 
5018
else
 
5019
  if test -n "$ac_ct_DUMPBIN"; then
 
5020
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5021
else
 
5022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5023
for as_dir in $PATH
 
5024
do
 
5025
  IFS=$as_save_IFS
 
5026
  test -z "$as_dir" && as_dir=.
 
5027
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5028
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5029
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5030
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5031
    break 2
 
5032
  fi
 
5033
done
 
5034
  done
 
5035
IFS=$as_save_IFS
 
5036
 
 
5037
fi
 
5038
fi
 
5039
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5040
if test -n "$ac_ct_DUMPBIN"; then
 
5041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5042
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5043
else
 
5044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5045
$as_echo "no" >&6; }
 
5046
fi
 
5047
 
 
5048
 
 
5049
  test -n "$ac_ct_DUMPBIN" && break
 
5050
done
 
5051
 
 
5052
  if test "x$ac_ct_DUMPBIN" = x; then
 
5053
    DUMPBIN=":"
 
5054
  else
 
5055
    case $cross_compiling:$ac_tool_warned in
 
5056
yes:)
 
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5058
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5059
ac_tool_warned=yes ;;
 
5060
esac
 
5061
    DUMPBIN=$ac_ct_DUMPBIN
 
5062
  fi
 
5063
fi
 
5064
 
 
5065
 
 
5066
  if test "$DUMPBIN" != ":"; then
 
5067
    NM="$DUMPBIN"
 
5068
  fi
 
5069
fi
 
5070
test -z "$NM" && NM=nm
 
5071
 
 
5072
 
 
5073
 
 
5074
 
 
5075
 
 
5076
 
 
5077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5078
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5079
if test "${lt_cv_nm_interface+set}" = set; then :
 
5080
  $as_echo_n "(cached) " >&6
 
5081
else
 
5082
  lt_cv_nm_interface="BSD nm"
 
5083
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5084
  (eval echo "\"\$as_me:5084: $ac_compile\"" >&5)
 
5085
  (eval "$ac_compile" 2>conftest.err)
 
5086
  cat conftest.err >&5
 
5087
  (eval echo "\"\$as_me:5087: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5088
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5089
  cat conftest.err >&5
 
5090
  (eval echo "\"\$as_me:5090: output\"" >&5)
 
5091
  cat conftest.out >&5
 
5092
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5093
    lt_cv_nm_interface="MS dumpbin"
 
5094
  fi
 
5095
  rm -f conftest*
 
5096
fi
 
5097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5098
$as_echo "$lt_cv_nm_interface" >&6; }
 
5099
 
 
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5101
$as_echo_n "checking whether ln -s works... " >&6; }
 
5102
LN_S=$as_ln_s
 
5103
if test "$LN_S" = "ln -s"; then
 
5104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5105
$as_echo "yes" >&6; }
 
5106
else
 
5107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5108
$as_echo "no, using $LN_S" >&6; }
 
5109
fi
 
5110
 
 
5111
# find the maximum length of command line arguments
 
5112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5113
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5114
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5115
  $as_echo_n "(cached) " >&6
 
5116
else
 
5117
    i=0
 
5118
  teststring="ABCD"
 
5119
 
 
5120
  case $build_os in
 
5121
  msdosdjgpp*)
 
5122
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5123
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5124
    # during glob expansion).  Even if it were fixed, the result of this
 
5125
    # check would be larger than it should be.
 
5126
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5127
    ;;
 
5128
 
 
5129
  gnu*)
 
5130
    # Under GNU Hurd, this test is not required because there is
 
5131
    # no limit to the length of command line arguments.
 
5132
    # Libtool will interpret -1 as no limit whatsoever
 
5133
    lt_cv_sys_max_cmd_len=-1;
 
5134
    ;;
 
5135
 
 
5136
  cygwin* | mingw* | cegcc*)
 
5137
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5138
    # about 5 minutes as the teststring grows exponentially.
 
5139
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5140
    # you end up with a "frozen" computer, even though with patience
 
5141
    # the test eventually succeeds (with a max line length of 256k).
 
5142
    # Instead, let's just punt: use the minimum linelength reported by
 
5143
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5144
    lt_cv_sys_max_cmd_len=8192;
 
5145
    ;;
 
5146
 
 
5147
  amigaos*)
 
5148
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5149
    # So we just punt and use a minimum line length of 8192.
 
5150
    lt_cv_sys_max_cmd_len=8192;
 
5151
    ;;
 
5152
 
 
5153
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5154
    # This has been around since 386BSD, at least.  Likely further.
 
5155
    if test -x /sbin/sysctl; then
 
5156
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5157
    elif test -x /usr/sbin/sysctl; then
 
5158
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5159
    else
 
5160
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5161
    fi
 
5162
    # And add a safety zone
 
5163
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5164
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5165
    ;;
 
5166
 
 
5167
  interix*)
 
5168
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5169
    lt_cv_sys_max_cmd_len=196608
 
5170
    ;;
 
5171
 
 
5172
  osf*)
 
5173
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5174
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5175
    # nice to cause kernel panics so lets avoid the loop below.
 
5176
    # First set a reasonable default.
 
5177
    lt_cv_sys_max_cmd_len=16384
 
5178
    #
 
5179
    if test -x /sbin/sysconfig; then
 
5180
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5181
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5182
      esac
 
5183
    fi
 
5184
    ;;
 
5185
  sco3.2v5*)
 
5186
    lt_cv_sys_max_cmd_len=102400
 
5187
    ;;
 
5188
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5189
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5190
    if test -n "$kargmax"; then
 
5191
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5192
    else
 
5193
      lt_cv_sys_max_cmd_len=32768
 
5194
    fi
 
5195
    ;;
 
5196
  *)
 
5197
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5198
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5199
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5200
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5201
    else
 
5202
      # Make teststring a little bigger before we do anything with it.
 
5203
      # a 1K string should be a reasonable start.
 
5204
      for i in 1 2 3 4 5 6 7 8 ; do
 
5205
        teststring=$teststring$teststring
 
5206
      done
 
5207
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5208
      # If test is not a shell built-in, we'll probably end up computing a
 
5209
      # maximum length that is only half of the actual maximum length, but
 
5210
      # we can't tell.
 
5211
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5212
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5213
              test $i != 17 # 1/2 MB should be enough
 
5214
      do
 
5215
        i=`expr $i + 1`
 
5216
        teststring=$teststring$teststring
 
5217
      done
 
5218
      # Only check the string length outside the loop.
 
5219
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5220
      teststring=
 
5221
      # Add a significant safety factor because C++ compilers can tack on
 
5222
      # massive amounts of additional arguments before passing them to the
 
5223
      # linker.  It appears as though 1/2 is a usable value.
 
5224
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5225
    fi
 
5226
    ;;
 
5227
  esac
 
5228
 
 
5229
fi
 
5230
 
 
5231
if test -n $lt_cv_sys_max_cmd_len ; then
 
5232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5233
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5234
else
 
5235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5236
$as_echo "none" >&6; }
 
5237
fi
 
5238
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5239
 
 
5240
 
 
5241
 
 
5242
 
 
5243
 
 
5244
 
 
5245
: ${CP="cp -f"}
 
5246
: ${MV="mv -f"}
 
5247
: ${RM="rm -f"}
 
5248
 
 
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5250
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5251
# Try some XSI features
 
5252
xsi_shell=no
 
5253
( _lt_dummy="a/b/c"
 
5254
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5255
      = c,a/b,, \
 
5256
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5257
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5258
  && xsi_shell=yes
 
5259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5260
$as_echo "$xsi_shell" >&6; }
 
5261
 
 
5262
 
 
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5264
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5265
lt_shell_append=no
 
5266
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5267
    >/dev/null 2>&1 \
 
5268
  && lt_shell_append=yes
 
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5270
$as_echo "$lt_shell_append" >&6; }
 
5271
 
 
5272
 
 
5273
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5274
  lt_unset=unset
 
5275
else
 
5276
  lt_unset=false
 
5277
fi
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
# test EBCDIC or ASCII
 
5284
case `echo X|tr X '\101'` in
 
5285
 A) # ASCII based system
 
5286
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5287
  lt_SP2NL='tr \040 \012'
 
5288
  lt_NL2SP='tr \015\012 \040\040'
 
5289
  ;;
 
5290
 *) # EBCDIC based system
 
5291
  lt_SP2NL='tr \100 \n'
 
5292
  lt_NL2SP='tr \r\n \100\100'
 
5293
  ;;
 
5294
esac
 
5295
 
 
5296
 
 
5297
 
 
5298
 
 
5299
 
 
5300
 
 
5301
 
 
5302
 
 
5303
 
 
5304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5305
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5306
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5307
  $as_echo_n "(cached) " >&6
 
5308
else
 
5309
  lt_cv_ld_reload_flag='-r'
 
5310
fi
 
5311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5312
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5313
reload_flag=$lt_cv_ld_reload_flag
 
5314
case $reload_flag in
 
5315
"" | " "*) ;;
 
5316
*) reload_flag=" $reload_flag" ;;
 
5317
esac
 
5318
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5319
case $host_os in
 
5320
  darwin*)
 
5321
    if test "$GCC" = yes; then
 
5322
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5323
    else
 
5324
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5325
    fi
 
5326
    ;;
 
5327
esac
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
 
 
5333
 
 
5334
 
 
5335
 
 
5336
 
 
5337
if test -n "$ac_tool_prefix"; then
 
5338
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5339
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5341
$as_echo_n "checking for $ac_word... " >&6; }
 
5342
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5343
  $as_echo_n "(cached) " >&6
 
5344
else
 
5345
  if test -n "$OBJDUMP"; then
 
5346
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5347
else
 
5348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5349
for as_dir in $PATH
 
5350
do
 
5351
  IFS=$as_save_IFS
 
5352
  test -z "$as_dir" && as_dir=.
 
5353
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5355
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5356
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5357
    break 2
 
5358
  fi
 
5359
done
 
5360
  done
 
5361
IFS=$as_save_IFS
 
5362
 
 
5363
fi
 
5364
fi
 
5365
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5366
if test -n "$OBJDUMP"; then
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5368
$as_echo "$OBJDUMP" >&6; }
 
5369
else
 
5370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5371
$as_echo "no" >&6; }
 
5372
fi
 
5373
 
 
5374
 
 
5375
fi
 
5376
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5377
  ac_ct_OBJDUMP=$OBJDUMP
 
5378
  # Extract the first word of "objdump", so it can be a program name with args.
 
5379
set dummy objdump; ac_word=$2
 
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5381
$as_echo_n "checking for $ac_word... " >&6; }
 
5382
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5383
  $as_echo_n "(cached) " >&6
 
5384
else
 
5385
  if test -n "$ac_ct_OBJDUMP"; then
 
5386
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5387
else
 
5388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5389
for as_dir in $PATH
 
5390
do
 
5391
  IFS=$as_save_IFS
 
5392
  test -z "$as_dir" && as_dir=.
 
5393
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5394
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5395
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5396
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5397
    break 2
 
5398
  fi
 
5399
done
 
5400
  done
 
5401
IFS=$as_save_IFS
 
5402
 
 
5403
fi
 
5404
fi
 
5405
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5406
if test -n "$ac_ct_OBJDUMP"; then
 
5407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5408
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5409
else
 
5410
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5411
$as_echo "no" >&6; }
 
5412
fi
 
5413
 
 
5414
  if test "x$ac_ct_OBJDUMP" = x; then
 
5415
    OBJDUMP="false"
 
5416
  else
 
5417
    case $cross_compiling:$ac_tool_warned in
 
5418
yes:)
 
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5420
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5421
ac_tool_warned=yes ;;
 
5422
esac
 
5423
    OBJDUMP=$ac_ct_OBJDUMP
 
5424
  fi
 
5425
else
 
5426
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5427
fi
 
5428
 
 
5429
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5430
 
 
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5440
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5441
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5442
  $as_echo_n "(cached) " >&6
 
5443
else
 
5444
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5445
lt_cv_file_magic_test_file=
 
5446
lt_cv_deplibs_check_method='unknown'
 
5447
# Need to set the preceding variable on all platforms that support
 
5448
# interlibrary dependencies.
 
5449
# 'none' -- dependencies not supported.
 
5450
# `unknown' -- same as none, but documents that we really don't know.
 
5451
# 'pass_all' -- all dependencies passed with no checks.
 
5452
# 'test_compile' -- check by making test program.
 
5453
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5454
# which responds to the $file_magic_cmd with a given extended regex.
 
5455
# If you have `file' or equivalent on your system and you're not sure
 
5456
# whether `pass_all' will *always* work, you probably want this one.
 
5457
 
 
5458
case $host_os in
 
5459
aix[4-9]*)
 
5460
  lt_cv_deplibs_check_method=pass_all
 
5461
  ;;
 
5462
 
 
5463
beos*)
 
5464
  lt_cv_deplibs_check_method=pass_all
 
5465
  ;;
 
5466
 
 
5467
bsdi[45]*)
 
5468
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5469
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5470
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5471
  ;;
 
5472
 
 
5473
cygwin*)
 
5474
  # func_win32_libid is a shell function defined in ltmain.sh
 
5475
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5476
  lt_cv_file_magic_cmd='func_win32_libid'
 
5477
  ;;
 
5478
 
 
5479
mingw* | pw32*)
 
5480
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5481
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5482
  # unless we find 'file', for example because we are cross-compiling.
 
5483
  if ( file / ) >/dev/null 2>&1; then
 
5484
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5485
    lt_cv_file_magic_cmd='func_win32_libid'
 
5486
  else
 
5487
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5488
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5489
  fi
 
5490
  ;;
 
5491
 
 
5492
cegcc)
 
5493
  # use the weaker test based on 'objdump'. See mingw*.
 
5494
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5495
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5496
  ;;
 
5497
 
 
5498
darwin* | rhapsody*)
 
5499
  lt_cv_deplibs_check_method=pass_all
 
5500
  ;;
 
5501
 
 
5502
freebsd* | dragonfly*)
 
5503
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5504
    case $host_cpu in
 
5505
    i*86 )
 
5506
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5507
      # Let's accept both of them until this is cleared up.
 
5508
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5509
      lt_cv_file_magic_cmd=/usr/bin/file
 
5510
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5511
      ;;
 
5512
    esac
 
5513
  else
 
5514
    lt_cv_deplibs_check_method=pass_all
 
5515
  fi
 
5516
  ;;
 
5517
 
 
5518
gnu*)
 
5519
  lt_cv_deplibs_check_method=pass_all
 
5520
  ;;
 
5521
 
 
5522
hpux10.20* | hpux11*)
 
5523
  lt_cv_file_magic_cmd=/usr/bin/file
 
5524
  case $host_cpu in
 
5525
  ia64*)
 
5526
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5527
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5528
    ;;
 
5529
  hppa*64*)
 
5530
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5531
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5532
    ;;
 
5533
  *)
 
5534
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5535
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5536
    ;;
 
5537
  esac
 
5538
  ;;
 
5539
 
 
5540
interix[3-9]*)
 
5541
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5542
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5543
  ;;
 
5544
 
 
5545
irix5* | irix6* | nonstopux*)
 
5546
  case $LD in
 
5547
  *-32|*"-32 ") libmagic=32-bit;;
 
5548
  *-n32|*"-n32 ") libmagic=N32;;
 
5549
  *-64|*"-64 ") libmagic=64-bit;;
 
5550
  *) libmagic=never-match;;
 
5551
  esac
 
5552
  lt_cv_deplibs_check_method=pass_all
 
5553
  ;;
 
5554
 
 
5555
# This must be Linux ELF.
 
5556
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5557
  lt_cv_deplibs_check_method=pass_all
 
5558
  ;;
 
5559
 
 
5560
netbsd* | netbsdelf*-gnu)
 
5561
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5562
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5563
  else
 
5564
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5565
  fi
 
5566
  ;;
 
5567
 
 
5568
newos6*)
 
5569
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5570
  lt_cv_file_magic_cmd=/usr/bin/file
 
5571
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5572
  ;;
 
5573
 
 
5574
*nto* | *qnx*)
 
5575
  lt_cv_deplibs_check_method=pass_all
 
5576
  ;;
 
5577
 
 
5578
openbsd*)
 
5579
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5580
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5581
  else
 
5582
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5583
  fi
 
5584
  ;;
 
5585
 
 
5586
osf3* | osf4* | osf5*)
 
5587
  lt_cv_deplibs_check_method=pass_all
 
5588
  ;;
 
5589
 
 
5590
rdos*)
 
5591
  lt_cv_deplibs_check_method=pass_all
 
5592
  ;;
 
5593
 
 
5594
solaris*)
 
5595
  lt_cv_deplibs_check_method=pass_all
 
5596
  ;;
 
5597
 
 
5598
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5599
  lt_cv_deplibs_check_method=pass_all
 
5600
  ;;
 
5601
 
 
5602
sysv4 | sysv4.3*)
 
5603
  case $host_vendor in
 
5604
  motorola)
 
5605
    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]'
 
5606
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5607
    ;;
 
5608
  ncr)
 
5609
    lt_cv_deplibs_check_method=pass_all
 
5610
    ;;
 
5611
  sequent)
 
5612
    lt_cv_file_magic_cmd='/bin/file'
 
5613
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5614
    ;;
 
5615
  sni)
 
5616
    lt_cv_file_magic_cmd='/bin/file'
 
5617
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5618
    lt_cv_file_magic_test_file=/lib/libc.so
 
5619
    ;;
 
5620
  siemens)
 
5621
    lt_cv_deplibs_check_method=pass_all
 
5622
    ;;
 
5623
  pc)
 
5624
    lt_cv_deplibs_check_method=pass_all
 
5625
    ;;
 
5626
  esac
 
5627
  ;;
 
5628
 
 
5629
tpf*)
 
5630
  lt_cv_deplibs_check_method=pass_all
 
5631
  ;;
 
5632
esac
 
5633
 
 
5634
fi
 
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5636
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5637
file_magic_cmd=$lt_cv_file_magic_cmd
 
5638
deplibs_check_method=$lt_cv_deplibs_check_method
 
5639
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5640
 
 
5641
 
 
5642
 
 
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
if test -n "$ac_tool_prefix"; then
 
5653
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5654
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5656
$as_echo_n "checking for $ac_word... " >&6; }
 
5657
if test "${ac_cv_prog_AR+set}" = set; then :
 
5658
  $as_echo_n "(cached) " >&6
 
5659
else
 
5660
  if test -n "$AR"; then
 
5661
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5662
else
 
5663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5664
for as_dir in $PATH
 
5665
do
 
5666
  IFS=$as_save_IFS
 
5667
  test -z "$as_dir" && as_dir=.
 
5668
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5670
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5672
    break 2
 
5673
  fi
 
5674
done
 
5675
  done
 
5676
IFS=$as_save_IFS
 
5677
 
 
5678
fi
 
5679
fi
 
5680
AR=$ac_cv_prog_AR
 
5681
if test -n "$AR"; then
 
5682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5683
$as_echo "$AR" >&6; }
 
5684
else
 
5685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5686
$as_echo "no" >&6; }
 
5687
fi
 
5688
 
 
5689
 
 
5690
fi
 
5691
if test -z "$ac_cv_prog_AR"; then
 
5692
  ac_ct_AR=$AR
 
5693
  # Extract the first word of "ar", so it can be a program name with args.
 
5694
set dummy ar; ac_word=$2
 
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5696
$as_echo_n "checking for $ac_word... " >&6; }
 
5697
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5698
  $as_echo_n "(cached) " >&6
 
5699
else
 
5700
  if test -n "$ac_ct_AR"; then
 
5701
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5702
else
 
5703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5704
for as_dir in $PATH
 
5705
do
 
5706
  IFS=$as_save_IFS
 
5707
  test -z "$as_dir" && as_dir=.
 
5708
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5709
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5710
    ac_cv_prog_ac_ct_AR="ar"
 
5711
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5712
    break 2
 
5713
  fi
 
5714
done
 
5715
  done
 
5716
IFS=$as_save_IFS
 
5717
 
 
5718
fi
 
5719
fi
 
5720
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5721
if test -n "$ac_ct_AR"; then
 
5722
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5723
$as_echo "$ac_ct_AR" >&6; }
 
5724
else
 
5725
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5726
$as_echo "no" >&6; }
 
5727
fi
 
5728
 
 
5729
  if test "x$ac_ct_AR" = x; then
 
5730
    AR="false"
 
5731
  else
 
5732
    case $cross_compiling:$ac_tool_warned in
 
5733
yes:)
 
5734
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5735
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5736
ac_tool_warned=yes ;;
 
5737
esac
 
5738
    AR=$ac_ct_AR
 
5739
  fi
 
5740
else
 
5741
  AR="$ac_cv_prog_AR"
 
5742
fi
 
5743
 
 
5744
test -z "$AR" && AR=ar
 
5745
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
 
 
5751
 
 
5752
 
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
if test -n "$ac_tool_prefix"; then
 
5758
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5759
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5761
$as_echo_n "checking for $ac_word... " >&6; }
 
5762
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5763
  $as_echo_n "(cached) " >&6
 
5764
else
 
5765
  if test -n "$STRIP"; then
 
5766
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5767
else
 
5768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5769
for as_dir in $PATH
 
5770
do
 
5771
  IFS=$as_save_IFS
 
5772
  test -z "$as_dir" && as_dir=.
 
5773
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5774
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5775
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5776
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5777
    break 2
 
5778
  fi
 
5779
done
 
5780
  done
 
5781
IFS=$as_save_IFS
 
5782
 
 
5783
fi
 
5784
fi
 
5785
STRIP=$ac_cv_prog_STRIP
 
5786
if test -n "$STRIP"; then
 
5787
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5788
$as_echo "$STRIP" >&6; }
 
5789
else
 
5790
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5791
$as_echo "no" >&6; }
 
5792
fi
 
5793
 
 
5794
 
 
5795
fi
 
5796
if test -z "$ac_cv_prog_STRIP"; then
 
5797
  ac_ct_STRIP=$STRIP
 
5798
  # Extract the first word of "strip", so it can be a program name with args.
 
5799
set dummy strip; ac_word=$2
 
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5801
$as_echo_n "checking for $ac_word... " >&6; }
 
5802
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5803
  $as_echo_n "(cached) " >&6
 
5804
else
 
5805
  if test -n "$ac_ct_STRIP"; then
 
5806
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5807
else
 
5808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5809
for as_dir in $PATH
 
5810
do
 
5811
  IFS=$as_save_IFS
 
5812
  test -z "$as_dir" && as_dir=.
 
5813
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5814
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5815
    ac_cv_prog_ac_ct_STRIP="strip"
 
5816
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5817
    break 2
 
5818
  fi
 
5819
done
 
5820
  done
 
5821
IFS=$as_save_IFS
 
5822
 
 
5823
fi
 
5824
fi
 
5825
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5826
if test -n "$ac_ct_STRIP"; then
 
5827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5828
$as_echo "$ac_ct_STRIP" >&6; }
 
5829
else
 
5830
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5831
$as_echo "no" >&6; }
 
5832
fi
 
5833
 
 
5834
  if test "x$ac_ct_STRIP" = x; then
 
5835
    STRIP=":"
 
5836
  else
 
5837
    case $cross_compiling:$ac_tool_warned in
 
5838
yes:)
 
5839
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5840
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5841
ac_tool_warned=yes ;;
 
5842
esac
 
5843
    STRIP=$ac_ct_STRIP
 
5844
  fi
 
5845
else
 
5846
  STRIP="$ac_cv_prog_STRIP"
 
5847
fi
 
5848
 
 
5849
test -z "$STRIP" && STRIP=:
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
if test -n "$ac_tool_prefix"; then
 
5857
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5858
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5860
$as_echo_n "checking for $ac_word... " >&6; }
 
5861
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5862
  $as_echo_n "(cached) " >&6
 
5863
else
 
5864
  if test -n "$RANLIB"; then
 
5865
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5866
else
 
5867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5868
for as_dir in $PATH
 
5869
do
 
5870
  IFS=$as_save_IFS
 
5871
  test -z "$as_dir" && as_dir=.
 
5872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5874
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5875
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5876
    break 2
 
5877
  fi
 
5878
done
 
5879
  done
 
5880
IFS=$as_save_IFS
 
5881
 
 
5882
fi
 
5883
fi
 
5884
RANLIB=$ac_cv_prog_RANLIB
 
5885
if test -n "$RANLIB"; then
 
5886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5887
$as_echo "$RANLIB" >&6; }
 
5888
else
 
5889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5890
$as_echo "no" >&6; }
 
5891
fi
 
5892
 
 
5893
 
 
5894
fi
 
5895
if test -z "$ac_cv_prog_RANLIB"; then
 
5896
  ac_ct_RANLIB=$RANLIB
 
5897
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5898
set dummy ranlib; ac_word=$2
 
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5900
$as_echo_n "checking for $ac_word... " >&6; }
 
5901
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5902
  $as_echo_n "(cached) " >&6
 
5903
else
 
5904
  if test -n "$ac_ct_RANLIB"; then
 
5905
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5906
else
 
5907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5908
for as_dir in $PATH
 
5909
do
 
5910
  IFS=$as_save_IFS
 
5911
  test -z "$as_dir" && as_dir=.
 
5912
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5913
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5914
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5915
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5916
    break 2
 
5917
  fi
 
5918
done
 
5919
  done
 
5920
IFS=$as_save_IFS
 
5921
 
 
5922
fi
 
5923
fi
 
5924
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5925
if test -n "$ac_ct_RANLIB"; then
 
5926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5927
$as_echo "$ac_ct_RANLIB" >&6; }
 
5928
else
 
5929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5930
$as_echo "no" >&6; }
 
5931
fi
 
5932
 
 
5933
  if test "x$ac_ct_RANLIB" = x; then
 
5934
    RANLIB=":"
 
5935
  else
 
5936
    case $cross_compiling:$ac_tool_warned in
 
5937
yes:)
 
5938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5940
ac_tool_warned=yes ;;
 
5941
esac
 
5942
    RANLIB=$ac_ct_RANLIB
 
5943
  fi
 
5944
else
 
5945
  RANLIB="$ac_cv_prog_RANLIB"
 
5946
fi
 
5947
 
 
5948
test -z "$RANLIB" && RANLIB=:
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
# Determine commands to create old-style static archives.
 
5956
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5957
old_postinstall_cmds='chmod 644 $oldlib'
 
5958
old_postuninstall_cmds=
 
5959
 
 
5960
if test -n "$RANLIB"; then
 
5961
  case $host_os in
 
5962
  openbsd*)
 
5963
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5964
    ;;
 
5965
  *)
 
5966
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5967
    ;;
 
5968
  esac
 
5969
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5970
fi
 
5971
 
 
5972
 
 
5973
 
 
5974
 
 
5975
 
 
5976
 
 
5977
 
 
5978
 
 
5979
 
 
5980
 
 
5981
 
 
5982
 
 
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
# If no C compiler was specified, use CC.
 
6006
LTCC=${LTCC-"$CC"}
 
6007
 
 
6008
# If no C compiler flags were specified, use CFLAGS.
 
6009
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6010
 
 
6011
# Allow CC to be a program name with arguments.
 
6012
compiler=$CC
 
6013
 
 
6014
 
 
6015
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6017
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6018
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6019
  $as_echo_n "(cached) " >&6
 
6020
else
 
6021
 
 
6022
# These are sane defaults that work on at least a few old systems.
 
6023
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6024
 
 
6025
# Character class describing NM global symbol codes.
 
6026
symcode='[BCDEGRST]'
 
6027
 
 
6028
# Regexp to match symbols that can be accessed directly from C.
 
6029
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6030
 
 
6031
# Define system-specific variables.
 
6032
case $host_os in
 
6033
aix*)
 
6034
  symcode='[BCDT]'
 
6035
  ;;
 
6036
cygwin* | mingw* | pw32* | cegcc*)
 
6037
  symcode='[ABCDGISTW]'
 
6038
  ;;
 
6039
hpux*)
 
6040
  if test "$host_cpu" = ia64; then
 
6041
    symcode='[ABCDEGRST]'
 
6042
  fi
 
6043
  ;;
 
6044
irix* | nonstopux*)
 
6045
  symcode='[BCDEGRST]'
 
6046
  ;;
 
6047
osf*)
 
6048
  symcode='[BCDEGQRST]'
 
6049
  ;;
 
6050
solaris*)
 
6051
  symcode='[BDRT]'
 
6052
  ;;
 
6053
sco3.2v5*)
 
6054
  symcode='[DT]'
 
6055
  ;;
 
6056
sysv4.2uw2*)
 
6057
  symcode='[DT]'
 
6058
  ;;
 
6059
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6060
  symcode='[ABDT]'
 
6061
  ;;
 
6062
sysv4)
 
6063
  symcode='[DFNSTU]'
 
6064
  ;;
 
6065
esac
 
6066
 
 
6067
# If we're using GNU nm, then use its standard symbol codes.
 
6068
case `$NM -V 2>&1` in
 
6069
*GNU* | *'with BFD'*)
 
6070
  symcode='[ABCDGIRSTW]' ;;
 
6071
esac
 
6072
 
 
6073
# Transform an extracted symbol line into a proper C declaration.
 
6074
# Some systems (esp. on ia64) link data and code symbols differently,
 
6075
# so use this general approach.
 
6076
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6077
 
 
6078
# Transform an extracted symbol line into symbol name and symbol address
 
6079
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6080
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'"
 
6081
 
 
6082
# Handle CRLF in mingw tool chain
 
6083
opt_cr=
 
6084
case $build_os in
 
6085
mingw*)
 
6086
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6087
  ;;
 
6088
esac
 
6089
 
 
6090
# Try without a prefix underscore, then with it.
 
6091
for ac_symprfx in "" "_"; do
 
6092
 
 
6093
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6094
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6095
 
 
6096
  # Write the raw and C identifiers.
 
6097
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6098
    # Fake it for dumpbin and say T for any non-static function
 
6099
    # and D for any global variable.
 
6100
    # Also find C++ and __fastcall symbols from MSVC++,
 
6101
    # which start with @ or ?.
 
6102
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6103
"     {last_section=section; section=\$ 3};"\
 
6104
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6105
"     \$ 0!~/External *\|/{next};"\
 
6106
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6107
"     {if(hide[section]) next};"\
 
6108
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6109
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6110
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6111
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6112
"     ' prfx=^$ac_symprfx"
 
6113
  else
 
6114
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6115
  fi
 
6116
 
 
6117
  # Check to see that the pipe works correctly.
 
6118
  pipe_works=no
 
6119
 
 
6120
  rm -f conftest*
 
6121
  cat > conftest.$ac_ext <<_LT_EOF
 
6122
#ifdef __cplusplus
 
6123
extern "C" {
 
6124
#endif
 
6125
char nm_test_var;
 
6126
void nm_test_func(void);
 
6127
void nm_test_func(void){}
 
6128
#ifdef __cplusplus
 
6129
}
 
6130
#endif
 
6131
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6132
_LT_EOF
 
6133
 
 
6134
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6135
  (eval $ac_compile) 2>&5
 
6136
  ac_status=$?
 
6137
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6138
  test $ac_status = 0; }; then
 
6139
    # Now try to grab the symbols.
 
6140
    nlist=conftest.nm
 
6141
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6142
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6143
  ac_status=$?
 
6144
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6145
  test $ac_status = 0; } && test -s "$nlist"; then
 
6146
      # Try sorting and uniquifying the output.
 
6147
      if sort "$nlist" | uniq > "$nlist"T; then
 
6148
        mv -f "$nlist"T "$nlist"
 
6149
      else
 
6150
        rm -f "$nlist"T
 
6151
      fi
 
6152
 
 
6153
      # Make sure that we snagged all the symbols we need.
 
6154
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6155
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6156
          cat <<_LT_EOF > conftest.$ac_ext
 
6157
#ifdef __cplusplus
 
6158
extern "C" {
 
6159
#endif
 
6160
 
 
6161
_LT_EOF
 
6162
          # Now generate the symbol file.
 
6163
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6164
 
 
6165
          cat <<_LT_EOF >> conftest.$ac_ext
 
6166
 
 
6167
/* The mapping between symbol names and symbols.  */
 
6168
const struct {
 
6169
  const char *name;
 
6170
  void       *address;
 
6171
}
 
6172
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6173
{
 
6174
  { "@PROGRAM@", (void *) 0 },
 
6175
_LT_EOF
 
6176
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6177
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6178
  {0, (void *) 0}
 
6179
};
 
6180
 
 
6181
/* This works around a problem in FreeBSD linker */
 
6182
#ifdef FREEBSD_WORKAROUND
 
6183
static const void *lt_preloaded_setup() {
 
6184
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6185
}
 
6186
#endif
 
6187
 
 
6188
#ifdef __cplusplus
 
6189
}
 
6190
#endif
 
6191
_LT_EOF
 
6192
          # Now try linking the two files.
 
6193
          mv conftest.$ac_objext conftstm.$ac_objext
 
6194
          lt_save_LIBS="$LIBS"
 
6195
          lt_save_CFLAGS="$CFLAGS"
 
6196
          LIBS="conftstm.$ac_objext"
 
6197
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6198
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6199
  (eval $ac_link) 2>&5
 
6200
  ac_status=$?
 
6201
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6202
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6203
            pipe_works=yes
 
6204
          fi
 
6205
          LIBS="$lt_save_LIBS"
 
6206
          CFLAGS="$lt_save_CFLAGS"
 
6207
        else
 
6208
          echo "cannot find nm_test_func in $nlist" >&5
 
6209
        fi
 
6210
      else
 
6211
        echo "cannot find nm_test_var in $nlist" >&5
 
6212
      fi
 
6213
    else
 
6214
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6215
    fi
 
6216
  else
 
6217
    echo "$progname: failed program was:" >&5
 
6218
    cat conftest.$ac_ext >&5
 
6219
  fi
 
6220
  rm -rf conftest* conftst*
 
6221
 
 
6222
  # Do not use the global_symbol_pipe unless it works.
 
6223
  if test "$pipe_works" = yes; then
 
6224
    break
 
6225
  else
 
6226
    lt_cv_sys_global_symbol_pipe=
 
6227
  fi
 
6228
done
 
6229
 
 
6230
fi
 
6231
 
 
6232
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6233
  lt_cv_sys_global_symbol_to_cdecl=
 
6234
fi
 
6235
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6237
$as_echo "failed" >&6; }
 
6238
else
 
6239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6240
$as_echo "ok" >&6; }
 
6241
fi
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
 
 
6264
 
 
6265
# Check whether --enable-libtool-lock was given.
 
6266
if test "${enable_libtool_lock+set}" = set; then :
 
6267
  enableval=$enable_libtool_lock;
 
6268
fi
 
6269
 
 
6270
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6271
 
 
6272
# Some flags need to be propagated to the compiler or linker for good
 
6273
# libtool support.
 
6274
case $host in
 
6275
ia64-*-hpux*)
 
6276
  # Find out which ABI we are using.
 
6277
  echo 'int i;' > conftest.$ac_ext
 
6278
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6279
  (eval $ac_compile) 2>&5
 
6280
  ac_status=$?
 
6281
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6282
  test $ac_status = 0; }; then
 
6283
    case `/usr/bin/file conftest.$ac_objext` in
 
6284
      *ELF-32*)
 
6285
        HPUX_IA64_MODE="32"
 
6286
        ;;
 
6287
      *ELF-64*)
 
6288
        HPUX_IA64_MODE="64"
 
6289
        ;;
 
6290
    esac
 
6291
  fi
 
6292
  rm -rf conftest*
 
6293
  ;;
 
6294
*-*-irix6*)
 
6295
  # Find out which ABI we are using.
 
6296
  echo '#line 6296 "configure"' > conftest.$ac_ext
 
6297
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6298
  (eval $ac_compile) 2>&5
 
6299
  ac_status=$?
 
6300
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6301
  test $ac_status = 0; }; then
 
6302
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6303
      case `/usr/bin/file conftest.$ac_objext` in
 
6304
        *32-bit*)
 
6305
          LD="${LD-ld} -melf32bsmip"
 
6306
          ;;
 
6307
        *N32*)
 
6308
          LD="${LD-ld} -melf32bmipn32"
 
6309
          ;;
 
6310
        *64-bit*)
 
6311
          LD="${LD-ld} -melf64bmip"
 
6312
        ;;
 
6313
      esac
 
6314
    else
 
6315
      case `/usr/bin/file conftest.$ac_objext` in
 
6316
        *32-bit*)
 
6317
          LD="${LD-ld} -32"
 
6318
          ;;
 
6319
        *N32*)
 
6320
          LD="${LD-ld} -n32"
 
6321
          ;;
 
6322
        *64-bit*)
 
6323
          LD="${LD-ld} -64"
 
6324
          ;;
 
6325
      esac
 
6326
    fi
 
6327
  fi
 
6328
  rm -rf conftest*
 
6329
  ;;
 
6330
 
 
6331
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6332
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6333
  # Find out which ABI we are using.
 
6334
  echo 'int i;' > conftest.$ac_ext
 
6335
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6336
  (eval $ac_compile) 2>&5
 
6337
  ac_status=$?
 
6338
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6339
  test $ac_status = 0; }; then
 
6340
    case `/usr/bin/file conftest.o` in
 
6341
      *32-bit*)
 
6342
        case $host in
 
6343
          x86_64-*kfreebsd*-gnu)
 
6344
            LD="${LD-ld} -m elf_i386_fbsd"
 
6345
            ;;
 
6346
          x86_64-*linux*)
 
6347
            LD="${LD-ld} -m elf_i386"
 
6348
            ;;
 
6349
          ppc64-*linux*|powerpc64-*linux*)
 
6350
            LD="${LD-ld} -m elf32ppclinux"
 
6351
            ;;
 
6352
          s390x-*linux*)
 
6353
            LD="${LD-ld} -m elf_s390"
 
6354
            ;;
 
6355
          sparc64-*linux*)
 
6356
            LD="${LD-ld} -m elf32_sparc"
 
6357
            ;;
 
6358
        esac
 
6359
        ;;
 
6360
      *64-bit*)
 
6361
        case $host in
 
6362
          x86_64-*kfreebsd*-gnu)
 
6363
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6364
            ;;
 
6365
          x86_64-*linux*)
 
6366
            LD="${LD-ld} -m elf_x86_64"
 
6367
            ;;
 
6368
          ppc*-*linux*|powerpc*-*linux*)
 
6369
            LD="${LD-ld} -m elf64ppc"
 
6370
            ;;
 
6371
          s390*-*linux*|s390*-*tpf*)
 
6372
            LD="${LD-ld} -m elf64_s390"
 
6373
            ;;
 
6374
          sparc*-*linux*)
 
6375
            LD="${LD-ld} -m elf64_sparc"
 
6376
            ;;
 
6377
        esac
 
6378
        ;;
 
6379
    esac
 
6380
  fi
 
6381
  rm -rf conftest*
 
6382
  ;;
 
6383
 
 
6384
*-*-sco3.2v5*)
 
6385
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6386
  SAVE_CFLAGS="$CFLAGS"
 
6387
  CFLAGS="$CFLAGS -belf"
 
6388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6389
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6390
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6391
  $as_echo_n "(cached) " >&6
 
6392
else
 
6393
  ac_ext=c
 
6394
ac_cpp='$CPP $CPPFLAGS'
 
6395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6398
 
 
6399
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6400
/* end confdefs.h.  */
 
6401
 
 
6402
int
 
6403
main ()
 
6404
{
 
6405
 
 
6406
  ;
 
6407
  return 0;
 
6408
}
 
6409
_ACEOF
 
6410
if ac_fn_c_try_link "$LINENO"; then :
 
6411
  lt_cv_cc_needs_belf=yes
 
6412
else
 
6413
  lt_cv_cc_needs_belf=no
 
6414
fi
 
6415
rm -f core conftest.err conftest.$ac_objext \
 
6416
    conftest$ac_exeext conftest.$ac_ext
 
6417
     ac_ext=c
 
6418
ac_cpp='$CPP $CPPFLAGS'
 
6419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6422
 
 
6423
fi
 
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6425
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6426
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6427
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6428
    CFLAGS="$SAVE_CFLAGS"
 
6429
  fi
 
6430
  ;;
 
6431
sparc*-*solaris*)
 
6432
  # Find out which ABI we are using.
 
6433
  echo 'int i;' > conftest.$ac_ext
 
6434
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6435
  (eval $ac_compile) 2>&5
 
6436
  ac_status=$?
 
6437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6438
  test $ac_status = 0; }; then
 
6439
    case `/usr/bin/file conftest.o` in
 
6440
    *64-bit*)
 
6441
      case $lt_cv_prog_gnu_ld in
 
6442
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6443
      *)
 
6444
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6445
          LD="${LD-ld} -64"
 
6446
        fi
 
6447
        ;;
 
6448
      esac
 
6449
      ;;
 
6450
    esac
 
6451
  fi
 
6452
  rm -rf conftest*
 
6453
  ;;
 
6454
esac
 
6455
 
 
6456
need_locks="$enable_libtool_lock"
 
6457
 
 
6458
 
 
6459
  case $host_os in
 
6460
    rhapsody* | darwin*)
 
6461
    if test -n "$ac_tool_prefix"; then
 
6462
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6463
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6465
$as_echo_n "checking for $ac_word... " >&6; }
 
6466
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6467
  $as_echo_n "(cached) " >&6
 
6468
else
 
6469
  if test -n "$DSYMUTIL"; then
 
6470
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6471
else
 
6472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6473
for as_dir in $PATH
 
6474
do
 
6475
  IFS=$as_save_IFS
 
6476
  test -z "$as_dir" && as_dir=.
 
6477
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6478
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6479
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6480
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6481
    break 2
 
6482
  fi
 
6483
done
 
6484
  done
 
6485
IFS=$as_save_IFS
 
6486
 
 
6487
fi
 
6488
fi
 
6489
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6490
if test -n "$DSYMUTIL"; then
 
6491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6492
$as_echo "$DSYMUTIL" >&6; }
 
6493
else
 
6494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6495
$as_echo "no" >&6; }
 
6496
fi
 
6497
 
 
6498
 
 
6499
fi
 
6500
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6501
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6502
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6503
set dummy dsymutil; ac_word=$2
 
6504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6505
$as_echo_n "checking for $ac_word... " >&6; }
 
6506
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6507
  $as_echo_n "(cached) " >&6
 
6508
else
 
6509
  if test -n "$ac_ct_DSYMUTIL"; then
 
6510
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6511
else
 
6512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6513
for as_dir in $PATH
 
6514
do
 
6515
  IFS=$as_save_IFS
 
6516
  test -z "$as_dir" && as_dir=.
 
6517
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6519
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6521
    break 2
 
6522
  fi
 
6523
done
 
6524
  done
 
6525
IFS=$as_save_IFS
 
6526
 
 
6527
fi
 
6528
fi
 
6529
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6530
if test -n "$ac_ct_DSYMUTIL"; then
 
6531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6532
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6533
else
 
6534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6535
$as_echo "no" >&6; }
 
6536
fi
 
6537
 
 
6538
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6539
    DSYMUTIL=":"
 
6540
  else
 
6541
    case $cross_compiling:$ac_tool_warned in
 
6542
yes:)
 
6543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6545
ac_tool_warned=yes ;;
 
6546
esac
 
6547
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6548
  fi
 
6549
else
 
6550
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6551
fi
 
6552
 
 
6553
    if test -n "$ac_tool_prefix"; then
 
6554
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6555
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6557
$as_echo_n "checking for $ac_word... " >&6; }
 
6558
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6559
  $as_echo_n "(cached) " >&6
 
6560
else
 
6561
  if test -n "$NMEDIT"; then
 
6562
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6563
else
 
6564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6565
for as_dir in $PATH
 
6566
do
 
6567
  IFS=$as_save_IFS
 
6568
  test -z "$as_dir" && as_dir=.
 
6569
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6571
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6572
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6573
    break 2
 
6574
  fi
 
6575
done
 
6576
  done
 
6577
IFS=$as_save_IFS
 
6578
 
 
6579
fi
 
6580
fi
 
6581
NMEDIT=$ac_cv_prog_NMEDIT
 
6582
if test -n "$NMEDIT"; then
 
6583
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6584
$as_echo "$NMEDIT" >&6; }
 
6585
else
 
6586
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6587
$as_echo "no" >&6; }
 
6588
fi
 
6589
 
 
6590
 
 
6591
fi
 
6592
if test -z "$ac_cv_prog_NMEDIT"; then
 
6593
  ac_ct_NMEDIT=$NMEDIT
 
6594
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6595
set dummy nmedit; ac_word=$2
 
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6597
$as_echo_n "checking for $ac_word... " >&6; }
 
6598
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6599
  $as_echo_n "(cached) " >&6
 
6600
else
 
6601
  if test -n "$ac_ct_NMEDIT"; then
 
6602
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6603
else
 
6604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6605
for as_dir in $PATH
 
6606
do
 
6607
  IFS=$as_save_IFS
 
6608
  test -z "$as_dir" && as_dir=.
 
6609
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6611
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6612
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6613
    break 2
 
6614
  fi
 
6615
done
 
6616
  done
 
6617
IFS=$as_save_IFS
 
6618
 
 
6619
fi
 
6620
fi
 
6621
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6622
if test -n "$ac_ct_NMEDIT"; then
 
6623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6624
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6625
else
 
6626
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6627
$as_echo "no" >&6; }
 
6628
fi
 
6629
 
 
6630
  if test "x$ac_ct_NMEDIT" = x; then
 
6631
    NMEDIT=":"
 
6632
  else
 
6633
    case $cross_compiling:$ac_tool_warned in
 
6634
yes:)
 
6635
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6636
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6637
ac_tool_warned=yes ;;
 
6638
esac
 
6639
    NMEDIT=$ac_ct_NMEDIT
 
6640
  fi
 
6641
else
 
6642
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6643
fi
 
6644
 
 
6645
    if test -n "$ac_tool_prefix"; then
 
6646
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6647
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6649
$as_echo_n "checking for $ac_word... " >&6; }
 
6650
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6651
  $as_echo_n "(cached) " >&6
 
6652
else
 
6653
  if test -n "$LIPO"; then
 
6654
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6655
else
 
6656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6657
for as_dir in $PATH
 
6658
do
 
6659
  IFS=$as_save_IFS
 
6660
  test -z "$as_dir" && as_dir=.
 
6661
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6663
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6664
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6665
    break 2
 
6666
  fi
 
6667
done
 
6668
  done
 
6669
IFS=$as_save_IFS
 
6670
 
 
6671
fi
 
6672
fi
 
6673
LIPO=$ac_cv_prog_LIPO
 
6674
if test -n "$LIPO"; then
 
6675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6676
$as_echo "$LIPO" >&6; }
 
6677
else
 
6678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6679
$as_echo "no" >&6; }
 
6680
fi
 
6681
 
 
6682
 
 
6683
fi
 
6684
if test -z "$ac_cv_prog_LIPO"; then
 
6685
  ac_ct_LIPO=$LIPO
 
6686
  # Extract the first word of "lipo", so it can be a program name with args.
 
6687
set dummy lipo; ac_word=$2
 
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6689
$as_echo_n "checking for $ac_word... " >&6; }
 
6690
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6691
  $as_echo_n "(cached) " >&6
 
6692
else
 
6693
  if test -n "$ac_ct_LIPO"; then
 
6694
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6695
else
 
6696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6697
for as_dir in $PATH
 
6698
do
 
6699
  IFS=$as_save_IFS
 
6700
  test -z "$as_dir" && as_dir=.
 
6701
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6703
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6704
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6705
    break 2
 
6706
  fi
 
6707
done
 
6708
  done
 
6709
IFS=$as_save_IFS
 
6710
 
 
6711
fi
 
6712
fi
 
6713
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6714
if test -n "$ac_ct_LIPO"; then
 
6715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6716
$as_echo "$ac_ct_LIPO" >&6; }
 
6717
else
 
6718
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6719
$as_echo "no" >&6; }
 
6720
fi
 
6721
 
 
6722
  if test "x$ac_ct_LIPO" = x; then
 
6723
    LIPO=":"
 
6724
  else
 
6725
    case $cross_compiling:$ac_tool_warned in
 
6726
yes:)
 
6727
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6728
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6729
ac_tool_warned=yes ;;
 
6730
esac
 
6731
    LIPO=$ac_ct_LIPO
 
6732
  fi
 
6733
else
 
6734
  LIPO="$ac_cv_prog_LIPO"
 
6735
fi
 
6736
 
 
6737
    if test -n "$ac_tool_prefix"; then
 
6738
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6739
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6741
$as_echo_n "checking for $ac_word... " >&6; }
 
6742
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6743
  $as_echo_n "(cached) " >&6
 
6744
else
 
6745
  if test -n "$OTOOL"; then
 
6746
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6747
else
 
6748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6749
for as_dir in $PATH
 
6750
do
 
6751
  IFS=$as_save_IFS
 
6752
  test -z "$as_dir" && as_dir=.
 
6753
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6755
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6756
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6757
    break 2
 
6758
  fi
 
6759
done
 
6760
  done
 
6761
IFS=$as_save_IFS
 
6762
 
 
6763
fi
 
6764
fi
 
6765
OTOOL=$ac_cv_prog_OTOOL
 
6766
if test -n "$OTOOL"; then
 
6767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6768
$as_echo "$OTOOL" >&6; }
 
6769
else
 
6770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6771
$as_echo "no" >&6; }
 
6772
fi
 
6773
 
 
6774
 
 
6775
fi
 
6776
if test -z "$ac_cv_prog_OTOOL"; then
 
6777
  ac_ct_OTOOL=$OTOOL
 
6778
  # Extract the first word of "otool", so it can be a program name with args.
 
6779
set dummy otool; ac_word=$2
 
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6781
$as_echo_n "checking for $ac_word... " >&6; }
 
6782
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6783
  $as_echo_n "(cached) " >&6
 
6784
else
 
6785
  if test -n "$ac_ct_OTOOL"; then
 
6786
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6787
else
 
6788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6789
for as_dir in $PATH
 
6790
do
 
6791
  IFS=$as_save_IFS
 
6792
  test -z "$as_dir" && as_dir=.
 
6793
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6795
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6796
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6797
    break 2
 
6798
  fi
 
6799
done
 
6800
  done
 
6801
IFS=$as_save_IFS
 
6802
 
 
6803
fi
 
6804
fi
 
6805
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6806
if test -n "$ac_ct_OTOOL"; then
 
6807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6808
$as_echo "$ac_ct_OTOOL" >&6; }
 
6809
else
 
6810
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6811
$as_echo "no" >&6; }
 
6812
fi
 
6813
 
 
6814
  if test "x$ac_ct_OTOOL" = x; then
 
6815
    OTOOL=":"
 
6816
  else
 
6817
    case $cross_compiling:$ac_tool_warned in
 
6818
yes:)
 
6819
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6820
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6821
ac_tool_warned=yes ;;
 
6822
esac
 
6823
    OTOOL=$ac_ct_OTOOL
 
6824
  fi
 
6825
else
 
6826
  OTOOL="$ac_cv_prog_OTOOL"
 
6827
fi
 
6828
 
 
6829
    if test -n "$ac_tool_prefix"; then
 
6830
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6831
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6833
$as_echo_n "checking for $ac_word... " >&6; }
 
6834
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6835
  $as_echo_n "(cached) " >&6
 
6836
else
 
6837
  if test -n "$OTOOL64"; then
 
6838
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6839
else
 
6840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6841
for as_dir in $PATH
 
6842
do
 
6843
  IFS=$as_save_IFS
 
6844
  test -z "$as_dir" && as_dir=.
 
6845
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6846
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6847
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6848
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6849
    break 2
 
6850
  fi
 
6851
done
 
6852
  done
 
6853
IFS=$as_save_IFS
 
6854
 
 
6855
fi
 
6856
fi
 
6857
OTOOL64=$ac_cv_prog_OTOOL64
 
6858
if test -n "$OTOOL64"; then
 
6859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6860
$as_echo "$OTOOL64" >&6; }
 
6861
else
 
6862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6863
$as_echo "no" >&6; }
 
6864
fi
 
6865
 
 
6866
 
 
6867
fi
 
6868
if test -z "$ac_cv_prog_OTOOL64"; then
 
6869
  ac_ct_OTOOL64=$OTOOL64
 
6870
  # Extract the first word of "otool64", so it can be a program name with args.
 
6871
set dummy otool64; ac_word=$2
 
6872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6873
$as_echo_n "checking for $ac_word... " >&6; }
 
6874
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6875
  $as_echo_n "(cached) " >&6
 
6876
else
 
6877
  if test -n "$ac_ct_OTOOL64"; then
 
6878
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6879
else
 
6880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6881
for as_dir in $PATH
 
6882
do
 
6883
  IFS=$as_save_IFS
 
6884
  test -z "$as_dir" && as_dir=.
 
6885
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6886
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6887
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6888
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6889
    break 2
 
6890
  fi
 
6891
done
 
6892
  done
 
6893
IFS=$as_save_IFS
 
6894
 
 
6895
fi
 
6896
fi
 
6897
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6898
if test -n "$ac_ct_OTOOL64"; then
 
6899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6900
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6901
else
 
6902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6903
$as_echo "no" >&6; }
 
6904
fi
 
6905
 
 
6906
  if test "x$ac_ct_OTOOL64" = x; then
 
6907
    OTOOL64=":"
 
6908
  else
 
6909
    case $cross_compiling:$ac_tool_warned in
 
6910
yes:)
 
6911
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6912
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6913
ac_tool_warned=yes ;;
 
6914
esac
 
6915
    OTOOL64=$ac_ct_OTOOL64
 
6916
  fi
 
6917
else
 
6918
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6919
fi
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
 
 
6925
 
 
6926
 
 
6927
 
 
6928
 
 
6929
 
 
6930
 
 
6931
 
 
6932
 
 
6933
 
 
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6948
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6949
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6950
  $as_echo_n "(cached) " >&6
 
6951
else
 
6952
  lt_cv_apple_cc_single_mod=no
 
6953
      if test -z "${LT_MULTI_MODULE}"; then
 
6954
        # By default we will add the -single_module flag. You can override
 
6955
        # by either setting the environment variable LT_MULTI_MODULE
 
6956
        # non-empty at configure time, or by adding -multi_module to the
 
6957
        # link flags.
 
6958
        rm -rf libconftest.dylib*
 
6959
        echo "int foo(void){return 1;}" > conftest.c
 
6960
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6961
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6962
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6963
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6964
        _lt_result=$?
 
6965
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6966
          lt_cv_apple_cc_single_mod=yes
 
6967
        else
 
6968
          cat conftest.err >&5
 
6969
        fi
 
6970
        rm -rf libconftest.dylib*
 
6971
        rm -f conftest.*
 
6972
      fi
 
6973
fi
 
6974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6975
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6976
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6977
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6978
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6979
  $as_echo_n "(cached) " >&6
 
6980
else
 
6981
  lt_cv_ld_exported_symbols_list=no
 
6982
      save_LDFLAGS=$LDFLAGS
 
6983
      echo "_main" > conftest.sym
 
6984
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6985
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6986
/* end confdefs.h.  */
 
6987
 
 
6988
int
 
6989
main ()
 
6990
{
 
6991
 
 
6992
  ;
 
6993
  return 0;
 
6994
}
 
6995
_ACEOF
 
6996
if ac_fn_c_try_link "$LINENO"; then :
 
6997
  lt_cv_ld_exported_symbols_list=yes
 
6998
else
 
6999
  lt_cv_ld_exported_symbols_list=no
 
7000
fi
 
7001
rm -f core conftest.err conftest.$ac_objext \
 
7002
    conftest$ac_exeext conftest.$ac_ext
 
7003
        LDFLAGS="$save_LDFLAGS"
 
7004
 
 
7005
fi
 
7006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7007
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7008
    case $host_os in
 
7009
    rhapsody* | darwin1.[012])
 
7010
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7011
    darwin1.*)
 
7012
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7013
    darwin*) # darwin 5.x on
 
7014
      # if running on 10.5 or later, the deployment target defaults
 
7015
      # to the OS version, if on x86, and 10.4, the deployment
 
7016
      # target defaults to 10.4. Don't you love it?
 
7017
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7018
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7019
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7020
        10.[012]*)
 
7021
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7022
        10.*)
 
7023
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7024
      esac
 
7025
    ;;
 
7026
  esac
 
7027
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7028
      _lt_dar_single_mod='$single_module'
 
7029
    fi
 
7030
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7031
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7032
    else
 
7033
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7034
    fi
 
7035
    if test "$DSYMUTIL" != ":"; then
 
7036
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7037
    else
 
7038
      _lt_dsymutil=
 
7039
    fi
 
7040
    ;;
 
7041
  esac
 
7042
 
 
7043
ac_ext=c
 
7044
ac_cpp='$CPP $CPPFLAGS'
 
7045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7049
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7050
# On Suns, sometimes $CPP names a directory.
 
7051
if test -n "$CPP" && test -d "$CPP"; then
 
7052
  CPP=
 
7053
fi
 
7054
if test -z "$CPP"; then
 
7055
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
7056
  $as_echo_n "(cached) " >&6
 
7057
else
 
7058
      # Double quotes because CPP needs to be expanded
 
7059
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7060
    do
 
7061
      ac_preproc_ok=false
 
7062
for ac_c_preproc_warn_flag in '' yes
 
7063
do
 
7064
  # Use a header file that comes with gcc, so configuring glibc
 
7065
  # with a fresh cross-compiler works.
 
7066
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7067
  # <limits.h> exists even on freestanding compilers.
 
7068
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7069
  # not just through cpp. "Syntax error" is here to catch this case.
 
7070
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7071
/* end confdefs.h.  */
 
7072
#ifdef __STDC__
 
7073
# include <limits.h>
 
7074
#else
 
7075
# include <assert.h>
 
7076
#endif
 
7077
                     Syntax error
 
7078
_ACEOF
 
7079
if ac_fn_c_try_cpp "$LINENO"; then :
 
7080
 
 
7081
else
 
7082
  # Broken: fails on valid input.
 
7083
continue
 
7084
fi
 
7085
rm -f conftest.err conftest.$ac_ext
 
7086
 
 
7087
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7088
  # can be detected and how.
 
7089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7090
/* end confdefs.h.  */
 
7091
#include <ac_nonexistent.h>
 
7092
_ACEOF
 
7093
if ac_fn_c_try_cpp "$LINENO"; then :
 
7094
  # Broken: success on invalid input.
 
7095
continue
 
7096
else
 
7097
  # Passes both tests.
 
7098
ac_preproc_ok=:
 
7099
break
 
7100
fi
 
7101
rm -f conftest.err conftest.$ac_ext
 
7102
 
 
7103
done
 
7104
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7105
rm -f conftest.err conftest.$ac_ext
 
7106
if $ac_preproc_ok; then :
 
7107
  break
 
7108
fi
 
7109
 
 
7110
    done
 
7111
    ac_cv_prog_CPP=$CPP
 
7112
 
 
7113
fi
 
7114
  CPP=$ac_cv_prog_CPP
 
7115
else
 
7116
  ac_cv_prog_CPP=$CPP
 
7117
fi
 
7118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7119
$as_echo "$CPP" >&6; }
 
7120
ac_preproc_ok=false
 
7121
for ac_c_preproc_warn_flag in '' yes
 
7122
do
 
7123
  # Use a header file that comes with gcc, so configuring glibc
 
7124
  # with a fresh cross-compiler works.
 
7125
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7126
  # <limits.h> exists even on freestanding compilers.
 
7127
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7128
  # not just through cpp. "Syntax error" is here to catch this case.
 
7129
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7130
/* end confdefs.h.  */
 
7131
#ifdef __STDC__
 
7132
# include <limits.h>
 
7133
#else
 
7134
# include <assert.h>
 
7135
#endif
 
7136
                     Syntax error
 
7137
_ACEOF
 
7138
if ac_fn_c_try_cpp "$LINENO"; then :
 
7139
 
 
7140
else
 
7141
  # Broken: fails on valid input.
 
7142
continue
 
7143
fi
 
7144
rm -f conftest.err conftest.$ac_ext
 
7145
 
 
7146
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7147
  # can be detected and how.
 
7148
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7149
/* end confdefs.h.  */
 
7150
#include <ac_nonexistent.h>
 
7151
_ACEOF
 
7152
if ac_fn_c_try_cpp "$LINENO"; then :
 
7153
  # Broken: success on invalid input.
 
7154
continue
 
7155
else
 
7156
  # Passes both tests.
 
7157
ac_preproc_ok=:
 
7158
break
 
7159
fi
 
7160
rm -f conftest.err conftest.$ac_ext
 
7161
 
 
7162
done
 
7163
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7164
rm -f conftest.err conftest.$ac_ext
 
7165
if $ac_preproc_ok; then :
 
7166
 
 
7167
else
 
7168
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7170
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
7171
See \`config.log' for more details." "$LINENO" 5; }
 
7172
fi
 
7173
 
 
7174
ac_ext=c
 
7175
ac_cpp='$CPP $CPPFLAGS'
 
7176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7179
 
 
7180
 
 
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7182
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7183
if test "${ac_cv_header_stdc+set}" = set; then :
 
7184
  $as_echo_n "(cached) " >&6
 
7185
else
 
7186
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7187
/* end confdefs.h.  */
 
7188
#include <stdlib.h>
 
7189
#include <stdarg.h>
 
7190
#include <string.h>
 
7191
#include <float.h>
 
7192
 
 
7193
int
 
7194
main ()
 
7195
{
 
7196
 
 
7197
  ;
 
7198
  return 0;
 
7199
}
 
7200
_ACEOF
 
7201
if ac_fn_c_try_compile "$LINENO"; then :
 
7202
  ac_cv_header_stdc=yes
 
7203
else
 
7204
  ac_cv_header_stdc=no
 
7205
fi
 
7206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7207
 
 
7208
if test $ac_cv_header_stdc = yes; then
 
7209
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7210
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7211
/* end confdefs.h.  */
 
7212
#include <string.h>
 
7213
 
 
7214
_ACEOF
 
7215
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7216
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7217
 
 
7218
else
 
7219
  ac_cv_header_stdc=no
 
7220
fi
 
7221
rm -f conftest*
 
7222
 
 
7223
fi
 
7224
 
 
7225
if test $ac_cv_header_stdc = yes; then
 
7226
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7227
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7228
/* end confdefs.h.  */
 
7229
#include <stdlib.h>
 
7230
 
 
7231
_ACEOF
 
7232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7233
  $EGREP "free" >/dev/null 2>&1; then :
 
7234
 
 
7235
else
 
7236
  ac_cv_header_stdc=no
 
7237
fi
 
7238
rm -f conftest*
 
7239
 
 
7240
fi
 
7241
 
 
7242
if test $ac_cv_header_stdc = yes; then
 
7243
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7244
  if test "$cross_compiling" = yes; then :
 
7245
  :
 
7246
else
 
7247
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7248
/* end confdefs.h.  */
 
7249
#include <ctype.h>
 
7250
#include <stdlib.h>
 
7251
#if ((' ' & 0x0FF) == 0x020)
 
7252
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7253
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7254
#else
 
7255
# define ISLOWER(c) \
 
7256
                   (('a' <= (c) && (c) <= 'i') \
 
7257
                     || ('j' <= (c) && (c) <= 'r') \
 
7258
                     || ('s' <= (c) && (c) <= 'z'))
 
7259
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7260
#endif
 
7261
 
 
7262
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7263
int
 
7264
main ()
 
7265
{
 
7266
  int i;
 
7267
  for (i = 0; i < 256; i++)
 
7268
    if (XOR (islower (i), ISLOWER (i))
 
7269
        || toupper (i) != TOUPPER (i))
 
7270
      return 2;
 
7271
  return 0;
 
7272
}
 
7273
_ACEOF
 
7274
if ac_fn_c_try_run "$LINENO"; then :
 
7275
 
 
7276
else
 
7277
  ac_cv_header_stdc=no
 
7278
fi
 
7279
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7280
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7281
fi
 
7282
 
 
7283
fi
 
7284
fi
 
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7286
$as_echo "$ac_cv_header_stdc" >&6; }
 
7287
if test $ac_cv_header_stdc = yes; then
 
7288
 
 
7289
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7290
 
 
7291
fi
 
7292
 
 
7293
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7294
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7295
                  inttypes.h stdint.h unistd.h
 
7296
do :
 
7297
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7298
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7299
"
 
7300
eval as_val=\$$as_ac_Header
 
7301
   if test "x$as_val" = x""yes; then :
 
7302
  cat >>confdefs.h <<_ACEOF
 
7303
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7304
_ACEOF
 
7305
 
 
7306
fi
 
7307
 
 
7308
done
 
7309
 
 
7310
 
 
7311
for ac_header in dlfcn.h
 
7312
do :
 
7313
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7314
"
 
7315
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7316
  cat >>confdefs.h <<_ACEOF
 
7317
#define HAVE_DLFCN_H 1
 
7318
_ACEOF
 
7319
 
 
7320
fi
 
7321
 
 
7322
done
 
7323
 
 
7324
 
 
7325
 
 
7326
ac_ext=cpp
 
7327
ac_cpp='$CXXCPP $CPPFLAGS'
 
7328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7331
if test -z "$CXX"; then
 
7332
  if test -n "$CCC"; then
 
7333
    CXX=$CCC
 
7334
  else
 
7335
    if test -n "$ac_tool_prefix"; then
 
7336
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7337
  do
 
7338
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7341
$as_echo_n "checking for $ac_word... " >&6; }
 
7342
if test "${ac_cv_prog_CXX+set}" = set; then :
 
7343
  $as_echo_n "(cached) " >&6
 
7344
else
 
7345
  if test -n "$CXX"; then
 
7346
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7347
else
 
7348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7349
for as_dir in $PATH
 
7350
do
 
7351
  IFS=$as_save_IFS
 
7352
  test -z "$as_dir" && as_dir=.
 
7353
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7355
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7356
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7357
    break 2
 
7358
  fi
 
7359
done
 
7360
  done
 
7361
IFS=$as_save_IFS
 
7362
 
 
7363
fi
 
7364
fi
 
7365
CXX=$ac_cv_prog_CXX
 
7366
if test -n "$CXX"; then
 
7367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
7368
$as_echo "$CXX" >&6; }
 
7369
else
 
7370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7371
$as_echo "no" >&6; }
 
7372
fi
 
7373
 
 
7374
 
 
7375
    test -n "$CXX" && break
 
7376
  done
 
7377
fi
 
7378
if test -z "$CXX"; then
 
7379
  ac_ct_CXX=$CXX
 
7380
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7381
do
 
7382
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7383
set dummy $ac_prog; ac_word=$2
 
7384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7385
$as_echo_n "checking for $ac_word... " >&6; }
 
7386
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
7387
  $as_echo_n "(cached) " >&6
 
7388
else
 
7389
  if test -n "$ac_ct_CXX"; then
 
7390
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7391
else
 
7392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7393
for as_dir in $PATH
 
7394
do
 
7395
  IFS=$as_save_IFS
 
7396
  test -z "$as_dir" && as_dir=.
 
7397
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7399
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7401
    break 2
 
7402
  fi
 
7403
done
 
7404
  done
 
7405
IFS=$as_save_IFS
 
7406
 
 
7407
fi
 
7408
fi
 
7409
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7410
if test -n "$ac_ct_CXX"; then
 
7411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
7412
$as_echo "$ac_ct_CXX" >&6; }
 
7413
else
 
7414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7415
$as_echo "no" >&6; }
 
7416
fi
 
7417
 
 
7418
 
 
7419
  test -n "$ac_ct_CXX" && break
 
7420
done
 
7421
 
 
7422
  if test "x$ac_ct_CXX" = x; then
 
7423
    CXX="g++"
 
7424
  else
 
7425
    case $cross_compiling:$ac_tool_warned in
 
7426
yes:)
 
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7429
ac_tool_warned=yes ;;
 
7430
esac
 
7431
    CXX=$ac_ct_CXX
 
7432
  fi
 
7433
fi
 
7434
 
 
7435
  fi
 
7436
fi
 
7437
# Provide some information about the compiler.
 
7438
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
7439
set X $ac_compile
 
7440
ac_compiler=$2
 
7441
for ac_option in --version -v -V -qversion; do
 
7442
  { { ac_try="$ac_compiler $ac_option >&5"
 
7443
case "(($ac_try" in
 
7444
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7445
  *) ac_try_echo=$ac_try;;
 
7446
esac
 
7447
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7448
$as_echo "$ac_try_echo"; } >&5
 
7449
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
7450
  ac_status=$?
 
7451
  if test -s conftest.err; then
 
7452
    sed '10a\
 
7453
... rest of stderr output deleted ...
 
7454
         10q' conftest.err >conftest.er1
 
7455
    cat conftest.er1 >&5
 
7456
  fi
 
7457
  rm -f conftest.er1 conftest.err
 
7458
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7459
  test $ac_status = 0; }
 
7460
done
 
7461
 
 
7462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
7463
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
7464
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
7465
  $as_echo_n "(cached) " >&6
 
7466
else
 
7467
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7468
/* end confdefs.h.  */
 
7469
 
 
7470
int
 
7471
main ()
 
7472
{
 
7473
#ifndef __GNUC__
 
7474
       choke me
 
7475
#endif
 
7476
 
 
7477
  ;
 
7478
  return 0;
 
7479
}
 
7480
_ACEOF
 
7481
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7482
  ac_compiler_gnu=yes
 
7483
else
 
7484
  ac_compiler_gnu=no
 
7485
fi
 
7486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7487
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7488
 
 
7489
fi
 
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
7491
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
7492
if test $ac_compiler_gnu = yes; then
 
7493
  GXX=yes
 
7494
else
 
7495
  GXX=
 
7496
fi
 
7497
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7498
ac_save_CXXFLAGS=$CXXFLAGS
 
7499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
7500
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
7501
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
7502
  $as_echo_n "(cached) " >&6
 
7503
else
 
7504
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
7505
   ac_cxx_werror_flag=yes
 
7506
   ac_cv_prog_cxx_g=no
 
7507
   CXXFLAGS="-g"
 
7508
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7509
/* end confdefs.h.  */
 
7510
 
 
7511
int
 
7512
main ()
 
7513
{
 
7514
 
 
7515
  ;
 
7516
  return 0;
 
7517
}
 
7518
_ACEOF
 
7519
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7520
  ac_cv_prog_cxx_g=yes
 
7521
else
 
7522
  CXXFLAGS=""
 
7523
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7524
/* end confdefs.h.  */
 
7525
 
 
7526
int
 
7527
main ()
 
7528
{
 
7529
 
 
7530
  ;
 
7531
  return 0;
 
7532
}
 
7533
_ACEOF
 
7534
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7535
 
 
7536
else
 
7537
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7538
         CXXFLAGS="-g"
 
7539
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7540
/* end confdefs.h.  */
 
7541
 
 
7542
int
 
7543
main ()
 
7544
{
 
7545
 
 
7546
  ;
 
7547
  return 0;
 
7548
}
 
7549
_ACEOF
 
7550
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7551
  ac_cv_prog_cxx_g=yes
 
7552
fi
 
7553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7554
fi
 
7555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7556
fi
 
7557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7558
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7559
fi
 
7560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
7561
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
7562
if test "$ac_test_CXXFLAGS" = set; then
 
7563
  CXXFLAGS=$ac_save_CXXFLAGS
 
7564
elif test $ac_cv_prog_cxx_g = yes; then
 
7565
  if test "$GXX" = yes; then
 
7566
    CXXFLAGS="-g -O2"
 
7567
  else
 
7568
    CXXFLAGS="-g"
 
7569
  fi
 
7570
else
 
7571
  if test "$GXX" = yes; then
 
7572
    CXXFLAGS="-O2"
 
7573
  else
 
7574
    CXXFLAGS=
 
7575
  fi
 
7576
fi
 
7577
ac_ext=c
 
7578
ac_cpp='$CPP $CPPFLAGS'
 
7579
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7580
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7581
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7582
 
 
7583
depcc="$CXX"  am_compiler_list=
 
7584
 
 
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
7586
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
7587
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
7588
  $as_echo_n "(cached) " >&6
 
7589
else
 
7590
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7591
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7592
  # making bogus files that we don't know about and never remove.  For
 
7593
  # instance it was reported that on HP-UX the gcc test will end up
 
7594
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7595
  # in D'.
 
7596
  mkdir conftest.dir
 
7597
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7598
  # using a relative directory.
 
7599
  cp "$am_depcomp" conftest.dir
 
7600
  cd conftest.dir
 
7601
  # We will build objects and dependencies in a subdirectory because
 
7602
  # it helps to detect inapplicable dependency modes.  For instance
 
7603
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7604
  # side effect of compilation, but ICC will put the dependencies in
 
7605
  # the current directory while Tru64 will put them in the object
 
7606
  # directory.
 
7607
  mkdir sub
 
7608
 
 
7609
  am_cv_CXX_dependencies_compiler_type=none
 
7610
  if test "$am_compiler_list" = ""; then
 
7611
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7612
  fi
 
7613
  am__universal=false
 
7614
  case " $depcc " in #(
 
7615
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
7616
     esac
 
7617
 
 
7618
  for depmode in $am_compiler_list; do
 
7619
    # Setup a source with many dependencies, because some compilers
 
7620
    # like to wrap large dependency lists on column 80 (with \), and
 
7621
    # we should not choose a depcomp mode which is confused by this.
 
7622
    #
 
7623
    # We need to recreate these files for each test, as the compiler may
 
7624
    # overwrite some of them when testing with obscure command lines.
 
7625
    # This happens at least with the AIX C compiler.
 
7626
    : > sub/conftest.c
 
7627
    for i in 1 2 3 4 5 6; do
 
7628
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7629
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7630
      # Solaris 8's {/usr,}/bin/sh.
 
7631
      touch sub/conftst$i.h
 
7632
    done
 
7633
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7634
 
 
7635
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7636
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7637
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
7638
    # versions had trouble with output in subdirs
 
7639
    am__obj=sub/conftest.${OBJEXT-o}
 
7640
    am__minus_obj="-o $am__obj"
 
7641
    case $depmode in
 
7642
    gcc)
 
7643
      # This depmode causes a compiler race in universal mode.
 
7644
      test "$am__universal" = false || continue
 
7645
      ;;
 
7646
    nosideeffect)
 
7647
      # after this tag, mechanisms are not by side-effect, so they'll
 
7648
      # only be used when explicitly requested
 
7649
      if test "x$enable_dependency_tracking" = xyes; then
 
7650
        continue
 
7651
      else
 
7652
        break
 
7653
      fi
 
7654
      ;;
 
7655
    msvisualcpp | msvcmsys)
 
7656
      # This compiler won't grok `-c -o', but also, the minuso test has
 
7657
      # not run yet.  These depmodes are late enough in the game, and
 
7658
      # so weak that their functioning should not be impacted.
 
7659
      am__obj=conftest.${OBJEXT-o}
 
7660
      am__minus_obj=
 
7661
      ;;
 
7662
    none) break ;;
 
7663
    esac
 
7664
    if depmode=$depmode \
 
7665
       source=sub/conftest.c object=$am__obj \
 
7666
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7667
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7668
         >/dev/null 2>conftest.err &&
 
7669
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7670
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7671
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7672
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7673
      # icc doesn't choke on unknown options, it will just issue warnings
 
7674
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7675
      # that says an option was ignored or not supported.
 
7676
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7677
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7678
      # The diagnosis changed in icc 8.0:
 
7679
      #   icc: Command line remark: option '-MP' not supported
 
7680
      if (grep 'ignoring option' conftest.err ||
 
7681
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7682
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7683
        break
 
7684
      fi
 
7685
    fi
 
7686
  done
 
7687
 
 
7688
  cd ..
 
7689
  rm -rf conftest.dir
 
7690
else
 
7691
  am_cv_CXX_dependencies_compiler_type=none
 
7692
fi
 
7693
 
 
7694
fi
 
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7696
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7697
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7698
 
 
7699
 if
 
7700
  test "x$enable_dependency_tracking" != xno \
 
7701
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7702
  am__fastdepCXX_TRUE=
 
7703
  am__fastdepCXX_FALSE='#'
 
7704
else
 
7705
  am__fastdepCXX_TRUE='#'
 
7706
  am__fastdepCXX_FALSE=
 
7707
fi
 
7708
 
 
7709
 
 
7710
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7711
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7712
    (test "X$CXX" != "Xg++"))) ; then
 
7713
  ac_ext=cpp
 
7714
ac_cpp='$CXXCPP $CPPFLAGS'
 
7715
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7716
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7717
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
7719
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
7720
if test -z "$CXXCPP"; then
 
7721
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
7722
  $as_echo_n "(cached) " >&6
 
7723
else
 
7724
      # Double quotes because CXXCPP needs to be expanded
 
7725
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7726
    do
 
7727
      ac_preproc_ok=false
 
7728
for ac_cxx_preproc_warn_flag in '' yes
 
7729
do
 
7730
  # Use a header file that comes with gcc, so configuring glibc
 
7731
  # with a fresh cross-compiler works.
 
7732
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7733
  # <limits.h> exists even on freestanding compilers.
 
7734
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7735
  # not just through cpp. "Syntax error" is here to catch this case.
 
7736
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7737
/* end confdefs.h.  */
 
7738
#ifdef __STDC__
 
7739
# include <limits.h>
 
7740
#else
 
7741
# include <assert.h>
 
7742
#endif
 
7743
                     Syntax error
 
7744
_ACEOF
 
7745
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7746
 
 
7747
else
 
7748
  # Broken: fails on valid input.
 
7749
continue
 
7750
fi
 
7751
rm -f conftest.err conftest.$ac_ext
 
7752
 
 
7753
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7754
  # can be detected and how.
 
7755
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7756
/* end confdefs.h.  */
 
7757
#include <ac_nonexistent.h>
 
7758
_ACEOF
 
7759
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7760
  # Broken: success on invalid input.
 
7761
continue
 
7762
else
 
7763
  # Passes both tests.
 
7764
ac_preproc_ok=:
 
7765
break
 
7766
fi
 
7767
rm -f conftest.err conftest.$ac_ext
 
7768
 
 
7769
done
 
7770
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7771
rm -f conftest.err conftest.$ac_ext
 
7772
if $ac_preproc_ok; then :
 
7773
  break
 
7774
fi
 
7775
 
 
7776
    done
 
7777
    ac_cv_prog_CXXCPP=$CXXCPP
 
7778
 
 
7779
fi
 
7780
  CXXCPP=$ac_cv_prog_CXXCPP
 
7781
else
 
7782
  ac_cv_prog_CXXCPP=$CXXCPP
 
7783
fi
 
7784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
7785
$as_echo "$CXXCPP" >&6; }
 
7786
ac_preproc_ok=false
 
7787
for ac_cxx_preproc_warn_flag in '' yes
 
7788
do
 
7789
  # Use a header file that comes with gcc, so configuring glibc
 
7790
  # with a fresh cross-compiler works.
 
7791
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7792
  # <limits.h> exists even on freestanding compilers.
 
7793
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7794
  # not just through cpp. "Syntax error" is here to catch this case.
 
7795
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7796
/* end confdefs.h.  */
 
7797
#ifdef __STDC__
 
7798
# include <limits.h>
 
7799
#else
 
7800
# include <assert.h>
 
7801
#endif
 
7802
                     Syntax error
 
7803
_ACEOF
 
7804
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7805
 
 
7806
else
 
7807
  # Broken: fails on valid input.
 
7808
continue
 
7809
fi
 
7810
rm -f conftest.err conftest.$ac_ext
 
7811
 
 
7812
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7813
  # can be detected and how.
 
7814
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7815
/* end confdefs.h.  */
 
7816
#include <ac_nonexistent.h>
 
7817
_ACEOF
 
7818
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7819
  # Broken: success on invalid input.
 
7820
continue
 
7821
else
 
7822
  # Passes both tests.
 
7823
ac_preproc_ok=:
 
7824
break
 
7825
fi
 
7826
rm -f conftest.err conftest.$ac_ext
 
7827
 
 
7828
done
 
7829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7830
rm -f conftest.err conftest.$ac_ext
 
7831
if $ac_preproc_ok; then :
 
7832
 
 
7833
else
 
7834
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7835
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7836
_lt_caught_CXX_error=yes; }
 
7837
fi
 
7838
 
 
7839
ac_ext=c
 
7840
ac_cpp='$CPP $CPPFLAGS'
 
7841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7844
 
 
7845
else
 
7846
  _lt_caught_CXX_error=yes
 
7847
fi
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
# Set options
 
7854
# Check whether --enable-static was given.
 
7855
if test "${enable_static+set}" = set; then :
 
7856
  enableval=$enable_static; p=${PACKAGE-default}
 
7857
    case $enableval in
 
7858
    yes) enable_static=yes ;;
 
7859
    no) enable_static=no ;;
 
7860
    *)
 
7861
     enable_static=no
 
7862
      # Look at the argument we got.  We use all the common list separators.
 
7863
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7864
      for pkg in $enableval; do
 
7865
        IFS="$lt_save_ifs"
 
7866
        if test "X$pkg" = "X$p"; then
 
7867
          enable_static=yes
 
7868
        fi
 
7869
      done
 
7870
      IFS="$lt_save_ifs"
 
7871
      ;;
 
7872
    esac
 
7873
else
 
7874
  enable_static=no
 
7875
fi
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
 
 
7886
        enable_dlopen=no
 
7887
 
 
7888
 
 
7889
  enable_win32_dll=no
 
7890
 
 
7891
 
 
7892
            # Check whether --enable-shared was given.
 
7893
if test "${enable_shared+set}" = set; then :
 
7894
  enableval=$enable_shared; p=${PACKAGE-default}
 
7895
    case $enableval in
 
7896
    yes) enable_shared=yes ;;
 
7897
    no) enable_shared=no ;;
 
7898
    *)
 
7899
      enable_shared=no
 
7900
      # Look at the argument we got.  We use all the common list separators.
 
7901
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7902
      for pkg in $enableval; do
 
7903
        IFS="$lt_save_ifs"
 
7904
        if test "X$pkg" = "X$p"; then
 
7905
          enable_shared=yes
 
7906
        fi
 
7907
      done
 
7908
      IFS="$lt_save_ifs"
 
7909
      ;;
 
7910
    esac
 
7911
else
 
7912
  enable_shared=yes
 
7913
fi
 
7914
 
 
7915
 
 
7916
 
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
# Check whether --with-pic was given.
 
7926
if test "${with_pic+set}" = set; then :
 
7927
  withval=$with_pic; pic_mode="$withval"
 
7928
else
 
7929
  pic_mode=default
 
7930
fi
 
7931
 
 
7932
 
 
7933
test -z "$pic_mode" && pic_mode=default
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
  # Check whether --enable-fast-install was given.
 
7942
if test "${enable_fast_install+set}" = set; then :
 
7943
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7944
    case $enableval in
 
7945
    yes) enable_fast_install=yes ;;
 
7946
    no) enable_fast_install=no ;;
 
7947
    *)
 
7948
      enable_fast_install=no
 
7949
      # Look at the argument we got.  We use all the common list separators.
 
7950
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7951
      for pkg in $enableval; do
 
7952
        IFS="$lt_save_ifs"
 
7953
        if test "X$pkg" = "X$p"; then
 
7954
          enable_fast_install=yes
 
7955
        fi
 
7956
      done
 
7957
      IFS="$lt_save_ifs"
 
7958
      ;;
 
7959
    esac
 
7960
else
 
7961
  enable_fast_install=yes
 
7962
fi
 
7963
 
 
7964
 
 
7965
 
 
7966
 
 
7967
 
 
7968
 
 
7969
 
 
7970
 
 
7971
 
 
7972
 
 
7973
 
 
7974
# This can be used to rebuild libtool when needed
 
7975
LIBTOOL_DEPS="$ltmain"
 
7976
 
 
7977
# Always use our own libtool.
 
7978
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7979
 
 
7980
 
 
7981
 
 
7982
 
 
7983
 
 
7984
 
 
7985
 
 
7986
 
 
7987
 
 
7988
 
 
7989
 
 
7990
 
 
7991
 
 
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
 
 
8004
test -z "$LN_S" && LN_S="ln -s"
 
8005
 
 
8006
 
 
8007
 
 
8008
 
 
8009
 
 
8010
 
 
8011
 
 
8012
 
 
8013
 
 
8014
 
 
8015
 
 
8016
 
 
8017
 
 
8018
 
 
8019
if test -n "${ZSH_VERSION+set}" ; then
 
8020
   setopt NO_GLOB_SUBST
 
8021
fi
 
8022
 
 
8023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8024
$as_echo_n "checking for objdir... " >&6; }
 
8025
if test "${lt_cv_objdir+set}" = set; then :
 
8026
  $as_echo_n "(cached) " >&6
 
8027
else
 
8028
  rm -f .libs 2>/dev/null
 
8029
mkdir .libs 2>/dev/null
 
8030
if test -d .libs; then
 
8031
  lt_cv_objdir=.libs
 
8032
else
 
8033
  # MS-DOS does not allow filenames that begin with a dot.
 
8034
  lt_cv_objdir=_libs
 
8035
fi
 
8036
rmdir .libs 2>/dev/null
 
8037
fi
 
8038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8039
$as_echo "$lt_cv_objdir" >&6; }
 
8040
objdir=$lt_cv_objdir
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
cat >>confdefs.h <<_ACEOF
 
8047
#define LT_OBJDIR "$lt_cv_objdir/"
 
8048
_ACEOF
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
case $host_os in
 
8067
aix3*)
 
8068
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8069
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8070
  # vanish in a puff of smoke.
 
8071
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8072
    COLLECT_NAMES=
 
8073
    export COLLECT_NAMES
 
8074
  fi
 
8075
  ;;
 
8076
esac
 
8077
 
 
8078
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8079
# metacharacters that are still active within double-quoted strings.
 
8080
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
8081
 
 
8082
# Same as above, but do not quote variable references.
 
8083
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
8084
 
 
8085
# Sed substitution to delay expansion of an escaped shell variable in a
 
8086
# double_quote_subst'ed string.
 
8087
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8088
 
 
8089
# Sed substitution to delay expansion of an escaped single quote.
 
8090
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
8091
 
 
8092
# Sed substitution to avoid accidental globbing in evaled expressions
 
8093
no_glob_subst='s/\*/\\\*/g'
 
8094
 
 
8095
# Global variables:
 
8096
ofile=libtool
 
8097
can_build_shared=yes
 
8098
 
 
8099
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8100
# which needs '.lib').
 
8101
libext=a
 
8102
 
 
8103
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8104
 
 
8105
old_CC="$CC"
 
8106
old_CFLAGS="$CFLAGS"
 
8107
 
 
8108
# Set sane defaults for various variables
 
8109
test -z "$CC" && CC=cc
 
8110
test -z "$LTCC" && LTCC=$CC
 
8111
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8112
test -z "$LD" && LD=ld
 
8113
test -z "$ac_objext" && ac_objext=o
 
8114
 
 
8115
for cc_temp in $compiler""; do
 
8116
  case $cc_temp in
 
8117
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8118
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8119
    \-*) ;;
 
8120
    *) break;;
 
8121
  esac
 
8122
done
 
8123
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8124
 
 
8125
 
 
8126
# Only perform the check for file, if the check method requires it
 
8127
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8128
case $deplibs_check_method in
 
8129
file_magic*)
 
8130
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8131
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8132
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8133
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8134
  $as_echo_n "(cached) " >&6
 
8135
else
 
8136
  case $MAGIC_CMD in
 
8137
[\\/*] |  ?:[\\/]*)
 
8138
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8139
  ;;
 
8140
*)
 
8141
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8142
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8143
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8144
  for ac_dir in $ac_dummy; do
 
8145
    IFS="$lt_save_ifs"
 
8146
    test -z "$ac_dir" && ac_dir=.
 
8147
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8148
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8149
      if test -n "$file_magic_test_file"; then
 
8150
        case $deplibs_check_method in
 
8151
        "file_magic "*)
 
8152
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8153
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8154
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8155
            $EGREP "$file_magic_regex" > /dev/null; then
 
8156
            :
 
8157
          else
 
8158
            cat <<_LT_EOF 1>&2
 
8159
 
 
8160
*** Warning: the command libtool uses to detect shared libraries,
 
8161
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8162
*** The result is that libtool may fail to recognize shared libraries
 
8163
*** as such.  This will affect the creation of libtool libraries that
 
8164
*** depend on shared libraries, but programs linked with such libtool
 
8165
*** libraries will work regardless of this problem.  Nevertheless, you
 
8166
*** may want to report the problem to your system manager and/or to
 
8167
*** bug-libtool@gnu.org
 
8168
 
 
8169
_LT_EOF
 
8170
          fi ;;
 
8171
        esac
 
8172
      fi
 
8173
      break
 
8174
    fi
 
8175
  done
 
8176
  IFS="$lt_save_ifs"
 
8177
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8178
  ;;
 
8179
esac
 
8180
fi
 
8181
 
 
8182
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8183
if test -n "$MAGIC_CMD"; then
 
8184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8185
$as_echo "$MAGIC_CMD" >&6; }
 
8186
else
 
8187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8188
$as_echo "no" >&6; }
 
8189
fi
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8196
  if test -n "$ac_tool_prefix"; then
 
8197
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8198
$as_echo_n "checking for file... " >&6; }
 
8199
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8200
  $as_echo_n "(cached) " >&6
 
8201
else
 
8202
  case $MAGIC_CMD in
 
8203
[\\/*] |  ?:[\\/]*)
 
8204
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8205
  ;;
 
8206
*)
 
8207
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8208
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8209
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8210
  for ac_dir in $ac_dummy; do
 
8211
    IFS="$lt_save_ifs"
 
8212
    test -z "$ac_dir" && ac_dir=.
 
8213
    if test -f $ac_dir/file; then
 
8214
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8215
      if test -n "$file_magic_test_file"; then
 
8216
        case $deplibs_check_method in
 
8217
        "file_magic "*)
 
8218
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8219
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8220
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8221
            $EGREP "$file_magic_regex" > /dev/null; then
 
8222
            :
 
8223
          else
 
8224
            cat <<_LT_EOF 1>&2
 
8225
 
 
8226
*** Warning: the command libtool uses to detect shared libraries,
 
8227
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8228
*** The result is that libtool may fail to recognize shared libraries
 
8229
*** as such.  This will affect the creation of libtool libraries that
 
8230
*** depend on shared libraries, but programs linked with such libtool
 
8231
*** libraries will work regardless of this problem.  Nevertheless, you
 
8232
*** may want to report the problem to your system manager and/or to
 
8233
*** bug-libtool@gnu.org
 
8234
 
 
8235
_LT_EOF
 
8236
          fi ;;
 
8237
        esac
 
8238
      fi
 
8239
      break
 
8240
    fi
 
8241
  done
 
8242
  IFS="$lt_save_ifs"
 
8243
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8244
  ;;
 
8245
esac
 
8246
fi
 
8247
 
 
8248
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8249
if test -n "$MAGIC_CMD"; then
 
8250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8251
$as_echo "$MAGIC_CMD" >&6; }
 
8252
else
 
8253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8254
$as_echo "no" >&6; }
 
8255
fi
 
8256
 
 
8257
 
 
8258
  else
 
8259
    MAGIC_CMD=:
 
8260
  fi
 
8261
fi
 
8262
 
 
8263
  fi
 
8264
  ;;
 
8265
esac
 
8266
 
 
8267
# Use C for the default configuration in the libtool script
 
8268
 
 
8269
lt_save_CC="$CC"
 
8270
ac_ext=c
 
8271
ac_cpp='$CPP $CPPFLAGS'
 
8272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8275
 
 
8276
 
 
8277
# Source file extension for C test sources.
 
8278
ac_ext=c
 
8279
 
 
8280
# Object file extension for compiled C test sources.
 
8281
objext=o
 
8282
objext=$objext
 
8283
 
 
8284
# Code to be used in simple compile tests
 
8285
lt_simple_compile_test_code="int some_variable = 0;"
 
8286
 
 
8287
# Code to be used in simple link tests
 
8288
lt_simple_link_test_code='int main(){return(0);}'
 
8289
 
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
 
8296
# If no C compiler was specified, use CC.
 
8297
LTCC=${LTCC-"$CC"}
 
8298
 
 
8299
# If no C compiler flags were specified, use CFLAGS.
 
8300
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8301
 
 
8302
# Allow CC to be a program name with arguments.
 
8303
compiler=$CC
 
8304
 
 
8305
# Save the default compiler, since it gets overwritten when the other
 
8306
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8307
compiler_DEFAULT=$CC
 
8308
 
 
8309
# save warnings/boilerplate of simple test code
 
8310
ac_outfile=conftest.$ac_objext
 
8311
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8312
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8313
_lt_compiler_boilerplate=`cat conftest.err`
 
8314
$RM conftest*
 
8315
 
 
8316
ac_outfile=conftest.$ac_objext
 
8317
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8318
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8319
_lt_linker_boilerplate=`cat conftest.err`
 
8320
$RM -r conftest*
 
8321
 
 
8322
 
 
8323
## CAVEAT EMPTOR:
 
8324
## There is no encapsulation within the following macros, do not change
 
8325
## the running order or otherwise move them around unless you know exactly
 
8326
## what you are doing...
 
8327
if test -n "$compiler"; then
 
8328
 
 
8329
lt_prog_compiler_no_builtin_flag=
 
8330
 
 
8331
if test "$GCC" = yes; then
 
8332
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8333
 
 
8334
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8335
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8336
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8337
  $as_echo_n "(cached) " >&6
 
8338
else
 
8339
  lt_cv_prog_compiler_rtti_exceptions=no
 
8340
   ac_outfile=conftest.$ac_objext
 
8341
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8342
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8343
   # Insert the option either (1) after the last *FLAGS variable, or
 
8344
   # (2) before a word containing "conftest.", or (3) at the end.
 
8345
   # Note that $ac_compile itself does not contain backslashes and begins
 
8346
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8347
   # The option is referenced via a variable to avoid confusing sed.
 
8348
   lt_compile=`echo "$ac_compile" | $SED \
 
8349
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8350
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8351
   -e 's:$: $lt_compiler_flag:'`
 
8352
   (eval echo "\"\$as_me:8352: $lt_compile\"" >&5)
 
8353
   (eval "$lt_compile" 2>conftest.err)
 
8354
   ac_status=$?
 
8355
   cat conftest.err >&5
 
8356
   echo "$as_me:8356: \$? = $ac_status" >&5
 
8357
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8358
     # The compiler can only warn and ignore the option if not recognized
 
8359
     # So say no if there are warnings other than the usual output.
 
8360
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8361
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8362
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8363
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8364
     fi
 
8365
   fi
 
8366
   $RM conftest*
 
8367
 
 
8368
fi
 
8369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8370
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8371
 
 
8372
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8373
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8374
else
 
8375
    :
 
8376
fi
 
8377
 
 
8378
fi
 
8379
 
 
8380
 
 
8381
 
 
8382
 
 
8383
 
 
8384
 
 
8385
  lt_prog_compiler_wl=
 
8386
lt_prog_compiler_pic=
 
8387
lt_prog_compiler_static=
 
8388
 
 
8389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8390
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8391
 
 
8392
  if test "$GCC" = yes; then
 
8393
    lt_prog_compiler_wl='-Wl,'
 
8394
    lt_prog_compiler_static='-static'
 
8395
 
 
8396
    case $host_os in
 
8397
      aix*)
 
8398
      # All AIX code is PIC.
 
8399
      if test "$host_cpu" = ia64; then
 
8400
        # AIX 5 now supports IA64 processor
 
8401
        lt_prog_compiler_static='-Bstatic'
 
8402
      fi
 
8403
      ;;
 
8404
 
 
8405
    amigaos*)
 
8406
      case $host_cpu in
 
8407
      powerpc)
 
8408
            # see comment about AmigaOS4 .so support
 
8409
            lt_prog_compiler_pic='-fPIC'
 
8410
        ;;
 
8411
      m68k)
 
8412
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8413
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8414
            # like `-m68040'.
 
8415
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8416
        ;;
 
8417
      esac
 
8418
      ;;
 
8419
 
 
8420
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8421
      # PIC is the default for these OSes.
 
8422
      ;;
 
8423
 
 
8424
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8425
      # This hack is so that the source file can tell whether it is being
 
8426
      # built for inclusion in a dll (and should export symbols for example).
 
8427
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8428
      # (--disable-auto-import) libraries
 
8429
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8430
      ;;
 
8431
 
 
8432
    darwin* | rhapsody*)
 
8433
      # PIC is the default on this platform
 
8434
      # Common symbols not allowed in MH_DYLIB files
 
8435
      lt_prog_compiler_pic='-fno-common'
 
8436
      ;;
 
8437
 
 
8438
    hpux*)
 
8439
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8440
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8441
      # sets the default TLS model and affects inlining.
 
8442
      case $host_cpu in
 
8443
      hppa*64*)
 
8444
        # +Z the default
 
8445
        ;;
 
8446
      *)
 
8447
        lt_prog_compiler_pic='-fPIC'
 
8448
        ;;
 
8449
      esac
 
8450
      ;;
 
8451
 
 
8452
    interix[3-9]*)
 
8453
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8454
      # Instead, we relocate shared libraries at runtime.
 
8455
      ;;
 
8456
 
 
8457
    msdosdjgpp*)
 
8458
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8459
      # on systems that don't support them.
 
8460
      lt_prog_compiler_can_build_shared=no
 
8461
      enable_shared=no
 
8462
      ;;
 
8463
 
 
8464
    *nto* | *qnx*)
 
8465
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8466
      # it will coredump.
 
8467
      lt_prog_compiler_pic='-fPIC -shared'
 
8468
      ;;
 
8469
 
 
8470
    sysv4*MP*)
 
8471
      if test -d /usr/nec; then
 
8472
        lt_prog_compiler_pic=-Kconform_pic
 
8473
      fi
 
8474
      ;;
 
8475
 
 
8476
    *)
 
8477
      lt_prog_compiler_pic='-fPIC'
 
8478
      ;;
 
8479
    esac
 
8480
  else
 
8481
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8482
    case $host_os in
 
8483
    aix*)
 
8484
      lt_prog_compiler_wl='-Wl,'
 
8485
      if test "$host_cpu" = ia64; then
 
8486
        # AIX 5 now supports IA64 processor
 
8487
        lt_prog_compiler_static='-Bstatic'
 
8488
      else
 
8489
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8490
      fi
 
8491
      ;;
 
8492
 
 
8493
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8494
      # This hack is so that the source file can tell whether it is being
 
8495
      # built for inclusion in a dll (and should export symbols for example).
 
8496
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8497
      ;;
 
8498
 
 
8499
    hpux9* | hpux10* | hpux11*)
 
8500
      lt_prog_compiler_wl='-Wl,'
 
8501
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8502
      # not for PA HP-UX.
 
8503
      case $host_cpu in
 
8504
      hppa*64*|ia64*)
 
8505
        # +Z the default
 
8506
        ;;
 
8507
      *)
 
8508
        lt_prog_compiler_pic='+Z'
 
8509
        ;;
 
8510
      esac
 
8511
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8512
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8513
      ;;
 
8514
 
 
8515
    irix5* | irix6* | nonstopux*)
 
8516
      lt_prog_compiler_wl='-Wl,'
 
8517
      # PIC (with -KPIC) is the default.
 
8518
      lt_prog_compiler_static='-non_shared'
 
8519
      ;;
 
8520
 
 
8521
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8522
      case $cc_basename in
 
8523
      # old Intel for x86_64 which still supported -KPIC.
 
8524
      ecc*)
 
8525
        lt_prog_compiler_wl='-Wl,'
 
8526
        lt_prog_compiler_pic='-KPIC'
 
8527
        lt_prog_compiler_static='-static'
 
8528
        ;;
 
8529
      # icc used to be incompatible with GCC.
 
8530
      # ICC 10 doesn't accept -KPIC any more.
 
8531
      icc* | ifort*)
 
8532
        lt_prog_compiler_wl='-Wl,'
 
8533
        lt_prog_compiler_pic='-fPIC'
 
8534
        lt_prog_compiler_static='-static'
 
8535
        ;;
 
8536
      # Lahey Fortran 8.1.
 
8537
      lf95*)
 
8538
        lt_prog_compiler_wl='-Wl,'
 
8539
        lt_prog_compiler_pic='--shared'
 
8540
        lt_prog_compiler_static='--static'
 
8541
        ;;
 
8542
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8543
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8544
        # which looks to be a dead project)
 
8545
        lt_prog_compiler_wl='-Wl,'
 
8546
        lt_prog_compiler_pic='-fpic'
 
8547
        lt_prog_compiler_static='-Bstatic'
 
8548
        ;;
 
8549
      ccc*)
 
8550
        lt_prog_compiler_wl='-Wl,'
 
8551
        # All Alpha code is PIC.
 
8552
        lt_prog_compiler_static='-non_shared'
 
8553
        ;;
 
8554
      xl*)
 
8555
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8556
        lt_prog_compiler_wl='-Wl,'
 
8557
        lt_prog_compiler_pic='-qpic'
 
8558
        lt_prog_compiler_static='-qstaticlink'
 
8559
        ;;
 
8560
      *)
 
8561
        case `$CC -V 2>&1 | sed 5q` in
 
8562
        *Sun\ C*)
 
8563
          # Sun C 5.9
 
8564
          lt_prog_compiler_pic='-KPIC'
 
8565
          lt_prog_compiler_static='-Bstatic'
 
8566
          lt_prog_compiler_wl='-Wl,'
 
8567
          ;;
 
8568
        *Sun\ F*)
 
8569
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8570
          lt_prog_compiler_pic='-KPIC'
 
8571
          lt_prog_compiler_static='-Bstatic'
 
8572
          lt_prog_compiler_wl=''
 
8573
          ;;
 
8574
        esac
 
8575
        ;;
 
8576
      esac
 
8577
      ;;
 
8578
 
 
8579
    newsos6)
 
8580
      lt_prog_compiler_pic='-KPIC'
 
8581
      lt_prog_compiler_static='-Bstatic'
 
8582
      ;;
 
8583
 
 
8584
    *nto* | *qnx*)
 
8585
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8586
      # it will coredump.
 
8587
      lt_prog_compiler_pic='-fPIC -shared'
 
8588
      ;;
 
8589
 
 
8590
    osf3* | osf4* | osf5*)
 
8591
      lt_prog_compiler_wl='-Wl,'
 
8592
      # All OSF/1 code is PIC.
 
8593
      lt_prog_compiler_static='-non_shared'
 
8594
      ;;
 
8595
 
 
8596
    rdos*)
 
8597
      lt_prog_compiler_static='-non_shared'
 
8598
      ;;
 
8599
 
 
8600
    solaris*)
 
8601
      lt_prog_compiler_pic='-KPIC'
 
8602
      lt_prog_compiler_static='-Bstatic'
 
8603
      case $cc_basename in
 
8604
      f77* | f90* | f95*)
 
8605
        lt_prog_compiler_wl='-Qoption ld ';;
 
8606
      *)
 
8607
        lt_prog_compiler_wl='-Wl,';;
 
8608
      esac
 
8609
      ;;
 
8610
 
 
8611
    sunos4*)
 
8612
      lt_prog_compiler_wl='-Qoption ld '
 
8613
      lt_prog_compiler_pic='-PIC'
 
8614
      lt_prog_compiler_static='-Bstatic'
 
8615
      ;;
 
8616
 
 
8617
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8618
      lt_prog_compiler_wl='-Wl,'
 
8619
      lt_prog_compiler_pic='-KPIC'
 
8620
      lt_prog_compiler_static='-Bstatic'
 
8621
      ;;
 
8622
 
 
8623
    sysv4*MP*)
 
8624
      if test -d /usr/nec ;then
 
8625
        lt_prog_compiler_pic='-Kconform_pic'
 
8626
        lt_prog_compiler_static='-Bstatic'
 
8627
      fi
 
8628
      ;;
 
8629
 
 
8630
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8631
      lt_prog_compiler_wl='-Wl,'
 
8632
      lt_prog_compiler_pic='-KPIC'
 
8633
      lt_prog_compiler_static='-Bstatic'
 
8634
      ;;
 
8635
 
 
8636
    unicos*)
 
8637
      lt_prog_compiler_wl='-Wl,'
 
8638
      lt_prog_compiler_can_build_shared=no
 
8639
      ;;
 
8640
 
 
8641
    uts4*)
 
8642
      lt_prog_compiler_pic='-pic'
 
8643
      lt_prog_compiler_static='-Bstatic'
 
8644
      ;;
 
8645
 
 
8646
    *)
 
8647
      lt_prog_compiler_can_build_shared=no
 
8648
      ;;
 
8649
    esac
 
8650
  fi
 
8651
 
 
8652
case $host_os in
 
8653
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8654
  *djgpp*)
 
8655
    lt_prog_compiler_pic=
 
8656
    ;;
 
8657
  *)
 
8658
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8659
    ;;
 
8660
esac
 
8661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8662
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8663
 
 
8664
 
 
8665
 
 
8666
 
 
8667
 
 
8668
 
 
8669
#
 
8670
# Check to make sure the PIC flag actually works.
 
8671
#
 
8672
if test -n "$lt_prog_compiler_pic"; then
 
8673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8674
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8675
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8676
  $as_echo_n "(cached) " >&6
 
8677
else
 
8678
  lt_cv_prog_compiler_pic_works=no
 
8679
   ac_outfile=conftest.$ac_objext
 
8680
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8681
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8682
   # Insert the option either (1) after the last *FLAGS variable, or
 
8683
   # (2) before a word containing "conftest.", or (3) at the end.
 
8684
   # Note that $ac_compile itself does not contain backslashes and begins
 
8685
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8686
   # The option is referenced via a variable to avoid confusing sed.
 
8687
   lt_compile=`echo "$ac_compile" | $SED \
 
8688
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8689
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8690
   -e 's:$: $lt_compiler_flag:'`
 
8691
   (eval echo "\"\$as_me:8691: $lt_compile\"" >&5)
 
8692
   (eval "$lt_compile" 2>conftest.err)
 
8693
   ac_status=$?
 
8694
   cat conftest.err >&5
 
8695
   echo "$as_me:8695: \$? = $ac_status" >&5
 
8696
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8697
     # The compiler can only warn and ignore the option if not recognized
 
8698
     # So say no if there are warnings other than the usual output.
 
8699
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8700
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8701
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8702
       lt_cv_prog_compiler_pic_works=yes
 
8703
     fi
 
8704
   fi
 
8705
   $RM conftest*
 
8706
 
 
8707
fi
 
8708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8709
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8710
 
 
8711
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8712
    case $lt_prog_compiler_pic in
 
8713
     "" | " "*) ;;
 
8714
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8715
     esac
 
8716
else
 
8717
    lt_prog_compiler_pic=
 
8718
     lt_prog_compiler_can_build_shared=no
 
8719
fi
 
8720
 
 
8721
fi
 
8722
 
 
8723
 
 
8724
 
 
8725
 
 
8726
 
 
8727
 
 
8728
#
 
8729
# Check to make sure the static flag actually works.
 
8730
#
 
8731
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8733
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8734
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8735
  $as_echo_n "(cached) " >&6
 
8736
else
 
8737
  lt_cv_prog_compiler_static_works=no
 
8738
   save_LDFLAGS="$LDFLAGS"
 
8739
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8740
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8741
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8742
     # The linker can only warn and ignore the option if not recognized
 
8743
     # So say no if there are warnings
 
8744
     if test -s conftest.err; then
 
8745
       # Append any errors to the config.log.
 
8746
       cat conftest.err 1>&5
 
8747
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8748
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8749
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8750
         lt_cv_prog_compiler_static_works=yes
 
8751
       fi
 
8752
     else
 
8753
       lt_cv_prog_compiler_static_works=yes
 
8754
     fi
 
8755
   fi
 
8756
   $RM -r conftest*
 
8757
   LDFLAGS="$save_LDFLAGS"
 
8758
 
 
8759
fi
 
8760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8761
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8762
 
 
8763
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8764
    :
 
8765
else
 
8766
    lt_prog_compiler_static=
 
8767
fi
 
8768
 
 
8769
 
 
8770
 
 
8771
 
 
8772
 
 
8773
 
 
8774
 
 
8775
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8776
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8777
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8778
  $as_echo_n "(cached) " >&6
 
8779
else
 
8780
  lt_cv_prog_compiler_c_o=no
 
8781
   $RM -r conftest 2>/dev/null
 
8782
   mkdir conftest
 
8783
   cd conftest
 
8784
   mkdir out
 
8785
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8786
 
 
8787
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8788
   # Insert the option either (1) after the last *FLAGS variable, or
 
8789
   # (2) before a word containing "conftest.", or (3) at the end.
 
8790
   # Note that $ac_compile itself does not contain backslashes and begins
 
8791
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8792
   lt_compile=`echo "$ac_compile" | $SED \
 
8793
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8794
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8795
   -e 's:$: $lt_compiler_flag:'`
 
8796
   (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
 
8797
   (eval "$lt_compile" 2>out/conftest.err)
 
8798
   ac_status=$?
 
8799
   cat out/conftest.err >&5
 
8800
   echo "$as_me:8800: \$? = $ac_status" >&5
 
8801
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8802
   then
 
8803
     # The compiler can only warn and ignore the option if not recognized
 
8804
     # So say no if there are warnings
 
8805
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8806
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8807
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8808
       lt_cv_prog_compiler_c_o=yes
 
8809
     fi
 
8810
   fi
 
8811
   chmod u+w . 2>&5
 
8812
   $RM conftest*
 
8813
   # SGI C++ compiler will create directory out/ii_files/ for
 
8814
   # template instantiation
 
8815
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8816
   $RM out/* && rmdir out
 
8817
   cd ..
 
8818
   $RM -r conftest
 
8819
   $RM conftest*
 
8820
 
 
8821
fi
 
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8823
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8824
 
 
8825
 
 
8826
 
 
8827
 
 
8828
 
 
8829
 
 
8830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8831
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8832
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8833
  $as_echo_n "(cached) " >&6
 
8834
else
 
8835
  lt_cv_prog_compiler_c_o=no
 
8836
   $RM -r conftest 2>/dev/null
 
8837
   mkdir conftest
 
8838
   cd conftest
 
8839
   mkdir out
 
8840
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8841
 
 
8842
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8843
   # Insert the option either (1) after the last *FLAGS variable, or
 
8844
   # (2) before a word containing "conftest.", or (3) at the end.
 
8845
   # Note that $ac_compile itself does not contain backslashes and begins
 
8846
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8847
   lt_compile=`echo "$ac_compile" | $SED \
 
8848
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8849
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8850
   -e 's:$: $lt_compiler_flag:'`
 
8851
   (eval echo "\"\$as_me:8851: $lt_compile\"" >&5)
 
8852
   (eval "$lt_compile" 2>out/conftest.err)
 
8853
   ac_status=$?
 
8854
   cat out/conftest.err >&5
 
8855
   echo "$as_me:8855: \$? = $ac_status" >&5
 
8856
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8857
   then
 
8858
     # The compiler can only warn and ignore the option if not recognized
 
8859
     # So say no if there are warnings
 
8860
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8861
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8862
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8863
       lt_cv_prog_compiler_c_o=yes
 
8864
     fi
 
8865
   fi
 
8866
   chmod u+w . 2>&5
 
8867
   $RM conftest*
 
8868
   # SGI C++ compiler will create directory out/ii_files/ for
 
8869
   # template instantiation
 
8870
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8871
   $RM out/* && rmdir out
 
8872
   cd ..
 
8873
   $RM -r conftest
 
8874
   $RM conftest*
 
8875
 
 
8876
fi
 
8877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8878
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8879
 
 
8880
 
 
8881
 
 
8882
 
 
8883
hard_links="nottested"
 
8884
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8885
  # do not overwrite the value of need_locks provided by the user
 
8886
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8887
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8888
  hard_links=yes
 
8889
  $RM conftest*
 
8890
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8891
  touch conftest.a
 
8892
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8893
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8895
$as_echo "$hard_links" >&6; }
 
8896
  if test "$hard_links" = no; then
 
8897
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8898
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8899
    need_locks=warn
 
8900
  fi
 
8901
else
 
8902
  need_locks=no
 
8903
fi
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
 
 
8910
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8911
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8912
 
 
8913
  runpath_var=
 
8914
  allow_undefined_flag=
 
8915
  always_export_symbols=no
 
8916
  archive_cmds=
 
8917
  archive_expsym_cmds=
 
8918
  compiler_needs_object=no
 
8919
  enable_shared_with_static_runtimes=no
 
8920
  export_dynamic_flag_spec=
 
8921
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8922
  hardcode_automatic=no
 
8923
  hardcode_direct=no
 
8924
  hardcode_direct_absolute=no
 
8925
  hardcode_libdir_flag_spec=
 
8926
  hardcode_libdir_flag_spec_ld=
 
8927
  hardcode_libdir_separator=
 
8928
  hardcode_minus_L=no
 
8929
  hardcode_shlibpath_var=unsupported
 
8930
  inherit_rpath=no
 
8931
  link_all_deplibs=unknown
 
8932
  module_cmds=
 
8933
  module_expsym_cmds=
 
8934
  old_archive_from_new_cmds=
 
8935
  old_archive_from_expsyms_cmds=
 
8936
  thread_safe_flag_spec=
 
8937
  whole_archive_flag_spec=
 
8938
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8939
  # included in the symbol list
 
8940
  include_expsyms=
 
8941
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8942
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8943
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8944
  # as well as any symbol that contains `d'.
 
8945
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8946
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8947
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8948
  # the symbol is explicitly referenced.  Since portable code cannot
 
8949
  # rely on this symbol name, it's probably fine to never include it in
 
8950
  # preloaded symbol tables.
 
8951
  # Exclude shared library initialization/finalization symbols.
 
8952
  extract_expsyms_cmds=
 
8953
 
 
8954
  case $host_os in
 
8955
  cygwin* | mingw* | pw32* | cegcc*)
 
8956
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8957
    # When not using gcc, we currently assume that we are using
 
8958
    # Microsoft Visual C++.
 
8959
    if test "$GCC" != yes; then
 
8960
      with_gnu_ld=no
 
8961
    fi
 
8962
    ;;
 
8963
  interix*)
 
8964
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8965
    with_gnu_ld=yes
 
8966
    ;;
 
8967
  openbsd*)
 
8968
    with_gnu_ld=no
 
8969
    ;;
 
8970
  linux* | k*bsd*-gnu)
 
8971
    link_all_deplibs=no
 
8972
    ;;
 
8973
  esac
 
8974
 
 
8975
  ld_shlibs=yes
 
8976
  if test "$with_gnu_ld" = yes; then
 
8977
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8978
    wlarc='${wl}'
 
8979
 
 
8980
    # Set some defaults for GNU ld with shared library support. These
 
8981
    # are reset later if shared libraries are not supported. Putting them
 
8982
    # here allows them to be overridden if necessary.
 
8983
    runpath_var=LD_RUN_PATH
 
8984
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8985
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8986
    # ancient GNU ld didn't support --whole-archive et. al.
 
8987
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8988
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8989
    else
 
8990
      whole_archive_flag_spec=
 
8991
    fi
 
8992
    supports_anon_versioning=no
 
8993
    case `$LD -v 2>&1` in
 
8994
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8995
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8996
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8997
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8998
      *\ 2.11.*) ;; # other 2.11 versions
 
8999
      *) supports_anon_versioning=yes ;;
 
9000
    esac
 
9001
 
 
9002
    # See if GNU ld supports shared libraries.
 
9003
    case $host_os in
 
9004
    aix[3-9]*)
 
9005
      # On AIX/PPC, the GNU linker is very broken
 
9006
      if test "$host_cpu" != ia64; then
 
9007
        ld_shlibs=no
 
9008
        cat <<_LT_EOF 1>&2
 
9009
 
 
9010
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9011
*** to be unable to reliably create shared libraries on AIX.
 
9012
*** Therefore, libtool is disabling shared libraries support.  If you
 
9013
*** really care for shared libraries, you may want to modify your PATH
 
9014
*** so that a non-GNU linker is found, and then restart.
 
9015
 
 
9016
_LT_EOF
 
9017
      fi
 
9018
      ;;
 
9019
 
 
9020
    amigaos*)
 
9021
      case $host_cpu in
 
9022
      powerpc)
 
9023
            # see comment about AmigaOS4 .so support
 
9024
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9025
            archive_expsym_cmds=''
 
9026
        ;;
 
9027
      m68k)
 
9028
            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)'
 
9029
            hardcode_libdir_flag_spec='-L$libdir'
 
9030
            hardcode_minus_L=yes
 
9031
        ;;
 
9032
      esac
 
9033
      ;;
 
9034
 
 
9035
    beos*)
 
9036
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9037
        allow_undefined_flag=unsupported
 
9038
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9039
        # support --undefined.  This deserves some investigation.  FIXME
 
9040
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9041
      else
 
9042
        ld_shlibs=no
 
9043
      fi
 
9044
      ;;
 
9045
 
 
9046
    cygwin* | mingw* | pw32* | cegcc*)
 
9047
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9048
      # as there is no search path for DLLs.
 
9049
      hardcode_libdir_flag_spec='-L$libdir'
 
9050
      allow_undefined_flag=unsupported
 
9051
      always_export_symbols=no
 
9052
      enable_shared_with_static_runtimes=yes
 
9053
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9054
 
 
9055
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9056
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9057
        # If the export-symbols file already is a .def file (1st line
 
9058
        # is EXPORTS), use it as is; otherwise, prepend...
 
9059
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9060
          cp $export_symbols $output_objdir/$soname.def;
 
9061
        else
 
9062
          echo EXPORTS > $output_objdir/$soname.def;
 
9063
          cat $export_symbols >> $output_objdir/$soname.def;
 
9064
        fi~
 
9065
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9066
      else
 
9067
        ld_shlibs=no
 
9068
      fi
 
9069
      ;;
 
9070
 
 
9071
    interix[3-9]*)
 
9072
      hardcode_direct=no
 
9073
      hardcode_shlibpath_var=no
 
9074
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9075
      export_dynamic_flag_spec='${wl}-E'
 
9076
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9077
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9078
      # default) and relocated if they conflict, which is a slow very memory
 
9079
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9080
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9081
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9082
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9083
      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'
 
9084
      ;;
 
9085
 
 
9086
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9087
      tmp_diet=no
 
9088
      if test "$host_os" = linux-dietlibc; then
 
9089
        case $cc_basename in
 
9090
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9091
        esac
 
9092
      fi
 
9093
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9094
         && test "$tmp_diet" = no
 
9095
      then
 
9096
        tmp_addflag=
 
9097
        tmp_sharedflag='-shared'
 
9098
        case $cc_basename,$host_cpu in
 
9099
        pgcc*)                          # Portland Group C compiler
 
9100
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9101
          tmp_addflag=' $pic_flag'
 
9102
          ;;
 
9103
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
9104
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9105
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9106
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9107
          tmp_addflag=' -i_dynamic' ;;
 
9108
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9109
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9110
        ifc* | ifort*)                  # Intel Fortran compiler
 
9111
          tmp_addflag=' -nofor_main' ;;
 
9112
        lf95*)                          # Lahey Fortran 8.1
 
9113
          whole_archive_flag_spec=
 
9114
          tmp_sharedflag='--shared' ;;
 
9115
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
9116
          tmp_sharedflag='-qmkshrobj'
 
9117
          tmp_addflag= ;;
 
9118
        esac
 
9119
        case `$CC -V 2>&1 | sed 5q` in
 
9120
        *Sun\ C*)                       # Sun C 5.9
 
9121
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9122
          compiler_needs_object=yes
 
9123
          tmp_sharedflag='-G' ;;
 
9124
        *Sun\ F*)                       # Sun Fortran 8.3
 
9125
          tmp_sharedflag='-G' ;;
 
9126
        esac
 
9127
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9128
 
 
9129
        if test "x$supports_anon_versioning" = xyes; then
 
9130
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9131
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9132
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9133
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9134
        fi
 
9135
 
 
9136
        case $cc_basename in
 
9137
        xlf*)
 
9138
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9139
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9140
          hardcode_libdir_flag_spec=
 
9141
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9142
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9143
          if test "x$supports_anon_versioning" = xyes; then
 
9144
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9145
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9146
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9147
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9148
          fi
 
9149
          ;;
 
9150
        esac
 
9151
      else
 
9152
        ld_shlibs=no
 
9153
      fi
 
9154
      ;;
 
9155
 
 
9156
    netbsd* | netbsdelf*-gnu)
 
9157
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9158
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9159
        wlarc=
 
9160
      else
 
9161
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9162
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9163
      fi
 
9164
      ;;
 
9165
 
 
9166
    solaris*)
 
9167
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9168
        ld_shlibs=no
 
9169
        cat <<_LT_EOF 1>&2
 
9170
 
 
9171
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9172
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9173
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9174
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9175
*** your PATH or compiler configuration so that the native linker is
 
9176
*** used, and then restart.
 
9177
 
 
9178
_LT_EOF
 
9179
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9180
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9181
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9182
      else
 
9183
        ld_shlibs=no
 
9184
      fi
 
9185
      ;;
 
9186
 
 
9187
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9188
      case `$LD -v 2>&1` in
 
9189
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9190
        ld_shlibs=no
 
9191
        cat <<_LT_EOF 1>&2
 
9192
 
 
9193
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9194
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9195
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9196
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9197
*** your PATH or compiler configuration so that the native linker is
 
9198
*** used, and then restart.
 
9199
 
 
9200
_LT_EOF
 
9201
        ;;
 
9202
        *)
 
9203
          # For security reasons, it is highly recommended that you always
 
9204
          # use absolute paths for naming shared libraries, and exclude the
 
9205
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9206
          # requires that you compile everything twice, which is a pain.
 
9207
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9208
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9209
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9210
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9211
          else
 
9212
            ld_shlibs=no
 
9213
          fi
 
9214
        ;;
 
9215
      esac
 
9216
      ;;
 
9217
 
 
9218
    sunos4*)
 
9219
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9220
      wlarc=
 
9221
      hardcode_direct=yes
 
9222
      hardcode_shlibpath_var=no
 
9223
      ;;
 
9224
 
 
9225
    *)
 
9226
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9227
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9228
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9229
      else
 
9230
        ld_shlibs=no
 
9231
      fi
 
9232
      ;;
 
9233
    esac
 
9234
 
 
9235
    if test "$ld_shlibs" = no; then
 
9236
      runpath_var=
 
9237
      hardcode_libdir_flag_spec=
 
9238
      export_dynamic_flag_spec=
 
9239
      whole_archive_flag_spec=
 
9240
    fi
 
9241
  else
 
9242
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9243
    case $host_os in
 
9244
    aix3*)
 
9245
      allow_undefined_flag=unsupported
 
9246
      always_export_symbols=yes
 
9247
      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'
 
9248
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9249
      # are no directories specified by -L.
 
9250
      hardcode_minus_L=yes
 
9251
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9252
        # Neither direct hardcoding nor static linking is supported with a
 
9253
        # broken collect2.
 
9254
        hardcode_direct=unsupported
 
9255
      fi
 
9256
      ;;
 
9257
 
 
9258
    aix[4-9]*)
 
9259
      if test "$host_cpu" = ia64; then
 
9260
        # On IA64, the linker does run time linking by default, so we don't
 
9261
        # have to do anything special.
 
9262
        aix_use_runtimelinking=no
 
9263
        exp_sym_flag='-Bexport'
 
9264
        no_entry_flag=""
 
9265
      else
 
9266
        # If we're using GNU nm, then we don't want the "-C" option.
 
9267
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9268
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9269
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9270
        else
 
9271
          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'
 
9272
        fi
 
9273
        aix_use_runtimelinking=no
 
9274
 
 
9275
        # Test if we are trying to use run time linking or normal
 
9276
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9277
        # need to do runtime linking.
 
9278
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9279
          for ld_flag in $LDFLAGS; do
 
9280
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9281
            aix_use_runtimelinking=yes
 
9282
            break
 
9283
          fi
 
9284
          done
 
9285
          ;;
 
9286
        esac
 
9287
 
 
9288
        exp_sym_flag='-bexport'
 
9289
        no_entry_flag='-bnoentry'
 
9290
      fi
 
9291
 
 
9292
      # When large executables or shared objects are built, AIX ld can
 
9293
      # have problems creating the table of contents.  If linking a library
 
9294
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9295
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9296
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9297
 
 
9298
      archive_cmds=''
 
9299
      hardcode_direct=yes
 
9300
      hardcode_direct_absolute=yes
 
9301
      hardcode_libdir_separator=':'
 
9302
      link_all_deplibs=yes
 
9303
      file_list_spec='${wl}-f,'
 
9304
 
 
9305
      if test "$GCC" = yes; then
 
9306
        case $host_os in aix4.[012]|aix4.[012].*)
 
9307
        # We only want to do this on AIX 4.2 and lower, the check
 
9308
        # below for broken collect2 doesn't work under 4.3+
 
9309
          collect2name=`${CC} -print-prog-name=collect2`
 
9310
          if test -f "$collect2name" &&
 
9311
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9312
          then
 
9313
          # We have reworked collect2
 
9314
          :
 
9315
          else
 
9316
          # We have old collect2
 
9317
          hardcode_direct=unsupported
 
9318
          # It fails to find uninstalled libraries when the uninstalled
 
9319
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9320
          # to unsupported forces relinking
 
9321
          hardcode_minus_L=yes
 
9322
          hardcode_libdir_flag_spec='-L$libdir'
 
9323
          hardcode_libdir_separator=
 
9324
          fi
 
9325
          ;;
 
9326
        esac
 
9327
        shared_flag='-shared'
 
9328
        if test "$aix_use_runtimelinking" = yes; then
 
9329
          shared_flag="$shared_flag "'${wl}-G'
 
9330
        fi
 
9331
        link_all_deplibs=no
 
9332
      else
 
9333
        # not using gcc
 
9334
        if test "$host_cpu" = ia64; then
 
9335
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9336
        # chokes on -Wl,-G. The following line is correct:
 
9337
          shared_flag='-G'
 
9338
        else
 
9339
          if test "$aix_use_runtimelinking" = yes; then
 
9340
            shared_flag='${wl}-G'
 
9341
          else
 
9342
            shared_flag='${wl}-bM:SRE'
 
9343
          fi
 
9344
        fi
 
9345
      fi
 
9346
 
 
9347
      export_dynamic_flag_spec='${wl}-bexpall'
 
9348
      # It seems that -bexpall does not export symbols beginning with
 
9349
      # underscore (_), so it is better to generate a list of symbols to export.
 
9350
      always_export_symbols=yes
 
9351
      if test "$aix_use_runtimelinking" = yes; then
 
9352
        # Warning - without using the other runtime loading flags (-brtl),
 
9353
        # -berok will link without error, but may produce a broken library.
 
9354
        allow_undefined_flag='-berok'
 
9355
        # Determine the default libpath from the value encoded in an
 
9356
        # empty executable.
 
9357
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9358
/* end confdefs.h.  */
 
9359
 
 
9360
int
 
9361
main ()
 
9362
{
 
9363
 
 
9364
  ;
 
9365
  return 0;
 
9366
}
 
9367
_ACEOF
 
9368
if ac_fn_c_try_link "$LINENO"; then :
 
9369
 
 
9370
lt_aix_libpath_sed='
 
9371
    /Import File Strings/,/^$/ {
 
9372
        /^0/ {
 
9373
            s/^0  *\(.*\)$/\1/
 
9374
            p
 
9375
        }
 
9376
    }'
 
9377
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9378
# Check for a 64-bit object if we didn't find anything.
 
9379
if test -z "$aix_libpath"; then
 
9380
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9381
fi
 
9382
fi
 
9383
rm -f core conftest.err conftest.$ac_objext \
 
9384
    conftest$ac_exeext conftest.$ac_ext
 
9385
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9386
 
 
9387
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9388
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9389
      else
 
9390
        if test "$host_cpu" = ia64; then
 
9391
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9392
          allow_undefined_flag="-z nodefs"
 
9393
          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"
 
9394
        else
 
9395
         # Determine the default libpath from the value encoded in an
 
9396
         # empty executable.
 
9397
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9398
/* end confdefs.h.  */
 
9399
 
 
9400
int
 
9401
main ()
 
9402
{
 
9403
 
 
9404
  ;
 
9405
  return 0;
 
9406
}
 
9407
_ACEOF
 
9408
if ac_fn_c_try_link "$LINENO"; then :
 
9409
 
 
9410
lt_aix_libpath_sed='
 
9411
    /Import File Strings/,/^$/ {
 
9412
        /^0/ {
 
9413
            s/^0  *\(.*\)$/\1/
 
9414
            p
 
9415
        }
 
9416
    }'
 
9417
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9418
# Check for a 64-bit object if we didn't find anything.
 
9419
if test -z "$aix_libpath"; then
 
9420
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9421
fi
 
9422
fi
 
9423
rm -f core conftest.err conftest.$ac_objext \
 
9424
    conftest$ac_exeext conftest.$ac_ext
 
9425
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9426
 
 
9427
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9428
          # Warning - without using the other run time loading flags,
 
9429
          # -berok will link without error, but may produce a broken library.
 
9430
          no_undefined_flag=' ${wl}-bernotok'
 
9431
          allow_undefined_flag=' ${wl}-berok'
 
9432
          # Exported symbols can be pulled into shared objects from archives
 
9433
          whole_archive_flag_spec='$convenience'
 
9434
          archive_cmds_need_lc=yes
 
9435
          # This is similar to how AIX traditionally builds its shared libraries.
 
9436
          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'
 
9437
        fi
 
9438
      fi
 
9439
      ;;
 
9440
 
 
9441
    amigaos*)
 
9442
      case $host_cpu in
 
9443
      powerpc)
 
9444
            # see comment about AmigaOS4 .so support
 
9445
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9446
            archive_expsym_cmds=''
 
9447
        ;;
 
9448
      m68k)
 
9449
            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)'
 
9450
            hardcode_libdir_flag_spec='-L$libdir'
 
9451
            hardcode_minus_L=yes
 
9452
        ;;
 
9453
      esac
 
9454
      ;;
 
9455
 
 
9456
    bsdi[45]*)
 
9457
      export_dynamic_flag_spec=-rdynamic
 
9458
      ;;
 
9459
 
 
9460
    cygwin* | mingw* | pw32* | cegcc*)
 
9461
      # When not using gcc, we currently assume that we are using
 
9462
      # Microsoft Visual C++.
 
9463
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9464
      # no search path for DLLs.
 
9465
      hardcode_libdir_flag_spec=' '
 
9466
      allow_undefined_flag=unsupported
 
9467
      # Tell ltmain to make .lib files, not .a files.
 
9468
      libext=lib
 
9469
      # Tell ltmain to make .dll files, not .so files.
 
9470
      shrext_cmds=".dll"
 
9471
      # FIXME: Setting linknames here is a bad hack.
 
9472
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9473
      # The linker will automatically build a .lib file if we build a DLL.
 
9474
      old_archive_from_new_cmds='true'
 
9475
      # FIXME: Should let the user specify the lib program.
 
9476
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9477
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9478
      enable_shared_with_static_runtimes=yes
 
9479
      ;;
 
9480
 
 
9481
    darwin* | rhapsody*)
 
9482
 
 
9483
 
 
9484
  archive_cmds_need_lc=no
 
9485
  hardcode_direct=no
 
9486
  hardcode_automatic=yes
 
9487
  hardcode_shlibpath_var=unsupported
 
9488
  whole_archive_flag_spec=''
 
9489
  link_all_deplibs=yes
 
9490
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9491
  case $cc_basename in
 
9492
     ifort*) _lt_dar_can_shared=yes ;;
 
9493
     *) _lt_dar_can_shared=$GCC ;;
 
9494
  esac
 
9495
  if test "$_lt_dar_can_shared" = "yes"; then
 
9496
    output_verbose_link_cmd=echo
 
9497
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9498
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9499
    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}"
 
9500
    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}"
 
9501
 
 
9502
  else
 
9503
  ld_shlibs=no
 
9504
  fi
 
9505
 
 
9506
      ;;
 
9507
 
 
9508
    dgux*)
 
9509
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9510
      hardcode_libdir_flag_spec='-L$libdir'
 
9511
      hardcode_shlibpath_var=no
 
9512
      ;;
 
9513
 
 
9514
    freebsd1*)
 
9515
      ld_shlibs=no
 
9516
      ;;
 
9517
 
 
9518
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9519
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9520
    # does not break anything, and helps significantly (at the cost of a little
 
9521
    # extra space).
 
9522
    freebsd2.2*)
 
9523
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9524
      hardcode_libdir_flag_spec='-R$libdir'
 
9525
      hardcode_direct=yes
 
9526
      hardcode_shlibpath_var=no
 
9527
      ;;
 
9528
 
 
9529
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9530
    freebsd2*)
 
9531
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9532
      hardcode_direct=yes
 
9533
      hardcode_minus_L=yes
 
9534
      hardcode_shlibpath_var=no
 
9535
      ;;
 
9536
 
 
9537
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9538
    freebsd* | dragonfly*)
 
9539
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9540
      hardcode_libdir_flag_spec='-R$libdir'
 
9541
      hardcode_direct=yes
 
9542
      hardcode_shlibpath_var=no
 
9543
      ;;
 
9544
 
 
9545
    hpux9*)
 
9546
      if test "$GCC" = yes; then
 
9547
        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'
 
9548
      else
 
9549
        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'
 
9550
      fi
 
9551
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9552
      hardcode_libdir_separator=:
 
9553
      hardcode_direct=yes
 
9554
 
 
9555
      # hardcode_minus_L: Not really in the search PATH,
 
9556
      # but as the default location of the library.
 
9557
      hardcode_minus_L=yes
 
9558
      export_dynamic_flag_spec='${wl}-E'
 
9559
      ;;
 
9560
 
 
9561
    hpux10*)
 
9562
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9563
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9564
      else
 
9565
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9566
      fi
 
9567
      if test "$with_gnu_ld" = no; then
 
9568
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9569
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9570
        hardcode_libdir_separator=:
 
9571
        hardcode_direct=yes
 
9572
        hardcode_direct_absolute=yes
 
9573
        export_dynamic_flag_spec='${wl}-E'
 
9574
        # hardcode_minus_L: Not really in the search PATH,
 
9575
        # but as the default location of the library.
 
9576
        hardcode_minus_L=yes
 
9577
      fi
 
9578
      ;;
 
9579
 
 
9580
    hpux11*)
 
9581
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9582
        case $host_cpu in
 
9583
        hppa*64*)
 
9584
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9585
          ;;
 
9586
        ia64*)
 
9587
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9588
          ;;
 
9589
        *)
 
9590
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9591
          ;;
 
9592
        esac
 
9593
      else
 
9594
        case $host_cpu in
 
9595
        hppa*64*)
 
9596
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9597
          ;;
 
9598
        ia64*)
 
9599
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9600
          ;;
 
9601
        *)
 
9602
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9603
          ;;
 
9604
        esac
 
9605
      fi
 
9606
      if test "$with_gnu_ld" = no; then
 
9607
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9608
        hardcode_libdir_separator=:
 
9609
 
 
9610
        case $host_cpu in
 
9611
        hppa*64*|ia64*)
 
9612
          hardcode_direct=no
 
9613
          hardcode_shlibpath_var=no
 
9614
          ;;
 
9615
        *)
 
9616
          hardcode_direct=yes
 
9617
          hardcode_direct_absolute=yes
 
9618
          export_dynamic_flag_spec='${wl}-E'
 
9619
 
 
9620
          # hardcode_minus_L: Not really in the search PATH,
 
9621
          # but as the default location of the library.
 
9622
          hardcode_minus_L=yes
 
9623
          ;;
 
9624
        esac
 
9625
      fi
 
9626
      ;;
 
9627
 
 
9628
    irix5* | irix6* | nonstopux*)
 
9629
      if test "$GCC" = yes; then
 
9630
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9631
        # Try to use the -exported_symbol ld option, if it does not
 
9632
        # work, assume that -exports_file does not work either and
 
9633
        # implicitly export all symbols.
 
9634
        save_LDFLAGS="$LDFLAGS"
 
9635
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9636
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9637
/* end confdefs.h.  */
 
9638
int foo(void) {}
 
9639
_ACEOF
 
9640
if ac_fn_c_try_link "$LINENO"; then :
 
9641
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9642
 
 
9643
fi
 
9644
rm -f core conftest.err conftest.$ac_objext \
 
9645
    conftest$ac_exeext conftest.$ac_ext
 
9646
        LDFLAGS="$save_LDFLAGS"
 
9647
      else
 
9648
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9649
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9650
      fi
 
9651
      archive_cmds_need_lc='no'
 
9652
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9653
      hardcode_libdir_separator=:
 
9654
      inherit_rpath=yes
 
9655
      link_all_deplibs=yes
 
9656
      ;;
 
9657
 
 
9658
    netbsd* | netbsdelf*-gnu)
 
9659
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9660
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9661
      else
 
9662
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9663
      fi
 
9664
      hardcode_libdir_flag_spec='-R$libdir'
 
9665
      hardcode_direct=yes
 
9666
      hardcode_shlibpath_var=no
 
9667
      ;;
 
9668
 
 
9669
    newsos6)
 
9670
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9671
      hardcode_direct=yes
 
9672
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9673
      hardcode_libdir_separator=:
 
9674
      hardcode_shlibpath_var=no
 
9675
      ;;
 
9676
 
 
9677
    *nto* | *qnx*)
 
9678
      ;;
 
9679
 
 
9680
    openbsd*)
 
9681
      if test -f /usr/libexec/ld.so; then
 
9682
        hardcode_direct=yes
 
9683
        hardcode_shlibpath_var=no
 
9684
        hardcode_direct_absolute=yes
 
9685
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9686
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9687
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9688
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9689
          export_dynamic_flag_spec='${wl}-E'
 
9690
        else
 
9691
          case $host_os in
 
9692
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9693
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9694
             hardcode_libdir_flag_spec='-R$libdir'
 
9695
             ;;
 
9696
           *)
 
9697
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9698
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9699
             ;;
 
9700
          esac
 
9701
        fi
 
9702
      else
 
9703
        ld_shlibs=no
 
9704
      fi
 
9705
      ;;
 
9706
 
 
9707
    os2*)
 
9708
      hardcode_libdir_flag_spec='-L$libdir'
 
9709
      hardcode_minus_L=yes
 
9710
      allow_undefined_flag=unsupported
 
9711
      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'
 
9712
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9713
      ;;
 
9714
 
 
9715
    osf3*)
 
9716
      if test "$GCC" = yes; then
 
9717
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9718
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9719
      else
 
9720
        allow_undefined_flag=' -expect_unresolved \*'
 
9721
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9722
      fi
 
9723
      archive_cmds_need_lc='no'
 
9724
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9725
      hardcode_libdir_separator=:
 
9726
      ;;
 
9727
 
 
9728
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9729
      if test "$GCC" = yes; then
 
9730
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9731
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9732
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9733
      else
 
9734
        allow_undefined_flag=' -expect_unresolved \*'
 
9735
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9736
        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~
 
9737
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9738
 
 
9739
        # Both c and cxx compiler support -rpath directly
 
9740
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9741
      fi
 
9742
      archive_cmds_need_lc='no'
 
9743
      hardcode_libdir_separator=:
 
9744
      ;;
 
9745
 
 
9746
    solaris*)
 
9747
      no_undefined_flag=' -z defs'
 
9748
      if test "$GCC" = yes; then
 
9749
        wlarc='${wl}'
 
9750
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9751
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9752
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9753
      else
 
9754
        case `$CC -V 2>&1` in
 
9755
        *"Compilers 5.0"*)
 
9756
          wlarc=''
 
9757
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9758
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9759
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9760
          ;;
 
9761
        *)
 
9762
          wlarc='${wl}'
 
9763
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9764
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9765
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9766
          ;;
 
9767
        esac
 
9768
      fi
 
9769
      hardcode_libdir_flag_spec='-R$libdir'
 
9770
      hardcode_shlibpath_var=no
 
9771
      case $host_os in
 
9772
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9773
      *)
 
9774
        # The compiler driver will combine and reorder linker options,
 
9775
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9776
        # but is careful enough not to reorder.
 
9777
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9778
        if test "$GCC" = yes; then
 
9779
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9780
        else
 
9781
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9782
        fi
 
9783
        ;;
 
9784
      esac
 
9785
      link_all_deplibs=yes
 
9786
      ;;
 
9787
 
 
9788
    sunos4*)
 
9789
      if test "x$host_vendor" = xsequent; then
 
9790
        # Use $CC to link under sequent, because it throws in some extra .o
 
9791
        # files that make .init and .fini sections work.
 
9792
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9793
      else
 
9794
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9795
      fi
 
9796
      hardcode_libdir_flag_spec='-L$libdir'
 
9797
      hardcode_direct=yes
 
9798
      hardcode_minus_L=yes
 
9799
      hardcode_shlibpath_var=no
 
9800
      ;;
 
9801
 
 
9802
    sysv4)
 
9803
      case $host_vendor in
 
9804
        sni)
 
9805
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9806
          hardcode_direct=yes # is this really true???
 
9807
        ;;
 
9808
        siemens)
 
9809
          ## LD is ld it makes a PLAMLIB
 
9810
          ## CC just makes a GrossModule.
 
9811
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9812
          reload_cmds='$CC -r -o $output$reload_objs'
 
9813
          hardcode_direct=no
 
9814
        ;;
 
9815
        motorola)
 
9816
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9817
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9818
        ;;
 
9819
      esac
 
9820
      runpath_var='LD_RUN_PATH'
 
9821
      hardcode_shlibpath_var=no
 
9822
      ;;
 
9823
 
 
9824
    sysv4.3*)
 
9825
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9826
      hardcode_shlibpath_var=no
 
9827
      export_dynamic_flag_spec='-Bexport'
 
9828
      ;;
 
9829
 
 
9830
    sysv4*MP*)
 
9831
      if test -d /usr/nec; then
 
9832
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9833
        hardcode_shlibpath_var=no
 
9834
        runpath_var=LD_RUN_PATH
 
9835
        hardcode_runpath_var=yes
 
9836
        ld_shlibs=yes
 
9837
      fi
 
9838
      ;;
 
9839
 
 
9840
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9841
      no_undefined_flag='${wl}-z,text'
 
9842
      archive_cmds_need_lc=no
 
9843
      hardcode_shlibpath_var=no
 
9844
      runpath_var='LD_RUN_PATH'
 
9845
 
 
9846
      if test "$GCC" = yes; then
 
9847
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9848
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9849
      else
 
9850
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9851
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9852
      fi
 
9853
      ;;
 
9854
 
 
9855
    sysv5* | sco3.2v5* | sco5v6*)
 
9856
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9857
      # link with -lc, and that would cause any symbols used from libc to
 
9858
      # always be unresolved, which means just about no library would
 
9859
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9860
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9861
      # as -z defs.
 
9862
      no_undefined_flag='${wl}-z,text'
 
9863
      allow_undefined_flag='${wl}-z,nodefs'
 
9864
      archive_cmds_need_lc=no
 
9865
      hardcode_shlibpath_var=no
 
9866
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9867
      hardcode_libdir_separator=':'
 
9868
      link_all_deplibs=yes
 
9869
      export_dynamic_flag_spec='${wl}-Bexport'
 
9870
      runpath_var='LD_RUN_PATH'
 
9871
 
 
9872
      if test "$GCC" = yes; then
 
9873
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9874
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9875
      else
 
9876
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9877
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9878
      fi
 
9879
      ;;
 
9880
 
 
9881
    uts4*)
 
9882
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9883
      hardcode_libdir_flag_spec='-L$libdir'
 
9884
      hardcode_shlibpath_var=no
 
9885
      ;;
 
9886
 
 
9887
    *)
 
9888
      ld_shlibs=no
 
9889
      ;;
 
9890
    esac
 
9891
 
 
9892
    if test x$host_vendor = xsni; then
 
9893
      case $host in
 
9894
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9895
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9896
        ;;
 
9897
      esac
 
9898
    fi
 
9899
  fi
 
9900
 
 
9901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9902
$as_echo "$ld_shlibs" >&6; }
 
9903
test "$ld_shlibs" = no && can_build_shared=no
 
9904
 
 
9905
with_gnu_ld=$with_gnu_ld
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
#
 
9922
# Do we need to explicitly link libc?
 
9923
#
 
9924
case "x$archive_cmds_need_lc" in
 
9925
x|xyes)
 
9926
  # Assume -lc should be added
 
9927
  archive_cmds_need_lc=yes
 
9928
 
 
9929
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9930
    case $archive_cmds in
 
9931
    *'~'*)
 
9932
      # FIXME: we may have to deal with multi-command sequences.
 
9933
      ;;
 
9934
    '$CC '*)
 
9935
      # Test whether the compiler implicitly links with -lc since on some
 
9936
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9937
      # to ld, don't add -lc before -lgcc.
 
9938
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9939
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9940
      $RM conftest*
 
9941
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9942
 
 
9943
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9944
  (eval $ac_compile) 2>&5
 
9945
  ac_status=$?
 
9946
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9947
  test $ac_status = 0; } 2>conftest.err; then
 
9948
        soname=conftest
 
9949
        lib=conftest
 
9950
        libobjs=conftest.$ac_objext
 
9951
        deplibs=
 
9952
        wl=$lt_prog_compiler_wl
 
9953
        pic_flag=$lt_prog_compiler_pic
 
9954
        compiler_flags=-v
 
9955
        linker_flags=-v
 
9956
        verstring=
 
9957
        output_objdir=.
 
9958
        libname=conftest
 
9959
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9960
        allow_undefined_flag=
 
9961
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9962
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9963
  ac_status=$?
 
9964
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9965
  test $ac_status = 0; }
 
9966
        then
 
9967
          archive_cmds_need_lc=no
 
9968
        else
 
9969
          archive_cmds_need_lc=yes
 
9970
        fi
 
9971
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9972
      else
 
9973
        cat conftest.err 1>&5
 
9974
      fi
 
9975
      $RM conftest*
 
9976
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9977
$as_echo "$archive_cmds_need_lc" >&6; }
 
9978
      ;;
 
9979
    esac
 
9980
  fi
 
9981
  ;;
 
9982
esac
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
 
 
10021
 
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10141
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10142
 
 
10143
if test "$GCC" = yes; then
 
10144
  case $host_os in
 
10145
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10146
    *) lt_awk_arg="/^libraries:/" ;;
 
10147
  esac
 
10148
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10149
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10150
    # if the path contains ";" then we assume it to be the separator
 
10151
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10152
    # assumed that no part of a normal pathname contains ";" but that should
 
10153
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10154
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10155
  else
 
10156
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10157
  fi
 
10158
  # Ok, now we have the path, separated by spaces, we can step through it
 
10159
  # and add multilib dir if necessary.
 
10160
  lt_tmp_lt_search_path_spec=
 
10161
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10162
  for lt_sys_path in $lt_search_path_spec; do
 
10163
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10164
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10165
    else
 
10166
      test -d "$lt_sys_path" && \
 
10167
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10168
    fi
 
10169
  done
 
10170
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10171
BEGIN {RS=" "; FS="/|\n";} {
 
10172
  lt_foo="";
 
10173
  lt_count=0;
 
10174
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10175
    if ($lt_i != "" && $lt_i != ".") {
 
10176
      if ($lt_i == "..") {
 
10177
        lt_count++;
 
10178
      } else {
 
10179
        if (lt_count == 0) {
 
10180
          lt_foo="/" $lt_i lt_foo;
 
10181
        } else {
 
10182
          lt_count--;
 
10183
        }
 
10184
      }
 
10185
    }
 
10186
  }
 
10187
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10188
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10189
}'`
 
10190
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10191
else
 
10192
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10193
fi
 
10194
library_names_spec=
 
10195
libname_spec='lib$name'
 
10196
soname_spec=
 
10197
shrext_cmds=".so"
 
10198
postinstall_cmds=
 
10199
postuninstall_cmds=
 
10200
finish_cmds=
 
10201
finish_eval=
 
10202
shlibpath_var=
 
10203
shlibpath_overrides_runpath=unknown
 
10204
version_type=none
 
10205
dynamic_linker="$host_os ld.so"
 
10206
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10207
need_lib_prefix=unknown
 
10208
hardcode_into_libs=no
 
10209
 
 
10210
# when you set need_version to no, make sure it does not cause -set_version
 
10211
# flags to be left without arguments
 
10212
need_version=unknown
 
10213
 
 
10214
case $host_os in
 
10215
aix3*)
 
10216
  version_type=linux
 
10217
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10218
  shlibpath_var=LIBPATH
 
10219
 
 
10220
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10221
  soname_spec='${libname}${release}${shared_ext}$major'
 
10222
  ;;
 
10223
 
 
10224
aix[4-9]*)
 
10225
  version_type=linux
 
10226
  need_lib_prefix=no
 
10227
  need_version=no
 
10228
  hardcode_into_libs=yes
 
10229
  if test "$host_cpu" = ia64; then
 
10230
    # AIX 5 supports IA64
 
10231
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10232
    shlibpath_var=LD_LIBRARY_PATH
 
10233
  else
 
10234
    # With GCC up to 2.95.x, collect2 would create an import file
 
10235
    # for dependence libraries.  The import file would start with
 
10236
    # the line `#! .'.  This would cause the generated library to
 
10237
    # depend on `.', always an invalid library.  This was fixed in
 
10238
    # development snapshots of GCC prior to 3.0.
 
10239
    case $host_os in
 
10240
      aix4 | aix4.[01] | aix4.[01].*)
 
10241
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10242
           echo ' yes '
 
10243
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10244
        :
 
10245
      else
 
10246
        can_build_shared=no
 
10247
      fi
 
10248
      ;;
 
10249
    esac
 
10250
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10251
    # soname into executable. Probably we can add versioning support to
 
10252
    # collect2, so additional links can be useful in future.
 
10253
    if test "$aix_use_runtimelinking" = yes; then
 
10254
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10255
      # instead of lib<name>.a to let people know that these are not
 
10256
      # typical AIX shared libraries.
 
10257
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10258
    else
 
10259
      # We preserve .a as extension for shared libraries through AIX4.2
 
10260
      # and later when we are not doing run time linking.
 
10261
      library_names_spec='${libname}${release}.a $libname.a'
 
10262
      soname_spec='${libname}${release}${shared_ext}$major'
 
10263
    fi
 
10264
    shlibpath_var=LIBPATH
 
10265
  fi
 
10266
  ;;
 
10267
 
 
10268
amigaos*)
 
10269
  case $host_cpu in
 
10270
  powerpc)
 
10271
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10272
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10273
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10274
    ;;
 
10275
  m68k)
 
10276
    library_names_spec='$libname.ixlibrary $libname.a'
 
10277
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10278
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10279
    ;;
 
10280
  esac
 
10281
  ;;
 
10282
 
 
10283
beos*)
 
10284
  library_names_spec='${libname}${shared_ext}'
 
10285
  dynamic_linker="$host_os ld.so"
 
10286
  shlibpath_var=LIBRARY_PATH
 
10287
  ;;
 
10288
 
 
10289
bsdi[45]*)
 
10290
  version_type=linux
 
10291
  need_version=no
 
10292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10293
  soname_spec='${libname}${release}${shared_ext}$major'
 
10294
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10295
  shlibpath_var=LD_LIBRARY_PATH
 
10296
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10297
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10298
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10299
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10300
  # libtool to hard-code these into programs
 
10301
  ;;
 
10302
 
 
10303
cygwin* | mingw* | pw32* | cegcc*)
 
10304
  version_type=windows
 
10305
  shrext_cmds=".dll"
 
10306
  need_version=no
 
10307
  need_lib_prefix=no
 
10308
 
 
10309
  case $GCC,$host_os in
 
10310
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
10311
    library_names_spec='$libname.dll.a'
 
10312
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10313
    postinstall_cmds='base_file=`basename \${file}`~
 
10314
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10315
      dldir=$destdir/`dirname \$dlpath`~
 
10316
      test -d \$dldir || mkdir -p \$dldir~
 
10317
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10318
      chmod a+x \$dldir/$dlname~
 
10319
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10320
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10321
      fi'
 
10322
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10323
      dlpath=$dir/\$dldll~
 
10324
       $RM \$dlpath'
 
10325
    shlibpath_overrides_runpath=yes
 
10326
 
 
10327
    case $host_os in
 
10328
    cygwin*)
 
10329
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10330
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10331
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10332
      ;;
 
10333
    mingw* | cegcc*)
 
10334
      # MinGW DLLs use traditional 'lib' prefix
 
10335
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10336
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10337
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10338
        # It is most probably a Windows format PATH printed by
 
10339
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10340
        # path with ; separators, and with drive letters. We can handle the
 
10341
        # drive letters (cygwin fileutils understands them), so leave them,
 
10342
        # especially as we might pass files found there to a mingw objdump,
 
10343
        # which wouldn't understand a cygwinified path. Ahh.
 
10344
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10345
      else
 
10346
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10347
      fi
 
10348
      ;;
 
10349
    pw32*)
 
10350
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10351
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10352
      ;;
 
10353
    esac
 
10354
    ;;
 
10355
 
 
10356
  *)
 
10357
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10358
    ;;
 
10359
  esac
 
10360
  dynamic_linker='Win32 ld.exe'
 
10361
  # FIXME: first we should search . and the directory the executable is in
 
10362
  shlibpath_var=PATH
 
10363
  ;;
 
10364
 
 
10365
darwin* | rhapsody*)
 
10366
  dynamic_linker="$host_os dyld"
 
10367
  version_type=darwin
 
10368
  need_lib_prefix=no
 
10369
  need_version=no
 
10370
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10371
  soname_spec='${libname}${release}${major}$shared_ext'
 
10372
  shlibpath_overrides_runpath=yes
 
10373
  shlibpath_var=DYLD_LIBRARY_PATH
 
10374
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10375
 
 
10376
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10377
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10378
  ;;
 
10379
 
 
10380
dgux*)
 
10381
  version_type=linux
 
10382
  need_lib_prefix=no
 
10383
  need_version=no
 
10384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10385
  soname_spec='${libname}${release}${shared_ext}$major'
 
10386
  shlibpath_var=LD_LIBRARY_PATH
 
10387
  ;;
 
10388
 
 
10389
freebsd1*)
 
10390
  dynamic_linker=no
 
10391
  ;;
 
10392
 
 
10393
freebsd* | dragonfly*)
 
10394
  # DragonFly does not have aout.  When/if they implement a new
 
10395
  # versioning mechanism, adjust this.
 
10396
  if test -x /usr/bin/objformat; then
 
10397
    objformat=`/usr/bin/objformat`
 
10398
  else
 
10399
    case $host_os in
 
10400
    freebsd[123]*) objformat=aout ;;
 
10401
    *) objformat=elf ;;
 
10402
    esac
 
10403
  fi
 
10404
  version_type=freebsd-$objformat
 
10405
  case $version_type in
 
10406
    freebsd-elf*)
 
10407
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10408
      need_version=no
 
10409
      need_lib_prefix=no
 
10410
      ;;
 
10411
    freebsd-*)
 
10412
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10413
      need_version=yes
 
10414
      ;;
 
10415
  esac
 
10416
  shlibpath_var=LD_LIBRARY_PATH
 
10417
  case $host_os in
 
10418
  freebsd2*)
 
10419
    shlibpath_overrides_runpath=yes
 
10420
    ;;
 
10421
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10422
    shlibpath_overrides_runpath=yes
 
10423
    hardcode_into_libs=yes
 
10424
    ;;
 
10425
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10426
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10427
    shlibpath_overrides_runpath=no
 
10428
    hardcode_into_libs=yes
 
10429
    ;;
 
10430
  *) # from 4.6 on, and DragonFly
 
10431
    shlibpath_overrides_runpath=yes
 
10432
    hardcode_into_libs=yes
 
10433
    ;;
 
10434
  esac
 
10435
  ;;
 
10436
 
 
10437
gnu*)
 
10438
  version_type=linux
 
10439
  need_lib_prefix=no
 
10440
  need_version=no
 
10441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10442
  soname_spec='${libname}${release}${shared_ext}$major'
 
10443
  shlibpath_var=LD_LIBRARY_PATH
 
10444
  hardcode_into_libs=yes
 
10445
  ;;
 
10446
 
 
10447
hpux9* | hpux10* | hpux11*)
 
10448
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10449
  # link against other versions.
 
10450
  version_type=sunos
 
10451
  need_lib_prefix=no
 
10452
  need_version=no
 
10453
  case $host_cpu in
 
10454
  ia64*)
 
10455
    shrext_cmds='.so'
 
10456
    hardcode_into_libs=yes
 
10457
    dynamic_linker="$host_os dld.so"
 
10458
    shlibpath_var=LD_LIBRARY_PATH
 
10459
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10460
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10461
    soname_spec='${libname}${release}${shared_ext}$major'
 
10462
    if test "X$HPUX_IA64_MODE" = X32; then
 
10463
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10464
    else
 
10465
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10466
    fi
 
10467
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10468
    ;;
 
10469
  hppa*64*)
 
10470
    shrext_cmds='.sl'
 
10471
    hardcode_into_libs=yes
 
10472
    dynamic_linker="$host_os dld.sl"
 
10473
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10474
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10475
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10476
    soname_spec='${libname}${release}${shared_ext}$major'
 
10477
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10478
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10479
    ;;
 
10480
  *)
 
10481
    shrext_cmds='.sl'
 
10482
    dynamic_linker="$host_os dld.sl"
 
10483
    shlibpath_var=SHLIB_PATH
 
10484
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10485
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10486
    soname_spec='${libname}${release}${shared_ext}$major'
 
10487
    ;;
 
10488
  esac
 
10489
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10490
  postinstall_cmds='chmod 555 $lib'
 
10491
  ;;
 
10492
 
 
10493
interix[3-9]*)
 
10494
  version_type=linux
 
10495
  need_lib_prefix=no
 
10496
  need_version=no
 
10497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10498
  soname_spec='${libname}${release}${shared_ext}$major'
 
10499
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10500
  shlibpath_var=LD_LIBRARY_PATH
 
10501
  shlibpath_overrides_runpath=no
 
10502
  hardcode_into_libs=yes
 
10503
  ;;
 
10504
 
 
10505
irix5* | irix6* | nonstopux*)
 
10506
  case $host_os in
 
10507
    nonstopux*) version_type=nonstopux ;;
 
10508
    *)
 
10509
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10510
                version_type=linux
 
10511
        else
 
10512
                version_type=irix
 
10513
        fi ;;
 
10514
  esac
 
10515
  need_lib_prefix=no
 
10516
  need_version=no
 
10517
  soname_spec='${libname}${release}${shared_ext}$major'
 
10518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10519
  case $host_os in
 
10520
  irix5* | nonstopux*)
 
10521
    libsuff= shlibsuff=
 
10522
    ;;
 
10523
  *)
 
10524
    case $LD in # libtool.m4 will add one of these switches to LD
 
10525
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10526
      libsuff= shlibsuff= libmagic=32-bit;;
 
10527
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10528
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10529
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10530
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10531
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10532
    esac
 
10533
    ;;
 
10534
  esac
 
10535
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10536
  shlibpath_overrides_runpath=no
 
10537
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10538
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10539
  hardcode_into_libs=yes
 
10540
  ;;
 
10541
 
 
10542
# No shared lib support for Linux oldld, aout, or coff.
 
10543
linux*oldld* | linux*aout* | linux*coff*)
 
10544
  dynamic_linker=no
 
10545
  ;;
 
10546
 
 
10547
# This must be Linux ELF.
 
10548
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10549
  version_type=linux
 
10550
  need_lib_prefix=no
 
10551
  need_version=no
 
10552
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10553
  soname_spec='${libname}${release}${shared_ext}$major'
 
10554
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10555
  shlibpath_var=LD_LIBRARY_PATH
 
10556
  shlibpath_overrides_runpath=no
 
10557
  # Some binutils ld are patched to set DT_RUNPATH
 
10558
  save_LDFLAGS=$LDFLAGS
 
10559
  save_libdir=$libdir
 
10560
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10561
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10562
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10563
/* end confdefs.h.  */
 
10564
 
 
10565
int
 
10566
main ()
 
10567
{
 
10568
 
 
10569
  ;
 
10570
  return 0;
 
10571
}
 
10572
_ACEOF
 
10573
if ac_fn_c_try_link "$LINENO"; then :
 
10574
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10575
  shlibpath_overrides_runpath=yes
 
10576
fi
 
10577
fi
 
10578
rm -f core conftest.err conftest.$ac_objext \
 
10579
    conftest$ac_exeext conftest.$ac_ext
 
10580
  LDFLAGS=$save_LDFLAGS
 
10581
  libdir=$save_libdir
 
10582
 
 
10583
  # This implies no fast_install, which is unacceptable.
 
10584
  # Some rework will be needed to allow for fast_install
 
10585
  # before this can be enabled.
 
10586
  hardcode_into_libs=yes
 
10587
 
 
10588
  # Append ld.so.conf contents to the search path
 
10589
  if test -f /etc/ld.so.conf; then
 
10590
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10591
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10592
  fi
 
10593
 
 
10594
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10595
  # powerpc, because MkLinux only supported shared libraries with the
 
10596
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10597
  # most powerpc-linux boxes support dynamic linking these days and
 
10598
  # people can always --disable-shared, the test was removed, and we
 
10599
  # assume the GNU/Linux dynamic linker is in use.
 
10600
  dynamic_linker='GNU/Linux ld.so'
 
10601
  ;;
 
10602
 
 
10603
netbsdelf*-gnu)
 
10604
  version_type=linux
 
10605
  need_lib_prefix=no
 
10606
  need_version=no
 
10607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10608
  soname_spec='${libname}${release}${shared_ext}$major'
 
10609
  shlibpath_var=LD_LIBRARY_PATH
 
10610
  shlibpath_overrides_runpath=no
 
10611
  hardcode_into_libs=yes
 
10612
  dynamic_linker='NetBSD ld.elf_so'
 
10613
  ;;
 
10614
 
 
10615
netbsd*)
 
10616
  version_type=sunos
 
10617
  need_lib_prefix=no
 
10618
  need_version=no
 
10619
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10620
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10621
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10622
    dynamic_linker='NetBSD (a.out) ld.so'
 
10623
  else
 
10624
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10625
    soname_spec='${libname}${release}${shared_ext}$major'
 
10626
    dynamic_linker='NetBSD ld.elf_so'
 
10627
  fi
 
10628
  shlibpath_var=LD_LIBRARY_PATH
 
10629
  shlibpath_overrides_runpath=yes
 
10630
  hardcode_into_libs=yes
 
10631
  ;;
 
10632
 
 
10633
newsos6)
 
10634
  version_type=linux
 
10635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10636
  shlibpath_var=LD_LIBRARY_PATH
 
10637
  shlibpath_overrides_runpath=yes
 
10638
  ;;
 
10639
 
 
10640
*nto* | *qnx*)
 
10641
  version_type=qnx
 
10642
  need_lib_prefix=no
 
10643
  need_version=no
 
10644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10645
  soname_spec='${libname}${release}${shared_ext}$major'
 
10646
  shlibpath_var=LD_LIBRARY_PATH
 
10647
  shlibpath_overrides_runpath=no
 
10648
  hardcode_into_libs=yes
 
10649
  dynamic_linker='ldqnx.so'
 
10650
  ;;
 
10651
 
 
10652
openbsd*)
 
10653
  version_type=sunos
 
10654
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10655
  need_lib_prefix=no
 
10656
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10657
  case $host_os in
 
10658
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10659
    *)                          need_version=no  ;;
 
10660
  esac
 
10661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10663
  shlibpath_var=LD_LIBRARY_PATH
 
10664
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10665
    case $host_os in
 
10666
      openbsd2.[89] | openbsd2.[89].*)
 
10667
        shlibpath_overrides_runpath=no
 
10668
        ;;
 
10669
      *)
 
10670
        shlibpath_overrides_runpath=yes
 
10671
        ;;
 
10672
      esac
 
10673
  else
 
10674
    shlibpath_overrides_runpath=yes
 
10675
  fi
 
10676
  ;;
 
10677
 
 
10678
os2*)
 
10679
  libname_spec='$name'
 
10680
  shrext_cmds=".dll"
 
10681
  need_lib_prefix=no
 
10682
  library_names_spec='$libname${shared_ext} $libname.a'
 
10683
  dynamic_linker='OS/2 ld.exe'
 
10684
  shlibpath_var=LIBPATH
 
10685
  ;;
 
10686
 
 
10687
osf3* | osf4* | osf5*)
 
10688
  version_type=osf
 
10689
  need_lib_prefix=no
 
10690
  need_version=no
 
10691
  soname_spec='${libname}${release}${shared_ext}$major'
 
10692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10693
  shlibpath_var=LD_LIBRARY_PATH
 
10694
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10695
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10696
  ;;
 
10697
 
 
10698
rdos*)
 
10699
  dynamic_linker=no
 
10700
  ;;
 
10701
 
 
10702
solaris*)
 
10703
  version_type=linux
 
10704
  need_lib_prefix=no
 
10705
  need_version=no
 
10706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10707
  soname_spec='${libname}${release}${shared_ext}$major'
 
10708
  shlibpath_var=LD_LIBRARY_PATH
 
10709
  shlibpath_overrides_runpath=yes
 
10710
  hardcode_into_libs=yes
 
10711
  # ldd complains unless libraries are executable
 
10712
  postinstall_cmds='chmod +x $lib'
 
10713
  ;;
 
10714
 
 
10715
sunos4*)
 
10716
  version_type=sunos
 
10717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10718
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10719
  shlibpath_var=LD_LIBRARY_PATH
 
10720
  shlibpath_overrides_runpath=yes
 
10721
  if test "$with_gnu_ld" = yes; then
 
10722
    need_lib_prefix=no
 
10723
  fi
 
10724
  need_version=yes
 
10725
  ;;
 
10726
 
 
10727
sysv4 | sysv4.3*)
 
10728
  version_type=linux
 
10729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10730
  soname_spec='${libname}${release}${shared_ext}$major'
 
10731
  shlibpath_var=LD_LIBRARY_PATH
 
10732
  case $host_vendor in
 
10733
    sni)
 
10734
      shlibpath_overrides_runpath=no
 
10735
      need_lib_prefix=no
 
10736
      runpath_var=LD_RUN_PATH
 
10737
      ;;
 
10738
    siemens)
 
10739
      need_lib_prefix=no
 
10740
      ;;
 
10741
    motorola)
 
10742
      need_lib_prefix=no
 
10743
      need_version=no
 
10744
      shlibpath_overrides_runpath=no
 
10745
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10746
      ;;
 
10747
  esac
 
10748
  ;;
 
10749
 
 
10750
sysv4*MP*)
 
10751
  if test -d /usr/nec ;then
 
10752
    version_type=linux
 
10753
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10754
    soname_spec='$libname${shared_ext}.$major'
 
10755
    shlibpath_var=LD_LIBRARY_PATH
 
10756
  fi
 
10757
  ;;
 
10758
 
 
10759
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10760
  version_type=freebsd-elf
 
10761
  need_lib_prefix=no
 
10762
  need_version=no
 
10763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10764
  soname_spec='${libname}${release}${shared_ext}$major'
 
10765
  shlibpath_var=LD_LIBRARY_PATH
 
10766
  shlibpath_overrides_runpath=yes
 
10767
  hardcode_into_libs=yes
 
10768
  if test "$with_gnu_ld" = yes; then
 
10769
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10770
  else
 
10771
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10772
    case $host_os in
 
10773
      sco3.2v5*)
 
10774
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10775
        ;;
 
10776
    esac
 
10777
  fi
 
10778
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10779
  ;;
 
10780
 
 
10781
tpf*)
 
10782
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10783
  version_type=linux
 
10784
  need_lib_prefix=no
 
10785
  need_version=no
 
10786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10787
  shlibpath_var=LD_LIBRARY_PATH
 
10788
  shlibpath_overrides_runpath=no
 
10789
  hardcode_into_libs=yes
 
10790
  ;;
 
10791
 
 
10792
uts4*)
 
10793
  version_type=linux
 
10794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10795
  soname_spec='${libname}${release}${shared_ext}$major'
 
10796
  shlibpath_var=LD_LIBRARY_PATH
 
10797
  ;;
 
10798
 
 
10799
*)
 
10800
  dynamic_linker=no
 
10801
  ;;
 
10802
esac
 
10803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10804
$as_echo "$dynamic_linker" >&6; }
 
10805
test "$dynamic_linker" = no && can_build_shared=no
 
10806
 
 
10807
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10808
if test "$GCC" = yes; then
 
10809
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10810
fi
 
10811
 
 
10812
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10813
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10814
fi
 
10815
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10816
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10817
fi
 
10818
 
 
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
 
 
10830
 
 
10831
 
 
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
 
 
10864
 
 
10865
 
 
10866
 
 
10867
 
 
10868
 
 
10869
 
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10906
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10907
hardcode_action=
 
10908
if test -n "$hardcode_libdir_flag_spec" ||
 
10909
   test -n "$runpath_var" ||
 
10910
   test "X$hardcode_automatic" = "Xyes" ; then
 
10911
 
 
10912
  # We can hardcode non-existent directories.
 
10913
  if test "$hardcode_direct" != no &&
 
10914
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10915
     # have to relink, otherwise we might link with an installed library
 
10916
     # when we should be linking with a yet-to-be-installed one
 
10917
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10918
     test "$hardcode_minus_L" != no; then
 
10919
    # Linking always hardcodes the temporary library directory.
 
10920
    hardcode_action=relink
 
10921
  else
 
10922
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10923
    hardcode_action=immediate
 
10924
  fi
 
10925
else
 
10926
  # We cannot hardcode anything, or else we can only hardcode existing
 
10927
  # directories.
 
10928
  hardcode_action=unsupported
 
10929
fi
 
10930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10931
$as_echo "$hardcode_action" >&6; }
 
10932
 
 
10933
if test "$hardcode_action" = relink ||
 
10934
   test "$inherit_rpath" = yes; then
 
10935
  # Fast installation is not supported
 
10936
  enable_fast_install=no
 
10937
elif test "$shlibpath_overrides_runpath" = yes ||
 
10938
     test "$enable_shared" = no; then
 
10939
  # Fast installation is not necessary
 
10940
  enable_fast_install=needless
 
10941
fi
 
10942
 
 
10943
 
 
10944
 
 
10945
 
 
10946
 
 
10947
 
 
10948
  if test "x$enable_dlopen" != xyes; then
 
10949
  enable_dlopen=unknown
 
10950
  enable_dlopen_self=unknown
 
10951
  enable_dlopen_self_static=unknown
 
10952
else
 
10953
  lt_cv_dlopen=no
 
10954
  lt_cv_dlopen_libs=
 
10955
 
 
10956
  case $host_os in
 
10957
  beos*)
 
10958
    lt_cv_dlopen="load_add_on"
 
10959
    lt_cv_dlopen_libs=
 
10960
    lt_cv_dlopen_self=yes
 
10961
    ;;
 
10962
 
 
10963
  mingw* | pw32* | cegcc*)
 
10964
    lt_cv_dlopen="LoadLibrary"
 
10965
    lt_cv_dlopen_libs=
 
10966
    ;;
 
10967
 
 
10968
  cygwin*)
 
10969
    lt_cv_dlopen="dlopen"
 
10970
    lt_cv_dlopen_libs=
 
10971
    ;;
 
10972
 
 
10973
  darwin*)
 
10974
  # if libdl is installed we need to link against it
 
10975
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10976
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10977
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10978
  $as_echo_n "(cached) " >&6
 
10979
else
 
10980
  ac_check_lib_save_LIBS=$LIBS
 
10981
LIBS="-ldl  $LIBS"
 
10982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10983
/* end confdefs.h.  */
 
10984
 
 
10985
/* Override any GCC internal prototype to avoid an error.
 
10986
   Use char because int might match the return type of a GCC
 
10987
   builtin and then its argument prototype would still apply.  */
 
10988
#ifdef __cplusplus
 
10989
extern "C"
 
10990
#endif
 
10991
char dlopen ();
 
10992
int
 
10993
main ()
 
10994
{
 
10995
return dlopen ();
 
10996
  ;
 
10997
  return 0;
 
10998
}
 
10999
_ACEOF
 
11000
if ac_fn_c_try_link "$LINENO"; then :
 
11001
  ac_cv_lib_dl_dlopen=yes
 
11002
else
 
11003
  ac_cv_lib_dl_dlopen=no
 
11004
fi
 
11005
rm -f core conftest.err conftest.$ac_objext \
 
11006
    conftest$ac_exeext conftest.$ac_ext
 
11007
LIBS=$ac_check_lib_save_LIBS
 
11008
fi
 
11009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11010
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11011
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11012
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11013
else
 
11014
 
 
11015
    lt_cv_dlopen="dyld"
 
11016
    lt_cv_dlopen_libs=
 
11017
    lt_cv_dlopen_self=yes
 
11018
 
 
11019
fi
 
11020
 
 
11021
    ;;
 
11022
 
 
11023
  *)
 
11024
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11025
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
11026
  lt_cv_dlopen="shl_load"
 
11027
else
 
11028
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11029
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11030
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
11031
  $as_echo_n "(cached) " >&6
 
11032
else
 
11033
  ac_check_lib_save_LIBS=$LIBS
 
11034
LIBS="-ldld  $LIBS"
 
11035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11036
/* end confdefs.h.  */
 
11037
 
 
11038
/* Override any GCC internal prototype to avoid an error.
 
11039
   Use char because int might match the return type of a GCC
 
11040
   builtin and then its argument prototype would still apply.  */
 
11041
#ifdef __cplusplus
 
11042
extern "C"
 
11043
#endif
 
11044
char shl_load ();
 
11045
int
 
11046
main ()
 
11047
{
 
11048
return shl_load ();
 
11049
  ;
 
11050
  return 0;
 
11051
}
 
11052
_ACEOF
 
11053
if ac_fn_c_try_link "$LINENO"; then :
 
11054
  ac_cv_lib_dld_shl_load=yes
 
11055
else
 
11056
  ac_cv_lib_dld_shl_load=no
 
11057
fi
 
11058
rm -f core conftest.err conftest.$ac_objext \
 
11059
    conftest$ac_exeext conftest.$ac_ext
 
11060
LIBS=$ac_check_lib_save_LIBS
 
11061
fi
 
11062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11063
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11064
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
11065
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11066
else
 
11067
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11068
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
11069
  lt_cv_dlopen="dlopen"
 
11070
else
 
11071
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11072
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11073
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11074
  $as_echo_n "(cached) " >&6
 
11075
else
 
11076
  ac_check_lib_save_LIBS=$LIBS
 
11077
LIBS="-ldl  $LIBS"
 
11078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11079
/* end confdefs.h.  */
 
11080
 
 
11081
/* Override any GCC internal prototype to avoid an error.
 
11082
   Use char because int might match the return type of a GCC
 
11083
   builtin and then its argument prototype would still apply.  */
 
11084
#ifdef __cplusplus
 
11085
extern "C"
 
11086
#endif
 
11087
char dlopen ();
 
11088
int
 
11089
main ()
 
11090
{
 
11091
return dlopen ();
 
11092
  ;
 
11093
  return 0;
 
11094
}
 
11095
_ACEOF
 
11096
if ac_fn_c_try_link "$LINENO"; then :
 
11097
  ac_cv_lib_dl_dlopen=yes
 
11098
else
 
11099
  ac_cv_lib_dl_dlopen=no
 
11100
fi
 
11101
rm -f core conftest.err conftest.$ac_objext \
 
11102
    conftest$ac_exeext conftest.$ac_ext
 
11103
LIBS=$ac_check_lib_save_LIBS
 
11104
fi
 
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11106
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11107
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11108
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11109
else
 
11110
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11111
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11112
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
11113
  $as_echo_n "(cached) " >&6
 
11114
else
 
11115
  ac_check_lib_save_LIBS=$LIBS
 
11116
LIBS="-lsvld  $LIBS"
 
11117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11118
/* end confdefs.h.  */
 
11119
 
 
11120
/* Override any GCC internal prototype to avoid an error.
 
11121
   Use char because int might match the return type of a GCC
 
11122
   builtin and then its argument prototype would still apply.  */
 
11123
#ifdef __cplusplus
 
11124
extern "C"
 
11125
#endif
 
11126
char dlopen ();
 
11127
int
 
11128
main ()
 
11129
{
 
11130
return dlopen ();
 
11131
  ;
 
11132
  return 0;
 
11133
}
 
11134
_ACEOF
 
11135
if ac_fn_c_try_link "$LINENO"; then :
 
11136
  ac_cv_lib_svld_dlopen=yes
 
11137
else
 
11138
  ac_cv_lib_svld_dlopen=no
 
11139
fi
 
11140
rm -f core conftest.err conftest.$ac_objext \
 
11141
    conftest$ac_exeext conftest.$ac_ext
 
11142
LIBS=$ac_check_lib_save_LIBS
 
11143
fi
 
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11145
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11146
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
11147
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11148
else
 
11149
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11150
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11151
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
11152
  $as_echo_n "(cached) " >&6
 
11153
else
 
11154
  ac_check_lib_save_LIBS=$LIBS
 
11155
LIBS="-ldld  $LIBS"
 
11156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11157
/* end confdefs.h.  */
 
11158
 
 
11159
/* Override any GCC internal prototype to avoid an error.
 
11160
   Use char because int might match the return type of a GCC
 
11161
   builtin and then its argument prototype would still apply.  */
 
11162
#ifdef __cplusplus
 
11163
extern "C"
 
11164
#endif
 
11165
char dld_link ();
 
11166
int
 
11167
main ()
 
11168
{
 
11169
return dld_link ();
 
11170
  ;
 
11171
  return 0;
 
11172
}
 
11173
_ACEOF
 
11174
if ac_fn_c_try_link "$LINENO"; then :
 
11175
  ac_cv_lib_dld_dld_link=yes
 
11176
else
 
11177
  ac_cv_lib_dld_dld_link=no
 
11178
fi
 
11179
rm -f core conftest.err conftest.$ac_objext \
 
11180
    conftest$ac_exeext conftest.$ac_ext
 
11181
LIBS=$ac_check_lib_save_LIBS
 
11182
fi
 
11183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11184
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11185
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
11186
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11187
fi
 
11188
 
 
11189
 
 
11190
fi
 
11191
 
 
11192
 
 
11193
fi
 
11194
 
 
11195
 
 
11196
fi
 
11197
 
 
11198
 
 
11199
fi
 
11200
 
 
11201
 
 
11202
fi
 
11203
 
 
11204
    ;;
 
11205
  esac
 
11206
 
 
11207
  if test "x$lt_cv_dlopen" != xno; then
 
11208
    enable_dlopen=yes
 
11209
  else
 
11210
    enable_dlopen=no
 
11211
  fi
 
11212
 
 
11213
  case $lt_cv_dlopen in
 
11214
  dlopen)
 
11215
    save_CPPFLAGS="$CPPFLAGS"
 
11216
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11217
 
 
11218
    save_LDFLAGS="$LDFLAGS"
 
11219
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11220
 
 
11221
    save_LIBS="$LIBS"
 
11222
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11223
 
 
11224
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11225
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11226
if test "${lt_cv_dlopen_self+set}" = set; then :
 
11227
  $as_echo_n "(cached) " >&6
 
11228
else
 
11229
          if test "$cross_compiling" = yes; then :
 
11230
  lt_cv_dlopen_self=cross
 
11231
else
 
11232
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11233
  lt_status=$lt_dlunknown
 
11234
  cat > conftest.$ac_ext <<_LT_EOF
 
11235
#line 11235 "configure"
 
11236
#include "confdefs.h"
 
11237
 
 
11238
#if HAVE_DLFCN_H
 
11239
#include <dlfcn.h>
 
11240
#endif
 
11241
 
 
11242
#include <stdio.h>
 
11243
 
 
11244
#ifdef RTLD_GLOBAL
 
11245
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11246
#else
 
11247
#  ifdef DL_GLOBAL
 
11248
#    define LT_DLGLOBAL         DL_GLOBAL
 
11249
#  else
 
11250
#    define LT_DLGLOBAL         0
 
11251
#  endif
 
11252
#endif
 
11253
 
 
11254
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11255
   find out it does not work in some platform. */
 
11256
#ifndef LT_DLLAZY_OR_NOW
 
11257
#  ifdef RTLD_LAZY
 
11258
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11259
#  else
 
11260
#    ifdef DL_LAZY
 
11261
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11262
#    else
 
11263
#      ifdef RTLD_NOW
 
11264
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11265
#      else
 
11266
#        ifdef DL_NOW
 
11267
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11268
#        else
 
11269
#          define LT_DLLAZY_OR_NOW      0
 
11270
#        endif
 
11271
#      endif
 
11272
#    endif
 
11273
#  endif
 
11274
#endif
 
11275
 
 
11276
void fnord() { int i=42;}
 
11277
int main ()
 
11278
{
 
11279
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11280
  int status = $lt_dlunknown;
 
11281
 
 
11282
  if (self)
 
11283
    {
 
11284
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11285
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11286
      /* dlclose (self); */
 
11287
    }
 
11288
  else
 
11289
    puts (dlerror ());
 
11290
 
 
11291
  return status;
 
11292
}
 
11293
_LT_EOF
 
11294
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11295
  (eval $ac_link) 2>&5
 
11296
  ac_status=$?
 
11297
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11298
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11299
    (./conftest; exit; ) >&5 2>/dev/null
 
11300
    lt_status=$?
 
11301
    case x$lt_status in
 
11302
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11303
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11304
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11305
    esac
 
11306
  else :
 
11307
    # compilation failed
 
11308
    lt_cv_dlopen_self=no
 
11309
  fi
 
11310
fi
 
11311
rm -fr conftest*
 
11312
 
 
11313
 
 
11314
fi
 
11315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11316
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11317
 
 
11318
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11319
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11320
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11321
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11322
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11323
  $as_echo_n "(cached) " >&6
 
11324
else
 
11325
          if test "$cross_compiling" = yes; then :
 
11326
  lt_cv_dlopen_self_static=cross
 
11327
else
 
11328
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11329
  lt_status=$lt_dlunknown
 
11330
  cat > conftest.$ac_ext <<_LT_EOF
 
11331
#line 11331 "configure"
 
11332
#include "confdefs.h"
 
11333
 
 
11334
#if HAVE_DLFCN_H
 
11335
#include <dlfcn.h>
 
11336
#endif
 
11337
 
 
11338
#include <stdio.h>
 
11339
 
 
11340
#ifdef RTLD_GLOBAL
 
11341
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11342
#else
 
11343
#  ifdef DL_GLOBAL
 
11344
#    define LT_DLGLOBAL         DL_GLOBAL
 
11345
#  else
 
11346
#    define LT_DLGLOBAL         0
 
11347
#  endif
 
11348
#endif
 
11349
 
 
11350
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11351
   find out it does not work in some platform. */
 
11352
#ifndef LT_DLLAZY_OR_NOW
 
11353
#  ifdef RTLD_LAZY
 
11354
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11355
#  else
 
11356
#    ifdef DL_LAZY
 
11357
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11358
#    else
 
11359
#      ifdef RTLD_NOW
 
11360
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11361
#      else
 
11362
#        ifdef DL_NOW
 
11363
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11364
#        else
 
11365
#          define LT_DLLAZY_OR_NOW      0
 
11366
#        endif
 
11367
#      endif
 
11368
#    endif
 
11369
#  endif
 
11370
#endif
 
11371
 
 
11372
void fnord() { int i=42;}
 
11373
int main ()
 
11374
{
 
11375
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11376
  int status = $lt_dlunknown;
 
11377
 
 
11378
  if (self)
 
11379
    {
 
11380
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11381
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11382
      /* dlclose (self); */
 
11383
    }
 
11384
  else
 
11385
    puts (dlerror ());
 
11386
 
 
11387
  return status;
 
11388
}
 
11389
_LT_EOF
 
11390
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11391
  (eval $ac_link) 2>&5
 
11392
  ac_status=$?
 
11393
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11394
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11395
    (./conftest; exit; ) >&5 2>/dev/null
 
11396
    lt_status=$?
 
11397
    case x$lt_status in
 
11398
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11399
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11400
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11401
    esac
 
11402
  else :
 
11403
    # compilation failed
 
11404
    lt_cv_dlopen_self_static=no
 
11405
  fi
 
11406
fi
 
11407
rm -fr conftest*
 
11408
 
 
11409
 
 
11410
fi
 
11411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11412
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11413
    fi
 
11414
 
 
11415
    CPPFLAGS="$save_CPPFLAGS"
 
11416
    LDFLAGS="$save_LDFLAGS"
 
11417
    LIBS="$save_LIBS"
 
11418
    ;;
 
11419
  esac
 
11420
 
 
11421
  case $lt_cv_dlopen_self in
 
11422
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11423
  *) enable_dlopen_self=unknown ;;
 
11424
  esac
 
11425
 
 
11426
  case $lt_cv_dlopen_self_static in
 
11427
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11428
  *) enable_dlopen_self_static=unknown ;;
 
11429
  esac
 
11430
fi
 
11431
 
 
11432
 
 
11433
 
 
11434
 
 
11435
 
 
11436
 
 
11437
 
 
11438
 
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
 
11447
 
 
11448
striplib=
 
11449
old_striplib=
 
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11451
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11452
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11453
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11454
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11456
$as_echo "yes" >&6; }
 
11457
else
 
11458
# FIXME - insert some real tests, host_os isn't really good enough
 
11459
  case $host_os in
 
11460
  darwin*)
 
11461
    if test -n "$STRIP" ; then
 
11462
      striplib="$STRIP -x"
 
11463
      old_striplib="$STRIP -S"
 
11464
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11465
$as_echo "yes" >&6; }
 
11466
    else
 
11467
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11468
$as_echo "no" >&6; }
 
11469
    fi
 
11470
    ;;
 
11471
  *)
 
11472
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11473
$as_echo "no" >&6; }
 
11474
    ;;
 
11475
  esac
 
11476
fi
 
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
 
11486
 
 
11487
 
 
11488
 
 
11489
  # Report which library types will actually be built
 
11490
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11491
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11493
$as_echo "$can_build_shared" >&6; }
 
11494
 
 
11495
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11496
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11497
  test "$can_build_shared" = "no" && enable_shared=no
 
11498
 
 
11499
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11500
  # are all built from PIC.
 
11501
  case $host_os in
 
11502
  aix3*)
 
11503
    test "$enable_shared" = yes && enable_static=no
 
11504
    if test -n "$RANLIB"; then
 
11505
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11506
      postinstall_cmds='$RANLIB $lib'
 
11507
    fi
 
11508
    ;;
 
11509
 
 
11510
  aix[4-9]*)
 
11511
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11512
      test "$enable_shared" = yes && enable_static=no
 
11513
    fi
 
11514
    ;;
 
11515
  esac
 
11516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11517
$as_echo "$enable_shared" >&6; }
 
11518
 
 
11519
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11520
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11521
  # Make sure either enable_shared or enable_static is yes.
 
11522
  test "$enable_shared" = yes || enable_static=yes
 
11523
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11524
$as_echo "$enable_static" >&6; }
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
fi
 
11530
ac_ext=c
 
11531
ac_cpp='$CPP $CPPFLAGS'
 
11532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11535
 
 
11536
CC="$lt_save_CC"
 
11537
 
 
11538
 
 
11539
ac_ext=cpp
 
11540
ac_cpp='$CXXCPP $CPPFLAGS'
 
11541
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11542
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11543
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11544
 
 
11545
archive_cmds_need_lc_CXX=no
 
11546
allow_undefined_flag_CXX=
 
11547
always_export_symbols_CXX=no
 
11548
archive_expsym_cmds_CXX=
 
11549
compiler_needs_object_CXX=no
 
11550
export_dynamic_flag_spec_CXX=
 
11551
hardcode_direct_CXX=no
 
11552
hardcode_direct_absolute_CXX=no
 
11553
hardcode_libdir_flag_spec_CXX=
 
11554
hardcode_libdir_flag_spec_ld_CXX=
 
11555
hardcode_libdir_separator_CXX=
 
11556
hardcode_minus_L_CXX=no
 
11557
hardcode_shlibpath_var_CXX=unsupported
 
11558
hardcode_automatic_CXX=no
 
11559
inherit_rpath_CXX=no
 
11560
module_cmds_CXX=
 
11561
module_expsym_cmds_CXX=
 
11562
link_all_deplibs_CXX=unknown
 
11563
old_archive_cmds_CXX=$old_archive_cmds
 
11564
no_undefined_flag_CXX=
 
11565
whole_archive_flag_spec_CXX=
 
11566
enable_shared_with_static_runtimes_CXX=no
 
11567
 
 
11568
# Source file extension for C++ test sources.
 
11569
ac_ext=cpp
 
11570
 
 
11571
# Object file extension for compiled C++ test sources.
 
11572
objext=o
 
11573
objext_CXX=$objext
 
11574
 
 
11575
# No sense in running all these tests if we already determined that
 
11576
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11577
# are currently assumed to apply to all compilers on this platform,
 
11578
# and will be corrupted by setting them based on a non-working compiler.
 
11579
if test "$_lt_caught_CXX_error" != yes; then
 
11580
  # Code to be used in simple compile tests
 
11581
  lt_simple_compile_test_code="int some_variable = 0;"
 
11582
 
 
11583
  # Code to be used in simple link tests
 
11584
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11585
 
 
11586
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11587
 
 
11588
 
 
11589
 
 
11590
 
 
11591
 
 
11592
 
 
11593
# If no C compiler was specified, use CC.
 
11594
LTCC=${LTCC-"$CC"}
 
11595
 
 
11596
# If no C compiler flags were specified, use CFLAGS.
 
11597
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11598
 
 
11599
# Allow CC to be a program name with arguments.
 
11600
compiler=$CC
 
11601
 
 
11602
 
 
11603
  # save warnings/boilerplate of simple test code
 
11604
  ac_outfile=conftest.$ac_objext
 
11605
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11606
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11607
_lt_compiler_boilerplate=`cat conftest.err`
 
11608
$RM conftest*
 
11609
 
 
11610
  ac_outfile=conftest.$ac_objext
 
11611
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11612
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11613
_lt_linker_boilerplate=`cat conftest.err`
 
11614
$RM -r conftest*
 
11615
 
 
11616
 
 
11617
  # Allow CC to be a program name with arguments.
 
11618
  lt_save_CC=$CC
 
11619
  lt_save_LD=$LD
 
11620
  lt_save_GCC=$GCC
 
11621
  GCC=$GXX
 
11622
  lt_save_with_gnu_ld=$with_gnu_ld
 
11623
  lt_save_path_LD=$lt_cv_path_LD
 
11624
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11625
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11626
  else
 
11627
    $as_unset lt_cv_prog_gnu_ld
 
11628
  fi
 
11629
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
11630
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
11631
  else
 
11632
    $as_unset lt_cv_path_LD
 
11633
  fi
 
11634
  test -z "${LDCXX+set}" || LD=$LDCXX
 
11635
  CC=${CXX-"c++"}
 
11636
  compiler=$CC
 
11637
  compiler_CXX=$CC
 
11638
  for cc_temp in $compiler""; do
 
11639
  case $cc_temp in
 
11640
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11641
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11642
    \-*) ;;
 
11643
    *) break;;
 
11644
  esac
 
11645
done
 
11646
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11647
 
 
11648
 
 
11649
  if test -n "$compiler"; then
 
11650
    # We don't want -fno-exception when compiling C++ code, so set the
 
11651
    # no_builtin_flag separately
 
11652
    if test "$GXX" = yes; then
 
11653
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11654
    else
 
11655
      lt_prog_compiler_no_builtin_flag_CXX=
 
11656
    fi
 
11657
 
 
11658
    if test "$GXX" = yes; then
 
11659
      # Set up default GNU C++ configuration
 
11660
 
 
11661
 
 
11662
 
 
11663
# Check whether --with-gnu-ld was given.
 
11664
if test "${with_gnu_ld+set}" = set; then :
 
11665
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11666
else
 
11667
  with_gnu_ld=no
 
11668
fi
 
11669
 
 
11670
ac_prog=ld
 
11671
if test "$GCC" = yes; then
 
11672
  # Check if gcc -print-prog-name=ld gives a path.
 
11673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
11674
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11675
  case $host in
 
11676
  *-*-mingw*)
 
11677
    # gcc leaves a trailing carriage return which upsets mingw
 
11678
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11679
  *)
 
11680
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11681
  esac
 
11682
  case $ac_prog in
 
11683
    # Accept absolute paths.
 
11684
    [\\/]* | ?:[\\/]*)
 
11685
      re_direlt='/[^/][^/]*/\.\./'
 
11686
      # Canonicalize the pathname of ld
 
11687
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
11688
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
11689
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
11690
      done
 
11691
      test -z "$LD" && LD="$ac_prog"
 
11692
      ;;
 
11693
  "")
 
11694
    # If it fails, then pretend we aren't using GCC.
 
11695
    ac_prog=ld
 
11696
    ;;
 
11697
  *)
 
11698
    # If it is relative, then search for the first ld in PATH.
 
11699
    with_gnu_ld=unknown
 
11700
    ;;
 
11701
  esac
 
11702
elif test "$with_gnu_ld" = yes; then
 
11703
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
11704
$as_echo_n "checking for GNU ld... " >&6; }
 
11705
else
 
11706
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
11707
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11708
fi
 
11709
if test "${lt_cv_path_LD+set}" = set; then :
 
11710
  $as_echo_n "(cached) " >&6
 
11711
else
 
11712
  if test -z "$LD"; then
 
11713
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11714
  for ac_dir in $PATH; do
 
11715
    IFS="$lt_save_ifs"
 
11716
    test -z "$ac_dir" && ac_dir=.
 
11717
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11718
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11719
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11720
      # but apparently some variants of GNU ld only accept -v.
 
11721
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11722
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11723
      *GNU* | *'with BFD'*)
 
11724
        test "$with_gnu_ld" != no && break
 
11725
        ;;
 
11726
      *)
 
11727
        test "$with_gnu_ld" != yes && break
 
11728
        ;;
 
11729
      esac
 
11730
    fi
 
11731
  done
 
11732
  IFS="$lt_save_ifs"
 
11733
else
 
11734
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11735
fi
 
11736
fi
 
11737
 
 
11738
LD="$lt_cv_path_LD"
 
11739
if test -n "$LD"; then
 
11740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
11741
$as_echo "$LD" >&6; }
 
11742
else
 
11743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11744
$as_echo "no" >&6; }
 
11745
fi
 
11746
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
11747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
11748
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11749
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
11750
  $as_echo_n "(cached) " >&6
 
11751
else
 
11752
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11753
case `$LD -v 2>&1 </dev/null` in
 
11754
*GNU* | *'with BFD'*)
 
11755
  lt_cv_prog_gnu_ld=yes
 
11756
  ;;
 
11757
*)
 
11758
  lt_cv_prog_gnu_ld=no
 
11759
  ;;
 
11760
esac
 
11761
fi
 
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
11763
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11764
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11765
 
 
11766
 
 
11767
 
 
11768
 
 
11769
 
 
11770
 
 
11771
 
 
11772
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11773
      # archiving commands below assume that GNU ld is being used.
 
11774
      if test "$with_gnu_ld" = yes; then
 
11775
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11776
        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'
 
11777
 
 
11778
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11779
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11780
 
 
11781
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
11782
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11783
        #     investigate it a little bit more. (MM)
 
11784
        wlarc='${wl}'
 
11785
 
 
11786
        # ancient GNU ld didn't support --whole-archive et. al.
 
11787
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
11788
          $GREP 'no-whole-archive' > /dev/null; then
 
11789
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11790
        else
 
11791
          whole_archive_flag_spec_CXX=
 
11792
        fi
 
11793
      else
 
11794
        with_gnu_ld=no
 
11795
        wlarc=
 
11796
 
 
11797
        # A generic and very simple default shared library creation
 
11798
        # command for GNU C++ for the case where it uses the native
 
11799
        # linker, instead of GNU ld.  If possible, this setting should
 
11800
        # overridden to take advantage of the native linker features on
 
11801
        # the platform it is being used on.
 
11802
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11803
      fi
 
11804
 
 
11805
      # Commands to make compiler produce verbose output that lists
 
11806
      # what "hidden" libraries, object files and flags are used when
 
11807
      # linking a shared library.
 
11808
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
11809
 
 
11810
    else
 
11811
      GXX=no
 
11812
      with_gnu_ld=no
 
11813
      wlarc=
 
11814
    fi
 
11815
 
 
11816
    # PORTME: fill in a description of your system's C++ link characteristics
 
11817
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11818
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11819
    ld_shlibs_CXX=yes
 
11820
    case $host_os in
 
11821
      aix3*)
 
11822
        # FIXME: insert proper C++ library support
 
11823
        ld_shlibs_CXX=no
 
11824
        ;;
 
11825
      aix[4-9]*)
 
11826
        if test "$host_cpu" = ia64; then
 
11827
          # On IA64, the linker does run time linking by default, so we don't
 
11828
          # have to do anything special.
 
11829
          aix_use_runtimelinking=no
 
11830
          exp_sym_flag='-Bexport'
 
11831
          no_entry_flag=""
 
11832
        else
 
11833
          aix_use_runtimelinking=no
 
11834
 
 
11835
          # Test if we are trying to use run time linking or normal
 
11836
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11837
          # need to do runtime linking.
 
11838
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11839
            for ld_flag in $LDFLAGS; do
 
11840
              case $ld_flag in
 
11841
              *-brtl*)
 
11842
                aix_use_runtimelinking=yes
 
11843
                break
 
11844
                ;;
 
11845
              esac
 
11846
            done
 
11847
            ;;
 
11848
          esac
 
11849
 
 
11850
          exp_sym_flag='-bexport'
 
11851
          no_entry_flag='-bnoentry'
 
11852
        fi
 
11853
 
 
11854
        # When large executables or shared objects are built, AIX ld can
 
11855
        # have problems creating the table of contents.  If linking a library
 
11856
        # or program results in "error TOC overflow" add -mminimal-toc to
 
11857
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11858
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11859
 
 
11860
        archive_cmds_CXX=''
 
11861
        hardcode_direct_CXX=yes
 
11862
        hardcode_direct_absolute_CXX=yes
 
11863
        hardcode_libdir_separator_CXX=':'
 
11864
        link_all_deplibs_CXX=yes
 
11865
        file_list_spec_CXX='${wl}-f,'
 
11866
 
 
11867
        if test "$GXX" = yes; then
 
11868
          case $host_os in aix4.[012]|aix4.[012].*)
 
11869
          # We only want to do this on AIX 4.2 and lower, the check
 
11870
          # below for broken collect2 doesn't work under 4.3+
 
11871
          collect2name=`${CC} -print-prog-name=collect2`
 
11872
          if test -f "$collect2name" &&
 
11873
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
11874
          then
 
11875
            # We have reworked collect2
 
11876
            :
 
11877
          else
 
11878
            # We have old collect2
 
11879
            hardcode_direct_CXX=unsupported
 
11880
            # It fails to find uninstalled libraries when the uninstalled
 
11881
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
11882
            # to unsupported forces relinking
 
11883
            hardcode_minus_L_CXX=yes
 
11884
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11885
            hardcode_libdir_separator_CXX=
 
11886
          fi
 
11887
          esac
 
11888
          shared_flag='-shared'
 
11889
          if test "$aix_use_runtimelinking" = yes; then
 
11890
            shared_flag="$shared_flag "'${wl}-G'
 
11891
          fi
 
11892
        else
 
11893
          # not using gcc
 
11894
          if test "$host_cpu" = ia64; then
 
11895
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11896
          # chokes on -Wl,-G. The following line is correct:
 
11897
          shared_flag='-G'
 
11898
          else
 
11899
            if test "$aix_use_runtimelinking" = yes; then
 
11900
              shared_flag='${wl}-G'
 
11901
            else
 
11902
              shared_flag='${wl}-bM:SRE'
 
11903
            fi
 
11904
          fi
 
11905
        fi
 
11906
 
 
11907
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
11908
        # It seems that -bexpall does not export symbols beginning with
 
11909
        # underscore (_), so it is better to generate a list of symbols to
 
11910
        # export.
 
11911
        always_export_symbols_CXX=yes
 
11912
        if test "$aix_use_runtimelinking" = yes; then
 
11913
          # Warning - without using the other runtime loading flags (-brtl),
 
11914
          # -berok will link without error, but may produce a broken library.
 
11915
          allow_undefined_flag_CXX='-berok'
 
11916
          # Determine the default libpath from the value encoded in an empty
 
11917
          # executable.
 
11918
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11919
/* end confdefs.h.  */
 
11920
 
 
11921
int
 
11922
main ()
 
11923
{
 
11924
 
 
11925
  ;
 
11926
  return 0;
 
11927
}
 
11928
_ACEOF
 
11929
if ac_fn_cxx_try_link "$LINENO"; then :
 
11930
 
 
11931
lt_aix_libpath_sed='
 
11932
    /Import File Strings/,/^$/ {
 
11933
        /^0/ {
 
11934
            s/^0  *\(.*\)$/\1/
 
11935
            p
 
11936
        }
 
11937
    }'
 
11938
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11939
# Check for a 64-bit object if we didn't find anything.
 
11940
if test -z "$aix_libpath"; then
 
11941
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11942
fi
 
11943
fi
 
11944
rm -f core conftest.err conftest.$ac_objext \
 
11945
    conftest$ac_exeext conftest.$ac_ext
 
11946
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11947
 
 
11948
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11949
 
 
11950
          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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11951
        else
 
11952
          if test "$host_cpu" = ia64; then
 
11953
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11954
            allow_undefined_flag_CXX="-z nodefs"
 
11955
            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"
 
11956
          else
 
11957
            # Determine the default libpath from the value encoded in an
 
11958
            # empty executable.
 
11959
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11960
/* end confdefs.h.  */
 
11961
 
 
11962
int
 
11963
main ()
 
11964
{
 
11965
 
 
11966
  ;
 
11967
  return 0;
 
11968
}
 
11969
_ACEOF
 
11970
if ac_fn_cxx_try_link "$LINENO"; then :
 
11971
 
 
11972
lt_aix_libpath_sed='
 
11973
    /Import File Strings/,/^$/ {
 
11974
        /^0/ {
 
11975
            s/^0  *\(.*\)$/\1/
 
11976
            p
 
11977
        }
 
11978
    }'
 
11979
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11980
# Check for a 64-bit object if we didn't find anything.
 
11981
if test -z "$aix_libpath"; then
 
11982
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11983
fi
 
11984
fi
 
11985
rm -f core conftest.err conftest.$ac_objext \
 
11986
    conftest$ac_exeext conftest.$ac_ext
 
11987
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11988
 
 
11989
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11990
            # Warning - without using the other run time loading flags,
 
11991
            # -berok will link without error, but may produce a broken library.
 
11992
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
11993
            allow_undefined_flag_CXX=' ${wl}-berok'
 
11994
            # Exported symbols can be pulled into shared objects from archives
 
11995
            whole_archive_flag_spec_CXX='$convenience'
 
11996
            archive_cmds_need_lc_CXX=yes
 
11997
            # This is similar to how AIX traditionally builds its shared
 
11998
            # libraries.
 
11999
            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'
 
12000
          fi
 
12001
        fi
 
12002
        ;;
 
12003
 
 
12004
      beos*)
 
12005
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12006
          allow_undefined_flag_CXX=unsupported
 
12007
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12008
          # support --undefined.  This deserves some investigation.  FIXME
 
12009
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12010
        else
 
12011
          ld_shlibs_CXX=no
 
12012
        fi
 
12013
        ;;
 
12014
 
 
12015
      chorus*)
 
12016
        case $cc_basename in
 
12017
          *)
 
12018
          # FIXME: insert proper C++ library support
 
12019
          ld_shlibs_CXX=no
 
12020
          ;;
 
12021
        esac
 
12022
        ;;
 
12023
 
 
12024
      cygwin* | mingw* | pw32* | cegcc*)
 
12025
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12026
        # as there is no search path for DLLs.
 
12027
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12028
        allow_undefined_flag_CXX=unsupported
 
12029
        always_export_symbols_CXX=no
 
12030
        enable_shared_with_static_runtimes_CXX=yes
 
12031
 
 
12032
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12033
          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'
 
12034
          # If the export-symbols file already is a .def file (1st line
 
12035
          # is EXPORTS), use it as is; otherwise, prepend...
 
12036
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12037
            cp $export_symbols $output_objdir/$soname.def;
 
12038
          else
 
12039
            echo EXPORTS > $output_objdir/$soname.def;
 
12040
            cat $export_symbols >> $output_objdir/$soname.def;
 
12041
          fi~
 
12042
          $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'
 
12043
        else
 
12044
          ld_shlibs_CXX=no
 
12045
        fi
 
12046
        ;;
 
12047
      darwin* | rhapsody*)
 
12048
 
 
12049
 
 
12050
  archive_cmds_need_lc_CXX=no
 
12051
  hardcode_direct_CXX=no
 
12052
  hardcode_automatic_CXX=yes
 
12053
  hardcode_shlibpath_var_CXX=unsupported
 
12054
  whole_archive_flag_spec_CXX=''
 
12055
  link_all_deplibs_CXX=yes
 
12056
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12057
  case $cc_basename in
 
12058
     ifort*) _lt_dar_can_shared=yes ;;
 
12059
     *) _lt_dar_can_shared=$GCC ;;
 
12060
  esac
 
12061
  if test "$_lt_dar_can_shared" = "yes"; then
 
12062
    output_verbose_link_cmd=echo
 
12063
    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}"
 
12064
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12065
    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}"
 
12066
    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}"
 
12067
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12068
      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}"
 
12069
      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}"
 
12070
    fi
 
12071
 
 
12072
  else
 
12073
  ld_shlibs_CXX=no
 
12074
  fi
 
12075
 
 
12076
        ;;
 
12077
 
 
12078
      dgux*)
 
12079
        case $cc_basename in
 
12080
          ec++*)
 
12081
            # FIXME: insert proper C++ library support
 
12082
            ld_shlibs_CXX=no
 
12083
            ;;
 
12084
          ghcx*)
 
12085
            # Green Hills C++ Compiler
 
12086
            # FIXME: insert proper C++ library support
 
12087
            ld_shlibs_CXX=no
 
12088
            ;;
 
12089
          *)
 
12090
            # FIXME: insert proper C++ library support
 
12091
            ld_shlibs_CXX=no
 
12092
            ;;
 
12093
        esac
 
12094
        ;;
 
12095
 
 
12096
      freebsd[12]*)
 
12097
        # C++ shared libraries reported to be fairly broken before
 
12098
        # switch to ELF
 
12099
        ld_shlibs_CXX=no
 
12100
        ;;
 
12101
 
 
12102
      freebsd-elf*)
 
12103
        archive_cmds_need_lc_CXX=no
 
12104
        ;;
 
12105
 
 
12106
      freebsd* | dragonfly*)
 
12107
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12108
        # conventions
 
12109
        ld_shlibs_CXX=yes
 
12110
        ;;
 
12111
 
 
12112
      gnu*)
 
12113
        ;;
 
12114
 
 
12115
      hpux9*)
 
12116
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12117
        hardcode_libdir_separator_CXX=:
 
12118
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12119
        hardcode_direct_CXX=yes
 
12120
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12121
                                             # but as the default
 
12122
                                             # location of the library.
 
12123
 
 
12124
        case $cc_basename in
 
12125
          CC*)
 
12126
            # FIXME: insert proper C++ library support
 
12127
            ld_shlibs_CXX=no
 
12128
            ;;
 
12129
          aCC*)
 
12130
            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'
 
12131
            # Commands to make compiler produce verbose output that lists
 
12132
            # what "hidden" libraries, object files and flags are used when
 
12133
            # linking a shared library.
 
12134
            #
 
12135
            # There doesn't appear to be a way to prevent this compiler from
 
12136
            # explicitly linking system object files so we need to strip them
 
12137
            # from the output so that they don't get included in the library
 
12138
            # dependencies.
 
12139
            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; $ECHO "X$list" | $Xsed'
 
12140
            ;;
 
12141
          *)
 
12142
            if test "$GXX" = yes; then
 
12143
              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'
 
12144
            else
 
12145
              # FIXME: insert proper C++ library support
 
12146
              ld_shlibs_CXX=no
 
12147
            fi
 
12148
            ;;
 
12149
        esac
 
12150
        ;;
 
12151
 
 
12152
      hpux10*|hpux11*)
 
12153
        if test $with_gnu_ld = no; then
 
12154
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12155
          hardcode_libdir_separator_CXX=:
 
12156
 
 
12157
          case $host_cpu in
 
12158
            hppa*64*|ia64*)
 
12159
              ;;
 
12160
            *)
 
12161
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12162
              ;;
 
12163
          esac
 
12164
        fi
 
12165
        case $host_cpu in
 
12166
          hppa*64*|ia64*)
 
12167
            hardcode_direct_CXX=no
 
12168
            hardcode_shlibpath_var_CXX=no
 
12169
            ;;
 
12170
          *)
 
12171
            hardcode_direct_CXX=yes
 
12172
            hardcode_direct_absolute_CXX=yes
 
12173
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12174
                                                 # but as the default
 
12175
                                                 # location of the library.
 
12176
            ;;
 
12177
        esac
 
12178
 
 
12179
        case $cc_basename in
 
12180
          CC*)
 
12181
            # FIXME: insert proper C++ library support
 
12182
            ld_shlibs_CXX=no
 
12183
            ;;
 
12184
          aCC*)
 
12185
            case $host_cpu in
 
12186
              hppa*64*)
 
12187
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12188
                ;;
 
12189
              ia64*)
 
12190
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12191
                ;;
 
12192
              *)
 
12193
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12194
                ;;
 
12195
            esac
 
12196
            # Commands to make compiler produce verbose output that lists
 
12197
            # what "hidden" libraries, object files and flags are used when
 
12198
            # linking a shared library.
 
12199
            #
 
12200
            # There doesn't appear to be a way to prevent this compiler from
 
12201
            # explicitly linking system object files so we need to strip them
 
12202
            # from the output so that they don't get included in the library
 
12203
            # dependencies.
 
12204
            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; $ECHO "X$list" | $Xsed'
 
12205
            ;;
 
12206
          *)
 
12207
            if test "$GXX" = yes; then
 
12208
              if test $with_gnu_ld = no; then
 
12209
                case $host_cpu in
 
12210
                  hppa*64*)
 
12211
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12212
                    ;;
 
12213
                  ia64*)
 
12214
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12215
                    ;;
 
12216
                  *)
 
12217
                    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'
 
12218
                    ;;
 
12219
                esac
 
12220
              fi
 
12221
            else
 
12222
              # FIXME: insert proper C++ library support
 
12223
              ld_shlibs_CXX=no
 
12224
            fi
 
12225
            ;;
 
12226
        esac
 
12227
        ;;
 
12228
 
 
12229
      interix[3-9]*)
 
12230
        hardcode_direct_CXX=no
 
12231
        hardcode_shlibpath_var_CXX=no
 
12232
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12233
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12234
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12235
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12236
        # default) and relocated if they conflict, which is a slow very memory
 
12237
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12238
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12239
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12240
        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'
 
12241
        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'
 
12242
        ;;
 
12243
      irix5* | irix6*)
 
12244
        case $cc_basename in
 
12245
          CC*)
 
12246
            # SGI C++
 
12247
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12248
 
 
12249
            # Archives containing C++ object files must be created using
 
12250
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12251
            # necessary to make sure instantiated templates are included
 
12252
            # in the archive.
 
12253
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12254
            ;;
 
12255
          *)
 
12256
            if test "$GXX" = yes; then
 
12257
              if test "$with_gnu_ld" = no; then
 
12258
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12259
              else
 
12260
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
12261
              fi
 
12262
            fi
 
12263
            link_all_deplibs_CXX=yes
 
12264
            ;;
 
12265
        esac
 
12266
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12267
        hardcode_libdir_separator_CXX=:
 
12268
        inherit_rpath_CXX=yes
 
12269
        ;;
 
12270
 
 
12271
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12272
        case $cc_basename in
 
12273
          KCC*)
 
12274
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12275
 
 
12276
            # KCC will only create a shared library if the output file
 
12277
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12278
            # to its proper name (with version) after linking.
 
12279
            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'
 
12280
            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'
 
12281
            # Commands to make compiler produce verbose output that lists
 
12282
            # what "hidden" libraries, object files and flags are used when
 
12283
            # linking a shared library.
 
12284
            #
 
12285
            # There doesn't appear to be a way to prevent this compiler from
 
12286
            # explicitly linking system object files so we need to strip them
 
12287
            # from the output so that they don't get included in the library
 
12288
            # dependencies.
 
12289
            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; $ECHO "X$list" | $Xsed'
 
12290
 
 
12291
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12292
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12293
 
 
12294
            # Archives containing C++ object files must be created using
 
12295
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12296
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12297
            ;;
 
12298
          icpc* | ecpc* )
 
12299
            # Intel C++
 
12300
            with_gnu_ld=yes
 
12301
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12302
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12303
            # earlier do not add the objects themselves.
 
12304
            case `$CC -V 2>&1` in
 
12305
              *"Version 7."*)
 
12306
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12307
                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'
 
12308
                ;;
 
12309
              *)  # Version 8.0 or newer
 
12310
                tmp_idyn=
 
12311
                case $host_cpu in
 
12312
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12313
                esac
 
12314
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12315
                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'
 
12316
                ;;
 
12317
            esac
 
12318
            archive_cmds_need_lc_CXX=no
 
12319
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12320
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12321
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12322
            ;;
 
12323
          pgCC* | pgcpp*)
 
12324
            # Portland Group C++ compiler
 
12325
            case `$CC -V` in
 
12326
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
12327
              prelink_cmds_CXX='tpldir=Template.dir~
 
12328
                rm -rf $tpldir~
 
12329
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12330
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
12331
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12332
                rm -rf $tpldir~
 
12333
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12334
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
12335
                $RANLIB $oldlib'
 
12336
              archive_cmds_CXX='tpldir=Template.dir~
 
12337
                rm -rf $tpldir~
 
12338
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12339
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12340
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12341
                rm -rf $tpldir~
 
12342
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12343
                $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'
 
12344
              ;;
 
12345
            *) # Version 6 will use weak symbols
 
12346
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12347
              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'
 
12348
              ;;
 
12349
            esac
 
12350
 
 
12351
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12352
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12353
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12354
            ;;
 
12355
          cxx*)
 
12356
            # Compaq C++
 
12357
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12358
            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'
 
12359
 
 
12360
            runpath_var=LD_RUN_PATH
 
12361
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12362
            hardcode_libdir_separator_CXX=:
 
12363
 
 
12364
            # Commands to make compiler produce verbose output that lists
 
12365
            # what "hidden" libraries, object files and flags are used when
 
12366
            # linking a shared library.
 
12367
            #
 
12368
            # There doesn't appear to be a way to prevent this compiler from
 
12369
            # explicitly linking system object files so we need to strip them
 
12370
            # from the output so that they don't get included in the library
 
12371
            # dependencies.
 
12372
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12373
            ;;
 
12374
          xl*)
 
12375
            # IBM XL 8.0 on PPC, with GNU ld
 
12376
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12377
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12378
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12379
            if test "x$supports_anon_versioning" = xyes; then
 
12380
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12381
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12382
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12383
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12384
            fi
 
12385
            ;;
 
12386
          *)
 
12387
            case `$CC -V 2>&1 | sed 5q` in
 
12388
            *Sun\ C*)
 
12389
              # Sun C++ 5.9
 
12390
              no_undefined_flag_CXX=' -zdefs'
 
12391
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12392
              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'
 
12393
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12394
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12395
              compiler_needs_object_CXX=yes
 
12396
 
 
12397
              # Not sure whether something based on
 
12398
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12399
              # would be better.
 
12400
              output_verbose_link_cmd='echo'
 
12401
 
 
12402
              # Archives containing C++ object files must be created using
 
12403
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12404
              # necessary to make sure instantiated templates are included
 
12405
              # in the archive.
 
12406
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12407
              ;;
 
12408
            esac
 
12409
            ;;
 
12410
        esac
 
12411
        ;;
 
12412
 
 
12413
      lynxos*)
 
12414
        # FIXME: insert proper C++ library support
 
12415
        ld_shlibs_CXX=no
 
12416
        ;;
 
12417
 
 
12418
      m88k*)
 
12419
        # FIXME: insert proper C++ library support
 
12420
        ld_shlibs_CXX=no
 
12421
        ;;
 
12422
 
 
12423
      mvs*)
 
12424
        case $cc_basename in
 
12425
          cxx*)
 
12426
            # FIXME: insert proper C++ library support
 
12427
            ld_shlibs_CXX=no
 
12428
            ;;
 
12429
          *)
 
12430
            # FIXME: insert proper C++ library support
 
12431
            ld_shlibs_CXX=no
 
12432
            ;;
 
12433
        esac
 
12434
        ;;
 
12435
 
 
12436
      netbsd*)
 
12437
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12438
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12439
          wlarc=
 
12440
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12441
          hardcode_direct_CXX=yes
 
12442
          hardcode_shlibpath_var_CXX=no
 
12443
        fi
 
12444
        # Workaround some broken pre-1.5 toolchains
 
12445
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12446
        ;;
 
12447
 
 
12448
      *nto* | *qnx*)
 
12449
        ld_shlibs_CXX=yes
 
12450
        ;;
 
12451
 
 
12452
      openbsd2*)
 
12453
        # C++ shared libraries are fairly broken
 
12454
        ld_shlibs_CXX=no
 
12455
        ;;
 
12456
 
 
12457
      openbsd*)
 
12458
        if test -f /usr/libexec/ld.so; then
 
12459
          hardcode_direct_CXX=yes
 
12460
          hardcode_shlibpath_var_CXX=no
 
12461
          hardcode_direct_absolute_CXX=yes
 
12462
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12463
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12464
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12465
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12466
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12467
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12468
          fi
 
12469
          output_verbose_link_cmd=echo
 
12470
        else
 
12471
          ld_shlibs_CXX=no
 
12472
        fi
 
12473
        ;;
 
12474
 
 
12475
      osf3* | osf4* | osf5*)
 
12476
        case $cc_basename in
 
12477
          KCC*)
 
12478
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12479
 
 
12480
            # KCC will only create a shared library if the output file
 
12481
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12482
            # to its proper name (with version) after linking.
 
12483
            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'
 
12484
 
 
12485
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12486
            hardcode_libdir_separator_CXX=:
 
12487
 
 
12488
            # Archives containing C++ object files must be created using
 
12489
            # the KAI C++ compiler.
 
12490
            case $host in
 
12491
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12492
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12493
            esac
 
12494
            ;;
 
12495
          RCC*)
 
12496
            # Rational C++ 2.4.1
 
12497
            # FIXME: insert proper C++ library support
 
12498
            ld_shlibs_CXX=no
 
12499
            ;;
 
12500
          cxx*)
 
12501
            case $host in
 
12502
              osf3*)
 
12503
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12504
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12505
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12506
                ;;
 
12507
              *)
 
12508
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12509
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12510
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12511
                  echo "-hidden">> $lib.exp~
 
12512
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
12513
                  $RM $lib.exp'
 
12514
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12515
                ;;
 
12516
            esac
 
12517
 
 
12518
            hardcode_libdir_separator_CXX=:
 
12519
 
 
12520
            # Commands to make compiler produce verbose output that lists
 
12521
            # what "hidden" libraries, object files and flags are used when
 
12522
            # linking a shared library.
 
12523
            #
 
12524
            # There doesn't appear to be a way to prevent this compiler from
 
12525
            # explicitly linking system object files so we need to strip them
 
12526
            # from the output so that they don't get included in the library
 
12527
            # dependencies.
 
12528
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12529
            ;;
 
12530
          *)
 
12531
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12532
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12533
              case $host in
 
12534
                osf3*)
 
12535
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12536
                  ;;
 
12537
                *)
 
12538
                  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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12539
                  ;;
 
12540
              esac
 
12541
 
 
12542
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12543
              hardcode_libdir_separator_CXX=:
 
12544
 
 
12545
              # Commands to make compiler produce verbose output that lists
 
12546
              # what "hidden" libraries, object files and flags are used when
 
12547
              # linking a shared library.
 
12548
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12549
 
 
12550
            else
 
12551
              # FIXME: insert proper C++ library support
 
12552
              ld_shlibs_CXX=no
 
12553
            fi
 
12554
            ;;
 
12555
        esac
 
12556
        ;;
 
12557
 
 
12558
      psos*)
 
12559
        # FIXME: insert proper C++ library support
 
12560
        ld_shlibs_CXX=no
 
12561
        ;;
 
12562
 
 
12563
      sunos4*)
 
12564
        case $cc_basename in
 
12565
          CC*)
 
12566
            # Sun C++ 4.x
 
12567
            # FIXME: insert proper C++ library support
 
12568
            ld_shlibs_CXX=no
 
12569
            ;;
 
12570
          lcc*)
 
12571
            # Lucid
 
12572
            # FIXME: insert proper C++ library support
 
12573
            ld_shlibs_CXX=no
 
12574
            ;;
 
12575
          *)
 
12576
            # FIXME: insert proper C++ library support
 
12577
            ld_shlibs_CXX=no
 
12578
            ;;
 
12579
        esac
 
12580
        ;;
 
12581
 
 
12582
      solaris*)
 
12583
        case $cc_basename in
 
12584
          CC*)
 
12585
            # Sun C++ 4.2, 5.x and Centerline C++
 
12586
            archive_cmds_need_lc_CXX=yes
 
12587
            no_undefined_flag_CXX=' -zdefs'
 
12588
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12589
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12590
              $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'
 
12591
 
 
12592
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12593
            hardcode_shlibpath_var_CXX=no
 
12594
            case $host_os in
 
12595
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12596
              *)
 
12597
                # The compiler driver will combine and reorder linker options,
 
12598
                # but understands `-z linker_flag'.
 
12599
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12600
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12601
                ;;
 
12602
            esac
 
12603
            link_all_deplibs_CXX=yes
 
12604
 
 
12605
            output_verbose_link_cmd='echo'
 
12606
 
 
12607
            # Archives containing C++ object files must be created using
 
12608
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12609
            # necessary to make sure instantiated templates are included
 
12610
            # in the archive.
 
12611
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12612
            ;;
 
12613
          gcx*)
 
12614
            # Green Hills C++ Compiler
 
12615
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12616
 
 
12617
            # The C++ compiler must be used to create the archive.
 
12618
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12619
            ;;
 
12620
          *)
 
12621
            # GNU C++ compiler with Solaris linker
 
12622
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12623
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12624
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
12625
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12626
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12627
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12628
 
 
12629
                # Commands to make compiler produce verbose output that lists
 
12630
                # what "hidden" libraries, object files and flags are used when
 
12631
                # linking a shared library.
 
12632
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12633
              else
 
12634
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12635
                # platform.
 
12636
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12637
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12638
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12639
 
 
12640
                # Commands to make compiler produce verbose output that lists
 
12641
                # what "hidden" libraries, object files and flags are used when
 
12642
                # linking a shared library.
 
12643
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12644
              fi
 
12645
 
 
12646
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12647
              case $host_os in
 
12648
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12649
                *)
 
12650
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12651
                  ;;
 
12652
              esac
 
12653
            fi
 
12654
            ;;
 
12655
        esac
 
12656
        ;;
 
12657
 
 
12658
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12659
      no_undefined_flag_CXX='${wl}-z,text'
 
12660
      archive_cmds_need_lc_CXX=no
 
12661
      hardcode_shlibpath_var_CXX=no
 
12662
      runpath_var='LD_RUN_PATH'
 
12663
 
 
12664
      case $cc_basename in
 
12665
        CC*)
 
12666
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12667
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12668
          ;;
 
12669
        *)
 
12670
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12671
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12672
          ;;
 
12673
      esac
 
12674
      ;;
 
12675
 
 
12676
      sysv5* | sco3.2v5* | sco5v6*)
 
12677
        # Note: We can NOT use -z defs as we might desire, because we do not
 
12678
        # link with -lc, and that would cause any symbols used from libc to
 
12679
        # always be unresolved, which means just about no library would
 
12680
        # ever link correctly.  If we're not using GNU ld we use -z text
 
12681
        # though, which does catch some bad symbols but isn't as heavy-handed
 
12682
        # as -z defs.
 
12683
        no_undefined_flag_CXX='${wl}-z,text'
 
12684
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12685
        archive_cmds_need_lc_CXX=no
 
12686
        hardcode_shlibpath_var_CXX=no
 
12687
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
12688
        hardcode_libdir_separator_CXX=':'
 
12689
        link_all_deplibs_CXX=yes
 
12690
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12691
        runpath_var='LD_RUN_PATH'
 
12692
 
 
12693
        case $cc_basename in
 
12694
          CC*)
 
12695
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12696
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12697
            ;;
 
12698
          *)
 
12699
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12700
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12701
            ;;
 
12702
        esac
 
12703
      ;;
 
12704
 
 
12705
      tandem*)
 
12706
        case $cc_basename in
 
12707
          NCC*)
 
12708
            # NonStop-UX NCC 3.20
 
12709
            # FIXME: insert proper C++ library support
 
12710
            ld_shlibs_CXX=no
 
12711
            ;;
 
12712
          *)
 
12713
            # FIXME: insert proper C++ library support
 
12714
            ld_shlibs_CXX=no
 
12715
            ;;
 
12716
        esac
 
12717
        ;;
 
12718
 
 
12719
      vxworks*)
 
12720
        # FIXME: insert proper C++ library support
 
12721
        ld_shlibs_CXX=no
 
12722
        ;;
 
12723
 
 
12724
      *)
 
12725
        # FIXME: insert proper C++ library support
 
12726
        ld_shlibs_CXX=no
 
12727
        ;;
 
12728
    esac
 
12729
 
 
12730
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
12731
$as_echo "$ld_shlibs_CXX" >&6; }
 
12732
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12733
 
 
12734
    GCC_CXX="$GXX"
 
12735
    LD_CXX="$LD"
 
12736
 
 
12737
    ## CAVEAT EMPTOR:
 
12738
    ## There is no encapsulation within the following macros, do not change
 
12739
    ## the running order or otherwise move them around unless you know exactly
 
12740
    ## what you are doing...
 
12741
    # Dependencies to place before and after the object being linked:
 
12742
predep_objects_CXX=
 
12743
postdep_objects_CXX=
 
12744
predeps_CXX=
 
12745
postdeps_CXX=
 
12746
compiler_lib_search_path_CXX=
 
12747
 
 
12748
cat > conftest.$ac_ext <<_LT_EOF
 
12749
class Foo
 
12750
{
 
12751
public:
 
12752
  Foo (void) { a = 0; }
 
12753
private:
 
12754
  int a;
 
12755
};
 
12756
_LT_EOF
 
12757
 
 
12758
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12759
  (eval $ac_compile) 2>&5
 
12760
  ac_status=$?
 
12761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12762
  test $ac_status = 0; }; then
 
12763
  # Parse the compiler output and extract the necessary
 
12764
  # objects, libraries and library flags.
 
12765
 
 
12766
  # Sentinel used to keep track of whether or not we are before
 
12767
  # the conftest object file.
 
12768
  pre_test_object_deps_done=no
 
12769
 
 
12770
  for p in `eval "$output_verbose_link_cmd"`; do
 
12771
    case $p in
 
12772
 
 
12773
    -L* | -R* | -l*)
 
12774
       # Some compilers place space between "-{L,R}" and the path.
 
12775
       # Remove the space.
 
12776
       if test $p = "-L" ||
 
12777
          test $p = "-R"; then
 
12778
         prev=$p
 
12779
         continue
 
12780
       else
 
12781
         prev=
 
12782
       fi
 
12783
 
 
12784
       if test "$pre_test_object_deps_done" = no; then
 
12785
         case $p in
 
12786
         -L* | -R*)
 
12787
           # Internal compiler library paths should come after those
 
12788
           # provided the user.  The postdeps already come after the
 
12789
           # user supplied libs so there is no need to process them.
 
12790
           if test -z "$compiler_lib_search_path_CXX"; then
 
12791
             compiler_lib_search_path_CXX="${prev}${p}"
 
12792
           else
 
12793
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12794
           fi
 
12795
           ;;
 
12796
         # The "-l" case would never come before the object being
 
12797
         # linked, so don't bother handling this case.
 
12798
         esac
 
12799
       else
 
12800
         if test -z "$postdeps_CXX"; then
 
12801
           postdeps_CXX="${prev}${p}"
 
12802
         else
 
12803
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12804
         fi
 
12805
       fi
 
12806
       ;;
 
12807
 
 
12808
    *.$objext)
 
12809
       # This assumes that the test object file only shows up
 
12810
       # once in the compiler output.
 
12811
       if test "$p" = "conftest.$objext"; then
 
12812
         pre_test_object_deps_done=yes
 
12813
         continue
 
12814
       fi
 
12815
 
 
12816
       if test "$pre_test_object_deps_done" = no; then
 
12817
         if test -z "$predep_objects_CXX"; then
 
12818
           predep_objects_CXX="$p"
 
12819
         else
 
12820
           predep_objects_CXX="$predep_objects_CXX $p"
 
12821
         fi
 
12822
       else
 
12823
         if test -z "$postdep_objects_CXX"; then
 
12824
           postdep_objects_CXX="$p"
 
12825
         else
 
12826
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12827
         fi
 
12828
       fi
 
12829
       ;;
 
12830
 
 
12831
    *) ;; # Ignore the rest.
 
12832
 
 
12833
    esac
 
12834
  done
 
12835
 
 
12836
  # Clean up.
 
12837
  rm -f a.out a.exe
 
12838
else
 
12839
  echo "libtool.m4: error: problem compiling CXX test program"
 
12840
fi
 
12841
 
 
12842
$RM -f confest.$objext
 
12843
 
 
12844
# PORTME: override above test on systems where it is broken
 
12845
case $host_os in
 
12846
interix[3-9]*)
 
12847
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12848
  # hack all around it, let's just trust "g++" to DTRT.
 
12849
  predep_objects_CXX=
 
12850
  postdep_objects_CXX=
 
12851
  postdeps_CXX=
 
12852
  ;;
 
12853
 
 
12854
linux*)
 
12855
  case `$CC -V 2>&1 | sed 5q` in
 
12856
  *Sun\ C*)
 
12857
    # Sun C++ 5.9
 
12858
 
 
12859
    # The more standards-conforming stlport4 library is
 
12860
    # incompatible with the Cstd library. Avoid specifying
 
12861
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12862
    # -library=stlport4 depends on it.
 
12863
    case " $CXX $CXXFLAGS " in
 
12864
    *" -library=stlport4 "*)
 
12865
      solaris_use_stlport4=yes
 
12866
      ;;
 
12867
    esac
 
12868
 
 
12869
    if test "$solaris_use_stlport4" != yes; then
 
12870
      postdeps_CXX='-library=Cstd -library=Crun'
 
12871
    fi
 
12872
    ;;
 
12873
  esac
 
12874
  ;;
 
12875
 
 
12876
solaris*)
 
12877
  case $cc_basename in
 
12878
  CC*)
 
12879
    # The more standards-conforming stlport4 library is
 
12880
    # incompatible with the Cstd library. Avoid specifying
 
12881
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12882
    # -library=stlport4 depends on it.
 
12883
    case " $CXX $CXXFLAGS " in
 
12884
    *" -library=stlport4 "*)
 
12885
      solaris_use_stlport4=yes
 
12886
      ;;
 
12887
    esac
 
12888
 
 
12889
    # Adding this requires a known-good setup of shared libraries for
 
12890
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12891
    # archive will be linked into the output, leading to subtle bugs.
 
12892
    if test "$solaris_use_stlport4" != yes; then
 
12893
      postdeps_CXX='-library=Cstd -library=Crun'
 
12894
    fi
 
12895
    ;;
 
12896
  esac
 
12897
  ;;
 
12898
esac
 
12899
 
 
12900
 
 
12901
case " $postdeps_CXX " in
 
12902
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12903
esac
 
12904
 compiler_lib_search_dirs_CXX=
 
12905
if test -n "${compiler_lib_search_path_CXX}"; then
 
12906
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12907
fi
 
12908
 
 
12909
 
 
12910
 
 
12911
 
 
12912
 
 
12913
 
 
12914
 
 
12915
 
 
12916
 
 
12917
 
 
12918
 
 
12919
 
 
12920
 
 
12921
 
 
12922
 
 
12923
 
 
12924
 
 
12925
 
 
12926
 
 
12927
 
 
12928
 
 
12929
 
 
12930
 
 
12931
 
 
12932
 
 
12933
 
 
12934
 
 
12935
 
 
12936
 
 
12937
 
 
12938
 
 
12939
    lt_prog_compiler_wl_CXX=
 
12940
lt_prog_compiler_pic_CXX=
 
12941
lt_prog_compiler_static_CXX=
 
12942
 
 
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
12944
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12945
 
 
12946
  # C++ specific cases for pic, static, wl, etc.
 
12947
  if test "$GXX" = yes; then
 
12948
    lt_prog_compiler_wl_CXX='-Wl,'
 
12949
    lt_prog_compiler_static_CXX='-static'
 
12950
 
 
12951
    case $host_os in
 
12952
    aix*)
 
12953
      # All AIX code is PIC.
 
12954
      if test "$host_cpu" = ia64; then
 
12955
        # AIX 5 now supports IA64 processor
 
12956
        lt_prog_compiler_static_CXX='-Bstatic'
 
12957
      fi
 
12958
      ;;
 
12959
 
 
12960
    amigaos*)
 
12961
      case $host_cpu in
 
12962
      powerpc)
 
12963
            # see comment about AmigaOS4 .so support
 
12964
            lt_prog_compiler_pic_CXX='-fPIC'
 
12965
        ;;
 
12966
      m68k)
 
12967
            # FIXME: we need at least 68020 code to build shared libraries, but
 
12968
            # adding the `-m68020' flag to GCC prevents building anything better,
 
12969
            # like `-m68040'.
 
12970
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12971
        ;;
 
12972
      esac
 
12973
      ;;
 
12974
 
 
12975
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12976
      # PIC is the default for these OSes.
 
12977
      ;;
 
12978
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
12979
      # This hack is so that the source file can tell whether it is being
 
12980
      # built for inclusion in a dll (and should export symbols for example).
 
12981
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12982
      # (--disable-auto-import) libraries
 
12983
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12984
      ;;
 
12985
    darwin* | rhapsody*)
 
12986
      # PIC is the default on this platform
 
12987
      # Common symbols not allowed in MH_DYLIB files
 
12988
      lt_prog_compiler_pic_CXX='-fno-common'
 
12989
      ;;
 
12990
    *djgpp*)
 
12991
      # DJGPP does not support shared libraries at all
 
12992
      lt_prog_compiler_pic_CXX=
 
12993
      ;;
 
12994
    interix[3-9]*)
 
12995
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12996
      # Instead, we relocate shared libraries at runtime.
 
12997
      ;;
 
12998
    sysv4*MP*)
 
12999
      if test -d /usr/nec; then
 
13000
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13001
      fi
 
13002
      ;;
 
13003
    hpux*)
 
13004
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13005
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13006
      # sets the default TLS model and affects inlining.
 
13007
      case $host_cpu in
 
13008
      hppa*64*)
 
13009
        ;;
 
13010
      *)
 
13011
        lt_prog_compiler_pic_CXX='-fPIC'
 
13012
        ;;
 
13013
      esac
 
13014
      ;;
 
13015
    *qnx* | *nto*)
 
13016
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13017
      # it will coredump.
 
13018
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13019
      ;;
 
13020
    *)
 
13021
      lt_prog_compiler_pic_CXX='-fPIC'
 
13022
      ;;
 
13023
    esac
 
13024
  else
 
13025
    case $host_os in
 
13026
      aix[4-9]*)
 
13027
        # All AIX code is PIC.
 
13028
        if test "$host_cpu" = ia64; then
 
13029
          # AIX 5 now supports IA64 processor
 
13030
          lt_prog_compiler_static_CXX='-Bstatic'
 
13031
        else
 
13032
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13033
        fi
 
13034
        ;;
 
13035
      chorus*)
 
13036
        case $cc_basename in
 
13037
        cxch68*)
 
13038
          # Green Hills C++ Compiler
 
13039
          # _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"
 
13040
          ;;
 
13041
        esac
 
13042
        ;;
 
13043
      dgux*)
 
13044
        case $cc_basename in
 
13045
          ec++*)
 
13046
            lt_prog_compiler_pic_CXX='-KPIC'
 
13047
            ;;
 
13048
          ghcx*)
 
13049
            # Green Hills C++ Compiler
 
13050
            lt_prog_compiler_pic_CXX='-pic'
 
13051
            ;;
 
13052
          *)
 
13053
            ;;
 
13054
        esac
 
13055
        ;;
 
13056
      freebsd* | dragonfly*)
 
13057
        # FreeBSD uses GNU C++
 
13058
        ;;
 
13059
      hpux9* | hpux10* | hpux11*)
 
13060
        case $cc_basename in
 
13061
          CC*)
 
13062
            lt_prog_compiler_wl_CXX='-Wl,'
 
13063
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13064
            if test "$host_cpu" != ia64; then
 
13065
              lt_prog_compiler_pic_CXX='+Z'
 
13066
            fi
 
13067
            ;;
 
13068
          aCC*)
 
13069
            lt_prog_compiler_wl_CXX='-Wl,'
 
13070
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13071
            case $host_cpu in
 
13072
            hppa*64*|ia64*)
 
13073
              # +Z the default
 
13074
              ;;
 
13075
            *)
 
13076
              lt_prog_compiler_pic_CXX='+Z'
 
13077
              ;;
 
13078
            esac
 
13079
            ;;
 
13080
          *)
 
13081
            ;;
 
13082
        esac
 
13083
        ;;
 
13084
      interix*)
 
13085
        # This is c89, which is MS Visual C++ (no shared libs)
 
13086
        # Anyone wants to do a port?
 
13087
        ;;
 
13088
      irix5* | irix6* | nonstopux*)
 
13089
        case $cc_basename in
 
13090
          CC*)
 
13091
            lt_prog_compiler_wl_CXX='-Wl,'
 
13092
            lt_prog_compiler_static_CXX='-non_shared'
 
13093
            # CC pic flag -KPIC is the default.
 
13094
            ;;
 
13095
          *)
 
13096
            ;;
 
13097
        esac
 
13098
        ;;
 
13099
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13100
        case $cc_basename in
 
13101
          KCC*)
 
13102
            # KAI C++ Compiler
 
13103
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13104
            lt_prog_compiler_pic_CXX='-fPIC'
 
13105
            ;;
 
13106
          ecpc* )
 
13107
            # old Intel C++ for x86_64 which still supported -KPIC.
 
13108
            lt_prog_compiler_wl_CXX='-Wl,'
 
13109
            lt_prog_compiler_pic_CXX='-KPIC'
 
13110
            lt_prog_compiler_static_CXX='-static'
 
13111
            ;;
 
13112
          icpc* )
 
13113
            # Intel C++, used to be incompatible with GCC.
 
13114
            # ICC 10 doesn't accept -KPIC any more.
 
13115
            lt_prog_compiler_wl_CXX='-Wl,'
 
13116
            lt_prog_compiler_pic_CXX='-fPIC'
 
13117
            lt_prog_compiler_static_CXX='-static'
 
13118
            ;;
 
13119
          pgCC* | pgcpp*)
 
13120
            # Portland Group C++ compiler
 
13121
            lt_prog_compiler_wl_CXX='-Wl,'
 
13122
            lt_prog_compiler_pic_CXX='-fpic'
 
13123
            lt_prog_compiler_static_CXX='-Bstatic'
 
13124
            ;;
 
13125
          cxx*)
 
13126
            # Compaq C++
 
13127
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13128
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13129
            lt_prog_compiler_pic_CXX=
 
13130
            lt_prog_compiler_static_CXX='-non_shared'
 
13131
            ;;
 
13132
          xlc* | xlC*)
 
13133
            # IBM XL 8.0 on PPC
 
13134
            lt_prog_compiler_wl_CXX='-Wl,'
 
13135
            lt_prog_compiler_pic_CXX='-qpic'
 
13136
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13137
            ;;
 
13138
          *)
 
13139
            case `$CC -V 2>&1 | sed 5q` in
 
13140
            *Sun\ C*)
 
13141
              # Sun C++ 5.9
 
13142
              lt_prog_compiler_pic_CXX='-KPIC'
 
13143
              lt_prog_compiler_static_CXX='-Bstatic'
 
13144
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13145
              ;;
 
13146
            esac
 
13147
            ;;
 
13148
        esac
 
13149
        ;;
 
13150
      lynxos*)
 
13151
        ;;
 
13152
      m88k*)
 
13153
        ;;
 
13154
      mvs*)
 
13155
        case $cc_basename in
 
13156
          cxx*)
 
13157
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13158
            ;;
 
13159
          *)
 
13160
            ;;
 
13161
        esac
 
13162
        ;;
 
13163
      netbsd* | netbsdelf*-gnu)
 
13164
        ;;
 
13165
      *qnx* | *nto*)
 
13166
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13167
        # it will coredump.
 
13168
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13169
        ;;
 
13170
      osf3* | osf4* | osf5*)
 
13171
        case $cc_basename in
 
13172
          KCC*)
 
13173
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13174
            ;;
 
13175
          RCC*)
 
13176
            # Rational C++ 2.4.1
 
13177
            lt_prog_compiler_pic_CXX='-pic'
 
13178
            ;;
 
13179
          cxx*)
 
13180
            # Digital/Compaq C++
 
13181
            lt_prog_compiler_wl_CXX='-Wl,'
 
13182
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13183
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13184
            lt_prog_compiler_pic_CXX=
 
13185
            lt_prog_compiler_static_CXX='-non_shared'
 
13186
            ;;
 
13187
          *)
 
13188
            ;;
 
13189
        esac
 
13190
        ;;
 
13191
      psos*)
 
13192
        ;;
 
13193
      solaris*)
 
13194
        case $cc_basename in
 
13195
          CC*)
 
13196
            # Sun C++ 4.2, 5.x and Centerline C++
 
13197
            lt_prog_compiler_pic_CXX='-KPIC'
 
13198
            lt_prog_compiler_static_CXX='-Bstatic'
 
13199
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13200
            ;;
 
13201
          gcx*)
 
13202
            # Green Hills C++ Compiler
 
13203
            lt_prog_compiler_pic_CXX='-PIC'
 
13204
            ;;
 
13205
          *)
 
13206
            ;;
 
13207
        esac
 
13208
        ;;
 
13209
      sunos4*)
 
13210
        case $cc_basename in
 
13211
          CC*)
 
13212
            # Sun C++ 4.x
 
13213
            lt_prog_compiler_pic_CXX='-pic'
 
13214
            lt_prog_compiler_static_CXX='-Bstatic'
 
13215
            ;;
 
13216
          lcc*)
 
13217
            # Lucid
 
13218
            lt_prog_compiler_pic_CXX='-pic'
 
13219
            ;;
 
13220
          *)
 
13221
            ;;
 
13222
        esac
 
13223
        ;;
 
13224
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13225
        case $cc_basename in
 
13226
          CC*)
 
13227
            lt_prog_compiler_wl_CXX='-Wl,'
 
13228
            lt_prog_compiler_pic_CXX='-KPIC'
 
13229
            lt_prog_compiler_static_CXX='-Bstatic'
 
13230
            ;;
 
13231
        esac
 
13232
        ;;
 
13233
      tandem*)
 
13234
        case $cc_basename in
 
13235
          NCC*)
 
13236
            # NonStop-UX NCC 3.20
 
13237
            lt_prog_compiler_pic_CXX='-KPIC'
 
13238
            ;;
 
13239
          *)
 
13240
            ;;
 
13241
        esac
 
13242
        ;;
 
13243
      vxworks*)
 
13244
        ;;
 
13245
      *)
 
13246
        lt_prog_compiler_can_build_shared_CXX=no
 
13247
        ;;
 
13248
    esac
 
13249
  fi
 
13250
 
 
13251
case $host_os in
 
13252
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13253
  *djgpp*)
 
13254
    lt_prog_compiler_pic_CXX=
 
13255
    ;;
 
13256
  *)
 
13257
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13258
    ;;
 
13259
esac
 
13260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
 
13261
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13262
 
 
13263
 
 
13264
 
 
13265
#
 
13266
# Check to make sure the PIC flag actually works.
 
13267
#
 
13268
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13269
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13270
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13271
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
13272
  $as_echo_n "(cached) " >&6
 
13273
else
 
13274
  lt_cv_prog_compiler_pic_works_CXX=no
 
13275
   ac_outfile=conftest.$ac_objext
 
13276
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13277
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13278
   # Insert the option either (1) after the last *FLAGS variable, or
 
13279
   # (2) before a word containing "conftest.", or (3) at the end.
 
13280
   # Note that $ac_compile itself does not contain backslashes and begins
 
13281
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13282
   # The option is referenced via a variable to avoid confusing sed.
 
13283
   lt_compile=`echo "$ac_compile" | $SED \
 
13284
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13285
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13286
   -e 's:$: $lt_compiler_flag:'`
 
13287
   (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
 
13288
   (eval "$lt_compile" 2>conftest.err)
 
13289
   ac_status=$?
 
13290
   cat conftest.err >&5
 
13291
   echo "$as_me:13291: \$? = $ac_status" >&5
 
13292
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13293
     # The compiler can only warn and ignore the option if not recognized
 
13294
     # So say no if there are warnings other than the usual output.
 
13295
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13296
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13297
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13298
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13299
     fi
 
13300
   fi
 
13301
   $RM conftest*
 
13302
 
 
13303
fi
 
13304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13305
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13306
 
 
13307
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13308
    case $lt_prog_compiler_pic_CXX in
 
13309
     "" | " "*) ;;
 
13310
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13311
     esac
 
13312
else
 
13313
    lt_prog_compiler_pic_CXX=
 
13314
     lt_prog_compiler_can_build_shared_CXX=no
 
13315
fi
 
13316
 
 
13317
fi
 
13318
 
 
13319
 
 
13320
 
 
13321
#
 
13322
# Check to make sure the static flag actually works.
 
13323
#
 
13324
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13326
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13327
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
13328
  $as_echo_n "(cached) " >&6
 
13329
else
 
13330
  lt_cv_prog_compiler_static_works_CXX=no
 
13331
   save_LDFLAGS="$LDFLAGS"
 
13332
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13333
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13334
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13335
     # The linker can only warn and ignore the option if not recognized
 
13336
     # So say no if there are warnings
 
13337
     if test -s conftest.err; then
 
13338
       # Append any errors to the config.log.
 
13339
       cat conftest.err 1>&5
 
13340
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13341
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13342
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13343
         lt_cv_prog_compiler_static_works_CXX=yes
 
13344
       fi
 
13345
     else
 
13346
       lt_cv_prog_compiler_static_works_CXX=yes
 
13347
     fi
 
13348
   fi
 
13349
   $RM -r conftest*
 
13350
   LDFLAGS="$save_LDFLAGS"
 
13351
 
 
13352
fi
 
13353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13354
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13355
 
 
13356
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13357
    :
 
13358
else
 
13359
    lt_prog_compiler_static_CXX=
 
13360
fi
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13366
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13367
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13368
  $as_echo_n "(cached) " >&6
 
13369
else
 
13370
  lt_cv_prog_compiler_c_o_CXX=no
 
13371
   $RM -r conftest 2>/dev/null
 
13372
   mkdir conftest
 
13373
   cd conftest
 
13374
   mkdir out
 
13375
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13376
 
 
13377
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13378
   # Insert the option either (1) after the last *FLAGS variable, or
 
13379
   # (2) before a word containing "conftest.", or (3) at the end.
 
13380
   # Note that $ac_compile itself does not contain backslashes and begins
 
13381
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13382
   lt_compile=`echo "$ac_compile" | $SED \
 
13383
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13384
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13385
   -e 's:$: $lt_compiler_flag:'`
 
13386
   (eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
 
13387
   (eval "$lt_compile" 2>out/conftest.err)
 
13388
   ac_status=$?
 
13389
   cat out/conftest.err >&5
 
13390
   echo "$as_me:13390: \$? = $ac_status" >&5
 
13391
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13392
   then
 
13393
     # The compiler can only warn and ignore the option if not recognized
 
13394
     # So say no if there are warnings
 
13395
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13396
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13397
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13398
       lt_cv_prog_compiler_c_o_CXX=yes
 
13399
     fi
 
13400
   fi
 
13401
   chmod u+w . 2>&5
 
13402
   $RM conftest*
 
13403
   # SGI C++ compiler will create directory out/ii_files/ for
 
13404
   # template instantiation
 
13405
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13406
   $RM out/* && rmdir out
 
13407
   cd ..
 
13408
   $RM -r conftest
 
13409
   $RM conftest*
 
13410
 
 
13411
fi
 
13412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13413
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13414
 
 
13415
 
 
13416
 
 
13417
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13418
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13419
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13420
  $as_echo_n "(cached) " >&6
 
13421
else
 
13422
  lt_cv_prog_compiler_c_o_CXX=no
 
13423
   $RM -r conftest 2>/dev/null
 
13424
   mkdir conftest
 
13425
   cd conftest
 
13426
   mkdir out
 
13427
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13428
 
 
13429
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13430
   # Insert the option either (1) after the last *FLAGS variable, or
 
13431
   # (2) before a word containing "conftest.", or (3) at the end.
 
13432
   # Note that $ac_compile itself does not contain backslashes and begins
 
13433
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13434
   lt_compile=`echo "$ac_compile" | $SED \
 
13435
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13436
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13437
   -e 's:$: $lt_compiler_flag:'`
 
13438
   (eval echo "\"\$as_me:13438: $lt_compile\"" >&5)
 
13439
   (eval "$lt_compile" 2>out/conftest.err)
 
13440
   ac_status=$?
 
13441
   cat out/conftest.err >&5
 
13442
   echo "$as_me:13442: \$? = $ac_status" >&5
 
13443
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13444
   then
 
13445
     # The compiler can only warn and ignore the option if not recognized
 
13446
     # So say no if there are warnings
 
13447
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13448
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13449
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13450
       lt_cv_prog_compiler_c_o_CXX=yes
 
13451
     fi
 
13452
   fi
 
13453
   chmod u+w . 2>&5
 
13454
   $RM conftest*
 
13455
   # SGI C++ compiler will create directory out/ii_files/ for
 
13456
   # template instantiation
 
13457
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13458
   $RM out/* && rmdir out
 
13459
   cd ..
 
13460
   $RM -r conftest
 
13461
   $RM conftest*
 
13462
 
 
13463
fi
 
13464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13465
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13466
 
 
13467
 
 
13468
 
 
13469
 
 
13470
hard_links="nottested"
 
13471
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13472
  # do not overwrite the value of need_locks provided by the user
 
13473
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
13474
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13475
  hard_links=yes
 
13476
  $RM conftest*
 
13477
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13478
  touch conftest.a
 
13479
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13480
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
13482
$as_echo "$hard_links" >&6; }
 
13483
  if test "$hard_links" = no; then
 
13484
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13485
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13486
    need_locks=warn
 
13487
  fi
 
13488
else
 
13489
  need_locks=no
 
13490
fi
 
13491
 
 
13492
 
 
13493
 
 
13494
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13495
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13496
 
 
13497
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13498
  case $host_os in
 
13499
  aix[4-9]*)
 
13500
    # If we're using GNU nm, then we don't want the "-C" option.
 
13501
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13502
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
13503
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
13504
    else
 
13505
      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'
 
13506
    fi
 
13507
    ;;
 
13508
  pw32*)
 
13509
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13510
  ;;
 
13511
  cygwin* | mingw* | cegcc*)
 
13512
    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'
 
13513
  ;;
 
13514
  linux* | k*bsd*-gnu)
 
13515
    link_all_deplibs_CXX=no
 
13516
  ;;
 
13517
  *)
 
13518
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13519
  ;;
 
13520
  esac
 
13521
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13522
 
 
13523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13524
$as_echo "$ld_shlibs_CXX" >&6; }
 
13525
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13526
 
 
13527
with_gnu_ld_CXX=$with_gnu_ld
 
13528
 
 
13529
 
 
13530
 
 
13531
 
 
13532
 
 
13533
 
 
13534
#
 
13535
# Do we need to explicitly link libc?
 
13536
#
 
13537
case "x$archive_cmds_need_lc_CXX" in
 
13538
x|xyes)
 
13539
  # Assume -lc should be added
 
13540
  archive_cmds_need_lc_CXX=yes
 
13541
 
 
13542
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13543
    case $archive_cmds_CXX in
 
13544
    *'~'*)
 
13545
      # FIXME: we may have to deal with multi-command sequences.
 
13546
      ;;
 
13547
    '$CC '*)
 
13548
      # Test whether the compiler implicitly links with -lc since on some
 
13549
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13550
      # to ld, don't add -lc before -lgcc.
 
13551
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
13552
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13553
      $RM conftest*
 
13554
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13555
 
 
13556
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13557
  (eval $ac_compile) 2>&5
 
13558
  ac_status=$?
 
13559
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13560
  test $ac_status = 0; } 2>conftest.err; then
 
13561
        soname=conftest
 
13562
        lib=conftest
 
13563
        libobjs=conftest.$ac_objext
 
13564
        deplibs=
 
13565
        wl=$lt_prog_compiler_wl_CXX
 
13566
        pic_flag=$lt_prog_compiler_pic_CXX
 
13567
        compiler_flags=-v
 
13568
        linker_flags=-v
 
13569
        verstring=
 
13570
        output_objdir=.
 
13571
        libname=conftest
 
13572
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13573
        allow_undefined_flag_CXX=
 
13574
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
13575
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13576
  ac_status=$?
 
13577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13578
  test $ac_status = 0; }
 
13579
        then
 
13580
          archive_cmds_need_lc_CXX=no
 
13581
        else
 
13582
          archive_cmds_need_lc_CXX=yes
 
13583
        fi
 
13584
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13585
      else
 
13586
        cat conftest.err 1>&5
 
13587
      fi
 
13588
      $RM conftest*
 
13589
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
 
13590
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13591
      ;;
 
13592
    esac
 
13593
  fi
 
13594
  ;;
 
13595
esac
 
13596
 
 
13597
 
 
13598
 
 
13599
 
 
13600
 
 
13601
 
 
13602
 
 
13603
 
 
13604
 
 
13605
 
 
13606
 
 
13607
 
 
13608
 
 
13609
 
 
13610
 
 
13611
 
 
13612
 
 
13613
 
 
13614
 
 
13615
 
 
13616
 
 
13617
 
 
13618
 
 
13619
 
 
13620
 
 
13621
 
 
13622
 
 
13623
 
 
13624
 
 
13625
 
 
13626
 
 
13627
 
 
13628
 
 
13629
 
 
13630
 
 
13631
 
 
13632
 
 
13633
 
 
13634
 
 
13635
 
 
13636
 
 
13637
 
 
13638
 
 
13639
 
 
13640
 
 
13641
 
 
13642
 
 
13643
 
 
13644
 
 
13645
 
 
13646
 
 
13647
 
 
13648
 
 
13649
 
 
13650
 
 
13651
 
 
13652
 
 
13653
 
 
13654
 
 
13655
 
 
13656
 
 
13657
 
 
13658
 
 
13659
 
 
13660
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
13661
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13662
 
 
13663
library_names_spec=
 
13664
libname_spec='lib$name'
 
13665
soname_spec=
 
13666
shrext_cmds=".so"
 
13667
postinstall_cmds=
 
13668
postuninstall_cmds=
 
13669
finish_cmds=
 
13670
finish_eval=
 
13671
shlibpath_var=
 
13672
shlibpath_overrides_runpath=unknown
 
13673
version_type=none
 
13674
dynamic_linker="$host_os ld.so"
 
13675
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13676
need_lib_prefix=unknown
 
13677
hardcode_into_libs=no
 
13678
 
 
13679
# when you set need_version to no, make sure it does not cause -set_version
 
13680
# flags to be left without arguments
 
13681
need_version=unknown
 
13682
 
 
13683
case $host_os in
 
13684
aix3*)
 
13685
  version_type=linux
 
13686
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13687
  shlibpath_var=LIBPATH
 
13688
 
 
13689
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13690
  soname_spec='${libname}${release}${shared_ext}$major'
 
13691
  ;;
 
13692
 
 
13693
aix[4-9]*)
 
13694
  version_type=linux
 
13695
  need_lib_prefix=no
 
13696
  need_version=no
 
13697
  hardcode_into_libs=yes
 
13698
  if test "$host_cpu" = ia64; then
 
13699
    # AIX 5 supports IA64
 
13700
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13701
    shlibpath_var=LD_LIBRARY_PATH
 
13702
  else
 
13703
    # With GCC up to 2.95.x, collect2 would create an import file
 
13704
    # for dependence libraries.  The import file would start with
 
13705
    # the line `#! .'.  This would cause the generated library to
 
13706
    # depend on `.', always an invalid library.  This was fixed in
 
13707
    # development snapshots of GCC prior to 3.0.
 
13708
    case $host_os in
 
13709
      aix4 | aix4.[01] | aix4.[01].*)
 
13710
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13711
           echo ' yes '
 
13712
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
13713
        :
 
13714
      else
 
13715
        can_build_shared=no
 
13716
      fi
 
13717
      ;;
 
13718
    esac
 
13719
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13720
    # soname into executable. Probably we can add versioning support to
 
13721
    # collect2, so additional links can be useful in future.
 
13722
    if test "$aix_use_runtimelinking" = yes; then
 
13723
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13724
      # instead of lib<name>.a to let people know that these are not
 
13725
      # typical AIX shared libraries.
 
13726
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13727
    else
 
13728
      # We preserve .a as extension for shared libraries through AIX4.2
 
13729
      # and later when we are not doing run time linking.
 
13730
      library_names_spec='${libname}${release}.a $libname.a'
 
13731
      soname_spec='${libname}${release}${shared_ext}$major'
 
13732
    fi
 
13733
    shlibpath_var=LIBPATH
 
13734
  fi
 
13735
  ;;
 
13736
 
 
13737
amigaos*)
 
13738
  case $host_cpu in
 
13739
  powerpc)
 
13740
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
13741
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
13742
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13743
    ;;
 
13744
  m68k)
 
13745
    library_names_spec='$libname.ixlibrary $libname.a'
 
13746
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13747
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
13748
    ;;
 
13749
  esac
 
13750
  ;;
 
13751
 
 
13752
beos*)
 
13753
  library_names_spec='${libname}${shared_ext}'
 
13754
  dynamic_linker="$host_os ld.so"
 
13755
  shlibpath_var=LIBRARY_PATH
 
13756
  ;;
 
13757
 
 
13758
bsdi[45]*)
 
13759
  version_type=linux
 
13760
  need_version=no
 
13761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13762
  soname_spec='${libname}${release}${shared_ext}$major'
 
13763
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13764
  shlibpath_var=LD_LIBRARY_PATH
 
13765
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13766
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13767
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13768
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13769
  # libtool to hard-code these into programs
 
13770
  ;;
 
13771
 
 
13772
cygwin* | mingw* | pw32* | cegcc*)
 
13773
  version_type=windows
 
13774
  shrext_cmds=".dll"
 
13775
  need_version=no
 
13776
  need_lib_prefix=no
 
13777
 
 
13778
  case $GCC,$host_os in
 
13779
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
13780
    library_names_spec='$libname.dll.a'
 
13781
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13782
    postinstall_cmds='base_file=`basename \${file}`~
 
13783
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
13784
      dldir=$destdir/`dirname \$dlpath`~
 
13785
      test -d \$dldir || mkdir -p \$dldir~
 
13786
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13787
      chmod a+x \$dldir/$dlname~
 
13788
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
13789
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
13790
      fi'
 
13791
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13792
      dlpath=$dir/\$dldll~
 
13793
       $RM \$dlpath'
 
13794
    shlibpath_overrides_runpath=yes
 
13795
 
 
13796
    case $host_os in
 
13797
    cygwin*)
 
13798
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13799
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13800
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13801
      ;;
 
13802
    mingw* | cegcc*)
 
13803
      # MinGW DLLs use traditional 'lib' prefix
 
13804
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13805
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13806
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
13807
        # It is most probably a Windows format PATH printed by
 
13808
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13809
        # path with ; separators, and with drive letters. We can handle the
 
13810
        # drive letters (cygwin fileutils understands them), so leave them,
 
13811
        # especially as we might pass files found there to a mingw objdump,
 
13812
        # which wouldn't understand a cygwinified path. Ahh.
 
13813
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13814
      else
 
13815
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13816
      fi
 
13817
      ;;
 
13818
    pw32*)
 
13819
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13820
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13821
      ;;
 
13822
    esac
 
13823
    ;;
 
13824
 
 
13825
  *)
 
13826
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13827
    ;;
 
13828
  esac
 
13829
  dynamic_linker='Win32 ld.exe'
 
13830
  # FIXME: first we should search . and the directory the executable is in
 
13831
  shlibpath_var=PATH
 
13832
  ;;
 
13833
 
 
13834
darwin* | rhapsody*)
 
13835
  dynamic_linker="$host_os dyld"
 
13836
  version_type=darwin
 
13837
  need_lib_prefix=no
 
13838
  need_version=no
 
13839
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13840
  soname_spec='${libname}${release}${major}$shared_ext'
 
13841
  shlibpath_overrides_runpath=yes
 
13842
  shlibpath_var=DYLD_LIBRARY_PATH
 
13843
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13844
 
 
13845
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13846
  ;;
 
13847
 
 
13848
dgux*)
 
13849
  version_type=linux
 
13850
  need_lib_prefix=no
 
13851
  need_version=no
 
13852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13853
  soname_spec='${libname}${release}${shared_ext}$major'
 
13854
  shlibpath_var=LD_LIBRARY_PATH
 
13855
  ;;
 
13856
 
 
13857
freebsd1*)
 
13858
  dynamic_linker=no
 
13859
  ;;
 
13860
 
 
13861
freebsd* | dragonfly*)
 
13862
  # DragonFly does not have aout.  When/if they implement a new
 
13863
  # versioning mechanism, adjust this.
 
13864
  if test -x /usr/bin/objformat; then
 
13865
    objformat=`/usr/bin/objformat`
 
13866
  else
 
13867
    case $host_os in
 
13868
    freebsd[123]*) objformat=aout ;;
 
13869
    *) objformat=elf ;;
 
13870
    esac
 
13871
  fi
 
13872
  version_type=freebsd-$objformat
 
13873
  case $version_type in
 
13874
    freebsd-elf*)
 
13875
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13876
      need_version=no
 
13877
      need_lib_prefix=no
 
13878
      ;;
 
13879
    freebsd-*)
 
13880
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13881
      need_version=yes
 
13882
      ;;
 
13883
  esac
 
13884
  shlibpath_var=LD_LIBRARY_PATH
 
13885
  case $host_os in
 
13886
  freebsd2*)
 
13887
    shlibpath_overrides_runpath=yes
 
13888
    ;;
 
13889
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13890
    shlibpath_overrides_runpath=yes
 
13891
    hardcode_into_libs=yes
 
13892
    ;;
 
13893
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13894
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13895
    shlibpath_overrides_runpath=no
 
13896
    hardcode_into_libs=yes
 
13897
    ;;
 
13898
  *) # from 4.6 on, and DragonFly
 
13899
    shlibpath_overrides_runpath=yes
 
13900
    hardcode_into_libs=yes
 
13901
    ;;
 
13902
  esac
 
13903
  ;;
 
13904
 
 
13905
gnu*)
 
13906
  version_type=linux
 
13907
  need_lib_prefix=no
 
13908
  need_version=no
 
13909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13910
  soname_spec='${libname}${release}${shared_ext}$major'
 
13911
  shlibpath_var=LD_LIBRARY_PATH
 
13912
  hardcode_into_libs=yes
 
13913
  ;;
 
13914
 
 
13915
hpux9* | hpux10* | hpux11*)
 
13916
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13917
  # link against other versions.
 
13918
  version_type=sunos
 
13919
  need_lib_prefix=no
 
13920
  need_version=no
 
13921
  case $host_cpu in
 
13922
  ia64*)
 
13923
    shrext_cmds='.so'
 
13924
    hardcode_into_libs=yes
 
13925
    dynamic_linker="$host_os dld.so"
 
13926
    shlibpath_var=LD_LIBRARY_PATH
 
13927
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13928
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13929
    soname_spec='${libname}${release}${shared_ext}$major'
 
13930
    if test "X$HPUX_IA64_MODE" = X32; then
 
13931
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13932
    else
 
13933
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13934
    fi
 
13935
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13936
    ;;
 
13937
  hppa*64*)
 
13938
    shrext_cmds='.sl'
 
13939
    hardcode_into_libs=yes
 
13940
    dynamic_linker="$host_os dld.sl"
 
13941
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13942
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13943
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13944
    soname_spec='${libname}${release}${shared_ext}$major'
 
13945
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13946
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13947
    ;;
 
13948
  *)
 
13949
    shrext_cmds='.sl'
 
13950
    dynamic_linker="$host_os dld.sl"
 
13951
    shlibpath_var=SHLIB_PATH
 
13952
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13953
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13954
    soname_spec='${libname}${release}${shared_ext}$major'
 
13955
    ;;
 
13956
  esac
 
13957
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13958
  postinstall_cmds='chmod 555 $lib'
 
13959
  ;;
 
13960
 
 
13961
interix[3-9]*)
 
13962
  version_type=linux
 
13963
  need_lib_prefix=no
 
13964
  need_version=no
 
13965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13966
  soname_spec='${libname}${release}${shared_ext}$major'
 
13967
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13968
  shlibpath_var=LD_LIBRARY_PATH
 
13969
  shlibpath_overrides_runpath=no
 
13970
  hardcode_into_libs=yes
 
13971
  ;;
 
13972
 
 
13973
irix5* | irix6* | nonstopux*)
 
13974
  case $host_os in
 
13975
    nonstopux*) version_type=nonstopux ;;
 
13976
    *)
 
13977
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13978
                version_type=linux
 
13979
        else
 
13980
                version_type=irix
 
13981
        fi ;;
 
13982
  esac
 
13983
  need_lib_prefix=no
 
13984
  need_version=no
 
13985
  soname_spec='${libname}${release}${shared_ext}$major'
 
13986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13987
  case $host_os in
 
13988
  irix5* | nonstopux*)
 
13989
    libsuff= shlibsuff=
 
13990
    ;;
 
13991
  *)
 
13992
    case $LD in # libtool.m4 will add one of these switches to LD
 
13993
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13994
      libsuff= shlibsuff= libmagic=32-bit;;
 
13995
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13996
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13997
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13998
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13999
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14000
    esac
 
14001
    ;;
 
14002
  esac
 
14003
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14004
  shlibpath_overrides_runpath=no
 
14005
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14006
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14007
  hardcode_into_libs=yes
 
14008
  ;;
 
14009
 
 
14010
# No shared lib support for Linux oldld, aout, or coff.
 
14011
linux*oldld* | linux*aout* | linux*coff*)
 
14012
  dynamic_linker=no
 
14013
  ;;
 
14014
 
 
14015
# This must be Linux ELF.
 
14016
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14017
  version_type=linux
 
14018
  need_lib_prefix=no
 
14019
  need_version=no
 
14020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14021
  soname_spec='${libname}${release}${shared_ext}$major'
 
14022
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14023
  shlibpath_var=LD_LIBRARY_PATH
 
14024
  shlibpath_overrides_runpath=no
 
14025
  # Some binutils ld are patched to set DT_RUNPATH
 
14026
  save_LDFLAGS=$LDFLAGS
 
14027
  save_libdir=$libdir
 
14028
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14029
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14030
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14031
/* end confdefs.h.  */
 
14032
 
 
14033
int
 
14034
main ()
 
14035
{
 
14036
 
 
14037
  ;
 
14038
  return 0;
 
14039
}
 
14040
_ACEOF
 
14041
if ac_fn_cxx_try_link "$LINENO"; then :
 
14042
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14043
  shlibpath_overrides_runpath=yes
 
14044
fi
 
14045
fi
 
14046
rm -f core conftest.err conftest.$ac_objext \
 
14047
    conftest$ac_exeext conftest.$ac_ext
 
14048
  LDFLAGS=$save_LDFLAGS
 
14049
  libdir=$save_libdir
 
14050
 
 
14051
  # This implies no fast_install, which is unacceptable.
 
14052
  # Some rework will be needed to allow for fast_install
 
14053
  # before this can be enabled.
 
14054
  hardcode_into_libs=yes
 
14055
 
 
14056
  # Append ld.so.conf contents to the search path
 
14057
  if test -f /etc/ld.so.conf; then
 
14058
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14059
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14060
  fi
 
14061
 
 
14062
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14063
  # powerpc, because MkLinux only supported shared libraries with the
 
14064
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14065
  # most powerpc-linux boxes support dynamic linking these days and
 
14066
  # people can always --disable-shared, the test was removed, and we
 
14067
  # assume the GNU/Linux dynamic linker is in use.
 
14068
  dynamic_linker='GNU/Linux ld.so'
 
14069
  ;;
 
14070
 
 
14071
netbsdelf*-gnu)
 
14072
  version_type=linux
 
14073
  need_lib_prefix=no
 
14074
  need_version=no
 
14075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14076
  soname_spec='${libname}${release}${shared_ext}$major'
 
14077
  shlibpath_var=LD_LIBRARY_PATH
 
14078
  shlibpath_overrides_runpath=no
 
14079
  hardcode_into_libs=yes
 
14080
  dynamic_linker='NetBSD ld.elf_so'
 
14081
  ;;
 
14082
 
 
14083
netbsd*)
 
14084
  version_type=sunos
 
14085
  need_lib_prefix=no
 
14086
  need_version=no
 
14087
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14088
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14089
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14090
    dynamic_linker='NetBSD (a.out) ld.so'
 
14091
  else
 
14092
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14093
    soname_spec='${libname}${release}${shared_ext}$major'
 
14094
    dynamic_linker='NetBSD ld.elf_so'
 
14095
  fi
 
14096
  shlibpath_var=LD_LIBRARY_PATH
 
14097
  shlibpath_overrides_runpath=yes
 
14098
  hardcode_into_libs=yes
 
14099
  ;;
 
14100
 
 
14101
newsos6)
 
14102
  version_type=linux
 
14103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14104
  shlibpath_var=LD_LIBRARY_PATH
 
14105
  shlibpath_overrides_runpath=yes
 
14106
  ;;
 
14107
 
 
14108
*nto* | *qnx*)
 
14109
  version_type=qnx
 
14110
  need_lib_prefix=no
 
14111
  need_version=no
 
14112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14113
  soname_spec='${libname}${release}${shared_ext}$major'
 
14114
  shlibpath_var=LD_LIBRARY_PATH
 
14115
  shlibpath_overrides_runpath=no
 
14116
  hardcode_into_libs=yes
 
14117
  dynamic_linker='ldqnx.so'
 
14118
  ;;
 
14119
 
 
14120
openbsd*)
 
14121
  version_type=sunos
 
14122
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14123
  need_lib_prefix=no
 
14124
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14125
  case $host_os in
 
14126
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14127
    *)                          need_version=no  ;;
 
14128
  esac
 
14129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14130
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14131
  shlibpath_var=LD_LIBRARY_PATH
 
14132
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14133
    case $host_os in
 
14134
      openbsd2.[89] | openbsd2.[89].*)
 
14135
        shlibpath_overrides_runpath=no
 
14136
        ;;
 
14137
      *)
 
14138
        shlibpath_overrides_runpath=yes
 
14139
        ;;
 
14140
      esac
 
14141
  else
 
14142
    shlibpath_overrides_runpath=yes
 
14143
  fi
 
14144
  ;;
 
14145
 
 
14146
os2*)
 
14147
  libname_spec='$name'
 
14148
  shrext_cmds=".dll"
 
14149
  need_lib_prefix=no
 
14150
  library_names_spec='$libname${shared_ext} $libname.a'
 
14151
  dynamic_linker='OS/2 ld.exe'
 
14152
  shlibpath_var=LIBPATH
 
14153
  ;;
 
14154
 
 
14155
osf3* | osf4* | osf5*)
 
14156
  version_type=osf
 
14157
  need_lib_prefix=no
 
14158
  need_version=no
 
14159
  soname_spec='${libname}${release}${shared_ext}$major'
 
14160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14161
  shlibpath_var=LD_LIBRARY_PATH
 
14162
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14163
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14164
  ;;
 
14165
 
 
14166
rdos*)
 
14167
  dynamic_linker=no
 
14168
  ;;
 
14169
 
 
14170
solaris*)
 
14171
  version_type=linux
 
14172
  need_lib_prefix=no
 
14173
  need_version=no
 
14174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14175
  soname_spec='${libname}${release}${shared_ext}$major'
 
14176
  shlibpath_var=LD_LIBRARY_PATH
 
14177
  shlibpath_overrides_runpath=yes
 
14178
  hardcode_into_libs=yes
 
14179
  # ldd complains unless libraries are executable
 
14180
  postinstall_cmds='chmod +x $lib'
 
14181
  ;;
 
14182
 
 
14183
sunos4*)
 
14184
  version_type=sunos
 
14185
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14186
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14187
  shlibpath_var=LD_LIBRARY_PATH
 
14188
  shlibpath_overrides_runpath=yes
 
14189
  if test "$with_gnu_ld" = yes; then
 
14190
    need_lib_prefix=no
 
14191
  fi
 
14192
  need_version=yes
 
14193
  ;;
 
14194
 
 
14195
sysv4 | sysv4.3*)
 
14196
  version_type=linux
 
14197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14198
  soname_spec='${libname}${release}${shared_ext}$major'
 
14199
  shlibpath_var=LD_LIBRARY_PATH
 
14200
  case $host_vendor in
 
14201
    sni)
 
14202
      shlibpath_overrides_runpath=no
 
14203
      need_lib_prefix=no
 
14204
      runpath_var=LD_RUN_PATH
 
14205
      ;;
 
14206
    siemens)
 
14207
      need_lib_prefix=no
 
14208
      ;;
 
14209
    motorola)
 
14210
      need_lib_prefix=no
 
14211
      need_version=no
 
14212
      shlibpath_overrides_runpath=no
 
14213
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14214
      ;;
 
14215
  esac
 
14216
  ;;
 
14217
 
 
14218
sysv4*MP*)
 
14219
  if test -d /usr/nec ;then
 
14220
    version_type=linux
 
14221
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14222
    soname_spec='$libname${shared_ext}.$major'
 
14223
    shlibpath_var=LD_LIBRARY_PATH
 
14224
  fi
 
14225
  ;;
 
14226
 
 
14227
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14228
  version_type=freebsd-elf
 
14229
  need_lib_prefix=no
 
14230
  need_version=no
 
14231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14232
  soname_spec='${libname}${release}${shared_ext}$major'
 
14233
  shlibpath_var=LD_LIBRARY_PATH
 
14234
  shlibpath_overrides_runpath=yes
 
14235
  hardcode_into_libs=yes
 
14236
  if test "$with_gnu_ld" = yes; then
 
14237
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14238
  else
 
14239
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14240
    case $host_os in
 
14241
      sco3.2v5*)
 
14242
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14243
        ;;
 
14244
    esac
 
14245
  fi
 
14246
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14247
  ;;
 
14248
 
 
14249
tpf*)
 
14250
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14251
  version_type=linux
 
14252
  need_lib_prefix=no
 
14253
  need_version=no
 
14254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14255
  shlibpath_var=LD_LIBRARY_PATH
 
14256
  shlibpath_overrides_runpath=no
 
14257
  hardcode_into_libs=yes
 
14258
  ;;
 
14259
 
 
14260
uts4*)
 
14261
  version_type=linux
 
14262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14263
  soname_spec='${libname}${release}${shared_ext}$major'
 
14264
  shlibpath_var=LD_LIBRARY_PATH
 
14265
  ;;
 
14266
 
 
14267
*)
 
14268
  dynamic_linker=no
 
14269
  ;;
 
14270
esac
 
14271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
14272
$as_echo "$dynamic_linker" >&6; }
 
14273
test "$dynamic_linker" = no && can_build_shared=no
 
14274
 
 
14275
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14276
if test "$GCC" = yes; then
 
14277
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14278
fi
 
14279
 
 
14280
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14281
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14282
fi
 
14283
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14284
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14285
fi
 
14286
 
 
14287
 
 
14288
 
 
14289
 
 
14290
 
 
14291
 
 
14292
 
 
14293
 
 
14294
 
 
14295
 
 
14296
 
 
14297
 
 
14298
 
 
14299
 
 
14300
 
 
14301
 
 
14302
 
 
14303
 
 
14304
 
 
14305
 
 
14306
 
 
14307
 
 
14308
 
 
14309
 
 
14310
 
 
14311
 
 
14312
 
 
14313
 
 
14314
 
 
14315
 
 
14316
 
 
14317
 
 
14318
 
 
14319
 
 
14320
 
 
14321
 
 
14322
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
14323
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14324
hardcode_action_CXX=
 
14325
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14326
   test -n "$runpath_var_CXX" ||
 
14327
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14328
 
 
14329
  # We can hardcode non-existent directories.
 
14330
  if test "$hardcode_direct_CXX" != no &&
 
14331
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14332
     # have to relink, otherwise we might link with an installed library
 
14333
     # when we should be linking with a yet-to-be-installed one
 
14334
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14335
     test "$hardcode_minus_L_CXX" != no; then
 
14336
    # Linking always hardcodes the temporary library directory.
 
14337
    hardcode_action_CXX=relink
 
14338
  else
 
14339
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14340
    hardcode_action_CXX=immediate
 
14341
  fi
 
14342
else
 
14343
  # We cannot hardcode anything, or else we can only hardcode existing
 
14344
  # directories.
 
14345
  hardcode_action_CXX=unsupported
 
14346
fi
 
14347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
14348
$as_echo "$hardcode_action_CXX" >&6; }
 
14349
 
 
14350
if test "$hardcode_action_CXX" = relink ||
 
14351
   test "$inherit_rpath_CXX" = yes; then
 
14352
  # Fast installation is not supported
 
14353
  enable_fast_install=no
 
14354
elif test "$shlibpath_overrides_runpath" = yes ||
 
14355
     test "$enable_shared" = no; then
 
14356
  # Fast installation is not necessary
 
14357
  enable_fast_install=needless
 
14358
fi
 
14359
 
 
14360
 
 
14361
 
 
14362
 
 
14363
 
 
14364
 
 
14365
 
 
14366
  fi # test -n "$compiler"
 
14367
 
 
14368
  CC=$lt_save_CC
 
14369
  LDCXX=$LD
 
14370
  LD=$lt_save_LD
 
14371
  GCC=$lt_save_GCC
 
14372
  with_gnu_ld=$lt_save_with_gnu_ld
 
14373
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14374
  lt_cv_path_LD=$lt_save_path_LD
 
14375
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14376
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14377
fi # test "$_lt_caught_CXX_error" != yes
 
14378
 
 
14379
ac_ext=c
 
14380
ac_cpp='$CPP $CPPFLAGS'
 
14381
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14382
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14383
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14384
 
 
14385
 
 
14386
 
 
14387
 
 
14388
 
 
14389
 
 
14390
 
 
14391
 
 
14392
 
 
14393
 
 
14394
 
 
14395
 
 
14396
 
 
14397
        ac_config_commands="$ac_config_commands libtool"
 
14398
 
 
14399
 
 
14400
 
 
14401
 
 
14402
# Only expand once:
 
14403
 
 
14404
 
 
14405
if test "$GXX" != "yes"; then
 
14406
    as_fn_error "GNU C++ compiler not found, not building LLVM" "$LINENO" 5
 
14407
fi
 
14408
 
 
14409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
 
14410
$as_echo_n "checking for GNU make... " >&6; }
 
14411
if test "${llvm_cv_gnu_make_command+set}" = set; then :
 
14412
  $as_echo_n "(cached) " >&6
 
14413
else
 
14414
  llvm_cv_gnu_make_command=''
 
14415
 for a in "$MAKE" make gmake gnumake ; do
 
14416
  if test -z "$a" ; then continue ; fi ;
 
14417
  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
 
14418
  then
 
14419
   llvm_cv_gnu_make_command=$a ;
 
14420
   break;
 
14421
  fi
 
14422
 done
 
14423
fi
 
14424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
 
14425
$as_echo "$llvm_cv_gnu_make_command" >&6; }
 
14426
 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
 
14427
   ifGNUmake='' ;
 
14428
 else
 
14429
   ifGNUmake='#' ;
 
14430
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
 
14431
$as_echo "\"Not found\"" >&6; };
 
14432
 fi
 
14433
 
 
14434
 
 
14435
GMAKE="$llvm_cv_gnu_make_command"
 
14436
 
 
14437
 
 
14438
 
 
14439
subdirs="$subdirs llvm"
 
14440
 
 
14441
# Check whether --enable-llvm was given.
 
14442
if test "${enable_llvm+set}" = set; then :
 
14443
  enableval=$enable_llvm; enable_llvm=$enableval
 
14444
else
 
14445
  enable_llvm="auto"
 
14446
fi
 
14447
 
 
14448
 
 
14449
# Check whether --enable-optimized was given.
 
14450
if test "${enable_optimized+set}" = set; then :
 
14451
  enableval=$enable_optimized; enable_optimized=$enableval
 
14452
else
 
14453
  enable_optimized=default
 
14454
fi
 
14455
 
 
14456
 if test "x$enable_optimized" == "xno"; then
 
14457
  DEBUG_BUILD_TRUE=
 
14458
  DEBUG_BUILD_FALSE='#'
 
14459
else
 
14460
  DEBUG_BUILD_TRUE='#'
 
14461
  DEBUG_BUILD_FALSE=
 
14462
fi
 
14463
 
 
14464
 
 
14465
if test "$enable_optimized" = "default"; then
 
14466
    ac_configure_args="$ac_configure_args --enable-optimized"
 
14467
fi
 
14468
 
 
14469
ac_configure_args="$ac_configure_args llvm_cv_gnu_make_command=make"
 
14470
# Check whether --enable-all-jit-targets was given.
 
14471
if test "${enable_all_jit_targets+set}" = set; then :
 
14472
  enableval=$enable_all_jit_targets; enable_alltargets=$enableval
 
14473
else
 
14474
  enable_alltargets=no
 
14475
fi
 
14476
 
 
14477
if test "$enable_alltargets" = "yes"; then
 
14478
    new_args="$ac_configure_args --enable-targets=x86,powerpc,arm --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
 
14479
else
 
14480
    new_args="$ac_configure_args --enable-targets=host-only --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
 
14481
fi
 
14482
echo "$new_args"
 
14483
ac_configure_args=`echo $new_args | sed -e 's/-Werror //g'`
 
14484
echo "$ac_configure_args"
 
14485
 
 
14486
if test "$enable_llvm" = "auto"; then
 
14487
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported C++ compiler version" >&5
 
14488
$as_echo_n "checking for supported C++ compiler version... " >&6; }
 
14489
    gxx_version=`${CXX} -dumpversion` ||
 
14490
    as_fn_error "Unable to get GNU C++ compiler version" "$LINENO" 5
 
14491
    case "${gxx_version}" in
 
14492
     [023].*)
 
14493
        as_fn_error "C++ compiler too old (${gxx_version})" "$LINENO" 5
 
14494
        ;;
 
14495
     4.0.1*|4.1.[12]*)
 
14496
        as_fn_error "C++ compiler is buggy" "$LINENO" 5
 
14497
        ;;
 
14498
     *)
 
14499
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gxx_version})" >&5
 
14500
$as_echo "ok (${gxx_version})" >&6; }
 
14501
    esac
 
14502
 
 
14503
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported OS" >&5
 
14504
$as_echo_n "checking for supported OS... " >&6; }
 
14505
    case "$target_cpu" in
 
14506
        i?86|amd64|x86_64|powerpc*)
 
14507
            case "$target_os" in
 
14508
                darwin*|freebsd*|openbsd*|netbsd*|dragonfly*|linux*|solaris*|win32*|mingw*)
 
14509
                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($target_cpu-$target_os)" >&5
 
14510
$as_echo "ok ($target_cpu-$target_os)" >&6; }
 
14511
                    ;;
 
14512
                *)
 
14513
                    as_fn_error "OS $target_os is not supported, not building LLVM" "$LINENO" 5
 
14514
                    ;;
 
14515
            esac
 
14516
            ;;
 
14517
        alpha*|arm*)
 
14518
            as_fn_error "CPU support is untested, not building LLVM" "$LINENO" 5
 
14519
            ;;
 
14520
        *)
 
14521
            as_fn_error "Unsupported CPU for JIT: $target_cpu, not building LLVM" "$LINENO" 5
 
14522
            ;;
 
14523
    esac
 
14524
fi
 
14525
 
 
14526
build_x86=no
 
14527
build_ppc=no
 
14528
build_arm=no
 
14529
case "$target_cpu" in
 
14530
    i?86|amd64|x86_64)
 
14531
            build_x86=yes
 
14532
            ;;
 
14533
    powerpc*)
 
14534
            build_ppc=yes
 
14535
            ;;
 
14536
    arm*)
 
14537
            build_arm=yes
 
14538
            ;;
 
14539
esac
 
14540
 
 
14541
# FreeBSD is only one which needs something else than -pthread,
 
14542
# according to the logic in ClamAV's main configure.in.
 
14543
case "$target_os" in
 
14544
freebsd[45]*)
 
14545
    THREAD_LIBS="-pthread -lc_r"
 
14546
    ;;
 
14547
freebsd*)
 
14548
    THREAD_LIBS="-lthr"
 
14549
    ;;
 
14550
*)
 
14551
    THREAD_LIBS="-pthread"
 
14552
esac
 
14553
 
 
14554
 
 
14555
if test "$enable_alltargets" = "yes"; then
 
14556
        build_x86=yes
 
14557
        build_ppc=yes
 
14558
        build_arm=yes
 
14559
fi
 
14560
 if test "$build_x86" = "yes"; then
 
14561
  BUILD_X86_TRUE=
 
14562
  BUILD_X86_FALSE='#'
 
14563
else
 
14564
  BUILD_X86_TRUE='#'
 
14565
  BUILD_X86_FALSE=
 
14566
fi
 
14567
 
 
14568
 if test "$build_ppc" = "yes"; then
 
14569
  BUILD_PPC_TRUE=
 
14570
  BUILD_PPC_FALSE='#'
 
14571
else
 
14572
  BUILD_PPC_TRUE='#'
 
14573
  BUILD_PPC_FALSE=
 
14574
fi
 
14575
 
 
14576
 if test "$build_arm" = "yes"; then
 
14577
  BUILD_ARM_TRUE=
 
14578
  BUILD_ARM_FALSE='#'
 
14579
else
 
14580
  BUILD_ARM_TRUE='#'
 
14581
  BUILD_ARM_FALSE=
 
14582
fi
 
14583
 
 
14584
 
 
14585
ac_config_files="$ac_config_files Makefile"
 
14586
 
 
14587
cat >confcache <<\_ACEOF
 
14588
# This file is a shell script that caches the results of configure
 
14589
# tests run on this system so they can be shared between configure
 
14590
# scripts and configure runs, see configure's option --config-cache.
 
14591
# It is not useful on other systems.  If it contains results you don't
 
14592
# want to keep, you may remove or edit it.
 
14593
#
 
14594
# config.status only pays attention to the cache file if you give it
 
14595
# the --recheck option to rerun configure.
 
14596
#
 
14597
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
14598
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
14599
# following values.
 
14600
 
 
14601
_ACEOF
 
14602
 
 
14603
# The following way of writing the cache mishandles newlines in values,
 
14604
# but we know of no workaround that is simple, portable, and efficient.
 
14605
# So, we kill variables containing newlines.
 
14606
# Ultrix sh set writes to stderr and can't be redirected directly,
 
14607
# and sets the high bit in the cache file unless we assign to the vars.
 
14608
(
 
14609
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
14610
    eval ac_val=\$$ac_var
 
14611
    case $ac_val in #(
 
14612
    *${as_nl}*)
 
14613
      case $ac_var in #(
 
14614
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
14615
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
14616
      esac
 
14617
      case $ac_var in #(
 
14618
      _ | IFS | as_nl) ;; #(
 
14619
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
14620
      *) { eval $ac_var=; unset $ac_var;} ;;
 
14621
      esac ;;
 
14622
    esac
 
14623
  done
 
14624
 
 
14625
  (set) 2>&1 |
 
14626
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
14627
    *${as_nl}ac_space=\ *)
 
14628
      # `set' does not quote correctly, so add quotes: double-quote
 
14629
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
14630
      sed -n \
 
14631
        "s/'/'\\\\''/g;
 
14632
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
14633
      ;; #(
 
14634
    *)
 
14635
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
14636
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
14637
      ;;
 
14638
    esac |
 
14639
    sort
 
14640
) |
 
14641
  sed '
 
14642
     /^ac_cv_env_/b end
 
14643
     t clear
 
14644
     :clear
 
14645
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
14646
     t end
 
14647
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
14648
     :end' >>confcache
 
14649
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
14650
  if test -w "$cache_file"; then
 
14651
    test "x$cache_file" != "x/dev/null" &&
 
14652
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
14653
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
14654
    cat confcache >$cache_file
 
14655
  else
 
14656
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
14657
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
14658
  fi
 
14659
fi
 
14660
rm -f confcache
 
14661
 
 
14662
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
14663
# Let make expand exec_prefix.
 
14664
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
14665
 
 
14666
DEFS=-DHAVE_CONFIG_H
 
14667
 
 
14668
ac_libobjs=
 
14669
ac_ltlibobjs=
 
14670
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
14671
  # 1. Remove the extension, and $U if already installed.
 
14672
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
14673
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
14674
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
14675
  #    will be set to the directory where LIBOBJS objects are built.
 
14676
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
14677
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
14678
done
 
14679
LIBOBJS=$ac_libobjs
 
14680
 
 
14681
LTLIBOBJS=$ac_ltlibobjs
 
14682
 
 
14683
 
 
14684
 if test -n "$EXEEXT"; then
 
14685
  am__EXEEXT_TRUE=
 
14686
  am__EXEEXT_FALSE='#'
 
14687
else
 
14688
  am__EXEEXT_TRUE='#'
 
14689
  am__EXEEXT_FALSE=
 
14690
fi
 
14691
 
 
14692
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
14693
  as_fn_error "conditional \"AMDEP\" was never defined.
 
14694
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14695
fi
 
14696
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
14697
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
14698
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14699
fi
 
14700
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
14701
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
14702
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14703
fi
 
14704
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
14705
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
14706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14707
fi
 
14708
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
14709
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
14710
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14711
fi
 
14712
if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
 
14713
  as_fn_error "conditional \"DEBUG_BUILD\" was never defined.
 
14714
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14715
fi
 
14716
if test -z "${BUILD_X86_TRUE}" && test -z "${BUILD_X86_FALSE}"; then
 
14717
  as_fn_error "conditional \"BUILD_X86\" was never defined.
 
14718
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14719
fi
 
14720
if test -z "${BUILD_PPC_TRUE}" && test -z "${BUILD_PPC_FALSE}"; then
 
14721
  as_fn_error "conditional \"BUILD_PPC\" was never defined.
 
14722
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14723
fi
 
14724
if test -z "${BUILD_ARM_TRUE}" && test -z "${BUILD_ARM_FALSE}"; then
 
14725
  as_fn_error "conditional \"BUILD_ARM\" was never defined.
 
14726
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14727
fi
 
14728
 
 
14729
: ${CONFIG_STATUS=./config.status}
 
14730
ac_write_fail=0
 
14731
ac_clean_files_save=$ac_clean_files
 
14732
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
14733
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
14734
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
14735
as_write_fail=0
 
14736
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
14737
#! $SHELL
 
14738
# Generated by $as_me.
 
14739
# Run this file to recreate the current configuration.
 
14740
# Compiler output produced by configure, useful for debugging
 
14741
# configure, is in config.log if it exists.
 
14742
 
 
14743
debug=false
 
14744
ac_cs_recheck=false
 
14745
ac_cs_silent=false
 
14746
 
 
14747
SHELL=\${CONFIG_SHELL-$SHELL}
 
14748
export SHELL
 
14749
_ASEOF
 
14750
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
14751
## -------------------- ##
 
14752
## M4sh Initialization. ##
 
14753
## -------------------- ##
 
14754
 
 
14755
# Be more Bourne compatible
 
14756
DUALCASE=1; export DUALCASE # for MKS sh
 
14757
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
14758
  emulate sh
 
14759
  NULLCMD=:
 
14760
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
14761
  # is contrary to our usage.  Disable this feature.
 
14762
  alias -g '${1+"$@"}'='"$@"'
 
14763
  setopt NO_GLOB_SUBST
 
14764
else
 
14765
  case `(set -o) 2>/dev/null` in #(
 
14766
  *posix*) :
 
14767
    set -o posix ;; #(
 
14768
  *) :
 
14769
     ;;
 
14770
esac
 
14771
fi
 
14772
 
 
14773
 
 
14774
as_nl='
 
14775
'
 
14776
export as_nl
 
14777
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
14778
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
14779
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
14780
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
14781
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
14782
# but without wasting forks for bash or zsh.
 
14783
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
14784
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14785
  as_echo='print -r --'
 
14786
  as_echo_n='print -rn --'
 
14787
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14788
  as_echo='printf %s\n'
 
14789
  as_echo_n='printf %s'
 
14790
else
 
14791
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
14792
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
14793
    as_echo_n='/usr/ucb/echo -n'
 
14794
  else
 
14795
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
14796
    as_echo_n_body='eval
 
14797
      arg=$1;
 
14798
      case $arg in #(
 
14799
      *"$as_nl"*)
 
14800
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
14801
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
14802
      esac;
 
14803
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
14804
    '
 
14805
    export as_echo_n_body
 
14806
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
14807
  fi
 
14808
  export as_echo_body
 
14809
  as_echo='sh -c $as_echo_body as_echo'
 
14810
fi
 
14811
 
 
14812
# The user is always right.
 
14813
if test "${PATH_SEPARATOR+set}" != set; then
 
14814
  PATH_SEPARATOR=:
 
14815
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
14816
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
14817
      PATH_SEPARATOR=';'
 
14818
  }
 
14819
fi
 
14820
 
 
14821
 
 
14822
# IFS
 
14823
# We need space, tab and new line, in precisely that order.  Quoting is
 
14824
# there to prevent editors from complaining about space-tab.
 
14825
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
14826
# splitting by setting IFS to empty value.)
 
14827
IFS=" ""        $as_nl"
 
14828
 
 
14829
# Find who we are.  Look in the path if we contain no directory separator.
 
14830
case $0 in #((
 
14831
  *[\\/]* ) as_myself=$0 ;;
 
14832
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14833
for as_dir in $PATH
 
14834
do
 
14835
  IFS=$as_save_IFS
 
14836
  test -z "$as_dir" && as_dir=.
 
14837
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
14838
  done
 
14839
IFS=$as_save_IFS
 
14840
 
 
14841
     ;;
 
14842
esac
 
14843
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
14844
# in which case we are not to be found in the path.
 
14845
if test "x$as_myself" = x; then
 
14846
  as_myself=$0
 
14847
fi
 
14848
if test ! -f "$as_myself"; then
 
14849
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
14850
  exit 1
 
14851
fi
 
14852
 
 
14853
# Unset variables that we do not need and which cause bugs (e.g. in
 
14854
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
14855
# suppresses any "Segmentation fault" message there.  '((' could
 
14856
# trigger a bug in pdksh 5.2.14.
 
14857
for as_var in BASH_ENV ENV MAIL MAILPATH
 
14858
do eval test x\${$as_var+set} = xset \
 
14859
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
14860
done
 
14861
PS1='$ '
 
14862
PS2='> '
 
14863
PS4='+ '
 
14864
 
 
14865
# NLS nuisances.
 
14866
LC_ALL=C
 
14867
export LC_ALL
 
14868
LANGUAGE=C
 
14869
export LANGUAGE
 
14870
 
 
14871
# CDPATH.
 
14872
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14873
 
 
14874
 
 
14875
# as_fn_error ERROR [LINENO LOG_FD]
 
14876
# ---------------------------------
 
14877
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
14878
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
14879
# script with status $?, using 1 if that was 0.
 
14880
as_fn_error ()
 
14881
{
 
14882
  as_status=$?; test $as_status -eq 0 && as_status=1
 
14883
  if test "$3"; then
 
14884
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
14885
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
14886
  fi
 
14887
  $as_echo "$as_me: error: $1" >&2
 
14888
  as_fn_exit $as_status
 
14889
} # as_fn_error
 
14890
 
 
14891
 
 
14892
# as_fn_set_status STATUS
 
14893
# -----------------------
 
14894
# Set $? to STATUS, without forking.
 
14895
as_fn_set_status ()
 
14896
{
 
14897
  return $1
 
14898
} # as_fn_set_status
 
14899
 
 
14900
# as_fn_exit STATUS
 
14901
# -----------------
 
14902
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
14903
as_fn_exit ()
 
14904
{
 
14905
  set +e
 
14906
  as_fn_set_status $1
 
14907
  exit $1
 
14908
} # as_fn_exit
 
14909
 
 
14910
# as_fn_unset VAR
 
14911
# ---------------
 
14912
# Portably unset VAR.
 
14913
as_fn_unset ()
 
14914
{
 
14915
  { eval $1=; unset $1;}
 
14916
}
 
14917
as_unset=as_fn_unset
 
14918
# as_fn_append VAR VALUE
 
14919
# ----------------------
 
14920
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
14921
# advantage of any shell optimizations that allow amortized linear growth over
 
14922
# repeated appends, instead of the typical quadratic growth present in naive
 
14923
# implementations.
 
14924
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
14925
  eval 'as_fn_append ()
 
14926
  {
 
14927
    eval $1+=\$2
 
14928
  }'
 
14929
else
 
14930
  as_fn_append ()
 
14931
  {
 
14932
    eval $1=\$$1\$2
 
14933
  }
 
14934
fi # as_fn_append
 
14935
 
 
14936
# as_fn_arith ARG...
 
14937
# ------------------
 
14938
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14939
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14940
# must be portable across $(()) and expr.
 
14941
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14942
  eval 'as_fn_arith ()
 
14943
  {
 
14944
    as_val=$(( $* ))
 
14945
  }'
 
14946
else
 
14947
  as_fn_arith ()
 
14948
  {
 
14949
    as_val=`expr "$@" || test $? -eq 1`
 
14950
  }
 
14951
fi # as_fn_arith
 
14952
 
 
14953
 
 
14954
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14955
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14956
  as_expr=expr
 
14957
else
 
14958
  as_expr=false
 
14959
fi
 
14960
 
 
14961
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14962
  as_basename=basename
 
14963
else
 
14964
  as_basename=false
 
14965
fi
 
14966
 
 
14967
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14968
  as_dirname=dirname
 
14969
else
 
14970
  as_dirname=false
 
14971
fi
 
14972
 
 
14973
as_me=`$as_basename -- "$0" ||
 
14974
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14975
         X"$0" : 'X\(//\)$' \| \
 
14976
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14977
$as_echo X/"$0" |
 
14978
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14979
            s//\1/
 
14980
            q
 
14981
          }
 
14982
          /^X\/\(\/\/\)$/{
 
14983
            s//\1/
 
14984
            q
 
14985
          }
 
14986
          /^X\/\(\/\).*/{
 
14987
            s//\1/
 
14988
            q
 
14989
          }
 
14990
          s/.*/./; q'`
 
14991
 
 
14992
# Avoid depending upon Character Ranges.
 
14993
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14994
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14995
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14996
as_cr_digits='0123456789'
 
14997
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14998
 
 
14999
ECHO_C= ECHO_N= ECHO_T=
 
15000
case `echo -n x` in #(((((
 
15001
-n*)
 
15002
  case `echo 'xy\c'` in
 
15003
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
15004
  xy)  ECHO_C='\c';;
 
15005
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
15006
       ECHO_T=' ';;
 
15007
  esac;;
 
15008
*)
 
15009
  ECHO_N='-n';;
 
15010
esac
 
15011
 
 
15012
rm -f conf$$ conf$$.exe conf$$.file
 
15013
if test -d conf$$.dir; then
 
15014
  rm -f conf$$.dir/conf$$.file
 
15015
else
 
15016
  rm -f conf$$.dir
 
15017
  mkdir conf$$.dir 2>/dev/null
 
15018
fi
 
15019
if (echo >conf$$.file) 2>/dev/null; then
 
15020
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15021
    as_ln_s='ln -s'
 
15022
    # ... but there are two gotchas:
 
15023
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
15024
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
15025
    # In both cases, we have to default to `cp -p'.
 
15026
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
15027
      as_ln_s='cp -p'
 
15028
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
15029
    as_ln_s=ln
 
15030
  else
 
15031
    as_ln_s='cp -p'
 
15032
  fi
 
15033
else
 
15034
  as_ln_s='cp -p'
 
15035
fi
 
15036
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
15037
rmdir conf$$.dir 2>/dev/null
 
15038
 
 
15039
 
 
15040
# as_fn_mkdir_p
 
15041
# -------------
 
15042
# Create "$as_dir" as a directory, including parents if necessary.
 
15043
as_fn_mkdir_p ()
 
15044
{
 
15045
 
 
15046
  case $as_dir in #(
 
15047
  -*) as_dir=./$as_dir;;
 
15048
  esac
 
15049
  test -d "$as_dir" || eval $as_mkdir_p || {
 
15050
    as_dirs=
 
15051
    while :; do
 
15052
      case $as_dir in #(
 
15053
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
15054
      *) as_qdir=$as_dir;;
 
15055
      esac
 
15056
      as_dirs="'$as_qdir' $as_dirs"
 
15057
      as_dir=`$as_dirname -- "$as_dir" ||
 
15058
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15059
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15060
         X"$as_dir" : 'X\(//\)$' \| \
 
15061
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
15062
$as_echo X"$as_dir" |
 
15063
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15064
            s//\1/
 
15065
            q
 
15066
          }
 
15067
          /^X\(\/\/\)[^/].*/{
 
15068
            s//\1/
 
15069
            q
 
15070
          }
 
15071
          /^X\(\/\/\)$/{
 
15072
            s//\1/
 
15073
            q
 
15074
          }
 
15075
          /^X\(\/\).*/{
 
15076
            s//\1/
 
15077
            q
 
15078
          }
 
15079
          s/.*/./; q'`
 
15080
      test -d "$as_dir" && break
 
15081
    done
 
15082
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15083
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
15084
 
 
15085
 
 
15086
} # as_fn_mkdir_p
 
15087
if mkdir -p . 2>/dev/null; then
 
15088
  as_mkdir_p='mkdir -p "$as_dir"'
 
15089
else
 
15090
  test -d ./-p && rmdir ./-p
 
15091
  as_mkdir_p=false
 
15092
fi
 
15093
 
 
15094
if test -x / >/dev/null 2>&1; then
 
15095
  as_test_x='test -x'
 
15096
else
 
15097
  if ls -dL / >/dev/null 2>&1; then
 
15098
    as_ls_L_option=L
 
15099
  else
 
15100
    as_ls_L_option=
 
15101
  fi
 
15102
  as_test_x='
 
15103
    eval sh -c '\''
 
15104
      if test -d "$1"; then
 
15105
        test -d "$1/.";
 
15106
      else
 
15107
        case $1 in #(
 
15108
        -*)set "./$1";;
 
15109
        esac;
 
15110
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
15111
        ???[sx]*):;;*)false;;esac;fi
 
15112
    '\'' sh
 
15113
  '
 
15114
fi
 
15115
as_executable_p=$as_test_x
 
15116
 
 
15117
# Sed expression to map a string onto a valid CPP name.
 
15118
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
15119
 
 
15120
# Sed expression to map a string onto a valid variable name.
 
15121
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
15122
 
 
15123
 
 
15124
exec 6>&1
 
15125
## ----------------------------------- ##
 
15126
## Main body of $CONFIG_STATUS script. ##
 
15127
## ----------------------------------- ##
 
15128
_ASEOF
 
15129
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
15130
 
 
15131
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15132
# Save the log message, to keep $0 and so on meaningful, and to
 
15133
# report actual input values of CONFIG_FILES etc. instead of their
 
15134
# values after options handling.
 
15135
ac_log="
 
15136
This file was extended by libclamavc++ $as_me devel, which was
 
15137
generated by GNU Autoconf 2.65.  Invocation command line was
 
15138
 
 
15139
  CONFIG_FILES    = $CONFIG_FILES
 
15140
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
15141
  CONFIG_LINKS    = $CONFIG_LINKS
 
15142
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
15143
  $ $0 $@
 
15144
 
 
15145
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
15146
"
 
15147
 
 
15148
_ACEOF
 
15149
 
 
15150
case $ac_config_files in *"
 
15151
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
15152
esac
 
15153
 
 
15154
case $ac_config_headers in *"
 
15155
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
15156
esac
 
15157
 
 
15158
 
 
15159
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15160
# Files that config.status was made for.
 
15161
config_files="$ac_config_files"
 
15162
config_headers="$ac_config_headers"
 
15163
config_commands="$ac_config_commands"
 
15164
 
 
15165
_ACEOF
 
15166
 
 
15167
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15168
ac_cs_usage="\
 
15169
\`$as_me' instantiates files and other configuration actions
 
15170
from templates according to the current configuration.  Unless the files
 
15171
and actions are specified as TAGs, all are instantiated by default.
 
15172
 
 
15173
Usage: $0 [OPTION]... [TAG]...
 
15174
 
 
15175
  -h, --help       print this help, then exit
 
15176
  -V, --version    print version number and configuration settings, then exit
 
15177
      --config     print configuration, then exit
 
15178
  -q, --quiet, --silent
 
15179
                   do not print progress messages
 
15180
  -d, --debug      don't remove temporary files
 
15181
      --recheck    update $as_me by reconfiguring in the same conditions
 
15182
      --file=FILE[:TEMPLATE]
 
15183
                   instantiate the configuration file FILE
 
15184
      --header=FILE[:TEMPLATE]
 
15185
                   instantiate the configuration header FILE
 
15186
 
 
15187
Configuration files:
 
15188
$config_files
 
15189
 
 
15190
Configuration headers:
 
15191
$config_headers
 
15192
 
 
15193
Configuration commands:
 
15194
$config_commands
 
15195
 
 
15196
Report bugs to <http://bugs.clamav.net>."
 
15197
 
 
15198
_ACEOF
 
15199
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15200
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
15201
ac_cs_version="\\
 
15202
libclamavc++ config.status devel
 
15203
configured by $0, generated by GNU Autoconf 2.65,
 
15204
  with options \\"\$ac_cs_config\\"
 
15205
 
 
15206
Copyright (C) 2009 Free Software Foundation, Inc.
 
15207
This config.status script is free software; the Free Software Foundation
 
15208
gives unlimited permission to copy, distribute and modify it."
 
15209
 
 
15210
ac_pwd='$ac_pwd'
 
15211
srcdir='$srcdir'
 
15212
INSTALL='$INSTALL'
 
15213
MKDIR_P='$MKDIR_P'
 
15214
AWK='$AWK'
 
15215
test -n "\$AWK" || AWK=awk
 
15216
_ACEOF
 
15217
 
 
15218
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15219
# The default lists apply if the user does not specify any file.
 
15220
ac_need_defaults=:
 
15221
while test $# != 0
 
15222
do
 
15223
  case $1 in
 
15224
  --*=*)
 
15225
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15226
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
15227
    ac_shift=:
 
15228
    ;;
 
15229
  *)
 
15230
    ac_option=$1
 
15231
    ac_optarg=$2
 
15232
    ac_shift=shift
 
15233
    ;;
 
15234
  esac
 
15235
 
 
15236
  case $ac_option in
 
15237
  # Handling of the options.
 
15238
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
15239
    ac_cs_recheck=: ;;
 
15240
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15241
    $as_echo "$ac_cs_version"; exit ;;
 
15242
  --config | --confi | --conf | --con | --co | --c )
 
15243
    $as_echo "$ac_cs_config"; exit ;;
 
15244
  --debug | --debu | --deb | --de | --d | -d )
 
15245
    debug=: ;;
 
15246
  --file | --fil | --fi | --f )
 
15247
    $ac_shift
 
15248
    case $ac_optarg in
 
15249
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15250
    esac
 
15251
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
15252
    ac_need_defaults=false;;
 
15253
  --header | --heade | --head | --hea )
 
15254
    $ac_shift
 
15255
    case $ac_optarg in
 
15256
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15257
    esac
 
15258
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
15259
    ac_need_defaults=false;;
 
15260
  --he | --h)
 
15261
    # Conflict between --help and --header
 
15262
    as_fn_error "ambiguous option: \`$1'
 
15263
Try \`$0 --help' for more information.";;
 
15264
  --help | --hel | -h )
 
15265
    $as_echo "$ac_cs_usage"; exit ;;
 
15266
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15267
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15268
    ac_cs_silent=: ;;
 
15269
 
 
15270
  # This is an error.
 
15271
  -*) as_fn_error "unrecognized option: \`$1'
 
15272
Try \`$0 --help' for more information." ;;
 
15273
 
 
15274
  *) as_fn_append ac_config_targets " $1"
 
15275
     ac_need_defaults=false ;;
 
15276
 
 
15277
  esac
 
15278
  shift
 
15279
done
 
15280
 
 
15281
ac_configure_extra_args=
 
15282
 
 
15283
if $ac_cs_silent; then
 
15284
  exec 6>/dev/null
 
15285
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15286
fi
 
15287
 
 
15288
_ACEOF
 
15289
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15290
if \$ac_cs_recheck; then
 
15291
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15292
  shift
 
15293
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15294
  CONFIG_SHELL='$SHELL'
 
15295
  export CONFIG_SHELL
 
15296
  exec "\$@"
 
15297
fi
 
15298
 
 
15299
_ACEOF
 
15300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15301
exec 5>>config.log
 
15302
{
 
15303
  echo
 
15304
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15305
## Running $as_me. ##
 
15306
_ASBOX
 
15307
  $as_echo "$ac_log"
 
15308
} >&5
 
15309
 
 
15310
_ACEOF
 
15311
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15312
#
 
15313
# INIT-COMMANDS
 
15314
#
 
15315
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
15316
 
 
15317
 
 
15318
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
15319
# if CDPATH is set.
 
15320
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15321
 
 
15322
sed_quote_subst='$sed_quote_subst'
 
15323
double_quote_subst='$double_quote_subst'
 
15324
delay_variable_subst='$delay_variable_subst'
 
15325
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15326
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
15327
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15328
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
15329
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
15330
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
15331
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15332
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
15333
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15334
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15335
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
15336
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15337
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
15338
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
15339
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15340
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15341
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15342
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
15343
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
15344
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
15345
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
15346
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
15347
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
15348
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
15349
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
15350
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
15351
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15352
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15353
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
15354
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
15355
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
15356
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
15357
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15358
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
15359
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
15360
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15361
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15362
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15363
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
15364
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15365
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
15366
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
15367
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
15368
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
15369
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
15370
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15371
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
15372
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
15373
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
15374
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
15375
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15376
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
15377
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
15378
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15379
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
15380
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
15381
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
15382
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
15383
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
15384
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
15385
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
15386
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
15387
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15388
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15389
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
15390
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
15391
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15392
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15393
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
15394
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15395
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15396
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15397
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15398
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15399
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15400
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15401
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15402
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15403
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15404
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15405
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
15406
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
15407
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
15408
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
15409
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15410
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
15411
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15412
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
15413
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15414
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
15415
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15416
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15417
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15418
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15419
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15420
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
15421
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15422
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15423
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
15424
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15425
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15426
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15427
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15428
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15429
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15430
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15431
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15432
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15433
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
15434
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
15435
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15436
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15437
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
15438
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
15439
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
15440
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15441
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15442
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15443
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
15444
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15445
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15446
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15447
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15448
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15449
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15450
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15451
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15452
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15453
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15454
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15455
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15456
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15457
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15458
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15459
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15460
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15461
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15462
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15463
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15464
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15465
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15466
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15467
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15468
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15469
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15470
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15471
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15472
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15473
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15474
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15475
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15476
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15477
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15478
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15479
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15480
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15481
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15482
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15483
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15484
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15485
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15486
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15487
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15488
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15489
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15490
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15491
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15492
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15493
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15494
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15495
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15496
 
 
15497
LTCC='$LTCC'
 
15498
LTCFLAGS='$LTCFLAGS'
 
15499
compiler='$compiler_DEFAULT'
 
15500
 
 
15501
# Quote evaled strings.
 
15502
for var in SED \
 
15503
GREP \
 
15504
EGREP \
 
15505
FGREP \
 
15506
LD \
 
15507
NM \
 
15508
LN_S \
 
15509
lt_SP2NL \
 
15510
lt_NL2SP \
 
15511
reload_flag \
 
15512
OBJDUMP \
 
15513
deplibs_check_method \
 
15514
file_magic_cmd \
 
15515
AR \
 
15516
AR_FLAGS \
 
15517
STRIP \
 
15518
RANLIB \
 
15519
CC \
 
15520
CFLAGS \
 
15521
compiler \
 
15522
lt_cv_sys_global_symbol_pipe \
 
15523
lt_cv_sys_global_symbol_to_cdecl \
 
15524
lt_cv_sys_global_symbol_to_c_name_address \
 
15525
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
15526
SHELL \
 
15527
ECHO \
 
15528
lt_prog_compiler_no_builtin_flag \
 
15529
lt_prog_compiler_wl \
 
15530
lt_prog_compiler_pic \
 
15531
lt_prog_compiler_static \
 
15532
lt_cv_prog_compiler_c_o \
 
15533
need_locks \
 
15534
DSYMUTIL \
 
15535
NMEDIT \
 
15536
LIPO \
 
15537
OTOOL \
 
15538
OTOOL64 \
 
15539
shrext_cmds \
 
15540
export_dynamic_flag_spec \
 
15541
whole_archive_flag_spec \
 
15542
compiler_needs_object \
 
15543
with_gnu_ld \
 
15544
allow_undefined_flag \
 
15545
no_undefined_flag \
 
15546
hardcode_libdir_flag_spec \
 
15547
hardcode_libdir_flag_spec_ld \
 
15548
hardcode_libdir_separator \
 
15549
fix_srcfile_path \
 
15550
exclude_expsyms \
 
15551
include_expsyms \
 
15552
file_list_spec \
 
15553
variables_saved_for_relink \
 
15554
libname_spec \
 
15555
library_names_spec \
 
15556
soname_spec \
 
15557
finish_eval \
 
15558
old_striplib \
 
15559
striplib \
 
15560
compiler_lib_search_dirs \
 
15561
predep_objects \
 
15562
postdep_objects \
 
15563
predeps \
 
15564
postdeps \
 
15565
compiler_lib_search_path \
 
15566
LD_CXX \
 
15567
compiler_CXX \
 
15568
lt_prog_compiler_no_builtin_flag_CXX \
 
15569
lt_prog_compiler_wl_CXX \
 
15570
lt_prog_compiler_pic_CXX \
 
15571
lt_prog_compiler_static_CXX \
 
15572
lt_cv_prog_compiler_c_o_CXX \
 
15573
export_dynamic_flag_spec_CXX \
 
15574
whole_archive_flag_spec_CXX \
 
15575
compiler_needs_object_CXX \
 
15576
with_gnu_ld_CXX \
 
15577
allow_undefined_flag_CXX \
 
15578
no_undefined_flag_CXX \
 
15579
hardcode_libdir_flag_spec_CXX \
 
15580
hardcode_libdir_flag_spec_ld_CXX \
 
15581
hardcode_libdir_separator_CXX \
 
15582
fix_srcfile_path_CXX \
 
15583
exclude_expsyms_CXX \
 
15584
include_expsyms_CXX \
 
15585
file_list_spec_CXX \
 
15586
compiler_lib_search_dirs_CXX \
 
15587
predep_objects_CXX \
 
15588
postdep_objects_CXX \
 
15589
predeps_CXX \
 
15590
postdeps_CXX \
 
15591
compiler_lib_search_path_CXX; do
 
15592
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15593
    *[\\\\\\\`\\"\\\$]*)
 
15594
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
15595
      ;;
 
15596
    *)
 
15597
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15598
      ;;
 
15599
    esac
 
15600
done
 
15601
 
 
15602
# Double-quote double-evaled strings.
 
15603
for var in reload_cmds \
 
15604
old_postinstall_cmds \
 
15605
old_postuninstall_cmds \
 
15606
old_archive_cmds \
 
15607
extract_expsyms_cmds \
 
15608
old_archive_from_new_cmds \
 
15609
old_archive_from_expsyms_cmds \
 
15610
archive_cmds \
 
15611
archive_expsym_cmds \
 
15612
module_cmds \
 
15613
module_expsym_cmds \
 
15614
export_symbols_cmds \
 
15615
prelink_cmds \
 
15616
postinstall_cmds \
 
15617
postuninstall_cmds \
 
15618
finish_cmds \
 
15619
sys_lib_search_path_spec \
 
15620
sys_lib_dlsearch_path_spec \
 
15621
old_archive_cmds_CXX \
 
15622
old_archive_from_new_cmds_CXX \
 
15623
old_archive_from_expsyms_cmds_CXX \
 
15624
archive_cmds_CXX \
 
15625
archive_expsym_cmds_CXX \
 
15626
module_cmds_CXX \
 
15627
module_expsym_cmds_CXX \
 
15628
export_symbols_cmds_CXX \
 
15629
prelink_cmds_CXX; do
 
15630
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15631
    *[\\\\\\\`\\"\\\$]*)
 
15632
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
15633
      ;;
 
15634
    *)
 
15635
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15636
      ;;
 
15637
    esac
 
15638
done
 
15639
 
 
15640
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
15641
case \$lt_ECHO in
 
15642
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
15643
  ;;
 
15644
esac
 
15645
 
 
15646
ac_aux_dir='$ac_aux_dir'
 
15647
xsi_shell='$xsi_shell'
 
15648
lt_shell_append='$lt_shell_append'
 
15649
 
 
15650
# See if we are running on zsh, and set the options which allow our
 
15651
# commands through without removal of \ escapes INIT.
 
15652
if test -n "\${ZSH_VERSION+set}" ; then
 
15653
   setopt NO_GLOB_SUBST
 
15654
fi
 
15655
 
 
15656
 
 
15657
    PACKAGE='$PACKAGE'
 
15658
    VERSION='$VERSION'
 
15659
    TIMESTAMP='$TIMESTAMP'
 
15660
    RM='$RM'
 
15661
    ofile='$ofile'
 
15662
 
 
15663
 
 
15664
 
 
15665
 
 
15666
 
 
15667
 
 
15668
_ACEOF
 
15669
 
 
15670
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15671
 
 
15672
# Handling of arguments.
 
15673
for ac_config_target in $ac_config_targets
 
15674
do
 
15675
  case $ac_config_target in
 
15676
    "clamavcxx-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamavcxx-config.h" ;;
 
15677
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
15678
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
15679
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
15680
 
 
15681
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
15682
  esac
 
15683
done
 
15684
 
 
15685
 
 
15686
# If the user did not use the arguments to specify the items to instantiate,
 
15687
# then the envvar interface is used.  Set only those that are not.
 
15688
# We use the long form for the default assignment because of an extremely
 
15689
# bizarre bug on SunOS 4.1.3.
 
15690
if $ac_need_defaults; then
 
15691
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
15692
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
15693
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
15694
fi
 
15695
 
 
15696
# Have a temporary directory for convenience.  Make it in the build tree
 
15697
# simply because there is no reason against having it here, and in addition,
 
15698
# creating and moving files from /tmp can sometimes cause problems.
 
15699
# Hook for its removal unless debugging.
 
15700
# Note that there is a small window in which the directory will not be cleaned:
 
15701
# after its creation but before its name has been assigned to `$tmp'.
 
15702
$debug ||
 
15703
{
 
15704
  tmp=
 
15705
  trap 'exit_status=$?
 
15706
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
15707
' 0
 
15708
  trap 'as_fn_exit 1' 1 2 13 15
 
15709
}
 
15710
# Create a (secure) tmp directory for tmp files.
 
15711
 
 
15712
{
 
15713
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
15714
  test -n "$tmp" && test -d "$tmp"
 
15715
}  ||
 
15716
{
 
15717
  tmp=./conf$$-$RANDOM
 
15718
  (umask 077 && mkdir "$tmp")
 
15719
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
15720
 
 
15721
# Set up the scripts for CONFIG_FILES section.
 
15722
# No need to generate them if there are no CONFIG_FILES.
 
15723
# This happens for instance with `./config.status config.h'.
 
15724
if test -n "$CONFIG_FILES"; then
 
15725
 
 
15726
 
 
15727
ac_cr=`echo X | tr X '\015'`
 
15728
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
15729
# But we know of no other shell where ac_cr would be empty at this
 
15730
# point, so we can use a bashism as a fallback.
 
15731
if test "x$ac_cr" = x; then
 
15732
  eval ac_cr=\$\'\\r\'
 
15733
fi
 
15734
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
15735
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
15736
  ac_cs_awk_cr='\r'
 
15737
else
 
15738
  ac_cs_awk_cr=$ac_cr
 
15739
fi
 
15740
 
 
15741
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
15742
_ACEOF
 
15743
 
 
15744
 
 
15745
{
 
15746
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
15747
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
15748
  echo "_ACEOF"
 
15749
} >conf$$subs.sh ||
 
15750
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15751
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
15752
ac_delim='%!_!# '
 
15753
for ac_last_try in false false false false false :; do
 
15754
  . ./conf$$subs.sh ||
 
15755
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15756
 
 
15757
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
15758
  if test $ac_delim_n = $ac_delim_num; then
 
15759
    break
 
15760
  elif $ac_last_try; then
 
15761
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15762
  else
 
15763
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15764
  fi
 
15765
done
 
15766
rm -f conf$$subs.sh
 
15767
 
 
15768
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15769
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
15770
_ACEOF
 
15771
sed -n '
 
15772
h
 
15773
s/^/S["/; s/!.*/"]=/
 
15774
p
 
15775
g
 
15776
s/^[^!]*!//
 
15777
:repl
 
15778
t repl
 
15779
s/'"$ac_delim"'$//
 
15780
t delim
 
15781
:nl
 
15782
h
 
15783
s/\(.\{148\}\)..*/\1/
 
15784
t more1
 
15785
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
15786
p
 
15787
n
 
15788
b repl
 
15789
:more1
 
15790
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15791
p
 
15792
g
 
15793
s/.\{148\}//
 
15794
t nl
 
15795
:delim
 
15796
h
 
15797
s/\(.\{148\}\)..*/\1/
 
15798
t more2
 
15799
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
15800
p
 
15801
b
 
15802
:more2
 
15803
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15804
p
 
15805
g
 
15806
s/.\{148\}//
 
15807
t delim
 
15808
' <conf$$subs.awk | sed '
 
15809
/^[^""]/{
 
15810
  N
 
15811
  s/\n//
 
15812
}
 
15813
' >>$CONFIG_STATUS || ac_write_fail=1
 
15814
rm -f conf$$subs.awk
 
15815
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15816
_ACAWK
 
15817
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
15818
  for (key in S) S_is_set[key] = 1
 
15819
  FS = ""
 
15820
 
 
15821
}
 
15822
{
 
15823
  line = $ 0
 
15824
  nfields = split(line, field, "@")
 
15825
  substed = 0
 
15826
  len = length(field[1])
 
15827
  for (i = 2; i < nfields; i++) {
 
15828
    key = field[i]
 
15829
    keylen = length(key)
 
15830
    if (S_is_set[key]) {
 
15831
      value = S[key]
 
15832
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
15833
      len += length(value) + length(field[++i])
 
15834
      substed = 1
 
15835
    } else
 
15836
      len += 1 + keylen
 
15837
  }
 
15838
 
 
15839
  print line
 
15840
}
 
15841
 
 
15842
_ACAWK
 
15843
_ACEOF
 
15844
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15845
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
15846
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
15847
else
 
15848
  cat
 
15849
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
15850
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
15851
_ACEOF
 
15852
 
 
15853
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
15854
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
15855
# trailing colons and then remove the whole line if VPATH becomes empty
 
15856
# (actually we leave an empty line to preserve line numbers).
 
15857
if test "x$srcdir" = x.; then
 
15858
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
15859
s/:*\$(srcdir):*/:/
 
15860
s/:*\${srcdir}:*/:/
 
15861
s/:*@srcdir@:*/:/
 
15862
s/^\([^=]*=[     ]*\):*/\1/
 
15863
s/:*$//
 
15864
s/^[^=]*=[       ]*$//
 
15865
}'
 
15866
fi
 
15867
 
 
15868
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15869
fi # test -n "$CONFIG_FILES"
 
15870
 
 
15871
# Set up the scripts for CONFIG_HEADERS section.
 
15872
# No need to generate them if there are no CONFIG_HEADERS.
 
15873
# This happens for instance with `./config.status Makefile'.
 
15874
if test -n "$CONFIG_HEADERS"; then
 
15875
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
15876
BEGIN {
 
15877
_ACEOF
 
15878
 
 
15879
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
15880
# here-document in config.status, that substitutes the proper values into
 
15881
# config.h.in to produce config.h.
 
15882
 
 
15883
# Create a delimiter string that does not exist in confdefs.h, to ease
 
15884
# handling of long lines.
 
15885
ac_delim='%!_!# '
 
15886
for ac_last_try in false false :; do
 
15887
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
15888
  if test -z "$ac_t"; then
 
15889
    break
 
15890
  elif $ac_last_try; then
 
15891
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
15892
  else
 
15893
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15894
  fi
 
15895
done
 
15896
 
 
15897
# For the awk script, D is an array of macro values keyed by name,
 
15898
# likewise P contains macro parameters if any.  Preserve backslash
 
15899
# newline sequences.
 
15900
 
 
15901
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
15902
sed -n '
 
15903
s/.\{148\}/&'"$ac_delim"'/g
 
15904
t rset
 
15905
:rset
 
15906
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
15907
t def
 
15908
d
 
15909
:def
 
15910
s/\\$//
 
15911
t bsnl
 
15912
s/["\\]/\\&/g
 
15913
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15914
D["\1"]=" \3"/p
 
15915
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
15916
d
 
15917
:bsnl
 
15918
s/["\\]/\\&/g
 
15919
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15920
D["\1"]=" \3\\\\\\n"\\/p
 
15921
t cont
 
15922
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
15923
t cont
 
15924
d
 
15925
:cont
 
15926
n
 
15927
s/.\{148\}/&'"$ac_delim"'/g
 
15928
t clear
 
15929
:clear
 
15930
s/\\$//
 
15931
t bsnlc
 
15932
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
15933
d
 
15934
:bsnlc
 
15935
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
15936
b cont
 
15937
' <confdefs.h | sed '
 
15938
s/'"$ac_delim"'/"\\\
 
15939
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
15940
 
 
15941
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15942
  for (key in D) D_is_set[key] = 1
 
15943
  FS = ""
 
15944
}
 
15945
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
15946
  line = \$ 0
 
15947
  split(line, arg, " ")
 
15948
  if (arg[1] == "#") {
 
15949
    defundef = arg[2]
 
15950
    mac1 = arg[3]
 
15951
  } else {
 
15952
    defundef = substr(arg[1], 2)
 
15953
    mac1 = arg[2]
 
15954
  }
 
15955
  split(mac1, mac2, "(") #)
 
15956
  macro = mac2[1]
 
15957
  prefix = substr(line, 1, index(line, defundef) - 1)
 
15958
  if (D_is_set[macro]) {
 
15959
    # Preserve the white space surrounding the "#".
 
15960
    print prefix "define", macro P[macro] D[macro]
 
15961
    next
 
15962
  } else {
 
15963
    # Replace #undef with comments.  This is necessary, for example,
 
15964
    # in the case of _POSIX_SOURCE, which is predefined and required
 
15965
    # on some systems where configure will not decide to define it.
 
15966
    if (defundef == "undef") {
 
15967
      print "/*", prefix defundef, macro, "*/"
 
15968
      next
 
15969
    }
 
15970
  }
 
15971
}
 
15972
{ print }
 
15973
_ACAWK
 
15974
_ACEOF
 
15975
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15976
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
15977
fi # test -n "$CONFIG_HEADERS"
 
15978
 
 
15979
 
 
15980
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
15981
shift
 
15982
for ac_tag
 
15983
do
 
15984
  case $ac_tag in
 
15985
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
15986
  esac
 
15987
  case $ac_mode$ac_tag in
 
15988
  :[FHL]*:*);;
 
15989
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
15990
  :[FH]-) ac_tag=-:-;;
 
15991
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15992
  esac
 
15993
  ac_save_IFS=$IFS
 
15994
  IFS=:
 
15995
  set x $ac_tag
 
15996
  IFS=$ac_save_IFS
 
15997
  shift
 
15998
  ac_file=$1
 
15999
  shift
 
16000
 
 
16001
  case $ac_mode in
 
16002
  :L) ac_source=$1;;
 
16003
  :[FH])
 
16004
    ac_file_inputs=
 
16005
    for ac_f
 
16006
    do
 
16007
      case $ac_f in
 
16008
      -) ac_f="$tmp/stdin";;
 
16009
      *) # Look for the file first in the build tree, then in the source tree
 
16010
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
16011
         # because $ac_f cannot contain `:'.
 
16012
         test -f "$ac_f" ||
 
16013
           case $ac_f in
 
16014
           [\\/$]*) false;;
 
16015
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
16016
           esac ||
 
16017
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
16018
      esac
 
16019
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
16020
      as_fn_append ac_file_inputs " '$ac_f'"
 
16021
    done
 
16022
 
 
16023
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16024
    # use $as_me), people would be surprised to read:
 
16025
    #    /* config.h.  Generated by config.status.  */
 
16026
    configure_input='Generated from '`
 
16027
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
16028
        `' by configure.'
 
16029
    if test x"$ac_file" != x-; then
 
16030
      configure_input="$ac_file.  $configure_input"
 
16031
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
16032
$as_echo "$as_me: creating $ac_file" >&6;}
 
16033
    fi
 
16034
    # Neutralize special characters interpreted by sed in replacement strings.
 
16035
    case $configure_input in #(
 
16036
    *\&* | *\|* | *\\* )
 
16037
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
16038
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
16039
    *) ac_sed_conf_input=$configure_input;;
 
16040
    esac
 
16041
 
 
16042
    case $ac_tag in
 
16043
    *:-:* | *:-) cat >"$tmp/stdin" \
 
16044
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
16045
    esac
 
16046
    ;;
 
16047
  esac
 
16048
 
 
16049
  ac_dir=`$as_dirname -- "$ac_file" ||
 
16050
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16051
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16052
         X"$ac_file" : 'X\(//\)$' \| \
 
16053
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
16054
$as_echo X"$ac_file" |
 
16055
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16056
            s//\1/
 
16057
            q
 
16058
          }
 
16059
          /^X\(\/\/\)[^/].*/{
 
16060
            s//\1/
 
16061
            q
 
16062
          }
 
16063
          /^X\(\/\/\)$/{
 
16064
            s//\1/
 
16065
            q
 
16066
          }
 
16067
          /^X\(\/\).*/{
 
16068
            s//\1/
 
16069
            q
 
16070
          }
 
16071
          s/.*/./; q'`
 
16072
  as_dir="$ac_dir"; as_fn_mkdir_p
 
16073
  ac_builddir=.
 
16074
 
 
16075
case "$ac_dir" in
 
16076
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16077
*)
 
16078
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
16079
  # A ".." for each directory in $ac_dir_suffix.
 
16080
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
16081
  case $ac_top_builddir_sub in
 
16082
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16083
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
16084
  esac ;;
 
16085
esac
 
16086
ac_abs_top_builddir=$ac_pwd
 
16087
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
16088
# for backward compatibility:
 
16089
ac_top_builddir=$ac_top_build_prefix
 
16090
 
 
16091
case $srcdir in
 
16092
  .)  # We are building in place.
 
16093
    ac_srcdir=.
 
16094
    ac_top_srcdir=$ac_top_builddir_sub
 
16095
    ac_abs_top_srcdir=$ac_pwd ;;
 
16096
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
16097
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16098
    ac_top_srcdir=$srcdir
 
16099
    ac_abs_top_srcdir=$srcdir ;;
 
16100
  *) # Relative name.
 
16101
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
16102
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
16103
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
16104
esac
 
16105
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
16106
 
 
16107
 
 
16108
  case $ac_mode in
 
16109
  :F)
 
16110
  #
 
16111
  # CONFIG_FILE
 
16112
  #
 
16113
 
 
16114
  case $INSTALL in
 
16115
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
16116
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
16117
  esac
 
16118
  ac_MKDIR_P=$MKDIR_P
 
16119
  case $MKDIR_P in
 
16120
  [\\/$]* | ?:[\\/]* ) ;;
 
16121
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
16122
  esac
 
16123
_ACEOF
 
16124
 
 
16125
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16126
# If the template does not know about datarootdir, expand it.
 
16127
# FIXME: This hack should be removed a few years after 2.60.
 
16128
ac_datarootdir_hack=; ac_datarootdir_seen=
 
16129
ac_sed_dataroot='
 
16130
/datarootdir/ {
 
16131
  p
 
16132
  q
 
16133
}
 
16134
/@datadir@/p
 
16135
/@docdir@/p
 
16136
/@infodir@/p
 
16137
/@localedir@/p
 
16138
/@mandir@/p'
 
16139
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
16140
*datarootdir*) ac_datarootdir_seen=yes;;
 
16141
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
16142
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
16143
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
16144
_ACEOF
 
16145
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16146
  ac_datarootdir_hack='
 
16147
  s&@datadir@&$datadir&g
 
16148
  s&@docdir@&$docdir&g
 
16149
  s&@infodir@&$infodir&g
 
16150
  s&@localedir@&$localedir&g
 
16151
  s&@mandir@&$mandir&g
 
16152
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
16153
esac
 
16154
_ACEOF
 
16155
 
 
16156
# Neutralize VPATH when `$srcdir' = `.'.
 
16157
# Shell code in configure.ac might set extrasub.
 
16158
# FIXME: do we really want to maintain this feature?
 
16159
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16160
ac_sed_extra="$ac_vpsub
 
16161
$extrasub
 
16162
_ACEOF
 
16163
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16164
:t
 
16165
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
16166
s|@configure_input@|$ac_sed_conf_input|;t t
 
16167
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
16168
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
16169
s&@srcdir@&$ac_srcdir&;t t
 
16170
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
16171
s&@top_srcdir@&$ac_top_srcdir&;t t
 
16172
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
16173
s&@builddir@&$ac_builddir&;t t
 
16174
s&@abs_builddir@&$ac_abs_builddir&;t t
 
16175
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
16176
s&@INSTALL@&$ac_INSTALL&;t t
 
16177
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
16178
$ac_datarootdir_hack
 
16179
"
 
16180
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
16181
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16182
 
 
16183
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
16184
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
16185
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
16186
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16187
which seems to be undefined.  Please make sure it is defined." >&5
 
16188
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16189
which seems to be undefined.  Please make sure it is defined." >&2;}
 
16190
 
 
16191
  rm -f "$tmp/stdin"
 
16192
  case $ac_file in
 
16193
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
16194
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
16195
  esac \
 
16196
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16197
 ;;
 
16198
  :H)
 
16199
  #
 
16200
  # CONFIG_HEADER
 
16201
  #
 
16202
  if test x"$ac_file" != x-; then
 
16203
    {
 
16204
      $as_echo "/* $configure_input  */" \
 
16205
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
16206
    } >"$tmp/config.h" \
 
16207
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16208
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
16209
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
16210
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
16211
    else
 
16212
      rm -f "$ac_file"
 
16213
      mv "$tmp/config.h" "$ac_file" \
 
16214
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16215
    fi
 
16216
  else
 
16217
    $as_echo "/* $configure_input  */" \
 
16218
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
16219
      || as_fn_error "could not create -" "$LINENO" 5
 
16220
  fi
 
16221
# Compute "$ac_file"'s index in $config_headers.
 
16222
_am_arg="$ac_file"
 
16223
_am_stamp_count=1
 
16224
for _am_header in $config_headers :; do
 
16225
  case $_am_header in
 
16226
    $_am_arg | $_am_arg:* )
 
16227
      break ;;
 
16228
    * )
 
16229
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
16230
  esac
 
16231
done
 
16232
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16233
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16234
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16235
         X"$_am_arg" : 'X\(//\)$' \| \
 
16236
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16237
$as_echo X"$_am_arg" |
 
16238
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16239
            s//\1/
 
16240
            q
 
16241
          }
 
16242
          /^X\(\/\/\)[^/].*/{
 
16243
            s//\1/
 
16244
            q
 
16245
          }
 
16246
          /^X\(\/\/\)$/{
 
16247
            s//\1/
 
16248
            q
 
16249
          }
 
16250
          /^X\(\/\).*/{
 
16251
            s//\1/
 
16252
            q
 
16253
          }
 
16254
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16255
 ;;
 
16256
 
 
16257
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
16258
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16259
 ;;
 
16260
  esac
 
16261
 
 
16262
 
 
16263
  case $ac_file$ac_mode in
 
16264
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
16265
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16266
  # are listed without --file.  Let's play safe and only enable the eval
 
16267
  # if we detect the quoting.
 
16268
  case $CONFIG_FILES in
 
16269
  *\'*) eval set x "$CONFIG_FILES" ;;
 
16270
  *)   set x $CONFIG_FILES ;;
 
16271
  esac
 
16272
  shift
 
16273
  for mf
 
16274
  do
 
16275
    # Strip MF so we end up with the name of the file.
 
16276
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
16277
    # Check whether this is an Automake generated Makefile or not.
 
16278
    # We used to match only the files named `Makefile.in', but
 
16279
    # some people rename them; so instead we look at the file content.
 
16280
    # Grep'ing the first line is not enough: some people post-process
 
16281
    # each Makefile.in and add a new line on top of each file to say so.
 
16282
    # Grep'ing the whole file is not good either: AIX grep has a line
 
16283
    # limit of 2048, but all sed's we know have understand at least 4000.
 
16284
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
16285
      dirpart=`$as_dirname -- "$mf" ||
 
16286
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16287
         X"$mf" : 'X\(//\)[^/]' \| \
 
16288
         X"$mf" : 'X\(//\)$' \| \
 
16289
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
16290
$as_echo X"$mf" |
 
16291
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16292
            s//\1/
 
16293
            q
 
16294
          }
 
16295
          /^X\(\/\/\)[^/].*/{
 
16296
            s//\1/
 
16297
            q
 
16298
          }
 
16299
          /^X\(\/\/\)$/{
 
16300
            s//\1/
 
16301
            q
 
16302
          }
 
16303
          /^X\(\/\).*/{
 
16304
            s//\1/
 
16305
            q
 
16306
          }
 
16307
          s/.*/./; q'`
 
16308
    else
 
16309
      continue
 
16310
    fi
 
16311
    # Extract the definition of DEPDIR, am__include, and am__quote
 
16312
    # from the Makefile without running `make'.
 
16313
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
16314
    test -z "$DEPDIR" && continue
 
16315
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
16316
    test -z "am__include" && continue
 
16317
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
16318
    # When using ansi2knr, U may be empty or an underscore; expand it
 
16319
    U=`sed -n 's/^U = //p' < "$mf"`
 
16320
    # Find all dependency output files, they are included files with
 
16321
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
16322
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
16323
    # expansion.
 
16324
    for file in `sed -n "
 
16325
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
16326
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
16327
      # Make sure the directory exists.
 
16328
      test -f "$dirpart/$file" && continue
 
16329
      fdir=`$as_dirname -- "$file" ||
 
16330
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16331
         X"$file" : 'X\(//\)[^/]' \| \
 
16332
         X"$file" : 'X\(//\)$' \| \
 
16333
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
16334
$as_echo X"$file" |
 
16335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16336
            s//\1/
 
16337
            q
 
16338
          }
 
16339
          /^X\(\/\/\)[^/].*/{
 
16340
            s//\1/
 
16341
            q
 
16342
          }
 
16343
          /^X\(\/\/\)$/{
 
16344
            s//\1/
 
16345
            q
 
16346
          }
 
16347
          /^X\(\/\).*/{
 
16348
            s//\1/
 
16349
            q
 
16350
          }
 
16351
          s/.*/./; q'`
 
16352
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
16353
      # echo "creating $dirpart/$file"
 
16354
      echo '# dummy' > "$dirpart/$file"
 
16355
    done
 
16356
  done
 
16357
}
 
16358
 ;;
 
16359
    "libtool":C)
 
16360
 
 
16361
    # See if we are running on zsh, and set the options which allow our
 
16362
    # commands through without removal of \ escapes.
 
16363
    if test -n "${ZSH_VERSION+set}" ; then
 
16364
      setopt NO_GLOB_SUBST
 
16365
    fi
 
16366
 
 
16367
    cfgfile="${ofile}T"
 
16368
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
16369
    $RM "$cfgfile"
 
16370
 
 
16371
    cat <<_LT_EOF >> "$cfgfile"
 
16372
#! $SHELL
 
16373
 
 
16374
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
16375
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
16376
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16377
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
16378
#
 
16379
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
16380
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
16381
#   Written by Gordon Matzigkeit, 1996
 
16382
#
 
16383
#   This file is part of GNU Libtool.
 
16384
#
 
16385
# GNU Libtool is free software; you can redistribute it and/or
 
16386
# modify it under the terms of the GNU General Public License as
 
16387
# published by the Free Software Foundation; either version 2 of
 
16388
# the License, or (at your option) any later version.
 
16389
#
 
16390
# As a special exception to the GNU General Public License,
 
16391
# if you distribute this file as part of a program or library that
 
16392
# is built using GNU Libtool, you may include this file under the
 
16393
# same distribution terms that you use for the rest of that program.
 
16394
#
 
16395
# GNU Libtool is distributed in the hope that it will be useful,
 
16396
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16397
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16398
# GNU General Public License for more details.
 
16399
#
 
16400
# You should have received a copy of the GNU General Public License
 
16401
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
16402
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
16403
# obtained by writing to the Free Software Foundation, Inc.,
 
16404
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16405
 
 
16406
 
 
16407
# The names of the tagged configurations supported by this script.
 
16408
available_tags="CXX "
 
16409
 
 
16410
# ### BEGIN LIBTOOL CONFIG
 
16411
 
 
16412
# Which release of libtool.m4 was used?
 
16413
macro_version=$macro_version
 
16414
macro_revision=$macro_revision
 
16415
 
 
16416
# Whether or not to build static libraries.
 
16417
build_old_libs=$enable_static
 
16418
 
 
16419
# Whether or not to build shared libraries.
 
16420
build_libtool_libs=$enable_shared
 
16421
 
 
16422
# What type of objects to build.
 
16423
pic_mode=$pic_mode
 
16424
 
 
16425
# Whether or not to optimize for fast installation.
 
16426
fast_install=$enable_fast_install
 
16427
 
 
16428
# The host system.
 
16429
host_alias=$host_alias
 
16430
host=$host
 
16431
host_os=$host_os
 
16432
 
 
16433
# The build system.
 
16434
build_alias=$build_alias
 
16435
build=$build
 
16436
build_os=$build_os
 
16437
 
 
16438
# A sed program that does not truncate output.
 
16439
SED=$lt_SED
 
16440
 
 
16441
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
16442
Xsed="\$SED -e 1s/^X//"
 
16443
 
 
16444
# A grep program that handles long lines.
 
16445
GREP=$lt_GREP
 
16446
 
 
16447
# An ERE matcher.
 
16448
EGREP=$lt_EGREP
 
16449
 
 
16450
# A literal string matcher.
 
16451
FGREP=$lt_FGREP
 
16452
 
 
16453
# A BSD- or MS-compatible name lister.
 
16454
NM=$lt_NM
 
16455
 
 
16456
# Whether we need soft or hard links.
 
16457
LN_S=$lt_LN_S
 
16458
 
 
16459
# What is the maximum length of a command?
 
16460
max_cmd_len=$max_cmd_len
 
16461
 
 
16462
# Object file suffix (normally "o").
 
16463
objext=$ac_objext
 
16464
 
 
16465
# Executable file suffix (normally "").
 
16466
exeext=$exeext
 
16467
 
 
16468
# whether the shell understands "unset".
 
16469
lt_unset=$lt_unset
 
16470
 
 
16471
# turn spaces into newlines.
 
16472
SP2NL=$lt_lt_SP2NL
 
16473
 
 
16474
# turn newlines into spaces.
 
16475
NL2SP=$lt_lt_NL2SP
 
16476
 
 
16477
# How to create reloadable object files.
 
16478
reload_flag=$lt_reload_flag
 
16479
reload_cmds=$lt_reload_cmds
 
16480
 
 
16481
# An object symbol dumper.
 
16482
OBJDUMP=$lt_OBJDUMP
 
16483
 
 
16484
# Method to check whether dependent libraries are shared objects.
 
16485
deplibs_check_method=$lt_deplibs_check_method
 
16486
 
 
16487
# Command to use when deplibs_check_method == "file_magic".
 
16488
file_magic_cmd=$lt_file_magic_cmd
 
16489
 
 
16490
# The archiver.
 
16491
AR=$lt_AR
 
16492
AR_FLAGS=$lt_AR_FLAGS
 
16493
 
 
16494
# A symbol stripping program.
 
16495
STRIP=$lt_STRIP
 
16496
 
 
16497
# Commands used to install an old-style archive.
 
16498
RANLIB=$lt_RANLIB
 
16499
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16500
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16501
 
 
16502
# A C compiler.
 
16503
LTCC=$lt_CC
 
16504
 
 
16505
# LTCC compiler flags.
 
16506
LTCFLAGS=$lt_CFLAGS
 
16507
 
 
16508
# Take the output of nm and produce a listing of raw symbols and C names.
 
16509
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16510
 
 
16511
# Transform the output of nm in a proper C declaration.
 
16512
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16513
 
 
16514
# Transform the output of nm in a C name address pair.
 
16515
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16516
 
 
16517
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
16518
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
16519
 
 
16520
# The name of the directory that contains temporary libtool files.
 
16521
objdir=$objdir
 
16522
 
 
16523
# Shell to use when invoking shell scripts.
 
16524
SHELL=$lt_SHELL
 
16525
 
 
16526
# An echo program that does not interpret backslashes.
 
16527
ECHO=$lt_ECHO
 
16528
 
 
16529
# Used to examine libraries when file_magic_cmd begins with "file".
 
16530
MAGIC_CMD=$MAGIC_CMD
 
16531
 
 
16532
# Must we lock files when doing compilation?
 
16533
need_locks=$lt_need_locks
 
16534
 
 
16535
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
16536
DSYMUTIL=$lt_DSYMUTIL
 
16537
 
 
16538
# Tool to change global to local symbols on Mac OS X.
 
16539
NMEDIT=$lt_NMEDIT
 
16540
 
 
16541
# Tool to manipulate fat objects and archives on Mac OS X.
 
16542
LIPO=$lt_LIPO
 
16543
 
 
16544
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
16545
OTOOL=$lt_OTOOL
 
16546
 
 
16547
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
16548
OTOOL64=$lt_OTOOL64
 
16549
 
 
16550
# Old archive suffix (normally "a").
 
16551
libext=$libext
 
16552
 
 
16553
# Shared library suffix (normally ".so").
 
16554
shrext_cmds=$lt_shrext_cmds
 
16555
 
 
16556
# The commands to extract the exported symbol list from a shared archive.
 
16557
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16558
 
 
16559
# Variables whose values should be saved in libtool wrapper scripts and
 
16560
# restored at link time.
 
16561
variables_saved_for_relink=$lt_variables_saved_for_relink
 
16562
 
 
16563
# Do we need the "lib" prefix for modules?
 
16564
need_lib_prefix=$need_lib_prefix
 
16565
 
 
16566
# Do we need a version for libraries?
 
16567
need_version=$need_version
 
16568
 
 
16569
# Library versioning type.
 
16570
version_type=$version_type
 
16571
 
 
16572
# Shared library runtime path variable.
 
16573
runpath_var=$runpath_var
 
16574
 
 
16575
# Shared library path variable.
 
16576
shlibpath_var=$shlibpath_var
 
16577
 
 
16578
# Is shlibpath searched before the hard-coded library search path?
 
16579
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16580
 
 
16581
# Format of library name prefix.
 
16582
libname_spec=$lt_libname_spec
 
16583
 
 
16584
# List of archive names.  First name is the real one, the rest are links.
 
16585
# The last name is the one that the linker finds with -lNAME
 
16586
library_names_spec=$lt_library_names_spec
 
16587
 
 
16588
# The coded name of the library, if different from the real name.
 
16589
soname_spec=$lt_soname_spec
 
16590
 
 
16591
# Command to use after installation of a shared archive.
 
16592
postinstall_cmds=$lt_postinstall_cmds
 
16593
 
 
16594
# Command to use after uninstallation of a shared archive.
 
16595
postuninstall_cmds=$lt_postuninstall_cmds
 
16596
 
 
16597
# Commands used to finish a libtool library installation in a directory.
 
16598
finish_cmds=$lt_finish_cmds
 
16599
 
 
16600
# As "finish_cmds", except a single script fragment to be evaled but
 
16601
# not shown.
 
16602
finish_eval=$lt_finish_eval
 
16603
 
 
16604
# Whether we should hardcode library paths into libraries.
 
16605
hardcode_into_libs=$hardcode_into_libs
 
16606
 
 
16607
# Compile-time system search path for libraries.
 
16608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16609
 
 
16610
# Run-time system search path for libraries.
 
16611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16612
 
 
16613
# Whether dlopen is supported.
 
16614
dlopen_support=$enable_dlopen
 
16615
 
 
16616
# Whether dlopen of programs is supported.
 
16617
dlopen_self=$enable_dlopen_self
 
16618
 
 
16619
# Whether dlopen of statically linked programs is supported.
 
16620
dlopen_self_static=$enable_dlopen_self_static
 
16621
 
 
16622
# Commands to strip libraries.
 
16623
old_striplib=$lt_old_striplib
 
16624
striplib=$lt_striplib
 
16625
 
 
16626
 
 
16627
# The linker used to build libraries.
 
16628
LD=$lt_LD
 
16629
 
 
16630
# Commands used to build an old-style archive.
 
16631
old_archive_cmds=$lt_old_archive_cmds
 
16632
 
 
16633
# A language specific compiler.
 
16634
CC=$lt_compiler
 
16635
 
 
16636
# Is the compiler the GNU compiler?
 
16637
with_gcc=$GCC
 
16638
 
 
16639
# Compiler flag to turn off builtin functions.
 
16640
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
16641
 
 
16642
# How to pass a linker flag through the compiler.
 
16643
wl=$lt_lt_prog_compiler_wl
 
16644
 
 
16645
# Additional compiler flags for building library objects.
 
16646
pic_flag=$lt_lt_prog_compiler_pic
 
16647
 
 
16648
# Compiler flag to prevent dynamic linking.
 
16649
link_static_flag=$lt_lt_prog_compiler_static
 
16650
 
 
16651
# Does compiler simultaneously support -c and -o options?
 
16652
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
16653
 
 
16654
# Whether or not to add -lc for building shared libraries.
 
16655
build_libtool_need_lc=$archive_cmds_need_lc
 
16656
 
 
16657
# Whether or not to disallow shared libs when runtime libs are static.
 
16658
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
16659
 
 
16660
# Compiler flag to allow reflexive dlopens.
 
16661
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
16662
 
 
16663
# Compiler flag to generate shared objects directly from archives.
 
16664
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
16665
 
 
16666
# Whether the compiler copes with passing no objects directly.
 
16667
compiler_needs_object=$lt_compiler_needs_object
 
16668
 
 
16669
# Create an old-style archive from a shared archive.
 
16670
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
16671
 
 
16672
# Create a temporary old-style archive to link instead of a shared archive.
 
16673
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
16674
 
 
16675
# Commands used to build a shared archive.
 
16676
archive_cmds=$lt_archive_cmds
 
16677
archive_expsym_cmds=$lt_archive_expsym_cmds
 
16678
 
 
16679
# Commands used to build a loadable module if different from building
 
16680
# a shared archive.
 
16681
module_cmds=$lt_module_cmds
 
16682
module_expsym_cmds=$lt_module_expsym_cmds
 
16683
 
 
16684
# Whether we are building with GNU ld or not.
 
16685
with_gnu_ld=$lt_with_gnu_ld
 
16686
 
 
16687
# Flag that allows shared libraries with undefined symbols to be built.
 
16688
allow_undefined_flag=$lt_allow_undefined_flag
 
16689
 
 
16690
# Flag that enforces no undefined symbols.
 
16691
no_undefined_flag=$lt_no_undefined_flag
 
16692
 
 
16693
# Flag to hardcode \$libdir into a binary during linking.
 
16694
# This must work even if \$libdir does not exist
 
16695
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
16696
 
 
16697
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
16698
# during linking.  This must work even if \$libdir does not exist.
 
16699
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
16700
 
 
16701
# Whether we need a single "-rpath" flag with a separated argument.
 
16702
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
16703
 
 
16704
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16705
# DIR into the resulting binary.
 
16706
hardcode_direct=$hardcode_direct
 
16707
 
 
16708
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16709
# DIR into the resulting binary and the resulting library dependency is
 
16710
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
16711
# library is relocated.
 
16712
hardcode_direct_absolute=$hardcode_direct_absolute
 
16713
 
 
16714
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16715
# into the resulting binary.
 
16716
hardcode_minus_L=$hardcode_minus_L
 
16717
 
 
16718
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16719
# into the resulting binary.
 
16720
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
16721
 
 
16722
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16723
# into the library and all subsequent libraries and executables linked
 
16724
# against it.
 
16725
hardcode_automatic=$hardcode_automatic
 
16726
 
 
16727
# Set to yes if linker adds runtime paths of dependent libraries
 
16728
# to runtime path list.
 
16729
inherit_rpath=$inherit_rpath
 
16730
 
 
16731
# Whether libtool must link a program against all its dependency libraries.
 
16732
link_all_deplibs=$link_all_deplibs
 
16733
 
 
16734
# Fix the shell variable \$srcfile for the compiler.
 
16735
fix_srcfile_path=$lt_fix_srcfile_path
 
16736
 
 
16737
# Set to "yes" if exported symbols are required.
 
16738
always_export_symbols=$always_export_symbols
 
16739
 
 
16740
# The commands to list exported symbols.
 
16741
export_symbols_cmds=$lt_export_symbols_cmds
 
16742
 
 
16743
# Symbols that should not be listed in the preloaded symbols.
 
16744
exclude_expsyms=$lt_exclude_expsyms
 
16745
 
 
16746
# Symbols that must always be exported.
 
16747
include_expsyms=$lt_include_expsyms
 
16748
 
 
16749
# Commands necessary for linking programs (against libraries) with templates.
 
16750
prelink_cmds=$lt_prelink_cmds
 
16751
 
 
16752
# Specify filename containing input files.
 
16753
file_list_spec=$lt_file_list_spec
 
16754
 
 
16755
# How to hardcode a shared library path into an executable.
 
16756
hardcode_action=$hardcode_action
 
16757
 
 
16758
# The directories searched by this compiler when creating a shared library.
 
16759
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
16760
 
 
16761
# Dependencies to place before and after the objects being linked to
 
16762
# create a shared library.
 
16763
predep_objects=$lt_predep_objects
 
16764
postdep_objects=$lt_postdep_objects
 
16765
predeps=$lt_predeps
 
16766
postdeps=$lt_postdeps
 
16767
 
 
16768
# The library search path used internally by the compiler when linking
 
16769
# a shared library.
 
16770
compiler_lib_search_path=$lt_compiler_lib_search_path
 
16771
 
 
16772
# ### END LIBTOOL CONFIG
 
16773
 
 
16774
_LT_EOF
 
16775
 
 
16776
  case $host_os in
 
16777
  aix3*)
 
16778
    cat <<\_LT_EOF >> "$cfgfile"
 
16779
# AIX sometimes has problems with the GCC collect2 program.  For some
 
16780
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
16781
# vanish in a puff of smoke.
 
16782
if test "X${COLLECT_NAMES+set}" != Xset; then
 
16783
  COLLECT_NAMES=
 
16784
  export COLLECT_NAMES
 
16785
fi
 
16786
_LT_EOF
 
16787
    ;;
 
16788
  esac
 
16789
 
 
16790
 
 
16791
ltmain="$ac_aux_dir/ltmain.sh"
 
16792
 
 
16793
 
 
16794
  # We use sed instead of cat because bash on DJGPP gets confused if
 
16795
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
16796
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
16797
  # is reportedly fixed, but why not run on old versions too?
 
16798
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
16799
    || (rm -f "$cfgfile"; exit 1)
 
16800
 
 
16801
  case $xsi_shell in
 
16802
  yes)
 
16803
    cat << \_LT_EOF >> "$cfgfile"
 
16804
 
 
16805
# func_dirname file append nondir_replacement
 
16806
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16807
# otherwise set result to NONDIR_REPLACEMENT.
 
16808
func_dirname ()
 
16809
{
 
16810
  case ${1} in
 
16811
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16812
    *  ) func_dirname_result="${3}" ;;
 
16813
  esac
 
16814
}
 
16815
 
 
16816
# func_basename file
 
16817
func_basename ()
 
16818
{
 
16819
  func_basename_result="${1##*/}"
 
16820
}
 
16821
 
 
16822
# func_dirname_and_basename file append nondir_replacement
 
16823
# perform func_basename and func_dirname in a single function
 
16824
# call:
 
16825
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
16826
#             add APPEND to the result, otherwise set result
 
16827
#             to NONDIR_REPLACEMENT.
 
16828
#             value returned in "$func_dirname_result"
 
16829
#   basename: Compute filename of FILE.
 
16830
#             value retuned in "$func_basename_result"
 
16831
# Implementation must be kept synchronized with func_dirname
 
16832
# and func_basename. For efficiency, we do not delegate to
 
16833
# those functions but instead duplicate the functionality here.
 
16834
func_dirname_and_basename ()
 
16835
{
 
16836
  case ${1} in
 
16837
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16838
    *  ) func_dirname_result="${3}" ;;
 
16839
  esac
 
16840
  func_basename_result="${1##*/}"
 
16841
}
 
16842
 
 
16843
# func_stripname prefix suffix name
 
16844
# strip PREFIX and SUFFIX off of NAME.
 
16845
# PREFIX and SUFFIX must not contain globbing or regex special
 
16846
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16847
# dot (in which case that matches only a dot).
 
16848
func_stripname ()
 
16849
{
 
16850
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
16851
  # positional parameters, so assign one to ordinary parameter first.
 
16852
  func_stripname_result=${3}
 
16853
  func_stripname_result=${func_stripname_result#"${1}"}
 
16854
  func_stripname_result=${func_stripname_result%"${2}"}
 
16855
}
 
16856
 
 
16857
# func_opt_split
 
16858
func_opt_split ()
 
16859
{
 
16860
  func_opt_split_opt=${1%%=*}
 
16861
  func_opt_split_arg=${1#*=}
 
16862
}
 
16863
 
 
16864
# func_lo2o object
 
16865
func_lo2o ()
 
16866
{
 
16867
  case ${1} in
 
16868
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
16869
    *)    func_lo2o_result=${1} ;;
 
16870
  esac
 
16871
}
 
16872
 
 
16873
# func_xform libobj-or-source
 
16874
func_xform ()
 
16875
{
 
16876
  func_xform_result=${1%.*}.lo
 
16877
}
 
16878
 
 
16879
# func_arith arithmetic-term...
 
16880
func_arith ()
 
16881
{
 
16882
  func_arith_result=$(( $* ))
 
16883
}
 
16884
 
 
16885
# func_len string
 
16886
# STRING may not start with a hyphen.
 
16887
func_len ()
 
16888
{
 
16889
  func_len_result=${#1}
 
16890
}
 
16891
 
 
16892
_LT_EOF
 
16893
    ;;
 
16894
  *) # Bourne compatible functions.
 
16895
    cat << \_LT_EOF >> "$cfgfile"
 
16896
 
 
16897
# func_dirname file append nondir_replacement
 
16898
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16899
# otherwise set result to NONDIR_REPLACEMENT.
 
16900
func_dirname ()
 
16901
{
 
16902
  # Extract subdirectory from the argument.
 
16903
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
16904
  if test "X$func_dirname_result" = "X${1}"; then
 
16905
    func_dirname_result="${3}"
 
16906
  else
 
16907
    func_dirname_result="$func_dirname_result${2}"
 
16908
  fi
 
16909
}
 
16910
 
 
16911
# func_basename file
 
16912
func_basename ()
 
16913
{
 
16914
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
16915
}
 
16916
 
 
16917
 
 
16918
# func_stripname prefix suffix name
 
16919
# strip PREFIX and SUFFIX off of NAME.
 
16920
# PREFIX and SUFFIX must not contain globbing or regex special
 
16921
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16922
# dot (in which case that matches only a dot).
 
16923
# func_strip_suffix prefix name
 
16924
func_stripname ()
 
16925
{
 
16926
  case ${2} in
 
16927
    .*) func_stripname_result=`$ECHO "X${3}" \
 
16928
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
16929
    *)  func_stripname_result=`$ECHO "X${3}" \
 
16930
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
16931
  esac
 
16932
}
 
16933
 
 
16934
# sed scripts:
 
16935
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
16936
my_sed_long_arg='1s/^-[^=]*=//'
 
16937
 
 
16938
# func_opt_split
 
16939
func_opt_split ()
 
16940
{
 
16941
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
16942
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
16943
}
 
16944
 
 
16945
# func_lo2o object
 
16946
func_lo2o ()
 
16947
{
 
16948
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
16949
}
 
16950
 
 
16951
# func_xform libobj-or-source
 
16952
func_xform ()
 
16953
{
 
16954
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
16955
}
 
16956
 
 
16957
# func_arith arithmetic-term...
 
16958
func_arith ()
 
16959
{
 
16960
  func_arith_result=`expr "$@"`
 
16961
}
 
16962
 
 
16963
# func_len string
 
16964
# STRING may not start with a hyphen.
 
16965
func_len ()
 
16966
{
 
16967
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
16968
}
 
16969
 
 
16970
_LT_EOF
 
16971
esac
 
16972
 
 
16973
case $lt_shell_append in
 
16974
  yes)
 
16975
    cat << \_LT_EOF >> "$cfgfile"
 
16976
 
 
16977
# func_append var value
 
16978
# Append VALUE to the end of shell variable VAR.
 
16979
func_append ()
 
16980
{
 
16981
  eval "$1+=\$2"
 
16982
}
 
16983
_LT_EOF
 
16984
    ;;
 
16985
  *)
 
16986
    cat << \_LT_EOF >> "$cfgfile"
 
16987
 
 
16988
# func_append var value
 
16989
# Append VALUE to the end of shell variable VAR.
 
16990
func_append ()
 
16991
{
 
16992
  eval "$1=\$$1\$2"
 
16993
}
 
16994
 
 
16995
_LT_EOF
 
16996
    ;;
 
16997
  esac
 
16998
 
 
16999
 
 
17000
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
17001
    || (rm -f "$cfgfile"; exit 1)
 
17002
 
 
17003
  mv -f "$cfgfile" "$ofile" ||
 
17004
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
17005
  chmod +x "$ofile"
 
17006
 
 
17007
 
 
17008
    cat <<_LT_EOF >> "$ofile"
 
17009
 
 
17010
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
17011
 
 
17012
# The linker used to build libraries.
 
17013
LD=$lt_LD_CXX
 
17014
 
 
17015
# Commands used to build an old-style archive.
 
17016
old_archive_cmds=$lt_old_archive_cmds_CXX
 
17017
 
 
17018
# A language specific compiler.
 
17019
CC=$lt_compiler_CXX
 
17020
 
 
17021
# Is the compiler the GNU compiler?
 
17022
with_gcc=$GCC_CXX
 
17023
 
 
17024
# Compiler flag to turn off builtin functions.
 
17025
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
17026
 
 
17027
# How to pass a linker flag through the compiler.
 
17028
wl=$lt_lt_prog_compiler_wl_CXX
 
17029
 
 
17030
# Additional compiler flags for building library objects.
 
17031
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
17032
 
 
17033
# Compiler flag to prevent dynamic linking.
 
17034
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
17035
 
 
17036
# Does compiler simultaneously support -c and -o options?
 
17037
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
17038
 
 
17039
# Whether or not to add -lc for building shared libraries.
 
17040
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
17041
 
 
17042
# Whether or not to disallow shared libs when runtime libs are static.
 
17043
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
17044
 
 
17045
# Compiler flag to allow reflexive dlopens.
 
17046
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
17047
 
 
17048
# Compiler flag to generate shared objects directly from archives.
 
17049
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
17050
 
 
17051
# Whether the compiler copes with passing no objects directly.
 
17052
compiler_needs_object=$lt_compiler_needs_object_CXX
 
17053
 
 
17054
# Create an old-style archive from a shared archive.
 
17055
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
17056
 
 
17057
# Create a temporary old-style archive to link instead of a shared archive.
 
17058
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
17059
 
 
17060
# Commands used to build a shared archive.
 
17061
archive_cmds=$lt_archive_cmds_CXX
 
17062
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
17063
 
 
17064
# Commands used to build a loadable module if different from building
 
17065
# a shared archive.
 
17066
module_cmds=$lt_module_cmds_CXX
 
17067
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
17068
 
 
17069
# Whether we are building with GNU ld or not.
 
17070
with_gnu_ld=$lt_with_gnu_ld_CXX
 
17071
 
 
17072
# Flag that allows shared libraries with undefined symbols to be built.
 
17073
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
17074
 
 
17075
# Flag that enforces no undefined symbols.
 
17076
no_undefined_flag=$lt_no_undefined_flag_CXX
 
17077
 
 
17078
# Flag to hardcode \$libdir into a binary during linking.
 
17079
# This must work even if \$libdir does not exist
 
17080
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
17081
 
 
17082
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
17083
# during linking.  This must work even if \$libdir does not exist.
 
17084
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
17085
 
 
17086
# Whether we need a single "-rpath" flag with a separated argument.
 
17087
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
17088
 
 
17089
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17090
# DIR into the resulting binary.
 
17091
hardcode_direct=$hardcode_direct_CXX
 
17092
 
 
17093
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17094
# DIR into the resulting binary and the resulting library dependency is
 
17095
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17096
# library is relocated.
 
17097
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
17098
 
 
17099
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17100
# into the resulting binary.
 
17101
hardcode_minus_L=$hardcode_minus_L_CXX
 
17102
 
 
17103
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17104
# into the resulting binary.
 
17105
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
17106
 
 
17107
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17108
# into the library and all subsequent libraries and executables linked
 
17109
# against it.
 
17110
hardcode_automatic=$hardcode_automatic_CXX
 
17111
 
 
17112
# Set to yes if linker adds runtime paths of dependent libraries
 
17113
# to runtime path list.
 
17114
inherit_rpath=$inherit_rpath_CXX
 
17115
 
 
17116
# Whether libtool must link a program against all its dependency libraries.
 
17117
link_all_deplibs=$link_all_deplibs_CXX
 
17118
 
 
17119
# Fix the shell variable \$srcfile for the compiler.
 
17120
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
17121
 
 
17122
# Set to "yes" if exported symbols are required.
 
17123
always_export_symbols=$always_export_symbols_CXX
 
17124
 
 
17125
# The commands to list exported symbols.
 
17126
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
17127
 
 
17128
# Symbols that should not be listed in the preloaded symbols.
 
17129
exclude_expsyms=$lt_exclude_expsyms_CXX
 
17130
 
 
17131
# Symbols that must always be exported.
 
17132
include_expsyms=$lt_include_expsyms_CXX
 
17133
 
 
17134
# Commands necessary for linking programs (against libraries) with templates.
 
17135
prelink_cmds=$lt_prelink_cmds_CXX
 
17136
 
 
17137
# Specify filename containing input files.
 
17138
file_list_spec=$lt_file_list_spec_CXX
 
17139
 
 
17140
# How to hardcode a shared library path into an executable.
 
17141
hardcode_action=$hardcode_action_CXX
 
17142
 
 
17143
# The directories searched by this compiler when creating a shared library.
 
17144
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
17145
 
 
17146
# Dependencies to place before and after the objects being linked to
 
17147
# create a shared library.
 
17148
predep_objects=$lt_predep_objects_CXX
 
17149
postdep_objects=$lt_postdep_objects_CXX
 
17150
predeps=$lt_predeps_CXX
 
17151
postdeps=$lt_postdeps_CXX
 
17152
 
 
17153
# The library search path used internally by the compiler when linking
 
17154
# a shared library.
 
17155
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
17156
 
 
17157
# ### END LIBTOOL TAG CONFIG: CXX
 
17158
_LT_EOF
 
17159
 
 
17160
 ;;
 
17161
 
 
17162
  esac
 
17163
done # for ac_tag
 
17164
 
 
17165
 
 
17166
as_fn_exit 0
 
17167
_ACEOF
 
17168
ac_clean_files=$ac_clean_files_save
 
17169
 
 
17170
test $ac_write_fail = 0 ||
 
17171
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
17172
 
 
17173
 
 
17174
# configure is writing to config.log, and then calls config.status.
 
17175
# config.status does its own redirection, appending to config.log.
 
17176
# Unfortunately, on DOS this fails, as config.log is still kept open
 
17177
# by configure, so config.status won't be able to write to it; its
 
17178
# output is simply discarded.  So we exec the FD to /dev/null,
 
17179
# effectively closing config.log, so it can be properly (re)opened and
 
17180
# appended to by config.status.  When coming back to configure, we
 
17181
# need to make the FD available again.
 
17182
if test "$no_create" != yes; then
 
17183
  ac_cs_success=:
 
17184
  ac_config_status_args=
 
17185
  test "$silent" = yes &&
 
17186
    ac_config_status_args="$ac_config_status_args --quiet"
 
17187
  exec 5>/dev/null
 
17188
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
17189
  exec 5>>config.log
 
17190
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17191
  # would make configure fail if this is the last instruction.
 
17192
  $ac_cs_success || as_fn_exit $?
 
17193
fi
 
17194
 
 
17195
#
 
17196
# CONFIG_SUBDIRS section.
 
17197
#
 
17198
if test "$no_recursion" != yes; then
 
17199
 
 
17200
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
 
17201
  # so they do not pile up.
 
17202
  ac_sub_configure_args=
 
17203
  ac_prev=
 
17204
  eval "set x $ac_configure_args"
 
17205
  shift
 
17206
  for ac_arg
 
17207
  do
 
17208
    if test -n "$ac_prev"; then
 
17209
      ac_prev=
 
17210
      continue
 
17211
    fi
 
17212
    case $ac_arg in
 
17213
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
17214
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
17215
      ac_prev=cache_file ;;
 
17216
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
17217
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
17218
    | --c=*)
 
17219
      ;;
 
17220
    --config-cache | -C)
 
17221
      ;;
 
17222
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
17223
      ac_prev=srcdir ;;
 
17224
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
17225
      ;;
 
17226
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
17227
      ac_prev=prefix ;;
 
17228
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
17229
      ;;
 
17230
    --disable-option-checking)
 
17231
      ;;
 
17232
    *)
 
17233
      case $ac_arg in
 
17234
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
17235
      esac
 
17236
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
 
17237
    esac
 
17238
  done
 
17239
 
 
17240
  # Always prepend --prefix to ensure using the same prefix
 
17241
  # in subdir configurations.
 
17242
  ac_arg="--prefix=$prefix"
 
17243
  case $ac_arg in
 
17244
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
17245
  esac
 
17246
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
 
17247
 
 
17248
  # Pass --silent
 
17249
  if test "$silent" = yes; then
 
17250
    ac_sub_configure_args="--silent $ac_sub_configure_args"
 
17251
  fi
 
17252
 
 
17253
  # Always prepend --disable-option-checking to silence warnings, since
 
17254
  # different subdirs can have different --enable and --with options.
 
17255
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
 
17256
 
 
17257
  ac_popdir=`pwd`
 
17258
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
17259
 
 
17260
    # Do not complain, so a configure script can configure whichever
 
17261
    # parts of a large source tree are present.
 
17262
    test -d "$srcdir/$ac_dir" || continue
 
17263
 
 
17264
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
 
17265
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
 
17266
    $as_echo "$ac_msg" >&6
 
17267
    as_dir="$ac_dir"; as_fn_mkdir_p
 
17268
    ac_builddir=.
 
17269
 
 
17270
case "$ac_dir" in
 
17271
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17272
*)
 
17273
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
17274
  # A ".." for each directory in $ac_dir_suffix.
 
17275
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
17276
  case $ac_top_builddir_sub in
 
17277
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17278
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
17279
  esac ;;
 
17280
esac
 
17281
ac_abs_top_builddir=$ac_pwd
 
17282
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
17283
# for backward compatibility:
 
17284
ac_top_builddir=$ac_top_build_prefix
 
17285
 
 
17286
case $srcdir in
 
17287
  .)  # We are building in place.
 
17288
    ac_srcdir=.
 
17289
    ac_top_srcdir=$ac_top_builddir_sub
 
17290
    ac_abs_top_srcdir=$ac_pwd ;;
 
17291
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
17292
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17293
    ac_top_srcdir=$srcdir
 
17294
    ac_abs_top_srcdir=$srcdir ;;
 
17295
  *) # Relative name.
 
17296
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
17297
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
17298
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
17299
esac
 
17300
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
17301
 
 
17302
 
 
17303
    cd "$ac_dir"
 
17304
 
 
17305
    # Check for guested configure; otherwise get Cygnus style configure.
 
17306
    if test -f "$ac_srcdir/configure.gnu"; then
 
17307
      ac_sub_configure=$ac_srcdir/configure.gnu
 
17308
    elif test -f "$ac_srcdir/configure"; then
 
17309
      ac_sub_configure=$ac_srcdir/configure
 
17310
    elif test -f "$ac_srcdir/configure.in"; then
 
17311
      # This should be Cygnus configure.
 
17312
      ac_sub_configure=$ac_aux_dir/configure
 
17313
    else
 
17314
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
 
17315
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
17316
      ac_sub_configure=
 
17317
    fi
 
17318
 
 
17319
    # The recursion is here.
 
17320
    if test -n "$ac_sub_configure"; then
 
17321
      # Make the cache file name correct relative to the subdirectory.
 
17322
      case $cache_file in
 
17323
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
17324
      *) # Relative name.
 
17325
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
 
17326
      esac
 
17327
 
 
17328
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
17329
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
17330
      # The eval makes quoting arguments work.
 
17331
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
 
17332
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
 
17333
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
 
17334
    fi
 
17335
 
 
17336
    cd "$ac_popdir"
 
17337
  done
 
17338
fi
 
17339
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17340
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17341
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17342
fi
 
17343