~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/c++/configure

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

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.67 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, 2010 Free Software
10
 
# Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
370
 
  if test "$4"; then
371
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373
 
  fi
374
 
  $as_echo "$as_me: error: $2" >&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, old GNU/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_EXTERNAL_LLVM_FALSE
752
 
BUILD_EXTERNAL_LLVM_TRUE
753
 
NO_MISSING_FIELD_INITIALIZERS
754
 
NO_VARIADIC_MACROS
755
 
BUILD_PPC_FALSE
756
 
BUILD_PPC_TRUE
757
 
BUILD_X86_FALSE
758
 
BUILD_X86_TRUE
759
 
THREAD_LIBS
760
 
DEBUG_BUILD_FALSE
761
 
DEBUG_BUILD_TRUE
762
 
subdirs
763
 
LLVMCONFIG_LIBFILES
764
 
LLVMCONFIG_LIBS
765
 
LLVMCONFIG_LDFLAGS
766
 
LLVMCONFIG_CXXFLAGS
767
 
GMAKE
768
 
ifGNUmake
769
 
CXXCPP
770
 
OTOOL64
771
 
OTOOL
772
 
LIPO
773
 
NMEDIT
774
 
DSYMUTIL
775
 
lt_ECHO
776
 
RANLIB
777
 
AR
778
 
OBJDUMP
779
 
LN_S
780
 
NM
781
 
ac_ct_DUMPBIN
782
 
DUMPBIN
783
 
LD
784
 
FGREP
785
 
SED
786
 
LIBTOOL
787
 
MAINT
788
 
MAINTAINER_MODE_FALSE
789
 
MAINTAINER_MODE_TRUE
790
 
EGREP
791
 
GREP
792
 
CPP
793
 
am__fastdepCC_FALSE
794
 
am__fastdepCC_TRUE
795
 
CCDEPMODE
796
 
ac_ct_CC
797
 
CFLAGS
798
 
CC
799
 
am__fastdepCXX_FALSE
800
 
am__fastdepCXX_TRUE
801
 
CXXDEPMODE
802
 
AMDEPBACKSLASH
803
 
AMDEP_FALSE
804
 
AMDEP_TRUE
805
 
am__quote
806
 
am__include
807
 
DEPDIR
808
 
OBJEXT
809
 
EXEEXT
810
 
ac_ct_CXX
811
 
CPPFLAGS
812
 
LDFLAGS
813
 
CXXFLAGS
814
 
CXX
815
 
AM_BACKSLASH
816
 
AM_DEFAULT_VERBOSITY
817
 
am__untar
818
 
am__tar
819
 
AMTAR
820
 
am__leading_dot
821
 
SET_MAKE
822
 
AWK
823
 
mkdir_p
824
 
MKDIR_P
825
 
INSTALL_STRIP_PROGRAM
826
 
STRIP
827
 
install_sh
828
 
MAKEINFO
829
 
AUTOHEADER
830
 
AUTOMAKE
831
 
AUTOCONF
832
 
ACLOCAL
833
 
VERSION
834
 
PACKAGE
835
 
CYGPATH_W
836
 
am__isrc
837
 
INSTALL_DATA
838
 
INSTALL_SCRIPT
839
 
INSTALL_PROGRAM
840
 
target_os
841
 
target_vendor
842
 
target_cpu
843
 
target
844
 
host_os
845
 
host_vendor
846
 
host_cpu
847
 
host
848
 
build_os
849
 
build_vendor
850
 
build_cpu
851
 
build
852
 
target_alias
853
 
host_alias
854
 
build_alias
855
 
LIBS
856
 
ECHO_T
857
 
ECHO_N
858
 
ECHO_C
859
 
DEFS
860
 
mandir
861
 
localedir
862
 
libdir
863
 
psdir
864
 
pdfdir
865
 
dvidir
866
 
htmldir
867
 
infodir
868
 
docdir
869
 
oldincludedir
870
 
includedir
871
 
localstatedir
872
 
sharedstatedir
873
 
sysconfdir
874
 
datadir
875
 
datarootdir
876
 
libexecdir
877
 
sbindir
878
 
bindir
879
 
program_transform_name
880
 
prefix
881
 
exec_prefix
882
 
PACKAGE_URL
883
 
PACKAGE_BUGREPORT
884
 
PACKAGE_STRING
885
 
PACKAGE_VERSION
886
 
PACKAGE_TARNAME
887
 
PACKAGE_NAME
888
 
PATH_SEPARATOR
889
 
SHELL'
890
 
ac_subst_files=''
891
 
ac_user_opts='
892
 
enable_option_checking
893
 
enable_silent_rules
894
 
enable_dependency_tracking
895
 
enable_maintainer_mode
896
 
enable_static
897
 
enable_shared
898
 
with_pic
899
 
enable_fast_install
900
 
with_gnu_ld
901
 
enable_libtool_lock
902
 
with_system_llvm
903
 
enable_llvm
904
 
enable_optimized
905
 
enable_all_jit_targets
906
 
'
907
 
      ac_precious_vars='build_alias
908
 
host_alias
909
 
target_alias
910
 
CXX
911
 
CXXFLAGS
912
 
LDFLAGS
913
 
LIBS
914
 
CPPFLAGS
915
 
CCC
916
 
CC
917
 
CFLAGS
918
 
CPP
919
 
CXXCPP'
920
 
ac_subdirs_all='llvm'
921
 
 
922
 
# Initialize some variables set by options.
923
 
ac_init_help=
924
 
ac_init_version=false
925
 
ac_unrecognized_opts=
926
 
ac_unrecognized_sep=
927
 
# The variables have the same names as the options, with
928
 
# dashes changed to underlines.
929
 
cache_file=/dev/null
930
 
exec_prefix=NONE
931
 
no_create=
932
 
no_recursion=
933
 
prefix=NONE
934
 
program_prefix=NONE
935
 
program_suffix=NONE
936
 
program_transform_name=s,x,x,
937
 
silent=
938
 
site=
939
 
srcdir=
940
 
verbose=
941
 
x_includes=NONE
942
 
x_libraries=NONE
943
 
 
944
 
# Installation directory options.
945
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
946
 
# and all the variables that are supposed to be based on exec_prefix
947
 
# by default will actually change.
948
 
# Use braces instead of parens because sh, perl, etc. also accept them.
949
 
# (The list follows the same order as the GNU Coding Standards.)
950
 
bindir='${exec_prefix}/bin'
951
 
sbindir='${exec_prefix}/sbin'
952
 
libexecdir='${exec_prefix}/libexec'
953
 
datarootdir='${prefix}/share'
954
 
datadir='${datarootdir}'
955
 
sysconfdir='${prefix}/etc'
956
 
sharedstatedir='${prefix}/com'
957
 
localstatedir='${prefix}/var'
958
 
includedir='${prefix}/include'
959
 
oldincludedir='/usr/include'
960
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961
 
infodir='${datarootdir}/info'
962
 
htmldir='${docdir}'
963
 
dvidir='${docdir}'
964
 
pdfdir='${docdir}'
965
 
psdir='${docdir}'
966
 
libdir='${exec_prefix}/lib'
967
 
localedir='${datarootdir}/locale'
968
 
mandir='${datarootdir}/man'
969
 
 
970
 
ac_prev=
971
 
ac_dashdash=
972
 
for ac_option
973
 
do
974
 
  # If the previous option needs an argument, assign it.
975
 
  if test -n "$ac_prev"; then
976
 
    eval $ac_prev=\$ac_option
977
 
    ac_prev=
978
 
    continue
979
 
  fi
980
 
 
981
 
  case $ac_option in
982
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983
 
  *=)   ac_optarg= ;;
984
 
  *)    ac_optarg=yes ;;
985
 
  esac
986
 
 
987
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
988
 
 
989
 
  case $ac_dashdash$ac_option in
990
 
  --)
991
 
    ac_dashdash=yes ;;
992
 
 
993
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
994
 
    ac_prev=bindir ;;
995
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996
 
    bindir=$ac_optarg ;;
997
 
 
998
 
  -build | --build | --buil | --bui | --bu)
999
 
    ac_prev=build_alias ;;
1000
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001
 
    build_alias=$ac_optarg ;;
1002
 
 
1003
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1004
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005
 
    ac_prev=cache_file ;;
1006
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008
 
    cache_file=$ac_optarg ;;
1009
 
 
1010
 
  --config-cache | -C)
1011
 
    cache_file=config.cache ;;
1012
 
 
1013
 
  -datadir | --datadir | --datadi | --datad)
1014
 
    ac_prev=datadir ;;
1015
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016
 
    datadir=$ac_optarg ;;
1017
 
 
1018
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019
 
  | --dataroo | --dataro | --datar)
1020
 
    ac_prev=datarootdir ;;
1021
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023
 
    datarootdir=$ac_optarg ;;
1024
 
 
1025
 
  -disable-* | --disable-*)
1026
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027
 
    # Reject names that are not valid shell variable names.
1028
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1030
 
    ac_useropt_orig=$ac_useropt
1031
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032
 
    case $ac_user_opts in
1033
 
      *"
1034
 
"enable_$ac_useropt"
1035
 
"*) ;;
1036
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037
 
         ac_unrecognized_sep=', ';;
1038
 
    esac
1039
 
    eval enable_$ac_useropt=no ;;
1040
 
 
1041
 
  -docdir | --docdir | --docdi | --doc | --do)
1042
 
    ac_prev=docdir ;;
1043
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044
 
    docdir=$ac_optarg ;;
1045
 
 
1046
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047
 
    ac_prev=dvidir ;;
1048
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049
 
    dvidir=$ac_optarg ;;
1050
 
 
1051
 
  -enable-* | --enable-*)
1052
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053
 
    # Reject names that are not valid shell variable names.
1054
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1056
 
    ac_useropt_orig=$ac_useropt
1057
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058
 
    case $ac_user_opts in
1059
 
      *"
1060
 
"enable_$ac_useropt"
1061
 
"*) ;;
1062
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063
 
         ac_unrecognized_sep=', ';;
1064
 
    esac
1065
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1066
 
 
1067
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069
 
  | --exec | --exe | --ex)
1070
 
    ac_prev=exec_prefix ;;
1071
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073
 
  | --exec=* | --exe=* | --ex=*)
1074
 
    exec_prefix=$ac_optarg ;;
1075
 
 
1076
 
  -gas | --gas | --ga | --g)
1077
 
    # Obsolete; use --with-gas.
1078
 
    with_gas=yes ;;
1079
 
 
1080
 
  -help | --help | --hel | --he | -h)
1081
 
    ac_init_help=long ;;
1082
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083
 
    ac_init_help=recursive ;;
1084
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085
 
    ac_init_help=short ;;
1086
 
 
1087
 
  -host | --host | --hos | --ho)
1088
 
    ac_prev=host_alias ;;
1089
 
  -host=* | --host=* | --hos=* | --ho=*)
1090
 
    host_alias=$ac_optarg ;;
1091
 
 
1092
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093
 
    ac_prev=htmldir ;;
1094
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095
 
  | --ht=*)
1096
 
    htmldir=$ac_optarg ;;
1097
 
 
1098
 
  -includedir | --includedir | --includedi | --included | --include \
1099
 
  | --includ | --inclu | --incl | --inc)
1100
 
    ac_prev=includedir ;;
1101
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1103
 
    includedir=$ac_optarg ;;
1104
 
 
1105
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1106
 
    ac_prev=infodir ;;
1107
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108
 
    infodir=$ac_optarg ;;
1109
 
 
1110
 
  -libdir | --libdir | --libdi | --libd)
1111
 
    ac_prev=libdir ;;
1112
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113
 
    libdir=$ac_optarg ;;
1114
 
 
1115
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116
 
  | --libexe | --libex | --libe)
1117
 
    ac_prev=libexecdir ;;
1118
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119
 
  | --libexe=* | --libex=* | --libe=*)
1120
 
    libexecdir=$ac_optarg ;;
1121
 
 
1122
 
  -localedir | --localedir | --localedi | --localed | --locale)
1123
 
    ac_prev=localedir ;;
1124
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125
 
    localedir=$ac_optarg ;;
1126
 
 
1127
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1128
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1129
 
    ac_prev=localstatedir ;;
1130
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132
 
    localstatedir=$ac_optarg ;;
1133
 
 
1134
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135
 
    ac_prev=mandir ;;
1136
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137
 
    mandir=$ac_optarg ;;
1138
 
 
1139
 
  -nfp | --nfp | --nf)
1140
 
    # Obsolete; use --without-fp.
1141
 
    with_fp=no ;;
1142
 
 
1143
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144
 
  | --no-cr | --no-c | -n)
1145
 
    no_create=yes ;;
1146
 
 
1147
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149
 
    no_recursion=yes ;;
1150
 
 
1151
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153
 
  | --oldin | --oldi | --old | --ol | --o)
1154
 
    ac_prev=oldincludedir ;;
1155
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158
 
    oldincludedir=$ac_optarg ;;
1159
 
 
1160
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161
 
    ac_prev=prefix ;;
1162
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163
 
    prefix=$ac_optarg ;;
1164
 
 
1165
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166
 
  | --program-pre | --program-pr | --program-p)
1167
 
    ac_prev=program_prefix ;;
1168
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170
 
    program_prefix=$ac_optarg ;;
1171
 
 
1172
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173
 
  | --program-suf | --program-su | --program-s)
1174
 
    ac_prev=program_suffix ;;
1175
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177
 
    program_suffix=$ac_optarg ;;
1178
 
 
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
 
    ac_prev=program_transform_name ;;
1187
 
  -program-transform-name=* | --program-transform-name=* \
1188
 
  | --program-transform-nam=* | --program-transform-na=* \
1189
 
  | --program-transform-n=* | --program-transform-=* \
1190
 
  | --program-transform=* | --program-transfor=* \
1191
 
  | --program-transfo=* | --program-transf=* \
1192
 
  | --program-trans=* | --program-tran=* \
1193
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1194
 
    program_transform_name=$ac_optarg ;;
1195
 
 
1196
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197
 
    ac_prev=pdfdir ;;
1198
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199
 
    pdfdir=$ac_optarg ;;
1200
 
 
1201
 
  -psdir | --psdir | --psdi | --psd | --ps)
1202
 
    ac_prev=psdir ;;
1203
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204
 
    psdir=$ac_optarg ;;
1205
 
 
1206
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207
 
  | -silent | --silent | --silen | --sile | --sil)
1208
 
    silent=yes ;;
1209
 
 
1210
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211
 
    ac_prev=sbindir ;;
1212
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213
 
  | --sbi=* | --sb=*)
1214
 
    sbindir=$ac_optarg ;;
1215
 
 
1216
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218
 
  | --sharedst | --shareds | --shared | --share | --shar \
1219
 
  | --sha | --sh)
1220
 
    ac_prev=sharedstatedir ;;
1221
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224
 
  | --sha=* | --sh=*)
1225
 
    sharedstatedir=$ac_optarg ;;
1226
 
 
1227
 
  -site | --site | --sit)
1228
 
    ac_prev=site ;;
1229
 
  -site=* | --site=* | --sit=*)
1230
 
    site=$ac_optarg ;;
1231
 
 
1232
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233
 
    ac_prev=srcdir ;;
1234
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235
 
    srcdir=$ac_optarg ;;
1236
 
 
1237
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1239
 
    ac_prev=sysconfdir ;;
1240
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242
 
    sysconfdir=$ac_optarg ;;
1243
 
 
1244
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1245
 
    ac_prev=target_alias ;;
1246
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247
 
    target_alias=$ac_optarg ;;
1248
 
 
1249
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250
 
    verbose=yes ;;
1251
 
 
1252
 
  -version | --version | --versio | --versi | --vers | -V)
1253
 
    ac_init_version=: ;;
1254
 
 
1255
 
  -with-* | --with-*)
1256
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257
 
    # Reject names that are not valid shell variable names.
1258
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259
 
      as_fn_error $? "invalid package name: $ac_useropt"
1260
 
    ac_useropt_orig=$ac_useropt
1261
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262
 
    case $ac_user_opts in
1263
 
      *"
1264
 
"with_$ac_useropt"
1265
 
"*) ;;
1266
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267
 
         ac_unrecognized_sep=', ';;
1268
 
    esac
1269
 
    eval with_$ac_useropt=\$ac_optarg ;;
1270
 
 
1271
 
  -without-* | --without-*)
1272
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273
 
    # Reject names that are not valid shell variable names.
1274
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275
 
      as_fn_error $? "invalid package name: $ac_useropt"
1276
 
    ac_useropt_orig=$ac_useropt
1277
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278
 
    case $ac_user_opts in
1279
 
      *"
1280
 
"with_$ac_useropt"
1281
 
"*) ;;
1282
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283
 
         ac_unrecognized_sep=', ';;
1284
 
    esac
1285
 
    eval with_$ac_useropt=no ;;
1286
 
 
1287
 
  --x)
1288
 
    # Obsolete; use --with-x.
1289
 
    with_x=yes ;;
1290
 
 
1291
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292
 
  | --x-incl | --x-inc | --x-in | --x-i)
1293
 
    ac_prev=x_includes ;;
1294
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296
 
    x_includes=$ac_optarg ;;
1297
 
 
1298
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300
 
    ac_prev=x_libraries ;;
1301
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303
 
    x_libraries=$ac_optarg ;;
1304
 
 
1305
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306
 
Try \`$0 --help' for more information"
1307
 
    ;;
1308
 
 
1309
 
  *=*)
1310
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311
 
    # Reject names that are not valid shell variable names.
1312
 
    case $ac_envvar in #(
1313
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1314
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315
 
    esac
1316
 
    eval $ac_envvar=\$ac_optarg
1317
 
    export $ac_envvar ;;
1318
 
 
1319
 
  *)
1320
 
    # FIXME: should be removed in autoconf 3.0.
1321
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325
 
    ;;
1326
 
 
1327
 
  esac
1328
 
done
1329
 
 
1330
 
if test -n "$ac_prev"; then
1331
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332
 
  as_fn_error $? "missing argument to $ac_option"
1333
 
fi
1334
 
 
1335
 
if test -n "$ac_unrecognized_opts"; then
1336
 
  case $enable_option_checking in
1337
 
    no) ;;
1338
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340
 
  esac
1341
 
fi
1342
 
 
1343
 
# Check all directory arguments for consistency.
1344
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1346
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347
 
                libdir localedir mandir
1348
 
do
1349
 
  eval ac_val=\$$ac_var
1350
 
  # Remove trailing slashes.
1351
 
  case $ac_val in
1352
 
    */ )
1353
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354
 
      eval $ac_var=\$ac_val;;
1355
 
  esac
1356
 
  # Be sure to have absolute directory names.
1357
 
  case $ac_val in
1358
 
    [\\/$]* | ?:[\\/]* )  continue;;
1359
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360
 
  esac
1361
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362
 
done
1363
 
 
1364
 
# There might be people who depend on the old broken behavior: `$host'
1365
 
# used to hold the argument of --host etc.
1366
 
# FIXME: To remove some day.
1367
 
build=$build_alias
1368
 
host=$host_alias
1369
 
target=$target_alias
1370
 
 
1371
 
# FIXME: To remove some day.
1372
 
if test "x$host_alias" != x; then
1373
 
  if test "x$build_alias" = x; then
1374
 
    cross_compiling=maybe
1375
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1377
 
  elif test "x$build_alias" != "x$host_alias"; then
1378
 
    cross_compiling=yes
1379
 
  fi
1380
 
fi
1381
 
 
1382
 
ac_tool_prefix=
1383
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
 
 
1385
 
test "$silent" = yes && exec 6>/dev/null
1386
 
 
1387
 
 
1388
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389
 
ac_ls_di=`ls -di .` &&
1390
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391
 
  as_fn_error $? "working directory cannot be determined"
1392
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393
 
  as_fn_error $? "pwd does not report name of working directory"
1394
 
 
1395
 
 
1396
 
# Find the source files, if location was not specified.
1397
 
if test -z "$srcdir"; then
1398
 
  ac_srcdir_defaulted=yes
1399
 
  # Try the directory containing this script, then the parent directory.
1400
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1401
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1403
 
         X"$as_myself" : 'X\(//\)$' \| \
1404
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405
 
$as_echo X"$as_myself" |
1406
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407
 
            s//\1/
1408
 
            q
1409
 
          }
1410
 
          /^X\(\/\/\)[^/].*/{
1411
 
            s//\1/
1412
 
            q
1413
 
          }
1414
 
          /^X\(\/\/\)$/{
1415
 
            s//\1/
1416
 
            q
1417
 
          }
1418
 
          /^X\(\/\).*/{
1419
 
            s//\1/
1420
 
            q
1421
 
          }
1422
 
          s/.*/./; q'`
1423
 
  srcdir=$ac_confdir
1424
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1425
 
    srcdir=..
1426
 
  fi
1427
 
else
1428
 
  ac_srcdir_defaulted=no
1429
 
fi
1430
 
if test ! -r "$srcdir/$ac_unique_file"; then
1431
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433
 
fi
1434
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435
 
ac_abs_confdir=`(
1436
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437
 
        pwd)`
1438
 
# When building in place, set srcdir=.
1439
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1440
 
  srcdir=.
1441
 
fi
1442
 
# Remove unnecessary trailing slashes from srcdir.
1443
 
# Double slashes in file names in object file debugging info
1444
 
# mess up M-x gdb in Emacs.
1445
 
case $srcdir in
1446
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447
 
esac
1448
 
for ac_var in $ac_precious_vars; do
1449
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1451
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453
 
done
1454
 
 
1455
 
#
1456
 
# Report the --help message.
1457
 
#
1458
 
if test "$ac_init_help" = "long"; then
1459
 
  # Omit some internal or obsolete options to make the list less imposing.
1460
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1461
 
  cat <<_ACEOF
1462
 
\`configure' configures libclamavc++ devel to adapt to many kinds of systems.
1463
 
 
1464
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1465
 
 
1466
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
 
 
1469
 
Defaults for the options are specified in brackets.
1470
 
 
1471
 
Configuration:
1472
 
  -h, --help              display this help and exit
1473
 
      --help=short        display options specific to this package
1474
 
      --help=recursive    display the short help of all the included packages
1475
 
  -V, --version           display version information and exit
1476
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1477
 
      --cache-file=FILE   cache test results in FILE [disabled]
1478
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1479
 
  -n, --no-create         do not create output files
1480
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
 
 
1482
 
Installation directories:
1483
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1484
 
                          [$ac_default_prefix]
1485
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486
 
                          [PREFIX]
1487
 
 
1488
 
By default, \`make install' will install all the files in
1489
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491
 
for instance \`--prefix=\$HOME'.
1492
 
 
1493
 
For better control, use the options below.
1494
 
 
1495
 
Fine tuning of the installation directories:
1496
 
  --bindir=DIR            user executables [EPREFIX/bin]
1497
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1498
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1499
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1500
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1501
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1502
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1503
 
  --includedir=DIR        C header files [PREFIX/include]
1504
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1505
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1506
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1507
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1508
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1509
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1510
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libclamavc--]
1511
 
  --htmldir=DIR           html documentation [DOCDIR]
1512
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1513
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1514
 
  --psdir=DIR             ps documentation [DOCDIR]
1515
 
_ACEOF
1516
 
 
1517
 
  cat <<\_ACEOF
1518
 
 
1519
 
Program names:
1520
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1521
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1522
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1523
 
 
1524
 
System types:
1525
 
  --build=BUILD     configure for building on BUILD [guessed]
1526
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1528
 
_ACEOF
1529
 
fi
1530
 
 
1531
 
if test -n "$ac_init_help"; then
1532
 
  case $ac_init_help in
1533
 
     short | recursive ) echo "Configuration of libclamavc++ devel:";;
1534
 
   esac
1535
 
  cat <<\_ACEOF
1536
 
 
1537
 
Optional Features:
1538
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1539
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1542
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1543
 
  --disable-dependency-tracking  speeds up one-time build
1544
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1545
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1546
 
                          (and sometimes confusing) to the casual installer
1547
 
  --enable-static[=PKGS]  build static libraries [default=no]
1548
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1549
 
  --enable-fast-install[=PKGS]
1550
 
                          optimize for fast installation [default=yes]
1551
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1552
 
  -enable-llvm            Enable 'llvm' JIT/verifier support [default=auto]
1553
 
  -enable-optimized       Compile with optimizations enabled (default is YES)
1554
 
  -enable-all-jit-targets Build all the targets that support JIT for testing
1555
 
                          (default NO)
1556
 
 
1557
 
Optional Packages:
1558
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1559
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1560
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1561
 
                          both]
1562
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563
 
  -with-system-llvm       Use system llvm instead of built-in, requires full
1564
 
                          path to llvm-config
1565
 
 
1566
 
Some influential environment variables:
1567
 
  CXX         C++ compiler command
1568
 
  CXXFLAGS    C++ compiler flags
1569
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570
 
              nonstandard directory <lib dir>
1571
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1572
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573
 
              you have headers in a nonstandard directory <include dir>
1574
 
  CC          C compiler command
1575
 
  CFLAGS      C compiler flags
1576
 
  CPP         C preprocessor
1577
 
  CXXCPP      C++ preprocessor
1578
 
 
1579
 
Use these variables to override the choices made by `configure' or to help
1580
 
it to find libraries and programs with nonstandard names/locations.
1581
 
 
1582
 
Report bugs to <http://bugs.clamav.net>.
1583
 
_ACEOF
1584
 
ac_status=$?
1585
 
fi
1586
 
 
1587
 
if test "$ac_init_help" = "recursive"; then
1588
 
  # If there are subdirs, report their specific --help.
1589
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590
 
    test -d "$ac_dir" ||
1591
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592
 
      continue
1593
 
    ac_builddir=.
1594
 
 
1595
 
case "$ac_dir" in
1596
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597
 
*)
1598
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599
 
  # A ".." for each directory in $ac_dir_suffix.
1600
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601
 
  case $ac_top_builddir_sub in
1602
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604
 
  esac ;;
1605
 
esac
1606
 
ac_abs_top_builddir=$ac_pwd
1607
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608
 
# for backward compatibility:
1609
 
ac_top_builddir=$ac_top_build_prefix
1610
 
 
1611
 
case $srcdir in
1612
 
  .)  # We are building in place.
1613
 
    ac_srcdir=.
1614
 
    ac_top_srcdir=$ac_top_builddir_sub
1615
 
    ac_abs_top_srcdir=$ac_pwd ;;
1616
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1617
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1618
 
    ac_top_srcdir=$srcdir
1619
 
    ac_abs_top_srcdir=$srcdir ;;
1620
 
  *) # Relative name.
1621
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1623
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624
 
esac
1625
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
 
 
1627
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1628
 
    # Check for guested configure.
1629
 
    if test -f "$ac_srcdir/configure.gnu"; then
1630
 
      echo &&
1631
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632
 
    elif test -f "$ac_srcdir/configure"; then
1633
 
      echo &&
1634
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1635
 
    else
1636
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637
 
    fi || ac_status=$?
1638
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1639
 
  done
1640
 
fi
1641
 
 
1642
 
test -n "$ac_init_help" && exit $ac_status
1643
 
if $ac_init_version; then
1644
 
  cat <<\_ACEOF
1645
 
libclamavc++ configure devel
1646
 
generated by GNU Autoconf 2.67
1647
 
 
1648
 
Copyright (C) 2010 Free Software Foundation, Inc.
1649
 
This configure script is free software; the Free Software Foundation
1650
 
gives unlimited permission to copy, distribute and modify it.
1651
 
_ACEOF
1652
 
  exit
1653
 
fi
1654
 
 
1655
 
## ------------------------ ##
1656
 
## Autoconf initialization. ##
1657
 
## ------------------------ ##
1658
 
 
1659
 
# ac_fn_cxx_try_compile LINENO
1660
 
# ----------------------------
1661
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1662
 
ac_fn_cxx_try_compile ()
1663
 
{
1664
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665
 
  rm -f conftest.$ac_objext
1666
 
  if { { ac_try="$ac_compile"
1667
 
case "(($ac_try" in
1668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669
 
  *) ac_try_echo=$ac_try;;
1670
 
esac
1671
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672
 
$as_echo "$ac_try_echo"; } >&5
1673
 
  (eval "$ac_compile") 2>conftest.err
1674
 
  ac_status=$?
1675
 
  if test -s conftest.err; then
1676
 
    grep -v '^ *+' conftest.err >conftest.er1
1677
 
    cat conftest.er1 >&5
1678
 
    mv -f conftest.er1 conftest.err
1679
 
  fi
1680
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681
 
  test $ac_status = 0; } && {
1682
 
         test -z "$ac_cxx_werror_flag" ||
1683
 
         test ! -s conftest.err
1684
 
       } && test -s conftest.$ac_objext; then :
1685
 
  ac_retval=0
1686
 
else
1687
 
  $as_echo "$as_me: failed program was:" >&5
1688
 
sed 's/^/| /' conftest.$ac_ext >&5
1689
 
 
1690
 
        ac_retval=1
1691
 
fi
1692
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693
 
  as_fn_set_status $ac_retval
1694
 
 
1695
 
} # ac_fn_cxx_try_compile
1696
 
 
1697
 
# ac_fn_c_try_compile LINENO
1698
 
# --------------------------
1699
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700
 
ac_fn_c_try_compile ()
1701
 
{
1702
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
 
  rm -f conftest.$ac_objext
1704
 
  if { { ac_try="$ac_compile"
1705
 
case "(($ac_try" in
1706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707
 
  *) ac_try_echo=$ac_try;;
1708
 
esac
1709
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710
 
$as_echo "$ac_try_echo"; } >&5
1711
 
  (eval "$ac_compile") 2>conftest.err
1712
 
  ac_status=$?
1713
 
  if test -s conftest.err; then
1714
 
    grep -v '^ *+' conftest.err >conftest.er1
1715
 
    cat conftest.er1 >&5
1716
 
    mv -f conftest.er1 conftest.err
1717
 
  fi
1718
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719
 
  test $ac_status = 0; } && {
1720
 
         test -z "$ac_c_werror_flag" ||
1721
 
         test ! -s conftest.err
1722
 
       } && test -s conftest.$ac_objext; then :
1723
 
  ac_retval=0
1724
 
else
1725
 
  $as_echo "$as_me: failed program was:" >&5
1726
 
sed 's/^/| /' conftest.$ac_ext >&5
1727
 
 
1728
 
        ac_retval=1
1729
 
fi
1730
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
 
  as_fn_set_status $ac_retval
1732
 
 
1733
 
} # ac_fn_c_try_compile
1734
 
 
1735
 
# ac_fn_c_try_run LINENO
1736
 
# ----------------------
1737
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738
 
# that executables *can* be run.
1739
 
ac_fn_c_try_run ()
1740
 
{
1741
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742
 
  if { { ac_try="$ac_link"
1743
 
case "(($ac_try" in
1744
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745
 
  *) ac_try_echo=$ac_try;;
1746
 
esac
1747
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748
 
$as_echo "$ac_try_echo"; } >&5
1749
 
  (eval "$ac_link") 2>&5
1750
 
  ac_status=$?
1751
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753
 
  { { case "(($ac_try" in
1754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755
 
  *) ac_try_echo=$ac_try;;
1756
 
esac
1757
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758
 
$as_echo "$ac_try_echo"; } >&5
1759
 
  (eval "$ac_try") 2>&5
1760
 
  ac_status=$?
1761
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762
 
  test $ac_status = 0; }; }; then :
1763
 
  ac_retval=0
1764
 
else
1765
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1766
 
       $as_echo "$as_me: failed program was:" >&5
1767
 
sed 's/^/| /' conftest.$ac_ext >&5
1768
 
 
1769
 
       ac_retval=$ac_status
1770
 
fi
1771
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
 
  as_fn_set_status $ac_retval
1774
 
 
1775
 
} # ac_fn_c_try_run
1776
 
 
1777
 
# ac_fn_c_try_cpp LINENO
1778
 
# ----------------------
1779
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780
 
ac_fn_c_try_cpp ()
1781
 
{
1782
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1784
 
case "(($ac_try" in
1785
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786
 
  *) ac_try_echo=$ac_try;;
1787
 
esac
1788
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789
 
$as_echo "$ac_try_echo"; } >&5
1790
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791
 
  ac_status=$?
1792
 
  if test -s conftest.err; then
1793
 
    grep -v '^ *+' conftest.err >conftest.er1
1794
 
    cat conftest.er1 >&5
1795
 
    mv -f conftest.er1 conftest.err
1796
 
  fi
1797
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798
 
  test $ac_status = 0; } > conftest.i && {
1799
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800
 
         test ! -s conftest.err
1801
 
       }; then :
1802
 
  ac_retval=0
1803
 
else
1804
 
  $as_echo "$as_me: failed program was:" >&5
1805
 
sed 's/^/| /' conftest.$ac_ext >&5
1806
 
 
1807
 
    ac_retval=1
1808
 
fi
1809
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810
 
  as_fn_set_status $ac_retval
1811
 
 
1812
 
} # ac_fn_c_try_cpp
1813
 
 
1814
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815
 
# -------------------------------------------------------
1816
 
# Tests whether HEADER exists and can be compiled using the include files in
1817
 
# INCLUDES, setting the cache variable VAR accordingly.
1818
 
ac_fn_c_check_header_compile ()
1819
 
{
1820
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822
 
$as_echo_n "checking for $2... " >&6; }
1823
 
if eval "test \"\${$3+set}\"" = set; then :
1824
 
  $as_echo_n "(cached) " >&6
1825
 
else
1826
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827
 
/* end confdefs.h.  */
1828
 
$4
1829
 
#include <$2>
1830
 
_ACEOF
1831
 
if ac_fn_c_try_compile "$LINENO"; then :
1832
 
  eval "$3=yes"
1833
 
else
1834
 
  eval "$3=no"
1835
 
fi
1836
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837
 
fi
1838
 
eval ac_res=\$$3
1839
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840
 
$as_echo "$ac_res" >&6; }
1841
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
 
 
1843
 
} # ac_fn_c_check_header_compile
1844
 
 
1845
 
# ac_fn_c_try_link LINENO
1846
 
# -----------------------
1847
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1848
 
ac_fn_c_try_link ()
1849
 
{
1850
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1852
 
  if { { ac_try="$ac_link"
1853
 
case "(($ac_try" in
1854
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855
 
  *) ac_try_echo=$ac_try;;
1856
 
esac
1857
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858
 
$as_echo "$ac_try_echo"; } >&5
1859
 
  (eval "$ac_link") 2>conftest.err
1860
 
  ac_status=$?
1861
 
  if test -s conftest.err; then
1862
 
    grep -v '^ *+' conftest.err >conftest.er1
1863
 
    cat conftest.er1 >&5
1864
 
    mv -f conftest.er1 conftest.err
1865
 
  fi
1866
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867
 
  test $ac_status = 0; } && {
1868
 
         test -z "$ac_c_werror_flag" ||
1869
 
         test ! -s conftest.err
1870
 
       } && test -s conftest$ac_exeext && {
1871
 
         test "$cross_compiling" = yes ||
1872
 
         $as_test_x conftest$ac_exeext
1873
 
       }; then :
1874
 
  ac_retval=0
1875
 
else
1876
 
  $as_echo "$as_me: failed program was:" >&5
1877
 
sed 's/^/| /' conftest.$ac_ext >&5
1878
 
 
1879
 
        ac_retval=1
1880
 
fi
1881
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883
 
  # interfere with the next link command; also delete a directory that is
1884
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1885
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
 
  as_fn_set_status $ac_retval
1888
 
 
1889
 
} # ac_fn_c_try_link
1890
 
 
1891
 
# ac_fn_c_check_func LINENO FUNC VAR
1892
 
# ----------------------------------
1893
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1894
 
ac_fn_c_check_func ()
1895
 
{
1896
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898
 
$as_echo_n "checking for $2... " >&6; }
1899
 
if eval "test \"\${$3+set}\"" = set; then :
1900
 
  $as_echo_n "(cached) " >&6
1901
 
else
1902
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903
 
/* end confdefs.h.  */
1904
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1906
 
#define $2 innocuous_$2
1907
 
 
1908
 
/* System header to define __stub macros and hopefully few prototypes,
1909
 
    which can conflict with char $2 (); below.
1910
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911
 
    <limits.h> exists even on freestanding compilers.  */
1912
 
 
1913
 
#ifdef __STDC__
1914
 
# include <limits.h>
1915
 
#else
1916
 
# include <assert.h>
1917
 
#endif
1918
 
 
1919
 
#undef $2
1920
 
 
1921
 
/* Override any GCC internal prototype to avoid an error.
1922
 
   Use char because int might match the return type of a GCC
1923
 
   builtin and then its argument prototype would still apply.  */
1924
 
#ifdef __cplusplus
1925
 
extern "C"
1926
 
#endif
1927
 
char $2 ();
1928
 
/* The GNU C library defines this for functions which it implements
1929
 
    to always fail with ENOSYS.  Some functions are actually named
1930
 
    something starting with __ and the normal name is an alias.  */
1931
 
#if defined __stub_$2 || defined __stub___$2
1932
 
choke me
1933
 
#endif
1934
 
 
1935
 
int
1936
 
main ()
1937
 
{
1938
 
return $2 ();
1939
 
  ;
1940
 
  return 0;
1941
 
}
1942
 
_ACEOF
1943
 
if ac_fn_c_try_link "$LINENO"; then :
1944
 
  eval "$3=yes"
1945
 
else
1946
 
  eval "$3=no"
1947
 
fi
1948
 
rm -f core conftest.err conftest.$ac_objext \
1949
 
    conftest$ac_exeext conftest.$ac_ext
1950
 
fi
1951
 
eval ac_res=\$$3
1952
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953
 
$as_echo "$ac_res" >&6; }
1954
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
 
 
1956
 
} # ac_fn_c_check_func
1957
 
 
1958
 
# ac_fn_cxx_try_cpp LINENO
1959
 
# ------------------------
1960
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1961
 
ac_fn_cxx_try_cpp ()
1962
 
{
1963
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1965
 
case "(($ac_try" in
1966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967
 
  *) ac_try_echo=$ac_try;;
1968
 
esac
1969
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970
 
$as_echo "$ac_try_echo"; } >&5
1971
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1972
 
  ac_status=$?
1973
 
  if test -s conftest.err; then
1974
 
    grep -v '^ *+' conftest.err >conftest.er1
1975
 
    cat conftest.er1 >&5
1976
 
    mv -f conftest.er1 conftest.err
1977
 
  fi
1978
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979
 
  test $ac_status = 0; } > conftest.i && {
1980
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1981
 
         test ! -s conftest.err
1982
 
       }; then :
1983
 
  ac_retval=0
1984
 
else
1985
 
  $as_echo "$as_me: failed program was:" >&5
1986
 
sed 's/^/| /' conftest.$ac_ext >&5
1987
 
 
1988
 
    ac_retval=1
1989
 
fi
1990
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991
 
  as_fn_set_status $ac_retval
1992
 
 
1993
 
} # ac_fn_cxx_try_cpp
1994
 
 
1995
 
# ac_fn_cxx_try_link LINENO
1996
 
# -------------------------
1997
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1998
 
ac_fn_cxx_try_link ()
1999
 
{
2000
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001
 
  rm -f conftest.$ac_objext conftest$ac_exeext
2002
 
  if { { ac_try="$ac_link"
2003
 
case "(($ac_try" in
2004
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005
 
  *) ac_try_echo=$ac_try;;
2006
 
esac
2007
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008
 
$as_echo "$ac_try_echo"; } >&5
2009
 
  (eval "$ac_link") 2>conftest.err
2010
 
  ac_status=$?
2011
 
  if test -s conftest.err; then
2012
 
    grep -v '^ *+' conftest.err >conftest.er1
2013
 
    cat conftest.er1 >&5
2014
 
    mv -f conftest.er1 conftest.err
2015
 
  fi
2016
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017
 
  test $ac_status = 0; } && {
2018
 
         test -z "$ac_cxx_werror_flag" ||
2019
 
         test ! -s conftest.err
2020
 
       } && test -s conftest$ac_exeext && {
2021
 
         test "$cross_compiling" = yes ||
2022
 
         $as_test_x conftest$ac_exeext
2023
 
       }; then :
2024
 
  ac_retval=0
2025
 
else
2026
 
  $as_echo "$as_me: failed program was:" >&5
2027
 
sed 's/^/| /' conftest.$ac_ext >&5
2028
 
 
2029
 
        ac_retval=1
2030
 
fi
2031
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033
 
  # interfere with the next link command; also delete a directory that is
2034
 
  # left behind by Apple's compiler.  We do this before executing the actions.
2035
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
 
  as_fn_set_status $ac_retval
2038
 
 
2039
 
} # ac_fn_cxx_try_link
2040
 
 
2041
 
# ac_fn_cxx_try_run LINENO
2042
 
# ------------------------
2043
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2044
 
# that executables *can* be run.
2045
 
ac_fn_cxx_try_run ()
2046
 
{
2047
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
 
  if { { ac_try="$ac_link"
2049
 
case "(($ac_try" in
2050
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051
 
  *) ac_try_echo=$ac_try;;
2052
 
esac
2053
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054
 
$as_echo "$ac_try_echo"; } >&5
2055
 
  (eval "$ac_link") 2>&5
2056
 
  ac_status=$?
2057
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2059
 
  { { case "(($ac_try" in
2060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061
 
  *) ac_try_echo=$ac_try;;
2062
 
esac
2063
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064
 
$as_echo "$ac_try_echo"; } >&5
2065
 
  (eval "$ac_try") 2>&5
2066
 
  ac_status=$?
2067
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068
 
  test $ac_status = 0; }; }; then :
2069
 
  ac_retval=0
2070
 
else
2071
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
2072
 
       $as_echo "$as_me: failed program was:" >&5
2073
 
sed 's/^/| /' conftest.$ac_ext >&5
2074
 
 
2075
 
       ac_retval=$ac_status
2076
 
fi
2077
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079
 
  as_fn_set_status $ac_retval
2080
 
 
2081
 
} # ac_fn_cxx_try_run
2082
 
cat >config.log <<_ACEOF
2083
 
This file contains any messages produced by compilers while
2084
 
running configure, to aid debugging if configure makes a mistake.
2085
 
 
2086
 
It was created by libclamavc++ $as_me devel, which was
2087
 
generated by GNU Autoconf 2.67.  Invocation command line was
2088
 
 
2089
 
  $ $0 $@
2090
 
 
2091
 
_ACEOF
2092
 
exec 5>>config.log
2093
 
{
2094
 
cat <<_ASUNAME
2095
 
## --------- ##
2096
 
## Platform. ##
2097
 
## --------- ##
2098
 
 
2099
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2104
 
 
2105
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2107
 
 
2108
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2109
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2110
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2112
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2113
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2114
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2115
 
 
2116
 
_ASUNAME
2117
 
 
2118
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119
 
for as_dir in $PATH
2120
 
do
2121
 
  IFS=$as_save_IFS
2122
 
  test -z "$as_dir" && as_dir=.
2123
 
    $as_echo "PATH: $as_dir"
2124
 
  done
2125
 
IFS=$as_save_IFS
2126
 
 
2127
 
} >&5
2128
 
 
2129
 
cat >&5 <<_ACEOF
2130
 
 
2131
 
 
2132
 
## ----------- ##
2133
 
## Core tests. ##
2134
 
## ----------- ##
2135
 
 
2136
 
_ACEOF
2137
 
 
2138
 
 
2139
 
# Keep a trace of the command line.
2140
 
# Strip out --no-create and --no-recursion so they do not pile up.
2141
 
# Strip out --silent because we don't want to record it for future runs.
2142
 
# Also quote any args containing shell meta-characters.
2143
 
# Make two passes to allow for proper duplicate-argument suppression.
2144
 
ac_configure_args=
2145
 
ac_configure_args0=
2146
 
ac_configure_args1=
2147
 
ac_must_keep_next=false
2148
 
for ac_pass in 1 2
2149
 
do
2150
 
  for ac_arg
2151
 
  do
2152
 
    case $ac_arg in
2153
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2154
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2155
 
    | -silent | --silent | --silen | --sile | --sil)
2156
 
      continue ;;
2157
 
    *\'*)
2158
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159
 
    esac
2160
 
    case $ac_pass in
2161
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2162
 
    2)
2163
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2164
 
      if test $ac_must_keep_next = true; then
2165
 
        ac_must_keep_next=false # Got value, back to normal.
2166
 
      else
2167
 
        case $ac_arg in
2168
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2169
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2170
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2171
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2172
 
            case "$ac_configure_args0 " in
2173
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174
 
            esac
2175
 
            ;;
2176
 
          -* ) ac_must_keep_next=true ;;
2177
 
        esac
2178
 
      fi
2179
 
      as_fn_append ac_configure_args " '$ac_arg'"
2180
 
      ;;
2181
 
    esac
2182
 
  done
2183
 
done
2184
 
{ ac_configure_args0=; unset ac_configure_args0;}
2185
 
{ ac_configure_args1=; unset ac_configure_args1;}
2186
 
 
2187
 
# When interrupted or exit'd, cleanup temporary files, and complete
2188
 
# config.log.  We remove comments because anyway the quotes in there
2189
 
# would cause problems or look ugly.
2190
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2191
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192
 
trap 'exit_status=$?
2193
 
  # Save into config.log some information that might help in debugging.
2194
 
  {
2195
 
    echo
2196
 
 
2197
 
    $as_echo "## ---------------- ##
2198
 
## Cache variables. ##
2199
 
## ---------------- ##"
2200
 
    echo
2201
 
    # The following way of writing the cache mishandles newlines in values,
2202
 
(
2203
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204
 
    eval ac_val=\$$ac_var
2205
 
    case $ac_val in #(
2206
 
    *${as_nl}*)
2207
 
      case $ac_var in #(
2208
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210
 
      esac
2211
 
      case $ac_var in #(
2212
 
      _ | IFS | as_nl) ;; #(
2213
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2215
 
      esac ;;
2216
 
    esac
2217
 
  done
2218
 
  (set) 2>&1 |
2219
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220
 
    *${as_nl}ac_space=\ *)
2221
 
      sed -n \
2222
 
        "s/'\''/'\''\\\\'\'''\''/g;
2223
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224
 
      ;; #(
2225
 
    *)
2226
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2227
 
      ;;
2228
 
    esac |
2229
 
    sort
2230
 
)
2231
 
    echo
2232
 
 
2233
 
    $as_echo "## ----------------- ##
2234
 
## Output variables. ##
2235
 
## ----------------- ##"
2236
 
    echo
2237
 
    for ac_var in $ac_subst_vars
2238
 
    do
2239
 
      eval ac_val=\$$ac_var
2240
 
      case $ac_val in
2241
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242
 
      esac
2243
 
      $as_echo "$ac_var='\''$ac_val'\''"
2244
 
    done | sort
2245
 
    echo
2246
 
 
2247
 
    if test -n "$ac_subst_files"; then
2248
 
      $as_echo "## ------------------- ##
2249
 
## File substitutions. ##
2250
 
## ------------------- ##"
2251
 
      echo
2252
 
      for ac_var in $ac_subst_files
2253
 
      do
2254
 
        eval ac_val=\$$ac_var
2255
 
        case $ac_val in
2256
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257
 
        esac
2258
 
        $as_echo "$ac_var='\''$ac_val'\''"
2259
 
      done | sort
2260
 
      echo
2261
 
    fi
2262
 
 
2263
 
    if test -s confdefs.h; then
2264
 
      $as_echo "## ----------- ##
2265
 
## confdefs.h. ##
2266
 
## ----------- ##"
2267
 
      echo
2268
 
      cat confdefs.h
2269
 
      echo
2270
 
    fi
2271
 
    test "$ac_signal" != 0 &&
2272
 
      $as_echo "$as_me: caught signal $ac_signal"
2273
 
    $as_echo "$as_me: exit $exit_status"
2274
 
  } >&5
2275
 
  rm -f core *.core core.conftest.* &&
2276
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277
 
    exit $exit_status
2278
 
' 0
2279
 
for ac_signal in 1 2 13 15; do
2280
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281
 
done
2282
 
ac_signal=0
2283
 
 
2284
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2285
 
rm -f -r conftest* confdefs.h
2286
 
 
2287
 
$as_echo "/* confdefs.h */" > confdefs.h
2288
 
 
2289
 
# Predefined preprocessor variables.
2290
 
 
2291
 
cat >>confdefs.h <<_ACEOF
2292
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2293
 
_ACEOF
2294
 
 
2295
 
cat >>confdefs.h <<_ACEOF
2296
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297
 
_ACEOF
2298
 
 
2299
 
cat >>confdefs.h <<_ACEOF
2300
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2301
 
_ACEOF
2302
 
 
2303
 
cat >>confdefs.h <<_ACEOF
2304
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2305
 
_ACEOF
2306
 
 
2307
 
cat >>confdefs.h <<_ACEOF
2308
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309
 
_ACEOF
2310
 
 
2311
 
cat >>confdefs.h <<_ACEOF
2312
 
#define PACKAGE_URL "$PACKAGE_URL"
2313
 
_ACEOF
2314
 
 
2315
 
 
2316
 
# Let the site file select an alternate cache file if it wants to.
2317
 
# Prefer an explicitly selected file to automatically selected ones.
2318
 
ac_site_file1=NONE
2319
 
ac_site_file2=NONE
2320
 
if test -n "$CONFIG_SITE"; then
2321
 
  # We do not want a PATH search for config.site.
2322
 
  case $CONFIG_SITE in #((
2323
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2324
 
    */*) ac_site_file1=$CONFIG_SITE;;
2325
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2326
 
  esac
2327
 
elif test "x$prefix" != xNONE; then
2328
 
  ac_site_file1=$prefix/share/config.site
2329
 
  ac_site_file2=$prefix/etc/config.site
2330
 
else
2331
 
  ac_site_file1=$ac_default_prefix/share/config.site
2332
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2333
 
fi
2334
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2335
 
do
2336
 
  test "x$ac_site_file" = xNONE && continue
2337
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2338
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2339
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2340
 
    sed 's/^/| /' "$ac_site_file" >&5
2341
 
    . "$ac_site_file" \
2342
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344
 
as_fn_error $? "failed to load site script $ac_site_file
2345
 
See \`config.log' for more details" "$LINENO" 5 ; }
2346
 
  fi
2347
 
done
2348
 
 
2349
 
if test -r "$cache_file"; then
2350
 
  # Some versions of bash will fail to source /dev/null (special files
2351
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2352
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2353
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2354
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2355
 
    case $cache_file in
2356
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2357
 
      *)                      . "./$cache_file";;
2358
 
    esac
2359
 
  fi
2360
 
else
2361
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2362
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2363
 
  >$cache_file
2364
 
fi
2365
 
 
2366
 
# Check that the precious variables saved in the cache have kept the same
2367
 
# value.
2368
 
ac_cache_corrupted=false
2369
 
for ac_var in $ac_precious_vars; do
2370
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2372
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2374
 
  case $ac_old_set,$ac_new_set in
2375
 
    set,)
2376
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378
 
      ac_cache_corrupted=: ;;
2379
 
    ,set)
2380
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382
 
      ac_cache_corrupted=: ;;
2383
 
    ,);;
2384
 
    *)
2385
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2386
 
        # differences in whitespace do not lead to failure.
2387
 
        ac_old_val_w=`echo x $ac_old_val`
2388
 
        ac_new_val_w=`echo x $ac_new_val`
2389
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392
 
          ac_cache_corrupted=:
2393
 
        else
2394
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396
 
          eval $ac_var=\$ac_old_val
2397
 
        fi
2398
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2399
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2400
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2401
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2402
 
      fi;;
2403
 
  esac
2404
 
  # Pass precious variables to config.status.
2405
 
  if test "$ac_new_set" = set; then
2406
 
    case $ac_new_val in
2407
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2409
 
    esac
2410
 
    case " $ac_configure_args " in
2411
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2412
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413
 
    esac
2414
 
  fi
2415
 
done
2416
 
if $ac_cache_corrupted; then
2417
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2422
 
fi
2423
 
## -------------------- ##
2424
 
## Main body of script. ##
2425
 
## -------------------- ##
2426
 
 
2427
 
ac_ext=c
2428
 
ac_cpp='$CPP $CPPFLAGS'
2429
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
 
 
2433
 
 
2434
 
ac_aux_dir=
2435
 
for ac_dir in config "$srcdir"/config; do
2436
 
  if test -f "$ac_dir/install-sh"; then
2437
 
    ac_aux_dir=$ac_dir
2438
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2439
 
    break
2440
 
  elif test -f "$ac_dir/install.sh"; then
2441
 
    ac_aux_dir=$ac_dir
2442
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2443
 
    break
2444
 
  elif test -f "$ac_dir/shtool"; then
2445
 
    ac_aux_dir=$ac_dir
2446
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2447
 
    break
2448
 
  fi
2449
 
done
2450
 
if test -z "$ac_aux_dir"; then
2451
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2452
 
fi
2453
 
 
2454
 
# These three variables are undocumented and unsupported,
2455
 
# and are intended to be withdrawn in a future Autoconf release.
2456
 
# They can cause serious problems if a builder's source tree is in a directory
2457
 
# whose full name contains unusual characters.
2458
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2459
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2460
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2461
 
 
2462
 
 
2463
 
 
2464
 
 
2465
 
ac_config_headers="$ac_config_headers clamavcxx-config.h"
2466
 
 
2467
 
# Make sure we can run config.sub.
2468
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2469
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2470
 
 
2471
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2472
 
$as_echo_n "checking build system type... " >&6; }
2473
 
if test "${ac_cv_build+set}" = set; then :
2474
 
  $as_echo_n "(cached) " >&6
2475
 
else
2476
 
  ac_build_alias=$build_alias
2477
 
test "x$ac_build_alias" = x &&
2478
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2479
 
test "x$ac_build_alias" = x &&
2480
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2481
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2483
 
 
2484
 
fi
2485
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2486
 
$as_echo "$ac_cv_build" >&6; }
2487
 
case $ac_cv_build in
2488
 
*-*-*) ;;
2489
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2490
 
esac
2491
 
build=$ac_cv_build
2492
 
ac_save_IFS=$IFS; IFS='-'
2493
 
set x $ac_cv_build
2494
 
shift
2495
 
build_cpu=$1
2496
 
build_vendor=$2
2497
 
shift; shift
2498
 
# Remember, the first character of IFS is used to create $*,
2499
 
# except with old shells:
2500
 
build_os=$*
2501
 
IFS=$ac_save_IFS
2502
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2503
 
 
2504
 
 
2505
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2506
 
$as_echo_n "checking host system type... " >&6; }
2507
 
if test "${ac_cv_host+set}" = set; then :
2508
 
  $as_echo_n "(cached) " >&6
2509
 
else
2510
 
  if test "x$host_alias" = x; then
2511
 
  ac_cv_host=$ac_cv_build
2512
 
else
2513
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2514
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2515
 
fi
2516
 
 
2517
 
fi
2518
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2519
 
$as_echo "$ac_cv_host" >&6; }
2520
 
case $ac_cv_host in
2521
 
*-*-*) ;;
2522
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2523
 
esac
2524
 
host=$ac_cv_host
2525
 
ac_save_IFS=$IFS; IFS='-'
2526
 
set x $ac_cv_host
2527
 
shift
2528
 
host_cpu=$1
2529
 
host_vendor=$2
2530
 
shift; shift
2531
 
# Remember, the first character of IFS is used to create $*,
2532
 
# except with old shells:
2533
 
host_os=$*
2534
 
IFS=$ac_save_IFS
2535
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
 
 
2537
 
 
2538
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2539
 
$as_echo_n "checking target system type... " >&6; }
2540
 
if test "${ac_cv_target+set}" = set; then :
2541
 
  $as_echo_n "(cached) " >&6
2542
 
else
2543
 
  if test "x$target_alias" = x; then
2544
 
  ac_cv_target=$ac_cv_host
2545
 
else
2546
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2547
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2548
 
fi
2549
 
 
2550
 
fi
2551
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2552
 
$as_echo "$ac_cv_target" >&6; }
2553
 
case $ac_cv_target in
2554
 
*-*-*) ;;
2555
 
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2556
 
esac
2557
 
target=$ac_cv_target
2558
 
ac_save_IFS=$IFS; IFS='-'
2559
 
set x $ac_cv_target
2560
 
shift
2561
 
target_cpu=$1
2562
 
target_vendor=$2
2563
 
shift; shift
2564
 
# Remember, the first character of IFS is used to create $*,
2565
 
# except with old shells:
2566
 
target_os=$*
2567
 
IFS=$ac_save_IFS
2568
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2569
 
 
2570
 
 
2571
 
# The aliases save the names the user supplied, while $host etc.
2572
 
# will get canonicalized.
2573
 
test -n "$target_alias" &&
2574
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2575
 
    NONENONEs,x,x, &&
2576
 
  program_prefix=${target_alias}-
2577
 
am__api_version='1.11'
2578
 
 
2579
 
# Find a good install program.  We prefer a C program (faster),
2580
 
# so one script is as good as another.  But avoid the broken or
2581
 
# incompatible versions:
2582
 
# SysV /etc/install, /usr/sbin/install
2583
 
# SunOS /usr/etc/install
2584
 
# IRIX /sbin/install
2585
 
# AIX /bin/install
2586
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2587
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2588
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2589
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2590
 
# OS/2's system install, which has a completely different semantic
2591
 
# ./install, which can be erroneously created by make from ./install.sh.
2592
 
# Reject install programs that cannot install multiple files.
2593
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2594
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2595
 
if test -z "$INSTALL"; then
2596
 
if test "${ac_cv_path_install+set}" = set; then :
2597
 
  $as_echo_n "(cached) " >&6
2598
 
else
2599
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600
 
for as_dir in $PATH
2601
 
do
2602
 
  IFS=$as_save_IFS
2603
 
  test -z "$as_dir" && as_dir=.
2604
 
    # Account for people who put trailing slashes in PATH elements.
2605
 
case $as_dir/ in #((
2606
 
  ./ | .// | /[cC]/* | \
2607
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2608
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2609
 
  /usr/ucb/* ) ;;
2610
 
  *)
2611
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2612
 
    # Don't use installbsd from OSF since it installs stuff as root
2613
 
    # by default.
2614
 
    for ac_prog in ginstall scoinst install; do
2615
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2616
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2617
 
          if test $ac_prog = install &&
2618
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619
 
            # AIX install.  It has an incompatible calling convention.
2620
 
            :
2621
 
          elif test $ac_prog = install &&
2622
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623
 
            # program-specific install script used by HP pwplus--don't use.
2624
 
            :
2625
 
          else
2626
 
            rm -rf conftest.one conftest.two conftest.dir
2627
 
            echo one > conftest.one
2628
 
            echo two > conftest.two
2629
 
            mkdir conftest.dir
2630
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2631
 
              test -s conftest.one && test -s conftest.two &&
2632
 
              test -s conftest.dir/conftest.one &&
2633
 
              test -s conftest.dir/conftest.two
2634
 
            then
2635
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2636
 
              break 3
2637
 
            fi
2638
 
          fi
2639
 
        fi
2640
 
      done
2641
 
    done
2642
 
    ;;
2643
 
esac
2644
 
 
2645
 
  done
2646
 
IFS=$as_save_IFS
2647
 
 
2648
 
rm -rf conftest.one conftest.two conftest.dir
2649
 
 
2650
 
fi
2651
 
  if test "${ac_cv_path_install+set}" = set; then
2652
 
    INSTALL=$ac_cv_path_install
2653
 
  else
2654
 
    # As a last resort, use the slow shell script.  Don't cache a
2655
 
    # value for INSTALL within a source directory, because that will
2656
 
    # break other packages using the cache if that directory is
2657
 
    # removed, or if the value is a relative name.
2658
 
    INSTALL=$ac_install_sh
2659
 
  fi
2660
 
fi
2661
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2662
 
$as_echo "$INSTALL" >&6; }
2663
 
 
2664
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2665
 
# It thinks the first close brace ends the variable substitution.
2666
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2667
 
 
2668
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2669
 
 
2670
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2671
 
 
2672
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2673
 
$as_echo_n "checking whether build environment is sane... " >&6; }
2674
 
# Just in case
2675
 
sleep 1
2676
 
echo timestamp > conftest.file
2677
 
# Reject unsafe characters in $srcdir or the absolute working directory
2678
 
# name.  Accept space and tab only in the latter.
2679
 
am_lf='
2680
 
'
2681
 
case `pwd` in
2682
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2683
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2684
 
esac
2685
 
case $srcdir in
2686
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2687
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2688
 
esac
2689
 
 
2690
 
# Do `set' in a subshell so we don't clobber the current shell's
2691
 
# arguments.  Must try -L first in case configure is actually a
2692
 
# symlink; some systems play weird games with the mod time of symlinks
2693
 
# (eg FreeBSD returns the mod time of the symlink's containing
2694
 
# directory).
2695
 
if (
2696
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2697
 
   if test "$*" = "X"; then
2698
 
      # -L didn't work.
2699
 
      set X `ls -t "$srcdir/configure" conftest.file`
2700
 
   fi
2701
 
   rm -f conftest.file
2702
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2703
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2704
 
 
2705
 
      # If neither matched, then we have a broken ls.  This can happen
2706
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2707
 
      # broken ls alias from the environment.  This has actually
2708
 
      # happened.  Such a system could not be considered "sane".
2709
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2710
 
alias in your environment" "$LINENO" 5
2711
 
   fi
2712
 
 
2713
 
   test "$2" = conftest.file
2714
 
   )
2715
 
then
2716
 
   # Ok.
2717
 
   :
2718
 
else
2719
 
   as_fn_error $? "newly created file is older than distributed files!
2720
 
Check your system clock" "$LINENO" 5
2721
 
fi
2722
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723
 
$as_echo "yes" >&6; }
2724
 
test "$program_prefix" != NONE &&
2725
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2726
 
# Use a double $ so make ignores it.
2727
 
test "$program_suffix" != NONE &&
2728
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2729
 
# Double any \ or $.
2730
 
# By default was `s,x,x', remove it if useless.
2731
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2732
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2733
 
 
2734
 
# expand $ac_aux_dir to an absolute path
2735
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2736
 
 
2737
 
if test x"${MISSING+set}" != xset; then
2738
 
  case $am_aux_dir in
2739
 
  *\ * | *\     *)
2740
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2741
 
  *)
2742
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2743
 
  esac
2744
 
fi
2745
 
# Use eval to expand $SHELL
2746
 
if eval "$MISSING --run true"; then
2747
 
  am_missing_run="$MISSING --run "
2748
 
else
2749
 
  am_missing_run=
2750
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2751
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2752
 
fi
2753
 
 
2754
 
if test x"${install_sh}" != xset; then
2755
 
  case $am_aux_dir in
2756
 
  *\ * | *\     *)
2757
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2758
 
  *)
2759
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2760
 
  esac
2761
 
fi
2762
 
 
2763
 
# Installed binaries are usually stripped using `strip' when the user
2764
 
# run `make install-strip'.  However `strip' might not be the right
2765
 
# tool to use in cross-compilation environments, therefore Automake
2766
 
# will honor the `STRIP' environment variable to overrule this program.
2767
 
if test "$cross_compiling" != no; then
2768
 
  if test -n "$ac_tool_prefix"; then
2769
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2770
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2771
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772
 
$as_echo_n "checking for $ac_word... " >&6; }
2773
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
2774
 
  $as_echo_n "(cached) " >&6
2775
 
else
2776
 
  if test -n "$STRIP"; then
2777
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2778
 
else
2779
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780
 
for as_dir in $PATH
2781
 
do
2782
 
  IFS=$as_save_IFS
2783
 
  test -z "$as_dir" && as_dir=.
2784
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2785
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2787
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788
 
    break 2
2789
 
  fi
2790
 
done
2791
 
  done
2792
 
IFS=$as_save_IFS
2793
 
 
2794
 
fi
2795
 
fi
2796
 
STRIP=$ac_cv_prog_STRIP
2797
 
if test -n "$STRIP"; then
2798
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2799
 
$as_echo "$STRIP" >&6; }
2800
 
else
2801
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802
 
$as_echo "no" >&6; }
2803
 
fi
2804
 
 
2805
 
 
2806
 
fi
2807
 
if test -z "$ac_cv_prog_STRIP"; then
2808
 
  ac_ct_STRIP=$STRIP
2809
 
  # Extract the first word of "strip", so it can be a program name with args.
2810
 
set dummy strip; ac_word=$2
2811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812
 
$as_echo_n "checking for $ac_word... " >&6; }
2813
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2814
 
  $as_echo_n "(cached) " >&6
2815
 
else
2816
 
  if test -n "$ac_ct_STRIP"; then
2817
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2818
 
else
2819
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820
 
for as_dir in $PATH
2821
 
do
2822
 
  IFS=$as_save_IFS
2823
 
  test -z "$as_dir" && as_dir=.
2824
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2825
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826
 
    ac_cv_prog_ac_ct_STRIP="strip"
2827
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828
 
    break 2
2829
 
  fi
2830
 
done
2831
 
  done
2832
 
IFS=$as_save_IFS
2833
 
 
2834
 
fi
2835
 
fi
2836
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2837
 
if test -n "$ac_ct_STRIP"; then
2838
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2839
 
$as_echo "$ac_ct_STRIP" >&6; }
2840
 
else
2841
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842
 
$as_echo "no" >&6; }
2843
 
fi
2844
 
 
2845
 
  if test "x$ac_ct_STRIP" = x; then
2846
 
    STRIP=":"
2847
 
  else
2848
 
    case $cross_compiling:$ac_tool_warned in
2849
 
yes:)
2850
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852
 
ac_tool_warned=yes ;;
2853
 
esac
2854
 
    STRIP=$ac_ct_STRIP
2855
 
  fi
2856
 
else
2857
 
  STRIP="$ac_cv_prog_STRIP"
2858
 
fi
2859
 
 
2860
 
fi
2861
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2862
 
 
2863
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2864
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2865
 
if test -z "$MKDIR_P"; then
2866
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
2867
 
  $as_echo_n "(cached) " >&6
2868
 
else
2869
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2871
 
do
2872
 
  IFS=$as_save_IFS
2873
 
  test -z "$as_dir" && as_dir=.
2874
 
    for ac_prog in mkdir gmkdir; do
2875
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2876
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2877
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2878
 
             'mkdir (GNU coreutils) '* | \
2879
 
             'mkdir (coreutils) '* | \
2880
 
             'mkdir (fileutils) '4.1*)
2881
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2882
 
               break 3;;
2883
 
           esac
2884
 
         done
2885
 
       done
2886
 
  done
2887
 
IFS=$as_save_IFS
2888
 
 
2889
 
fi
2890
 
 
2891
 
  test -d ./--version && rmdir ./--version
2892
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2893
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2894
 
  else
2895
 
    # As a last resort, use the slow shell script.  Don't cache a
2896
 
    # value for MKDIR_P within a source directory, because that will
2897
 
    # break other packages using the cache if that directory is
2898
 
    # removed, or if the value is a relative name.
2899
 
    MKDIR_P="$ac_install_sh -d"
2900
 
  fi
2901
 
fi
2902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2903
 
$as_echo "$MKDIR_P" >&6; }
2904
 
 
2905
 
mkdir_p="$MKDIR_P"
2906
 
case $mkdir_p in
2907
 
  [\\/$]* | ?:[\\/]*) ;;
2908
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2909
 
esac
2910
 
 
2911
 
for ac_prog in gawk mawk nawk awk
2912
 
do
2913
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2914
 
set dummy $ac_prog; ac_word=$2
2915
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916
 
$as_echo_n "checking for $ac_word... " >&6; }
2917
 
if test "${ac_cv_prog_AWK+set}" = set; then :
2918
 
  $as_echo_n "(cached) " >&6
2919
 
else
2920
 
  if test -n "$AWK"; then
2921
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2922
 
else
2923
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924
 
for as_dir in $PATH
2925
 
do
2926
 
  IFS=$as_save_IFS
2927
 
  test -z "$as_dir" && as_dir=.
2928
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2929
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930
 
    ac_cv_prog_AWK="$ac_prog"
2931
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932
 
    break 2
2933
 
  fi
2934
 
done
2935
 
  done
2936
 
IFS=$as_save_IFS
2937
 
 
2938
 
fi
2939
 
fi
2940
 
AWK=$ac_cv_prog_AWK
2941
 
if test -n "$AWK"; then
2942
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2943
 
$as_echo "$AWK" >&6; }
2944
 
else
2945
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946
 
$as_echo "no" >&6; }
2947
 
fi
2948
 
 
2949
 
 
2950
 
  test -n "$AWK" && break
2951
 
done
2952
 
 
2953
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2954
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2955
 
set x ${MAKE-make}
2956
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2957
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2958
 
  $as_echo_n "(cached) " >&6
2959
 
else
2960
 
  cat >conftest.make <<\_ACEOF
2961
 
SHELL = /bin/sh
2962
 
all:
2963
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2964
 
_ACEOF
2965
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2966
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2967
 
  *@@@%%%=?*=@@@%%%*)
2968
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2969
 
  *)
2970
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2971
 
esac
2972
 
rm -f conftest.make
2973
 
fi
2974
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2975
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976
 
$as_echo "yes" >&6; }
2977
 
  SET_MAKE=
2978
 
else
2979
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980
 
$as_echo "no" >&6; }
2981
 
  SET_MAKE="MAKE=${MAKE-make}"
2982
 
fi
2983
 
 
2984
 
rm -rf .tst 2>/dev/null
2985
 
mkdir .tst 2>/dev/null
2986
 
if test -d .tst; then
2987
 
  am__leading_dot=.
2988
 
else
2989
 
  am__leading_dot=_
2990
 
fi
2991
 
rmdir .tst 2>/dev/null
2992
 
 
2993
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2994
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2995
 
  # is not polluted with repeated "-I."
2996
 
  am__isrc=' -I$(srcdir)'
2997
 
  # test to see if srcdir already configured
2998
 
  if test -f $srcdir/config.status; then
2999
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3000
 
  fi
3001
 
fi
3002
 
 
3003
 
# test whether we have cygpath
3004
 
if test -z "$CYGPATH_W"; then
3005
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
3006
 
    CYGPATH_W='cygpath -w'
3007
 
  else
3008
 
    CYGPATH_W=echo
3009
 
  fi
3010
 
fi
3011
 
 
3012
 
 
3013
 
# Define the identity of the package.
3014
 
 PACKAGE='libclamavc--'
3015
 
 VERSION='devel'
3016
 
 
3017
 
 
3018
 
# Some tools Automake needs.
3019
 
 
3020
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3021
 
 
3022
 
 
3023
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3024
 
 
3025
 
 
3026
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3027
 
 
3028
 
 
3029
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3030
 
 
3031
 
 
3032
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033
 
 
3034
 
# We need awk for the "check" target.  The system "awk" is bad on
3035
 
# some platforms.
3036
 
# Always define AMTAR for backward compatibility.
3037
 
 
3038
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
3039
 
 
3040
 
 
3041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3042
 
$as_echo_n "checking how to create a pax tar archive... " >&6; }
3043
 
# Loop over all known methods to create a tar archive until one works.
3044
 
_am_tools='gnutar  pax cpio none'
3045
 
_am_tools=${am_cv_prog_tar_pax-$_am_tools}
3046
 
# Do not fold the above two line into one, because Tru64 sh and
3047
 
# Solaris sh will not grok spaces in the rhs of `-'.
3048
 
for _am_tool in $_am_tools
3049
 
do
3050
 
  case $_am_tool in
3051
 
  gnutar)
3052
 
    for _am_tar in tar gnutar gtar;
3053
 
    do
3054
 
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3055
 
   ($_am_tar --version) >&5 2>&5
3056
 
   ac_status=$?
3057
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
 
   (exit $ac_status); } && break
3059
 
    done
3060
 
    am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3061
 
    am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3062
 
    am__untar="$_am_tar -xf -"
3063
 
    ;;
3064
 
  plaintar)
3065
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
3066
 
    # ustar tarball either.
3067
 
    (tar --version) >/dev/null 2>&1 && continue
3068
 
    am__tar='tar chf - "$$tardir"'
3069
 
    am__tar_='tar chf - "$tardir"'
3070
 
    am__untar='tar xf -'
3071
 
    ;;
3072
 
  pax)
3073
 
    am__tar='pax -L -x pax -w "$$tardir"'
3074
 
    am__tar_='pax -L -x pax -w "$tardir"'
3075
 
    am__untar='pax -r'
3076
 
    ;;
3077
 
  cpio)
3078
 
    am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3079
 
    am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3080
 
    am__untar='cpio -i -H pax -d'
3081
 
    ;;
3082
 
  none)
3083
 
    am__tar=false
3084
 
    am__tar_=false
3085
 
    am__untar=false
3086
 
    ;;
3087
 
  esac
3088
 
 
3089
 
  # If the value was cached, stop now.  We just wanted to have am__tar
3090
 
  # and am__untar set.
3091
 
  test -n "${am_cv_prog_tar_pax}" && break
3092
 
 
3093
 
  # tar/untar a dummy directory, and stop if the command works
3094
 
  rm -rf conftest.dir
3095
 
  mkdir conftest.dir
3096
 
  echo GrepMe > conftest.dir/file
3097
 
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3098
 
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3099
 
   ac_status=$?
3100
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101
 
   (exit $ac_status); }
3102
 
  rm -rf conftest.dir
3103
 
  if test -s conftest.tar; then
3104
 
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3105
 
   ($am__untar <conftest.tar) >&5 2>&5
3106
 
   ac_status=$?
3107
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
 
   (exit $ac_status); }
3109
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3110
 
  fi
3111
 
done
3112
 
rm -rf conftest.dir
3113
 
 
3114
 
if test "${am_cv_prog_tar_pax+set}" = set; then :
3115
 
  $as_echo_n "(cached) " >&6
3116
 
else
3117
 
  am_cv_prog_tar_pax=$_am_tool
3118
 
fi
3119
 
 
3120
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3121
 
$as_echo "$am_cv_prog_tar_pax" >&6; }
3122
 
 
3123
 
 
3124
 
 
3125
 
 
3126
 
 
3127
 
# Check whether --enable-silent-rules was given.
3128
 
if test "${enable_silent_rules+set}" = set; then :
3129
 
  enableval=$enable_silent_rules;
3130
 
fi
3131
 
 
3132
 
case $enable_silent_rules in
3133
 
yes) AM_DEFAULT_VERBOSITY=0;;
3134
 
no)  AM_DEFAULT_VERBOSITY=1;;
3135
 
*)   AM_DEFAULT_VERBOSITY=0;;
3136
 
esac
3137
 
AM_BACKSLASH='\'
3138
 
 
3139
 
 
3140
 
cxxset=${CXXFLAGS+set}
3141
 
ac_ext=cpp
3142
 
ac_cpp='$CXXCPP $CPPFLAGS'
3143
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3146
 
if test -z "$CXX"; then
3147
 
  if test -n "$CCC"; then
3148
 
    CXX=$CCC
3149
 
  else
3150
 
    if test -n "$ac_tool_prefix"; then
3151
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3152
 
  do
3153
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156
 
$as_echo_n "checking for $ac_word... " >&6; }
3157
 
if test "${ac_cv_prog_CXX+set}" = set; then :
3158
 
  $as_echo_n "(cached) " >&6
3159
 
else
3160
 
  if test -n "$CXX"; then
3161
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3162
 
else
3163
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
 
for as_dir in $PATH
3165
 
do
3166
 
  IFS=$as_save_IFS
3167
 
  test -z "$as_dir" && as_dir=.
3168
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3169
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3171
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172
 
    break 2
3173
 
  fi
3174
 
done
3175
 
  done
3176
 
IFS=$as_save_IFS
3177
 
 
3178
 
fi
3179
 
fi
3180
 
CXX=$ac_cv_prog_CXX
3181
 
if test -n "$CXX"; then
3182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3183
 
$as_echo "$CXX" >&6; }
3184
 
else
3185
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186
 
$as_echo "no" >&6; }
3187
 
fi
3188
 
 
3189
 
 
3190
 
    test -n "$CXX" && break
3191
 
  done
3192
 
fi
3193
 
if test -z "$CXX"; then
3194
 
  ac_ct_CXX=$CXX
3195
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3196
 
do
3197
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3198
 
set dummy $ac_prog; ac_word=$2
3199
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200
 
$as_echo_n "checking for $ac_word... " >&6; }
3201
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3202
 
  $as_echo_n "(cached) " >&6
3203
 
else
3204
 
  if test -n "$ac_ct_CXX"; then
3205
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3206
 
else
3207
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208
 
for as_dir in $PATH
3209
 
do
3210
 
  IFS=$as_save_IFS
3211
 
  test -z "$as_dir" && as_dir=.
3212
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3213
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3215
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216
 
    break 2
3217
 
  fi
3218
 
done
3219
 
  done
3220
 
IFS=$as_save_IFS
3221
 
 
3222
 
fi
3223
 
fi
3224
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3225
 
if test -n "$ac_ct_CXX"; then
3226
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3227
 
$as_echo "$ac_ct_CXX" >&6; }
3228
 
else
3229
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
 
$as_echo "no" >&6; }
3231
 
fi
3232
 
 
3233
 
 
3234
 
  test -n "$ac_ct_CXX" && break
3235
 
done
3236
 
 
3237
 
  if test "x$ac_ct_CXX" = x; then
3238
 
    CXX="g++"
3239
 
  else
3240
 
    case $cross_compiling:$ac_tool_warned in
3241
 
yes:)
3242
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244
 
ac_tool_warned=yes ;;
3245
 
esac
3246
 
    CXX=$ac_ct_CXX
3247
 
  fi
3248
 
fi
3249
 
 
3250
 
  fi
3251
 
fi
3252
 
# Provide some information about the compiler.
3253
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3254
 
set X $ac_compile
3255
 
ac_compiler=$2
3256
 
for ac_option in --version -v -V -qversion; do
3257
 
  { { ac_try="$ac_compiler $ac_option >&5"
3258
 
case "(($ac_try" in
3259
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260
 
  *) ac_try_echo=$ac_try;;
3261
 
esac
3262
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263
 
$as_echo "$ac_try_echo"; } >&5
3264
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265
 
  ac_status=$?
3266
 
  if test -s conftest.err; then
3267
 
    sed '10a\
3268
 
... rest of stderr output deleted ...
3269
 
         10q' conftest.err >conftest.er1
3270
 
    cat conftest.er1 >&5
3271
 
  fi
3272
 
  rm -f conftest.er1 conftest.err
3273
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274
 
  test $ac_status = 0; }
3275
 
done
3276
 
 
3277
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278
 
/* end confdefs.h.  */
3279
 
 
3280
 
int
3281
 
main ()
3282
 
{
3283
 
 
3284
 
  ;
3285
 
  return 0;
3286
 
}
3287
 
_ACEOF
3288
 
ac_clean_files_save=$ac_clean_files
3289
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290
 
# Try to create an executable without -o first, disregard a.out.
3291
 
# It will help us diagnose broken compilers, and finding out an intuition
3292
 
# of exeext.
3293
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3294
 
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3295
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
 
 
3297
 
# The possible output files:
3298
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
 
 
3300
 
ac_rmfiles=
3301
 
for ac_file in $ac_files
3302
 
do
3303
 
  case $ac_file in
3304
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306
 
  esac
3307
 
done
3308
 
rm -f $ac_rmfiles
3309
 
 
3310
 
if { { ac_try="$ac_link_default"
3311
 
case "(($ac_try" in
3312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313
 
  *) ac_try_echo=$ac_try;;
3314
 
esac
3315
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316
 
$as_echo "$ac_try_echo"; } >&5
3317
 
  (eval "$ac_link_default") 2>&5
3318
 
  ac_status=$?
3319
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320
 
  test $ac_status = 0; }; then :
3321
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3324
 
# so that the user can short-circuit this test for compilers unknown to
3325
 
# Autoconf.
3326
 
for ac_file in $ac_files ''
3327
 
do
3328
 
  test -f "$ac_file" || continue
3329
 
  case $ac_file in
3330
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331
 
        ;;
3332
 
    [ab].out )
3333
 
        # We found the default executable, but exeext='' is most
3334
 
        # certainly right.
3335
 
        break;;
3336
 
    *.* )
3337
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338
 
        then :; else
3339
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340
 
        fi
3341
 
        # We set ac_cv_exeext here because the later test for it is not
3342
 
        # safe: cross compilers may not add the suffix if given an `-o'
3343
 
        # argument, so we may need to know it at that point already.
3344
 
        # Even if this section looks crufty: it has the advantage of
3345
 
        # actually working.
3346
 
        break;;
3347
 
    * )
3348
 
        break;;
3349
 
  esac
3350
 
done
3351
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
 
 
3353
 
else
3354
 
  ac_file=''
3355
 
fi
3356
 
if test -z "$ac_file"; then :
3357
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358
 
$as_echo "no" >&6; }
3359
 
$as_echo "$as_me: failed program was:" >&5
3360
 
sed 's/^/| /' conftest.$ac_ext >&5
3361
 
 
3362
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364
 
as_fn_error 77 "C++ compiler cannot create executables
3365
 
See \`config.log' for more details" "$LINENO" 5 ; }
3366
 
else
3367
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368
 
$as_echo "yes" >&6; }
3369
 
fi
3370
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3371
 
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3372
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373
 
$as_echo "$ac_file" >&6; }
3374
 
ac_exeext=$ac_cv_exeext
3375
 
 
3376
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377
 
ac_clean_files=$ac_clean_files_save
3378
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379
 
$as_echo_n "checking for suffix of executables... " >&6; }
3380
 
if { { ac_try="$ac_link"
3381
 
case "(($ac_try" in
3382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383
 
  *) ac_try_echo=$ac_try;;
3384
 
esac
3385
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386
 
$as_echo "$ac_try_echo"; } >&5
3387
 
  (eval "$ac_link") 2>&5
3388
 
  ac_status=$?
3389
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390
 
  test $ac_status = 0; }; then :
3391
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3394
 
# `rm'.
3395
 
for ac_file in conftest.exe conftest conftest.*; do
3396
 
  test -f "$ac_file" || continue
3397
 
  case $ac_file in
3398
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400
 
          break;;
3401
 
    * ) break;;
3402
 
  esac
3403
 
done
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 compute suffix of executables: cannot compile and link
3408
 
See \`config.log' for more details" "$LINENO" 5 ; }
3409
 
fi
3410
 
rm -f conftest conftest$ac_cv_exeext
3411
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412
 
$as_echo "$ac_cv_exeext" >&6; }
3413
 
 
3414
 
rm -f conftest.$ac_ext
3415
 
EXEEXT=$ac_cv_exeext
3416
 
ac_exeext=$EXEEXT
3417
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418
 
/* end confdefs.h.  */
3419
 
#include <stdio.h>
3420
 
int
3421
 
main ()
3422
 
{
3423
 
FILE *f = fopen ("conftest.out", "w");
3424
 
 return ferror (f) || fclose (f) != 0;
3425
 
 
3426
 
  ;
3427
 
  return 0;
3428
 
}
3429
 
_ACEOF
3430
 
ac_clean_files="$ac_clean_files conftest.out"
3431
 
# Check that the compiler produces executables we can run.  If not, either
3432
 
# the compiler is broken, or we cross compile.
3433
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3435
 
if test "$cross_compiling" != yes; then
3436
 
  { { ac_try="$ac_link"
3437
 
case "(($ac_try" in
3438
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439
 
  *) ac_try_echo=$ac_try;;
3440
 
esac
3441
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442
 
$as_echo "$ac_try_echo"; } >&5
3443
 
  (eval "$ac_link") 2>&5
3444
 
  ac_status=$?
3445
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446
 
  test $ac_status = 0; }
3447
 
  if { ac_try='./conftest$ac_cv_exeext'
3448
 
  { { case "(($ac_try" in
3449
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
 
  *) ac_try_echo=$ac_try;;
3451
 
esac
3452
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453
 
$as_echo "$ac_try_echo"; } >&5
3454
 
  (eval "$ac_try") 2>&5
3455
 
  ac_status=$?
3456
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457
 
  test $ac_status = 0; }; }; then
3458
 
    cross_compiling=no
3459
 
  else
3460
 
    if test "$cross_compiling" = maybe; then
3461
 
        cross_compiling=yes
3462
 
    else
3463
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465
 
as_fn_error $? "cannot run C++ compiled programs.
3466
 
If you meant to cross compile, use \`--host'.
3467
 
See \`config.log' for more details" "$LINENO" 5 ; }
3468
 
    fi
3469
 
  fi
3470
 
fi
3471
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472
 
$as_echo "$cross_compiling" >&6; }
3473
 
 
3474
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475
 
ac_clean_files=$ac_clean_files_save
3476
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477
 
$as_echo_n "checking for suffix of object files... " >&6; }
3478
 
if test "${ac_cv_objext+set}" = set; then :
3479
 
  $as_echo_n "(cached) " >&6
3480
 
else
3481
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482
 
/* end confdefs.h.  */
3483
 
 
3484
 
int
3485
 
main ()
3486
 
{
3487
 
 
3488
 
  ;
3489
 
  return 0;
3490
 
}
3491
 
_ACEOF
3492
 
rm -f conftest.o conftest.obj
3493
 
if { { ac_try="$ac_compile"
3494
 
case "(($ac_try" in
3495
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496
 
  *) ac_try_echo=$ac_try;;
3497
 
esac
3498
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499
 
$as_echo "$ac_try_echo"; } >&5
3500
 
  (eval "$ac_compile") 2>&5
3501
 
  ac_status=$?
3502
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503
 
  test $ac_status = 0; }; then :
3504
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3505
 
  test -f "$ac_file" || continue;
3506
 
  case $ac_file in
3507
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509
 
       break;;
3510
 
  esac
3511
 
done
3512
 
else
3513
 
  $as_echo "$as_me: failed program was:" >&5
3514
 
sed 's/^/| /' conftest.$ac_ext >&5
3515
 
 
3516
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
3519
 
See \`config.log' for more details" "$LINENO" 5 ; }
3520
 
fi
3521
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522
 
fi
3523
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524
 
$as_echo "$ac_cv_objext" >&6; }
3525
 
OBJEXT=$ac_cv_objext
3526
 
ac_objext=$OBJEXT
3527
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3528
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3529
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3530
 
  $as_echo_n "(cached) " >&6
3531
 
else
3532
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533
 
/* end confdefs.h.  */
3534
 
 
3535
 
int
3536
 
main ()
3537
 
{
3538
 
#ifndef __GNUC__
3539
 
       choke me
3540
 
#endif
3541
 
 
3542
 
  ;
3543
 
  return 0;
3544
 
}
3545
 
_ACEOF
3546
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3547
 
  ac_compiler_gnu=yes
3548
 
else
3549
 
  ac_compiler_gnu=no
3550
 
fi
3551
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3553
 
 
3554
 
fi
3555
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3556
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3557
 
if test $ac_compiler_gnu = yes; then
3558
 
  GXX=yes
3559
 
else
3560
 
  GXX=
3561
 
fi
3562
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3563
 
ac_save_CXXFLAGS=$CXXFLAGS
3564
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3565
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3566
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3567
 
  $as_echo_n "(cached) " >&6
3568
 
else
3569
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3570
 
   ac_cxx_werror_flag=yes
3571
 
   ac_cv_prog_cxx_g=no
3572
 
   CXXFLAGS="-g"
3573
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574
 
/* end confdefs.h.  */
3575
 
 
3576
 
int
3577
 
main ()
3578
 
{
3579
 
 
3580
 
  ;
3581
 
  return 0;
3582
 
}
3583
 
_ACEOF
3584
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3585
 
  ac_cv_prog_cxx_g=yes
3586
 
else
3587
 
  CXXFLAGS=""
3588
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589
 
/* end confdefs.h.  */
3590
 
 
3591
 
int
3592
 
main ()
3593
 
{
3594
 
 
3595
 
  ;
3596
 
  return 0;
3597
 
}
3598
 
_ACEOF
3599
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3600
 
 
3601
 
else
3602
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3603
 
         CXXFLAGS="-g"
3604
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605
 
/* end confdefs.h.  */
3606
 
 
3607
 
int
3608
 
main ()
3609
 
{
3610
 
 
3611
 
  ;
3612
 
  return 0;
3613
 
}
3614
 
_ACEOF
3615
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3616
 
  ac_cv_prog_cxx_g=yes
3617
 
fi
3618
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619
 
fi
3620
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621
 
fi
3622
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3624
 
fi
3625
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3626
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3627
 
if test "$ac_test_CXXFLAGS" = set; then
3628
 
  CXXFLAGS=$ac_save_CXXFLAGS
3629
 
elif test $ac_cv_prog_cxx_g = yes; then
3630
 
  if test "$GXX" = yes; then
3631
 
    CXXFLAGS="-g -O2"
3632
 
  else
3633
 
    CXXFLAGS="-g"
3634
 
  fi
3635
 
else
3636
 
  if test "$GXX" = yes; then
3637
 
    CXXFLAGS="-O2"
3638
 
  else
3639
 
    CXXFLAGS=
3640
 
  fi
3641
 
fi
3642
 
ac_ext=c
3643
 
ac_cpp='$CPP $CPPFLAGS'
3644
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
 
DEPDIR="${am__leading_dot}deps"
3648
 
 
3649
 
ac_config_commands="$ac_config_commands depfiles"
3650
 
 
3651
 
 
3652
 
am_make=${MAKE-make}
3653
 
cat > confinc << 'END'
3654
 
am__doit:
3655
 
        @echo this is the am__doit target
3656
 
.PHONY: am__doit
3657
 
END
3658
 
# If we don't find an include directive, just comment out the code.
3659
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3661
 
am__include="#"
3662
 
am__quote=
3663
 
_am_result=none
3664
 
# First try GNU make style include.
3665
 
echo "include confinc" > confmf
3666
 
# Ignore all kinds of additional output from `make'.
3667
 
case `$am_make -s -f confmf 2> /dev/null` in #(
3668
 
*the\ am__doit\ target*)
3669
 
  am__include=include
3670
 
  am__quote=
3671
 
  _am_result=GNU
3672
 
  ;;
3673
 
esac
3674
 
# Now try BSD make style include.
3675
 
if test "$am__include" = "#"; then
3676
 
   echo '.include "confinc"' > confmf
3677
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
3678
 
   *the\ am__doit\ target*)
3679
 
     am__include=.include
3680
 
     am__quote="\""
3681
 
     _am_result=BSD
3682
 
     ;;
3683
 
   esac
3684
 
fi
3685
 
 
3686
 
 
3687
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688
 
$as_echo "$_am_result" >&6; }
3689
 
rm -f confinc confmf
3690
 
 
3691
 
# Check whether --enable-dependency-tracking was given.
3692
 
if test "${enable_dependency_tracking+set}" = set; then :
3693
 
  enableval=$enable_dependency_tracking;
3694
 
fi
3695
 
 
3696
 
if test "x$enable_dependency_tracking" != xno; then
3697
 
  am_depcomp="$ac_aux_dir/depcomp"
3698
 
  AMDEPBACKSLASH='\'
3699
 
fi
3700
 
 if test "x$enable_dependency_tracking" != xno; then
3701
 
  AMDEP_TRUE=
3702
 
  AMDEP_FALSE='#'
3703
 
else
3704
 
  AMDEP_TRUE='#'
3705
 
  AMDEP_FALSE=
3706
 
fi
3707
 
 
3708
 
 
3709
 
 
3710
 
depcc="$CXX"  am_compiler_list=
3711
 
 
3712
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3713
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
3714
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3715
 
  $as_echo_n "(cached) " >&6
3716
 
else
3717
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3719
 
  # making bogus files that we don't know about and never remove.  For
3720
 
  # instance it was reported that on HP-UX the gcc test will end up
3721
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3722
 
  # in D'.
3723
 
  mkdir conftest.dir
3724
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3725
 
  # using a relative directory.
3726
 
  cp "$am_depcomp" conftest.dir
3727
 
  cd conftest.dir
3728
 
  # We will build objects and dependencies in a subdirectory because
3729
 
  # it helps to detect inapplicable dependency modes.  For instance
3730
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3731
 
  # side effect of compilation, but ICC will put the dependencies in
3732
 
  # the current directory while Tru64 will put them in the object
3733
 
  # directory.
3734
 
  mkdir sub
3735
 
 
3736
 
  am_cv_CXX_dependencies_compiler_type=none
3737
 
  if test "$am_compiler_list" = ""; then
3738
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739
 
  fi
3740
 
  am__universal=false
3741
 
  case " $depcc " in #(
3742
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3743
 
     esac
3744
 
 
3745
 
  for depmode in $am_compiler_list; do
3746
 
    # Setup a source with many dependencies, because some compilers
3747
 
    # like to wrap large dependency lists on column 80 (with \), and
3748
 
    # we should not choose a depcomp mode which is confused by this.
3749
 
    #
3750
 
    # We need to recreate these files for each test, as the compiler may
3751
 
    # overwrite some of them when testing with obscure command lines.
3752
 
    # This happens at least with the AIX C compiler.
3753
 
    : > sub/conftest.c
3754
 
    for i in 1 2 3 4 5 6; do
3755
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757
 
      # Solaris 8's {/usr,}/bin/sh.
3758
 
      touch sub/conftst$i.h
3759
 
    done
3760
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761
 
 
3762
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3763
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3764
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3765
 
    # versions had trouble with output in subdirs
3766
 
    am__obj=sub/conftest.${OBJEXT-o}
3767
 
    am__minus_obj="-o $am__obj"
3768
 
    case $depmode in
3769
 
    gcc)
3770
 
      # This depmode causes a compiler race in universal mode.
3771
 
      test "$am__universal" = false || continue
3772
 
      ;;
3773
 
    nosideeffect)
3774
 
      # after this tag, mechanisms are not by side-effect, so they'll
3775
 
      # only be used when explicitly requested
3776
 
      if test "x$enable_dependency_tracking" = xyes; then
3777
 
        continue
3778
 
      else
3779
 
        break
3780
 
      fi
3781
 
      ;;
3782
 
    msvisualcpp | msvcmsys)
3783
 
      # This compiler won't grok `-c -o', but also, the minuso test has
3784
 
      # not run yet.  These depmodes are late enough in the game, and
3785
 
      # so weak that their functioning should not be impacted.
3786
 
      am__obj=conftest.${OBJEXT-o}
3787
 
      am__minus_obj=
3788
 
      ;;
3789
 
    none) break ;;
3790
 
    esac
3791
 
    if depmode=$depmode \
3792
 
       source=sub/conftest.c object=$am__obj \
3793
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795
 
         >/dev/null 2>conftest.err &&
3796
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800
 
      # icc doesn't choke on unknown options, it will just issue warnings
3801
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3802
 
      # that says an option was ignored or not supported.
3803
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3804
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3805
 
      # The diagnosis changed in icc 8.0:
3806
 
      #   icc: Command line remark: option '-MP' not supported
3807
 
      if (grep 'ignoring option' conftest.err ||
3808
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809
 
        am_cv_CXX_dependencies_compiler_type=$depmode
3810
 
        break
3811
 
      fi
3812
 
    fi
3813
 
  done
3814
 
 
3815
 
  cd ..
3816
 
  rm -rf conftest.dir
3817
 
else
3818
 
  am_cv_CXX_dependencies_compiler_type=none
3819
 
fi
3820
 
 
3821
 
fi
3822
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3823
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3824
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3825
 
 
3826
 
 if
3827
 
  test "x$enable_dependency_tracking" != xno \
3828
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3829
 
  am__fastdepCXX_TRUE=
3830
 
  am__fastdepCXX_FALSE='#'
3831
 
else
3832
 
  am__fastdepCXX_TRUE='#'
3833
 
  am__fastdepCXX_FALSE=
3834
 
fi
3835
 
 
3836
 
 
3837
 
ac_ext=c
3838
 
ac_cpp='$CPP $CPPFLAGS'
3839
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
 
if test -n "$ac_tool_prefix"; then
3843
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3845
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846
 
$as_echo_n "checking for $ac_word... " >&6; }
3847
 
if test "${ac_cv_prog_CC+set}" = set; then :
3848
 
  $as_echo_n "(cached) " >&6
3849
 
else
3850
 
  if test -n "$CC"; then
3851
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3852
 
else
3853
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854
 
for as_dir in $PATH
3855
 
do
3856
 
  IFS=$as_save_IFS
3857
 
  test -z "$as_dir" && as_dir=.
3858
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3859
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3861
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862
 
    break 2
3863
 
  fi
3864
 
done
3865
 
  done
3866
 
IFS=$as_save_IFS
3867
 
 
3868
 
fi
3869
 
fi
3870
 
CC=$ac_cv_prog_CC
3871
 
if test -n "$CC"; then
3872
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873
 
$as_echo "$CC" >&6; }
3874
 
else
3875
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876
 
$as_echo "no" >&6; }
3877
 
fi
3878
 
 
3879
 
 
3880
 
fi
3881
 
if test -z "$ac_cv_prog_CC"; then
3882
 
  ac_ct_CC=$CC
3883
 
  # Extract the first word of "gcc", so it can be a program name with args.
3884
 
set dummy gcc; ac_word=$2
3885
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886
 
$as_echo_n "checking for $ac_word... " >&6; }
3887
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3888
 
  $as_echo_n "(cached) " >&6
3889
 
else
3890
 
  if test -n "$ac_ct_CC"; then
3891
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892
 
else
3893
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894
 
for as_dir in $PATH
3895
 
do
3896
 
  IFS=$as_save_IFS
3897
 
  test -z "$as_dir" && as_dir=.
3898
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3899
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900
 
    ac_cv_prog_ac_ct_CC="gcc"
3901
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902
 
    break 2
3903
 
  fi
3904
 
done
3905
 
  done
3906
 
IFS=$as_save_IFS
3907
 
 
3908
 
fi
3909
 
fi
3910
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911
 
if test -n "$ac_ct_CC"; then
3912
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913
 
$as_echo "$ac_ct_CC" >&6; }
3914
 
else
3915
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916
 
$as_echo "no" >&6; }
3917
 
fi
3918
 
 
3919
 
  if test "x$ac_ct_CC" = x; then
3920
 
    CC=""
3921
 
  else
3922
 
    case $cross_compiling:$ac_tool_warned in
3923
 
yes:)
3924
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926
 
ac_tool_warned=yes ;;
3927
 
esac
3928
 
    CC=$ac_ct_CC
3929
 
  fi
3930
 
else
3931
 
  CC="$ac_cv_prog_CC"
3932
 
fi
3933
 
 
3934
 
if test -z "$CC"; then
3935
 
          if test -n "$ac_tool_prefix"; then
3936
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3937
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3938
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939
 
$as_echo_n "checking for $ac_word... " >&6; }
3940
 
if test "${ac_cv_prog_CC+set}" = set; then :
3941
 
  $as_echo_n "(cached) " >&6
3942
 
else
3943
 
  if test -n "$CC"; then
3944
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3945
 
else
3946
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947
 
for as_dir in $PATH
3948
 
do
3949
 
  IFS=$as_save_IFS
3950
 
  test -z "$as_dir" && as_dir=.
3951
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3952
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3954
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955
 
    break 2
3956
 
  fi
3957
 
done
3958
 
  done
3959
 
IFS=$as_save_IFS
3960
 
 
3961
 
fi
3962
 
fi
3963
 
CC=$ac_cv_prog_CC
3964
 
if test -n "$CC"; then
3965
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966
 
$as_echo "$CC" >&6; }
3967
 
else
3968
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969
 
$as_echo "no" >&6; }
3970
 
fi
3971
 
 
3972
 
 
3973
 
  fi
3974
 
fi
3975
 
if test -z "$CC"; then
3976
 
  # Extract the first word of "cc", so it can be a program name with args.
3977
 
set dummy cc; ac_word=$2
3978
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979
 
$as_echo_n "checking for $ac_word... " >&6; }
3980
 
if test "${ac_cv_prog_CC+set}" = set; then :
3981
 
  $as_echo_n "(cached) " >&6
3982
 
else
3983
 
  if test -n "$CC"; then
3984
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3985
 
else
3986
 
  ac_prog_rejected=no
3987
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988
 
for as_dir in $PATH
3989
 
do
3990
 
  IFS=$as_save_IFS
3991
 
  test -z "$as_dir" && as_dir=.
3992
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3993
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3995
 
       ac_prog_rejected=yes
3996
 
       continue
3997
 
     fi
3998
 
    ac_cv_prog_CC="cc"
3999
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000
 
    break 2
4001
 
  fi
4002
 
done
4003
 
  done
4004
 
IFS=$as_save_IFS
4005
 
 
4006
 
if test $ac_prog_rejected = yes; then
4007
 
  # We found a bogon in the path, so make sure we never use it.
4008
 
  set dummy $ac_cv_prog_CC
4009
 
  shift
4010
 
  if test $# != 0; then
4011
 
    # We chose a different compiler from the bogus one.
4012
 
    # However, it has the same basename, so the bogon will be chosen
4013
 
    # first if we set CC to just the basename; use the full file name.
4014
 
    shift
4015
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4016
 
  fi
4017
 
fi
4018
 
fi
4019
 
fi
4020
 
CC=$ac_cv_prog_CC
4021
 
if test -n "$CC"; then
4022
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023
 
$as_echo "$CC" >&6; }
4024
 
else
4025
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026
 
$as_echo "no" >&6; }
4027
 
fi
4028
 
 
4029
 
 
4030
 
fi
4031
 
if test -z "$CC"; then
4032
 
  if test -n "$ac_tool_prefix"; then
4033
 
  for ac_prog in cl.exe
4034
 
  do
4035
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4036
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4037
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038
 
$as_echo_n "checking for $ac_word... " >&6; }
4039
 
if test "${ac_cv_prog_CC+set}" = set; then :
4040
 
  $as_echo_n "(cached) " >&6
4041
 
else
4042
 
  if test -n "$CC"; then
4043
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4044
 
else
4045
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046
 
for as_dir in $PATH
4047
 
do
4048
 
  IFS=$as_save_IFS
4049
 
  test -z "$as_dir" && as_dir=.
4050
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4051
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4053
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054
 
    break 2
4055
 
  fi
4056
 
done
4057
 
  done
4058
 
IFS=$as_save_IFS
4059
 
 
4060
 
fi
4061
 
fi
4062
 
CC=$ac_cv_prog_CC
4063
 
if test -n "$CC"; then
4064
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065
 
$as_echo "$CC" >&6; }
4066
 
else
4067
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068
 
$as_echo "no" >&6; }
4069
 
fi
4070
 
 
4071
 
 
4072
 
    test -n "$CC" && break
4073
 
  done
4074
 
fi
4075
 
if test -z "$CC"; then
4076
 
  ac_ct_CC=$CC
4077
 
  for ac_prog in cl.exe
4078
 
do
4079
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4080
 
set dummy $ac_prog; ac_word=$2
4081
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082
 
$as_echo_n "checking for $ac_word... " >&6; }
4083
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4084
 
  $as_echo_n "(cached) " >&6
4085
 
else
4086
 
  if test -n "$ac_ct_CC"; then
4087
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088
 
else
4089
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090
 
for as_dir in $PATH
4091
 
do
4092
 
  IFS=$as_save_IFS
4093
 
  test -z "$as_dir" && as_dir=.
4094
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4095
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4097
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098
 
    break 2
4099
 
  fi
4100
 
done
4101
 
  done
4102
 
IFS=$as_save_IFS
4103
 
 
4104
 
fi
4105
 
fi
4106
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107
 
if test -n "$ac_ct_CC"; then
4108
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109
 
$as_echo "$ac_ct_CC" >&6; }
4110
 
else
4111
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112
 
$as_echo "no" >&6; }
4113
 
fi
4114
 
 
4115
 
 
4116
 
  test -n "$ac_ct_CC" && break
4117
 
done
4118
 
 
4119
 
  if test "x$ac_ct_CC" = x; then
4120
 
    CC=""
4121
 
  else
4122
 
    case $cross_compiling:$ac_tool_warned in
4123
 
yes:)
4124
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126
 
ac_tool_warned=yes ;;
4127
 
esac
4128
 
    CC=$ac_ct_CC
4129
 
  fi
4130
 
fi
4131
 
 
4132
 
fi
4133
 
 
4134
 
 
4135
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137
 
as_fn_error $? "no acceptable C compiler found in \$PATH
4138
 
See \`config.log' for more details" "$LINENO" 5 ; }
4139
 
 
4140
 
# Provide some information about the compiler.
4141
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4142
 
set X $ac_compile
4143
 
ac_compiler=$2
4144
 
for ac_option in --version -v -V -qversion; do
4145
 
  { { ac_try="$ac_compiler $ac_option >&5"
4146
 
case "(($ac_try" in
4147
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148
 
  *) ac_try_echo=$ac_try;;
4149
 
esac
4150
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151
 
$as_echo "$ac_try_echo"; } >&5
4152
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4153
 
  ac_status=$?
4154
 
  if test -s conftest.err; then
4155
 
    sed '10a\
4156
 
... rest of stderr output deleted ...
4157
 
         10q' conftest.err >conftest.er1
4158
 
    cat conftest.er1 >&5
4159
 
  fi
4160
 
  rm -f conftest.er1 conftest.err
4161
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162
 
  test $ac_status = 0; }
4163
 
done
4164
 
 
4165
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4166
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4167
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4168
 
  $as_echo_n "(cached) " >&6
4169
 
else
4170
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171
 
/* end confdefs.h.  */
4172
 
 
4173
 
int
4174
 
main ()
4175
 
{
4176
 
#ifndef __GNUC__
4177
 
       choke me
4178
 
#endif
4179
 
 
4180
 
  ;
4181
 
  return 0;
4182
 
}
4183
 
_ACEOF
4184
 
if ac_fn_c_try_compile "$LINENO"; then :
4185
 
  ac_compiler_gnu=yes
4186
 
else
4187
 
  ac_compiler_gnu=no
4188
 
fi
4189
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4191
 
 
4192
 
fi
4193
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4194
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4195
 
if test $ac_compiler_gnu = yes; then
4196
 
  GCC=yes
4197
 
else
4198
 
  GCC=
4199
 
fi
4200
 
ac_test_CFLAGS=${CFLAGS+set}
4201
 
ac_save_CFLAGS=$CFLAGS
4202
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4203
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4204
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
4205
 
  $as_echo_n "(cached) " >&6
4206
 
else
4207
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4208
 
   ac_c_werror_flag=yes
4209
 
   ac_cv_prog_cc_g=no
4210
 
   CFLAGS="-g"
4211
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212
 
/* end confdefs.h.  */
4213
 
 
4214
 
int
4215
 
main ()
4216
 
{
4217
 
 
4218
 
  ;
4219
 
  return 0;
4220
 
}
4221
 
_ACEOF
4222
 
if ac_fn_c_try_compile "$LINENO"; then :
4223
 
  ac_cv_prog_cc_g=yes
4224
 
else
4225
 
  CFLAGS=""
4226
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227
 
/* end confdefs.h.  */
4228
 
 
4229
 
int
4230
 
main ()
4231
 
{
4232
 
 
4233
 
  ;
4234
 
  return 0;
4235
 
}
4236
 
_ACEOF
4237
 
if ac_fn_c_try_compile "$LINENO"; then :
4238
 
 
4239
 
else
4240
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4241
 
         CFLAGS="-g"
4242
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243
 
/* end confdefs.h.  */
4244
 
 
4245
 
int
4246
 
main ()
4247
 
{
4248
 
 
4249
 
  ;
4250
 
  return 0;
4251
 
}
4252
 
_ACEOF
4253
 
if ac_fn_c_try_compile "$LINENO"; then :
4254
 
  ac_cv_prog_cc_g=yes
4255
 
fi
4256
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257
 
fi
4258
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259
 
fi
4260
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4262
 
fi
4263
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4264
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4265
 
if test "$ac_test_CFLAGS" = set; then
4266
 
  CFLAGS=$ac_save_CFLAGS
4267
 
elif test $ac_cv_prog_cc_g = yes; then
4268
 
  if test "$GCC" = yes; then
4269
 
    CFLAGS="-g -O2"
4270
 
  else
4271
 
    CFLAGS="-g"
4272
 
  fi
4273
 
else
4274
 
  if test "$GCC" = yes; then
4275
 
    CFLAGS="-O2"
4276
 
  else
4277
 
    CFLAGS=
4278
 
  fi
4279
 
fi
4280
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4281
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4282
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4283
 
  $as_echo_n "(cached) " >&6
4284
 
else
4285
 
  ac_cv_prog_cc_c89=no
4286
 
ac_save_CC=$CC
4287
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288
 
/* end confdefs.h.  */
4289
 
#include <stdarg.h>
4290
 
#include <stdio.h>
4291
 
#include <sys/types.h>
4292
 
#include <sys/stat.h>
4293
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4294
 
struct buf { int x; };
4295
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4296
 
static char *e (p, i)
4297
 
     char **p;
4298
 
     int i;
4299
 
{
4300
 
  return p[i];
4301
 
}
4302
 
static char *f (char * (*g) (char **, int), char **p, ...)
4303
 
{
4304
 
  char *s;
4305
 
  va_list v;
4306
 
  va_start (v,p);
4307
 
  s = g (p, va_arg (v,int));
4308
 
  va_end (v);
4309
 
  return s;
4310
 
}
4311
 
 
4312
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4313
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4314
 
   These don't provoke an error unfortunately, instead are silently treated
4315
 
   as 'x'.  The following induces an error, until -std is added to get
4316
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4317
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4318
 
   that's true only with -std.  */
4319
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4320
 
 
4321
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4322
 
   inside strings and character constants.  */
4323
 
#define FOO(x) 'x'
4324
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4325
 
 
4326
 
int test (int i, double x);
4327
 
struct s1 {int (*f) (int a);};
4328
 
struct s2 {int (*f) (double a);};
4329
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4330
 
int argc;
4331
 
char **argv;
4332
 
int
4333
 
main ()
4334
 
{
4335
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4336
 
  ;
4337
 
  return 0;
4338
 
}
4339
 
_ACEOF
4340
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4341
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4342
 
do
4343
 
  CC="$ac_save_CC $ac_arg"
4344
 
  if ac_fn_c_try_compile "$LINENO"; then :
4345
 
  ac_cv_prog_cc_c89=$ac_arg
4346
 
fi
4347
 
rm -f core conftest.err conftest.$ac_objext
4348
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4349
 
done
4350
 
rm -f conftest.$ac_ext
4351
 
CC=$ac_save_CC
4352
 
 
4353
 
fi
4354
 
# AC_CACHE_VAL
4355
 
case "x$ac_cv_prog_cc_c89" in
4356
 
  x)
4357
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358
 
$as_echo "none needed" >&6; } ;;
4359
 
  xno)
4360
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4361
 
$as_echo "unsupported" >&6; } ;;
4362
 
  *)
4363
 
    CC="$CC $ac_cv_prog_cc_c89"
4364
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4365
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4366
 
esac
4367
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4368
 
 
4369
 
fi
4370
 
 
4371
 
ac_ext=c
4372
 
ac_cpp='$CPP $CPPFLAGS'
4373
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
 
 
4377
 
depcc="$CC"   am_compiler_list=
4378
 
 
4379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4380
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4381
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4382
 
  $as_echo_n "(cached) " >&6
4383
 
else
4384
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4385
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4386
 
  # making bogus files that we don't know about and never remove.  For
4387
 
  # instance it was reported that on HP-UX the gcc test will end up
4388
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4389
 
  # in D'.
4390
 
  mkdir conftest.dir
4391
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4392
 
  # using a relative directory.
4393
 
  cp "$am_depcomp" conftest.dir
4394
 
  cd conftest.dir
4395
 
  # We will build objects and dependencies in a subdirectory because
4396
 
  # it helps to detect inapplicable dependency modes.  For instance
4397
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4398
 
  # side effect of compilation, but ICC will put the dependencies in
4399
 
  # the current directory while Tru64 will put them in the object
4400
 
  # directory.
4401
 
  mkdir sub
4402
 
 
4403
 
  am_cv_CC_dependencies_compiler_type=none
4404
 
  if test "$am_compiler_list" = ""; then
4405
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4406
 
  fi
4407
 
  am__universal=false
4408
 
  case " $depcc " in #(
4409
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4410
 
     esac
4411
 
 
4412
 
  for depmode in $am_compiler_list; do
4413
 
    # Setup a source with many dependencies, because some compilers
4414
 
    # like to wrap large dependency lists on column 80 (with \), and
4415
 
    # we should not choose a depcomp mode which is confused by this.
4416
 
    #
4417
 
    # We need to recreate these files for each test, as the compiler may
4418
 
    # overwrite some of them when testing with obscure command lines.
4419
 
    # This happens at least with the AIX C compiler.
4420
 
    : > sub/conftest.c
4421
 
    for i in 1 2 3 4 5 6; do
4422
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4423
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4424
 
      # Solaris 8's {/usr,}/bin/sh.
4425
 
      touch sub/conftst$i.h
4426
 
    done
4427
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4428
 
 
4429
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4430
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4431
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4432
 
    # versions had trouble with output in subdirs
4433
 
    am__obj=sub/conftest.${OBJEXT-o}
4434
 
    am__minus_obj="-o $am__obj"
4435
 
    case $depmode in
4436
 
    gcc)
4437
 
      # This depmode causes a compiler race in universal mode.
4438
 
      test "$am__universal" = false || continue
4439
 
      ;;
4440
 
    nosideeffect)
4441
 
      # after this tag, mechanisms are not by side-effect, so they'll
4442
 
      # only be used when explicitly requested
4443
 
      if test "x$enable_dependency_tracking" = xyes; then
4444
 
        continue
4445
 
      else
4446
 
        break
4447
 
      fi
4448
 
      ;;
4449
 
    msvisualcpp | msvcmsys)
4450
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4451
 
      # not run yet.  These depmodes are late enough in the game, and
4452
 
      # so weak that their functioning should not be impacted.
4453
 
      am__obj=conftest.${OBJEXT-o}
4454
 
      am__minus_obj=
4455
 
      ;;
4456
 
    none) break ;;
4457
 
    esac
4458
 
    if depmode=$depmode \
4459
 
       source=sub/conftest.c object=$am__obj \
4460
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4461
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4462
 
         >/dev/null 2>conftest.err &&
4463
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4464
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4465
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4466
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4467
 
      # icc doesn't choke on unknown options, it will just issue warnings
4468
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4469
 
      # that says an option was ignored or not supported.
4470
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4471
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4472
 
      # The diagnosis changed in icc 8.0:
4473
 
      #   icc: Command line remark: option '-MP' not supported
4474
 
      if (grep 'ignoring option' conftest.err ||
4475
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4476
 
        am_cv_CC_dependencies_compiler_type=$depmode
4477
 
        break
4478
 
      fi
4479
 
    fi
4480
 
  done
4481
 
 
4482
 
  cd ..
4483
 
  rm -rf conftest.dir
4484
 
else
4485
 
  am_cv_CC_dependencies_compiler_type=none
4486
 
fi
4487
 
 
4488
 
fi
4489
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4490
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4491
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4492
 
 
4493
 
 if
4494
 
  test "x$enable_dependency_tracking" != xno \
4495
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4496
 
  am__fastdepCC_TRUE=
4497
 
  am__fastdepCC_FALSE='#'
4498
 
else
4499
 
  am__fastdepCC_TRUE='#'
4500
 
  am__fastdepCC_FALSE=
4501
 
fi
4502
 
 
4503
 
 
4504
 
 
4505
 
ac_ext=c
4506
 
ac_cpp='$CPP $CPPFLAGS'
4507
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4511
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4512
 
# On Suns, sometimes $CPP names a directory.
4513
 
if test -n "$CPP" && test -d "$CPP"; then
4514
 
  CPP=
4515
 
fi
4516
 
if test -z "$CPP"; then
4517
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
4518
 
  $as_echo_n "(cached) " >&6
4519
 
else
4520
 
      # Double quotes because CPP needs to be expanded
4521
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4522
 
    do
4523
 
      ac_preproc_ok=false
4524
 
for ac_c_preproc_warn_flag in '' yes
4525
 
do
4526
 
  # Use a header file that comes with gcc, so configuring glibc
4527
 
  # with a fresh cross-compiler works.
4528
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529
 
  # <limits.h> exists even on freestanding compilers.
4530
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4531
 
  # not just through cpp. "Syntax error" is here to catch this case.
4532
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533
 
/* end confdefs.h.  */
4534
 
#ifdef __STDC__
4535
 
# include <limits.h>
4536
 
#else
4537
 
# include <assert.h>
4538
 
#endif
4539
 
                     Syntax error
4540
 
_ACEOF
4541
 
if ac_fn_c_try_cpp "$LINENO"; then :
4542
 
 
4543
 
else
4544
 
  # Broken: fails on valid input.
4545
 
continue
4546
 
fi
4547
 
rm -f conftest.err conftest.i conftest.$ac_ext
4548
 
 
4549
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4550
 
  # can be detected and how.
4551
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552
 
/* end confdefs.h.  */
4553
 
#include <ac_nonexistent.h>
4554
 
_ACEOF
4555
 
if ac_fn_c_try_cpp "$LINENO"; then :
4556
 
  # Broken: success on invalid input.
4557
 
continue
4558
 
else
4559
 
  # Passes both tests.
4560
 
ac_preproc_ok=:
4561
 
break
4562
 
fi
4563
 
rm -f conftest.err conftest.i conftest.$ac_ext
4564
 
 
4565
 
done
4566
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4567
 
rm -f conftest.i conftest.err conftest.$ac_ext
4568
 
if $ac_preproc_ok; then :
4569
 
  break
4570
 
fi
4571
 
 
4572
 
    done
4573
 
    ac_cv_prog_CPP=$CPP
4574
 
 
4575
 
fi
4576
 
  CPP=$ac_cv_prog_CPP
4577
 
else
4578
 
  ac_cv_prog_CPP=$CPP
4579
 
fi
4580
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4581
 
$as_echo "$CPP" >&6; }
4582
 
ac_preproc_ok=false
4583
 
for ac_c_preproc_warn_flag in '' yes
4584
 
do
4585
 
  # Use a header file that comes with gcc, so configuring glibc
4586
 
  # with a fresh cross-compiler works.
4587
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4588
 
  # <limits.h> exists even on freestanding compilers.
4589
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4590
 
  # not just through cpp. "Syntax error" is here to catch this case.
4591
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592
 
/* end confdefs.h.  */
4593
 
#ifdef __STDC__
4594
 
# include <limits.h>
4595
 
#else
4596
 
# include <assert.h>
4597
 
#endif
4598
 
                     Syntax error
4599
 
_ACEOF
4600
 
if ac_fn_c_try_cpp "$LINENO"; then :
4601
 
 
4602
 
else
4603
 
  # Broken: fails on valid input.
4604
 
continue
4605
 
fi
4606
 
rm -f conftest.err conftest.i conftest.$ac_ext
4607
 
 
4608
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4609
 
  # can be detected and how.
4610
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611
 
/* end confdefs.h.  */
4612
 
#include <ac_nonexistent.h>
4613
 
_ACEOF
4614
 
if ac_fn_c_try_cpp "$LINENO"; then :
4615
 
  # Broken: success on invalid input.
4616
 
continue
4617
 
else
4618
 
  # Passes both tests.
4619
 
ac_preproc_ok=:
4620
 
break
4621
 
fi
4622
 
rm -f conftest.err conftest.i conftest.$ac_ext
4623
 
 
4624
 
done
4625
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626
 
rm -f conftest.i conftest.err conftest.$ac_ext
4627
 
if $ac_preproc_ok; then :
4628
 
 
4629
 
else
4630
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4633
 
See \`config.log' for more details" "$LINENO" 5 ; }
4634
 
fi
4635
 
 
4636
 
ac_ext=c
4637
 
ac_cpp='$CPP $CPPFLAGS'
4638
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
 
 
4642
 
 
4643
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4644
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4645
 
if test "${ac_cv_path_GREP+set}" = set; then :
4646
 
  $as_echo_n "(cached) " >&6
4647
 
else
4648
 
  if test -z "$GREP"; then
4649
 
  ac_path_GREP_found=false
4650
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4651
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653
 
do
4654
 
  IFS=$as_save_IFS
4655
 
  test -z "$as_dir" && as_dir=.
4656
 
    for ac_prog in grep ggrep; do
4657
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4658
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4659
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4660
 
# Check for GNU ac_path_GREP and select it if it is found.
4661
 
  # Check for GNU $ac_path_GREP
4662
 
case `"$ac_path_GREP" --version 2>&1` in
4663
 
*GNU*)
4664
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4665
 
*)
4666
 
  ac_count=0
4667
 
  $as_echo_n 0123456789 >"conftest.in"
4668
 
  while :
4669
 
  do
4670
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4671
 
    mv "conftest.tmp" "conftest.in"
4672
 
    cp "conftest.in" "conftest.nl"
4673
 
    $as_echo 'GREP' >> "conftest.nl"
4674
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4677
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4678
 
      # Best one so far, save it but keep looking for a better one
4679
 
      ac_cv_path_GREP="$ac_path_GREP"
4680
 
      ac_path_GREP_max=$ac_count
4681
 
    fi
4682
 
    # 10*(2^10) chars as input seems more than enough
4683
 
    test $ac_count -gt 10 && break
4684
 
  done
4685
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686
 
esac
4687
 
 
4688
 
      $ac_path_GREP_found && break 3
4689
 
    done
4690
 
  done
4691
 
  done
4692
 
IFS=$as_save_IFS
4693
 
  if test -z "$ac_cv_path_GREP"; then
4694
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695
 
  fi
4696
 
else
4697
 
  ac_cv_path_GREP=$GREP
4698
 
fi
4699
 
 
4700
 
fi
4701
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4702
 
$as_echo "$ac_cv_path_GREP" >&6; }
4703
 
 GREP="$ac_cv_path_GREP"
4704
 
 
4705
 
 
4706
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4707
 
$as_echo_n "checking for egrep... " >&6; }
4708
 
if test "${ac_cv_path_EGREP+set}" = set; then :
4709
 
  $as_echo_n "(cached) " >&6
4710
 
else
4711
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4712
 
   then ac_cv_path_EGREP="$GREP -E"
4713
 
   else
4714
 
     if test -z "$EGREP"; then
4715
 
  ac_path_EGREP_found=false
4716
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4717
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4719
 
do
4720
 
  IFS=$as_save_IFS
4721
 
  test -z "$as_dir" && as_dir=.
4722
 
    for ac_prog in egrep; do
4723
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4724
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4725
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4726
 
# Check for GNU ac_path_EGREP and select it if it is found.
4727
 
  # Check for GNU $ac_path_EGREP
4728
 
case `"$ac_path_EGREP" --version 2>&1` in
4729
 
*GNU*)
4730
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4731
 
*)
4732
 
  ac_count=0
4733
 
  $as_echo_n 0123456789 >"conftest.in"
4734
 
  while :
4735
 
  do
4736
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4737
 
    mv "conftest.tmp" "conftest.in"
4738
 
    cp "conftest.in" "conftest.nl"
4739
 
    $as_echo 'EGREP' >> "conftest.nl"
4740
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4743
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4744
 
      # Best one so far, save it but keep looking for a better one
4745
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4746
 
      ac_path_EGREP_max=$ac_count
4747
 
    fi
4748
 
    # 10*(2^10) chars as input seems more than enough
4749
 
    test $ac_count -gt 10 && break
4750
 
  done
4751
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752
 
esac
4753
 
 
4754
 
      $ac_path_EGREP_found && break 3
4755
 
    done
4756
 
  done
4757
 
  done
4758
 
IFS=$as_save_IFS
4759
 
  if test -z "$ac_cv_path_EGREP"; then
4760
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4761
 
  fi
4762
 
else
4763
 
  ac_cv_path_EGREP=$EGREP
4764
 
fi
4765
 
 
4766
 
   fi
4767
 
fi
4768
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4769
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4770
 
 EGREP="$ac_cv_path_EGREP"
4771
 
 
4772
 
 
4773
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4774
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4775
 
if test "${ac_cv_header_stdc+set}" = set; then :
4776
 
  $as_echo_n "(cached) " >&6
4777
 
else
4778
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779
 
/* end confdefs.h.  */
4780
 
#include <stdlib.h>
4781
 
#include <stdarg.h>
4782
 
#include <string.h>
4783
 
#include <float.h>
4784
 
 
4785
 
int
4786
 
main ()
4787
 
{
4788
 
 
4789
 
  ;
4790
 
  return 0;
4791
 
}
4792
 
_ACEOF
4793
 
if ac_fn_c_try_compile "$LINENO"; then :
4794
 
  ac_cv_header_stdc=yes
4795
 
else
4796
 
  ac_cv_header_stdc=no
4797
 
fi
4798
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799
 
 
4800
 
if test $ac_cv_header_stdc = yes; then
4801
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4802
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803
 
/* end confdefs.h.  */
4804
 
#include <string.h>
4805
 
 
4806
 
_ACEOF
4807
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808
 
  $EGREP "memchr" >/dev/null 2>&1; then :
4809
 
 
4810
 
else
4811
 
  ac_cv_header_stdc=no
4812
 
fi
4813
 
rm -f conftest*
4814
 
 
4815
 
fi
4816
 
 
4817
 
if test $ac_cv_header_stdc = yes; then
4818
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4819
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820
 
/* end confdefs.h.  */
4821
 
#include <stdlib.h>
4822
 
 
4823
 
_ACEOF
4824
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4825
 
  $EGREP "free" >/dev/null 2>&1; then :
4826
 
 
4827
 
else
4828
 
  ac_cv_header_stdc=no
4829
 
fi
4830
 
rm -f conftest*
4831
 
 
4832
 
fi
4833
 
 
4834
 
if test $ac_cv_header_stdc = yes; then
4835
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4836
 
  if test "$cross_compiling" = yes; then :
4837
 
  :
4838
 
else
4839
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840
 
/* end confdefs.h.  */
4841
 
#include <ctype.h>
4842
 
#include <stdlib.h>
4843
 
#if ((' ' & 0x0FF) == 0x020)
4844
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4845
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4846
 
#else
4847
 
# define ISLOWER(c) \
4848
 
                   (('a' <= (c) && (c) <= 'i') \
4849
 
                     || ('j' <= (c) && (c) <= 'r') \
4850
 
                     || ('s' <= (c) && (c) <= 'z'))
4851
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4852
 
#endif
4853
 
 
4854
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4855
 
int
4856
 
main ()
4857
 
{
4858
 
  int i;
4859
 
  for (i = 0; i < 256; i++)
4860
 
    if (XOR (islower (i), ISLOWER (i))
4861
 
        || toupper (i) != TOUPPER (i))
4862
 
      return 2;
4863
 
  return 0;
4864
 
}
4865
 
_ACEOF
4866
 
if ac_fn_c_try_run "$LINENO"; then :
4867
 
 
4868
 
else
4869
 
  ac_cv_header_stdc=no
4870
 
fi
4871
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4872
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4873
 
fi
4874
 
 
4875
 
fi
4876
 
fi
4877
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4878
 
$as_echo "$ac_cv_header_stdc" >&6; }
4879
 
if test $ac_cv_header_stdc = yes; then
4880
 
 
4881
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4882
 
 
4883
 
fi
4884
 
 
4885
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4886
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4887
 
                  inttypes.h stdint.h unistd.h
4888
 
do :
4889
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4891
 
"
4892
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4893
 
  cat >>confdefs.h <<_ACEOF
4894
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4895
 
_ACEOF
4896
 
 
4897
 
fi
4898
 
 
4899
 
done
4900
 
 
4901
 
 
4902
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4903
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4904
 
if test "${ac_cv_c_bigendian+set}" = set; then :
4905
 
  $as_echo_n "(cached) " >&6
4906
 
else
4907
 
  ac_cv_c_bigendian=unknown
4908
 
    # See if we're dealing with a universal compiler.
4909
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910
 
/* end confdefs.h.  */
4911
 
#ifndef __APPLE_CC__
4912
 
               not a universal capable compiler
4913
 
             #endif
4914
 
             typedef int dummy;
4915
 
 
4916
 
_ACEOF
4917
 
if ac_fn_c_try_compile "$LINENO"; then :
4918
 
 
4919
 
        # Check for potential -arch flags.  It is not universal unless
4920
 
        # there are at least two -arch flags with different values.
4921
 
        ac_arch=
4922
 
        ac_prev=
4923
 
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4924
 
         if test -n "$ac_prev"; then
4925
 
           case $ac_word in
4926
 
             i?86 | x86_64 | ppc | ppc64)
4927
 
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4928
 
                 ac_arch=$ac_word
4929
 
               else
4930
 
                 ac_cv_c_bigendian=universal
4931
 
                 break
4932
 
               fi
4933
 
               ;;
4934
 
           esac
4935
 
           ac_prev=
4936
 
         elif test "x$ac_word" = "x-arch"; then
4937
 
           ac_prev=arch
4938
 
         fi
4939
 
       done
4940
 
fi
4941
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942
 
    if test $ac_cv_c_bigendian = unknown; then
4943
 
      # See if sys/param.h defines the BYTE_ORDER macro.
4944
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945
 
/* end confdefs.h.  */
4946
 
#include <sys/types.h>
4947
 
             #include <sys/param.h>
4948
 
 
4949
 
int
4950
 
main ()
4951
 
{
4952
 
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4953
 
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4954
 
                     && LITTLE_ENDIAN)
4955
 
              bogus endian macros
4956
 
             #endif
4957
 
 
4958
 
  ;
4959
 
  return 0;
4960
 
}
4961
 
_ACEOF
4962
 
if ac_fn_c_try_compile "$LINENO"; then :
4963
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
4964
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965
 
/* end confdefs.h.  */
4966
 
#include <sys/types.h>
4967
 
                #include <sys/param.h>
4968
 
 
4969
 
int
4970
 
main ()
4971
 
{
4972
 
#if BYTE_ORDER != BIG_ENDIAN
4973
 
                 not big endian
4974
 
                #endif
4975
 
 
4976
 
  ;
4977
 
  return 0;
4978
 
}
4979
 
_ACEOF
4980
 
if ac_fn_c_try_compile "$LINENO"; then :
4981
 
  ac_cv_c_bigendian=yes
4982
 
else
4983
 
  ac_cv_c_bigendian=no
4984
 
fi
4985
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986
 
fi
4987
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
 
    fi
4989
 
    if test $ac_cv_c_bigendian = unknown; then
4990
 
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4991
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992
 
/* end confdefs.h.  */
4993
 
#include <limits.h>
4994
 
 
4995
 
int
4996
 
main ()
4997
 
{
4998
 
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4999
 
              bogus endian macros
5000
 
             #endif
5001
 
 
5002
 
  ;
5003
 
  return 0;
5004
 
}
5005
 
_ACEOF
5006
 
if ac_fn_c_try_compile "$LINENO"; then :
5007
 
  # It does; now see whether it defined to _BIG_ENDIAN or not.
5008
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009
 
/* end confdefs.h.  */
5010
 
#include <limits.h>
5011
 
 
5012
 
int
5013
 
main ()
5014
 
{
5015
 
#ifndef _BIG_ENDIAN
5016
 
                 not big endian
5017
 
                #endif
5018
 
 
5019
 
  ;
5020
 
  return 0;
5021
 
}
5022
 
_ACEOF
5023
 
if ac_fn_c_try_compile "$LINENO"; then :
5024
 
  ac_cv_c_bigendian=yes
5025
 
else
5026
 
  ac_cv_c_bigendian=no
5027
 
fi
5028
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029
 
fi
5030
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031
 
    fi
5032
 
    if test $ac_cv_c_bigendian = unknown; then
5033
 
      # Compile a test program.
5034
 
      if test "$cross_compiling" = yes; then :
5035
 
  # Try to guess by grepping values from an object file.
5036
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037
 
/* end confdefs.h.  */
5038
 
short int ascii_mm[] =
5039
 
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5040
 
                short int ascii_ii[] =
5041
 
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5042
 
                int use_ascii (int i) {
5043
 
                  return ascii_mm[i] + ascii_ii[i];
5044
 
                }
5045
 
                short int ebcdic_ii[] =
5046
 
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5047
 
                short int ebcdic_mm[] =
5048
 
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5049
 
                int use_ebcdic (int i) {
5050
 
                  return ebcdic_mm[i] + ebcdic_ii[i];
5051
 
                }
5052
 
                extern int foo;
5053
 
 
5054
 
int
5055
 
main ()
5056
 
{
5057
 
return use_ascii (foo) == use_ebcdic (foo);
5058
 
  ;
5059
 
  return 0;
5060
 
}
5061
 
_ACEOF
5062
 
if ac_fn_c_try_compile "$LINENO"; then :
5063
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5064
 
              ac_cv_c_bigendian=yes
5065
 
            fi
5066
 
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5067
 
              if test "$ac_cv_c_bigendian" = unknown; then
5068
 
                ac_cv_c_bigendian=no
5069
 
              else
5070
 
                # finding both strings is unlikely to happen, but who knows?
5071
 
                ac_cv_c_bigendian=unknown
5072
 
              fi
5073
 
            fi
5074
 
fi
5075
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076
 
else
5077
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078
 
/* end confdefs.h.  */
5079
 
$ac_includes_default
5080
 
int
5081
 
main ()
5082
 
{
5083
 
 
5084
 
             /* Are we little or big endian?  From Harbison&Steele.  */
5085
 
             union
5086
 
             {
5087
 
               long int l;
5088
 
               char c[sizeof (long int)];
5089
 
             } u;
5090
 
             u.l = 1;
5091
 
             return u.c[sizeof (long int) - 1] == 1;
5092
 
 
5093
 
  ;
5094
 
  return 0;
5095
 
}
5096
 
_ACEOF
5097
 
if ac_fn_c_try_run "$LINENO"; then :
5098
 
  ac_cv_c_bigendian=no
5099
 
else
5100
 
  ac_cv_c_bigendian=yes
5101
 
fi
5102
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5104
 
fi
5105
 
 
5106
 
    fi
5107
 
fi
5108
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5109
 
$as_echo "$ac_cv_c_bigendian" >&6; }
5110
 
 case $ac_cv_c_bigendian in #(
5111
 
   yes)
5112
 
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5113
 
;; #(
5114
 
   no)
5115
 
      ;; #(
5116
 
   universal)
5117
 
 
5118
 
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5119
 
 
5120
 
     ;; #(
5121
 
   *)
5122
 
     as_fn_error $? "unknown endianness
5123
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
5124
 
 esac
5125
 
 
5126
 
 
5127
 
if test "$cxxset" != set; then
5128
 
# don't use the default -O2 -g because -g bloats the C++ binaries too much
5129
 
  CXXFLAGS="-O2"
5130
 
fi
5131
 
case "$target_os" in
5132
 
solaris*)
5133
 
  CXXFLAGS="$CXXFLAGS -include llvm/include/llvm/System/Solaris.h"
5134
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: Building on Solaris" >&5
5135
 
$as_echo "$as_me: Building on Solaris" >&6;}
5136
 
  ;;
5137
 
esac
5138
 
 
5139
 
 
5140
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5141
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5142
 
    # Check whether --enable-maintainer-mode was given.
5143
 
if test "${enable_maintainer_mode+set}" = set; then :
5144
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5145
 
else
5146
 
  USE_MAINTAINER_MODE=no
5147
 
fi
5148
 
 
5149
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5150
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
5151
 
   if test $USE_MAINTAINER_MODE = yes; then
5152
 
  MAINTAINER_MODE_TRUE=
5153
 
  MAINTAINER_MODE_FALSE='#'
5154
 
else
5155
 
  MAINTAINER_MODE_TRUE='#'
5156
 
  MAINTAINER_MODE_FALSE=
5157
 
fi
5158
 
 
5159
 
  MAINT=$MAINTAINER_MODE_TRUE
5160
 
 
5161
 
 
5162
 
case `pwd` in
5163
 
  *\ * | *\     *)
5164
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5165
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5166
 
esac
5167
 
 
5168
 
 
5169
 
 
5170
 
macro_version='2.2.6b'
5171
 
macro_revision='1.3017'
5172
 
 
5173
 
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
 
 
5183
 
 
5184
 
 
5185
 
ltmain="$ac_aux_dir/ltmain.sh"
5186
 
 
5187
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5188
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5189
 
if test "${ac_cv_path_SED+set}" = set; then :
5190
 
  $as_echo_n "(cached) " >&6
5191
 
else
5192
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5193
 
     for ac_i in 1 2 3 4 5 6 7; do
5194
 
       ac_script="$ac_script$as_nl$ac_script"
5195
 
     done
5196
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5197
 
     { ac_script=; unset ac_script;}
5198
 
     if test -z "$SED"; then
5199
 
  ac_path_SED_found=false
5200
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5201
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202
 
for as_dir in $PATH
5203
 
do
5204
 
  IFS=$as_save_IFS
5205
 
  test -z "$as_dir" && as_dir=.
5206
 
    for ac_prog in sed gsed; do
5207
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5208
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5209
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5210
 
# Check for GNU ac_path_SED and select it if it is found.
5211
 
  # Check for GNU $ac_path_SED
5212
 
case `"$ac_path_SED" --version 2>&1` in
5213
 
*GNU*)
5214
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5215
 
*)
5216
 
  ac_count=0
5217
 
  $as_echo_n 0123456789 >"conftest.in"
5218
 
  while :
5219
 
  do
5220
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5221
 
    mv "conftest.tmp" "conftest.in"
5222
 
    cp "conftest.in" "conftest.nl"
5223
 
    $as_echo '' >> "conftest.nl"
5224
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5225
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5226
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5227
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5228
 
      # Best one so far, save it but keep looking for a better one
5229
 
      ac_cv_path_SED="$ac_path_SED"
5230
 
      ac_path_SED_max=$ac_count
5231
 
    fi
5232
 
    # 10*(2^10) chars as input seems more than enough
5233
 
    test $ac_count -gt 10 && break
5234
 
  done
5235
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5236
 
esac
5237
 
 
5238
 
      $ac_path_SED_found && break 3
5239
 
    done
5240
 
  done
5241
 
  done
5242
 
IFS=$as_save_IFS
5243
 
  if test -z "$ac_cv_path_SED"; then
5244
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5245
 
  fi
5246
 
else
5247
 
  ac_cv_path_SED=$SED
5248
 
fi
5249
 
 
5250
 
fi
5251
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5252
 
$as_echo "$ac_cv_path_SED" >&6; }
5253
 
 SED="$ac_cv_path_SED"
5254
 
  rm -f conftest.sed
5255
 
 
5256
 
test -z "$SED" && SED=sed
5257
 
Xsed="$SED -e 1s/^X//"
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
 
 
5268
 
 
5269
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5270
 
$as_echo_n "checking for fgrep... " >&6; }
5271
 
if test "${ac_cv_path_FGREP+set}" = set; then :
5272
 
  $as_echo_n "(cached) " >&6
5273
 
else
5274
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5275
 
   then ac_cv_path_FGREP="$GREP -F"
5276
 
   else
5277
 
     if test -z "$FGREP"; then
5278
 
  ac_path_FGREP_found=false
5279
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5280
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282
 
do
5283
 
  IFS=$as_save_IFS
5284
 
  test -z "$as_dir" && as_dir=.
5285
 
    for ac_prog in fgrep; do
5286
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5287
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5288
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5289
 
# Check for GNU ac_path_FGREP and select it if it is found.
5290
 
  # Check for GNU $ac_path_FGREP
5291
 
case `"$ac_path_FGREP" --version 2>&1` in
5292
 
*GNU*)
5293
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5294
 
*)
5295
 
  ac_count=0
5296
 
  $as_echo_n 0123456789 >"conftest.in"
5297
 
  while :
5298
 
  do
5299
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5300
 
    mv "conftest.tmp" "conftest.in"
5301
 
    cp "conftest.in" "conftest.nl"
5302
 
    $as_echo 'FGREP' >> "conftest.nl"
5303
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5306
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5307
 
      # Best one so far, save it but keep looking for a better one
5308
 
      ac_cv_path_FGREP="$ac_path_FGREP"
5309
 
      ac_path_FGREP_max=$ac_count
5310
 
    fi
5311
 
    # 10*(2^10) chars as input seems more than enough
5312
 
    test $ac_count -gt 10 && break
5313
 
  done
5314
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315
 
esac
5316
 
 
5317
 
      $ac_path_FGREP_found && break 3
5318
 
    done
5319
 
  done
5320
 
  done
5321
 
IFS=$as_save_IFS
5322
 
  if test -z "$ac_cv_path_FGREP"; then
5323
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5324
 
  fi
5325
 
else
5326
 
  ac_cv_path_FGREP=$FGREP
5327
 
fi
5328
 
 
5329
 
   fi
5330
 
fi
5331
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5332
 
$as_echo "$ac_cv_path_FGREP" >&6; }
5333
 
 FGREP="$ac_cv_path_FGREP"
5334
 
 
5335
 
 
5336
 
test -z "$GREP" && GREP=grep
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
# Check whether --with-gnu-ld was given.
5357
 
if test "${with_gnu_ld+set}" = set; then :
5358
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5359
 
else
5360
 
  with_gnu_ld=no
5361
 
fi
5362
 
 
5363
 
ac_prog=ld
5364
 
if test "$GCC" = yes; then
5365
 
  # Check if gcc -print-prog-name=ld gives a path.
5366
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5367
 
$as_echo_n "checking for ld used by $CC... " >&6; }
5368
 
  case $host in
5369
 
  *-*-mingw*)
5370
 
    # gcc leaves a trailing carriage return which upsets mingw
5371
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5372
 
  *)
5373
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5374
 
  esac
5375
 
  case $ac_prog in
5376
 
    # Accept absolute paths.
5377
 
    [\\/]* | ?:[\\/]*)
5378
 
      re_direlt='/[^/][^/]*/\.\./'
5379
 
      # Canonicalize the pathname of ld
5380
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5381
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5382
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5383
 
      done
5384
 
      test -z "$LD" && LD="$ac_prog"
5385
 
      ;;
5386
 
  "")
5387
 
    # If it fails, then pretend we aren't using GCC.
5388
 
    ac_prog=ld
5389
 
    ;;
5390
 
  *)
5391
 
    # If it is relative, then search for the first ld in PATH.
5392
 
    with_gnu_ld=unknown
5393
 
    ;;
5394
 
  esac
5395
 
elif test "$with_gnu_ld" = yes; then
5396
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5397
 
$as_echo_n "checking for GNU ld... " >&6; }
5398
 
else
5399
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5400
 
$as_echo_n "checking for non-GNU ld... " >&6; }
5401
 
fi
5402
 
if test "${lt_cv_path_LD+set}" = set; then :
5403
 
  $as_echo_n "(cached) " >&6
5404
 
else
5405
 
  if test -z "$LD"; then
5406
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407
 
  for ac_dir in $PATH; do
5408
 
    IFS="$lt_save_ifs"
5409
 
    test -z "$ac_dir" && ac_dir=.
5410
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5411
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5412
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5413
 
      # but apparently some variants of GNU ld only accept -v.
5414
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5415
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5416
 
      *GNU* | *'with BFD'*)
5417
 
        test "$with_gnu_ld" != no && break
5418
 
        ;;
5419
 
      *)
5420
 
        test "$with_gnu_ld" != yes && break
5421
 
        ;;
5422
 
      esac
5423
 
    fi
5424
 
  done
5425
 
  IFS="$lt_save_ifs"
5426
 
else
5427
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5428
 
fi
5429
 
fi
5430
 
 
5431
 
LD="$lt_cv_path_LD"
5432
 
if test -n "$LD"; then
5433
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5434
 
$as_echo "$LD" >&6; }
5435
 
else
5436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437
 
$as_echo "no" >&6; }
5438
 
fi
5439
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5440
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5441
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5442
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5443
 
  $as_echo_n "(cached) " >&6
5444
 
else
5445
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5446
 
case `$LD -v 2>&1 </dev/null` in
5447
 
*GNU* | *'with BFD'*)
5448
 
  lt_cv_prog_gnu_ld=yes
5449
 
  ;;
5450
 
*)
5451
 
  lt_cv_prog_gnu_ld=no
5452
 
  ;;
5453
 
esac
5454
 
fi
5455
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5456
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5457
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5458
 
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
 
 
5464
 
 
5465
 
 
5466
 
 
5467
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5468
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5469
 
if test "${lt_cv_path_NM+set}" = set; then :
5470
 
  $as_echo_n "(cached) " >&6
5471
 
else
5472
 
  if test -n "$NM"; then
5473
 
  # Let the user override the test.
5474
 
  lt_cv_path_NM="$NM"
5475
 
else
5476
 
  lt_nm_to_check="${ac_tool_prefix}nm"
5477
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5478
 
    lt_nm_to_check="$lt_nm_to_check nm"
5479
 
  fi
5480
 
  for lt_tmp_nm in $lt_nm_to_check; do
5481
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5483
 
      IFS="$lt_save_ifs"
5484
 
      test -z "$ac_dir" && ac_dir=.
5485
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
5486
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5487
 
        # Check to see if the nm accepts a BSD-compat flag.
5488
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5489
 
        #   nm: unknown option "B" ignored
5490
 
        # Tru64's nm complains that /dev/null is an invalid object file
5491
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5492
 
        */dev/null* | *'Invalid file or object type'*)
5493
 
          lt_cv_path_NM="$tmp_nm -B"
5494
 
          break
5495
 
          ;;
5496
 
        *)
5497
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5498
 
          */dev/null*)
5499
 
            lt_cv_path_NM="$tmp_nm -p"
5500
 
            break
5501
 
            ;;
5502
 
          *)
5503
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5504
 
            continue # so that we can try to find one that supports BSD flags
5505
 
            ;;
5506
 
          esac
5507
 
          ;;
5508
 
        esac
5509
 
      fi
5510
 
    done
5511
 
    IFS="$lt_save_ifs"
5512
 
  done
5513
 
  : ${lt_cv_path_NM=no}
5514
 
fi
5515
 
fi
5516
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5517
 
$as_echo "$lt_cv_path_NM" >&6; }
5518
 
if test "$lt_cv_path_NM" != "no"; then
5519
 
  NM="$lt_cv_path_NM"
5520
 
else
5521
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
5522
 
  if test -n "$ac_tool_prefix"; then
5523
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5524
 
  do
5525
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528
 
$as_echo_n "checking for $ac_word... " >&6; }
5529
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5530
 
  $as_echo_n "(cached) " >&6
5531
 
else
5532
 
  if test -n "$DUMPBIN"; then
5533
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5534
 
else
5535
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536
 
for as_dir in $PATH
5537
 
do
5538
 
  IFS=$as_save_IFS
5539
 
  test -z "$as_dir" && as_dir=.
5540
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5541
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5543
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544
 
    break 2
5545
 
  fi
5546
 
done
5547
 
  done
5548
 
IFS=$as_save_IFS
5549
 
 
5550
 
fi
5551
 
fi
5552
 
DUMPBIN=$ac_cv_prog_DUMPBIN
5553
 
if test -n "$DUMPBIN"; then
5554
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5555
 
$as_echo "$DUMPBIN" >&6; }
5556
 
else
5557
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558
 
$as_echo "no" >&6; }
5559
 
fi
5560
 
 
5561
 
 
5562
 
    test -n "$DUMPBIN" && break
5563
 
  done
5564
 
fi
5565
 
if test -z "$DUMPBIN"; then
5566
 
  ac_ct_DUMPBIN=$DUMPBIN
5567
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5568
 
do
5569
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5570
 
set dummy $ac_prog; ac_word=$2
5571
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572
 
$as_echo_n "checking for $ac_word... " >&6; }
5573
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5574
 
  $as_echo_n "(cached) " >&6
5575
 
else
5576
 
  if test -n "$ac_ct_DUMPBIN"; then
5577
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5578
 
else
5579
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580
 
for as_dir in $PATH
5581
 
do
5582
 
  IFS=$as_save_IFS
5583
 
  test -z "$as_dir" && as_dir=.
5584
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5585
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5586
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5587
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588
 
    break 2
5589
 
  fi
5590
 
done
5591
 
  done
5592
 
IFS=$as_save_IFS
5593
 
 
5594
 
fi
5595
 
fi
5596
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5597
 
if test -n "$ac_ct_DUMPBIN"; then
5598
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5599
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
5600
 
else
5601
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602
 
$as_echo "no" >&6; }
5603
 
fi
5604
 
 
5605
 
 
5606
 
  test -n "$ac_ct_DUMPBIN" && break
5607
 
done
5608
 
 
5609
 
  if test "x$ac_ct_DUMPBIN" = x; then
5610
 
    DUMPBIN=":"
5611
 
  else
5612
 
    case $cross_compiling:$ac_tool_warned in
5613
 
yes:)
5614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616
 
ac_tool_warned=yes ;;
5617
 
esac
5618
 
    DUMPBIN=$ac_ct_DUMPBIN
5619
 
  fi
5620
 
fi
5621
 
 
5622
 
 
5623
 
  if test "$DUMPBIN" != ":"; then
5624
 
    NM="$DUMPBIN"
5625
 
  fi
5626
 
fi
5627
 
test -z "$NM" && NM=nm
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5635
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5636
 
if test "${lt_cv_nm_interface+set}" = set; then :
5637
 
  $as_echo_n "(cached) " >&6
5638
 
else
5639
 
  lt_cv_nm_interface="BSD nm"
5640
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5641
 
  (eval echo "\"\$as_me:5641: $ac_compile\"" >&5)
5642
 
  (eval "$ac_compile" 2>conftest.err)
5643
 
  cat conftest.err >&5
5644
 
  (eval echo "\"\$as_me:5644: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5645
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5646
 
  cat conftest.err >&5
5647
 
  (eval echo "\"\$as_me:5647: output\"" >&5)
5648
 
  cat conftest.out >&5
5649
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5650
 
    lt_cv_nm_interface="MS dumpbin"
5651
 
  fi
5652
 
  rm -f conftest*
5653
 
fi
5654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5655
 
$as_echo "$lt_cv_nm_interface" >&6; }
5656
 
 
5657
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5658
 
$as_echo_n "checking whether ln -s works... " >&6; }
5659
 
LN_S=$as_ln_s
5660
 
if test "$LN_S" = "ln -s"; then
5661
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5662
 
$as_echo "yes" >&6; }
5663
 
else
5664
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5665
 
$as_echo "no, using $LN_S" >&6; }
5666
 
fi
5667
 
 
5668
 
# find the maximum length of command line arguments
5669
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5670
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5671
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5672
 
  $as_echo_n "(cached) " >&6
5673
 
else
5674
 
    i=0
5675
 
  teststring="ABCD"
5676
 
 
5677
 
  case $build_os in
5678
 
  msdosdjgpp*)
5679
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5680
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5681
 
    # during glob expansion).  Even if it were fixed, the result of this
5682
 
    # check would be larger than it should be.
5683
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5684
 
    ;;
5685
 
 
5686
 
  gnu*)
5687
 
    # Under GNU Hurd, this test is not required because there is
5688
 
    # no limit to the length of command line arguments.
5689
 
    # Libtool will interpret -1 as no limit whatsoever
5690
 
    lt_cv_sys_max_cmd_len=-1;
5691
 
    ;;
5692
 
 
5693
 
  cygwin* | mingw* | cegcc*)
5694
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5695
 
    # about 5 minutes as the teststring grows exponentially.
5696
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
5697
 
    # you end up with a "frozen" computer, even though with patience
5698
 
    # the test eventually succeeds (with a max line length of 256k).
5699
 
    # Instead, let's just punt: use the minimum linelength reported by
5700
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
5701
 
    lt_cv_sys_max_cmd_len=8192;
5702
 
    ;;
5703
 
 
5704
 
  amigaos*)
5705
 
    # On AmigaOS with pdksh, this test takes hours, literally.
5706
 
    # So we just punt and use a minimum line length of 8192.
5707
 
    lt_cv_sys_max_cmd_len=8192;
5708
 
    ;;
5709
 
 
5710
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5711
 
    # This has been around since 386BSD, at least.  Likely further.
5712
 
    if test -x /sbin/sysctl; then
5713
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5714
 
    elif test -x /usr/sbin/sysctl; then
5715
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5716
 
    else
5717
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5718
 
    fi
5719
 
    # And add a safety zone
5720
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5721
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5722
 
    ;;
5723
 
 
5724
 
  interix*)
5725
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5726
 
    lt_cv_sys_max_cmd_len=196608
5727
 
    ;;
5728
 
 
5729
 
  osf*)
5730
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5731
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5732
 
    # nice to cause kernel panics so lets avoid the loop below.
5733
 
    # First set a reasonable default.
5734
 
    lt_cv_sys_max_cmd_len=16384
5735
 
    #
5736
 
    if test -x /sbin/sysconfig; then
5737
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5738
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5739
 
      esac
5740
 
    fi
5741
 
    ;;
5742
 
  sco3.2v5*)
5743
 
    lt_cv_sys_max_cmd_len=102400
5744
 
    ;;
5745
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5746
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5747
 
    if test -n "$kargmax"; then
5748
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5749
 
    else
5750
 
      lt_cv_sys_max_cmd_len=32768
5751
 
    fi
5752
 
    ;;
5753
 
  *)
5754
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5755
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
5756
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5757
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5758
 
    else
5759
 
      # Make teststring a little bigger before we do anything with it.
5760
 
      # a 1K string should be a reasonable start.
5761
 
      for i in 1 2 3 4 5 6 7 8 ; do
5762
 
        teststring=$teststring$teststring
5763
 
      done
5764
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5765
 
      # If test is not a shell built-in, we'll probably end up computing a
5766
 
      # maximum length that is only half of the actual maximum length, but
5767
 
      # we can't tell.
5768
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5769
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5770
 
              test $i != 17 # 1/2 MB should be enough
5771
 
      do
5772
 
        i=`expr $i + 1`
5773
 
        teststring=$teststring$teststring
5774
 
      done
5775
 
      # Only check the string length outside the loop.
5776
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5777
 
      teststring=
5778
 
      # Add a significant safety factor because C++ compilers can tack on
5779
 
      # massive amounts of additional arguments before passing them to the
5780
 
      # linker.  It appears as though 1/2 is a usable value.
5781
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5782
 
    fi
5783
 
    ;;
5784
 
  esac
5785
 
 
5786
 
fi
5787
 
 
5788
 
if test -n $lt_cv_sys_max_cmd_len ; then
5789
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5790
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5791
 
else
5792
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5793
 
$as_echo "none" >&6; }
5794
 
fi
5795
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
 
: ${CP="cp -f"}
5803
 
: ${MV="mv -f"}
5804
 
: ${RM="rm -f"}
5805
 
 
5806
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5807
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5808
 
# Try some XSI features
5809
 
xsi_shell=no
5810
 
( _lt_dummy="a/b/c"
5811
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5812
 
      = c,a/b,, \
5813
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
5814
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5815
 
  && xsi_shell=yes
5816
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5817
 
$as_echo "$xsi_shell" >&6; }
5818
 
 
5819
 
 
5820
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5821
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5822
 
lt_shell_append=no
5823
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5824
 
    >/dev/null 2>&1 \
5825
 
  && lt_shell_append=yes
5826
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5827
 
$as_echo "$lt_shell_append" >&6; }
5828
 
 
5829
 
 
5830
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5831
 
  lt_unset=unset
5832
 
else
5833
 
  lt_unset=false
5834
 
fi
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
 
 
5840
 
# test EBCDIC or ASCII
5841
 
case `echo X|tr X '\101'` in
5842
 
 A) # ASCII based system
5843
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5844
 
  lt_SP2NL='tr \040 \012'
5845
 
  lt_NL2SP='tr \015\012 \040\040'
5846
 
  ;;
5847
 
 *) # EBCDIC based system
5848
 
  lt_SP2NL='tr \100 \n'
5849
 
  lt_NL2SP='tr \r\n \100\100'
5850
 
  ;;
5851
 
esac
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5862
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5863
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5864
 
  $as_echo_n "(cached) " >&6
5865
 
else
5866
 
  lt_cv_ld_reload_flag='-r'
5867
 
fi
5868
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5869
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5870
 
reload_flag=$lt_cv_ld_reload_flag
5871
 
case $reload_flag in
5872
 
"" | " "*) ;;
5873
 
*) reload_flag=" $reload_flag" ;;
5874
 
esac
5875
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5876
 
case $host_os in
5877
 
  darwin*)
5878
 
    if test "$GCC" = yes; then
5879
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5880
 
    else
5881
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5882
 
    fi
5883
 
    ;;
5884
 
esac
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
if test -n "$ac_tool_prefix"; then
5895
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5896
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5897
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898
 
$as_echo_n "checking for $ac_word... " >&6; }
5899
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5900
 
  $as_echo_n "(cached) " >&6
5901
 
else
5902
 
  if test -n "$OBJDUMP"; then
5903
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5904
 
else
5905
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906
 
for as_dir in $PATH
5907
 
do
5908
 
  IFS=$as_save_IFS
5909
 
  test -z "$as_dir" && as_dir=.
5910
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5911
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5913
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914
 
    break 2
5915
 
  fi
5916
 
done
5917
 
  done
5918
 
IFS=$as_save_IFS
5919
 
 
5920
 
fi
5921
 
fi
5922
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5923
 
if test -n "$OBJDUMP"; then
5924
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5925
 
$as_echo "$OBJDUMP" >&6; }
5926
 
else
5927
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928
 
$as_echo "no" >&6; }
5929
 
fi
5930
 
 
5931
 
 
5932
 
fi
5933
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5934
 
  ac_ct_OBJDUMP=$OBJDUMP
5935
 
  # Extract the first word of "objdump", so it can be a program name with args.
5936
 
set dummy objdump; ac_word=$2
5937
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938
 
$as_echo_n "checking for $ac_word... " >&6; }
5939
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5940
 
  $as_echo_n "(cached) " >&6
5941
 
else
5942
 
  if test -n "$ac_ct_OBJDUMP"; then
5943
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5944
 
else
5945
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946
 
for as_dir in $PATH
5947
 
do
5948
 
  IFS=$as_save_IFS
5949
 
  test -z "$as_dir" && as_dir=.
5950
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5951
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5953
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954
 
    break 2
5955
 
  fi
5956
 
done
5957
 
  done
5958
 
IFS=$as_save_IFS
5959
 
 
5960
 
fi
5961
 
fi
5962
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5963
 
if test -n "$ac_ct_OBJDUMP"; then
5964
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5965
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
5966
 
else
5967
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968
 
$as_echo "no" >&6; }
5969
 
fi
5970
 
 
5971
 
  if test "x$ac_ct_OBJDUMP" = x; then
5972
 
    OBJDUMP="false"
5973
 
  else
5974
 
    case $cross_compiling:$ac_tool_warned in
5975
 
yes:)
5976
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978
 
ac_tool_warned=yes ;;
5979
 
esac
5980
 
    OBJDUMP=$ac_ct_OBJDUMP
5981
 
  fi
5982
 
else
5983
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5984
 
fi
5985
 
 
5986
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5987
 
 
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5997
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5998
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5999
 
  $as_echo_n "(cached) " >&6
6000
 
else
6001
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6002
 
lt_cv_file_magic_test_file=
6003
 
lt_cv_deplibs_check_method='unknown'
6004
 
# Need to set the preceding variable on all platforms that support
6005
 
# interlibrary dependencies.
6006
 
# 'none' -- dependencies not supported.
6007
 
# `unknown' -- same as none, but documents that we really don't know.
6008
 
# 'pass_all' -- all dependencies passed with no checks.
6009
 
# 'test_compile' -- check by making test program.
6010
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6011
 
# which responds to the $file_magic_cmd with a given extended regex.
6012
 
# If you have `file' or equivalent on your system and you're not sure
6013
 
# whether `pass_all' will *always* work, you probably want this one.
6014
 
 
6015
 
case $host_os in
6016
 
aix[4-9]*)
6017
 
  lt_cv_deplibs_check_method=pass_all
6018
 
  ;;
6019
 
 
6020
 
beos*)
6021
 
  lt_cv_deplibs_check_method=pass_all
6022
 
  ;;
6023
 
 
6024
 
bsdi[45]*)
6025
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6026
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6027
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6028
 
  ;;
6029
 
 
6030
 
cygwin*)
6031
 
  # func_win32_libid is a shell function defined in ltmain.sh
6032
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6033
 
  lt_cv_file_magic_cmd='func_win32_libid'
6034
 
  ;;
6035
 
 
6036
 
mingw* | pw32*)
6037
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
6038
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6039
 
  # unless we find 'file', for example because we are cross-compiling.
6040
 
  if ( file / ) >/dev/null 2>&1; then
6041
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042
 
    lt_cv_file_magic_cmd='func_win32_libid'
6043
 
  else
6044
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6045
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6046
 
  fi
6047
 
  ;;
6048
 
 
6049
 
cegcc)
6050
 
  # use the weaker test based on 'objdump'. See mingw*.
6051
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6052
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6053
 
  ;;
6054
 
 
6055
 
darwin* | rhapsody*)
6056
 
  lt_cv_deplibs_check_method=pass_all
6057
 
  ;;
6058
 
 
6059
 
freebsd* | dragonfly*)
6060
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6061
 
    case $host_cpu in
6062
 
    i*86 )
6063
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6064
 
      # Let's accept both of them until this is cleared up.
6065
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6066
 
      lt_cv_file_magic_cmd=/usr/bin/file
6067
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6068
 
      ;;
6069
 
    esac
6070
 
  else
6071
 
    lt_cv_deplibs_check_method=pass_all
6072
 
  fi
6073
 
  ;;
6074
 
 
6075
 
gnu*)
6076
 
  lt_cv_deplibs_check_method=pass_all
6077
 
  ;;
6078
 
 
6079
 
hpux10.20* | hpux11*)
6080
 
  lt_cv_file_magic_cmd=/usr/bin/file
6081
 
  case $host_cpu in
6082
 
  ia64*)
6083
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6084
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6085
 
    ;;
6086
 
  hppa*64*)
6087
 
    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]'
6088
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6089
 
    ;;
6090
 
  *)
6091
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6092
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6093
 
    ;;
6094
 
  esac
6095
 
  ;;
6096
 
 
6097
 
interix[3-9]*)
6098
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6099
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6100
 
  ;;
6101
 
 
6102
 
irix5* | irix6* | nonstopux*)
6103
 
  case $LD in
6104
 
  *-32|*"-32 ") libmagic=32-bit;;
6105
 
  *-n32|*"-n32 ") libmagic=N32;;
6106
 
  *-64|*"-64 ") libmagic=64-bit;;
6107
 
  *) libmagic=never-match;;
6108
 
  esac
6109
 
  lt_cv_deplibs_check_method=pass_all
6110
 
  ;;
6111
 
 
6112
 
# This must be Linux ELF.
6113
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6114
 
  lt_cv_deplibs_check_method=pass_all
6115
 
  ;;
6116
 
 
6117
 
netbsd* | netbsdelf*-gnu)
6118
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6119
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6120
 
  else
6121
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6122
 
  fi
6123
 
  ;;
6124
 
 
6125
 
newos6*)
6126
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6127
 
  lt_cv_file_magic_cmd=/usr/bin/file
6128
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6129
 
  ;;
6130
 
 
6131
 
*nto* | *qnx*)
6132
 
  lt_cv_deplibs_check_method=pass_all
6133
 
  ;;
6134
 
 
6135
 
openbsd*)
6136
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6137
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6138
 
  else
6139
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6140
 
  fi
6141
 
  ;;
6142
 
 
6143
 
osf3* | osf4* | osf5*)
6144
 
  lt_cv_deplibs_check_method=pass_all
6145
 
  ;;
6146
 
 
6147
 
rdos*)
6148
 
  lt_cv_deplibs_check_method=pass_all
6149
 
  ;;
6150
 
 
6151
 
solaris*)
6152
 
  lt_cv_deplibs_check_method=pass_all
6153
 
  ;;
6154
 
 
6155
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6156
 
  lt_cv_deplibs_check_method=pass_all
6157
 
  ;;
6158
 
 
6159
 
sysv4 | sysv4.3*)
6160
 
  case $host_vendor in
6161
 
  motorola)
6162
 
    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]'
6163
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6164
 
    ;;
6165
 
  ncr)
6166
 
    lt_cv_deplibs_check_method=pass_all
6167
 
    ;;
6168
 
  sequent)
6169
 
    lt_cv_file_magic_cmd='/bin/file'
6170
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6171
 
    ;;
6172
 
  sni)
6173
 
    lt_cv_file_magic_cmd='/bin/file'
6174
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6175
 
    lt_cv_file_magic_test_file=/lib/libc.so
6176
 
    ;;
6177
 
  siemens)
6178
 
    lt_cv_deplibs_check_method=pass_all
6179
 
    ;;
6180
 
  pc)
6181
 
    lt_cv_deplibs_check_method=pass_all
6182
 
    ;;
6183
 
  esac
6184
 
  ;;
6185
 
 
6186
 
tpf*)
6187
 
  lt_cv_deplibs_check_method=pass_all
6188
 
  ;;
6189
 
esac
6190
 
 
6191
 
fi
6192
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6193
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6194
 
file_magic_cmd=$lt_cv_file_magic_cmd
6195
 
deplibs_check_method=$lt_cv_deplibs_check_method
6196
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6197
 
 
6198
 
 
6199
 
 
6200
 
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
 
 
6207
 
 
6208
 
 
6209
 
if test -n "$ac_tool_prefix"; then
6210
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6212
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213
 
$as_echo_n "checking for $ac_word... " >&6; }
6214
 
if test "${ac_cv_prog_AR+set}" = set; then :
6215
 
  $as_echo_n "(cached) " >&6
6216
 
else
6217
 
  if test -n "$AR"; then
6218
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6219
 
else
6220
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221
 
for as_dir in $PATH
6222
 
do
6223
 
  IFS=$as_save_IFS
6224
 
  test -z "$as_dir" && as_dir=.
6225
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6226
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6228
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229
 
    break 2
6230
 
  fi
6231
 
done
6232
 
  done
6233
 
IFS=$as_save_IFS
6234
 
 
6235
 
fi
6236
 
fi
6237
 
AR=$ac_cv_prog_AR
6238
 
if test -n "$AR"; then
6239
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240
 
$as_echo "$AR" >&6; }
6241
 
else
6242
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243
 
$as_echo "no" >&6; }
6244
 
fi
6245
 
 
6246
 
 
6247
 
fi
6248
 
if test -z "$ac_cv_prog_AR"; then
6249
 
  ac_ct_AR=$AR
6250
 
  # Extract the first word of "ar", so it can be a program name with args.
6251
 
set dummy ar; ac_word=$2
6252
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253
 
$as_echo_n "checking for $ac_word... " >&6; }
6254
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6255
 
  $as_echo_n "(cached) " >&6
6256
 
else
6257
 
  if test -n "$ac_ct_AR"; then
6258
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6259
 
else
6260
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261
 
for as_dir in $PATH
6262
 
do
6263
 
  IFS=$as_save_IFS
6264
 
  test -z "$as_dir" && as_dir=.
6265
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6266
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267
 
    ac_cv_prog_ac_ct_AR="ar"
6268
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269
 
    break 2
6270
 
  fi
6271
 
done
6272
 
  done
6273
 
IFS=$as_save_IFS
6274
 
 
6275
 
fi
6276
 
fi
6277
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6278
 
if test -n "$ac_ct_AR"; then
6279
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6280
 
$as_echo "$ac_ct_AR" >&6; }
6281
 
else
6282
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283
 
$as_echo "no" >&6; }
6284
 
fi
6285
 
 
6286
 
  if test "x$ac_ct_AR" = x; then
6287
 
    AR="false"
6288
 
  else
6289
 
    case $cross_compiling:$ac_tool_warned in
6290
 
yes:)
6291
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293
 
ac_tool_warned=yes ;;
6294
 
esac
6295
 
    AR=$ac_ct_AR
6296
 
  fi
6297
 
else
6298
 
  AR="$ac_cv_prog_AR"
6299
 
fi
6300
 
 
6301
 
test -z "$AR" && AR=ar
6302
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6303
 
 
6304
 
 
6305
 
 
6306
 
 
6307
 
 
6308
 
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
 
 
6314
 
if test -n "$ac_tool_prefix"; then
6315
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6316
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6317
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318
 
$as_echo_n "checking for $ac_word... " >&6; }
6319
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
6320
 
  $as_echo_n "(cached) " >&6
6321
 
else
6322
 
  if test -n "$STRIP"; then
6323
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6324
 
else
6325
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326
 
for as_dir in $PATH
6327
 
do
6328
 
  IFS=$as_save_IFS
6329
 
  test -z "$as_dir" && as_dir=.
6330
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6331
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6333
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334
 
    break 2
6335
 
  fi
6336
 
done
6337
 
  done
6338
 
IFS=$as_save_IFS
6339
 
 
6340
 
fi
6341
 
fi
6342
 
STRIP=$ac_cv_prog_STRIP
6343
 
if test -n "$STRIP"; then
6344
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6345
 
$as_echo "$STRIP" >&6; }
6346
 
else
6347
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348
 
$as_echo "no" >&6; }
6349
 
fi
6350
 
 
6351
 
 
6352
 
fi
6353
 
if test -z "$ac_cv_prog_STRIP"; then
6354
 
  ac_ct_STRIP=$STRIP
6355
 
  # Extract the first word of "strip", so it can be a program name with args.
6356
 
set dummy strip; ac_word=$2
6357
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358
 
$as_echo_n "checking for $ac_word... " >&6; }
6359
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6360
 
  $as_echo_n "(cached) " >&6
6361
 
else
6362
 
  if test -n "$ac_ct_STRIP"; then
6363
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6364
 
else
6365
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366
 
for as_dir in $PATH
6367
 
do
6368
 
  IFS=$as_save_IFS
6369
 
  test -z "$as_dir" && as_dir=.
6370
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6371
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372
 
    ac_cv_prog_ac_ct_STRIP="strip"
6373
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374
 
    break 2
6375
 
  fi
6376
 
done
6377
 
  done
6378
 
IFS=$as_save_IFS
6379
 
 
6380
 
fi
6381
 
fi
6382
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6383
 
if test -n "$ac_ct_STRIP"; then
6384
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6385
 
$as_echo "$ac_ct_STRIP" >&6; }
6386
 
else
6387
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388
 
$as_echo "no" >&6; }
6389
 
fi
6390
 
 
6391
 
  if test "x$ac_ct_STRIP" = x; then
6392
 
    STRIP=":"
6393
 
  else
6394
 
    case $cross_compiling:$ac_tool_warned in
6395
 
yes:)
6396
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398
 
ac_tool_warned=yes ;;
6399
 
esac
6400
 
    STRIP=$ac_ct_STRIP
6401
 
  fi
6402
 
else
6403
 
  STRIP="$ac_cv_prog_STRIP"
6404
 
fi
6405
 
 
6406
 
test -z "$STRIP" && STRIP=:
6407
 
 
6408
 
 
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
if test -n "$ac_tool_prefix"; then
6414
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6416
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417
 
$as_echo_n "checking for $ac_word... " >&6; }
6418
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6419
 
  $as_echo_n "(cached) " >&6
6420
 
else
6421
 
  if test -n "$RANLIB"; then
6422
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6423
 
else
6424
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425
 
for as_dir in $PATH
6426
 
do
6427
 
  IFS=$as_save_IFS
6428
 
  test -z "$as_dir" && as_dir=.
6429
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6430
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6432
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433
 
    break 2
6434
 
  fi
6435
 
done
6436
 
  done
6437
 
IFS=$as_save_IFS
6438
 
 
6439
 
fi
6440
 
fi
6441
 
RANLIB=$ac_cv_prog_RANLIB
6442
 
if test -n "$RANLIB"; then
6443
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444
 
$as_echo "$RANLIB" >&6; }
6445
 
else
6446
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447
 
$as_echo "no" >&6; }
6448
 
fi
6449
 
 
6450
 
 
6451
 
fi
6452
 
if test -z "$ac_cv_prog_RANLIB"; then
6453
 
  ac_ct_RANLIB=$RANLIB
6454
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6455
 
set dummy ranlib; ac_word=$2
6456
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457
 
$as_echo_n "checking for $ac_word... " >&6; }
6458
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6459
 
  $as_echo_n "(cached) " >&6
6460
 
else
6461
 
  if test -n "$ac_ct_RANLIB"; then
6462
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6463
 
else
6464
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465
 
for as_dir in $PATH
6466
 
do
6467
 
  IFS=$as_save_IFS
6468
 
  test -z "$as_dir" && as_dir=.
6469
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6470
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6472
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473
 
    break 2
6474
 
  fi
6475
 
done
6476
 
  done
6477
 
IFS=$as_save_IFS
6478
 
 
6479
 
fi
6480
 
fi
6481
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482
 
if test -n "$ac_ct_RANLIB"; then
6483
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484
 
$as_echo "$ac_ct_RANLIB" >&6; }
6485
 
else
6486
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487
 
$as_echo "no" >&6; }
6488
 
fi
6489
 
 
6490
 
  if test "x$ac_ct_RANLIB" = x; then
6491
 
    RANLIB=":"
6492
 
  else
6493
 
    case $cross_compiling:$ac_tool_warned in
6494
 
yes:)
6495
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497
 
ac_tool_warned=yes ;;
6498
 
esac
6499
 
    RANLIB=$ac_ct_RANLIB
6500
 
  fi
6501
 
else
6502
 
  RANLIB="$ac_cv_prog_RANLIB"
6503
 
fi
6504
 
 
6505
 
test -z "$RANLIB" && RANLIB=:
6506
 
 
6507
 
 
6508
 
 
6509
 
 
6510
 
 
6511
 
 
6512
 
# Determine commands to create old-style static archives.
6513
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6514
 
old_postinstall_cmds='chmod 644 $oldlib'
6515
 
old_postuninstall_cmds=
6516
 
 
6517
 
if test -n "$RANLIB"; then
6518
 
  case $host_os in
6519
 
  openbsd*)
6520
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6521
 
    ;;
6522
 
  *)
6523
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6524
 
    ;;
6525
 
  esac
6526
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6527
 
fi
6528
 
 
6529
 
 
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
 
 
6537
 
 
6538
 
 
6539
 
 
6540
 
 
6541
 
 
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
 
6561
 
 
6562
 
# If no C compiler was specified, use CC.
6563
 
LTCC=${LTCC-"$CC"}
6564
 
 
6565
 
# If no C compiler flags were specified, use CFLAGS.
6566
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6567
 
 
6568
 
# Allow CC to be a program name with arguments.
6569
 
compiler=$CC
6570
 
 
6571
 
 
6572
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6573
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6576
 
  $as_echo_n "(cached) " >&6
6577
 
else
6578
 
 
6579
 
# These are sane defaults that work on at least a few old systems.
6580
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6581
 
 
6582
 
# Character class describing NM global symbol codes.
6583
 
symcode='[BCDEGRST]'
6584
 
 
6585
 
# Regexp to match symbols that can be accessed directly from C.
6586
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6587
 
 
6588
 
# Define system-specific variables.
6589
 
case $host_os in
6590
 
aix*)
6591
 
  symcode='[BCDT]'
6592
 
  ;;
6593
 
cygwin* | mingw* | pw32* | cegcc*)
6594
 
  symcode='[ABCDGISTW]'
6595
 
  ;;
6596
 
hpux*)
6597
 
  if test "$host_cpu" = ia64; then
6598
 
    symcode='[ABCDEGRST]'
6599
 
  fi
6600
 
  ;;
6601
 
irix* | nonstopux*)
6602
 
  symcode='[BCDEGRST]'
6603
 
  ;;
6604
 
osf*)
6605
 
  symcode='[BCDEGQRST]'
6606
 
  ;;
6607
 
solaris*)
6608
 
  symcode='[BDRT]'
6609
 
  ;;
6610
 
sco3.2v5*)
6611
 
  symcode='[DT]'
6612
 
  ;;
6613
 
sysv4.2uw2*)
6614
 
  symcode='[DT]'
6615
 
  ;;
6616
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6617
 
  symcode='[ABDT]'
6618
 
  ;;
6619
 
sysv4)
6620
 
  symcode='[DFNSTU]'
6621
 
  ;;
6622
 
esac
6623
 
 
6624
 
# If we're using GNU nm, then use its standard symbol codes.
6625
 
case `$NM -V 2>&1` in
6626
 
*GNU* | *'with BFD'*)
6627
 
  symcode='[ABCDGIRSTW]' ;;
6628
 
esac
6629
 
 
6630
 
# Transform an extracted symbol line into a proper C declaration.
6631
 
# Some systems (esp. on ia64) link data and code symbols differently,
6632
 
# so use this general approach.
6633
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634
 
 
6635
 
# Transform an extracted symbol line into symbol name and symbol address
6636
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6637
 
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'"
6638
 
 
6639
 
# Handle CRLF in mingw tool chain
6640
 
opt_cr=
6641
 
case $build_os in
6642
 
mingw*)
6643
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6644
 
  ;;
6645
 
esac
6646
 
 
6647
 
# Try without a prefix underscore, then with it.
6648
 
for ac_symprfx in "" "_"; do
6649
 
 
6650
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6651
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6652
 
 
6653
 
  # Write the raw and C identifiers.
6654
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6655
 
    # Fake it for dumpbin and say T for any non-static function
6656
 
    # and D for any global variable.
6657
 
    # Also find C++ and __fastcall symbols from MSVC++,
6658
 
    # which start with @ or ?.
6659
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6660
 
"     {last_section=section; section=\$ 3};"\
6661
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6662
 
"     \$ 0!~/External *\|/{next};"\
6663
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6664
 
"     {if(hide[section]) next};"\
6665
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6666
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6667
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6668
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6669
 
"     ' prfx=^$ac_symprfx"
6670
 
  else
6671
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6672
 
  fi
6673
 
 
6674
 
  # Check to see that the pipe works correctly.
6675
 
  pipe_works=no
6676
 
 
6677
 
  rm -f conftest*
6678
 
  cat > conftest.$ac_ext <<_LT_EOF
6679
 
#ifdef __cplusplus
6680
 
extern "C" {
6681
 
#endif
6682
 
char nm_test_var;
6683
 
void nm_test_func(void);
6684
 
void nm_test_func(void){}
6685
 
#ifdef __cplusplus
6686
 
}
6687
 
#endif
6688
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6689
 
_LT_EOF
6690
 
 
6691
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692
 
  (eval $ac_compile) 2>&5
6693
 
  ac_status=$?
6694
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695
 
  test $ac_status = 0; }; then
6696
 
    # Now try to grab the symbols.
6697
 
    nlist=conftest.nm
6698
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6699
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6700
 
  ac_status=$?
6701
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6702
 
  test $ac_status = 0; } && test -s "$nlist"; then
6703
 
      # Try sorting and uniquifying the output.
6704
 
      if sort "$nlist" | uniq > "$nlist"T; then
6705
 
        mv -f "$nlist"T "$nlist"
6706
 
      else
6707
 
        rm -f "$nlist"T
6708
 
      fi
6709
 
 
6710
 
      # Make sure that we snagged all the symbols we need.
6711
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6712
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6713
 
          cat <<_LT_EOF > conftest.$ac_ext
6714
 
#ifdef __cplusplus
6715
 
extern "C" {
6716
 
#endif
6717
 
 
6718
 
_LT_EOF
6719
 
          # Now generate the symbol file.
6720
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6721
 
 
6722
 
          cat <<_LT_EOF >> conftest.$ac_ext
6723
 
 
6724
 
/* The mapping between symbol names and symbols.  */
6725
 
const struct {
6726
 
  const char *name;
6727
 
  void       *address;
6728
 
}
6729
 
lt__PROGRAM__LTX_preloaded_symbols[] =
6730
 
{
6731
 
  { "@PROGRAM@", (void *) 0 },
6732
 
_LT_EOF
6733
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6734
 
          cat <<\_LT_EOF >> conftest.$ac_ext
6735
 
  {0, (void *) 0}
6736
 
};
6737
 
 
6738
 
/* This works around a problem in FreeBSD linker */
6739
 
#ifdef FREEBSD_WORKAROUND
6740
 
static const void *lt_preloaded_setup() {
6741
 
  return lt__PROGRAM__LTX_preloaded_symbols;
6742
 
}
6743
 
#endif
6744
 
 
6745
 
#ifdef __cplusplus
6746
 
}
6747
 
#endif
6748
 
_LT_EOF
6749
 
          # Now try linking the two files.
6750
 
          mv conftest.$ac_objext conftstm.$ac_objext
6751
 
          lt_save_LIBS="$LIBS"
6752
 
          lt_save_CFLAGS="$CFLAGS"
6753
 
          LIBS="conftstm.$ac_objext"
6754
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6755
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6756
 
  (eval $ac_link) 2>&5
6757
 
  ac_status=$?
6758
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6760
 
            pipe_works=yes
6761
 
          fi
6762
 
          LIBS="$lt_save_LIBS"
6763
 
          CFLAGS="$lt_save_CFLAGS"
6764
 
        else
6765
 
          echo "cannot find nm_test_func in $nlist" >&5
6766
 
        fi
6767
 
      else
6768
 
        echo "cannot find nm_test_var in $nlist" >&5
6769
 
      fi
6770
 
    else
6771
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6772
 
    fi
6773
 
  else
6774
 
    echo "$progname: failed program was:" >&5
6775
 
    cat conftest.$ac_ext >&5
6776
 
  fi
6777
 
  rm -rf conftest* conftst*
6778
 
 
6779
 
  # Do not use the global_symbol_pipe unless it works.
6780
 
  if test "$pipe_works" = yes; then
6781
 
    break
6782
 
  else
6783
 
    lt_cv_sys_global_symbol_pipe=
6784
 
  fi
6785
 
done
6786
 
 
6787
 
fi
6788
 
 
6789
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6790
 
  lt_cv_sys_global_symbol_to_cdecl=
6791
 
fi
6792
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6793
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6794
 
$as_echo "failed" >&6; }
6795
 
else
6796
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6797
 
$as_echo "ok" >&6; }
6798
 
fi
6799
 
 
6800
 
 
6801
 
 
6802
 
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
 
 
6818
 
 
6819
 
 
6820
 
 
6821
 
# Check whether --enable-libtool-lock was given.
6822
 
if test "${enable_libtool_lock+set}" = set; then :
6823
 
  enableval=$enable_libtool_lock;
6824
 
fi
6825
 
 
6826
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827
 
 
6828
 
# Some flags need to be propagated to the compiler or linker for good
6829
 
# libtool support.
6830
 
case $host in
6831
 
ia64-*-hpux*)
6832
 
  # Find out which ABI we are using.
6833
 
  echo 'int i;' > conftest.$ac_ext
6834
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835
 
  (eval $ac_compile) 2>&5
6836
 
  ac_status=$?
6837
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838
 
  test $ac_status = 0; }; then
6839
 
    case `/usr/bin/file conftest.$ac_objext` in
6840
 
      *ELF-32*)
6841
 
        HPUX_IA64_MODE="32"
6842
 
        ;;
6843
 
      *ELF-64*)
6844
 
        HPUX_IA64_MODE="64"
6845
 
        ;;
6846
 
    esac
6847
 
  fi
6848
 
  rm -rf conftest*
6849
 
  ;;
6850
 
*-*-irix6*)
6851
 
  # Find out which ABI we are using.
6852
 
  echo '#line 6852 "configure"' > conftest.$ac_ext
6853
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854
 
  (eval $ac_compile) 2>&5
6855
 
  ac_status=$?
6856
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857
 
  test $ac_status = 0; }; then
6858
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
6859
 
      case `/usr/bin/file conftest.$ac_objext` in
6860
 
        *32-bit*)
6861
 
          LD="${LD-ld} -melf32bsmip"
6862
 
          ;;
6863
 
        *N32*)
6864
 
          LD="${LD-ld} -melf32bmipn32"
6865
 
          ;;
6866
 
        *64-bit*)
6867
 
          LD="${LD-ld} -melf64bmip"
6868
 
        ;;
6869
 
      esac
6870
 
    else
6871
 
      case `/usr/bin/file conftest.$ac_objext` in
6872
 
        *32-bit*)
6873
 
          LD="${LD-ld} -32"
6874
 
          ;;
6875
 
        *N32*)
6876
 
          LD="${LD-ld} -n32"
6877
 
          ;;
6878
 
        *64-bit*)
6879
 
          LD="${LD-ld} -64"
6880
 
          ;;
6881
 
      esac
6882
 
    fi
6883
 
  fi
6884
 
  rm -rf conftest*
6885
 
  ;;
6886
 
 
6887
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6888
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889
 
  # Find out which ABI we are using.
6890
 
  echo 'int i;' > conftest.$ac_ext
6891
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892
 
  (eval $ac_compile) 2>&5
6893
 
  ac_status=$?
6894
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895
 
  test $ac_status = 0; }; then
6896
 
    case `/usr/bin/file conftest.o` in
6897
 
      *32-bit*)
6898
 
        case $host in
6899
 
          x86_64-*kfreebsd*-gnu)
6900
 
            LD="${LD-ld} -m elf_i386_fbsd"
6901
 
            ;;
6902
 
          x86_64-*linux*)
6903
 
            LD="${LD-ld} -m elf_i386"
6904
 
            ;;
6905
 
          ppc64-*linux*|powerpc64-*linux*)
6906
 
            LD="${LD-ld} -m elf32ppclinux"
6907
 
            ;;
6908
 
          s390x-*linux*)
6909
 
            LD="${LD-ld} -m elf_s390"
6910
 
            ;;
6911
 
          sparc64-*linux*)
6912
 
            LD="${LD-ld} -m elf32_sparc"
6913
 
            ;;
6914
 
        esac
6915
 
        ;;
6916
 
      *64-bit*)
6917
 
        case $host in
6918
 
          x86_64-*kfreebsd*-gnu)
6919
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
6920
 
            ;;
6921
 
          x86_64-*linux*)
6922
 
            LD="${LD-ld} -m elf_x86_64"
6923
 
            ;;
6924
 
          ppc*-*linux*|powerpc*-*linux*)
6925
 
            LD="${LD-ld} -m elf64ppc"
6926
 
            ;;
6927
 
          s390*-*linux*|s390*-*tpf*)
6928
 
            LD="${LD-ld} -m elf64_s390"
6929
 
            ;;
6930
 
          sparc*-*linux*)
6931
 
            LD="${LD-ld} -m elf64_sparc"
6932
 
            ;;
6933
 
        esac
6934
 
        ;;
6935
 
    esac
6936
 
  fi
6937
 
  rm -rf conftest*
6938
 
  ;;
6939
 
 
6940
 
*-*-sco3.2v5*)
6941
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6942
 
  SAVE_CFLAGS="$CFLAGS"
6943
 
  CFLAGS="$CFLAGS -belf"
6944
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6945
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6946
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6947
 
  $as_echo_n "(cached) " >&6
6948
 
else
6949
 
  ac_ext=c
6950
 
ac_cpp='$CPP $CPPFLAGS'
6951
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
 
 
6955
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956
 
/* end confdefs.h.  */
6957
 
 
6958
 
int
6959
 
main ()
6960
 
{
6961
 
 
6962
 
  ;
6963
 
  return 0;
6964
 
}
6965
 
_ACEOF
6966
 
if ac_fn_c_try_link "$LINENO"; then :
6967
 
  lt_cv_cc_needs_belf=yes
6968
 
else
6969
 
  lt_cv_cc_needs_belf=no
6970
 
fi
6971
 
rm -f core conftest.err conftest.$ac_objext \
6972
 
    conftest$ac_exeext conftest.$ac_ext
6973
 
     ac_ext=c
6974
 
ac_cpp='$CPP $CPPFLAGS'
6975
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
 
 
6979
 
fi
6980
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6981
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6982
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6983
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6984
 
    CFLAGS="$SAVE_CFLAGS"
6985
 
  fi
6986
 
  ;;
6987
 
sparc*-*solaris*)
6988
 
  # Find out which ABI we are using.
6989
 
  echo 'int i;' > conftest.$ac_ext
6990
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991
 
  (eval $ac_compile) 2>&5
6992
 
  ac_status=$?
6993
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994
 
  test $ac_status = 0; }; then
6995
 
    case `/usr/bin/file conftest.o` in
6996
 
    *64-bit*)
6997
 
      case $lt_cv_prog_gnu_ld in
6998
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6999
 
      *)
7000
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7001
 
          LD="${LD-ld} -64"
7002
 
        fi
7003
 
        ;;
7004
 
      esac
7005
 
      ;;
7006
 
    esac
7007
 
  fi
7008
 
  rm -rf conftest*
7009
 
  ;;
7010
 
esac
7011
 
 
7012
 
need_locks="$enable_libtool_lock"
7013
 
 
7014
 
 
7015
 
  case $host_os in
7016
 
    rhapsody* | darwin*)
7017
 
    if test -n "$ac_tool_prefix"; then
7018
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7019
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7020
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021
 
$as_echo_n "checking for $ac_word... " >&6; }
7022
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7023
 
  $as_echo_n "(cached) " >&6
7024
 
else
7025
 
  if test -n "$DSYMUTIL"; then
7026
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7027
 
else
7028
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029
 
for as_dir in $PATH
7030
 
do
7031
 
  IFS=$as_save_IFS
7032
 
  test -z "$as_dir" && as_dir=.
7033
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7034
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7036
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037
 
    break 2
7038
 
  fi
7039
 
done
7040
 
  done
7041
 
IFS=$as_save_IFS
7042
 
 
7043
 
fi
7044
 
fi
7045
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7046
 
if test -n "$DSYMUTIL"; then
7047
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7048
 
$as_echo "$DSYMUTIL" >&6; }
7049
 
else
7050
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051
 
$as_echo "no" >&6; }
7052
 
fi
7053
 
 
7054
 
 
7055
 
fi
7056
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
7057
 
  ac_ct_DSYMUTIL=$DSYMUTIL
7058
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
7059
 
set dummy dsymutil; ac_word=$2
7060
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061
 
$as_echo_n "checking for $ac_word... " >&6; }
7062
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7063
 
  $as_echo_n "(cached) " >&6
7064
 
else
7065
 
  if test -n "$ac_ct_DSYMUTIL"; then
7066
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7067
 
else
7068
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069
 
for as_dir in $PATH
7070
 
do
7071
 
  IFS=$as_save_IFS
7072
 
  test -z "$as_dir" && as_dir=.
7073
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7074
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7076
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077
 
    break 2
7078
 
  fi
7079
 
done
7080
 
  done
7081
 
IFS=$as_save_IFS
7082
 
 
7083
 
fi
7084
 
fi
7085
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7086
 
if test -n "$ac_ct_DSYMUTIL"; then
7087
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7088
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7089
 
else
7090
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091
 
$as_echo "no" >&6; }
7092
 
fi
7093
 
 
7094
 
  if test "x$ac_ct_DSYMUTIL" = x; then
7095
 
    DSYMUTIL=":"
7096
 
  else
7097
 
    case $cross_compiling:$ac_tool_warned in
7098
 
yes:)
7099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101
 
ac_tool_warned=yes ;;
7102
 
esac
7103
 
    DSYMUTIL=$ac_ct_DSYMUTIL
7104
 
  fi
7105
 
else
7106
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7107
 
fi
7108
 
 
7109
 
    if test -n "$ac_tool_prefix"; then
7110
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7111
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7112
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113
 
$as_echo_n "checking for $ac_word... " >&6; }
7114
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7115
 
  $as_echo_n "(cached) " >&6
7116
 
else
7117
 
  if test -n "$NMEDIT"; then
7118
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7119
 
else
7120
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121
 
for as_dir in $PATH
7122
 
do
7123
 
  IFS=$as_save_IFS
7124
 
  test -z "$as_dir" && as_dir=.
7125
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7126
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7128
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129
 
    break 2
7130
 
  fi
7131
 
done
7132
 
  done
7133
 
IFS=$as_save_IFS
7134
 
 
7135
 
fi
7136
 
fi
7137
 
NMEDIT=$ac_cv_prog_NMEDIT
7138
 
if test -n "$NMEDIT"; then
7139
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7140
 
$as_echo "$NMEDIT" >&6; }
7141
 
else
7142
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143
 
$as_echo "no" >&6; }
7144
 
fi
7145
 
 
7146
 
 
7147
 
fi
7148
 
if test -z "$ac_cv_prog_NMEDIT"; then
7149
 
  ac_ct_NMEDIT=$NMEDIT
7150
 
  # Extract the first word of "nmedit", so it can be a program name with args.
7151
 
set dummy nmedit; ac_word=$2
7152
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153
 
$as_echo_n "checking for $ac_word... " >&6; }
7154
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7155
 
  $as_echo_n "(cached) " >&6
7156
 
else
7157
 
  if test -n "$ac_ct_NMEDIT"; then
7158
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7159
 
else
7160
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161
 
for as_dir in $PATH
7162
 
do
7163
 
  IFS=$as_save_IFS
7164
 
  test -z "$as_dir" && as_dir=.
7165
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7166
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7168
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169
 
    break 2
7170
 
  fi
7171
 
done
7172
 
  done
7173
 
IFS=$as_save_IFS
7174
 
 
7175
 
fi
7176
 
fi
7177
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7178
 
if test -n "$ac_ct_NMEDIT"; then
7179
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7180
 
$as_echo "$ac_ct_NMEDIT" >&6; }
7181
 
else
7182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183
 
$as_echo "no" >&6; }
7184
 
fi
7185
 
 
7186
 
  if test "x$ac_ct_NMEDIT" = x; then
7187
 
    NMEDIT=":"
7188
 
  else
7189
 
    case $cross_compiling:$ac_tool_warned in
7190
 
yes:)
7191
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193
 
ac_tool_warned=yes ;;
7194
 
esac
7195
 
    NMEDIT=$ac_ct_NMEDIT
7196
 
  fi
7197
 
else
7198
 
  NMEDIT="$ac_cv_prog_NMEDIT"
7199
 
fi
7200
 
 
7201
 
    if test -n "$ac_tool_prefix"; then
7202
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7203
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7204
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205
 
$as_echo_n "checking for $ac_word... " >&6; }
7206
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
7207
 
  $as_echo_n "(cached) " >&6
7208
 
else
7209
 
  if test -n "$LIPO"; then
7210
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7211
 
else
7212
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213
 
for as_dir in $PATH
7214
 
do
7215
 
  IFS=$as_save_IFS
7216
 
  test -z "$as_dir" && as_dir=.
7217
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7218
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7220
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221
 
    break 2
7222
 
  fi
7223
 
done
7224
 
  done
7225
 
IFS=$as_save_IFS
7226
 
 
7227
 
fi
7228
 
fi
7229
 
LIPO=$ac_cv_prog_LIPO
7230
 
if test -n "$LIPO"; then
7231
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7232
 
$as_echo "$LIPO" >&6; }
7233
 
else
7234
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235
 
$as_echo "no" >&6; }
7236
 
fi
7237
 
 
7238
 
 
7239
 
fi
7240
 
if test -z "$ac_cv_prog_LIPO"; then
7241
 
  ac_ct_LIPO=$LIPO
7242
 
  # Extract the first word of "lipo", so it can be a program name with args.
7243
 
set dummy lipo; ac_word=$2
7244
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245
 
$as_echo_n "checking for $ac_word... " >&6; }
7246
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7247
 
  $as_echo_n "(cached) " >&6
7248
 
else
7249
 
  if test -n "$ac_ct_LIPO"; then
7250
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7251
 
else
7252
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253
 
for as_dir in $PATH
7254
 
do
7255
 
  IFS=$as_save_IFS
7256
 
  test -z "$as_dir" && as_dir=.
7257
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7258
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259
 
    ac_cv_prog_ac_ct_LIPO="lipo"
7260
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261
 
    break 2
7262
 
  fi
7263
 
done
7264
 
  done
7265
 
IFS=$as_save_IFS
7266
 
 
7267
 
fi
7268
 
fi
7269
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7270
 
if test -n "$ac_ct_LIPO"; then
7271
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7272
 
$as_echo "$ac_ct_LIPO" >&6; }
7273
 
else
7274
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275
 
$as_echo "no" >&6; }
7276
 
fi
7277
 
 
7278
 
  if test "x$ac_ct_LIPO" = x; then
7279
 
    LIPO=":"
7280
 
  else
7281
 
    case $cross_compiling:$ac_tool_warned in
7282
 
yes:)
7283
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285
 
ac_tool_warned=yes ;;
7286
 
esac
7287
 
    LIPO=$ac_ct_LIPO
7288
 
  fi
7289
 
else
7290
 
  LIPO="$ac_cv_prog_LIPO"
7291
 
fi
7292
 
 
7293
 
    if test -n "$ac_tool_prefix"; then
7294
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7295
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
7296
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297
 
$as_echo_n "checking for $ac_word... " >&6; }
7298
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7299
 
  $as_echo_n "(cached) " >&6
7300
 
else
7301
 
  if test -n "$OTOOL"; then
7302
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7303
 
else
7304
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305
 
for as_dir in $PATH
7306
 
do
7307
 
  IFS=$as_save_IFS
7308
 
  test -z "$as_dir" && as_dir=.
7309
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7310
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7312
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313
 
    break 2
7314
 
  fi
7315
 
done
7316
 
  done
7317
 
IFS=$as_save_IFS
7318
 
 
7319
 
fi
7320
 
fi
7321
 
OTOOL=$ac_cv_prog_OTOOL
7322
 
if test -n "$OTOOL"; then
7323
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324
 
$as_echo "$OTOOL" >&6; }
7325
 
else
7326
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327
 
$as_echo "no" >&6; }
7328
 
fi
7329
 
 
7330
 
 
7331
 
fi
7332
 
if test -z "$ac_cv_prog_OTOOL"; then
7333
 
  ac_ct_OTOOL=$OTOOL
7334
 
  # Extract the first word of "otool", so it can be a program name with args.
7335
 
set dummy otool; ac_word=$2
7336
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337
 
$as_echo_n "checking for $ac_word... " >&6; }
7338
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7339
 
  $as_echo_n "(cached) " >&6
7340
 
else
7341
 
  if test -n "$ac_ct_OTOOL"; then
7342
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7343
 
else
7344
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345
 
for as_dir in $PATH
7346
 
do
7347
 
  IFS=$as_save_IFS
7348
 
  test -z "$as_dir" && as_dir=.
7349
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7350
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351
 
    ac_cv_prog_ac_ct_OTOOL="otool"
7352
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353
 
    break 2
7354
 
  fi
7355
 
done
7356
 
  done
7357
 
IFS=$as_save_IFS
7358
 
 
7359
 
fi
7360
 
fi
7361
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7362
 
if test -n "$ac_ct_OTOOL"; then
7363
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7364
 
$as_echo "$ac_ct_OTOOL" >&6; }
7365
 
else
7366
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367
 
$as_echo "no" >&6; }
7368
 
fi
7369
 
 
7370
 
  if test "x$ac_ct_OTOOL" = x; then
7371
 
    OTOOL=":"
7372
 
  else
7373
 
    case $cross_compiling:$ac_tool_warned in
7374
 
yes:)
7375
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377
 
ac_tool_warned=yes ;;
7378
 
esac
7379
 
    OTOOL=$ac_ct_OTOOL
7380
 
  fi
7381
 
else
7382
 
  OTOOL="$ac_cv_prog_OTOOL"
7383
 
fi
7384
 
 
7385
 
    if test -n "$ac_tool_prefix"; then
7386
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7387
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7388
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389
 
$as_echo_n "checking for $ac_word... " >&6; }
7390
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7391
 
  $as_echo_n "(cached) " >&6
7392
 
else
7393
 
  if test -n "$OTOOL64"; then
7394
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7395
 
else
7396
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397
 
for as_dir in $PATH
7398
 
do
7399
 
  IFS=$as_save_IFS
7400
 
  test -z "$as_dir" && as_dir=.
7401
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7402
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7404
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405
 
    break 2
7406
 
  fi
7407
 
done
7408
 
  done
7409
 
IFS=$as_save_IFS
7410
 
 
7411
 
fi
7412
 
fi
7413
 
OTOOL64=$ac_cv_prog_OTOOL64
7414
 
if test -n "$OTOOL64"; then
7415
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7416
 
$as_echo "$OTOOL64" >&6; }
7417
 
else
7418
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419
 
$as_echo "no" >&6; }
7420
 
fi
7421
 
 
7422
 
 
7423
 
fi
7424
 
if test -z "$ac_cv_prog_OTOOL64"; then
7425
 
  ac_ct_OTOOL64=$OTOOL64
7426
 
  # Extract the first word of "otool64", so it can be a program name with args.
7427
 
set dummy otool64; ac_word=$2
7428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429
 
$as_echo_n "checking for $ac_word... " >&6; }
7430
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7431
 
  $as_echo_n "(cached) " >&6
7432
 
else
7433
 
  if test -n "$ac_ct_OTOOL64"; then
7434
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7435
 
else
7436
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437
 
for as_dir in $PATH
7438
 
do
7439
 
  IFS=$as_save_IFS
7440
 
  test -z "$as_dir" && as_dir=.
7441
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7442
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7444
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445
 
    break 2
7446
 
  fi
7447
 
done
7448
 
  done
7449
 
IFS=$as_save_IFS
7450
 
 
7451
 
fi
7452
 
fi
7453
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7454
 
if test -n "$ac_ct_OTOOL64"; then
7455
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7456
 
$as_echo "$ac_ct_OTOOL64" >&6; }
7457
 
else
7458
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459
 
$as_echo "no" >&6; }
7460
 
fi
7461
 
 
7462
 
  if test "x$ac_ct_OTOOL64" = x; then
7463
 
    OTOOL64=":"
7464
 
  else
7465
 
    case $cross_compiling:$ac_tool_warned in
7466
 
yes:)
7467
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469
 
ac_tool_warned=yes ;;
7470
 
esac
7471
 
    OTOOL64=$ac_ct_OTOOL64
7472
 
  fi
7473
 
else
7474
 
  OTOOL64="$ac_cv_prog_OTOOL64"
7475
 
fi
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7504
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
7505
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7506
 
  $as_echo_n "(cached) " >&6
7507
 
else
7508
 
  lt_cv_apple_cc_single_mod=no
7509
 
      if test -z "${LT_MULTI_MODULE}"; then
7510
 
        # By default we will add the -single_module flag. You can override
7511
 
        # by either setting the environment variable LT_MULTI_MODULE
7512
 
        # non-empty at configure time, or by adding -multi_module to the
7513
 
        # link flags.
7514
 
        rm -rf libconftest.dylib*
7515
 
        echo "int foo(void){return 1;}" > conftest.c
7516
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7517
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7518
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7520
 
        _lt_result=$?
7521
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7522
 
          lt_cv_apple_cc_single_mod=yes
7523
 
        else
7524
 
          cat conftest.err >&5
7525
 
        fi
7526
 
        rm -rf libconftest.dylib*
7527
 
        rm -f conftest.*
7528
 
      fi
7529
 
fi
7530
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7531
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7532
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7533
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7534
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7535
 
  $as_echo_n "(cached) " >&6
7536
 
else
7537
 
  lt_cv_ld_exported_symbols_list=no
7538
 
      save_LDFLAGS=$LDFLAGS
7539
 
      echo "_main" > conftest.sym
7540
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7541
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542
 
/* end confdefs.h.  */
7543
 
 
7544
 
int
7545
 
main ()
7546
 
{
7547
 
 
7548
 
  ;
7549
 
  return 0;
7550
 
}
7551
 
_ACEOF
7552
 
if ac_fn_c_try_link "$LINENO"; then :
7553
 
  lt_cv_ld_exported_symbols_list=yes
7554
 
else
7555
 
  lt_cv_ld_exported_symbols_list=no
7556
 
fi
7557
 
rm -f core conftest.err conftest.$ac_objext \
7558
 
    conftest$ac_exeext conftest.$ac_ext
7559
 
        LDFLAGS="$save_LDFLAGS"
7560
 
 
7561
 
fi
7562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7564
 
    case $host_os in
7565
 
    rhapsody* | darwin1.[012])
7566
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7567
 
    darwin1.*)
7568
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7569
 
    darwin*) # darwin 5.x on
7570
 
      # if running on 10.5 or later, the deployment target defaults
7571
 
      # to the OS version, if on x86, and 10.4, the deployment
7572
 
      # target defaults to 10.4. Don't you love it?
7573
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7574
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7575
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576
 
        10.[012]*)
7577
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578
 
        10.*)
7579
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580
 
      esac
7581
 
    ;;
7582
 
  esac
7583
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7584
 
      _lt_dar_single_mod='$single_module'
7585
 
    fi
7586
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7587
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7588
 
    else
7589
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7590
 
    fi
7591
 
    if test "$DSYMUTIL" != ":"; then
7592
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7593
 
    else
7594
 
      _lt_dsymutil=
7595
 
    fi
7596
 
    ;;
7597
 
  esac
7598
 
 
7599
 
for ac_header in dlfcn.h
7600
 
do :
7601
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7602
 
"
7603
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7604
 
  cat >>confdefs.h <<_ACEOF
7605
 
#define HAVE_DLFCN_H 1
7606
 
_ACEOF
7607
 
 
7608
 
fi
7609
 
 
7610
 
done
7611
 
 
7612
 
 
7613
 
 
7614
 
ac_ext=cpp
7615
 
ac_cpp='$CXXCPP $CPPFLAGS'
7616
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7619
 
if test -z "$CXX"; then
7620
 
  if test -n "$CCC"; then
7621
 
    CXX=$CCC
7622
 
  else
7623
 
    if test -n "$ac_tool_prefix"; then
7624
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7625
 
  do
7626
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7627
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7628
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629
 
$as_echo_n "checking for $ac_word... " >&6; }
7630
 
if test "${ac_cv_prog_CXX+set}" = set; then :
7631
 
  $as_echo_n "(cached) " >&6
7632
 
else
7633
 
  if test -n "$CXX"; then
7634
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7635
 
else
7636
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637
 
for as_dir in $PATH
7638
 
do
7639
 
  IFS=$as_save_IFS
7640
 
  test -z "$as_dir" && as_dir=.
7641
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7642
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7644
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645
 
    break 2
7646
 
  fi
7647
 
done
7648
 
  done
7649
 
IFS=$as_save_IFS
7650
 
 
7651
 
fi
7652
 
fi
7653
 
CXX=$ac_cv_prog_CXX
7654
 
if test -n "$CXX"; then
7655
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7656
 
$as_echo "$CXX" >&6; }
7657
 
else
7658
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659
 
$as_echo "no" >&6; }
7660
 
fi
7661
 
 
7662
 
 
7663
 
    test -n "$CXX" && break
7664
 
  done
7665
 
fi
7666
 
if test -z "$CXX"; then
7667
 
  ac_ct_CXX=$CXX
7668
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7669
 
do
7670
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7671
 
set dummy $ac_prog; ac_word=$2
7672
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673
 
$as_echo_n "checking for $ac_word... " >&6; }
7674
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7675
 
  $as_echo_n "(cached) " >&6
7676
 
else
7677
 
  if test -n "$ac_ct_CXX"; then
7678
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7679
 
else
7680
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681
 
for as_dir in $PATH
7682
 
do
7683
 
  IFS=$as_save_IFS
7684
 
  test -z "$as_dir" && as_dir=.
7685
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7686
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7688
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689
 
    break 2
7690
 
  fi
7691
 
done
7692
 
  done
7693
 
IFS=$as_save_IFS
7694
 
 
7695
 
fi
7696
 
fi
7697
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7698
 
if test -n "$ac_ct_CXX"; then
7699
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7700
 
$as_echo "$ac_ct_CXX" >&6; }
7701
 
else
7702
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703
 
$as_echo "no" >&6; }
7704
 
fi
7705
 
 
7706
 
 
7707
 
  test -n "$ac_ct_CXX" && break
7708
 
done
7709
 
 
7710
 
  if test "x$ac_ct_CXX" = x; then
7711
 
    CXX="g++"
7712
 
  else
7713
 
    case $cross_compiling:$ac_tool_warned in
7714
 
yes:)
7715
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717
 
ac_tool_warned=yes ;;
7718
 
esac
7719
 
    CXX=$ac_ct_CXX
7720
 
  fi
7721
 
fi
7722
 
 
7723
 
  fi
7724
 
fi
7725
 
# Provide some information about the compiler.
7726
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7727
 
set X $ac_compile
7728
 
ac_compiler=$2
7729
 
for ac_option in --version -v -V -qversion; do
7730
 
  { { ac_try="$ac_compiler $ac_option >&5"
7731
 
case "(($ac_try" in
7732
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733
 
  *) ac_try_echo=$ac_try;;
7734
 
esac
7735
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7736
 
$as_echo "$ac_try_echo"; } >&5
7737
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7738
 
  ac_status=$?
7739
 
  if test -s conftest.err; then
7740
 
    sed '10a\
7741
 
... rest of stderr output deleted ...
7742
 
         10q' conftest.err >conftest.er1
7743
 
    cat conftest.er1 >&5
7744
 
  fi
7745
 
  rm -f conftest.er1 conftest.err
7746
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747
 
  test $ac_status = 0; }
7748
 
done
7749
 
 
7750
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7751
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7752
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7753
 
  $as_echo_n "(cached) " >&6
7754
 
else
7755
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756
 
/* end confdefs.h.  */
7757
 
 
7758
 
int
7759
 
main ()
7760
 
{
7761
 
#ifndef __GNUC__
7762
 
       choke me
7763
 
#endif
7764
 
 
7765
 
  ;
7766
 
  return 0;
7767
 
}
7768
 
_ACEOF
7769
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7770
 
  ac_compiler_gnu=yes
7771
 
else
7772
 
  ac_compiler_gnu=no
7773
 
fi
7774
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7776
 
 
7777
 
fi
7778
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7779
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7780
 
if test $ac_compiler_gnu = yes; then
7781
 
  GXX=yes
7782
 
else
7783
 
  GXX=
7784
 
fi
7785
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
7786
 
ac_save_CXXFLAGS=$CXXFLAGS
7787
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7788
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7789
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7790
 
  $as_echo_n "(cached) " >&6
7791
 
else
7792
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7793
 
   ac_cxx_werror_flag=yes
7794
 
   ac_cv_prog_cxx_g=no
7795
 
   CXXFLAGS="-g"
7796
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797
 
/* end confdefs.h.  */
7798
 
 
7799
 
int
7800
 
main ()
7801
 
{
7802
 
 
7803
 
  ;
7804
 
  return 0;
7805
 
}
7806
 
_ACEOF
7807
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7808
 
  ac_cv_prog_cxx_g=yes
7809
 
else
7810
 
  CXXFLAGS=""
7811
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812
 
/* end confdefs.h.  */
7813
 
 
7814
 
int
7815
 
main ()
7816
 
{
7817
 
 
7818
 
  ;
7819
 
  return 0;
7820
 
}
7821
 
_ACEOF
7822
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7823
 
 
7824
 
else
7825
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7826
 
         CXXFLAGS="-g"
7827
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828
 
/* end confdefs.h.  */
7829
 
 
7830
 
int
7831
 
main ()
7832
 
{
7833
 
 
7834
 
  ;
7835
 
  return 0;
7836
 
}
7837
 
_ACEOF
7838
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7839
 
  ac_cv_prog_cxx_g=yes
7840
 
fi
7841
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842
 
fi
7843
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844
 
fi
7845
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7847
 
fi
7848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7849
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7850
 
if test "$ac_test_CXXFLAGS" = set; then
7851
 
  CXXFLAGS=$ac_save_CXXFLAGS
7852
 
elif test $ac_cv_prog_cxx_g = yes; then
7853
 
  if test "$GXX" = yes; then
7854
 
    CXXFLAGS="-g -O2"
7855
 
  else
7856
 
    CXXFLAGS="-g"
7857
 
  fi
7858
 
else
7859
 
  if test "$GXX" = yes; then
7860
 
    CXXFLAGS="-O2"
7861
 
  else
7862
 
    CXXFLAGS=
7863
 
  fi
7864
 
fi
7865
 
ac_ext=c
7866
 
ac_cpp='$CPP $CPPFLAGS'
7867
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
 
 
7871
 
depcc="$CXX"  am_compiler_list=
7872
 
 
7873
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7874
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
7875
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7876
 
  $as_echo_n "(cached) " >&6
7877
 
else
7878
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7879
 
  # We make a subdir and do the tests there.  Otherwise we can end up
7880
 
  # making bogus files that we don't know about and never remove.  For
7881
 
  # instance it was reported that on HP-UX the gcc test will end up
7882
 
  # making a dummy file named `D' -- because `-MD' means `put the output
7883
 
  # in D'.
7884
 
  mkdir conftest.dir
7885
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
7886
 
  # using a relative directory.
7887
 
  cp "$am_depcomp" conftest.dir
7888
 
  cd conftest.dir
7889
 
  # We will build objects and dependencies in a subdirectory because
7890
 
  # it helps to detect inapplicable dependency modes.  For instance
7891
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
7892
 
  # side effect of compilation, but ICC will put the dependencies in
7893
 
  # the current directory while Tru64 will put them in the object
7894
 
  # directory.
7895
 
  mkdir sub
7896
 
 
7897
 
  am_cv_CXX_dependencies_compiler_type=none
7898
 
  if test "$am_compiler_list" = ""; then
7899
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7900
 
  fi
7901
 
  am__universal=false
7902
 
  case " $depcc " in #(
7903
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7904
 
     esac
7905
 
 
7906
 
  for depmode in $am_compiler_list; do
7907
 
    # Setup a source with many dependencies, because some compilers
7908
 
    # like to wrap large dependency lists on column 80 (with \), and
7909
 
    # we should not choose a depcomp mode which is confused by this.
7910
 
    #
7911
 
    # We need to recreate these files for each test, as the compiler may
7912
 
    # overwrite some of them when testing with obscure command lines.
7913
 
    # This happens at least with the AIX C compiler.
7914
 
    : > sub/conftest.c
7915
 
    for i in 1 2 3 4 5 6; do
7916
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7917
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7918
 
      # Solaris 8's {/usr,}/bin/sh.
7919
 
      touch sub/conftst$i.h
7920
 
    done
7921
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7922
 
 
7923
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7924
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7925
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
7926
 
    # versions had trouble with output in subdirs
7927
 
    am__obj=sub/conftest.${OBJEXT-o}
7928
 
    am__minus_obj="-o $am__obj"
7929
 
    case $depmode in
7930
 
    gcc)
7931
 
      # This depmode causes a compiler race in universal mode.
7932
 
      test "$am__universal" = false || continue
7933
 
      ;;
7934
 
    nosideeffect)
7935
 
      # after this tag, mechanisms are not by side-effect, so they'll
7936
 
      # only be used when explicitly requested
7937
 
      if test "x$enable_dependency_tracking" = xyes; then
7938
 
        continue
7939
 
      else
7940
 
        break
7941
 
      fi
7942
 
      ;;
7943
 
    msvisualcpp | msvcmsys)
7944
 
      # This compiler won't grok `-c -o', but also, the minuso test has
7945
 
      # not run yet.  These depmodes are late enough in the game, and
7946
 
      # so weak that their functioning should not be impacted.
7947
 
      am__obj=conftest.${OBJEXT-o}
7948
 
      am__minus_obj=
7949
 
      ;;
7950
 
    none) break ;;
7951
 
    esac
7952
 
    if depmode=$depmode \
7953
 
       source=sub/conftest.c object=$am__obj \
7954
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7955
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7956
 
         >/dev/null 2>conftest.err &&
7957
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7958
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7959
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7960
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7961
 
      # icc doesn't choke on unknown options, it will just issue warnings
7962
 
      # or remarks (even with -Werror).  So we grep stderr for any message
7963
 
      # that says an option was ignored or not supported.
7964
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
7965
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
7966
 
      # The diagnosis changed in icc 8.0:
7967
 
      #   icc: Command line remark: option '-MP' not supported
7968
 
      if (grep 'ignoring option' conftest.err ||
7969
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7970
 
        am_cv_CXX_dependencies_compiler_type=$depmode
7971
 
        break
7972
 
      fi
7973
 
    fi
7974
 
  done
7975
 
 
7976
 
  cd ..
7977
 
  rm -rf conftest.dir
7978
 
else
7979
 
  am_cv_CXX_dependencies_compiler_type=none
7980
 
fi
7981
 
 
7982
 
fi
7983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7984
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7985
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7986
 
 
7987
 
 if
7988
 
  test "x$enable_dependency_tracking" != xno \
7989
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7990
 
  am__fastdepCXX_TRUE=
7991
 
  am__fastdepCXX_FALSE='#'
7992
 
else
7993
 
  am__fastdepCXX_TRUE='#'
7994
 
  am__fastdepCXX_FALSE=
7995
 
fi
7996
 
 
7997
 
 
7998
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7999
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8000
 
    (test "X$CXX" != "Xg++"))) ; then
8001
 
  ac_ext=cpp
8002
 
ac_cpp='$CXXCPP $CPPFLAGS'
8003
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8006
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8007
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8008
 
if test -z "$CXXCPP"; then
8009
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8010
 
  $as_echo_n "(cached) " >&6
8011
 
else
8012
 
      # Double quotes because CXXCPP needs to be expanded
8013
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
8014
 
    do
8015
 
      ac_preproc_ok=false
8016
 
for ac_cxx_preproc_warn_flag in '' yes
8017
 
do
8018
 
  # Use a header file that comes with gcc, so configuring glibc
8019
 
  # with a fresh cross-compiler works.
8020
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8021
 
  # <limits.h> exists even on freestanding compilers.
8022
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
8023
 
  # not just through cpp. "Syntax error" is here to catch this case.
8024
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025
 
/* end confdefs.h.  */
8026
 
#ifdef __STDC__
8027
 
# include <limits.h>
8028
 
#else
8029
 
# include <assert.h>
8030
 
#endif
8031
 
                     Syntax error
8032
 
_ACEOF
8033
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8034
 
 
8035
 
else
8036
 
  # Broken: fails on valid input.
8037
 
continue
8038
 
fi
8039
 
rm -f conftest.err conftest.i conftest.$ac_ext
8040
 
 
8041
 
  # OK, works on sane cases.  Now check whether nonexistent headers
8042
 
  # can be detected and how.
8043
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044
 
/* end confdefs.h.  */
8045
 
#include <ac_nonexistent.h>
8046
 
_ACEOF
8047
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8048
 
  # Broken: success on invalid input.
8049
 
continue
8050
 
else
8051
 
  # Passes both tests.
8052
 
ac_preproc_ok=:
8053
 
break
8054
 
fi
8055
 
rm -f conftest.err conftest.i conftest.$ac_ext
8056
 
 
8057
 
done
8058
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8059
 
rm -f conftest.i conftest.err conftest.$ac_ext
8060
 
if $ac_preproc_ok; then :
8061
 
  break
8062
 
fi
8063
 
 
8064
 
    done
8065
 
    ac_cv_prog_CXXCPP=$CXXCPP
8066
 
 
8067
 
fi
8068
 
  CXXCPP=$ac_cv_prog_CXXCPP
8069
 
else
8070
 
  ac_cv_prog_CXXCPP=$CXXCPP
8071
 
fi
8072
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8073
 
$as_echo "$CXXCPP" >&6; }
8074
 
ac_preproc_ok=false
8075
 
for ac_cxx_preproc_warn_flag in '' yes
8076
 
do
8077
 
  # Use a header file that comes with gcc, so configuring glibc
8078
 
  # with a fresh cross-compiler works.
8079
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080
 
  # <limits.h> exists even on freestanding compilers.
8081
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
8082
 
  # not just through cpp. "Syntax error" is here to catch this case.
8083
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084
 
/* end confdefs.h.  */
8085
 
#ifdef __STDC__
8086
 
# include <limits.h>
8087
 
#else
8088
 
# include <assert.h>
8089
 
#endif
8090
 
                     Syntax error
8091
 
_ACEOF
8092
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8093
 
 
8094
 
else
8095
 
  # Broken: fails on valid input.
8096
 
continue
8097
 
fi
8098
 
rm -f conftest.err conftest.i conftest.$ac_ext
8099
 
 
8100
 
  # OK, works on sane cases.  Now check whether nonexistent headers
8101
 
  # can be detected and how.
8102
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103
 
/* end confdefs.h.  */
8104
 
#include <ac_nonexistent.h>
8105
 
_ACEOF
8106
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8107
 
  # Broken: success on invalid input.
8108
 
continue
8109
 
else
8110
 
  # Passes both tests.
8111
 
ac_preproc_ok=:
8112
 
break
8113
 
fi
8114
 
rm -f conftest.err conftest.i conftest.$ac_ext
8115
 
 
8116
 
done
8117
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8118
 
rm -f conftest.i conftest.err conftest.$ac_ext
8119
 
if $ac_preproc_ok; then :
8120
 
 
8121
 
else
8122
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8123
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8124
 
_lt_caught_CXX_error=yes; }
8125
 
fi
8126
 
 
8127
 
ac_ext=c
8128
 
ac_cpp='$CPP $CPPFLAGS'
8129
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132
 
 
8133
 
else
8134
 
  _lt_caught_CXX_error=yes
8135
 
fi
8136
 
 
8137
 
 
8138
 
 
8139
 
 
8140
 
 
8141
 
# Set options
8142
 
# Check whether --enable-static was given.
8143
 
if test "${enable_static+set}" = set; then :
8144
 
  enableval=$enable_static; p=${PACKAGE-default}
8145
 
    case $enableval in
8146
 
    yes) enable_static=yes ;;
8147
 
    no) enable_static=no ;;
8148
 
    *)
8149
 
     enable_static=no
8150
 
      # Look at the argument we got.  We use all the common list separators.
8151
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152
 
      for pkg in $enableval; do
8153
 
        IFS="$lt_save_ifs"
8154
 
        if test "X$pkg" = "X$p"; then
8155
 
          enable_static=yes
8156
 
        fi
8157
 
      done
8158
 
      IFS="$lt_save_ifs"
8159
 
      ;;
8160
 
    esac
8161
 
else
8162
 
  enable_static=no
8163
 
fi
8164
 
 
8165
 
 
8166
 
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
        enable_dlopen=no
8175
 
 
8176
 
 
8177
 
  enable_win32_dll=no
8178
 
 
8179
 
 
8180
 
            # Check whether --enable-shared was given.
8181
 
if test "${enable_shared+set}" = set; then :
8182
 
  enableval=$enable_shared; p=${PACKAGE-default}
8183
 
    case $enableval in
8184
 
    yes) enable_shared=yes ;;
8185
 
    no) enable_shared=no ;;
8186
 
    *)
8187
 
      enable_shared=no
8188
 
      # Look at the argument we got.  We use all the common list separators.
8189
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8190
 
      for pkg in $enableval; do
8191
 
        IFS="$lt_save_ifs"
8192
 
        if test "X$pkg" = "X$p"; then
8193
 
          enable_shared=yes
8194
 
        fi
8195
 
      done
8196
 
      IFS="$lt_save_ifs"
8197
 
      ;;
8198
 
    esac
8199
 
else
8200
 
  enable_shared=yes
8201
 
fi
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
# Check whether --with-pic was given.
8214
 
if test "${with_pic+set}" = set; then :
8215
 
  withval=$with_pic; pic_mode="$withval"
8216
 
else
8217
 
  pic_mode=default
8218
 
fi
8219
 
 
8220
 
 
8221
 
test -z "$pic_mode" && pic_mode=default
8222
 
 
8223
 
 
8224
 
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
  # Check whether --enable-fast-install was given.
8230
 
if test "${enable_fast_install+set}" = set; then :
8231
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
8232
 
    case $enableval in
8233
 
    yes) enable_fast_install=yes ;;
8234
 
    no) enable_fast_install=no ;;
8235
 
    *)
8236
 
      enable_fast_install=no
8237
 
      # Look at the argument we got.  We use all the common list separators.
8238
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8239
 
      for pkg in $enableval; do
8240
 
        IFS="$lt_save_ifs"
8241
 
        if test "X$pkg" = "X$p"; then
8242
 
          enable_fast_install=yes
8243
 
        fi
8244
 
      done
8245
 
      IFS="$lt_save_ifs"
8246
 
      ;;
8247
 
    esac
8248
 
else
8249
 
  enable_fast_install=yes
8250
 
fi
8251
 
 
8252
 
 
8253
 
 
8254
 
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
 
 
8260
 
 
8261
 
 
8262
 
# This can be used to rebuild libtool when needed
8263
 
LIBTOOL_DEPS="$ltmain"
8264
 
 
8265
 
# Always use our own libtool.
8266
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8267
 
 
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
 
 
8274
 
 
8275
 
 
8276
 
 
8277
 
 
8278
 
 
8279
 
 
8280
 
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
 
 
8291
 
 
8292
 
test -z "$LN_S" && LN_S="ln -s"
8293
 
 
8294
 
 
8295
 
 
8296
 
 
8297
 
 
8298
 
 
8299
 
 
8300
 
 
8301
 
 
8302
 
 
8303
 
 
8304
 
 
8305
 
 
8306
 
 
8307
 
if test -n "${ZSH_VERSION+set}" ; then
8308
 
   setopt NO_GLOB_SUBST
8309
 
fi
8310
 
 
8311
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8312
 
$as_echo_n "checking for objdir... " >&6; }
8313
 
if test "${lt_cv_objdir+set}" = set; then :
8314
 
  $as_echo_n "(cached) " >&6
8315
 
else
8316
 
  rm -f .libs 2>/dev/null
8317
 
mkdir .libs 2>/dev/null
8318
 
if test -d .libs; then
8319
 
  lt_cv_objdir=.libs
8320
 
else
8321
 
  # MS-DOS does not allow filenames that begin with a dot.
8322
 
  lt_cv_objdir=_libs
8323
 
fi
8324
 
rmdir .libs 2>/dev/null
8325
 
fi
8326
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8327
 
$as_echo "$lt_cv_objdir" >&6; }
8328
 
objdir=$lt_cv_objdir
8329
 
 
8330
 
 
8331
 
 
8332
 
 
8333
 
 
8334
 
cat >>confdefs.h <<_ACEOF
8335
 
#define LT_OBJDIR "$lt_cv_objdir/"
8336
 
_ACEOF
8337
 
 
8338
 
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
 
 
8349
 
 
8350
 
 
8351
 
 
8352
 
 
8353
 
 
8354
 
case $host_os in
8355
 
aix3*)
8356
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8357
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8358
 
  # vanish in a puff of smoke.
8359
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8360
 
    COLLECT_NAMES=
8361
 
    export COLLECT_NAMES
8362
 
  fi
8363
 
  ;;
8364
 
esac
8365
 
 
8366
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8367
 
# metacharacters that are still active within double-quoted strings.
8368
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8369
 
 
8370
 
# Same as above, but do not quote variable references.
8371
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8372
 
 
8373
 
# Sed substitution to delay expansion of an escaped shell variable in a
8374
 
# double_quote_subst'ed string.
8375
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8376
 
 
8377
 
# Sed substitution to delay expansion of an escaped single quote.
8378
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8379
 
 
8380
 
# Sed substitution to avoid accidental globbing in evaled expressions
8381
 
no_glob_subst='s/\*/\\\*/g'
8382
 
 
8383
 
# Global variables:
8384
 
ofile=libtool
8385
 
can_build_shared=yes
8386
 
 
8387
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8388
 
# which needs '.lib').
8389
 
libext=a
8390
 
 
8391
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8392
 
 
8393
 
old_CC="$CC"
8394
 
old_CFLAGS="$CFLAGS"
8395
 
 
8396
 
# Set sane defaults for various variables
8397
 
test -z "$CC" && CC=cc
8398
 
test -z "$LTCC" && LTCC=$CC
8399
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8400
 
test -z "$LD" && LD=ld
8401
 
test -z "$ac_objext" && ac_objext=o
8402
 
 
8403
 
for cc_temp in $compiler""; do
8404
 
  case $cc_temp in
8405
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8406
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8407
 
    \-*) ;;
8408
 
    *) break;;
8409
 
  esac
8410
 
done
8411
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8412
 
 
8413
 
 
8414
 
# Only perform the check for file, if the check method requires it
8415
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8416
 
case $deplibs_check_method in
8417
 
file_magic*)
8418
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8419
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8420
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8421
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8422
 
  $as_echo_n "(cached) " >&6
8423
 
else
8424
 
  case $MAGIC_CMD in
8425
 
[\\/*] |  ?:[\\/]*)
8426
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8427
 
  ;;
8428
 
*)
8429
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8430
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432
 
  for ac_dir in $ac_dummy; do
8433
 
    IFS="$lt_save_ifs"
8434
 
    test -z "$ac_dir" && ac_dir=.
8435
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8436
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8437
 
      if test -n "$file_magic_test_file"; then
8438
 
        case $deplibs_check_method in
8439
 
        "file_magic "*)
8440
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443
 
            $EGREP "$file_magic_regex" > /dev/null; then
8444
 
            :
8445
 
          else
8446
 
            cat <<_LT_EOF 1>&2
8447
 
 
8448
 
*** Warning: the command libtool uses to detect shared libraries,
8449
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8450
 
*** The result is that libtool may fail to recognize shared libraries
8451
 
*** as such.  This will affect the creation of libtool libraries that
8452
 
*** depend on shared libraries, but programs linked with such libtool
8453
 
*** libraries will work regardless of this problem.  Nevertheless, you
8454
 
*** may want to report the problem to your system manager and/or to
8455
 
*** bug-libtool@gnu.org
8456
 
 
8457
 
_LT_EOF
8458
 
          fi ;;
8459
 
        esac
8460
 
      fi
8461
 
      break
8462
 
    fi
8463
 
  done
8464
 
  IFS="$lt_save_ifs"
8465
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8466
 
  ;;
8467
 
esac
8468
 
fi
8469
 
 
8470
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471
 
if test -n "$MAGIC_CMD"; then
8472
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473
 
$as_echo "$MAGIC_CMD" >&6; }
8474
 
else
8475
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476
 
$as_echo "no" >&6; }
8477
 
fi
8478
 
 
8479
 
 
8480
 
 
8481
 
 
8482
 
 
8483
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8484
 
  if test -n "$ac_tool_prefix"; then
8485
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8486
 
$as_echo_n "checking for file... " >&6; }
8487
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8488
 
  $as_echo_n "(cached) " >&6
8489
 
else
8490
 
  case $MAGIC_CMD in
8491
 
[\\/*] |  ?:[\\/]*)
8492
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8493
 
  ;;
8494
 
*)
8495
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8496
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8497
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8498
 
  for ac_dir in $ac_dummy; do
8499
 
    IFS="$lt_save_ifs"
8500
 
    test -z "$ac_dir" && ac_dir=.
8501
 
    if test -f $ac_dir/file; then
8502
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8503
 
      if test -n "$file_magic_test_file"; then
8504
 
        case $deplibs_check_method in
8505
 
        "file_magic "*)
8506
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8507
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8508
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8509
 
            $EGREP "$file_magic_regex" > /dev/null; then
8510
 
            :
8511
 
          else
8512
 
            cat <<_LT_EOF 1>&2
8513
 
 
8514
 
*** Warning: the command libtool uses to detect shared libraries,
8515
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8516
 
*** The result is that libtool may fail to recognize shared libraries
8517
 
*** as such.  This will affect the creation of libtool libraries that
8518
 
*** depend on shared libraries, but programs linked with such libtool
8519
 
*** libraries will work regardless of this problem.  Nevertheless, you
8520
 
*** may want to report the problem to your system manager and/or to
8521
 
*** bug-libtool@gnu.org
8522
 
 
8523
 
_LT_EOF
8524
 
          fi ;;
8525
 
        esac
8526
 
      fi
8527
 
      break
8528
 
    fi
8529
 
  done
8530
 
  IFS="$lt_save_ifs"
8531
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8532
 
  ;;
8533
 
esac
8534
 
fi
8535
 
 
8536
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537
 
if test -n "$MAGIC_CMD"; then
8538
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8539
 
$as_echo "$MAGIC_CMD" >&6; }
8540
 
else
8541
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542
 
$as_echo "no" >&6; }
8543
 
fi
8544
 
 
8545
 
 
8546
 
  else
8547
 
    MAGIC_CMD=:
8548
 
  fi
8549
 
fi
8550
 
 
8551
 
  fi
8552
 
  ;;
8553
 
esac
8554
 
 
8555
 
# Use C for the default configuration in the libtool script
8556
 
 
8557
 
lt_save_CC="$CC"
8558
 
ac_ext=c
8559
 
ac_cpp='$CPP $CPPFLAGS'
8560
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563
 
 
8564
 
 
8565
 
# Source file extension for C test sources.
8566
 
ac_ext=c
8567
 
 
8568
 
# Object file extension for compiled C test sources.
8569
 
objext=o
8570
 
objext=$objext
8571
 
 
8572
 
# Code to be used in simple compile tests
8573
 
lt_simple_compile_test_code="int some_variable = 0;"
8574
 
 
8575
 
# Code to be used in simple link tests
8576
 
lt_simple_link_test_code='int main(){return(0);}'
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
 
 
8583
 
 
8584
 
# If no C compiler was specified, use CC.
8585
 
LTCC=${LTCC-"$CC"}
8586
 
 
8587
 
# If no C compiler flags were specified, use CFLAGS.
8588
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8589
 
 
8590
 
# Allow CC to be a program name with arguments.
8591
 
compiler=$CC
8592
 
 
8593
 
# Save the default compiler, since it gets overwritten when the other
8594
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8595
 
compiler_DEFAULT=$CC
8596
 
 
8597
 
# save warnings/boilerplate of simple test code
8598
 
ac_outfile=conftest.$ac_objext
8599
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8600
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8601
 
_lt_compiler_boilerplate=`cat conftest.err`
8602
 
$RM conftest*
8603
 
 
8604
 
ac_outfile=conftest.$ac_objext
8605
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8606
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8607
 
_lt_linker_boilerplate=`cat conftest.err`
8608
 
$RM -r conftest*
8609
 
 
8610
 
 
8611
 
## CAVEAT EMPTOR:
8612
 
## There is no encapsulation within the following macros, do not change
8613
 
## the running order or otherwise move them around unless you know exactly
8614
 
## what you are doing...
8615
 
if test -n "$compiler"; then
8616
 
 
8617
 
lt_prog_compiler_no_builtin_flag=
8618
 
 
8619
 
if test "$GCC" = yes; then
8620
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8621
 
 
8622
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8625
 
  $as_echo_n "(cached) " >&6
8626
 
else
8627
 
  lt_cv_prog_compiler_rtti_exceptions=no
8628
 
   ac_outfile=conftest.$ac_objext
8629
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8631
 
   # Insert the option either (1) after the last *FLAGS variable, or
8632
 
   # (2) before a word containing "conftest.", or (3) at the end.
8633
 
   # Note that $ac_compile itself does not contain backslashes and begins
8634
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8635
 
   # The option is referenced via a variable to avoid confusing sed.
8636
 
   lt_compile=`echo "$ac_compile" | $SED \
8637
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639
 
   -e 's:$: $lt_compiler_flag:'`
8640
 
   (eval echo "\"\$as_me:8640: $lt_compile\"" >&5)
8641
 
   (eval "$lt_compile" 2>conftest.err)
8642
 
   ac_status=$?
8643
 
   cat conftest.err >&5
8644
 
   echo "$as_me:8644: \$? = $ac_status" >&5
8645
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8646
 
     # The compiler can only warn and ignore the option if not recognized
8647
 
     # So say no if there are warnings other than the usual output.
8648
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8649
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651
 
       lt_cv_prog_compiler_rtti_exceptions=yes
8652
 
     fi
8653
 
   fi
8654
 
   $RM conftest*
8655
 
 
8656
 
fi
8657
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8659
 
 
8660
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662
 
else
8663
 
    :
8664
 
fi
8665
 
 
8666
 
fi
8667
 
 
8668
 
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
 
  lt_prog_compiler_wl=
8674
 
lt_prog_compiler_pic=
8675
 
lt_prog_compiler_static=
8676
 
 
8677
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8679
 
 
8680
 
  if test "$GCC" = yes; then
8681
 
    lt_prog_compiler_wl='-Wl,'
8682
 
    lt_prog_compiler_static='-static'
8683
 
 
8684
 
    case $host_os in
8685
 
      aix*)
8686
 
      # All AIX code is PIC.
8687
 
      if test "$host_cpu" = ia64; then
8688
 
        # AIX 5 now supports IA64 processor
8689
 
        lt_prog_compiler_static='-Bstatic'
8690
 
      fi
8691
 
      ;;
8692
 
 
8693
 
    amigaos*)
8694
 
      case $host_cpu in
8695
 
      powerpc)
8696
 
            # see comment about AmigaOS4 .so support
8697
 
            lt_prog_compiler_pic='-fPIC'
8698
 
        ;;
8699
 
      m68k)
8700
 
            # FIXME: we need at least 68020 code to build shared libraries, but
8701
 
            # adding the `-m68020' flag to GCC prevents building anything better,
8702
 
            # like `-m68040'.
8703
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8704
 
        ;;
8705
 
      esac
8706
 
      ;;
8707
 
 
8708
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8709
 
      # PIC is the default for these OSes.
8710
 
      ;;
8711
 
 
8712
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8713
 
      # This hack is so that the source file can tell whether it is being
8714
 
      # built for inclusion in a dll (and should export symbols for example).
8715
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8716
 
      # (--disable-auto-import) libraries
8717
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8718
 
      ;;
8719
 
 
8720
 
    darwin* | rhapsody*)
8721
 
      # PIC is the default on this platform
8722
 
      # Common symbols not allowed in MH_DYLIB files
8723
 
      lt_prog_compiler_pic='-fno-common'
8724
 
      ;;
8725
 
 
8726
 
    hpux*)
8727
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8728
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8729
 
      # sets the default TLS model and affects inlining.
8730
 
      case $host_cpu in
8731
 
      hppa*64*)
8732
 
        # +Z the default
8733
 
        ;;
8734
 
      *)
8735
 
        lt_prog_compiler_pic='-fPIC'
8736
 
        ;;
8737
 
      esac
8738
 
      ;;
8739
 
 
8740
 
    interix[3-9]*)
8741
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8742
 
      # Instead, we relocate shared libraries at runtime.
8743
 
      ;;
8744
 
 
8745
 
    msdosdjgpp*)
8746
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8747
 
      # on systems that don't support them.
8748
 
      lt_prog_compiler_can_build_shared=no
8749
 
      enable_shared=no
8750
 
      ;;
8751
 
 
8752
 
    *nto* | *qnx*)
8753
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8754
 
      # it will coredump.
8755
 
      lt_prog_compiler_pic='-fPIC -shared'
8756
 
      ;;
8757
 
 
8758
 
    sysv4*MP*)
8759
 
      if test -d /usr/nec; then
8760
 
        lt_prog_compiler_pic=-Kconform_pic
8761
 
      fi
8762
 
      ;;
8763
 
 
8764
 
    *)
8765
 
      lt_prog_compiler_pic='-fPIC'
8766
 
      ;;
8767
 
    esac
8768
 
  else
8769
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8770
 
    case $host_os in
8771
 
    aix*)
8772
 
      lt_prog_compiler_wl='-Wl,'
8773
 
      if test "$host_cpu" = ia64; then
8774
 
        # AIX 5 now supports IA64 processor
8775
 
        lt_prog_compiler_static='-Bstatic'
8776
 
      else
8777
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8778
 
      fi
8779
 
      ;;
8780
 
 
8781
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8782
 
      # This hack is so that the source file can tell whether it is being
8783
 
      # built for inclusion in a dll (and should export symbols for example).
8784
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8785
 
      ;;
8786
 
 
8787
 
    hpux9* | hpux10* | hpux11*)
8788
 
      lt_prog_compiler_wl='-Wl,'
8789
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8790
 
      # not for PA HP-UX.
8791
 
      case $host_cpu in
8792
 
      hppa*64*|ia64*)
8793
 
        # +Z the default
8794
 
        ;;
8795
 
      *)
8796
 
        lt_prog_compiler_pic='+Z'
8797
 
        ;;
8798
 
      esac
8799
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8800
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8801
 
      ;;
8802
 
 
8803
 
    irix5* | irix6* | nonstopux*)
8804
 
      lt_prog_compiler_wl='-Wl,'
8805
 
      # PIC (with -KPIC) is the default.
8806
 
      lt_prog_compiler_static='-non_shared'
8807
 
      ;;
8808
 
 
8809
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8810
 
      case $cc_basename in
8811
 
      # old Intel for x86_64 which still supported -KPIC.
8812
 
      ecc*)
8813
 
        lt_prog_compiler_wl='-Wl,'
8814
 
        lt_prog_compiler_pic='-KPIC'
8815
 
        lt_prog_compiler_static='-static'
8816
 
        ;;
8817
 
      # icc used to be incompatible with GCC.
8818
 
      # ICC 10 doesn't accept -KPIC any more.
8819
 
      icc* | ifort*)
8820
 
        lt_prog_compiler_wl='-Wl,'
8821
 
        lt_prog_compiler_pic='-fPIC'
8822
 
        lt_prog_compiler_static='-static'
8823
 
        ;;
8824
 
      # Lahey Fortran 8.1.
8825
 
      lf95*)
8826
 
        lt_prog_compiler_wl='-Wl,'
8827
 
        lt_prog_compiler_pic='--shared'
8828
 
        lt_prog_compiler_static='--static'
8829
 
        ;;
8830
 
      pgcc* | pgf77* | pgf90* | pgf95*)
8831
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8832
 
        # which looks to be a dead project)
8833
 
        lt_prog_compiler_wl='-Wl,'
8834
 
        lt_prog_compiler_pic='-fpic'
8835
 
        lt_prog_compiler_static='-Bstatic'
8836
 
        ;;
8837
 
      ccc*)
8838
 
        lt_prog_compiler_wl='-Wl,'
8839
 
        # All Alpha code is PIC.
8840
 
        lt_prog_compiler_static='-non_shared'
8841
 
        ;;
8842
 
      xl*)
8843
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
8844
 
        lt_prog_compiler_wl='-Wl,'
8845
 
        lt_prog_compiler_pic='-qpic'
8846
 
        lt_prog_compiler_static='-qstaticlink'
8847
 
        ;;
8848
 
      *)
8849
 
        case `$CC -V 2>&1 | sed 5q` in
8850
 
        *Sun\ C*)
8851
 
          # Sun C 5.9
8852
 
          lt_prog_compiler_pic='-KPIC'
8853
 
          lt_prog_compiler_static='-Bstatic'
8854
 
          lt_prog_compiler_wl='-Wl,'
8855
 
          ;;
8856
 
        *Sun\ F*)
8857
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858
 
          lt_prog_compiler_pic='-KPIC'
8859
 
          lt_prog_compiler_static='-Bstatic'
8860
 
          lt_prog_compiler_wl=''
8861
 
          ;;
8862
 
        esac
8863
 
        ;;
8864
 
      esac
8865
 
      ;;
8866
 
 
8867
 
    newsos6)
8868
 
      lt_prog_compiler_pic='-KPIC'
8869
 
      lt_prog_compiler_static='-Bstatic'
8870
 
      ;;
8871
 
 
8872
 
    *nto* | *qnx*)
8873
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8874
 
      # it will coredump.
8875
 
      lt_prog_compiler_pic='-fPIC -shared'
8876
 
      ;;
8877
 
 
8878
 
    osf3* | osf4* | osf5*)
8879
 
      lt_prog_compiler_wl='-Wl,'
8880
 
      # All OSF/1 code is PIC.
8881
 
      lt_prog_compiler_static='-non_shared'
8882
 
      ;;
8883
 
 
8884
 
    rdos*)
8885
 
      lt_prog_compiler_static='-non_shared'
8886
 
      ;;
8887
 
 
8888
 
    solaris*)
8889
 
      lt_prog_compiler_pic='-KPIC'
8890
 
      lt_prog_compiler_static='-Bstatic'
8891
 
      case $cc_basename in
8892
 
      f77* | f90* | f95*)
8893
 
        lt_prog_compiler_wl='-Qoption ld ';;
8894
 
      *)
8895
 
        lt_prog_compiler_wl='-Wl,';;
8896
 
      esac
8897
 
      ;;
8898
 
 
8899
 
    sunos4*)
8900
 
      lt_prog_compiler_wl='-Qoption ld '
8901
 
      lt_prog_compiler_pic='-PIC'
8902
 
      lt_prog_compiler_static='-Bstatic'
8903
 
      ;;
8904
 
 
8905
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
8906
 
      lt_prog_compiler_wl='-Wl,'
8907
 
      lt_prog_compiler_pic='-KPIC'
8908
 
      lt_prog_compiler_static='-Bstatic'
8909
 
      ;;
8910
 
 
8911
 
    sysv4*MP*)
8912
 
      if test -d /usr/nec ;then
8913
 
        lt_prog_compiler_pic='-Kconform_pic'
8914
 
        lt_prog_compiler_static='-Bstatic'
8915
 
      fi
8916
 
      ;;
8917
 
 
8918
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8919
 
      lt_prog_compiler_wl='-Wl,'
8920
 
      lt_prog_compiler_pic='-KPIC'
8921
 
      lt_prog_compiler_static='-Bstatic'
8922
 
      ;;
8923
 
 
8924
 
    unicos*)
8925
 
      lt_prog_compiler_wl='-Wl,'
8926
 
      lt_prog_compiler_can_build_shared=no
8927
 
      ;;
8928
 
 
8929
 
    uts4*)
8930
 
      lt_prog_compiler_pic='-pic'
8931
 
      lt_prog_compiler_static='-Bstatic'
8932
 
      ;;
8933
 
 
8934
 
    *)
8935
 
      lt_prog_compiler_can_build_shared=no
8936
 
      ;;
8937
 
    esac
8938
 
  fi
8939
 
 
8940
 
case $host_os in
8941
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8942
 
  *djgpp*)
8943
 
    lt_prog_compiler_pic=
8944
 
    ;;
8945
 
  *)
8946
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8947
 
    ;;
8948
 
esac
8949
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8950
 
$as_echo "$lt_prog_compiler_pic" >&6; }
8951
 
 
8952
 
 
8953
 
 
8954
 
 
8955
 
 
8956
 
 
8957
 
#
8958
 
# Check to make sure the PIC flag actually works.
8959
 
#
8960
 
if test -n "$lt_prog_compiler_pic"; then
8961
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8962
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8963
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8964
 
  $as_echo_n "(cached) " >&6
8965
 
else
8966
 
  lt_cv_prog_compiler_pic_works=no
8967
 
   ac_outfile=conftest.$ac_objext
8968
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8970
 
   # Insert the option either (1) after the last *FLAGS variable, or
8971
 
   # (2) before a word containing "conftest.", or (3) at the end.
8972
 
   # Note that $ac_compile itself does not contain backslashes and begins
8973
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8974
 
   # The option is referenced via a variable to avoid confusing sed.
8975
 
   lt_compile=`echo "$ac_compile" | $SED \
8976
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978
 
   -e 's:$: $lt_compiler_flag:'`
8979
 
   (eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980
 
   (eval "$lt_compile" 2>conftest.err)
8981
 
   ac_status=$?
8982
 
   cat conftest.err >&5
8983
 
   echo "$as_me:8983: \$? = $ac_status" >&5
8984
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8985
 
     # The compiler can only warn and ignore the option if not recognized
8986
 
     # So say no if there are warnings other than the usual output.
8987
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8988
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990
 
       lt_cv_prog_compiler_pic_works=yes
8991
 
     fi
8992
 
   fi
8993
 
   $RM conftest*
8994
 
 
8995
 
fi
8996
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8997
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8998
 
 
8999
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9000
 
    case $lt_prog_compiler_pic in
9001
 
     "" | " "*) ;;
9002
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9003
 
     esac
9004
 
else
9005
 
    lt_prog_compiler_pic=
9006
 
     lt_prog_compiler_can_build_shared=no
9007
 
fi
9008
 
 
9009
 
fi
9010
 
 
9011
 
 
9012
 
 
9013
 
 
9014
 
 
9015
 
 
9016
 
#
9017
 
# Check to make sure the static flag actually works.
9018
 
#
9019
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9020
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9021
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9022
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9023
 
  $as_echo_n "(cached) " >&6
9024
 
else
9025
 
  lt_cv_prog_compiler_static_works=no
9026
 
   save_LDFLAGS="$LDFLAGS"
9027
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9028
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9029
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9030
 
     # The linker can only warn and ignore the option if not recognized
9031
 
     # So say no if there are warnings
9032
 
     if test -s conftest.err; then
9033
 
       # Append any errors to the config.log.
9034
 
       cat conftest.err 1>&5
9035
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9036
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037
 
       if diff conftest.exp conftest.er2 >/dev/null; then
9038
 
         lt_cv_prog_compiler_static_works=yes
9039
 
       fi
9040
 
     else
9041
 
       lt_cv_prog_compiler_static_works=yes
9042
 
     fi
9043
 
   fi
9044
 
   $RM -r conftest*
9045
 
   LDFLAGS="$save_LDFLAGS"
9046
 
 
9047
 
fi
9048
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9049
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9050
 
 
9051
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9052
 
    :
9053
 
else
9054
 
    lt_prog_compiler_static=
9055
 
fi
9056
 
 
9057
 
 
9058
 
 
9059
 
 
9060
 
 
9061
 
 
9062
 
 
9063
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9066
 
  $as_echo_n "(cached) " >&6
9067
 
else
9068
 
  lt_cv_prog_compiler_c_o=no
9069
 
   $RM -r conftest 2>/dev/null
9070
 
   mkdir conftest
9071
 
   cd conftest
9072
 
   mkdir out
9073
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
 
 
9075
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9076
 
   # Insert the option either (1) after the last *FLAGS variable, or
9077
 
   # (2) before a word containing "conftest.", or (3) at the end.
9078
 
   # Note that $ac_compile itself does not contain backslashes and begins
9079
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9080
 
   lt_compile=`echo "$ac_compile" | $SED \
9081
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083
 
   -e 's:$: $lt_compiler_flag:'`
9084
 
   (eval echo "\"\$as_me:9084: $lt_compile\"" >&5)
9085
 
   (eval "$lt_compile" 2>out/conftest.err)
9086
 
   ac_status=$?
9087
 
   cat out/conftest.err >&5
9088
 
   echo "$as_me:9088: \$? = $ac_status" >&5
9089
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9090
 
   then
9091
 
     # The compiler can only warn and ignore the option if not recognized
9092
 
     # So say no if there are warnings
9093
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9094
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096
 
       lt_cv_prog_compiler_c_o=yes
9097
 
     fi
9098
 
   fi
9099
 
   chmod u+w . 2>&5
9100
 
   $RM conftest*
9101
 
   # SGI C++ compiler will create directory out/ii_files/ for
9102
 
   # template instantiation
9103
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104
 
   $RM out/* && rmdir out
9105
 
   cd ..
9106
 
   $RM -r conftest
9107
 
   $RM conftest*
9108
 
 
9109
 
fi
9110
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112
 
 
9113
 
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9119
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9120
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9121
 
  $as_echo_n "(cached) " >&6
9122
 
else
9123
 
  lt_cv_prog_compiler_c_o=no
9124
 
   $RM -r conftest 2>/dev/null
9125
 
   mkdir conftest
9126
 
   cd conftest
9127
 
   mkdir out
9128
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129
 
 
9130
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9131
 
   # Insert the option either (1) after the last *FLAGS variable, or
9132
 
   # (2) before a word containing "conftest.", or (3) at the end.
9133
 
   # Note that $ac_compile itself does not contain backslashes and begins
9134
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9135
 
   lt_compile=`echo "$ac_compile" | $SED \
9136
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9137
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9138
 
   -e 's:$: $lt_compiler_flag:'`
9139
 
   (eval echo "\"\$as_me:9139: $lt_compile\"" >&5)
9140
 
   (eval "$lt_compile" 2>out/conftest.err)
9141
 
   ac_status=$?
9142
 
   cat out/conftest.err >&5
9143
 
   echo "$as_me:9143: \$? = $ac_status" >&5
9144
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9145
 
   then
9146
 
     # The compiler can only warn and ignore the option if not recognized
9147
 
     # So say no if there are warnings
9148
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9149
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9150
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9151
 
       lt_cv_prog_compiler_c_o=yes
9152
 
     fi
9153
 
   fi
9154
 
   chmod u+w . 2>&5
9155
 
   $RM conftest*
9156
 
   # SGI C++ compiler will create directory out/ii_files/ for
9157
 
   # template instantiation
9158
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9159
 
   $RM out/* && rmdir out
9160
 
   cd ..
9161
 
   $RM -r conftest
9162
 
   $RM conftest*
9163
 
 
9164
 
fi
9165
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9166
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
hard_links="nottested"
9172
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9173
 
  # do not overwrite the value of need_locks provided by the user
9174
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9175
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
9176
 
  hard_links=yes
9177
 
  $RM conftest*
9178
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9179
 
  touch conftest.a
9180
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
9181
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9183
 
$as_echo "$hard_links" >&6; }
9184
 
  if test "$hard_links" = no; then
9185
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9186
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9187
 
    need_locks=warn
9188
 
  fi
9189
 
else
9190
 
  need_locks=no
9191
 
fi
9192
 
 
9193
 
 
9194
 
 
9195
 
 
9196
 
 
9197
 
 
9198
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9199
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9200
 
 
9201
 
  runpath_var=
9202
 
  allow_undefined_flag=
9203
 
  always_export_symbols=no
9204
 
  archive_cmds=
9205
 
  archive_expsym_cmds=
9206
 
  compiler_needs_object=no
9207
 
  enable_shared_with_static_runtimes=no
9208
 
  export_dynamic_flag_spec=
9209
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9210
 
  hardcode_automatic=no
9211
 
  hardcode_direct=no
9212
 
  hardcode_direct_absolute=no
9213
 
  hardcode_libdir_flag_spec=
9214
 
  hardcode_libdir_flag_spec_ld=
9215
 
  hardcode_libdir_separator=
9216
 
  hardcode_minus_L=no
9217
 
  hardcode_shlibpath_var=unsupported
9218
 
  inherit_rpath=no
9219
 
  link_all_deplibs=unknown
9220
 
  module_cmds=
9221
 
  module_expsym_cmds=
9222
 
  old_archive_from_new_cmds=
9223
 
  old_archive_from_expsyms_cmds=
9224
 
  thread_safe_flag_spec=
9225
 
  whole_archive_flag_spec=
9226
 
  # include_expsyms should be a list of space-separated symbols to be *always*
9227
 
  # included in the symbol list
9228
 
  include_expsyms=
9229
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
9230
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9231
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9232
 
  # as well as any symbol that contains `d'.
9233
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9234
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9235
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
9236
 
  # the symbol is explicitly referenced.  Since portable code cannot
9237
 
  # rely on this symbol name, it's probably fine to never include it in
9238
 
  # preloaded symbol tables.
9239
 
  # Exclude shared library initialization/finalization symbols.
9240
 
  extract_expsyms_cmds=
9241
 
 
9242
 
  case $host_os in
9243
 
  cygwin* | mingw* | pw32* | cegcc*)
9244
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9245
 
    # When not using gcc, we currently assume that we are using
9246
 
    # Microsoft Visual C++.
9247
 
    if test "$GCC" != yes; then
9248
 
      with_gnu_ld=no
9249
 
    fi
9250
 
    ;;
9251
 
  interix*)
9252
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9253
 
    with_gnu_ld=yes
9254
 
    ;;
9255
 
  openbsd*)
9256
 
    with_gnu_ld=no
9257
 
    ;;
9258
 
  linux* | k*bsd*-gnu)
9259
 
    link_all_deplibs=no
9260
 
    ;;
9261
 
  esac
9262
 
 
9263
 
  ld_shlibs=yes
9264
 
  if test "$with_gnu_ld" = yes; then
9265
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
9266
 
    wlarc='${wl}'
9267
 
 
9268
 
    # Set some defaults for GNU ld with shared library support. These
9269
 
    # are reset later if shared libraries are not supported. Putting them
9270
 
    # here allows them to be overridden if necessary.
9271
 
    runpath_var=LD_RUN_PATH
9272
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
9274
 
    # ancient GNU ld didn't support --whole-archive et. al.
9275
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9276
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9277
 
    else
9278
 
      whole_archive_flag_spec=
9279
 
    fi
9280
 
    supports_anon_versioning=no
9281
 
    case `$LD -v 2>&1` in
9282
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
9283
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9284
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9285
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9286
 
      *\ 2.11.*) ;; # other 2.11 versions
9287
 
      *) supports_anon_versioning=yes ;;
9288
 
    esac
9289
 
 
9290
 
    # See if GNU ld supports shared libraries.
9291
 
    case $host_os in
9292
 
    aix[3-9]*)
9293
 
      # On AIX/PPC, the GNU linker is very broken
9294
 
      if test "$host_cpu" != ia64; then
9295
 
        ld_shlibs=no
9296
 
        cat <<_LT_EOF 1>&2
9297
 
 
9298
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9299
 
*** to be unable to reliably create shared libraries on AIX.
9300
 
*** Therefore, libtool is disabling shared libraries support.  If you
9301
 
*** really care for shared libraries, you may want to modify your PATH
9302
 
*** so that a non-GNU linker is found, and then restart.
9303
 
 
9304
 
_LT_EOF
9305
 
      fi
9306
 
      ;;
9307
 
 
9308
 
    amigaos*)
9309
 
      case $host_cpu in
9310
 
      powerpc)
9311
 
            # see comment about AmigaOS4 .so support
9312
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313
 
            archive_expsym_cmds=''
9314
 
        ;;
9315
 
      m68k)
9316
 
            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)'
9317
 
            hardcode_libdir_flag_spec='-L$libdir'
9318
 
            hardcode_minus_L=yes
9319
 
        ;;
9320
 
      esac
9321
 
      ;;
9322
 
 
9323
 
    beos*)
9324
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9325
 
        allow_undefined_flag=unsupported
9326
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9327
 
        # support --undefined.  This deserves some investigation.  FIXME
9328
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329
 
      else
9330
 
        ld_shlibs=no
9331
 
      fi
9332
 
      ;;
9333
 
 
9334
 
    cygwin* | mingw* | pw32* | cegcc*)
9335
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9336
 
      # as there is no search path for DLLs.
9337
 
      hardcode_libdir_flag_spec='-L$libdir'
9338
 
      allow_undefined_flag=unsupported
9339
 
      always_export_symbols=no
9340
 
      enable_shared_with_static_runtimes=yes
9341
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9342
 
 
9343
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9344
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345
 
        # If the export-symbols file already is a .def file (1st line
9346
 
        # is EXPORTS), use it as is; otherwise, prepend...
9347
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9348
 
          cp $export_symbols $output_objdir/$soname.def;
9349
 
        else
9350
 
          echo EXPORTS > $output_objdir/$soname.def;
9351
 
          cat $export_symbols >> $output_objdir/$soname.def;
9352
 
        fi~
9353
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9354
 
      else
9355
 
        ld_shlibs=no
9356
 
      fi
9357
 
      ;;
9358
 
 
9359
 
    interix[3-9]*)
9360
 
      hardcode_direct=no
9361
 
      hardcode_shlibpath_var=no
9362
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363
 
      export_dynamic_flag_spec='${wl}-E'
9364
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9365
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9366
 
      # default) and relocated if they conflict, which is a slow very memory
9367
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
9368
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9369
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9370
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9371
 
      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'
9372
 
      ;;
9373
 
 
9374
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9375
 
      tmp_diet=no
9376
 
      if test "$host_os" = linux-dietlibc; then
9377
 
        case $cc_basename in
9378
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9379
 
        esac
9380
 
      fi
9381
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9382
 
         && test "$tmp_diet" = no
9383
 
      then
9384
 
        tmp_addflag=
9385
 
        tmp_sharedflag='-shared'
9386
 
        case $cc_basename,$host_cpu in
9387
 
        pgcc*)                          # Portland Group C compiler
9388
 
          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'
9389
 
          tmp_addflag=' $pic_flag'
9390
 
          ;;
9391
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9392
 
          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'
9393
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
9394
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9395
 
          tmp_addflag=' -i_dynamic' ;;
9396
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9397
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9398
 
        ifc* | ifort*)                  # Intel Fortran compiler
9399
 
          tmp_addflag=' -nofor_main' ;;
9400
 
        lf95*)                          # Lahey Fortran 8.1
9401
 
          whole_archive_flag_spec=
9402
 
          tmp_sharedflag='--shared' ;;
9403
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9404
 
          tmp_sharedflag='-qmkshrobj'
9405
 
          tmp_addflag= ;;
9406
 
        esac
9407
 
        case `$CC -V 2>&1 | sed 5q` in
9408
 
        *Sun\ C*)                       # Sun C 5.9
9409
 
          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'
9410
 
          compiler_needs_object=yes
9411
 
          tmp_sharedflag='-G' ;;
9412
 
        *Sun\ F*)                       # Sun Fortran 8.3
9413
 
          tmp_sharedflag='-G' ;;
9414
 
        esac
9415
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416
 
 
9417
 
        if test "x$supports_anon_versioning" = xyes; then
9418
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9419
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
9421
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9422
 
        fi
9423
 
 
9424
 
        case $cc_basename in
9425
 
        xlf*)
9426
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9427
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9428
 
          hardcode_libdir_flag_spec=
9429
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9430
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9431
 
          if test "x$supports_anon_versioning" = xyes; then
9432
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9433
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9434
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9435
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9436
 
          fi
9437
 
          ;;
9438
 
        esac
9439
 
      else
9440
 
        ld_shlibs=no
9441
 
      fi
9442
 
      ;;
9443
 
 
9444
 
    netbsd* | netbsdelf*-gnu)
9445
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9446
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9447
 
        wlarc=
9448
 
      else
9449
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451
 
      fi
9452
 
      ;;
9453
 
 
9454
 
    solaris*)
9455
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9456
 
        ld_shlibs=no
9457
 
        cat <<_LT_EOF 1>&2
9458
 
 
9459
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9460
 
*** create shared libraries on Solaris systems.  Therefore, libtool
9461
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9462
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
9463
 
*** your PATH or compiler configuration so that the native linker is
9464
 
*** used, and then restart.
9465
 
 
9466
 
_LT_EOF
9467
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9470
 
      else
9471
 
        ld_shlibs=no
9472
 
      fi
9473
 
      ;;
9474
 
 
9475
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9476
 
      case `$LD -v 2>&1` in
9477
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9478
 
        ld_shlibs=no
9479
 
        cat <<_LT_EOF 1>&2
9480
 
 
9481
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9482
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9483
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
9484
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9485
 
*** your PATH or compiler configuration so that the native linker is
9486
 
*** used, and then restart.
9487
 
 
9488
 
_LT_EOF
9489
 
        ;;
9490
 
        *)
9491
 
          # For security reasons, it is highly recommended that you always
9492
 
          # use absolute paths for naming shared libraries, and exclude the
9493
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
9494
 
          # requires that you compile everything twice, which is a pain.
9495
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9497
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499
 
          else
9500
 
            ld_shlibs=no
9501
 
          fi
9502
 
        ;;
9503
 
      esac
9504
 
      ;;
9505
 
 
9506
 
    sunos4*)
9507
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9508
 
      wlarc=
9509
 
      hardcode_direct=yes
9510
 
      hardcode_shlibpath_var=no
9511
 
      ;;
9512
 
 
9513
 
    *)
9514
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9515
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517
 
      else
9518
 
        ld_shlibs=no
9519
 
      fi
9520
 
      ;;
9521
 
    esac
9522
 
 
9523
 
    if test "$ld_shlibs" = no; then
9524
 
      runpath_var=
9525
 
      hardcode_libdir_flag_spec=
9526
 
      export_dynamic_flag_spec=
9527
 
      whole_archive_flag_spec=
9528
 
    fi
9529
 
  else
9530
 
    # PORTME fill in a description of your system's linker (not GNU ld)
9531
 
    case $host_os in
9532
 
    aix3*)
9533
 
      allow_undefined_flag=unsupported
9534
 
      always_export_symbols=yes
9535
 
      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'
9536
 
      # Note: this linker hardcodes the directories in LIBPATH if there
9537
 
      # are no directories specified by -L.
9538
 
      hardcode_minus_L=yes
9539
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9540
 
        # Neither direct hardcoding nor static linking is supported with a
9541
 
        # broken collect2.
9542
 
        hardcode_direct=unsupported
9543
 
      fi
9544
 
      ;;
9545
 
 
9546
 
    aix[4-9]*)
9547
 
      if test "$host_cpu" = ia64; then
9548
 
        # On IA64, the linker does run time linking by default, so we don't
9549
 
        # have to do anything special.
9550
 
        aix_use_runtimelinking=no
9551
 
        exp_sym_flag='-Bexport'
9552
 
        no_entry_flag=""
9553
 
      else
9554
 
        # If we're using GNU nm, then we don't want the "-C" option.
9555
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9556
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9557
 
          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'
9558
 
        else
9559
 
          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'
9560
 
        fi
9561
 
        aix_use_runtimelinking=no
9562
 
 
9563
 
        # Test if we are trying to use run time linking or normal
9564
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9565
 
        # need to do runtime linking.
9566
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9567
 
          for ld_flag in $LDFLAGS; do
9568
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9569
 
            aix_use_runtimelinking=yes
9570
 
            break
9571
 
          fi
9572
 
          done
9573
 
          ;;
9574
 
        esac
9575
 
 
9576
 
        exp_sym_flag='-bexport'
9577
 
        no_entry_flag='-bnoentry'
9578
 
      fi
9579
 
 
9580
 
      # When large executables or shared objects are built, AIX ld can
9581
 
      # have problems creating the table of contents.  If linking a library
9582
 
      # or program results in "error TOC overflow" add -mminimal-toc to
9583
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9584
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9585
 
 
9586
 
      archive_cmds=''
9587
 
      hardcode_direct=yes
9588
 
      hardcode_direct_absolute=yes
9589
 
      hardcode_libdir_separator=':'
9590
 
      link_all_deplibs=yes
9591
 
      file_list_spec='${wl}-f,'
9592
 
 
9593
 
      if test "$GCC" = yes; then
9594
 
        case $host_os in aix4.[012]|aix4.[012].*)
9595
 
        # We only want to do this on AIX 4.2 and lower, the check
9596
 
        # below for broken collect2 doesn't work under 4.3+
9597
 
          collect2name=`${CC} -print-prog-name=collect2`
9598
 
          if test -f "$collect2name" &&
9599
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9600
 
          then
9601
 
          # We have reworked collect2
9602
 
          :
9603
 
          else
9604
 
          # We have old collect2
9605
 
          hardcode_direct=unsupported
9606
 
          # It fails to find uninstalled libraries when the uninstalled
9607
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9608
 
          # to unsupported forces relinking
9609
 
          hardcode_minus_L=yes
9610
 
          hardcode_libdir_flag_spec='-L$libdir'
9611
 
          hardcode_libdir_separator=
9612
 
          fi
9613
 
          ;;
9614
 
        esac
9615
 
        shared_flag='-shared'
9616
 
        if test "$aix_use_runtimelinking" = yes; then
9617
 
          shared_flag="$shared_flag "'${wl}-G'
9618
 
        fi
9619
 
        link_all_deplibs=no
9620
 
      else
9621
 
        # not using gcc
9622
 
        if test "$host_cpu" = ia64; then
9623
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9624
 
        # chokes on -Wl,-G. The following line is correct:
9625
 
          shared_flag='-G'
9626
 
        else
9627
 
          if test "$aix_use_runtimelinking" = yes; then
9628
 
            shared_flag='${wl}-G'
9629
 
          else
9630
 
            shared_flag='${wl}-bM:SRE'
9631
 
          fi
9632
 
        fi
9633
 
      fi
9634
 
 
9635
 
      export_dynamic_flag_spec='${wl}-bexpall'
9636
 
      # It seems that -bexpall does not export symbols beginning with
9637
 
      # underscore (_), so it is better to generate a list of symbols to export.
9638
 
      always_export_symbols=yes
9639
 
      if test "$aix_use_runtimelinking" = yes; then
9640
 
        # Warning - without using the other runtime loading flags (-brtl),
9641
 
        # -berok will link without error, but may produce a broken library.
9642
 
        allow_undefined_flag='-berok'
9643
 
        # Determine the default libpath from the value encoded in an
9644
 
        # empty executable.
9645
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646
 
/* end confdefs.h.  */
9647
 
 
9648
 
int
9649
 
main ()
9650
 
{
9651
 
 
9652
 
  ;
9653
 
  return 0;
9654
 
}
9655
 
_ACEOF
9656
 
if ac_fn_c_try_link "$LINENO"; then :
9657
 
 
9658
 
lt_aix_libpath_sed='
9659
 
    /Import File Strings/,/^$/ {
9660
 
        /^0/ {
9661
 
            s/^0  *\(.*\)$/\1/
9662
 
            p
9663
 
        }
9664
 
    }'
9665
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9666
 
# Check for a 64-bit object if we didn't find anything.
9667
 
if test -z "$aix_libpath"; then
9668
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669
 
fi
9670
 
fi
9671
 
rm -f core conftest.err conftest.$ac_objext \
9672
 
    conftest$ac_exeext conftest.$ac_ext
9673
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9674
 
 
9675
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9676
 
        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"
9677
 
      else
9678
 
        if test "$host_cpu" = ia64; then
9679
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9680
 
          allow_undefined_flag="-z nodefs"
9681
 
          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"
9682
 
        else
9683
 
         # Determine the default libpath from the value encoded in an
9684
 
         # empty executable.
9685
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686
 
/* end confdefs.h.  */
9687
 
 
9688
 
int
9689
 
main ()
9690
 
{
9691
 
 
9692
 
  ;
9693
 
  return 0;
9694
 
}
9695
 
_ACEOF
9696
 
if ac_fn_c_try_link "$LINENO"; then :
9697
 
 
9698
 
lt_aix_libpath_sed='
9699
 
    /Import File Strings/,/^$/ {
9700
 
        /^0/ {
9701
 
            s/^0  *\(.*\)$/\1/
9702
 
            p
9703
 
        }
9704
 
    }'
9705
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706
 
# Check for a 64-bit object if we didn't find anything.
9707
 
if test -z "$aix_libpath"; then
9708
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709
 
fi
9710
 
fi
9711
 
rm -f core conftest.err conftest.$ac_objext \
9712
 
    conftest$ac_exeext conftest.$ac_ext
9713
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9714
 
 
9715
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9716
 
          # Warning - without using the other run time loading flags,
9717
 
          # -berok will link without error, but may produce a broken library.
9718
 
          no_undefined_flag=' ${wl}-bernotok'
9719
 
          allow_undefined_flag=' ${wl}-berok'
9720
 
          # Exported symbols can be pulled into shared objects from archives
9721
 
          whole_archive_flag_spec='$convenience'
9722
 
          archive_cmds_need_lc=yes
9723
 
          # This is similar to how AIX traditionally builds its shared libraries.
9724
 
          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'
9725
 
        fi
9726
 
      fi
9727
 
      ;;
9728
 
 
9729
 
    amigaos*)
9730
 
      case $host_cpu in
9731
 
      powerpc)
9732
 
            # see comment about AmigaOS4 .so support
9733
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734
 
            archive_expsym_cmds=''
9735
 
        ;;
9736
 
      m68k)
9737
 
            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)'
9738
 
            hardcode_libdir_flag_spec='-L$libdir'
9739
 
            hardcode_minus_L=yes
9740
 
        ;;
9741
 
      esac
9742
 
      ;;
9743
 
 
9744
 
    bsdi[45]*)
9745
 
      export_dynamic_flag_spec=-rdynamic
9746
 
      ;;
9747
 
 
9748
 
    cygwin* | mingw* | pw32* | cegcc*)
9749
 
      # When not using gcc, we currently assume that we are using
9750
 
      # Microsoft Visual C++.
9751
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9752
 
      # no search path for DLLs.
9753
 
      hardcode_libdir_flag_spec=' '
9754
 
      allow_undefined_flag=unsupported
9755
 
      # Tell ltmain to make .lib files, not .a files.
9756
 
      libext=lib
9757
 
      # Tell ltmain to make .dll files, not .so files.
9758
 
      shrext_cmds=".dll"
9759
 
      # FIXME: Setting linknames here is a bad hack.
9760
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9761
 
      # The linker will automatically build a .lib file if we build a DLL.
9762
 
      old_archive_from_new_cmds='true'
9763
 
      # FIXME: Should let the user specify the lib program.
9764
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9766
 
      enable_shared_with_static_runtimes=yes
9767
 
      ;;
9768
 
 
9769
 
    darwin* | rhapsody*)
9770
 
 
9771
 
 
9772
 
  archive_cmds_need_lc=no
9773
 
  hardcode_direct=no
9774
 
  hardcode_automatic=yes
9775
 
  hardcode_shlibpath_var=unsupported
9776
 
  whole_archive_flag_spec=''
9777
 
  link_all_deplibs=yes
9778
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9779
 
  case $cc_basename in
9780
 
     ifort*) _lt_dar_can_shared=yes ;;
9781
 
     *) _lt_dar_can_shared=$GCC ;;
9782
 
  esac
9783
 
  if test "$_lt_dar_can_shared" = "yes"; then
9784
 
    output_verbose_link_cmd=echo
9785
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9786
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9787
 
    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}"
9788
 
    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}"
9789
 
 
9790
 
  else
9791
 
  ld_shlibs=no
9792
 
  fi
9793
 
 
9794
 
      ;;
9795
 
 
9796
 
    dgux*)
9797
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798
 
      hardcode_libdir_flag_spec='-L$libdir'
9799
 
      hardcode_shlibpath_var=no
9800
 
      ;;
9801
 
 
9802
 
    freebsd1*)
9803
 
      ld_shlibs=no
9804
 
      ;;
9805
 
 
9806
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9807
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9808
 
    # does not break anything, and helps significantly (at the cost of a little
9809
 
    # extra space).
9810
 
    freebsd2.2*)
9811
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9812
 
      hardcode_libdir_flag_spec='-R$libdir'
9813
 
      hardcode_direct=yes
9814
 
      hardcode_shlibpath_var=no
9815
 
      ;;
9816
 
 
9817
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9818
 
    freebsd2*)
9819
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9820
 
      hardcode_direct=yes
9821
 
      hardcode_minus_L=yes
9822
 
      hardcode_shlibpath_var=no
9823
 
      ;;
9824
 
 
9825
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9826
 
    freebsd* | dragonfly*)
9827
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9828
 
      hardcode_libdir_flag_spec='-R$libdir'
9829
 
      hardcode_direct=yes
9830
 
      hardcode_shlibpath_var=no
9831
 
      ;;
9832
 
 
9833
 
    hpux9*)
9834
 
      if test "$GCC" = yes; then
9835
 
        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'
9836
 
      else
9837
 
        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'
9838
 
      fi
9839
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9840
 
      hardcode_libdir_separator=:
9841
 
      hardcode_direct=yes
9842
 
 
9843
 
      # hardcode_minus_L: Not really in the search PATH,
9844
 
      # but as the default location of the library.
9845
 
      hardcode_minus_L=yes
9846
 
      export_dynamic_flag_spec='${wl}-E'
9847
 
      ;;
9848
 
 
9849
 
    hpux10*)
9850
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9851
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852
 
      else
9853
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9854
 
      fi
9855
 
      if test "$with_gnu_ld" = no; then
9856
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9858
 
        hardcode_libdir_separator=:
9859
 
        hardcode_direct=yes
9860
 
        hardcode_direct_absolute=yes
9861
 
        export_dynamic_flag_spec='${wl}-E'
9862
 
        # hardcode_minus_L: Not really in the search PATH,
9863
 
        # but as the default location of the library.
9864
 
        hardcode_minus_L=yes
9865
 
      fi
9866
 
      ;;
9867
 
 
9868
 
    hpux11*)
9869
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9870
 
        case $host_cpu in
9871
 
        hppa*64*)
9872
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873
 
          ;;
9874
 
        ia64*)
9875
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9876
 
          ;;
9877
 
        *)
9878
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879
 
          ;;
9880
 
        esac
9881
 
      else
9882
 
        case $host_cpu in
9883
 
        hppa*64*)
9884
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9885
 
          ;;
9886
 
        ia64*)
9887
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9888
 
          ;;
9889
 
        *)
9890
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9891
 
          ;;
9892
 
        esac
9893
 
      fi
9894
 
      if test "$with_gnu_ld" = no; then
9895
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896
 
        hardcode_libdir_separator=:
9897
 
 
9898
 
        case $host_cpu in
9899
 
        hppa*64*|ia64*)
9900
 
          hardcode_direct=no
9901
 
          hardcode_shlibpath_var=no
9902
 
          ;;
9903
 
        *)
9904
 
          hardcode_direct=yes
9905
 
          hardcode_direct_absolute=yes
9906
 
          export_dynamic_flag_spec='${wl}-E'
9907
 
 
9908
 
          # hardcode_minus_L: Not really in the search PATH,
9909
 
          # but as the default location of the library.
9910
 
          hardcode_minus_L=yes
9911
 
          ;;
9912
 
        esac
9913
 
      fi
9914
 
      ;;
9915
 
 
9916
 
    irix5* | irix6* | nonstopux*)
9917
 
      if test "$GCC" = yes; then
9918
 
        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'
9919
 
        # Try to use the -exported_symbol ld option, if it does not
9920
 
        # work, assume that -exports_file does not work either and
9921
 
        # implicitly export all symbols.
9922
 
        save_LDFLAGS="$LDFLAGS"
9923
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9924
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925
 
/* end confdefs.h.  */
9926
 
int foo(void) {}
9927
 
_ACEOF
9928
 
if ac_fn_c_try_link "$LINENO"; then :
9929
 
  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'
9930
 
 
9931
 
fi
9932
 
rm -f core conftest.err conftest.$ac_objext \
9933
 
    conftest$ac_exeext conftest.$ac_ext
9934
 
        LDFLAGS="$save_LDFLAGS"
9935
 
      else
9936
 
        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'
9937
 
        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'
9938
 
      fi
9939
 
      archive_cmds_need_lc='no'
9940
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941
 
      hardcode_libdir_separator=:
9942
 
      inherit_rpath=yes
9943
 
      link_all_deplibs=yes
9944
 
      ;;
9945
 
 
9946
 
    netbsd* | netbsdelf*-gnu)
9947
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9948
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9949
 
      else
9950
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9951
 
      fi
9952
 
      hardcode_libdir_flag_spec='-R$libdir'
9953
 
      hardcode_direct=yes
9954
 
      hardcode_shlibpath_var=no
9955
 
      ;;
9956
 
 
9957
 
    newsos6)
9958
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959
 
      hardcode_direct=yes
9960
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9961
 
      hardcode_libdir_separator=:
9962
 
      hardcode_shlibpath_var=no
9963
 
      ;;
9964
 
 
9965
 
    *nto* | *qnx*)
9966
 
      ;;
9967
 
 
9968
 
    openbsd*)
9969
 
      if test -f /usr/libexec/ld.so; then
9970
 
        hardcode_direct=yes
9971
 
        hardcode_shlibpath_var=no
9972
 
        hardcode_direct_absolute=yes
9973
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9974
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9975
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9976
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9977
 
          export_dynamic_flag_spec='${wl}-E'
9978
 
        else
9979
 
          case $host_os in
9980
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9981
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9982
 
             hardcode_libdir_flag_spec='-R$libdir'
9983
 
             ;;
9984
 
           *)
9985
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9987
 
             ;;
9988
 
          esac
9989
 
        fi
9990
 
      else
9991
 
        ld_shlibs=no
9992
 
      fi
9993
 
      ;;
9994
 
 
9995
 
    os2*)
9996
 
      hardcode_libdir_flag_spec='-L$libdir'
9997
 
      hardcode_minus_L=yes
9998
 
      allow_undefined_flag=unsupported
9999
 
      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'
10000
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10001
 
      ;;
10002
 
 
10003
 
    osf3*)
10004
 
      if test "$GCC" = yes; then
10005
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10006
 
        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'
10007
 
      else
10008
 
        allow_undefined_flag=' -expect_unresolved \*'
10009
 
        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'
10010
 
      fi
10011
 
      archive_cmds_need_lc='no'
10012
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013
 
      hardcode_libdir_separator=:
10014
 
      ;;
10015
 
 
10016
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10017
 
      if test "$GCC" = yes; then
10018
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019
 
        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'
10020
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10021
 
      else
10022
 
        allow_undefined_flag=' -expect_unresolved \*'
10023
 
        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'
10024
 
        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~
10025
 
        $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'
10026
 
 
10027
 
        # Both c and cxx compiler support -rpath directly
10028
 
        hardcode_libdir_flag_spec='-rpath $libdir'
10029
 
      fi
10030
 
      archive_cmds_need_lc='no'
10031
 
      hardcode_libdir_separator=:
10032
 
      ;;
10033
 
 
10034
 
    solaris*)
10035
 
      no_undefined_flag=' -z defs'
10036
 
      if test "$GCC" = yes; then
10037
 
        wlarc='${wl}'
10038
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10040
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10041
 
      else
10042
 
        case `$CC -V 2>&1` in
10043
 
        *"Compilers 5.0"*)
10044
 
          wlarc=''
10045
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10048
 
          ;;
10049
 
        *)
10050
 
          wlarc='${wl}'
10051
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10052
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054
 
          ;;
10055
 
        esac
10056
 
      fi
10057
 
      hardcode_libdir_flag_spec='-R$libdir'
10058
 
      hardcode_shlibpath_var=no
10059
 
      case $host_os in
10060
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10061
 
      *)
10062
 
        # The compiler driver will combine and reorder linker options,
10063
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10064
 
        # but is careful enough not to reorder.
10065
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10066
 
        if test "$GCC" = yes; then
10067
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10068
 
        else
10069
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10070
 
        fi
10071
 
        ;;
10072
 
      esac
10073
 
      link_all_deplibs=yes
10074
 
      ;;
10075
 
 
10076
 
    sunos4*)
10077
 
      if test "x$host_vendor" = xsequent; then
10078
 
        # Use $CC to link under sequent, because it throws in some extra .o
10079
 
        # files that make .init and .fini sections work.
10080
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10081
 
      else
10082
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10083
 
      fi
10084
 
      hardcode_libdir_flag_spec='-L$libdir'
10085
 
      hardcode_direct=yes
10086
 
      hardcode_minus_L=yes
10087
 
      hardcode_shlibpath_var=no
10088
 
      ;;
10089
 
 
10090
 
    sysv4)
10091
 
      case $host_vendor in
10092
 
        sni)
10093
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094
 
          hardcode_direct=yes # is this really true???
10095
 
        ;;
10096
 
        siemens)
10097
 
          ## LD is ld it makes a PLAMLIB
10098
 
          ## CC just makes a GrossModule.
10099
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10100
 
          reload_cmds='$CC -r -o $output$reload_objs'
10101
 
          hardcode_direct=no
10102
 
        ;;
10103
 
        motorola)
10104
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10106
 
        ;;
10107
 
      esac
10108
 
      runpath_var='LD_RUN_PATH'
10109
 
      hardcode_shlibpath_var=no
10110
 
      ;;
10111
 
 
10112
 
    sysv4.3*)
10113
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114
 
      hardcode_shlibpath_var=no
10115
 
      export_dynamic_flag_spec='-Bexport'
10116
 
      ;;
10117
 
 
10118
 
    sysv4*MP*)
10119
 
      if test -d /usr/nec; then
10120
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121
 
        hardcode_shlibpath_var=no
10122
 
        runpath_var=LD_RUN_PATH
10123
 
        hardcode_runpath_var=yes
10124
 
        ld_shlibs=yes
10125
 
      fi
10126
 
      ;;
10127
 
 
10128
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10129
 
      no_undefined_flag='${wl}-z,text'
10130
 
      archive_cmds_need_lc=no
10131
 
      hardcode_shlibpath_var=no
10132
 
      runpath_var='LD_RUN_PATH'
10133
 
 
10134
 
      if test "$GCC" = yes; then
10135
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137
 
      else
10138
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140
 
      fi
10141
 
      ;;
10142
 
 
10143
 
    sysv5* | sco3.2v5* | sco5v6*)
10144
 
      # Note: We can NOT use -z defs as we might desire, because we do not
10145
 
      # link with -lc, and that would cause any symbols used from libc to
10146
 
      # always be unresolved, which means just about no library would
10147
 
      # ever link correctly.  If we're not using GNU ld we use -z text
10148
 
      # though, which does catch some bad symbols but isn't as heavy-handed
10149
 
      # as -z defs.
10150
 
      no_undefined_flag='${wl}-z,text'
10151
 
      allow_undefined_flag='${wl}-z,nodefs'
10152
 
      archive_cmds_need_lc=no
10153
 
      hardcode_shlibpath_var=no
10154
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10155
 
      hardcode_libdir_separator=':'
10156
 
      link_all_deplibs=yes
10157
 
      export_dynamic_flag_spec='${wl}-Bexport'
10158
 
      runpath_var='LD_RUN_PATH'
10159
 
 
10160
 
      if test "$GCC" = yes; then
10161
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163
 
      else
10164
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166
 
      fi
10167
 
      ;;
10168
 
 
10169
 
    uts4*)
10170
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171
 
      hardcode_libdir_flag_spec='-L$libdir'
10172
 
      hardcode_shlibpath_var=no
10173
 
      ;;
10174
 
 
10175
 
    *)
10176
 
      ld_shlibs=no
10177
 
      ;;
10178
 
    esac
10179
 
 
10180
 
    if test x$host_vendor = xsni; then
10181
 
      case $host in
10182
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10183
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10184
 
        ;;
10185
 
      esac
10186
 
    fi
10187
 
  fi
10188
 
 
10189
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10190
 
$as_echo "$ld_shlibs" >&6; }
10191
 
test "$ld_shlibs" = no && can_build_shared=no
10192
 
 
10193
 
with_gnu_ld=$with_gnu_ld
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
#
10210
 
# Do we need to explicitly link libc?
10211
 
#
10212
 
case "x$archive_cmds_need_lc" in
10213
 
x|xyes)
10214
 
  # Assume -lc should be added
10215
 
  archive_cmds_need_lc=yes
10216
 
 
10217
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10218
 
    case $archive_cmds in
10219
 
    *'~'*)
10220
 
      # FIXME: we may have to deal with multi-command sequences.
10221
 
      ;;
10222
 
    '$CC '*)
10223
 
      # Test whether the compiler implicitly links with -lc since on some
10224
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10225
 
      # to ld, don't add -lc before -lgcc.
10226
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10227
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10228
 
      $RM conftest*
10229
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10230
 
 
10231
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10232
 
  (eval $ac_compile) 2>&5
10233
 
  ac_status=$?
10234
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235
 
  test $ac_status = 0; } 2>conftest.err; then
10236
 
        soname=conftest
10237
 
        lib=conftest
10238
 
        libobjs=conftest.$ac_objext
10239
 
        deplibs=
10240
 
        wl=$lt_prog_compiler_wl
10241
 
        pic_flag=$lt_prog_compiler_pic
10242
 
        compiler_flags=-v
10243
 
        linker_flags=-v
10244
 
        verstring=
10245
 
        output_objdir=.
10246
 
        libname=conftest
10247
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
10248
 
        allow_undefined_flag=
10249
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10250
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10251
 
  ac_status=$?
10252
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253
 
  test $ac_status = 0; }
10254
 
        then
10255
 
          archive_cmds_need_lc=no
10256
 
        else
10257
 
          archive_cmds_need_lc=yes
10258
 
        fi
10259
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
10260
 
      else
10261
 
        cat conftest.err 1>&5
10262
 
      fi
10263
 
      $RM conftest*
10264
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10265
 
$as_echo "$archive_cmds_need_lc" >&6; }
10266
 
      ;;
10267
 
    esac
10268
 
  fi
10269
 
  ;;
10270
 
esac
10271
 
 
10272
 
 
10273
 
 
10274
 
 
10275
 
 
10276
 
 
10277
 
 
10278
 
 
10279
 
 
10280
 
 
10281
 
 
10282
 
 
10283
 
 
10284
 
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
 
 
10431
 
if test "$GCC" = yes; then
10432
 
  case $host_os in
10433
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10434
 
    *) lt_awk_arg="/^libraries:/" ;;
10435
 
  esac
10436
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10437
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10438
 
    # if the path contains ";" then we assume it to be the separator
10439
 
    # otherwise default to the standard path separator (i.e. ":") - it is
10440
 
    # assumed that no part of a normal pathname contains ";" but that should
10441
 
    # okay in the real world where ";" in dirpaths is itself problematic.
10442
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10443
 
  else
10444
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10445
 
  fi
10446
 
  # Ok, now we have the path, separated by spaces, we can step through it
10447
 
  # and add multilib dir if necessary.
10448
 
  lt_tmp_lt_search_path_spec=
10449
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10450
 
  for lt_sys_path in $lt_search_path_spec; do
10451
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10452
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10453
 
    else
10454
 
      test -d "$lt_sys_path" && \
10455
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10456
 
    fi
10457
 
  done
10458
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10459
 
BEGIN {RS=" "; FS="/|\n";} {
10460
 
  lt_foo="";
10461
 
  lt_count=0;
10462
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
10463
 
    if ($lt_i != "" && $lt_i != ".") {
10464
 
      if ($lt_i == "..") {
10465
 
        lt_count++;
10466
 
      } else {
10467
 
        if (lt_count == 0) {
10468
 
          lt_foo="/" $lt_i lt_foo;
10469
 
        } else {
10470
 
          lt_count--;
10471
 
        }
10472
 
      }
10473
 
    }
10474
 
  }
10475
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10476
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10477
 
}'`
10478
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10479
 
else
10480
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10481
 
fi
10482
 
library_names_spec=
10483
 
libname_spec='lib$name'
10484
 
soname_spec=
10485
 
shrext_cmds=".so"
10486
 
postinstall_cmds=
10487
 
postuninstall_cmds=
10488
 
finish_cmds=
10489
 
finish_eval=
10490
 
shlibpath_var=
10491
 
shlibpath_overrides_runpath=unknown
10492
 
version_type=none
10493
 
dynamic_linker="$host_os ld.so"
10494
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10495
 
need_lib_prefix=unknown
10496
 
hardcode_into_libs=no
10497
 
 
10498
 
# when you set need_version to no, make sure it does not cause -set_version
10499
 
# flags to be left without arguments
10500
 
need_version=unknown
10501
 
 
10502
 
case $host_os in
10503
 
aix3*)
10504
 
  version_type=linux
10505
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10506
 
  shlibpath_var=LIBPATH
10507
 
 
10508
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10509
 
  soname_spec='${libname}${release}${shared_ext}$major'
10510
 
  ;;
10511
 
 
10512
 
aix[4-9]*)
10513
 
  version_type=linux
10514
 
  need_lib_prefix=no
10515
 
  need_version=no
10516
 
  hardcode_into_libs=yes
10517
 
  if test "$host_cpu" = ia64; then
10518
 
    # AIX 5 supports IA64
10519
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10520
 
    shlibpath_var=LD_LIBRARY_PATH
10521
 
  else
10522
 
    # With GCC up to 2.95.x, collect2 would create an import file
10523
 
    # for dependence libraries.  The import file would start with
10524
 
    # the line `#! .'.  This would cause the generated library to
10525
 
    # depend on `.', always an invalid library.  This was fixed in
10526
 
    # development snapshots of GCC prior to 3.0.
10527
 
    case $host_os in
10528
 
      aix4 | aix4.[01] | aix4.[01].*)
10529
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10530
 
           echo ' yes '
10531
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10532
 
        :
10533
 
      else
10534
 
        can_build_shared=no
10535
 
      fi
10536
 
      ;;
10537
 
    esac
10538
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10539
 
    # soname into executable. Probably we can add versioning support to
10540
 
    # collect2, so additional links can be useful in future.
10541
 
    if test "$aix_use_runtimelinking" = yes; then
10542
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10543
 
      # instead of lib<name>.a to let people know that these are not
10544
 
      # typical AIX shared libraries.
10545
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546
 
    else
10547
 
      # We preserve .a as extension for shared libraries through AIX4.2
10548
 
      # and later when we are not doing run time linking.
10549
 
      library_names_spec='${libname}${release}.a $libname.a'
10550
 
      soname_spec='${libname}${release}${shared_ext}$major'
10551
 
    fi
10552
 
    shlibpath_var=LIBPATH
10553
 
  fi
10554
 
  ;;
10555
 
 
10556
 
amigaos*)
10557
 
  case $host_cpu in
10558
 
  powerpc)
10559
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10560
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10561
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562
 
    ;;
10563
 
  m68k)
10564
 
    library_names_spec='$libname.ixlibrary $libname.a'
10565
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10566
 
    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'
10567
 
    ;;
10568
 
  esac
10569
 
  ;;
10570
 
 
10571
 
beos*)
10572
 
  library_names_spec='${libname}${shared_ext}'
10573
 
  dynamic_linker="$host_os ld.so"
10574
 
  shlibpath_var=LIBRARY_PATH
10575
 
  ;;
10576
 
 
10577
 
bsdi[45]*)
10578
 
  version_type=linux
10579
 
  need_version=no
10580
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581
 
  soname_spec='${libname}${release}${shared_ext}$major'
10582
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10583
 
  shlibpath_var=LD_LIBRARY_PATH
10584
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10585
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10586
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10587
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10588
 
  # libtool to hard-code these into programs
10589
 
  ;;
10590
 
 
10591
 
cygwin* | mingw* | pw32* | cegcc*)
10592
 
  version_type=windows
10593
 
  shrext_cmds=".dll"
10594
 
  need_version=no
10595
 
  need_lib_prefix=no
10596
 
 
10597
 
  case $GCC,$host_os in
10598
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10599
 
    library_names_spec='$libname.dll.a'
10600
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10601
 
    postinstall_cmds='base_file=`basename \${file}`~
10602
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10603
 
      dldir=$destdir/`dirname \$dlpath`~
10604
 
      test -d \$dldir || mkdir -p \$dldir~
10605
 
      $install_prog $dir/$dlname \$dldir/$dlname~
10606
 
      chmod a+x \$dldir/$dlname~
10607
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10608
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10609
 
      fi'
10610
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10611
 
      dlpath=$dir/\$dldll~
10612
 
       $RM \$dlpath'
10613
 
    shlibpath_overrides_runpath=yes
10614
 
 
10615
 
    case $host_os in
10616
 
    cygwin*)
10617
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10618
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10619
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10620
 
      ;;
10621
 
    mingw* | cegcc*)
10622
 
      # MinGW DLLs use traditional 'lib' prefix
10623
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10624
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10625
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10626
 
        # It is most probably a Windows format PATH printed by
10627
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10628
 
        # path with ; separators, and with drive letters. We can handle the
10629
 
        # drive letters (cygwin fileutils understands them), so leave them,
10630
 
        # especially as we might pass files found there to a mingw objdump,
10631
 
        # which wouldn't understand a cygwinified path. Ahh.
10632
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10633
 
      else
10634
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10635
 
      fi
10636
 
      ;;
10637
 
    pw32*)
10638
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10639
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640
 
      ;;
10641
 
    esac
10642
 
    ;;
10643
 
 
10644
 
  *)
10645
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10646
 
    ;;
10647
 
  esac
10648
 
  dynamic_linker='Win32 ld.exe'
10649
 
  # FIXME: first we should search . and the directory the executable is in
10650
 
  shlibpath_var=PATH
10651
 
  ;;
10652
 
 
10653
 
darwin* | rhapsody*)
10654
 
  dynamic_linker="$host_os dyld"
10655
 
  version_type=darwin
10656
 
  need_lib_prefix=no
10657
 
  need_version=no
10658
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10659
 
  soname_spec='${libname}${release}${major}$shared_ext'
10660
 
  shlibpath_overrides_runpath=yes
10661
 
  shlibpath_var=DYLD_LIBRARY_PATH
10662
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10663
 
 
10664
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10665
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10666
 
  ;;
10667
 
 
10668
 
dgux*)
10669
 
  version_type=linux
10670
 
  need_lib_prefix=no
10671
 
  need_version=no
10672
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10673
 
  soname_spec='${libname}${release}${shared_ext}$major'
10674
 
  shlibpath_var=LD_LIBRARY_PATH
10675
 
  ;;
10676
 
 
10677
 
freebsd1*)
10678
 
  dynamic_linker=no
10679
 
  ;;
10680
 
 
10681
 
freebsd* | dragonfly*)
10682
 
  # DragonFly does not have aout.  When/if they implement a new
10683
 
  # versioning mechanism, adjust this.
10684
 
  if test -x /usr/bin/objformat; then
10685
 
    objformat=`/usr/bin/objformat`
10686
 
  else
10687
 
    case $host_os in
10688
 
    freebsd[123]*) objformat=aout ;;
10689
 
    *) objformat=elf ;;
10690
 
    esac
10691
 
  fi
10692
 
  version_type=freebsd-$objformat
10693
 
  case $version_type in
10694
 
    freebsd-elf*)
10695
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10696
 
      need_version=no
10697
 
      need_lib_prefix=no
10698
 
      ;;
10699
 
    freebsd-*)
10700
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10701
 
      need_version=yes
10702
 
      ;;
10703
 
  esac
10704
 
  shlibpath_var=LD_LIBRARY_PATH
10705
 
  case $host_os in
10706
 
  freebsd2*)
10707
 
    shlibpath_overrides_runpath=yes
10708
 
    ;;
10709
 
  freebsd3.[01]* | freebsdelf3.[01]*)
10710
 
    shlibpath_overrides_runpath=yes
10711
 
    hardcode_into_libs=yes
10712
 
    ;;
10713
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10714
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10715
 
    shlibpath_overrides_runpath=no
10716
 
    hardcode_into_libs=yes
10717
 
    ;;
10718
 
  *) # from 4.6 on, and DragonFly
10719
 
    shlibpath_overrides_runpath=yes
10720
 
    hardcode_into_libs=yes
10721
 
    ;;
10722
 
  esac
10723
 
  ;;
10724
 
 
10725
 
gnu*)
10726
 
  version_type=linux
10727
 
  need_lib_prefix=no
10728
 
  need_version=no
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
 
  hardcode_into_libs=yes
10733
 
  ;;
10734
 
 
10735
 
hpux9* | hpux10* | hpux11*)
10736
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10737
 
  # link against other versions.
10738
 
  version_type=sunos
10739
 
  need_lib_prefix=no
10740
 
  need_version=no
10741
 
  case $host_cpu in
10742
 
  ia64*)
10743
 
    shrext_cmds='.so'
10744
 
    hardcode_into_libs=yes
10745
 
    dynamic_linker="$host_os dld.so"
10746
 
    shlibpath_var=LD_LIBRARY_PATH
10747
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10748
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749
 
    soname_spec='${libname}${release}${shared_ext}$major'
10750
 
    if test "X$HPUX_IA64_MODE" = X32; then
10751
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10752
 
    else
10753
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10754
 
    fi
10755
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10756
 
    ;;
10757
 
  hppa*64*)
10758
 
    shrext_cmds='.sl'
10759
 
    hardcode_into_libs=yes
10760
 
    dynamic_linker="$host_os dld.sl"
10761
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10762
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764
 
    soname_spec='${libname}${release}${shared_ext}$major'
10765
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10766
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767
 
    ;;
10768
 
  *)
10769
 
    shrext_cmds='.sl'
10770
 
    dynamic_linker="$host_os dld.sl"
10771
 
    shlibpath_var=SHLIB_PATH
10772
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10773
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774
 
    soname_spec='${libname}${release}${shared_ext}$major'
10775
 
    ;;
10776
 
  esac
10777
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10778
 
  postinstall_cmds='chmod 555 $lib'
10779
 
  ;;
10780
 
 
10781
 
interix[3-9]*)
10782
 
  version_type=linux
10783
 
  need_lib_prefix=no
10784
 
  need_version=no
10785
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10786
 
  soname_spec='${libname}${release}${shared_ext}$major'
10787
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10788
 
  shlibpath_var=LD_LIBRARY_PATH
10789
 
  shlibpath_overrides_runpath=no
10790
 
  hardcode_into_libs=yes
10791
 
  ;;
10792
 
 
10793
 
irix5* | irix6* | nonstopux*)
10794
 
  case $host_os in
10795
 
    nonstopux*) version_type=nonstopux ;;
10796
 
    *)
10797
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
10798
 
                version_type=linux
10799
 
        else
10800
 
                version_type=irix
10801
 
        fi ;;
10802
 
  esac
10803
 
  need_lib_prefix=no
10804
 
  need_version=no
10805
 
  soname_spec='${libname}${release}${shared_ext}$major'
10806
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10807
 
  case $host_os in
10808
 
  irix5* | nonstopux*)
10809
 
    libsuff= shlibsuff=
10810
 
    ;;
10811
 
  *)
10812
 
    case $LD in # libtool.m4 will add one of these switches to LD
10813
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10814
 
      libsuff= shlibsuff= libmagic=32-bit;;
10815
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10816
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10817
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10818
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10819
 
    *) libsuff= shlibsuff= libmagic=never-match;;
10820
 
    esac
10821
 
    ;;
10822
 
  esac
10823
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10824
 
  shlibpath_overrides_runpath=no
10825
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10826
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10827
 
  hardcode_into_libs=yes
10828
 
  ;;
10829
 
 
10830
 
# No shared lib support for Linux oldld, aout, or coff.
10831
 
linux*oldld* | linux*aout* | linux*coff*)
10832
 
  dynamic_linker=no
10833
 
  ;;
10834
 
 
10835
 
# This must be Linux ELF.
10836
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10837
 
  version_type=linux
10838
 
  need_lib_prefix=no
10839
 
  need_version=no
10840
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841
 
  soname_spec='${libname}${release}${shared_ext}$major'
10842
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10843
 
  shlibpath_var=LD_LIBRARY_PATH
10844
 
  shlibpath_overrides_runpath=no
10845
 
  # Some binutils ld are patched to set DT_RUNPATH
10846
 
  save_LDFLAGS=$LDFLAGS
10847
 
  save_libdir=$libdir
10848
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10849
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10850
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851
 
/* end confdefs.h.  */
10852
 
 
10853
 
int
10854
 
main ()
10855
 
{
10856
 
 
10857
 
  ;
10858
 
  return 0;
10859
 
}
10860
 
_ACEOF
10861
 
if ac_fn_c_try_link "$LINENO"; then :
10862
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10863
 
  shlibpath_overrides_runpath=yes
10864
 
fi
10865
 
fi
10866
 
rm -f core conftest.err conftest.$ac_objext \
10867
 
    conftest$ac_exeext conftest.$ac_ext
10868
 
  LDFLAGS=$save_LDFLAGS
10869
 
  libdir=$save_libdir
10870
 
 
10871
 
  # This implies no fast_install, which is unacceptable.
10872
 
  # Some rework will be needed to allow for fast_install
10873
 
  # before this can be enabled.
10874
 
  hardcode_into_libs=yes
10875
 
 
10876
 
  # Append ld.so.conf contents to the search path
10877
 
  if test -f /etc/ld.so.conf; then
10878
 
    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' ' '`
10879
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10880
 
  fi
10881
 
 
10882
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10883
 
  # powerpc, because MkLinux only supported shared libraries with the
10884
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
10885
 
  # most powerpc-linux boxes support dynamic linking these days and
10886
 
  # people can always --disable-shared, the test was removed, and we
10887
 
  # assume the GNU/Linux dynamic linker is in use.
10888
 
  dynamic_linker='GNU/Linux ld.so'
10889
 
  ;;
10890
 
 
10891
 
netbsdelf*-gnu)
10892
 
  version_type=linux
10893
 
  need_lib_prefix=no
10894
 
  need_version=no
10895
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896
 
  soname_spec='${libname}${release}${shared_ext}$major'
10897
 
  shlibpath_var=LD_LIBRARY_PATH
10898
 
  shlibpath_overrides_runpath=no
10899
 
  hardcode_into_libs=yes
10900
 
  dynamic_linker='NetBSD ld.elf_so'
10901
 
  ;;
10902
 
 
10903
 
netbsd*)
10904
 
  version_type=sunos
10905
 
  need_lib_prefix=no
10906
 
  need_version=no
10907
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10908
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10909
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910
 
    dynamic_linker='NetBSD (a.out) ld.so'
10911
 
  else
10912
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10913
 
    soname_spec='${libname}${release}${shared_ext}$major'
10914
 
    dynamic_linker='NetBSD ld.elf_so'
10915
 
  fi
10916
 
  shlibpath_var=LD_LIBRARY_PATH
10917
 
  shlibpath_overrides_runpath=yes
10918
 
  hardcode_into_libs=yes
10919
 
  ;;
10920
 
 
10921
 
newsos6)
10922
 
  version_type=linux
10923
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924
 
  shlibpath_var=LD_LIBRARY_PATH
10925
 
  shlibpath_overrides_runpath=yes
10926
 
  ;;
10927
 
 
10928
 
*nto* | *qnx*)
10929
 
  version_type=qnx
10930
 
  need_lib_prefix=no
10931
 
  need_version=no
10932
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933
 
  soname_spec='${libname}${release}${shared_ext}$major'
10934
 
  shlibpath_var=LD_LIBRARY_PATH
10935
 
  shlibpath_overrides_runpath=no
10936
 
  hardcode_into_libs=yes
10937
 
  dynamic_linker='ldqnx.so'
10938
 
  ;;
10939
 
 
10940
 
openbsd*)
10941
 
  version_type=sunos
10942
 
  sys_lib_dlsearch_path_spec="/usr/lib"
10943
 
  need_lib_prefix=no
10944
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10945
 
  case $host_os in
10946
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10947
 
    *)                          need_version=no  ;;
10948
 
  esac
10949
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10950
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10951
 
  shlibpath_var=LD_LIBRARY_PATH
10952
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10953
 
    case $host_os in
10954
 
      openbsd2.[89] | openbsd2.[89].*)
10955
 
        shlibpath_overrides_runpath=no
10956
 
        ;;
10957
 
      *)
10958
 
        shlibpath_overrides_runpath=yes
10959
 
        ;;
10960
 
      esac
10961
 
  else
10962
 
    shlibpath_overrides_runpath=yes
10963
 
  fi
10964
 
  ;;
10965
 
 
10966
 
os2*)
10967
 
  libname_spec='$name'
10968
 
  shrext_cmds=".dll"
10969
 
  need_lib_prefix=no
10970
 
  library_names_spec='$libname${shared_ext} $libname.a'
10971
 
  dynamic_linker='OS/2 ld.exe'
10972
 
  shlibpath_var=LIBPATH
10973
 
  ;;
10974
 
 
10975
 
osf3* | osf4* | osf5*)
10976
 
  version_type=osf
10977
 
  need_lib_prefix=no
10978
 
  need_version=no
10979
 
  soname_spec='${libname}${release}${shared_ext}$major'
10980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981
 
  shlibpath_var=LD_LIBRARY_PATH
10982
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10983
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10984
 
  ;;
10985
 
 
10986
 
rdos*)
10987
 
  dynamic_linker=no
10988
 
  ;;
10989
 
 
10990
 
solaris*)
10991
 
  version_type=linux
10992
 
  need_lib_prefix=no
10993
 
  need_version=no
10994
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
 
  soname_spec='${libname}${release}${shared_ext}$major'
10996
 
  shlibpath_var=LD_LIBRARY_PATH
10997
 
  shlibpath_overrides_runpath=yes
10998
 
  hardcode_into_libs=yes
10999
 
  # ldd complains unless libraries are executable
11000
 
  postinstall_cmds='chmod +x $lib'
11001
 
  ;;
11002
 
 
11003
 
sunos4*)
11004
 
  version_type=sunos
11005
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11006
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11007
 
  shlibpath_var=LD_LIBRARY_PATH
11008
 
  shlibpath_overrides_runpath=yes
11009
 
  if test "$with_gnu_ld" = yes; then
11010
 
    need_lib_prefix=no
11011
 
  fi
11012
 
  need_version=yes
11013
 
  ;;
11014
 
 
11015
 
sysv4 | sysv4.3*)
11016
 
  version_type=linux
11017
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018
 
  soname_spec='${libname}${release}${shared_ext}$major'
11019
 
  shlibpath_var=LD_LIBRARY_PATH
11020
 
  case $host_vendor in
11021
 
    sni)
11022
 
      shlibpath_overrides_runpath=no
11023
 
      need_lib_prefix=no
11024
 
      runpath_var=LD_RUN_PATH
11025
 
      ;;
11026
 
    siemens)
11027
 
      need_lib_prefix=no
11028
 
      ;;
11029
 
    motorola)
11030
 
      need_lib_prefix=no
11031
 
      need_version=no
11032
 
      shlibpath_overrides_runpath=no
11033
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11034
 
      ;;
11035
 
  esac
11036
 
  ;;
11037
 
 
11038
 
sysv4*MP*)
11039
 
  if test -d /usr/nec ;then
11040
 
    version_type=linux
11041
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11042
 
    soname_spec='$libname${shared_ext}.$major'
11043
 
    shlibpath_var=LD_LIBRARY_PATH
11044
 
  fi
11045
 
  ;;
11046
 
 
11047
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11048
 
  version_type=freebsd-elf
11049
 
  need_lib_prefix=no
11050
 
  need_version=no
11051
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11052
 
  soname_spec='${libname}${release}${shared_ext}$major'
11053
 
  shlibpath_var=LD_LIBRARY_PATH
11054
 
  shlibpath_overrides_runpath=yes
11055
 
  hardcode_into_libs=yes
11056
 
  if test "$with_gnu_ld" = yes; then
11057
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11058
 
  else
11059
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11060
 
    case $host_os in
11061
 
      sco3.2v5*)
11062
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11063
 
        ;;
11064
 
    esac
11065
 
  fi
11066
 
  sys_lib_dlsearch_path_spec='/usr/lib'
11067
 
  ;;
11068
 
 
11069
 
tpf*)
11070
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11071
 
  version_type=linux
11072
 
  need_lib_prefix=no
11073
 
  need_version=no
11074
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075
 
  shlibpath_var=LD_LIBRARY_PATH
11076
 
  shlibpath_overrides_runpath=no
11077
 
  hardcode_into_libs=yes
11078
 
  ;;
11079
 
 
11080
 
uts4*)
11081
 
  version_type=linux
11082
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083
 
  soname_spec='${libname}${release}${shared_ext}$major'
11084
 
  shlibpath_var=LD_LIBRARY_PATH
11085
 
  ;;
11086
 
 
11087
 
*)
11088
 
  dynamic_linker=no
11089
 
  ;;
11090
 
esac
11091
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11092
 
$as_echo "$dynamic_linker" >&6; }
11093
 
test "$dynamic_linker" = no && can_build_shared=no
11094
 
 
11095
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11096
 
if test "$GCC" = yes; then
11097
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11098
 
fi
11099
 
 
11100
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11101
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11102
 
fi
11103
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11104
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11105
 
fi
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11194
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11195
 
hardcode_action=
11196
 
if test -n "$hardcode_libdir_flag_spec" ||
11197
 
   test -n "$runpath_var" ||
11198
 
   test "X$hardcode_automatic" = "Xyes" ; then
11199
 
 
11200
 
  # We can hardcode non-existent directories.
11201
 
  if test "$hardcode_direct" != no &&
11202
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11203
 
     # have to relink, otherwise we might link with an installed library
11204
 
     # when we should be linking with a yet-to-be-installed one
11205
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11206
 
     test "$hardcode_minus_L" != no; then
11207
 
    # Linking always hardcodes the temporary library directory.
11208
 
    hardcode_action=relink
11209
 
  else
11210
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11211
 
    hardcode_action=immediate
11212
 
  fi
11213
 
else
11214
 
  # We cannot hardcode anything, or else we can only hardcode existing
11215
 
  # directories.
11216
 
  hardcode_action=unsupported
11217
 
fi
11218
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11219
 
$as_echo "$hardcode_action" >&6; }
11220
 
 
11221
 
if test "$hardcode_action" = relink ||
11222
 
   test "$inherit_rpath" = yes; then
11223
 
  # Fast installation is not supported
11224
 
  enable_fast_install=no
11225
 
elif test "$shlibpath_overrides_runpath" = yes ||
11226
 
     test "$enable_shared" = no; then
11227
 
  # Fast installation is not necessary
11228
 
  enable_fast_install=needless
11229
 
fi
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
  if test "x$enable_dlopen" != xyes; then
11237
 
  enable_dlopen=unknown
11238
 
  enable_dlopen_self=unknown
11239
 
  enable_dlopen_self_static=unknown
11240
 
else
11241
 
  lt_cv_dlopen=no
11242
 
  lt_cv_dlopen_libs=
11243
 
 
11244
 
  case $host_os in
11245
 
  beos*)
11246
 
    lt_cv_dlopen="load_add_on"
11247
 
    lt_cv_dlopen_libs=
11248
 
    lt_cv_dlopen_self=yes
11249
 
    ;;
11250
 
 
11251
 
  mingw* | pw32* | cegcc*)
11252
 
    lt_cv_dlopen="LoadLibrary"
11253
 
    lt_cv_dlopen_libs=
11254
 
    ;;
11255
 
 
11256
 
  cygwin*)
11257
 
    lt_cv_dlopen="dlopen"
11258
 
    lt_cv_dlopen_libs=
11259
 
    ;;
11260
 
 
11261
 
  darwin*)
11262
 
  # if libdl is installed we need to link against it
11263
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11264
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11265
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11266
 
  $as_echo_n "(cached) " >&6
11267
 
else
11268
 
  ac_check_lib_save_LIBS=$LIBS
11269
 
LIBS="-ldl  $LIBS"
11270
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271
 
/* end confdefs.h.  */
11272
 
 
11273
 
/* Override any GCC internal prototype to avoid an error.
11274
 
   Use char because int might match the return type of a GCC
11275
 
   builtin and then its argument prototype would still apply.  */
11276
 
#ifdef __cplusplus
11277
 
extern "C"
11278
 
#endif
11279
 
char dlopen ();
11280
 
int
11281
 
main ()
11282
 
{
11283
 
return dlopen ();
11284
 
  ;
11285
 
  return 0;
11286
 
}
11287
 
_ACEOF
11288
 
if ac_fn_c_try_link "$LINENO"; then :
11289
 
  ac_cv_lib_dl_dlopen=yes
11290
 
else
11291
 
  ac_cv_lib_dl_dlopen=no
11292
 
fi
11293
 
rm -f core conftest.err conftest.$ac_objext \
11294
 
    conftest$ac_exeext conftest.$ac_ext
11295
 
LIBS=$ac_check_lib_save_LIBS
11296
 
fi
11297
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11298
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11299
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11300
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11301
 
else
11302
 
 
11303
 
    lt_cv_dlopen="dyld"
11304
 
    lt_cv_dlopen_libs=
11305
 
    lt_cv_dlopen_self=yes
11306
 
 
11307
 
fi
11308
 
 
11309
 
    ;;
11310
 
 
11311
 
  *)
11312
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11313
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
11314
 
  lt_cv_dlopen="shl_load"
11315
 
else
11316
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11317
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11318
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11319
 
  $as_echo_n "(cached) " >&6
11320
 
else
11321
 
  ac_check_lib_save_LIBS=$LIBS
11322
 
LIBS="-ldld  $LIBS"
11323
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324
 
/* end confdefs.h.  */
11325
 
 
11326
 
/* Override any GCC internal prototype to avoid an error.
11327
 
   Use char because int might match the return type of a GCC
11328
 
   builtin and then its argument prototype would still apply.  */
11329
 
#ifdef __cplusplus
11330
 
extern "C"
11331
 
#endif
11332
 
char shl_load ();
11333
 
int
11334
 
main ()
11335
 
{
11336
 
return shl_load ();
11337
 
  ;
11338
 
  return 0;
11339
 
}
11340
 
_ACEOF
11341
 
if ac_fn_c_try_link "$LINENO"; then :
11342
 
  ac_cv_lib_dld_shl_load=yes
11343
 
else
11344
 
  ac_cv_lib_dld_shl_load=no
11345
 
fi
11346
 
rm -f core conftest.err conftest.$ac_objext \
11347
 
    conftest$ac_exeext conftest.$ac_ext
11348
 
LIBS=$ac_check_lib_save_LIBS
11349
 
fi
11350
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11351
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11352
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11353
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11354
 
else
11355
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11356
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
11357
 
  lt_cv_dlopen="dlopen"
11358
 
else
11359
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11360
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11361
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11362
 
  $as_echo_n "(cached) " >&6
11363
 
else
11364
 
  ac_check_lib_save_LIBS=$LIBS
11365
 
LIBS="-ldl  $LIBS"
11366
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367
 
/* end confdefs.h.  */
11368
 
 
11369
 
/* Override any GCC internal prototype to avoid an error.
11370
 
   Use char because int might match the return type of a GCC
11371
 
   builtin and then its argument prototype would still apply.  */
11372
 
#ifdef __cplusplus
11373
 
extern "C"
11374
 
#endif
11375
 
char dlopen ();
11376
 
int
11377
 
main ()
11378
 
{
11379
 
return dlopen ();
11380
 
  ;
11381
 
  return 0;
11382
 
}
11383
 
_ACEOF
11384
 
if ac_fn_c_try_link "$LINENO"; then :
11385
 
  ac_cv_lib_dl_dlopen=yes
11386
 
else
11387
 
  ac_cv_lib_dl_dlopen=no
11388
 
fi
11389
 
rm -f core conftest.err conftest.$ac_objext \
11390
 
    conftest$ac_exeext conftest.$ac_ext
11391
 
LIBS=$ac_check_lib_save_LIBS
11392
 
fi
11393
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11394
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11395
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11396
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11397
 
else
11398
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11399
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11400
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11401
 
  $as_echo_n "(cached) " >&6
11402
 
else
11403
 
  ac_check_lib_save_LIBS=$LIBS
11404
 
LIBS="-lsvld  $LIBS"
11405
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406
 
/* end confdefs.h.  */
11407
 
 
11408
 
/* Override any GCC internal prototype to avoid an error.
11409
 
   Use char because int might match the return type of a GCC
11410
 
   builtin and then its argument prototype would still apply.  */
11411
 
#ifdef __cplusplus
11412
 
extern "C"
11413
 
#endif
11414
 
char dlopen ();
11415
 
int
11416
 
main ()
11417
 
{
11418
 
return dlopen ();
11419
 
  ;
11420
 
  return 0;
11421
 
}
11422
 
_ACEOF
11423
 
if ac_fn_c_try_link "$LINENO"; then :
11424
 
  ac_cv_lib_svld_dlopen=yes
11425
 
else
11426
 
  ac_cv_lib_svld_dlopen=no
11427
 
fi
11428
 
rm -f core conftest.err conftest.$ac_objext \
11429
 
    conftest$ac_exeext conftest.$ac_ext
11430
 
LIBS=$ac_check_lib_save_LIBS
11431
 
fi
11432
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11433
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11434
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11435
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11436
 
else
11437
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11438
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11439
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11440
 
  $as_echo_n "(cached) " >&6
11441
 
else
11442
 
  ac_check_lib_save_LIBS=$LIBS
11443
 
LIBS="-ldld  $LIBS"
11444
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445
 
/* end confdefs.h.  */
11446
 
 
11447
 
/* Override any GCC internal prototype to avoid an error.
11448
 
   Use char because int might match the return type of a GCC
11449
 
   builtin and then its argument prototype would still apply.  */
11450
 
#ifdef __cplusplus
11451
 
extern "C"
11452
 
#endif
11453
 
char dld_link ();
11454
 
int
11455
 
main ()
11456
 
{
11457
 
return dld_link ();
11458
 
  ;
11459
 
  return 0;
11460
 
}
11461
 
_ACEOF
11462
 
if ac_fn_c_try_link "$LINENO"; then :
11463
 
  ac_cv_lib_dld_dld_link=yes
11464
 
else
11465
 
  ac_cv_lib_dld_dld_link=no
11466
 
fi
11467
 
rm -f core conftest.err conftest.$ac_objext \
11468
 
    conftest$ac_exeext conftest.$ac_ext
11469
 
LIBS=$ac_check_lib_save_LIBS
11470
 
fi
11471
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11472
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11473
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11474
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11475
 
fi
11476
 
 
11477
 
 
11478
 
fi
11479
 
 
11480
 
 
11481
 
fi
11482
 
 
11483
 
 
11484
 
fi
11485
 
 
11486
 
 
11487
 
fi
11488
 
 
11489
 
 
11490
 
fi
11491
 
 
11492
 
    ;;
11493
 
  esac
11494
 
 
11495
 
  if test "x$lt_cv_dlopen" != xno; then
11496
 
    enable_dlopen=yes
11497
 
  else
11498
 
    enable_dlopen=no
11499
 
  fi
11500
 
 
11501
 
  case $lt_cv_dlopen in
11502
 
  dlopen)
11503
 
    save_CPPFLAGS="$CPPFLAGS"
11504
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11505
 
 
11506
 
    save_LDFLAGS="$LDFLAGS"
11507
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11508
 
 
11509
 
    save_LIBS="$LIBS"
11510
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
11511
 
 
11512
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11513
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11514
 
if test "${lt_cv_dlopen_self+set}" = set; then :
11515
 
  $as_echo_n "(cached) " >&6
11516
 
else
11517
 
          if test "$cross_compiling" = yes; then :
11518
 
  lt_cv_dlopen_self=cross
11519
 
else
11520
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11521
 
  lt_status=$lt_dlunknown
11522
 
  cat > conftest.$ac_ext <<_LT_EOF
11523
 
#line 11523 "configure"
11524
 
#include "confdefs.h"
11525
 
 
11526
 
#if HAVE_DLFCN_H
11527
 
#include <dlfcn.h>
11528
 
#endif
11529
 
 
11530
 
#include <stdio.h>
11531
 
 
11532
 
#ifdef RTLD_GLOBAL
11533
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11534
 
#else
11535
 
#  ifdef DL_GLOBAL
11536
 
#    define LT_DLGLOBAL         DL_GLOBAL
11537
 
#  else
11538
 
#    define LT_DLGLOBAL         0
11539
 
#  endif
11540
 
#endif
11541
 
 
11542
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11543
 
   find out it does not work in some platform. */
11544
 
#ifndef LT_DLLAZY_OR_NOW
11545
 
#  ifdef RTLD_LAZY
11546
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11547
 
#  else
11548
 
#    ifdef DL_LAZY
11549
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11550
 
#    else
11551
 
#      ifdef RTLD_NOW
11552
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11553
 
#      else
11554
 
#        ifdef DL_NOW
11555
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11556
 
#        else
11557
 
#          define LT_DLLAZY_OR_NOW      0
11558
 
#        endif
11559
 
#      endif
11560
 
#    endif
11561
 
#  endif
11562
 
#endif
11563
 
 
11564
 
void fnord() { int i=42;}
11565
 
int main ()
11566
 
{
11567
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11568
 
  int status = $lt_dlunknown;
11569
 
 
11570
 
  if (self)
11571
 
    {
11572
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11573
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11574
 
      /* dlclose (self); */
11575
 
    }
11576
 
  else
11577
 
    puts (dlerror ());
11578
 
 
11579
 
  return status;
11580
 
}
11581
 
_LT_EOF
11582
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11583
 
  (eval $ac_link) 2>&5
11584
 
  ac_status=$?
11585
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11587
 
    (./conftest; exit; ) >&5 2>/dev/null
11588
 
    lt_status=$?
11589
 
    case x$lt_status in
11590
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11591
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11592
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11593
 
    esac
11594
 
  else :
11595
 
    # compilation failed
11596
 
    lt_cv_dlopen_self=no
11597
 
  fi
11598
 
fi
11599
 
rm -fr conftest*
11600
 
 
11601
 
 
11602
 
fi
11603
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11604
 
$as_echo "$lt_cv_dlopen_self" >&6; }
11605
 
 
11606
 
    if test "x$lt_cv_dlopen_self" = xyes; then
11607
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11608
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11609
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11610
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11611
 
  $as_echo_n "(cached) " >&6
11612
 
else
11613
 
          if test "$cross_compiling" = yes; then :
11614
 
  lt_cv_dlopen_self_static=cross
11615
 
else
11616
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11617
 
  lt_status=$lt_dlunknown
11618
 
  cat > conftest.$ac_ext <<_LT_EOF
11619
 
#line 11619 "configure"
11620
 
#include "confdefs.h"
11621
 
 
11622
 
#if HAVE_DLFCN_H
11623
 
#include <dlfcn.h>
11624
 
#endif
11625
 
 
11626
 
#include <stdio.h>
11627
 
 
11628
 
#ifdef RTLD_GLOBAL
11629
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
11630
 
#else
11631
 
#  ifdef DL_GLOBAL
11632
 
#    define LT_DLGLOBAL         DL_GLOBAL
11633
 
#  else
11634
 
#    define LT_DLGLOBAL         0
11635
 
#  endif
11636
 
#endif
11637
 
 
11638
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11639
 
   find out it does not work in some platform. */
11640
 
#ifndef LT_DLLAZY_OR_NOW
11641
 
#  ifdef RTLD_LAZY
11642
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11643
 
#  else
11644
 
#    ifdef DL_LAZY
11645
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11646
 
#    else
11647
 
#      ifdef RTLD_NOW
11648
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11649
 
#      else
11650
 
#        ifdef DL_NOW
11651
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
11652
 
#        else
11653
 
#          define LT_DLLAZY_OR_NOW      0
11654
 
#        endif
11655
 
#      endif
11656
 
#    endif
11657
 
#  endif
11658
 
#endif
11659
 
 
11660
 
void fnord() { int i=42;}
11661
 
int main ()
11662
 
{
11663
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11664
 
  int status = $lt_dlunknown;
11665
 
 
11666
 
  if (self)
11667
 
    {
11668
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11669
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670
 
      /* dlclose (self); */
11671
 
    }
11672
 
  else
11673
 
    puts (dlerror ());
11674
 
 
11675
 
  return status;
11676
 
}
11677
 
_LT_EOF
11678
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11679
 
  (eval $ac_link) 2>&5
11680
 
  ac_status=$?
11681
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11683
 
    (./conftest; exit; ) >&5 2>/dev/null
11684
 
    lt_status=$?
11685
 
    case x$lt_status in
11686
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11687
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11688
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11689
 
    esac
11690
 
  else :
11691
 
    # compilation failed
11692
 
    lt_cv_dlopen_self_static=no
11693
 
  fi
11694
 
fi
11695
 
rm -fr conftest*
11696
 
 
11697
 
 
11698
 
fi
11699
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11700
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11701
 
    fi
11702
 
 
11703
 
    CPPFLAGS="$save_CPPFLAGS"
11704
 
    LDFLAGS="$save_LDFLAGS"
11705
 
    LIBS="$save_LIBS"
11706
 
    ;;
11707
 
  esac
11708
 
 
11709
 
  case $lt_cv_dlopen_self in
11710
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11711
 
  *) enable_dlopen_self=unknown ;;
11712
 
  esac
11713
 
 
11714
 
  case $lt_cv_dlopen_self_static in
11715
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11716
 
  *) enable_dlopen_self_static=unknown ;;
11717
 
  esac
11718
 
fi
11719
 
 
11720
 
 
11721
 
 
11722
 
 
11723
 
 
11724
 
 
11725
 
 
11726
 
 
11727
 
 
11728
 
 
11729
 
 
11730
 
 
11731
 
 
11732
 
 
11733
 
 
11734
 
 
11735
 
 
11736
 
striplib=
11737
 
old_striplib=
11738
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11739
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11740
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11741
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11742
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11743
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744
 
$as_echo "yes" >&6; }
11745
 
else
11746
 
# FIXME - insert some real tests, host_os isn't really good enough
11747
 
  case $host_os in
11748
 
  darwin*)
11749
 
    if test -n "$STRIP" ; then
11750
 
      striplib="$STRIP -x"
11751
 
      old_striplib="$STRIP -S"
11752
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753
 
$as_echo "yes" >&6; }
11754
 
    else
11755
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756
 
$as_echo "no" >&6; }
11757
 
    fi
11758
 
    ;;
11759
 
  *)
11760
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761
 
$as_echo "no" >&6; }
11762
 
    ;;
11763
 
  esac
11764
 
fi
11765
 
 
11766
 
 
11767
 
 
11768
 
 
11769
 
 
11770
 
 
11771
 
 
11772
 
 
11773
 
 
11774
 
 
11775
 
 
11776
 
 
11777
 
  # Report which library types will actually be built
11778
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11779
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11780
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11781
 
$as_echo "$can_build_shared" >&6; }
11782
 
 
11783
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11784
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11785
 
  test "$can_build_shared" = "no" && enable_shared=no
11786
 
 
11787
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11788
 
  # are all built from PIC.
11789
 
  case $host_os in
11790
 
  aix3*)
11791
 
    test "$enable_shared" = yes && enable_static=no
11792
 
    if test -n "$RANLIB"; then
11793
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11794
 
      postinstall_cmds='$RANLIB $lib'
11795
 
    fi
11796
 
    ;;
11797
 
 
11798
 
  aix[4-9]*)
11799
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11800
 
      test "$enable_shared" = yes && enable_static=no
11801
 
    fi
11802
 
    ;;
11803
 
  esac
11804
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11805
 
$as_echo "$enable_shared" >&6; }
11806
 
 
11807
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11808
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11809
 
  # Make sure either enable_shared or enable_static is yes.
11810
 
  test "$enable_shared" = yes || enable_static=yes
11811
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11812
 
$as_echo "$enable_static" >&6; }
11813
 
 
11814
 
 
11815
 
 
11816
 
 
11817
 
fi
11818
 
ac_ext=c
11819
 
ac_cpp='$CPP $CPPFLAGS'
11820
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823
 
 
11824
 
CC="$lt_save_CC"
11825
 
 
11826
 
 
11827
 
ac_ext=cpp
11828
 
ac_cpp='$CXXCPP $CPPFLAGS'
11829
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11832
 
 
11833
 
archive_cmds_need_lc_CXX=no
11834
 
allow_undefined_flag_CXX=
11835
 
always_export_symbols_CXX=no
11836
 
archive_expsym_cmds_CXX=
11837
 
compiler_needs_object_CXX=no
11838
 
export_dynamic_flag_spec_CXX=
11839
 
hardcode_direct_CXX=no
11840
 
hardcode_direct_absolute_CXX=no
11841
 
hardcode_libdir_flag_spec_CXX=
11842
 
hardcode_libdir_flag_spec_ld_CXX=
11843
 
hardcode_libdir_separator_CXX=
11844
 
hardcode_minus_L_CXX=no
11845
 
hardcode_shlibpath_var_CXX=unsupported
11846
 
hardcode_automatic_CXX=no
11847
 
inherit_rpath_CXX=no
11848
 
module_cmds_CXX=
11849
 
module_expsym_cmds_CXX=
11850
 
link_all_deplibs_CXX=unknown
11851
 
old_archive_cmds_CXX=$old_archive_cmds
11852
 
no_undefined_flag_CXX=
11853
 
whole_archive_flag_spec_CXX=
11854
 
enable_shared_with_static_runtimes_CXX=no
11855
 
 
11856
 
# Source file extension for C++ test sources.
11857
 
ac_ext=cpp
11858
 
 
11859
 
# Object file extension for compiled C++ test sources.
11860
 
objext=o
11861
 
objext_CXX=$objext
11862
 
 
11863
 
# No sense in running all these tests if we already determined that
11864
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
11865
 
# are currently assumed to apply to all compilers on this platform,
11866
 
# and will be corrupted by setting them based on a non-working compiler.
11867
 
if test "$_lt_caught_CXX_error" != yes; then
11868
 
  # Code to be used in simple compile tests
11869
 
  lt_simple_compile_test_code="int some_variable = 0;"
11870
 
 
11871
 
  # Code to be used in simple link tests
11872
 
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11873
 
 
11874
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11875
 
 
11876
 
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
 
# If no C compiler was specified, use CC.
11882
 
LTCC=${LTCC-"$CC"}
11883
 
 
11884
 
# If no C compiler flags were specified, use CFLAGS.
11885
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11886
 
 
11887
 
# Allow CC to be a program name with arguments.
11888
 
compiler=$CC
11889
 
 
11890
 
 
11891
 
  # save warnings/boilerplate of simple test code
11892
 
  ac_outfile=conftest.$ac_objext
11893
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11894
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11895
 
_lt_compiler_boilerplate=`cat conftest.err`
11896
 
$RM conftest*
11897
 
 
11898
 
  ac_outfile=conftest.$ac_objext
11899
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11900
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11901
 
_lt_linker_boilerplate=`cat conftest.err`
11902
 
$RM -r conftest*
11903
 
 
11904
 
 
11905
 
  # Allow CC to be a program name with arguments.
11906
 
  lt_save_CC=$CC
11907
 
  lt_save_LD=$LD
11908
 
  lt_save_GCC=$GCC
11909
 
  GCC=$GXX
11910
 
  lt_save_with_gnu_ld=$with_gnu_ld
11911
 
  lt_save_path_LD=$lt_cv_path_LD
11912
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11913
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11914
 
  else
11915
 
    $as_unset lt_cv_prog_gnu_ld
11916
 
  fi
11917
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
11918
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
11919
 
  else
11920
 
    $as_unset lt_cv_path_LD
11921
 
  fi
11922
 
  test -z "${LDCXX+set}" || LD=$LDCXX
11923
 
  CC=${CXX-"c++"}
11924
 
  compiler=$CC
11925
 
  compiler_CXX=$CC
11926
 
  for cc_temp in $compiler""; do
11927
 
  case $cc_temp in
11928
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11929
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11930
 
    \-*) ;;
11931
 
    *) break;;
11932
 
  esac
11933
 
done
11934
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11935
 
 
11936
 
 
11937
 
  if test -n "$compiler"; then
11938
 
    # We don't want -fno-exception when compiling C++ code, so set the
11939
 
    # no_builtin_flag separately
11940
 
    if test "$GXX" = yes; then
11941
 
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11942
 
    else
11943
 
      lt_prog_compiler_no_builtin_flag_CXX=
11944
 
    fi
11945
 
 
11946
 
    if test "$GXX" = yes; then
11947
 
      # Set up default GNU C++ configuration
11948
 
 
11949
 
 
11950
 
 
11951
 
# Check whether --with-gnu-ld was given.
11952
 
if test "${with_gnu_ld+set}" = set; then :
11953
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11954
 
else
11955
 
  with_gnu_ld=no
11956
 
fi
11957
 
 
11958
 
ac_prog=ld
11959
 
if test "$GCC" = yes; then
11960
 
  # Check if gcc -print-prog-name=ld gives a path.
11961
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11962
 
$as_echo_n "checking for ld used by $CC... " >&6; }
11963
 
  case $host in
11964
 
  *-*-mingw*)
11965
 
    # gcc leaves a trailing carriage return which upsets mingw
11966
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11967
 
  *)
11968
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11969
 
  esac
11970
 
  case $ac_prog in
11971
 
    # Accept absolute paths.
11972
 
    [\\/]* | ?:[\\/]*)
11973
 
      re_direlt='/[^/][^/]*/\.\./'
11974
 
      # Canonicalize the pathname of ld
11975
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11976
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11977
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11978
 
      done
11979
 
      test -z "$LD" && LD="$ac_prog"
11980
 
      ;;
11981
 
  "")
11982
 
    # If it fails, then pretend we aren't using GCC.
11983
 
    ac_prog=ld
11984
 
    ;;
11985
 
  *)
11986
 
    # If it is relative, then search for the first ld in PATH.
11987
 
    with_gnu_ld=unknown
11988
 
    ;;
11989
 
  esac
11990
 
elif test "$with_gnu_ld" = yes; then
11991
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11992
 
$as_echo_n "checking for GNU ld... " >&6; }
11993
 
else
11994
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11995
 
$as_echo_n "checking for non-GNU ld... " >&6; }
11996
 
fi
11997
 
if test "${lt_cv_path_LD+set}" = set; then :
11998
 
  $as_echo_n "(cached) " >&6
11999
 
else
12000
 
  if test -z "$LD"; then
12001
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12002
 
  for ac_dir in $PATH; do
12003
 
    IFS="$lt_save_ifs"
12004
 
    test -z "$ac_dir" && ac_dir=.
12005
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12006
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
12007
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
12008
 
      # but apparently some variants of GNU ld only accept -v.
12009
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
12010
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12011
 
      *GNU* | *'with BFD'*)
12012
 
        test "$with_gnu_ld" != no && break
12013
 
        ;;
12014
 
      *)
12015
 
        test "$with_gnu_ld" != yes && break
12016
 
        ;;
12017
 
      esac
12018
 
    fi
12019
 
  done
12020
 
  IFS="$lt_save_ifs"
12021
 
else
12022
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12023
 
fi
12024
 
fi
12025
 
 
12026
 
LD="$lt_cv_path_LD"
12027
 
if test -n "$LD"; then
12028
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12029
 
$as_echo "$LD" >&6; }
12030
 
else
12031
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032
 
$as_echo "no" >&6; }
12033
 
fi
12034
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12035
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12036
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12037
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12038
 
  $as_echo_n "(cached) " >&6
12039
 
else
12040
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12041
 
case `$LD -v 2>&1 </dev/null` in
12042
 
*GNU* | *'with BFD'*)
12043
 
  lt_cv_prog_gnu_ld=yes
12044
 
  ;;
12045
 
*)
12046
 
  lt_cv_prog_gnu_ld=no
12047
 
  ;;
12048
 
esac
12049
 
fi
12050
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12051
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12052
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12061
 
      # archiving commands below assume that GNU ld is being used.
12062
 
      if test "$with_gnu_ld" = yes; then
12063
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12064
 
        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'
12065
 
 
12066
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12067
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12068
 
 
12069
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
12070
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12071
 
        #     investigate it a little bit more. (MM)
12072
 
        wlarc='${wl}'
12073
 
 
12074
 
        # ancient GNU ld didn't support --whole-archive et. al.
12075
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12076
 
          $GREP 'no-whole-archive' > /dev/null; then
12077
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12078
 
        else
12079
 
          whole_archive_flag_spec_CXX=
12080
 
        fi
12081
 
      else
12082
 
        with_gnu_ld=no
12083
 
        wlarc=
12084
 
 
12085
 
        # A generic and very simple default shared library creation
12086
 
        # command for GNU C++ for the case where it uses the native
12087
 
        # linker, instead of GNU ld.  If possible, this setting should
12088
 
        # overridden to take advantage of the native linker features on
12089
 
        # the platform it is being used on.
12090
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12091
 
      fi
12092
 
 
12093
 
      # Commands to make compiler produce verbose output that lists
12094
 
      # what "hidden" libraries, object files and flags are used when
12095
 
      # linking a shared library.
12096
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12097
 
 
12098
 
    else
12099
 
      GXX=no
12100
 
      with_gnu_ld=no
12101
 
      wlarc=
12102
 
    fi
12103
 
 
12104
 
    # PORTME: fill in a description of your system's C++ link characteristics
12105
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12106
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12107
 
    ld_shlibs_CXX=yes
12108
 
    case $host_os in
12109
 
      aix3*)
12110
 
        # FIXME: insert proper C++ library support
12111
 
        ld_shlibs_CXX=no
12112
 
        ;;
12113
 
      aix[4-9]*)
12114
 
        if test "$host_cpu" = ia64; then
12115
 
          # On IA64, the linker does run time linking by default, so we don't
12116
 
          # have to do anything special.
12117
 
          aix_use_runtimelinking=no
12118
 
          exp_sym_flag='-Bexport'
12119
 
          no_entry_flag=""
12120
 
        else
12121
 
          aix_use_runtimelinking=no
12122
 
 
12123
 
          # Test if we are trying to use run time linking or normal
12124
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12125
 
          # need to do runtime linking.
12126
 
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12127
 
            for ld_flag in $LDFLAGS; do
12128
 
              case $ld_flag in
12129
 
              *-brtl*)
12130
 
                aix_use_runtimelinking=yes
12131
 
                break
12132
 
                ;;
12133
 
              esac
12134
 
            done
12135
 
            ;;
12136
 
          esac
12137
 
 
12138
 
          exp_sym_flag='-bexport'
12139
 
          no_entry_flag='-bnoentry'
12140
 
        fi
12141
 
 
12142
 
        # When large executables or shared objects are built, AIX ld can
12143
 
        # have problems creating the table of contents.  If linking a library
12144
 
        # or program results in "error TOC overflow" add -mminimal-toc to
12145
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12146
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12147
 
 
12148
 
        archive_cmds_CXX=''
12149
 
        hardcode_direct_CXX=yes
12150
 
        hardcode_direct_absolute_CXX=yes
12151
 
        hardcode_libdir_separator_CXX=':'
12152
 
        link_all_deplibs_CXX=yes
12153
 
        file_list_spec_CXX='${wl}-f,'
12154
 
 
12155
 
        if test "$GXX" = yes; then
12156
 
          case $host_os in aix4.[012]|aix4.[012].*)
12157
 
          # We only want to do this on AIX 4.2 and lower, the check
12158
 
          # below for broken collect2 doesn't work under 4.3+
12159
 
          collect2name=`${CC} -print-prog-name=collect2`
12160
 
          if test -f "$collect2name" &&
12161
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12162
 
          then
12163
 
            # We have reworked collect2
12164
 
            :
12165
 
          else
12166
 
            # We have old collect2
12167
 
            hardcode_direct_CXX=unsupported
12168
 
            # It fails to find uninstalled libraries when the uninstalled
12169
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
12170
 
            # to unsupported forces relinking
12171
 
            hardcode_minus_L_CXX=yes
12172
 
            hardcode_libdir_flag_spec_CXX='-L$libdir'
12173
 
            hardcode_libdir_separator_CXX=
12174
 
          fi
12175
 
          esac
12176
 
          shared_flag='-shared'
12177
 
          if test "$aix_use_runtimelinking" = yes; then
12178
 
            shared_flag="$shared_flag "'${wl}-G'
12179
 
          fi
12180
 
        else
12181
 
          # not using gcc
12182
 
          if test "$host_cpu" = ia64; then
12183
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12184
 
          # chokes on -Wl,-G. The following line is correct:
12185
 
          shared_flag='-G'
12186
 
          else
12187
 
            if test "$aix_use_runtimelinking" = yes; then
12188
 
              shared_flag='${wl}-G'
12189
 
            else
12190
 
              shared_flag='${wl}-bM:SRE'
12191
 
            fi
12192
 
          fi
12193
 
        fi
12194
 
 
12195
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12196
 
        # It seems that -bexpall does not export symbols beginning with
12197
 
        # underscore (_), so it is better to generate a list of symbols to
12198
 
        # export.
12199
 
        always_export_symbols_CXX=yes
12200
 
        if test "$aix_use_runtimelinking" = yes; then
12201
 
          # Warning - without using the other runtime loading flags (-brtl),
12202
 
          # -berok will link without error, but may produce a broken library.
12203
 
          allow_undefined_flag_CXX='-berok'
12204
 
          # Determine the default libpath from the value encoded in an empty
12205
 
          # executable.
12206
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207
 
/* end confdefs.h.  */
12208
 
 
12209
 
int
12210
 
main ()
12211
 
{
12212
 
 
12213
 
  ;
12214
 
  return 0;
12215
 
}
12216
 
_ACEOF
12217
 
if ac_fn_cxx_try_link "$LINENO"; then :
12218
 
 
12219
 
lt_aix_libpath_sed='
12220
 
    /Import File Strings/,/^$/ {
12221
 
        /^0/ {
12222
 
            s/^0  *\(.*\)$/\1/
12223
 
            p
12224
 
        }
12225
 
    }'
12226
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12227
 
# Check for a 64-bit object if we didn't find anything.
12228
 
if test -z "$aix_libpath"; then
12229
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12230
 
fi
12231
 
fi
12232
 
rm -f core conftest.err conftest.$ac_objext \
12233
 
    conftest$ac_exeext conftest.$ac_ext
12234
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12235
 
 
12236
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12237
 
 
12238
 
          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"
12239
 
        else
12240
 
          if test "$host_cpu" = ia64; then
12241
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12242
 
            allow_undefined_flag_CXX="-z nodefs"
12243
 
            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"
12244
 
          else
12245
 
            # Determine the default libpath from the value encoded in an
12246
 
            # empty executable.
12247
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248
 
/* end confdefs.h.  */
12249
 
 
12250
 
int
12251
 
main ()
12252
 
{
12253
 
 
12254
 
  ;
12255
 
  return 0;
12256
 
}
12257
 
_ACEOF
12258
 
if ac_fn_cxx_try_link "$LINENO"; then :
12259
 
 
12260
 
lt_aix_libpath_sed='
12261
 
    /Import File Strings/,/^$/ {
12262
 
        /^0/ {
12263
 
            s/^0  *\(.*\)$/\1/
12264
 
            p
12265
 
        }
12266
 
    }'
12267
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12268
 
# Check for a 64-bit object if we didn't find anything.
12269
 
if test -z "$aix_libpath"; then
12270
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12271
 
fi
12272
 
fi
12273
 
rm -f core conftest.err conftest.$ac_objext \
12274
 
    conftest$ac_exeext conftest.$ac_ext
12275
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12276
 
 
12277
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12278
 
            # Warning - without using the other run time loading flags,
12279
 
            # -berok will link without error, but may produce a broken library.
12280
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
12281
 
            allow_undefined_flag_CXX=' ${wl}-berok'
12282
 
            # Exported symbols can be pulled into shared objects from archives
12283
 
            whole_archive_flag_spec_CXX='$convenience'
12284
 
            archive_cmds_need_lc_CXX=yes
12285
 
            # This is similar to how AIX traditionally builds its shared
12286
 
            # libraries.
12287
 
            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'
12288
 
          fi
12289
 
        fi
12290
 
        ;;
12291
 
 
12292
 
      beos*)
12293
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12294
 
          allow_undefined_flag_CXX=unsupported
12295
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12296
 
          # support --undefined.  This deserves some investigation.  FIXME
12297
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12298
 
        else
12299
 
          ld_shlibs_CXX=no
12300
 
        fi
12301
 
        ;;
12302
 
 
12303
 
      chorus*)
12304
 
        case $cc_basename in
12305
 
          *)
12306
 
          # FIXME: insert proper C++ library support
12307
 
          ld_shlibs_CXX=no
12308
 
          ;;
12309
 
        esac
12310
 
        ;;
12311
 
 
12312
 
      cygwin* | mingw* | pw32* | cegcc*)
12313
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12314
 
        # as there is no search path for DLLs.
12315
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12316
 
        allow_undefined_flag_CXX=unsupported
12317
 
        always_export_symbols_CXX=no
12318
 
        enable_shared_with_static_runtimes_CXX=yes
12319
 
 
12320
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12321
 
          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'
12322
 
          # If the export-symbols file already is a .def file (1st line
12323
 
          # is EXPORTS), use it as is; otherwise, prepend...
12324
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12325
 
            cp $export_symbols $output_objdir/$soname.def;
12326
 
          else
12327
 
            echo EXPORTS > $output_objdir/$soname.def;
12328
 
            cat $export_symbols >> $output_objdir/$soname.def;
12329
 
          fi~
12330
 
          $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'
12331
 
        else
12332
 
          ld_shlibs_CXX=no
12333
 
        fi
12334
 
        ;;
12335
 
      darwin* | rhapsody*)
12336
 
 
12337
 
 
12338
 
  archive_cmds_need_lc_CXX=no
12339
 
  hardcode_direct_CXX=no
12340
 
  hardcode_automatic_CXX=yes
12341
 
  hardcode_shlibpath_var_CXX=unsupported
12342
 
  whole_archive_flag_spec_CXX=''
12343
 
  link_all_deplibs_CXX=yes
12344
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12345
 
  case $cc_basename in
12346
 
     ifort*) _lt_dar_can_shared=yes ;;
12347
 
     *) _lt_dar_can_shared=$GCC ;;
12348
 
  esac
12349
 
  if test "$_lt_dar_can_shared" = "yes"; then
12350
 
    output_verbose_link_cmd=echo
12351
 
    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}"
12352
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12353
 
    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}"
12354
 
    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}"
12355
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12356
 
      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}"
12357
 
      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}"
12358
 
    fi
12359
 
 
12360
 
  else
12361
 
  ld_shlibs_CXX=no
12362
 
  fi
12363
 
 
12364
 
        ;;
12365
 
 
12366
 
      dgux*)
12367
 
        case $cc_basename in
12368
 
          ec++*)
12369
 
            # FIXME: insert proper C++ library support
12370
 
            ld_shlibs_CXX=no
12371
 
            ;;
12372
 
          ghcx*)
12373
 
            # Green Hills C++ Compiler
12374
 
            # FIXME: insert proper C++ library support
12375
 
            ld_shlibs_CXX=no
12376
 
            ;;
12377
 
          *)
12378
 
            # FIXME: insert proper C++ library support
12379
 
            ld_shlibs_CXX=no
12380
 
            ;;
12381
 
        esac
12382
 
        ;;
12383
 
 
12384
 
      freebsd[12]*)
12385
 
        # C++ shared libraries reported to be fairly broken before
12386
 
        # switch to ELF
12387
 
        ld_shlibs_CXX=no
12388
 
        ;;
12389
 
 
12390
 
      freebsd-elf*)
12391
 
        archive_cmds_need_lc_CXX=no
12392
 
        ;;
12393
 
 
12394
 
      freebsd* | dragonfly*)
12395
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12396
 
        # conventions
12397
 
        ld_shlibs_CXX=yes
12398
 
        ;;
12399
 
 
12400
 
      gnu*)
12401
 
        ;;
12402
 
 
12403
 
      hpux9*)
12404
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12405
 
        hardcode_libdir_separator_CXX=:
12406
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12407
 
        hardcode_direct_CXX=yes
12408
 
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12409
 
                                             # but as the default
12410
 
                                             # location of the library.
12411
 
 
12412
 
        case $cc_basename in
12413
 
          CC*)
12414
 
            # FIXME: insert proper C++ library support
12415
 
            ld_shlibs_CXX=no
12416
 
            ;;
12417
 
          aCC*)
12418
 
            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'
12419
 
            # Commands to make compiler produce verbose output that lists
12420
 
            # what "hidden" libraries, object files and flags are used when
12421
 
            # linking a shared library.
12422
 
            #
12423
 
            # There doesn't appear to be a way to prevent this compiler from
12424
 
            # explicitly linking system object files so we need to strip them
12425
 
            # from the output so that they don't get included in the library
12426
 
            # dependencies.
12427
 
            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'
12428
 
            ;;
12429
 
          *)
12430
 
            if test "$GXX" = yes; then
12431
 
              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'
12432
 
            else
12433
 
              # FIXME: insert proper C++ library support
12434
 
              ld_shlibs_CXX=no
12435
 
            fi
12436
 
            ;;
12437
 
        esac
12438
 
        ;;
12439
 
 
12440
 
      hpux10*|hpux11*)
12441
 
        if test $with_gnu_ld = no; then
12442
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12443
 
          hardcode_libdir_separator_CXX=:
12444
 
 
12445
 
          case $host_cpu in
12446
 
            hppa*64*|ia64*)
12447
 
              ;;
12448
 
            *)
12449
 
              export_dynamic_flag_spec_CXX='${wl}-E'
12450
 
              ;;
12451
 
          esac
12452
 
        fi
12453
 
        case $host_cpu in
12454
 
          hppa*64*|ia64*)
12455
 
            hardcode_direct_CXX=no
12456
 
            hardcode_shlibpath_var_CXX=no
12457
 
            ;;
12458
 
          *)
12459
 
            hardcode_direct_CXX=yes
12460
 
            hardcode_direct_absolute_CXX=yes
12461
 
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12462
 
                                                 # but as the default
12463
 
                                                 # location of the library.
12464
 
            ;;
12465
 
        esac
12466
 
 
12467
 
        case $cc_basename in
12468
 
          CC*)
12469
 
            # FIXME: insert proper C++ library support
12470
 
            ld_shlibs_CXX=no
12471
 
            ;;
12472
 
          aCC*)
12473
 
            case $host_cpu in
12474
 
              hppa*64*)
12475
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12476
 
                ;;
12477
 
              ia64*)
12478
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12479
 
                ;;
12480
 
              *)
12481
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12482
 
                ;;
12483
 
            esac
12484
 
            # Commands to make compiler produce verbose output that lists
12485
 
            # what "hidden" libraries, object files and flags are used when
12486
 
            # linking a shared library.
12487
 
            #
12488
 
            # There doesn't appear to be a way to prevent this compiler from
12489
 
            # explicitly linking system object files so we need to strip them
12490
 
            # from the output so that they don't get included in the library
12491
 
            # dependencies.
12492
 
            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'
12493
 
            ;;
12494
 
          *)
12495
 
            if test "$GXX" = yes; then
12496
 
              if test $with_gnu_ld = no; then
12497
 
                case $host_cpu in
12498
 
                  hppa*64*)
12499
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12500
 
                    ;;
12501
 
                  ia64*)
12502
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12503
 
                    ;;
12504
 
                  *)
12505
 
                    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'
12506
 
                    ;;
12507
 
                esac
12508
 
              fi
12509
 
            else
12510
 
              # FIXME: insert proper C++ library support
12511
 
              ld_shlibs_CXX=no
12512
 
            fi
12513
 
            ;;
12514
 
        esac
12515
 
        ;;
12516
 
 
12517
 
      interix[3-9]*)
12518
 
        hardcode_direct_CXX=no
12519
 
        hardcode_shlibpath_var_CXX=no
12520
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12521
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12522
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12523
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
12524
 
        # default) and relocated if they conflict, which is a slow very memory
12525
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
12526
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12527
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12528
 
        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'
12529
 
        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'
12530
 
        ;;
12531
 
      irix5* | irix6*)
12532
 
        case $cc_basename in
12533
 
          CC*)
12534
 
            # SGI C++
12535
 
            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'
12536
 
 
12537
 
            # Archives containing C++ object files must be created using
12538
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12539
 
            # necessary to make sure instantiated templates are included
12540
 
            # in the archive.
12541
 
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12542
 
            ;;
12543
 
          *)
12544
 
            if test "$GXX" = yes; then
12545
 
              if test "$with_gnu_ld" = no; then
12546
 
                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'
12547
 
              else
12548
 
                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'
12549
 
              fi
12550
 
            fi
12551
 
            link_all_deplibs_CXX=yes
12552
 
            ;;
12553
 
        esac
12554
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12555
 
        hardcode_libdir_separator_CXX=:
12556
 
        inherit_rpath_CXX=yes
12557
 
        ;;
12558
 
 
12559
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12560
 
        case $cc_basename in
12561
 
          KCC*)
12562
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12563
 
 
12564
 
            # KCC will only create a shared library if the output file
12565
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12566
 
            # to its proper name (with version) after linking.
12567
 
            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'
12568
 
            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'
12569
 
            # Commands to make compiler produce verbose output that lists
12570
 
            # what "hidden" libraries, object files and flags are used when
12571
 
            # linking a shared library.
12572
 
            #
12573
 
            # There doesn't appear to be a way to prevent this compiler from
12574
 
            # explicitly linking system object files so we need to strip them
12575
 
            # from the output so that they don't get included in the library
12576
 
            # dependencies.
12577
 
            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'
12578
 
 
12579
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12580
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12581
 
 
12582
 
            # Archives containing C++ object files must be created using
12583
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12584
 
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12585
 
            ;;
12586
 
          icpc* | ecpc* )
12587
 
            # Intel C++
12588
 
            with_gnu_ld=yes
12589
 
            # version 8.0 and above of icpc choke on multiply defined symbols
12590
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
12591
 
            # earlier do not add the objects themselves.
12592
 
            case `$CC -V 2>&1` in
12593
 
              *"Version 7."*)
12594
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12595
 
                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'
12596
 
                ;;
12597
 
              *)  # Version 8.0 or newer
12598
 
                tmp_idyn=
12599
 
                case $host_cpu in
12600
 
                  ia64*) tmp_idyn=' -i_dynamic';;
12601
 
                esac
12602
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12603
 
                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'
12604
 
                ;;
12605
 
            esac
12606
 
            archive_cmds_need_lc_CXX=no
12607
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12608
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12609
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12610
 
            ;;
12611
 
          pgCC* | pgcpp*)
12612
 
            # Portland Group C++ compiler
12613
 
            case `$CC -V` in
12614
 
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12615
 
              prelink_cmds_CXX='tpldir=Template.dir~
12616
 
                rm -rf $tpldir~
12617
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12618
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12619
 
              old_archive_cmds_CXX='tpldir=Template.dir~
12620
 
                rm -rf $tpldir~
12621
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12622
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12623
 
                $RANLIB $oldlib'
12624
 
              archive_cmds_CXX='tpldir=Template.dir~
12625
 
                rm -rf $tpldir~
12626
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12627
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12628
 
              archive_expsym_cmds_CXX='tpldir=Template.dir~
12629
 
                rm -rf $tpldir~
12630
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12631
 
                $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'
12632
 
              ;;
12633
 
            *) # Version 6 will use weak symbols
12634
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12635
 
              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'
12636
 
              ;;
12637
 
            esac
12638
 
 
12639
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12640
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641
 
            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'
12642
 
            ;;
12643
 
          cxx*)
12644
 
            # Compaq C++
12645
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646
 
            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'
12647
 
 
12648
 
            runpath_var=LD_RUN_PATH
12649
 
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12650
 
            hardcode_libdir_separator_CXX=:
12651
 
 
12652
 
            # Commands to make compiler produce verbose output that lists
12653
 
            # what "hidden" libraries, object files and flags are used when
12654
 
            # linking a shared library.
12655
 
            #
12656
 
            # There doesn't appear to be a way to prevent this compiler from
12657
 
            # explicitly linking system object files so we need to strip them
12658
 
            # from the output so that they don't get included in the library
12659
 
            # dependencies.
12660
 
            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'
12661
 
            ;;
12662
 
          xl*)
12663
 
            # IBM XL 8.0 on PPC, with GNU ld
12664
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12666
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667
 
            if test "x$supports_anon_versioning" = xyes; then
12668
 
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12669
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12670
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
12671
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12672
 
            fi
12673
 
            ;;
12674
 
          *)
12675
 
            case `$CC -V 2>&1 | sed 5q` in
12676
 
            *Sun\ C*)
12677
 
              # Sun C++ 5.9
12678
 
              no_undefined_flag_CXX=' -zdefs'
12679
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680
 
              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'
12681
 
              hardcode_libdir_flag_spec_CXX='-R$libdir'
12682
 
              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'
12683
 
              compiler_needs_object_CXX=yes
12684
 
 
12685
 
              # Not sure whether something based on
12686
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12687
 
              # would be better.
12688
 
              output_verbose_link_cmd='echo'
12689
 
 
12690
 
              # Archives containing C++ object files must be created using
12691
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12692
 
              # necessary to make sure instantiated templates are included
12693
 
              # in the archive.
12694
 
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12695
 
              ;;
12696
 
            esac
12697
 
            ;;
12698
 
        esac
12699
 
        ;;
12700
 
 
12701
 
      lynxos*)
12702
 
        # FIXME: insert proper C++ library support
12703
 
        ld_shlibs_CXX=no
12704
 
        ;;
12705
 
 
12706
 
      m88k*)
12707
 
        # FIXME: insert proper C++ library support
12708
 
        ld_shlibs_CXX=no
12709
 
        ;;
12710
 
 
12711
 
      mvs*)
12712
 
        case $cc_basename in
12713
 
          cxx*)
12714
 
            # FIXME: insert proper C++ library support
12715
 
            ld_shlibs_CXX=no
12716
 
            ;;
12717
 
          *)
12718
 
            # FIXME: insert proper C++ library support
12719
 
            ld_shlibs_CXX=no
12720
 
            ;;
12721
 
        esac
12722
 
        ;;
12723
 
 
12724
 
      netbsd*)
12725
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12726
 
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12727
 
          wlarc=
12728
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12729
 
          hardcode_direct_CXX=yes
12730
 
          hardcode_shlibpath_var_CXX=no
12731
 
        fi
12732
 
        # Workaround some broken pre-1.5 toolchains
12733
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12734
 
        ;;
12735
 
 
12736
 
      *nto* | *qnx*)
12737
 
        ld_shlibs_CXX=yes
12738
 
        ;;
12739
 
 
12740
 
      openbsd2*)
12741
 
        # C++ shared libraries are fairly broken
12742
 
        ld_shlibs_CXX=no
12743
 
        ;;
12744
 
 
12745
 
      openbsd*)
12746
 
        if test -f /usr/libexec/ld.so; then
12747
 
          hardcode_direct_CXX=yes
12748
 
          hardcode_shlibpath_var_CXX=no
12749
 
          hardcode_direct_absolute_CXX=yes
12750
 
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12751
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12752
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12753
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12754
 
            export_dynamic_flag_spec_CXX='${wl}-E'
12755
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12756
 
          fi
12757
 
          output_verbose_link_cmd=echo
12758
 
        else
12759
 
          ld_shlibs_CXX=no
12760
 
        fi
12761
 
        ;;
12762
 
 
12763
 
      osf3* | osf4* | osf5*)
12764
 
        case $cc_basename in
12765
 
          KCC*)
12766
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12767
 
 
12768
 
            # KCC will only create a shared library if the output file
12769
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
12770
 
            # to its proper name (with version) after linking.
12771
 
            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'
12772
 
 
12773
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12774
 
            hardcode_libdir_separator_CXX=:
12775
 
 
12776
 
            # Archives containing C++ object files must be created using
12777
 
            # the KAI C++ compiler.
12778
 
            case $host in
12779
 
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12780
 
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12781
 
            esac
12782
 
            ;;
12783
 
          RCC*)
12784
 
            # Rational C++ 2.4.1
12785
 
            # FIXME: insert proper C++ library support
12786
 
            ld_shlibs_CXX=no
12787
 
            ;;
12788
 
          cxx*)
12789
 
            case $host in
12790
 
              osf3*)
12791
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12792
 
                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'
12793
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12794
 
                ;;
12795
 
              *)
12796
 
                allow_undefined_flag_CXX=' -expect_unresolved \*'
12797
 
                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'
12798
 
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12799
 
                  echo "-hidden">> $lib.exp~
12800
 
                  $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~
12801
 
                  $RM $lib.exp'
12802
 
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12803
 
                ;;
12804
 
            esac
12805
 
 
12806
 
            hardcode_libdir_separator_CXX=:
12807
 
 
12808
 
            # Commands to make compiler produce verbose output that lists
12809
 
            # what "hidden" libraries, object files and flags are used when
12810
 
            # linking a shared library.
12811
 
            #
12812
 
            # There doesn't appear to be a way to prevent this compiler from
12813
 
            # explicitly linking system object files so we need to strip them
12814
 
            # from the output so that they don't get included in the library
12815
 
            # dependencies.
12816
 
            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'
12817
 
            ;;
12818
 
          *)
12819
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12820
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12821
 
              case $host in
12822
 
                osf3*)
12823
 
                  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'
12824
 
                  ;;
12825
 
                *)
12826
 
                  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'
12827
 
                  ;;
12828
 
              esac
12829
 
 
12830
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12831
 
              hardcode_libdir_separator_CXX=:
12832
 
 
12833
 
              # Commands to make compiler produce verbose output that lists
12834
 
              # what "hidden" libraries, object files and flags are used when
12835
 
              # linking a shared library.
12836
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12837
 
 
12838
 
            else
12839
 
              # FIXME: insert proper C++ library support
12840
 
              ld_shlibs_CXX=no
12841
 
            fi
12842
 
            ;;
12843
 
        esac
12844
 
        ;;
12845
 
 
12846
 
      psos*)
12847
 
        # FIXME: insert proper C++ library support
12848
 
        ld_shlibs_CXX=no
12849
 
        ;;
12850
 
 
12851
 
      sunos4*)
12852
 
        case $cc_basename in
12853
 
          CC*)
12854
 
            # Sun C++ 4.x
12855
 
            # FIXME: insert proper C++ library support
12856
 
            ld_shlibs_CXX=no
12857
 
            ;;
12858
 
          lcc*)
12859
 
            # Lucid
12860
 
            # FIXME: insert proper C++ library support
12861
 
            ld_shlibs_CXX=no
12862
 
            ;;
12863
 
          *)
12864
 
            # FIXME: insert proper C++ library support
12865
 
            ld_shlibs_CXX=no
12866
 
            ;;
12867
 
        esac
12868
 
        ;;
12869
 
 
12870
 
      solaris*)
12871
 
        case $cc_basename in
12872
 
          CC*)
12873
 
            # Sun C++ 4.2, 5.x and Centerline C++
12874
 
            archive_cmds_need_lc_CXX=yes
12875
 
            no_undefined_flag_CXX=' -zdefs'
12876
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877
 
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12878
 
              $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'
12879
 
 
12880
 
            hardcode_libdir_flag_spec_CXX='-R$libdir'
12881
 
            hardcode_shlibpath_var_CXX=no
12882
 
            case $host_os in
12883
 
              solaris2.[0-5] | solaris2.[0-5].*) ;;
12884
 
              *)
12885
 
                # The compiler driver will combine and reorder linker options,
12886
 
                # but understands `-z linker_flag'.
12887
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
12888
 
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12889
 
                ;;
12890
 
            esac
12891
 
            link_all_deplibs_CXX=yes
12892
 
 
12893
 
            output_verbose_link_cmd='echo'
12894
 
 
12895
 
            # Archives containing C++ object files must be created using
12896
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12897
 
            # necessary to make sure instantiated templates are included
12898
 
            # in the archive.
12899
 
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12900
 
            ;;
12901
 
          gcx*)
12902
 
            # Green Hills C++ Compiler
12903
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12904
 
 
12905
 
            # The C++ compiler must be used to create the archive.
12906
 
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12907
 
            ;;
12908
 
          *)
12909
 
            # GNU C++ compiler with Solaris linker
12910
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12911
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12912
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12913
 
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12914
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12915
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12916
 
 
12917
 
                # Commands to make compiler produce verbose output that lists
12918
 
                # what "hidden" libraries, object files and flags are used when
12919
 
                # linking a shared library.
12920
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12921
 
              else
12922
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
12923
 
                # platform.
12924
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12925
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12926
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12927
 
 
12928
 
                # Commands to make compiler produce verbose output that lists
12929
 
                # what "hidden" libraries, object files and flags are used when
12930
 
                # linking a shared library.
12931
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12932
 
              fi
12933
 
 
12934
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12935
 
              case $host_os in
12936
 
                solaris2.[0-5] | solaris2.[0-5].*) ;;
12937
 
                *)
12938
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12939
 
                  ;;
12940
 
              esac
12941
 
            fi
12942
 
            ;;
12943
 
        esac
12944
 
        ;;
12945
 
 
12946
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12947
 
      no_undefined_flag_CXX='${wl}-z,text'
12948
 
      archive_cmds_need_lc_CXX=no
12949
 
      hardcode_shlibpath_var_CXX=no
12950
 
      runpath_var='LD_RUN_PATH'
12951
 
 
12952
 
      case $cc_basename in
12953
 
        CC*)
12954
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12955
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12956
 
          ;;
12957
 
        *)
12958
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12959
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960
 
          ;;
12961
 
      esac
12962
 
      ;;
12963
 
 
12964
 
      sysv5* | sco3.2v5* | sco5v6*)
12965
 
        # Note: We can NOT use -z defs as we might desire, because we do not
12966
 
        # link with -lc, and that would cause any symbols used from libc to
12967
 
        # always be unresolved, which means just about no library would
12968
 
        # ever link correctly.  If we're not using GNU ld we use -z text
12969
 
        # though, which does catch some bad symbols but isn't as heavy-handed
12970
 
        # as -z defs.
12971
 
        no_undefined_flag_CXX='${wl}-z,text'
12972
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
12973
 
        archive_cmds_need_lc_CXX=no
12974
 
        hardcode_shlibpath_var_CXX=no
12975
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12976
 
        hardcode_libdir_separator_CXX=':'
12977
 
        link_all_deplibs_CXX=yes
12978
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
12979
 
        runpath_var='LD_RUN_PATH'
12980
 
 
12981
 
        case $cc_basename in
12982
 
          CC*)
12983
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12985
 
            ;;
12986
 
          *)
12987
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989
 
            ;;
12990
 
        esac
12991
 
      ;;
12992
 
 
12993
 
      tandem*)
12994
 
        case $cc_basename in
12995
 
          NCC*)
12996
 
            # NonStop-UX NCC 3.20
12997
 
            # FIXME: insert proper C++ library support
12998
 
            ld_shlibs_CXX=no
12999
 
            ;;
13000
 
          *)
13001
 
            # FIXME: insert proper C++ library support
13002
 
            ld_shlibs_CXX=no
13003
 
            ;;
13004
 
        esac
13005
 
        ;;
13006
 
 
13007
 
      vxworks*)
13008
 
        # FIXME: insert proper C++ library support
13009
 
        ld_shlibs_CXX=no
13010
 
        ;;
13011
 
 
13012
 
      *)
13013
 
        # FIXME: insert proper C++ library support
13014
 
        ld_shlibs_CXX=no
13015
 
        ;;
13016
 
    esac
13017
 
 
13018
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13019
 
$as_echo "$ld_shlibs_CXX" >&6; }
13020
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13021
 
 
13022
 
    GCC_CXX="$GXX"
13023
 
    LD_CXX="$LD"
13024
 
 
13025
 
    ## CAVEAT EMPTOR:
13026
 
    ## There is no encapsulation within the following macros, do not change
13027
 
    ## the running order or otherwise move them around unless you know exactly
13028
 
    ## what you are doing...
13029
 
    # Dependencies to place before and after the object being linked:
13030
 
predep_objects_CXX=
13031
 
postdep_objects_CXX=
13032
 
predeps_CXX=
13033
 
postdeps_CXX=
13034
 
compiler_lib_search_path_CXX=
13035
 
 
13036
 
cat > conftest.$ac_ext <<_LT_EOF
13037
 
class Foo
13038
 
{
13039
 
public:
13040
 
  Foo (void) { a = 0; }
13041
 
private:
13042
 
  int a;
13043
 
};
13044
 
_LT_EOF
13045
 
 
13046
 
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13047
 
  (eval $ac_compile) 2>&5
13048
 
  ac_status=$?
13049
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050
 
  test $ac_status = 0; }; then
13051
 
  # Parse the compiler output and extract the necessary
13052
 
  # objects, libraries and library flags.
13053
 
 
13054
 
  # Sentinel used to keep track of whether or not we are before
13055
 
  # the conftest object file.
13056
 
  pre_test_object_deps_done=no
13057
 
 
13058
 
  for p in `eval "$output_verbose_link_cmd"`; do
13059
 
    case $p in
13060
 
 
13061
 
    -L* | -R* | -l*)
13062
 
       # Some compilers place space between "-{L,R}" and the path.
13063
 
       # Remove the space.
13064
 
       if test $p = "-L" ||
13065
 
          test $p = "-R"; then
13066
 
         prev=$p
13067
 
         continue
13068
 
       else
13069
 
         prev=
13070
 
       fi
13071
 
 
13072
 
       if test "$pre_test_object_deps_done" = no; then
13073
 
         case $p in
13074
 
         -L* | -R*)
13075
 
           # Internal compiler library paths should come after those
13076
 
           # provided the user.  The postdeps already come after the
13077
 
           # user supplied libs so there is no need to process them.
13078
 
           if test -z "$compiler_lib_search_path_CXX"; then
13079
 
             compiler_lib_search_path_CXX="${prev}${p}"
13080
 
           else
13081
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13082
 
           fi
13083
 
           ;;
13084
 
         # The "-l" case would never come before the object being
13085
 
         # linked, so don't bother handling this case.
13086
 
         esac
13087
 
       else
13088
 
         if test -z "$postdeps_CXX"; then
13089
 
           postdeps_CXX="${prev}${p}"
13090
 
         else
13091
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13092
 
         fi
13093
 
       fi
13094
 
       ;;
13095
 
 
13096
 
    *.$objext)
13097
 
       # This assumes that the test object file only shows up
13098
 
       # once in the compiler output.
13099
 
       if test "$p" = "conftest.$objext"; then
13100
 
         pre_test_object_deps_done=yes
13101
 
         continue
13102
 
       fi
13103
 
 
13104
 
       if test "$pre_test_object_deps_done" = no; then
13105
 
         if test -z "$predep_objects_CXX"; then
13106
 
           predep_objects_CXX="$p"
13107
 
         else
13108
 
           predep_objects_CXX="$predep_objects_CXX $p"
13109
 
         fi
13110
 
       else
13111
 
         if test -z "$postdep_objects_CXX"; then
13112
 
           postdep_objects_CXX="$p"
13113
 
         else
13114
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13115
 
         fi
13116
 
       fi
13117
 
       ;;
13118
 
 
13119
 
    *) ;; # Ignore the rest.
13120
 
 
13121
 
    esac
13122
 
  done
13123
 
 
13124
 
  # Clean up.
13125
 
  rm -f a.out a.exe
13126
 
else
13127
 
  echo "libtool.m4: error: problem compiling CXX test program"
13128
 
fi
13129
 
 
13130
 
$RM -f confest.$objext
13131
 
 
13132
 
# PORTME: override above test on systems where it is broken
13133
 
case $host_os in
13134
 
interix[3-9]*)
13135
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13136
 
  # hack all around it, let's just trust "g++" to DTRT.
13137
 
  predep_objects_CXX=
13138
 
  postdep_objects_CXX=
13139
 
  postdeps_CXX=
13140
 
  ;;
13141
 
 
13142
 
linux*)
13143
 
  case `$CC -V 2>&1 | sed 5q` in
13144
 
  *Sun\ C*)
13145
 
    # Sun C++ 5.9
13146
 
 
13147
 
    # The more standards-conforming stlport4 library is
13148
 
    # incompatible with the Cstd library. Avoid specifying
13149
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13150
 
    # -library=stlport4 depends on it.
13151
 
    case " $CXX $CXXFLAGS " in
13152
 
    *" -library=stlport4 "*)
13153
 
      solaris_use_stlport4=yes
13154
 
      ;;
13155
 
    esac
13156
 
 
13157
 
    if test "$solaris_use_stlport4" != yes; then
13158
 
      postdeps_CXX='-library=Cstd -library=Crun'
13159
 
    fi
13160
 
    ;;
13161
 
  esac
13162
 
  ;;
13163
 
 
13164
 
solaris*)
13165
 
  case $cc_basename in
13166
 
  CC*)
13167
 
    # The more standards-conforming stlport4 library is
13168
 
    # incompatible with the Cstd library. Avoid specifying
13169
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13170
 
    # -library=stlport4 depends on it.
13171
 
    case " $CXX $CXXFLAGS " in
13172
 
    *" -library=stlport4 "*)
13173
 
      solaris_use_stlport4=yes
13174
 
      ;;
13175
 
    esac
13176
 
 
13177
 
    # Adding this requires a known-good setup of shared libraries for
13178
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13179
 
    # archive will be linked into the output, leading to subtle bugs.
13180
 
    if test "$solaris_use_stlport4" != yes; then
13181
 
      postdeps_CXX='-library=Cstd -library=Crun'
13182
 
    fi
13183
 
    ;;
13184
 
  esac
13185
 
  ;;
13186
 
esac
13187
 
 
13188
 
 
13189
 
case " $postdeps_CXX " in
13190
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13191
 
esac
13192
 
 compiler_lib_search_dirs_CXX=
13193
 
if test -n "${compiler_lib_search_path_CXX}"; then
13194
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13195
 
fi
13196
 
 
13197
 
 
13198
 
 
13199
 
 
13200
 
 
13201
 
 
13202
 
 
13203
 
 
13204
 
 
13205
 
 
13206
 
 
13207
 
 
13208
 
 
13209
 
 
13210
 
 
13211
 
 
13212
 
 
13213
 
 
13214
 
 
13215
 
 
13216
 
 
13217
 
 
13218
 
 
13219
 
 
13220
 
 
13221
 
 
13222
 
 
13223
 
 
13224
 
 
13225
 
 
13226
 
 
13227
 
    lt_prog_compiler_wl_CXX=
13228
 
lt_prog_compiler_pic_CXX=
13229
 
lt_prog_compiler_static_CXX=
13230
 
 
13231
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13232
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13233
 
 
13234
 
  # C++ specific cases for pic, static, wl, etc.
13235
 
  if test "$GXX" = yes; then
13236
 
    lt_prog_compiler_wl_CXX='-Wl,'
13237
 
    lt_prog_compiler_static_CXX='-static'
13238
 
 
13239
 
    case $host_os in
13240
 
    aix*)
13241
 
      # All AIX code is PIC.
13242
 
      if test "$host_cpu" = ia64; then
13243
 
        # AIX 5 now supports IA64 processor
13244
 
        lt_prog_compiler_static_CXX='-Bstatic'
13245
 
      fi
13246
 
      ;;
13247
 
 
13248
 
    amigaos*)
13249
 
      case $host_cpu in
13250
 
      powerpc)
13251
 
            # see comment about AmigaOS4 .so support
13252
 
            lt_prog_compiler_pic_CXX='-fPIC'
13253
 
        ;;
13254
 
      m68k)
13255
 
            # FIXME: we need at least 68020 code to build shared libraries, but
13256
 
            # adding the `-m68020' flag to GCC prevents building anything better,
13257
 
            # like `-m68040'.
13258
 
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13259
 
        ;;
13260
 
      esac
13261
 
      ;;
13262
 
 
13263
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13264
 
      # PIC is the default for these OSes.
13265
 
      ;;
13266
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
13267
 
      # This hack is so that the source file can tell whether it is being
13268
 
      # built for inclusion in a dll (and should export symbols for example).
13269
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13270
 
      # (--disable-auto-import) libraries
13271
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13272
 
      ;;
13273
 
    darwin* | rhapsody*)
13274
 
      # PIC is the default on this platform
13275
 
      # Common symbols not allowed in MH_DYLIB files
13276
 
      lt_prog_compiler_pic_CXX='-fno-common'
13277
 
      ;;
13278
 
    *djgpp*)
13279
 
      # DJGPP does not support shared libraries at all
13280
 
      lt_prog_compiler_pic_CXX=
13281
 
      ;;
13282
 
    interix[3-9]*)
13283
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13284
 
      # Instead, we relocate shared libraries at runtime.
13285
 
      ;;
13286
 
    sysv4*MP*)
13287
 
      if test -d /usr/nec; then
13288
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
13289
 
      fi
13290
 
      ;;
13291
 
    hpux*)
13292
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13293
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13294
 
      # sets the default TLS model and affects inlining.
13295
 
      case $host_cpu in
13296
 
      hppa*64*)
13297
 
        ;;
13298
 
      *)
13299
 
        lt_prog_compiler_pic_CXX='-fPIC'
13300
 
        ;;
13301
 
      esac
13302
 
      ;;
13303
 
    *qnx* | *nto*)
13304
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13305
 
      # it will coredump.
13306
 
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13307
 
      ;;
13308
 
    *)
13309
 
      lt_prog_compiler_pic_CXX='-fPIC'
13310
 
      ;;
13311
 
    esac
13312
 
  else
13313
 
    case $host_os in
13314
 
      aix[4-9]*)
13315
 
        # All AIX code is PIC.
13316
 
        if test "$host_cpu" = ia64; then
13317
 
          # AIX 5 now supports IA64 processor
13318
 
          lt_prog_compiler_static_CXX='-Bstatic'
13319
 
        else
13320
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13321
 
        fi
13322
 
        ;;
13323
 
      chorus*)
13324
 
        case $cc_basename in
13325
 
        cxch68*)
13326
 
          # Green Hills C++ Compiler
13327
 
          # _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"
13328
 
          ;;
13329
 
        esac
13330
 
        ;;
13331
 
      dgux*)
13332
 
        case $cc_basename in
13333
 
          ec++*)
13334
 
            lt_prog_compiler_pic_CXX='-KPIC'
13335
 
            ;;
13336
 
          ghcx*)
13337
 
            # Green Hills C++ Compiler
13338
 
            lt_prog_compiler_pic_CXX='-pic'
13339
 
            ;;
13340
 
          *)
13341
 
            ;;
13342
 
        esac
13343
 
        ;;
13344
 
      freebsd* | dragonfly*)
13345
 
        # FreeBSD uses GNU C++
13346
 
        ;;
13347
 
      hpux9* | hpux10* | hpux11*)
13348
 
        case $cc_basename in
13349
 
          CC*)
13350
 
            lt_prog_compiler_wl_CXX='-Wl,'
13351
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13352
 
            if test "$host_cpu" != ia64; then
13353
 
              lt_prog_compiler_pic_CXX='+Z'
13354
 
            fi
13355
 
            ;;
13356
 
          aCC*)
13357
 
            lt_prog_compiler_wl_CXX='-Wl,'
13358
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13359
 
            case $host_cpu in
13360
 
            hppa*64*|ia64*)
13361
 
              # +Z the default
13362
 
              ;;
13363
 
            *)
13364
 
              lt_prog_compiler_pic_CXX='+Z'
13365
 
              ;;
13366
 
            esac
13367
 
            ;;
13368
 
          *)
13369
 
            ;;
13370
 
        esac
13371
 
        ;;
13372
 
      interix*)
13373
 
        # This is c89, which is MS Visual C++ (no shared libs)
13374
 
        # Anyone wants to do a port?
13375
 
        ;;
13376
 
      irix5* | irix6* | nonstopux*)
13377
 
        case $cc_basename in
13378
 
          CC*)
13379
 
            lt_prog_compiler_wl_CXX='-Wl,'
13380
 
            lt_prog_compiler_static_CXX='-non_shared'
13381
 
            # CC pic flag -KPIC is the default.
13382
 
            ;;
13383
 
          *)
13384
 
            ;;
13385
 
        esac
13386
 
        ;;
13387
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13388
 
        case $cc_basename in
13389
 
          KCC*)
13390
 
            # KAI C++ Compiler
13391
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13392
 
            lt_prog_compiler_pic_CXX='-fPIC'
13393
 
            ;;
13394
 
          ecpc* )
13395
 
            # old Intel C++ for x86_64 which still supported -KPIC.
13396
 
            lt_prog_compiler_wl_CXX='-Wl,'
13397
 
            lt_prog_compiler_pic_CXX='-KPIC'
13398
 
            lt_prog_compiler_static_CXX='-static'
13399
 
            ;;
13400
 
          icpc* )
13401
 
            # Intel C++, used to be incompatible with GCC.
13402
 
            # ICC 10 doesn't accept -KPIC any more.
13403
 
            lt_prog_compiler_wl_CXX='-Wl,'
13404
 
            lt_prog_compiler_pic_CXX='-fPIC'
13405
 
            lt_prog_compiler_static_CXX='-static'
13406
 
            ;;
13407
 
          pgCC* | pgcpp*)
13408
 
            # Portland Group C++ compiler
13409
 
            lt_prog_compiler_wl_CXX='-Wl,'
13410
 
            lt_prog_compiler_pic_CXX='-fpic'
13411
 
            lt_prog_compiler_static_CXX='-Bstatic'
13412
 
            ;;
13413
 
          cxx*)
13414
 
            # Compaq C++
13415
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13416
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13417
 
            lt_prog_compiler_pic_CXX=
13418
 
            lt_prog_compiler_static_CXX='-non_shared'
13419
 
            ;;
13420
 
          xlc* | xlC*)
13421
 
            # IBM XL 8.0 on PPC
13422
 
            lt_prog_compiler_wl_CXX='-Wl,'
13423
 
            lt_prog_compiler_pic_CXX='-qpic'
13424
 
            lt_prog_compiler_static_CXX='-qstaticlink'
13425
 
            ;;
13426
 
          *)
13427
 
            case `$CC -V 2>&1 | sed 5q` in
13428
 
            *Sun\ C*)
13429
 
              # Sun C++ 5.9
13430
 
              lt_prog_compiler_pic_CXX='-KPIC'
13431
 
              lt_prog_compiler_static_CXX='-Bstatic'
13432
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
13433
 
              ;;
13434
 
            esac
13435
 
            ;;
13436
 
        esac
13437
 
        ;;
13438
 
      lynxos*)
13439
 
        ;;
13440
 
      m88k*)
13441
 
        ;;
13442
 
      mvs*)
13443
 
        case $cc_basename in
13444
 
          cxx*)
13445
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13446
 
            ;;
13447
 
          *)
13448
 
            ;;
13449
 
        esac
13450
 
        ;;
13451
 
      netbsd* | netbsdelf*-gnu)
13452
 
        ;;
13453
 
      *qnx* | *nto*)
13454
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13455
 
        # it will coredump.
13456
 
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13457
 
        ;;
13458
 
      osf3* | osf4* | osf5*)
13459
 
        case $cc_basename in
13460
 
          KCC*)
13461
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13462
 
            ;;
13463
 
          RCC*)
13464
 
            # Rational C++ 2.4.1
13465
 
            lt_prog_compiler_pic_CXX='-pic'
13466
 
            ;;
13467
 
          cxx*)
13468
 
            # Digital/Compaq C++
13469
 
            lt_prog_compiler_wl_CXX='-Wl,'
13470
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13471
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13472
 
            lt_prog_compiler_pic_CXX=
13473
 
            lt_prog_compiler_static_CXX='-non_shared'
13474
 
            ;;
13475
 
          *)
13476
 
            ;;
13477
 
        esac
13478
 
        ;;
13479
 
      psos*)
13480
 
        ;;
13481
 
      solaris*)
13482
 
        case $cc_basename in
13483
 
          CC*)
13484
 
            # Sun C++ 4.2, 5.x and Centerline C++
13485
 
            lt_prog_compiler_pic_CXX='-KPIC'
13486
 
            lt_prog_compiler_static_CXX='-Bstatic'
13487
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13488
 
            ;;
13489
 
          gcx*)
13490
 
            # Green Hills C++ Compiler
13491
 
            lt_prog_compiler_pic_CXX='-PIC'
13492
 
            ;;
13493
 
          *)
13494
 
            ;;
13495
 
        esac
13496
 
        ;;
13497
 
      sunos4*)
13498
 
        case $cc_basename in
13499
 
          CC*)
13500
 
            # Sun C++ 4.x
13501
 
            lt_prog_compiler_pic_CXX='-pic'
13502
 
            lt_prog_compiler_static_CXX='-Bstatic'
13503
 
            ;;
13504
 
          lcc*)
13505
 
            # Lucid
13506
 
            lt_prog_compiler_pic_CXX='-pic'
13507
 
            ;;
13508
 
          *)
13509
 
            ;;
13510
 
        esac
13511
 
        ;;
13512
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13513
 
        case $cc_basename in
13514
 
          CC*)
13515
 
            lt_prog_compiler_wl_CXX='-Wl,'
13516
 
            lt_prog_compiler_pic_CXX='-KPIC'
13517
 
            lt_prog_compiler_static_CXX='-Bstatic'
13518
 
            ;;
13519
 
        esac
13520
 
        ;;
13521
 
      tandem*)
13522
 
        case $cc_basename in
13523
 
          NCC*)
13524
 
            # NonStop-UX NCC 3.20
13525
 
            lt_prog_compiler_pic_CXX='-KPIC'
13526
 
            ;;
13527
 
          *)
13528
 
            ;;
13529
 
        esac
13530
 
        ;;
13531
 
      vxworks*)
13532
 
        ;;
13533
 
      *)
13534
 
        lt_prog_compiler_can_build_shared_CXX=no
13535
 
        ;;
13536
 
    esac
13537
 
  fi
13538
 
 
13539
 
case $host_os in
13540
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13541
 
  *djgpp*)
13542
 
    lt_prog_compiler_pic_CXX=
13543
 
    ;;
13544
 
  *)
13545
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13546
 
    ;;
13547
 
esac
13548
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13549
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13550
 
 
13551
 
 
13552
 
 
13553
 
#
13554
 
# Check to make sure the PIC flag actually works.
13555
 
#
13556
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13557
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13558
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13559
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13560
 
  $as_echo_n "(cached) " >&6
13561
 
else
13562
 
  lt_cv_prog_compiler_pic_works_CXX=no
13563
 
   ac_outfile=conftest.$ac_objext
13564
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13565
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13566
 
   # Insert the option either (1) after the last *FLAGS variable, or
13567
 
   # (2) before a word containing "conftest.", or (3) at the end.
13568
 
   # Note that $ac_compile itself does not contain backslashes and begins
13569
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13570
 
   # The option is referenced via a variable to avoid confusing sed.
13571
 
   lt_compile=`echo "$ac_compile" | $SED \
13572
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13573
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574
 
   -e 's:$: $lt_compiler_flag:'`
13575
 
   (eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
13576
 
   (eval "$lt_compile" 2>conftest.err)
13577
 
   ac_status=$?
13578
 
   cat conftest.err >&5
13579
 
   echo "$as_me:13579: \$? = $ac_status" >&5
13580
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13581
 
     # The compiler can only warn and ignore the option if not recognized
13582
 
     # So say no if there are warnings other than the usual output.
13583
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13584
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13585
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13586
 
       lt_cv_prog_compiler_pic_works_CXX=yes
13587
 
     fi
13588
 
   fi
13589
 
   $RM conftest*
13590
 
 
13591
 
fi
13592
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13593
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13594
 
 
13595
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13596
 
    case $lt_prog_compiler_pic_CXX in
13597
 
     "" | " "*) ;;
13598
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13599
 
     esac
13600
 
else
13601
 
    lt_prog_compiler_pic_CXX=
13602
 
     lt_prog_compiler_can_build_shared_CXX=no
13603
 
fi
13604
 
 
13605
 
fi
13606
 
 
13607
 
 
13608
 
 
13609
 
#
13610
 
# Check to make sure the static flag actually works.
13611
 
#
13612
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13613
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13614
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13615
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13616
 
  $as_echo_n "(cached) " >&6
13617
 
else
13618
 
  lt_cv_prog_compiler_static_works_CXX=no
13619
 
   save_LDFLAGS="$LDFLAGS"
13620
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13621
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13622
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13623
 
     # The linker can only warn and ignore the option if not recognized
13624
 
     # So say no if there are warnings
13625
 
     if test -s conftest.err; then
13626
 
       # Append any errors to the config.log.
13627
 
       cat conftest.err 1>&5
13628
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13629
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13630
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13631
 
         lt_cv_prog_compiler_static_works_CXX=yes
13632
 
       fi
13633
 
     else
13634
 
       lt_cv_prog_compiler_static_works_CXX=yes
13635
 
     fi
13636
 
   fi
13637
 
   $RM -r conftest*
13638
 
   LDFLAGS="$save_LDFLAGS"
13639
 
 
13640
 
fi
13641
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13642
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13643
 
 
13644
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13645
 
    :
13646
 
else
13647
 
    lt_prog_compiler_static_CXX=
13648
 
fi
13649
 
 
13650
 
 
13651
 
 
13652
 
 
13653
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13654
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13655
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13656
 
  $as_echo_n "(cached) " >&6
13657
 
else
13658
 
  lt_cv_prog_compiler_c_o_CXX=no
13659
 
   $RM -r conftest 2>/dev/null
13660
 
   mkdir conftest
13661
 
   cd conftest
13662
 
   mkdir out
13663
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13664
 
 
13665
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13666
 
   # Insert the option either (1) after the last *FLAGS variable, or
13667
 
   # (2) before a word containing "conftest.", or (3) at the end.
13668
 
   # Note that $ac_compile itself does not contain backslashes and begins
13669
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13670
 
   lt_compile=`echo "$ac_compile" | $SED \
13671
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13672
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673
 
   -e 's:$: $lt_compiler_flag:'`
13674
 
   (eval echo "\"\$as_me:13674: $lt_compile\"" >&5)
13675
 
   (eval "$lt_compile" 2>out/conftest.err)
13676
 
   ac_status=$?
13677
 
   cat out/conftest.err >&5
13678
 
   echo "$as_me:13678: \$? = $ac_status" >&5
13679
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13680
 
   then
13681
 
     # The compiler can only warn and ignore the option if not recognized
13682
 
     # So say no if there are warnings
13683
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13684
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13685
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13686
 
       lt_cv_prog_compiler_c_o_CXX=yes
13687
 
     fi
13688
 
   fi
13689
 
   chmod u+w . 2>&5
13690
 
   $RM conftest*
13691
 
   # SGI C++ compiler will create directory out/ii_files/ for
13692
 
   # template instantiation
13693
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13694
 
   $RM out/* && rmdir out
13695
 
   cd ..
13696
 
   $RM -r conftest
13697
 
   $RM conftest*
13698
 
 
13699
 
fi
13700
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13701
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13702
 
 
13703
 
 
13704
 
 
13705
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13706
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13707
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13708
 
  $as_echo_n "(cached) " >&6
13709
 
else
13710
 
  lt_cv_prog_compiler_c_o_CXX=no
13711
 
   $RM -r conftest 2>/dev/null
13712
 
   mkdir conftest
13713
 
   cd conftest
13714
 
   mkdir out
13715
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13716
 
 
13717
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13718
 
   # Insert the option either (1) after the last *FLAGS variable, or
13719
 
   # (2) before a word containing "conftest.", or (3) at the end.
13720
 
   # Note that $ac_compile itself does not contain backslashes and begins
13721
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13722
 
   lt_compile=`echo "$ac_compile" | $SED \
13723
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13724
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13725
 
   -e 's:$: $lt_compiler_flag:'`
13726
 
   (eval echo "\"\$as_me:13726: $lt_compile\"" >&5)
13727
 
   (eval "$lt_compile" 2>out/conftest.err)
13728
 
   ac_status=$?
13729
 
   cat out/conftest.err >&5
13730
 
   echo "$as_me:13730: \$? = $ac_status" >&5
13731
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13732
 
   then
13733
 
     # The compiler can only warn and ignore the option if not recognized
13734
 
     # So say no if there are warnings
13735
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13736
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13737
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13738
 
       lt_cv_prog_compiler_c_o_CXX=yes
13739
 
     fi
13740
 
   fi
13741
 
   chmod u+w . 2>&5
13742
 
   $RM conftest*
13743
 
   # SGI C++ compiler will create directory out/ii_files/ for
13744
 
   # template instantiation
13745
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13746
 
   $RM out/* && rmdir out
13747
 
   cd ..
13748
 
   $RM -r conftest
13749
 
   $RM conftest*
13750
 
 
13751
 
fi
13752
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13753
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13754
 
 
13755
 
 
13756
 
 
13757
 
 
13758
 
hard_links="nottested"
13759
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13760
 
  # do not overwrite the value of need_locks provided by the user
13761
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13762
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13763
 
  hard_links=yes
13764
 
  $RM conftest*
13765
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13766
 
  touch conftest.a
13767
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13768
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13769
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13770
 
$as_echo "$hard_links" >&6; }
13771
 
  if test "$hard_links" = no; then
13772
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13773
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13774
 
    need_locks=warn
13775
 
  fi
13776
 
else
13777
 
  need_locks=no
13778
 
fi
13779
 
 
13780
 
 
13781
 
 
13782
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13783
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13784
 
 
13785
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13786
 
  case $host_os in
13787
 
  aix[4-9]*)
13788
 
    # If we're using GNU nm, then we don't want the "-C" option.
13789
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13790
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13791
 
      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'
13792
 
    else
13793
 
      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'
13794
 
    fi
13795
 
    ;;
13796
 
  pw32*)
13797
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13798
 
  ;;
13799
 
  cygwin* | mingw* | cegcc*)
13800
 
    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'
13801
 
  ;;
13802
 
  linux* | k*bsd*-gnu)
13803
 
    link_all_deplibs_CXX=no
13804
 
  ;;
13805
 
  *)
13806
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13807
 
  ;;
13808
 
  esac
13809
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13810
 
 
13811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13812
 
$as_echo "$ld_shlibs_CXX" >&6; }
13813
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13814
 
 
13815
 
with_gnu_ld_CXX=$with_gnu_ld
13816
 
 
13817
 
 
13818
 
 
13819
 
 
13820
 
 
13821
 
 
13822
 
#
13823
 
# Do we need to explicitly link libc?
13824
 
#
13825
 
case "x$archive_cmds_need_lc_CXX" in
13826
 
x|xyes)
13827
 
  # Assume -lc should be added
13828
 
  archive_cmds_need_lc_CXX=yes
13829
 
 
13830
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13831
 
    case $archive_cmds_CXX in
13832
 
    *'~'*)
13833
 
      # FIXME: we may have to deal with multi-command sequences.
13834
 
      ;;
13835
 
    '$CC '*)
13836
 
      # Test whether the compiler implicitly links with -lc since on some
13837
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13838
 
      # to ld, don't add -lc before -lgcc.
13839
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13840
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13841
 
      $RM conftest*
13842
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13843
 
 
13844
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13845
 
  (eval $ac_compile) 2>&5
13846
 
  ac_status=$?
13847
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848
 
  test $ac_status = 0; } 2>conftest.err; then
13849
 
        soname=conftest
13850
 
        lib=conftest
13851
 
        libobjs=conftest.$ac_objext
13852
 
        deplibs=
13853
 
        wl=$lt_prog_compiler_wl_CXX
13854
 
        pic_flag=$lt_prog_compiler_pic_CXX
13855
 
        compiler_flags=-v
13856
 
        linker_flags=-v
13857
 
        verstring=
13858
 
        output_objdir=.
13859
 
        libname=conftest
13860
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13861
 
        allow_undefined_flag_CXX=
13862
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13863
 
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13864
 
  ac_status=$?
13865
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866
 
  test $ac_status = 0; }
13867
 
        then
13868
 
          archive_cmds_need_lc_CXX=no
13869
 
        else
13870
 
          archive_cmds_need_lc_CXX=yes
13871
 
        fi
13872
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13873
 
      else
13874
 
        cat conftest.err 1>&5
13875
 
      fi
13876
 
      $RM conftest*
13877
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13878
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13879
 
      ;;
13880
 
    esac
13881
 
  fi
13882
 
  ;;
13883
 
esac
13884
 
 
13885
 
 
13886
 
 
13887
 
 
13888
 
 
13889
 
 
13890
 
 
13891
 
 
13892
 
 
13893
 
 
13894
 
 
13895
 
 
13896
 
 
13897
 
 
13898
 
 
13899
 
 
13900
 
 
13901
 
 
13902
 
 
13903
 
 
13904
 
 
13905
 
 
13906
 
 
13907
 
 
13908
 
 
13909
 
 
13910
 
 
13911
 
 
13912
 
 
13913
 
 
13914
 
 
13915
 
 
13916
 
 
13917
 
 
13918
 
 
13919
 
 
13920
 
 
13921
 
 
13922
 
 
13923
 
 
13924
 
 
13925
 
 
13926
 
 
13927
 
 
13928
 
 
13929
 
 
13930
 
 
13931
 
 
13932
 
 
13933
 
 
13934
 
 
13935
 
 
13936
 
 
13937
 
 
13938
 
 
13939
 
 
13940
 
 
13941
 
 
13942
 
 
13943
 
 
13944
 
 
13945
 
 
13946
 
 
13947
 
 
13948
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13949
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13950
 
 
13951
 
library_names_spec=
13952
 
libname_spec='lib$name'
13953
 
soname_spec=
13954
 
shrext_cmds=".so"
13955
 
postinstall_cmds=
13956
 
postuninstall_cmds=
13957
 
finish_cmds=
13958
 
finish_eval=
13959
 
shlibpath_var=
13960
 
shlibpath_overrides_runpath=unknown
13961
 
version_type=none
13962
 
dynamic_linker="$host_os ld.so"
13963
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13964
 
need_lib_prefix=unknown
13965
 
hardcode_into_libs=no
13966
 
 
13967
 
# when you set need_version to no, make sure it does not cause -set_version
13968
 
# flags to be left without arguments
13969
 
need_version=unknown
13970
 
 
13971
 
case $host_os in
13972
 
aix3*)
13973
 
  version_type=linux
13974
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13975
 
  shlibpath_var=LIBPATH
13976
 
 
13977
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13978
 
  soname_spec='${libname}${release}${shared_ext}$major'
13979
 
  ;;
13980
 
 
13981
 
aix[4-9]*)
13982
 
  version_type=linux
13983
 
  need_lib_prefix=no
13984
 
  need_version=no
13985
 
  hardcode_into_libs=yes
13986
 
  if test "$host_cpu" = ia64; then
13987
 
    # AIX 5 supports IA64
13988
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13989
 
    shlibpath_var=LD_LIBRARY_PATH
13990
 
  else
13991
 
    # With GCC up to 2.95.x, collect2 would create an import file
13992
 
    # for dependence libraries.  The import file would start with
13993
 
    # the line `#! .'.  This would cause the generated library to
13994
 
    # depend on `.', always an invalid library.  This was fixed in
13995
 
    # development snapshots of GCC prior to 3.0.
13996
 
    case $host_os in
13997
 
      aix4 | aix4.[01] | aix4.[01].*)
13998
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13999
 
           echo ' yes '
14000
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14001
 
        :
14002
 
      else
14003
 
        can_build_shared=no
14004
 
      fi
14005
 
      ;;
14006
 
    esac
14007
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14008
 
    # soname into executable. Probably we can add versioning support to
14009
 
    # collect2, so additional links can be useful in future.
14010
 
    if test "$aix_use_runtimelinking" = yes; then
14011
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14012
 
      # instead of lib<name>.a to let people know that these are not
14013
 
      # typical AIX shared libraries.
14014
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015
 
    else
14016
 
      # We preserve .a as extension for shared libraries through AIX4.2
14017
 
      # and later when we are not doing run time linking.
14018
 
      library_names_spec='${libname}${release}.a $libname.a'
14019
 
      soname_spec='${libname}${release}${shared_ext}$major'
14020
 
    fi
14021
 
    shlibpath_var=LIBPATH
14022
 
  fi
14023
 
  ;;
14024
 
 
14025
 
amigaos*)
14026
 
  case $host_cpu in
14027
 
  powerpc)
14028
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14029
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14030
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031
 
    ;;
14032
 
  m68k)
14033
 
    library_names_spec='$libname.ixlibrary $libname.a'
14034
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14035
 
    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'
14036
 
    ;;
14037
 
  esac
14038
 
  ;;
14039
 
 
14040
 
beos*)
14041
 
  library_names_spec='${libname}${shared_ext}'
14042
 
  dynamic_linker="$host_os ld.so"
14043
 
  shlibpath_var=LIBRARY_PATH
14044
 
  ;;
14045
 
 
14046
 
bsdi[45]*)
14047
 
  version_type=linux
14048
 
  need_version=no
14049
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050
 
  soname_spec='${libname}${release}${shared_ext}$major'
14051
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14052
 
  shlibpath_var=LD_LIBRARY_PATH
14053
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14054
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14055
 
  # the default ld.so.conf also contains /usr/contrib/lib and
14056
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14057
 
  # libtool to hard-code these into programs
14058
 
  ;;
14059
 
 
14060
 
cygwin* | mingw* | pw32* | cegcc*)
14061
 
  version_type=windows
14062
 
  shrext_cmds=".dll"
14063
 
  need_version=no
14064
 
  need_lib_prefix=no
14065
 
 
14066
 
  case $GCC,$host_os in
14067
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14068
 
    library_names_spec='$libname.dll.a'
14069
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14070
 
    postinstall_cmds='base_file=`basename \${file}`~
14071
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14072
 
      dldir=$destdir/`dirname \$dlpath`~
14073
 
      test -d \$dldir || mkdir -p \$dldir~
14074
 
      $install_prog $dir/$dlname \$dldir/$dlname~
14075
 
      chmod a+x \$dldir/$dlname~
14076
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14077
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14078
 
      fi'
14079
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14080
 
      dlpath=$dir/\$dldll~
14081
 
       $RM \$dlpath'
14082
 
    shlibpath_overrides_runpath=yes
14083
 
 
14084
 
    case $host_os in
14085
 
    cygwin*)
14086
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14087
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14088
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14089
 
      ;;
14090
 
    mingw* | cegcc*)
14091
 
      # MinGW DLLs use traditional 'lib' prefix
14092
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14093
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14095
 
        # It is most probably a Windows format PATH printed by
14096
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14097
 
        # path with ; separators, and with drive letters. We can handle the
14098
 
        # drive letters (cygwin fileutils understands them), so leave them,
14099
 
        # especially as we might pass files found there to a mingw objdump,
14100
 
        # which wouldn't understand a cygwinified path. Ahh.
14101
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14102
 
      else
14103
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14104
 
      fi
14105
 
      ;;
14106
 
    pw32*)
14107
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14108
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14109
 
      ;;
14110
 
    esac
14111
 
    ;;
14112
 
 
14113
 
  *)
14114
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14115
 
    ;;
14116
 
  esac
14117
 
  dynamic_linker='Win32 ld.exe'
14118
 
  # FIXME: first we should search . and the directory the executable is in
14119
 
  shlibpath_var=PATH
14120
 
  ;;
14121
 
 
14122
 
darwin* | rhapsody*)
14123
 
  dynamic_linker="$host_os dyld"
14124
 
  version_type=darwin
14125
 
  need_lib_prefix=no
14126
 
  need_version=no
14127
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14128
 
  soname_spec='${libname}${release}${major}$shared_ext'
14129
 
  shlibpath_overrides_runpath=yes
14130
 
  shlibpath_var=DYLD_LIBRARY_PATH
14131
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14132
 
 
14133
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14134
 
  ;;
14135
 
 
14136
 
dgux*)
14137
 
  version_type=linux
14138
 
  need_lib_prefix=no
14139
 
  need_version=no
14140
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14141
 
  soname_spec='${libname}${release}${shared_ext}$major'
14142
 
  shlibpath_var=LD_LIBRARY_PATH
14143
 
  ;;
14144
 
 
14145
 
freebsd1*)
14146
 
  dynamic_linker=no
14147
 
  ;;
14148
 
 
14149
 
freebsd* | dragonfly*)
14150
 
  # DragonFly does not have aout.  When/if they implement a new
14151
 
  # versioning mechanism, adjust this.
14152
 
  if test -x /usr/bin/objformat; then
14153
 
    objformat=`/usr/bin/objformat`
14154
 
  else
14155
 
    case $host_os in
14156
 
    freebsd[123]*) objformat=aout ;;
14157
 
    *) objformat=elf ;;
14158
 
    esac
14159
 
  fi
14160
 
  version_type=freebsd-$objformat
14161
 
  case $version_type in
14162
 
    freebsd-elf*)
14163
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14164
 
      need_version=no
14165
 
      need_lib_prefix=no
14166
 
      ;;
14167
 
    freebsd-*)
14168
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14169
 
      need_version=yes
14170
 
      ;;
14171
 
  esac
14172
 
  shlibpath_var=LD_LIBRARY_PATH
14173
 
  case $host_os in
14174
 
  freebsd2*)
14175
 
    shlibpath_overrides_runpath=yes
14176
 
    ;;
14177
 
  freebsd3.[01]* | freebsdelf3.[01]*)
14178
 
    shlibpath_overrides_runpath=yes
14179
 
    hardcode_into_libs=yes
14180
 
    ;;
14181
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14182
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14183
 
    shlibpath_overrides_runpath=no
14184
 
    hardcode_into_libs=yes
14185
 
    ;;
14186
 
  *) # from 4.6 on, and DragonFly
14187
 
    shlibpath_overrides_runpath=yes
14188
 
    hardcode_into_libs=yes
14189
 
    ;;
14190
 
  esac
14191
 
  ;;
14192
 
 
14193
 
gnu*)
14194
 
  version_type=linux
14195
 
  need_lib_prefix=no
14196
 
  need_version=no
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
 
  hardcode_into_libs=yes
14201
 
  ;;
14202
 
 
14203
 
hpux9* | hpux10* | hpux11*)
14204
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
14205
 
  # link against other versions.
14206
 
  version_type=sunos
14207
 
  need_lib_prefix=no
14208
 
  need_version=no
14209
 
  case $host_cpu in
14210
 
  ia64*)
14211
 
    shrext_cmds='.so'
14212
 
    hardcode_into_libs=yes
14213
 
    dynamic_linker="$host_os dld.so"
14214
 
    shlibpath_var=LD_LIBRARY_PATH
14215
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14216
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217
 
    soname_spec='${libname}${release}${shared_ext}$major'
14218
 
    if test "X$HPUX_IA64_MODE" = X32; then
14219
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14220
 
    else
14221
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14222
 
    fi
14223
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14224
 
    ;;
14225
 
  hppa*64*)
14226
 
    shrext_cmds='.sl'
14227
 
    hardcode_into_libs=yes
14228
 
    dynamic_linker="$host_os dld.sl"
14229
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14230
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14231
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232
 
    soname_spec='${libname}${release}${shared_ext}$major'
14233
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14234
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14235
 
    ;;
14236
 
  *)
14237
 
    shrext_cmds='.sl'
14238
 
    dynamic_linker="$host_os dld.sl"
14239
 
    shlibpath_var=SHLIB_PATH
14240
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14241
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242
 
    soname_spec='${libname}${release}${shared_ext}$major'
14243
 
    ;;
14244
 
  esac
14245
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14246
 
  postinstall_cmds='chmod 555 $lib'
14247
 
  ;;
14248
 
 
14249
 
interix[3-9]*)
14250
 
  version_type=linux
14251
 
  need_lib_prefix=no
14252
 
  need_version=no
14253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14254
 
  soname_spec='${libname}${release}${shared_ext}$major'
14255
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14256
 
  shlibpath_var=LD_LIBRARY_PATH
14257
 
  shlibpath_overrides_runpath=no
14258
 
  hardcode_into_libs=yes
14259
 
  ;;
14260
 
 
14261
 
irix5* | irix6* | nonstopux*)
14262
 
  case $host_os in
14263
 
    nonstopux*) version_type=nonstopux ;;
14264
 
    *)
14265
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14266
 
                version_type=linux
14267
 
        else
14268
 
                version_type=irix
14269
 
        fi ;;
14270
 
  esac
14271
 
  need_lib_prefix=no
14272
 
  need_version=no
14273
 
  soname_spec='${libname}${release}${shared_ext}$major'
14274
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14275
 
  case $host_os in
14276
 
  irix5* | nonstopux*)
14277
 
    libsuff= shlibsuff=
14278
 
    ;;
14279
 
  *)
14280
 
    case $LD in # libtool.m4 will add one of these switches to LD
14281
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14282
 
      libsuff= shlibsuff= libmagic=32-bit;;
14283
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14284
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14285
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14286
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14287
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14288
 
    esac
14289
 
    ;;
14290
 
  esac
14291
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14292
 
  shlibpath_overrides_runpath=no
14293
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14294
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14295
 
  hardcode_into_libs=yes
14296
 
  ;;
14297
 
 
14298
 
# No shared lib support for Linux oldld, aout, or coff.
14299
 
linux*oldld* | linux*aout* | linux*coff*)
14300
 
  dynamic_linker=no
14301
 
  ;;
14302
 
 
14303
 
# This must be Linux ELF.
14304
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14305
 
  version_type=linux
14306
 
  need_lib_prefix=no
14307
 
  need_version=no
14308
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14309
 
  soname_spec='${libname}${release}${shared_ext}$major'
14310
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14311
 
  shlibpath_var=LD_LIBRARY_PATH
14312
 
  shlibpath_overrides_runpath=no
14313
 
  # Some binutils ld are patched to set DT_RUNPATH
14314
 
  save_LDFLAGS=$LDFLAGS
14315
 
  save_libdir=$libdir
14316
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14317
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14318
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319
 
/* end confdefs.h.  */
14320
 
 
14321
 
int
14322
 
main ()
14323
 
{
14324
 
 
14325
 
  ;
14326
 
  return 0;
14327
 
}
14328
 
_ACEOF
14329
 
if ac_fn_cxx_try_link "$LINENO"; then :
14330
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14331
 
  shlibpath_overrides_runpath=yes
14332
 
fi
14333
 
fi
14334
 
rm -f core conftest.err conftest.$ac_objext \
14335
 
    conftest$ac_exeext conftest.$ac_ext
14336
 
  LDFLAGS=$save_LDFLAGS
14337
 
  libdir=$save_libdir
14338
 
 
14339
 
  # This implies no fast_install, which is unacceptable.
14340
 
  # Some rework will be needed to allow for fast_install
14341
 
  # before this can be enabled.
14342
 
  hardcode_into_libs=yes
14343
 
 
14344
 
  # Append ld.so.conf contents to the search path
14345
 
  if test -f /etc/ld.so.conf; then
14346
 
    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' ' '`
14347
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14348
 
  fi
14349
 
 
14350
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14351
 
  # powerpc, because MkLinux only supported shared libraries with the
14352
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14353
 
  # most powerpc-linux boxes support dynamic linking these days and
14354
 
  # people can always --disable-shared, the test was removed, and we
14355
 
  # assume the GNU/Linux dynamic linker is in use.
14356
 
  dynamic_linker='GNU/Linux ld.so'
14357
 
  ;;
14358
 
 
14359
 
netbsdelf*-gnu)
14360
 
  version_type=linux
14361
 
  need_lib_prefix=no
14362
 
  need_version=no
14363
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364
 
  soname_spec='${libname}${release}${shared_ext}$major'
14365
 
  shlibpath_var=LD_LIBRARY_PATH
14366
 
  shlibpath_overrides_runpath=no
14367
 
  hardcode_into_libs=yes
14368
 
  dynamic_linker='NetBSD ld.elf_so'
14369
 
  ;;
14370
 
 
14371
 
netbsd*)
14372
 
  version_type=sunos
14373
 
  need_lib_prefix=no
14374
 
  need_version=no
14375
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14376
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14377
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14378
 
    dynamic_linker='NetBSD (a.out) ld.so'
14379
 
  else
14380
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381
 
    soname_spec='${libname}${release}${shared_ext}$major'
14382
 
    dynamic_linker='NetBSD ld.elf_so'
14383
 
  fi
14384
 
  shlibpath_var=LD_LIBRARY_PATH
14385
 
  shlibpath_overrides_runpath=yes
14386
 
  hardcode_into_libs=yes
14387
 
  ;;
14388
 
 
14389
 
newsos6)
14390
 
  version_type=linux
14391
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392
 
  shlibpath_var=LD_LIBRARY_PATH
14393
 
  shlibpath_overrides_runpath=yes
14394
 
  ;;
14395
 
 
14396
 
*nto* | *qnx*)
14397
 
  version_type=qnx
14398
 
  need_lib_prefix=no
14399
 
  need_version=no
14400
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401
 
  soname_spec='${libname}${release}${shared_ext}$major'
14402
 
  shlibpath_var=LD_LIBRARY_PATH
14403
 
  shlibpath_overrides_runpath=no
14404
 
  hardcode_into_libs=yes
14405
 
  dynamic_linker='ldqnx.so'
14406
 
  ;;
14407
 
 
14408
 
openbsd*)
14409
 
  version_type=sunos
14410
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14411
 
  need_lib_prefix=no
14412
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14413
 
  case $host_os in
14414
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14415
 
    *)                          need_version=no  ;;
14416
 
  esac
14417
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14418
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14419
 
  shlibpath_var=LD_LIBRARY_PATH
14420
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14421
 
    case $host_os in
14422
 
      openbsd2.[89] | openbsd2.[89].*)
14423
 
        shlibpath_overrides_runpath=no
14424
 
        ;;
14425
 
      *)
14426
 
        shlibpath_overrides_runpath=yes
14427
 
        ;;
14428
 
      esac
14429
 
  else
14430
 
    shlibpath_overrides_runpath=yes
14431
 
  fi
14432
 
  ;;
14433
 
 
14434
 
os2*)
14435
 
  libname_spec='$name'
14436
 
  shrext_cmds=".dll"
14437
 
  need_lib_prefix=no
14438
 
  library_names_spec='$libname${shared_ext} $libname.a'
14439
 
  dynamic_linker='OS/2 ld.exe'
14440
 
  shlibpath_var=LIBPATH
14441
 
  ;;
14442
 
 
14443
 
osf3* | osf4* | osf5*)
14444
 
  version_type=osf
14445
 
  need_lib_prefix=no
14446
 
  need_version=no
14447
 
  soname_spec='${libname}${release}${shared_ext}$major'
14448
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449
 
  shlibpath_var=LD_LIBRARY_PATH
14450
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14451
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14452
 
  ;;
14453
 
 
14454
 
rdos*)
14455
 
  dynamic_linker=no
14456
 
  ;;
14457
 
 
14458
 
solaris*)
14459
 
  version_type=linux
14460
 
  need_lib_prefix=no
14461
 
  need_version=no
14462
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463
 
  soname_spec='${libname}${release}${shared_ext}$major'
14464
 
  shlibpath_var=LD_LIBRARY_PATH
14465
 
  shlibpath_overrides_runpath=yes
14466
 
  hardcode_into_libs=yes
14467
 
  # ldd complains unless libraries are executable
14468
 
  postinstall_cmds='chmod +x $lib'
14469
 
  ;;
14470
 
 
14471
 
sunos4*)
14472
 
  version_type=sunos
14473
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14474
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14475
 
  shlibpath_var=LD_LIBRARY_PATH
14476
 
  shlibpath_overrides_runpath=yes
14477
 
  if test "$with_gnu_ld" = yes; then
14478
 
    need_lib_prefix=no
14479
 
  fi
14480
 
  need_version=yes
14481
 
  ;;
14482
 
 
14483
 
sysv4 | sysv4.3*)
14484
 
  version_type=linux
14485
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486
 
  soname_spec='${libname}${release}${shared_ext}$major'
14487
 
  shlibpath_var=LD_LIBRARY_PATH
14488
 
  case $host_vendor in
14489
 
    sni)
14490
 
      shlibpath_overrides_runpath=no
14491
 
      need_lib_prefix=no
14492
 
      runpath_var=LD_RUN_PATH
14493
 
      ;;
14494
 
    siemens)
14495
 
      need_lib_prefix=no
14496
 
      ;;
14497
 
    motorola)
14498
 
      need_lib_prefix=no
14499
 
      need_version=no
14500
 
      shlibpath_overrides_runpath=no
14501
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14502
 
      ;;
14503
 
  esac
14504
 
  ;;
14505
 
 
14506
 
sysv4*MP*)
14507
 
  if test -d /usr/nec ;then
14508
 
    version_type=linux
14509
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14510
 
    soname_spec='$libname${shared_ext}.$major'
14511
 
    shlibpath_var=LD_LIBRARY_PATH
14512
 
  fi
14513
 
  ;;
14514
 
 
14515
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14516
 
  version_type=freebsd-elf
14517
 
  need_lib_prefix=no
14518
 
  need_version=no
14519
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14520
 
  soname_spec='${libname}${release}${shared_ext}$major'
14521
 
  shlibpath_var=LD_LIBRARY_PATH
14522
 
  shlibpath_overrides_runpath=yes
14523
 
  hardcode_into_libs=yes
14524
 
  if test "$with_gnu_ld" = yes; then
14525
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14526
 
  else
14527
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14528
 
    case $host_os in
14529
 
      sco3.2v5*)
14530
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14531
 
        ;;
14532
 
    esac
14533
 
  fi
14534
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14535
 
  ;;
14536
 
 
14537
 
tpf*)
14538
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14539
 
  version_type=linux
14540
 
  need_lib_prefix=no
14541
 
  need_version=no
14542
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543
 
  shlibpath_var=LD_LIBRARY_PATH
14544
 
  shlibpath_overrides_runpath=no
14545
 
  hardcode_into_libs=yes
14546
 
  ;;
14547
 
 
14548
 
uts4*)
14549
 
  version_type=linux
14550
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551
 
  soname_spec='${libname}${release}${shared_ext}$major'
14552
 
  shlibpath_var=LD_LIBRARY_PATH
14553
 
  ;;
14554
 
 
14555
 
*)
14556
 
  dynamic_linker=no
14557
 
  ;;
14558
 
esac
14559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14560
 
$as_echo "$dynamic_linker" >&6; }
14561
 
test "$dynamic_linker" = no && can_build_shared=no
14562
 
 
14563
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14564
 
if test "$GCC" = yes; then
14565
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14566
 
fi
14567
 
 
14568
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14569
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14570
 
fi
14571
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14572
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14573
 
fi
14574
 
 
14575
 
 
14576
 
 
14577
 
 
14578
 
 
14579
 
 
14580
 
 
14581
 
 
14582
 
 
14583
 
 
14584
 
 
14585
 
 
14586
 
 
14587
 
 
14588
 
 
14589
 
 
14590
 
 
14591
 
 
14592
 
 
14593
 
 
14594
 
 
14595
 
 
14596
 
 
14597
 
 
14598
 
 
14599
 
 
14600
 
 
14601
 
 
14602
 
 
14603
 
 
14604
 
 
14605
 
 
14606
 
 
14607
 
 
14608
 
 
14609
 
 
14610
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14611
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14612
 
hardcode_action_CXX=
14613
 
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14614
 
   test -n "$runpath_var_CXX" ||
14615
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14616
 
 
14617
 
  # We can hardcode non-existent directories.
14618
 
  if test "$hardcode_direct_CXX" != no &&
14619
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14620
 
     # have to relink, otherwise we might link with an installed library
14621
 
     # when we should be linking with a yet-to-be-installed one
14622
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14623
 
     test "$hardcode_minus_L_CXX" != no; then
14624
 
    # Linking always hardcodes the temporary library directory.
14625
 
    hardcode_action_CXX=relink
14626
 
  else
14627
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14628
 
    hardcode_action_CXX=immediate
14629
 
  fi
14630
 
else
14631
 
  # We cannot hardcode anything, or else we can only hardcode existing
14632
 
  # directories.
14633
 
  hardcode_action_CXX=unsupported
14634
 
fi
14635
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14636
 
$as_echo "$hardcode_action_CXX" >&6; }
14637
 
 
14638
 
if test "$hardcode_action_CXX" = relink ||
14639
 
   test "$inherit_rpath_CXX" = yes; then
14640
 
  # Fast installation is not supported
14641
 
  enable_fast_install=no
14642
 
elif test "$shlibpath_overrides_runpath" = yes ||
14643
 
     test "$enable_shared" = no; then
14644
 
  # Fast installation is not necessary
14645
 
  enable_fast_install=needless
14646
 
fi
14647
 
 
14648
 
 
14649
 
 
14650
 
 
14651
 
 
14652
 
 
14653
 
 
14654
 
  fi # test -n "$compiler"
14655
 
 
14656
 
  CC=$lt_save_CC
14657
 
  LDCXX=$LD
14658
 
  LD=$lt_save_LD
14659
 
  GCC=$lt_save_GCC
14660
 
  with_gnu_ld=$lt_save_with_gnu_ld
14661
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
14662
 
  lt_cv_path_LD=$lt_save_path_LD
14663
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14664
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14665
 
fi # test "$_lt_caught_CXX_error" != yes
14666
 
 
14667
 
ac_ext=c
14668
 
ac_cpp='$CPP $CPPFLAGS'
14669
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14670
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14671
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14672
 
 
14673
 
 
14674
 
 
14675
 
 
14676
 
 
14677
 
 
14678
 
 
14679
 
 
14680
 
 
14681
 
 
14682
 
 
14683
 
 
14684
 
 
14685
 
        ac_config_commands="$ac_config_commands libtool"
14686
 
 
14687
 
 
14688
 
 
14689
 
 
14690
 
# Only expand once:
14691
 
 
14692
 
 
14693
 
if test "$GXX" != "yes"; then
14694
 
    as_fn_error $? "GNU C++ compiler not found, not building LLVM" "$LINENO" 5
14695
 
fi
14696
 
 
14697
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
14698
 
$as_echo_n "checking for GNU make... " >&6; }
14699
 
if test "${llvm_cv_gnu_make_command+set}" = set; then :
14700
 
  $as_echo_n "(cached) " >&6
14701
 
else
14702
 
  llvm_cv_gnu_make_command=''
14703
 
 for a in "$MAKE" make gmake gnumake ; do
14704
 
  if test -z "$a" ; then continue ; fi ;
14705
 
  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
14706
 
  then
14707
 
   llvm_cv_gnu_make_command=$a ;
14708
 
   break;
14709
 
  fi
14710
 
 done
14711
 
fi
14712
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
14713
 
$as_echo "$llvm_cv_gnu_make_command" >&6; }
14714
 
 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
14715
 
   ifGNUmake='' ;
14716
 
 else
14717
 
   ifGNUmake='#' ;
14718
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
14719
 
$as_echo "\"Not found\"" >&6; };
14720
 
 fi
14721
 
 
14722
 
 
14723
 
GMAKE="$llvm_cv_gnu_make_command"
14724
 
 
14725
 
 
14726
 
llvmconfig=
14727
 
 
14728
 
# Check whether --with-system-llvm was given.
14729
 
if test "${with_system_llvm+set}" = set; then :
14730
 
  withval=$with_system_llvm; case "$withval" in
14731
 
  yes)
14732
 
    as_fn_error $? "--with-system-llvm needs full path to llvm-config" "$LINENO" 5
14733
 
    ;;
14734
 
  no) ;;
14735
 
  *)
14736
 
    llvmconfig="$withval"
14737
 
    llvmver=`$llvmconfig --version`
14738
 
    if test "$llvmver" != "2.8" -a "$llvmver" != "2.8svn" -a "$llvmver" != "2.8rc"; then
14739
 
        as_fn_error $? "LLVM 2.8 or 2.8svn required, but \"$llvmver\" found" "$LINENO" 5
14740
 
    fi
14741
 
    LLVMCONFIG_CXXFLAGS=`$llvmconfig --cxxflags`
14742
 
 
14743
 
    LLVMCONFIG_LDFLAGS=`$llvmconfig --ldflags`
14744
 
 
14745
 
    LLVMCONFIG_LIBS=`$llvmconfig --libs jit nativecodegen scalaropts ipo`
14746
 
 
14747
 
    LLVMCONFIG_LIBFILES=`$llvmconfig --libfiles jit nativecodegen scalaropts ipo`
14748
 
 
14749
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using external LLVM" >&5
14750
 
$as_echo "$as_me: Using external LLVM" >&6;}
14751
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&5
14752
 
$as_echo "$as_me: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&6;}
14753
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&5
14754
 
$as_echo "$as_me: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&6;}
14755
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&5
14756
 
$as_echo "$as_me: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&6;}
14757
 
    ;;
14758
 
  esac
14759
 
 
14760
 
fi
14761
 
 
14762
 
 
14763
 
if test "x$llvmconfig" = "x"; then
14764
 
 
14765
 
 
14766
 
subdirs="$subdirs llvm"
14767
 
 
14768
 
fi
14769
 
 
14770
 
# Check whether --enable-llvm was given.
14771
 
if test "${enable_llvm+set}" = set; then :
14772
 
  enableval=$enable_llvm; enable_llvm=$enableval
14773
 
else
14774
 
  enable_llvm="auto"
14775
 
fi
14776
 
 
14777
 
 
14778
 
# Check whether --enable-optimized was given.
14779
 
if test "${enable_optimized+set}" = set; then :
14780
 
  enableval=$enable_optimized; enable_optimized=$enableval
14781
 
else
14782
 
  enable_optimized=default
14783
 
fi
14784
 
 
14785
 
 if test "x$enable_optimized" = "xno"; then
14786
 
  DEBUG_BUILD_TRUE=
14787
 
  DEBUG_BUILD_FALSE='#'
14788
 
else
14789
 
  DEBUG_BUILD_TRUE='#'
14790
 
  DEBUG_BUILD_FALSE=
14791
 
fi
14792
 
 
14793
 
 
14794
 
if test "$enable_optimized" = "default"; then
14795
 
    ac_configure_args="$ac_configure_args --enable-optimized"
14796
 
fi
14797
 
 
14798
 
ac_configure_args="$ac_configure_args llvm_cv_gnu_make_command=make"
14799
 
# Check whether --enable-all-jit-targets was given.
14800
 
if test "${enable_all_jit_targets+set}" = set; then :
14801
 
  enableval=$enable_all_jit_targets; enable_alltargets=$enableval
14802
 
else
14803
 
  enable_alltargets=no
14804
 
fi
14805
 
 
14806
 
if test "$enable_alltargets" = "yes"; then
14807
 
    new_args="$ac_configure_args --enable-targets=x86,powerpc --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14808
 
else
14809
 
    new_args="$ac_configure_args --enable-targets=host-only --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
14810
 
fi
14811
 
ac_configure_args=`echo $new_args | sed -e 's/-Werror //g'`
14812
 
 
14813
 
if test "$enable_llvm" = "auto"; then
14814
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported C++ compiler version" >&5
14815
 
$as_echo_n "checking for supported C++ compiler version... " >&6; }
14816
 
    gxx_version=`${CXX} -dumpversion` ||
14817
 
    as_fn_error $? "Unable to get GNU C++ compiler version" "$LINENO" 5
14818
 
    case "${gxx_version}" in
14819
 
     [03].*)
14820
 
        as_fn_error $? "C++ compiler too old (${gxx_version})" "$LINENO" 5
14821
 
        ;;
14822
 
     4.1.[1]*)
14823
 
        as_fn_error $? "C++ compiler is buggy" "$LINENO" 5
14824
 
        ;;
14825
 
     *)
14826
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gxx_version})" >&5
14827
 
$as_echo "ok (${gxx_version})" >&6; }
14828
 
    esac
14829
 
 
14830
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported OS" >&5
14831
 
$as_echo_n "checking for supported OS... " >&6; }
14832
 
    case "$target_cpu" in
14833
 
        i?86|amd64|x86_64|powerpc*)
14834
 
            case "$target_os" in
14835
 
                darwin*|freebsd*|openbsd*|netbsd*|dragonfly*|linux*|solaris*|win32*|mingw*)
14836
 
                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($target_cpu-$target_os)" >&5
14837
 
$as_echo "ok ($target_cpu-$target_os)" >&6; }
14838
 
                    ;;
14839
 
                *)
14840
 
                    as_fn_error $? "OS $target_os is not supported, not building LLVM" "$LINENO" 5
14841
 
                    ;;
14842
 
            esac
14843
 
            ;;
14844
 
        alpha*|arm*)
14845
 
            as_fn_error $? "CPU support is untested, not building LLVM" "$LINENO" 5
14846
 
            ;;
14847
 
        *)
14848
 
            as_fn_error $? "Unsupported CPU for JIT: $target_cpu, not building LLVM" "$LINENO" 5
14849
 
            ;;
14850
 
    esac
14851
 
fi
14852
 
 
14853
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libstdc++" >&5
14854
 
$as_echo_n "checking for working libstdc++... " >&6; }
14855
 
ac_ext=cpp
14856
 
ac_cpp='$CXXCPP $CPPFLAGS'
14857
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14860
 
 
14861
 
if test "$cross_compiling" = yes; then :
14862
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863
 
/* end confdefs.h.  */
14864
 
 
14865
 
        #include <iostream>
14866
 
        int main()
14867
 
        {
14868
 
            // this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
14869
 
            std::cout << "test";
14870
 
            return 0;
14871
 
        }
14872
 
 
14873
 
_ACEOF
14874
 
if ac_fn_cxx_try_link "$LINENO"; then :
14875
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14876
 
$as_echo "yes" >&6; }
14877
 
else
14878
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880
 
as_fn_error $? "failed
14881
 
See \`config.log' for more details" "$LINENO" 5 ; }
14882
 
 
14883
 
fi
14884
 
rm -f core conftest.err conftest.$ac_objext \
14885
 
    conftest$ac_exeext conftest.$ac_ext
14886
 
else
14887
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888
 
/* end confdefs.h.  */
14889
 
 
14890
 
        #include <iostream>
14891
 
        int main()
14892
 
        {
14893
 
            // this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
14894
 
            std::cout << "test";
14895
 
            return 0;
14896
 
    }
14897
 
 
14898
 
_ACEOF
14899
 
if ac_fn_cxx_try_run "$LINENO"; then :
14900
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14901
 
$as_echo "yes" >&6; }
14902
 
else
14903
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14904
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14905
 
as_fn_error $? "failed
14906
 
See \`config.log' for more details" "$LINENO" 5 ; }
14907
 
fi
14908
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14910
 
fi
14911
 
 
14912
 
ac_ext=c
14913
 
ac_cpp='$CPP $CPPFLAGS'
14914
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14915
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14917
 
 
14918
 
 
14919
 
build_x86=no
14920
 
build_ppc=no
14921
 
case "$target_cpu" in
14922
 
    i?86|amd64|x86_64)
14923
 
            build_x86=yes
14924
 
            ;;
14925
 
    powerpc*)
14926
 
            build_ppc=yes
14927
 
            ;;
14928
 
esac
14929
 
 
14930
 
# FreeBSD is only one which needs something else than -pthread,
14931
 
# according to the logic in ClamAV's main configure.in.
14932
 
case "$target_os" in
14933
 
freebsd[45]*)
14934
 
    THREAD_LIBS="-pthread -lc_r"
14935
 
    ;;
14936
 
freebsd*)
14937
 
    THREAD_LIBS="-lthr"
14938
 
    ;;
14939
 
darwin*)
14940
 
    # none required
14941
 
    THREAD_LIBS=
14942
 
    ;;
14943
 
 
14944
 
*)
14945
 
    THREAD_LIBS="-pthread"
14946
 
esac
14947
 
 
14948
 
 
14949
 
if test "$enable_alltargets" = "yes"; then
14950
 
        build_x86=yes
14951
 
        build_ppc=yes
14952
 
fi
14953
 
if test "$ac_cv_c_bigendian" = "universal"; then
14954
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: Universal build detected" >&5
14955
 
$as_echo "$as_me: Universal build detected" >&6;}
14956
 
    build_x86=yes
14957
 
    build_ppc=yes
14958
 
fi
14959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building X86 backend: $build_x86" >&5
14960
 
$as_echo "$as_me: Building X86 backend: $build_x86" >&6;}
14961
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building PPC backend: $build_ppc" >&5
14962
 
$as_echo "$as_me: Building PPC backend: $build_ppc" >&6;}
14963
 
 if test "$build_x86" = "yes"; then
14964
 
  BUILD_X86_TRUE=
14965
 
  BUILD_X86_FALSE='#'
14966
 
else
14967
 
  BUILD_X86_TRUE='#'
14968
 
  BUILD_X86_FALSE=
14969
 
fi
14970
 
 
14971
 
 if test "$build_ppc" = "yes"; then
14972
 
  BUILD_PPC_TRUE=
14973
 
  BUILD_PPC_FALSE='#'
14974
 
else
14975
 
  BUILD_PPC_TRUE='#'
14976
 
  BUILD_PPC_FALSE=
14977
 
fi
14978
 
 
14979
 
 
14980
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
14981
 
$as_echo_n "checking optional compiler flags... " >&6; }
14982
 
NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
14983
 
 
14984
 
NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
14985
 
 
14986
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
14987
 
$as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
14988
 
 
14989
 
 if test -n "$llvmconfig"; then
14990
 
  BUILD_EXTERNAL_LLVM_TRUE=
14991
 
  BUILD_EXTERNAL_LLVM_FALSE='#'
14992
 
else
14993
 
  BUILD_EXTERNAL_LLVM_TRUE='#'
14994
 
  BUILD_EXTERNAL_LLVM_FALSE=
14995
 
fi
14996
 
 
14997
 
 
14998
 
ac_config_files="$ac_config_files Makefile"
14999
 
 
15000
 
cat >confcache <<\_ACEOF
15001
 
# This file is a shell script that caches the results of configure
15002
 
# tests run on this system so they can be shared between configure
15003
 
# scripts and configure runs, see configure's option --config-cache.
15004
 
# It is not useful on other systems.  If it contains results you don't
15005
 
# want to keep, you may remove or edit it.
15006
 
#
15007
 
# config.status only pays attention to the cache file if you give it
15008
 
# the --recheck option to rerun configure.
15009
 
#
15010
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15011
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15012
 
# following values.
15013
 
 
15014
 
_ACEOF
15015
 
 
15016
 
# The following way of writing the cache mishandles newlines in values,
15017
 
# but we know of no workaround that is simple, portable, and efficient.
15018
 
# So, we kill variables containing newlines.
15019
 
# Ultrix sh set writes to stderr and can't be redirected directly,
15020
 
# and sets the high bit in the cache file unless we assign to the vars.
15021
 
(
15022
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15023
 
    eval ac_val=\$$ac_var
15024
 
    case $ac_val in #(
15025
 
    *${as_nl}*)
15026
 
      case $ac_var in #(
15027
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15028
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15029
 
      esac
15030
 
      case $ac_var in #(
15031
 
      _ | IFS | as_nl) ;; #(
15032
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15033
 
      *) { eval $ac_var=; unset $ac_var;} ;;
15034
 
      esac ;;
15035
 
    esac
15036
 
  done
15037
 
 
15038
 
  (set) 2>&1 |
15039
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15040
 
    *${as_nl}ac_space=\ *)
15041
 
      # `set' does not quote correctly, so add quotes: double-quote
15042
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15043
 
      sed -n \
15044
 
        "s/'/'\\\\''/g;
15045
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15046
 
      ;; #(
15047
 
    *)
15048
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15049
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15050
 
      ;;
15051
 
    esac |
15052
 
    sort
15053
 
) |
15054
 
  sed '
15055
 
     /^ac_cv_env_/b end
15056
 
     t clear
15057
 
     :clear
15058
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15059
 
     t end
15060
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15061
 
     :end' >>confcache
15062
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15063
 
  if test -w "$cache_file"; then
15064
 
    test "x$cache_file" != "x/dev/null" &&
15065
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15066
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
15067
 
    cat confcache >$cache_file
15068
 
  else
15069
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15070
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15071
 
  fi
15072
 
fi
15073
 
rm -f confcache
15074
 
 
15075
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15076
 
# Let make expand exec_prefix.
15077
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15078
 
 
15079
 
DEFS=-DHAVE_CONFIG_H
15080
 
 
15081
 
ac_libobjs=
15082
 
ac_ltlibobjs=
15083
 
U=
15084
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15085
 
  # 1. Remove the extension, and $U if already installed.
15086
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15087
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15088
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15089
 
  #    will be set to the directory where LIBOBJS objects are built.
15090
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15091
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15092
 
done
15093
 
LIBOBJS=$ac_libobjs
15094
 
 
15095
 
LTLIBOBJS=$ac_ltlibobjs
15096
 
 
15097
 
 
15098
 
 if test -n "$EXEEXT"; then
15099
 
  am__EXEEXT_TRUE=
15100
 
  am__EXEEXT_FALSE='#'
15101
 
else
15102
 
  am__EXEEXT_TRUE='#'
15103
 
  am__EXEEXT_FALSE=
15104
 
fi
15105
 
 
15106
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15107
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
15108
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109
 
fi
15110
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15111
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15112
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113
 
fi
15114
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15115
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15116
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15117
 
fi
15118
 
 
15119
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15120
 
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15121
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122
 
fi
15123
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15124
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15125
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126
 
fi
15127
 
if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
15128
 
  as_fn_error $? "conditional \"DEBUG_BUILD\" was never defined.
15129
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130
 
fi
15131
 
if test -z "${BUILD_X86_TRUE}" && test -z "${BUILD_X86_FALSE}"; then
15132
 
  as_fn_error $? "conditional \"BUILD_X86\" was never defined.
15133
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15134
 
fi
15135
 
if test -z "${BUILD_PPC_TRUE}" && test -z "${BUILD_PPC_FALSE}"; then
15136
 
  as_fn_error $? "conditional \"BUILD_PPC\" was never defined.
15137
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138
 
fi
15139
 
if test -z "${BUILD_EXTERNAL_LLVM_TRUE}" && test -z "${BUILD_EXTERNAL_LLVM_FALSE}"; then
15140
 
  as_fn_error $? "conditional \"BUILD_EXTERNAL_LLVM\" was never defined.
15141
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142
 
fi
15143
 
 
15144
 
: ${CONFIG_STATUS=./config.status}
15145
 
ac_write_fail=0
15146
 
ac_clean_files_save=$ac_clean_files
15147
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15148
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15149
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15150
 
as_write_fail=0
15151
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15152
 
#! $SHELL
15153
 
# Generated by $as_me.
15154
 
# Run this file to recreate the current configuration.
15155
 
# Compiler output produced by configure, useful for debugging
15156
 
# configure, is in config.log if it exists.
15157
 
 
15158
 
debug=false
15159
 
ac_cs_recheck=false
15160
 
ac_cs_silent=false
15161
 
 
15162
 
SHELL=\${CONFIG_SHELL-$SHELL}
15163
 
export SHELL
15164
 
_ASEOF
15165
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15166
 
## -------------------- ##
15167
 
## M4sh Initialization. ##
15168
 
## -------------------- ##
15169
 
 
15170
 
# Be more Bourne compatible
15171
 
DUALCASE=1; export DUALCASE # for MKS sh
15172
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15173
 
  emulate sh
15174
 
  NULLCMD=:
15175
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15176
 
  # is contrary to our usage.  Disable this feature.
15177
 
  alias -g '${1+"$@"}'='"$@"'
15178
 
  setopt NO_GLOB_SUBST
15179
 
else
15180
 
  case `(set -o) 2>/dev/null` in #(
15181
 
  *posix*) :
15182
 
    set -o posix ;; #(
15183
 
  *) :
15184
 
     ;;
15185
 
esac
15186
 
fi
15187
 
 
15188
 
 
15189
 
as_nl='
15190
 
'
15191
 
export as_nl
15192
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15193
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15194
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15195
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15196
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
15197
 
# but without wasting forks for bash or zsh.
15198
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
15199
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15200
 
  as_echo='print -r --'
15201
 
  as_echo_n='print -rn --'
15202
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15203
 
  as_echo='printf %s\n'
15204
 
  as_echo_n='printf %s'
15205
 
else
15206
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15207
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15208
 
    as_echo_n='/usr/ucb/echo -n'
15209
 
  else
15210
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15211
 
    as_echo_n_body='eval
15212
 
      arg=$1;
15213
 
      case $arg in #(
15214
 
      *"$as_nl"*)
15215
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
15216
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15217
 
      esac;
15218
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15219
 
    '
15220
 
    export as_echo_n_body
15221
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
15222
 
  fi
15223
 
  export as_echo_body
15224
 
  as_echo='sh -c $as_echo_body as_echo'
15225
 
fi
15226
 
 
15227
 
# The user is always right.
15228
 
if test "${PATH_SEPARATOR+set}" != set; then
15229
 
  PATH_SEPARATOR=:
15230
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15231
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15232
 
      PATH_SEPARATOR=';'
15233
 
  }
15234
 
fi
15235
 
 
15236
 
 
15237
 
# IFS
15238
 
# We need space, tab and new line, in precisely that order.  Quoting is
15239
 
# there to prevent editors from complaining about space-tab.
15240
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15241
 
# splitting by setting IFS to empty value.)
15242
 
IFS=" ""        $as_nl"
15243
 
 
15244
 
# Find who we are.  Look in the path if we contain no directory separator.
15245
 
case $0 in #((
15246
 
  *[\\/]* ) as_myself=$0 ;;
15247
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248
 
for as_dir in $PATH
15249
 
do
15250
 
  IFS=$as_save_IFS
15251
 
  test -z "$as_dir" && as_dir=.
15252
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15253
 
  done
15254
 
IFS=$as_save_IFS
15255
 
 
15256
 
     ;;
15257
 
esac
15258
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
15259
 
# in which case we are not to be found in the path.
15260
 
if test "x$as_myself" = x; then
15261
 
  as_myself=$0
15262
 
fi
15263
 
if test ! -f "$as_myself"; then
15264
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15265
 
  exit 1
15266
 
fi
15267
 
 
15268
 
# Unset variables that we do not need and which cause bugs (e.g. in
15269
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15270
 
# suppresses any "Segmentation fault" message there.  '((' could
15271
 
# trigger a bug in pdksh 5.2.14.
15272
 
for as_var in BASH_ENV ENV MAIL MAILPATH
15273
 
do eval test x\${$as_var+set} = xset \
15274
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15275
 
done
15276
 
PS1='$ '
15277
 
PS2='> '
15278
 
PS4='+ '
15279
 
 
15280
 
# NLS nuisances.
15281
 
LC_ALL=C
15282
 
export LC_ALL
15283
 
LANGUAGE=C
15284
 
export LANGUAGE
15285
 
 
15286
 
# CDPATH.
15287
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15288
 
 
15289
 
 
15290
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15291
 
# ----------------------------------------
15292
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15293
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15294
 
# script with STATUS, using 1 if that was 0.
15295
 
as_fn_error ()
15296
 
{
15297
 
  as_status=$1; test $as_status -eq 0 && as_status=1
15298
 
  if test "$4"; then
15299
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15300
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15301
 
  fi
15302
 
  $as_echo "$as_me: error: $2" >&2
15303
 
  as_fn_exit $as_status
15304
 
} # as_fn_error
15305
 
 
15306
 
 
15307
 
# as_fn_set_status STATUS
15308
 
# -----------------------
15309
 
# Set $? to STATUS, without forking.
15310
 
as_fn_set_status ()
15311
 
{
15312
 
  return $1
15313
 
} # as_fn_set_status
15314
 
 
15315
 
# as_fn_exit STATUS
15316
 
# -----------------
15317
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15318
 
as_fn_exit ()
15319
 
{
15320
 
  set +e
15321
 
  as_fn_set_status $1
15322
 
  exit $1
15323
 
} # as_fn_exit
15324
 
 
15325
 
# as_fn_unset VAR
15326
 
# ---------------
15327
 
# Portably unset VAR.
15328
 
as_fn_unset ()
15329
 
{
15330
 
  { eval $1=; unset $1;}
15331
 
}
15332
 
as_unset=as_fn_unset
15333
 
# as_fn_append VAR VALUE
15334
 
# ----------------------
15335
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
15336
 
# advantage of any shell optimizations that allow amortized linear growth over
15337
 
# repeated appends, instead of the typical quadratic growth present in naive
15338
 
# implementations.
15339
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15340
 
  eval 'as_fn_append ()
15341
 
  {
15342
 
    eval $1+=\$2
15343
 
  }'
15344
 
else
15345
 
  as_fn_append ()
15346
 
  {
15347
 
    eval $1=\$$1\$2
15348
 
  }
15349
 
fi # as_fn_append
15350
 
 
15351
 
# as_fn_arith ARG...
15352
 
# ------------------
15353
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
15354
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15355
 
# must be portable across $(()) and expr.
15356
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15357
 
  eval 'as_fn_arith ()
15358
 
  {
15359
 
    as_val=$(( $* ))
15360
 
  }'
15361
 
else
15362
 
  as_fn_arith ()
15363
 
  {
15364
 
    as_val=`expr "$@" || test $? -eq 1`
15365
 
  }
15366
 
fi # as_fn_arith
15367
 
 
15368
 
 
15369
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
15370
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15371
 
  as_expr=expr
15372
 
else
15373
 
  as_expr=false
15374
 
fi
15375
 
 
15376
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15377
 
  as_basename=basename
15378
 
else
15379
 
  as_basename=false
15380
 
fi
15381
 
 
15382
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15383
 
  as_dirname=dirname
15384
 
else
15385
 
  as_dirname=false
15386
 
fi
15387
 
 
15388
 
as_me=`$as_basename -- "$0" ||
15389
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15390
 
         X"$0" : 'X\(//\)$' \| \
15391
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15392
 
$as_echo X/"$0" |
15393
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15394
 
            s//\1/
15395
 
            q
15396
 
          }
15397
 
          /^X\/\(\/\/\)$/{
15398
 
            s//\1/
15399
 
            q
15400
 
          }
15401
 
          /^X\/\(\/\).*/{
15402
 
            s//\1/
15403
 
            q
15404
 
          }
15405
 
          s/.*/./; q'`
15406
 
 
15407
 
# Avoid depending upon Character Ranges.
15408
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15409
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15410
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15411
 
as_cr_digits='0123456789'
15412
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
15413
 
 
15414
 
ECHO_C= ECHO_N= ECHO_T=
15415
 
case `echo -n x` in #(((((
15416
 
-n*)
15417
 
  case `echo 'xy\c'` in
15418
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15419
 
  xy)  ECHO_C='\c';;
15420
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15421
 
       ECHO_T=' ';;
15422
 
  esac;;
15423
 
*)
15424
 
  ECHO_N='-n';;
15425
 
esac
15426
 
 
15427
 
rm -f conf$$ conf$$.exe conf$$.file
15428
 
if test -d conf$$.dir; then
15429
 
  rm -f conf$$.dir/conf$$.file
15430
 
else
15431
 
  rm -f conf$$.dir
15432
 
  mkdir conf$$.dir 2>/dev/null
15433
 
fi
15434
 
if (echo >conf$$.file) 2>/dev/null; then
15435
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15436
 
    as_ln_s='ln -s'
15437
 
    # ... but there are two gotchas:
15438
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15439
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15440
 
    # In both cases, we have to default to `cp -p'.
15441
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15442
 
      as_ln_s='cp -p'
15443
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
15444
 
    as_ln_s=ln
15445
 
  else
15446
 
    as_ln_s='cp -p'
15447
 
  fi
15448
 
else
15449
 
  as_ln_s='cp -p'
15450
 
fi
15451
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15452
 
rmdir conf$$.dir 2>/dev/null
15453
 
 
15454
 
 
15455
 
# as_fn_mkdir_p
15456
 
# -------------
15457
 
# Create "$as_dir" as a directory, including parents if necessary.
15458
 
as_fn_mkdir_p ()
15459
 
{
15460
 
 
15461
 
  case $as_dir in #(
15462
 
  -*) as_dir=./$as_dir;;
15463
 
  esac
15464
 
  test -d "$as_dir" || eval $as_mkdir_p || {
15465
 
    as_dirs=
15466
 
    while :; do
15467
 
      case $as_dir in #(
15468
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15469
 
      *) as_qdir=$as_dir;;
15470
 
      esac
15471
 
      as_dirs="'$as_qdir' $as_dirs"
15472
 
      as_dir=`$as_dirname -- "$as_dir" ||
15473
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15475
 
         X"$as_dir" : 'X\(//\)$' \| \
15476
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15477
 
$as_echo X"$as_dir" |
15478
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479
 
            s//\1/
15480
 
            q
15481
 
          }
15482
 
          /^X\(\/\/\)[^/].*/{
15483
 
            s//\1/
15484
 
            q
15485
 
          }
15486
 
          /^X\(\/\/\)$/{
15487
 
            s//\1/
15488
 
            q
15489
 
          }
15490
 
          /^X\(\/\).*/{
15491
 
            s//\1/
15492
 
            q
15493
 
          }
15494
 
          s/.*/./; q'`
15495
 
      test -d "$as_dir" && break
15496
 
    done
15497
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15498
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15499
 
 
15500
 
 
15501
 
} # as_fn_mkdir_p
15502
 
if mkdir -p . 2>/dev/null; then
15503
 
  as_mkdir_p='mkdir -p "$as_dir"'
15504
 
else
15505
 
  test -d ./-p && rmdir ./-p
15506
 
  as_mkdir_p=false
15507
 
fi
15508
 
 
15509
 
if test -x / >/dev/null 2>&1; then
15510
 
  as_test_x='test -x'
15511
 
else
15512
 
  if ls -dL / >/dev/null 2>&1; then
15513
 
    as_ls_L_option=L
15514
 
  else
15515
 
    as_ls_L_option=
15516
 
  fi
15517
 
  as_test_x='
15518
 
    eval sh -c '\''
15519
 
      if test -d "$1"; then
15520
 
        test -d "$1/.";
15521
 
      else
15522
 
        case $1 in #(
15523
 
        -*)set "./$1";;
15524
 
        esac;
15525
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15526
 
        ???[sx]*):;;*)false;;esac;fi
15527
 
    '\'' sh
15528
 
  '
15529
 
fi
15530
 
as_executable_p=$as_test_x
15531
 
 
15532
 
# Sed expression to map a string onto a valid CPP name.
15533
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15534
 
 
15535
 
# Sed expression to map a string onto a valid variable name.
15536
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15537
 
 
15538
 
 
15539
 
exec 6>&1
15540
 
## ----------------------------------- ##
15541
 
## Main body of $CONFIG_STATUS script. ##
15542
 
## ----------------------------------- ##
15543
 
_ASEOF
15544
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15545
 
 
15546
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547
 
# Save the log message, to keep $0 and so on meaningful, and to
15548
 
# report actual input values of CONFIG_FILES etc. instead of their
15549
 
# values after options handling.
15550
 
ac_log="
15551
 
This file was extended by libclamavc++ $as_me devel, which was
15552
 
generated by GNU Autoconf 2.67.  Invocation command line was
15553
 
 
15554
 
  CONFIG_FILES    = $CONFIG_FILES
15555
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
15556
 
  CONFIG_LINKS    = $CONFIG_LINKS
15557
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15558
 
  $ $0 $@
15559
 
 
15560
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15561
 
"
15562
 
 
15563
 
_ACEOF
15564
 
 
15565
 
case $ac_config_files in *"
15566
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15567
 
esac
15568
 
 
15569
 
case $ac_config_headers in *"
15570
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15571
 
esac
15572
 
 
15573
 
 
15574
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575
 
# Files that config.status was made for.
15576
 
config_files="$ac_config_files"
15577
 
config_headers="$ac_config_headers"
15578
 
config_commands="$ac_config_commands"
15579
 
 
15580
 
_ACEOF
15581
 
 
15582
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583
 
ac_cs_usage="\
15584
 
\`$as_me' instantiates files and other configuration actions
15585
 
from templates according to the current configuration.  Unless the files
15586
 
and actions are specified as TAGs, all are instantiated by default.
15587
 
 
15588
 
Usage: $0 [OPTION]... [TAG]...
15589
 
 
15590
 
  -h, --help       print this help, then exit
15591
 
  -V, --version    print version number and configuration settings, then exit
15592
 
      --config     print configuration, then exit
15593
 
  -q, --quiet, --silent
15594
 
                   do not print progress messages
15595
 
  -d, --debug      don't remove temporary files
15596
 
      --recheck    update $as_me by reconfiguring in the same conditions
15597
 
      --file=FILE[:TEMPLATE]
15598
 
                   instantiate the configuration file FILE
15599
 
      --header=FILE[:TEMPLATE]
15600
 
                   instantiate the configuration header FILE
15601
 
 
15602
 
Configuration files:
15603
 
$config_files
15604
 
 
15605
 
Configuration headers:
15606
 
$config_headers
15607
 
 
15608
 
Configuration commands:
15609
 
$config_commands
15610
 
 
15611
 
Report bugs to <http://bugs.clamav.net>."
15612
 
 
15613
 
_ACEOF
15614
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15616
 
ac_cs_version="\\
15617
 
libclamavc++ config.status devel
15618
 
configured by $0, generated by GNU Autoconf 2.67,
15619
 
  with options \\"\$ac_cs_config\\"
15620
 
 
15621
 
Copyright (C) 2010 Free Software Foundation, Inc.
15622
 
This config.status script is free software; the Free Software Foundation
15623
 
gives unlimited permission to copy, distribute and modify it."
15624
 
 
15625
 
ac_pwd='$ac_pwd'
15626
 
srcdir='$srcdir'
15627
 
INSTALL='$INSTALL'
15628
 
MKDIR_P='$MKDIR_P'
15629
 
AWK='$AWK'
15630
 
test -n "\$AWK" || AWK=awk
15631
 
_ACEOF
15632
 
 
15633
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634
 
# The default lists apply if the user does not specify any file.
15635
 
ac_need_defaults=:
15636
 
while test $# != 0
15637
 
do
15638
 
  case $1 in
15639
 
  --*=?*)
15640
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15641
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15642
 
    ac_shift=:
15643
 
    ;;
15644
 
  --*=)
15645
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15646
 
    ac_optarg=
15647
 
    ac_shift=:
15648
 
    ;;
15649
 
  *)
15650
 
    ac_option=$1
15651
 
    ac_optarg=$2
15652
 
    ac_shift=shift
15653
 
    ;;
15654
 
  esac
15655
 
 
15656
 
  case $ac_option in
15657
 
  # Handling of the options.
15658
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15659
 
    ac_cs_recheck=: ;;
15660
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15661
 
    $as_echo "$ac_cs_version"; exit ;;
15662
 
  --config | --confi | --conf | --con | --co | --c )
15663
 
    $as_echo "$ac_cs_config"; exit ;;
15664
 
  --debug | --debu | --deb | --de | --d | -d )
15665
 
    debug=: ;;
15666
 
  --file | --fil | --fi | --f )
15667
 
    $ac_shift
15668
 
    case $ac_optarg in
15669
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15670
 
    '') as_fn_error $? "missing file argument" ;;
15671
 
    esac
15672
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15673
 
    ac_need_defaults=false;;
15674
 
  --header | --heade | --head | --hea )
15675
 
    $ac_shift
15676
 
    case $ac_optarg in
15677
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15678
 
    esac
15679
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15680
 
    ac_need_defaults=false;;
15681
 
  --he | --h)
15682
 
    # Conflict between --help and --header
15683
 
    as_fn_error $? "ambiguous option: \`$1'
15684
 
Try \`$0 --help' for more information.";;
15685
 
  --help | --hel | -h )
15686
 
    $as_echo "$ac_cs_usage"; exit ;;
15687
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15688
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15689
 
    ac_cs_silent=: ;;
15690
 
 
15691
 
  # This is an error.
15692
 
  -*) as_fn_error $? "unrecognized option: \`$1'
15693
 
Try \`$0 --help' for more information." ;;
15694
 
 
15695
 
  *) as_fn_append ac_config_targets " $1"
15696
 
     ac_need_defaults=false ;;
15697
 
 
15698
 
  esac
15699
 
  shift
15700
 
done
15701
 
 
15702
 
ac_configure_extra_args=
15703
 
 
15704
 
if $ac_cs_silent; then
15705
 
  exec 6>/dev/null
15706
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15707
 
fi
15708
 
 
15709
 
_ACEOF
15710
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15711
 
if \$ac_cs_recheck; then
15712
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15713
 
  shift
15714
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15715
 
  CONFIG_SHELL='$SHELL'
15716
 
  export CONFIG_SHELL
15717
 
  exec "\$@"
15718
 
fi
15719
 
 
15720
 
_ACEOF
15721
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15722
 
exec 5>>config.log
15723
 
{
15724
 
  echo
15725
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15726
 
## Running $as_me. ##
15727
 
_ASBOX
15728
 
  $as_echo "$ac_log"
15729
 
} >&5
15730
 
 
15731
 
_ACEOF
15732
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733
 
#
15734
 
# INIT-COMMANDS
15735
 
#
15736
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15737
 
 
15738
 
 
15739
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
15740
 
# if CDPATH is set.
15741
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15742
 
 
15743
 
sed_quote_subst='$sed_quote_subst'
15744
 
double_quote_subst='$double_quote_subst'
15745
 
delay_variable_subst='$delay_variable_subst'
15746
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15747
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15748
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15749
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15750
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15751
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15752
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15753
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15754
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15755
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15756
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15757
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15758
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15759
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15760
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15761
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15762
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15763
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15764
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15765
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15766
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15767
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15768
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15769
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15770
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15771
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15772
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15773
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15774
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15775
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15776
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15777
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15778
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15779
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15780
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15781
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15782
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15783
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15784
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15785
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15786
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15787
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15788
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15789
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15790
 
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"`'
15791
 
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"`'
15792
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15793
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15794
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15795
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15796
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15797
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15798
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15799
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15800
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15801
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15802
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15803
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15804
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15805
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15806
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15807
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15808
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15810
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15811
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15812
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15813
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15814
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15815
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15816
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15817
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15818
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15819
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15820
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15821
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15822
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15823
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15824
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15825
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15826
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15827
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15828
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15829
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15830
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15831
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15832
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15833
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15834
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15835
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15836
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15838
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15839
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15840
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15841
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15842
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15843
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15844
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15845
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15846
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15847
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15848
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15849
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15850
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15851
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15852
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15853
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15854
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15855
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15856
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15857
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15858
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15859
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15860
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15861
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15862
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15863
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15864
 
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15865
 
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15866
 
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15867
 
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15868
 
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15869
 
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15870
 
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15871
 
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15872
 
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15873
 
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15874
 
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15875
 
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15876
 
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15877
 
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15878
 
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15879
 
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15880
 
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15881
 
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15882
 
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15883
 
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15884
 
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15885
 
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15886
 
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15887
 
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15888
 
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15889
 
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15890
 
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15891
 
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15892
 
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15893
 
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15894
 
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15895
 
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15896
 
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15897
 
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15898
 
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15899
 
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15900
 
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15901
 
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15902
 
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15903
 
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15904
 
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905
 
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906
 
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907
 
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908
 
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909
 
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910
 
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911
 
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912
 
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15913
 
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15914
 
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15915
 
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15916
 
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15917
 
 
15918
 
LTCC='$LTCC'
15919
 
LTCFLAGS='$LTCFLAGS'
15920
 
compiler='$compiler_DEFAULT'
15921
 
 
15922
 
# Quote evaled strings.
15923
 
for var in SED \
15924
 
GREP \
15925
 
EGREP \
15926
 
FGREP \
15927
 
LD \
15928
 
NM \
15929
 
LN_S \
15930
 
lt_SP2NL \
15931
 
lt_NL2SP \
15932
 
reload_flag \
15933
 
OBJDUMP \
15934
 
deplibs_check_method \
15935
 
file_magic_cmd \
15936
 
AR \
15937
 
AR_FLAGS \
15938
 
STRIP \
15939
 
RANLIB \
15940
 
CC \
15941
 
CFLAGS \
15942
 
compiler \
15943
 
lt_cv_sys_global_symbol_pipe \
15944
 
lt_cv_sys_global_symbol_to_cdecl \
15945
 
lt_cv_sys_global_symbol_to_c_name_address \
15946
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15947
 
SHELL \
15948
 
ECHO \
15949
 
lt_prog_compiler_no_builtin_flag \
15950
 
lt_prog_compiler_wl \
15951
 
lt_prog_compiler_pic \
15952
 
lt_prog_compiler_static \
15953
 
lt_cv_prog_compiler_c_o \
15954
 
need_locks \
15955
 
DSYMUTIL \
15956
 
NMEDIT \
15957
 
LIPO \
15958
 
OTOOL \
15959
 
OTOOL64 \
15960
 
shrext_cmds \
15961
 
export_dynamic_flag_spec \
15962
 
whole_archive_flag_spec \
15963
 
compiler_needs_object \
15964
 
with_gnu_ld \
15965
 
allow_undefined_flag \
15966
 
no_undefined_flag \
15967
 
hardcode_libdir_flag_spec \
15968
 
hardcode_libdir_flag_spec_ld \
15969
 
hardcode_libdir_separator \
15970
 
fix_srcfile_path \
15971
 
exclude_expsyms \
15972
 
include_expsyms \
15973
 
file_list_spec \
15974
 
variables_saved_for_relink \
15975
 
libname_spec \
15976
 
library_names_spec \
15977
 
soname_spec \
15978
 
finish_eval \
15979
 
old_striplib \
15980
 
striplib \
15981
 
compiler_lib_search_dirs \
15982
 
predep_objects \
15983
 
postdep_objects \
15984
 
predeps \
15985
 
postdeps \
15986
 
compiler_lib_search_path \
15987
 
LD_CXX \
15988
 
compiler_CXX \
15989
 
lt_prog_compiler_no_builtin_flag_CXX \
15990
 
lt_prog_compiler_wl_CXX \
15991
 
lt_prog_compiler_pic_CXX \
15992
 
lt_prog_compiler_static_CXX \
15993
 
lt_cv_prog_compiler_c_o_CXX \
15994
 
export_dynamic_flag_spec_CXX \
15995
 
whole_archive_flag_spec_CXX \
15996
 
compiler_needs_object_CXX \
15997
 
with_gnu_ld_CXX \
15998
 
allow_undefined_flag_CXX \
15999
 
no_undefined_flag_CXX \
16000
 
hardcode_libdir_flag_spec_CXX \
16001
 
hardcode_libdir_flag_spec_ld_CXX \
16002
 
hardcode_libdir_separator_CXX \
16003
 
fix_srcfile_path_CXX \
16004
 
exclude_expsyms_CXX \
16005
 
include_expsyms_CXX \
16006
 
file_list_spec_CXX \
16007
 
compiler_lib_search_dirs_CXX \
16008
 
predep_objects_CXX \
16009
 
postdep_objects_CXX \
16010
 
predeps_CXX \
16011
 
postdeps_CXX \
16012
 
compiler_lib_search_path_CXX; do
16013
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16014
 
    *[\\\\\\\`\\"\\\$]*)
16015
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16016
 
      ;;
16017
 
    *)
16018
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16019
 
      ;;
16020
 
    esac
16021
 
done
16022
 
 
16023
 
# Double-quote double-evaled strings.
16024
 
for var in reload_cmds \
16025
 
old_postinstall_cmds \
16026
 
old_postuninstall_cmds \
16027
 
old_archive_cmds \
16028
 
extract_expsyms_cmds \
16029
 
old_archive_from_new_cmds \
16030
 
old_archive_from_expsyms_cmds \
16031
 
archive_cmds \
16032
 
archive_expsym_cmds \
16033
 
module_cmds \
16034
 
module_expsym_cmds \
16035
 
export_symbols_cmds \
16036
 
prelink_cmds \
16037
 
postinstall_cmds \
16038
 
postuninstall_cmds \
16039
 
finish_cmds \
16040
 
sys_lib_search_path_spec \
16041
 
sys_lib_dlsearch_path_spec \
16042
 
old_archive_cmds_CXX \
16043
 
old_archive_from_new_cmds_CXX \
16044
 
old_archive_from_expsyms_cmds_CXX \
16045
 
archive_cmds_CXX \
16046
 
archive_expsym_cmds_CXX \
16047
 
module_cmds_CXX \
16048
 
module_expsym_cmds_CXX \
16049
 
export_symbols_cmds_CXX \
16050
 
prelink_cmds_CXX; do
16051
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16052
 
    *[\\\\\\\`\\"\\\$]*)
16053
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16054
 
      ;;
16055
 
    *)
16056
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16057
 
      ;;
16058
 
    esac
16059
 
done
16060
 
 
16061
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
16062
 
case \$lt_ECHO in
16063
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16064
 
  ;;
16065
 
esac
16066
 
 
16067
 
ac_aux_dir='$ac_aux_dir'
16068
 
xsi_shell='$xsi_shell'
16069
 
lt_shell_append='$lt_shell_append'
16070
 
 
16071
 
# See if we are running on zsh, and set the options which allow our
16072
 
# commands through without removal of \ escapes INIT.
16073
 
if test -n "\${ZSH_VERSION+set}" ; then
16074
 
   setopt NO_GLOB_SUBST
16075
 
fi
16076
 
 
16077
 
 
16078
 
    PACKAGE='$PACKAGE'
16079
 
    VERSION='$VERSION'
16080
 
    TIMESTAMP='$TIMESTAMP'
16081
 
    RM='$RM'
16082
 
    ofile='$ofile'
16083
 
 
16084
 
 
16085
 
 
16086
 
 
16087
 
 
16088
 
 
16089
 
_ACEOF
16090
 
 
16091
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16092
 
 
16093
 
# Handling of arguments.
16094
 
for ac_config_target in $ac_config_targets
16095
 
do
16096
 
  case $ac_config_target in
16097
 
    "clamavcxx-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamavcxx-config.h" ;;
16098
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16099
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16100
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16101
 
 
16102
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16103
 
  esac
16104
 
done
16105
 
 
16106
 
 
16107
 
# If the user did not use the arguments to specify the items to instantiate,
16108
 
# then the envvar interface is used.  Set only those that are not.
16109
 
# We use the long form for the default assignment because of an extremely
16110
 
# bizarre bug on SunOS 4.1.3.
16111
 
if $ac_need_defaults; then
16112
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16113
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16114
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16115
 
fi
16116
 
 
16117
 
# Have a temporary directory for convenience.  Make it in the build tree
16118
 
# simply because there is no reason against having it here, and in addition,
16119
 
# creating and moving files from /tmp can sometimes cause problems.
16120
 
# Hook for its removal unless debugging.
16121
 
# Note that there is a small window in which the directory will not be cleaned:
16122
 
# after its creation but before its name has been assigned to `$tmp'.
16123
 
$debug ||
16124
 
{
16125
 
  tmp=
16126
 
  trap 'exit_status=$?
16127
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16128
 
' 0
16129
 
  trap 'as_fn_exit 1' 1 2 13 15
16130
 
}
16131
 
# Create a (secure) tmp directory for tmp files.
16132
 
 
16133
 
{
16134
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16135
 
  test -n "$tmp" && test -d "$tmp"
16136
 
}  ||
16137
 
{
16138
 
  tmp=./conf$$-$RANDOM
16139
 
  (umask 077 && mkdir "$tmp")
16140
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16141
 
 
16142
 
# Set up the scripts for CONFIG_FILES section.
16143
 
# No need to generate them if there are no CONFIG_FILES.
16144
 
# This happens for instance with `./config.status config.h'.
16145
 
if test -n "$CONFIG_FILES"; then
16146
 
 
16147
 
 
16148
 
ac_cr=`echo X | tr X '\015'`
16149
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16150
 
# But we know of no other shell where ac_cr would be empty at this
16151
 
# point, so we can use a bashism as a fallback.
16152
 
if test "x$ac_cr" = x; then
16153
 
  eval ac_cr=\$\'\\r\'
16154
 
fi
16155
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16156
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16157
 
  ac_cs_awk_cr='\\r'
16158
 
else
16159
 
  ac_cs_awk_cr=$ac_cr
16160
 
fi
16161
 
 
16162
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16163
 
_ACEOF
16164
 
 
16165
 
 
16166
 
{
16167
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16168
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16169
 
  echo "_ACEOF"
16170
 
} >conf$$subs.sh ||
16171
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16172
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16173
 
ac_delim='%!_!# '
16174
 
for ac_last_try in false false false false false :; do
16175
 
  . ./conf$$subs.sh ||
16176
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16177
 
 
16178
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16179
 
  if test $ac_delim_n = $ac_delim_num; then
16180
 
    break
16181
 
  elif $ac_last_try; then
16182
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16183
 
  else
16184
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16185
 
  fi
16186
 
done
16187
 
rm -f conf$$subs.sh
16188
 
 
16189
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16191
 
_ACEOF
16192
 
sed -n '
16193
 
h
16194
 
s/^/S["/; s/!.*/"]=/
16195
 
p
16196
 
g
16197
 
s/^[^!]*!//
16198
 
:repl
16199
 
t repl
16200
 
s/'"$ac_delim"'$//
16201
 
t delim
16202
 
:nl
16203
 
h
16204
 
s/\(.\{148\}\)..*/\1/
16205
 
t more1
16206
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16207
 
p
16208
 
n
16209
 
b repl
16210
 
:more1
16211
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16212
 
p
16213
 
g
16214
 
s/.\{148\}//
16215
 
t nl
16216
 
:delim
16217
 
h
16218
 
s/\(.\{148\}\)..*/\1/
16219
 
t more2
16220
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
16221
 
p
16222
 
b
16223
 
:more2
16224
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16225
 
p
16226
 
g
16227
 
s/.\{148\}//
16228
 
t delim
16229
 
' <conf$$subs.awk | sed '
16230
 
/^[^""]/{
16231
 
  N
16232
 
  s/\n//
16233
 
}
16234
 
' >>$CONFIG_STATUS || ac_write_fail=1
16235
 
rm -f conf$$subs.awk
16236
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237
 
_ACAWK
16238
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16239
 
  for (key in S) S_is_set[key] = 1
16240
 
  FS = ""
16241
 
 
16242
 
}
16243
 
{
16244
 
  line = $ 0
16245
 
  nfields = split(line, field, "@")
16246
 
  substed = 0
16247
 
  len = length(field[1])
16248
 
  for (i = 2; i < nfields; i++) {
16249
 
    key = field[i]
16250
 
    keylen = length(key)
16251
 
    if (S_is_set[key]) {
16252
 
      value = S[key]
16253
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16254
 
      len += length(value) + length(field[++i])
16255
 
      substed = 1
16256
 
    } else
16257
 
      len += 1 + keylen
16258
 
  }
16259
 
 
16260
 
  print line
16261
 
}
16262
 
 
16263
 
_ACAWK
16264
 
_ACEOF
16265
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16267
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16268
 
else
16269
 
  cat
16270
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16271
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16272
 
_ACEOF
16273
 
 
16274
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16275
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16276
 
# trailing colons and then remove the whole line if VPATH becomes empty
16277
 
# (actually we leave an empty line to preserve line numbers).
16278
 
if test "x$srcdir" = x.; then
16279
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16280
 
h
16281
 
s///
16282
 
s/^/:/
16283
 
s/[      ]*$/:/
16284
 
s/:\$(srcdir):/:/g
16285
 
s/:\${srcdir}:/:/g
16286
 
s/:@srcdir@:/:/g
16287
 
s/^:*//
16288
 
s/:*$//
16289
 
x
16290
 
s/\(=[   ]*\).*/\1/
16291
 
G
16292
 
s/\n//
16293
 
s/^[^=]*=[       ]*$//
16294
 
}'
16295
 
fi
16296
 
 
16297
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16298
 
fi # test -n "$CONFIG_FILES"
16299
 
 
16300
 
# Set up the scripts for CONFIG_HEADERS section.
16301
 
# No need to generate them if there are no CONFIG_HEADERS.
16302
 
# This happens for instance with `./config.status Makefile'.
16303
 
if test -n "$CONFIG_HEADERS"; then
16304
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
16305
 
BEGIN {
16306
 
_ACEOF
16307
 
 
16308
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
16309
 
# here-document in config.status, that substitutes the proper values into
16310
 
# config.h.in to produce config.h.
16311
 
 
16312
 
# Create a delimiter string that does not exist in confdefs.h, to ease
16313
 
# handling of long lines.
16314
 
ac_delim='%!_!# '
16315
 
for ac_last_try in false false :; do
16316
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16317
 
  if test -z "$ac_t"; then
16318
 
    break
16319
 
  elif $ac_last_try; then
16320
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16321
 
  else
16322
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16323
 
  fi
16324
 
done
16325
 
 
16326
 
# For the awk script, D is an array of macro values keyed by name,
16327
 
# likewise P contains macro parameters if any.  Preserve backslash
16328
 
# newline sequences.
16329
 
 
16330
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16331
 
sed -n '
16332
 
s/.\{148\}/&'"$ac_delim"'/g
16333
 
t rset
16334
 
:rset
16335
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
16336
 
t def
16337
 
d
16338
 
:def
16339
 
s/\\$//
16340
 
t bsnl
16341
 
s/["\\]/\\&/g
16342
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16343
 
D["\1"]=" \3"/p
16344
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16345
 
d
16346
 
:bsnl
16347
 
s/["\\]/\\&/g
16348
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16349
 
D["\1"]=" \3\\\\\\n"\\/p
16350
 
t cont
16351
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16352
 
t cont
16353
 
d
16354
 
:cont
16355
 
n
16356
 
s/.\{148\}/&'"$ac_delim"'/g
16357
 
t clear
16358
 
:clear
16359
 
s/\\$//
16360
 
t bsnlc
16361
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16362
 
d
16363
 
:bsnlc
16364
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16365
 
b cont
16366
 
' <confdefs.h | sed '
16367
 
s/'"$ac_delim"'/"\\\
16368
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16369
 
 
16370
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16371
 
  for (key in D) D_is_set[key] = 1
16372
 
  FS = ""
16373
 
}
16374
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16375
 
  line = \$ 0
16376
 
  split(line, arg, " ")
16377
 
  if (arg[1] == "#") {
16378
 
    defundef = arg[2]
16379
 
    mac1 = arg[3]
16380
 
  } else {
16381
 
    defundef = substr(arg[1], 2)
16382
 
    mac1 = arg[2]
16383
 
  }
16384
 
  split(mac1, mac2, "(") #)
16385
 
  macro = mac2[1]
16386
 
  prefix = substr(line, 1, index(line, defundef) - 1)
16387
 
  if (D_is_set[macro]) {
16388
 
    # Preserve the white space surrounding the "#".
16389
 
    print prefix "define", macro P[macro] D[macro]
16390
 
    next
16391
 
  } else {
16392
 
    # Replace #undef with comments.  This is necessary, for example,
16393
 
    # in the case of _POSIX_SOURCE, which is predefined and required
16394
 
    # on some systems where configure will not decide to define it.
16395
 
    if (defundef == "undef") {
16396
 
      print "/*", prefix defundef, macro, "*/"
16397
 
      next
16398
 
    }
16399
 
  }
16400
 
}
16401
 
{ print }
16402
 
_ACAWK
16403
 
_ACEOF
16404
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16406
 
fi # test -n "$CONFIG_HEADERS"
16407
 
 
16408
 
 
16409
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16410
 
shift
16411
 
for ac_tag
16412
 
do
16413
 
  case $ac_tag in
16414
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
16415
 
  esac
16416
 
  case $ac_mode$ac_tag in
16417
 
  :[FHL]*:*);;
16418
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16419
 
  :[FH]-) ac_tag=-:-;;
16420
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16421
 
  esac
16422
 
  ac_save_IFS=$IFS
16423
 
  IFS=:
16424
 
  set x $ac_tag
16425
 
  IFS=$ac_save_IFS
16426
 
  shift
16427
 
  ac_file=$1
16428
 
  shift
16429
 
 
16430
 
  case $ac_mode in
16431
 
  :L) ac_source=$1;;
16432
 
  :[FH])
16433
 
    ac_file_inputs=
16434
 
    for ac_f
16435
 
    do
16436
 
      case $ac_f in
16437
 
      -) ac_f="$tmp/stdin";;
16438
 
      *) # Look for the file first in the build tree, then in the source tree
16439
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
16440
 
         # because $ac_f cannot contain `:'.
16441
 
         test -f "$ac_f" ||
16442
 
           case $ac_f in
16443
 
           [\\/$]*) false;;
16444
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16445
 
           esac ||
16446
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16447
 
      esac
16448
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16449
 
      as_fn_append ac_file_inputs " '$ac_f'"
16450
 
    done
16451
 
 
16452
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16453
 
    # use $as_me), people would be surprised to read:
16454
 
    #    /* config.h.  Generated by config.status.  */
16455
 
    configure_input='Generated from '`
16456
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16457
 
        `' by configure.'
16458
 
    if test x"$ac_file" != x-; then
16459
 
      configure_input="$ac_file.  $configure_input"
16460
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16461
 
$as_echo "$as_me: creating $ac_file" >&6;}
16462
 
    fi
16463
 
    # Neutralize special characters interpreted by sed in replacement strings.
16464
 
    case $configure_input in #(
16465
 
    *\&* | *\|* | *\\* )
16466
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
16467
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16468
 
    *) ac_sed_conf_input=$configure_input;;
16469
 
    esac
16470
 
 
16471
 
    case $ac_tag in
16472
 
    *:-:* | *:-) cat >"$tmp/stdin" \
16473
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16474
 
    esac
16475
 
    ;;
16476
 
  esac
16477
 
 
16478
 
  ac_dir=`$as_dirname -- "$ac_file" ||
16479
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
16481
 
         X"$ac_file" : 'X\(//\)$' \| \
16482
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16483
 
$as_echo X"$ac_file" |
16484
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485
 
            s//\1/
16486
 
            q
16487
 
          }
16488
 
          /^X\(\/\/\)[^/].*/{
16489
 
            s//\1/
16490
 
            q
16491
 
          }
16492
 
          /^X\(\/\/\)$/{
16493
 
            s//\1/
16494
 
            q
16495
 
          }
16496
 
          /^X\(\/\).*/{
16497
 
            s//\1/
16498
 
            q
16499
 
          }
16500
 
          s/.*/./; q'`
16501
 
  as_dir="$ac_dir"; as_fn_mkdir_p
16502
 
  ac_builddir=.
16503
 
 
16504
 
case "$ac_dir" in
16505
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16506
 
*)
16507
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16508
 
  # A ".." for each directory in $ac_dir_suffix.
16509
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16510
 
  case $ac_top_builddir_sub in
16511
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16512
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16513
 
  esac ;;
16514
 
esac
16515
 
ac_abs_top_builddir=$ac_pwd
16516
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16517
 
# for backward compatibility:
16518
 
ac_top_builddir=$ac_top_build_prefix
16519
 
 
16520
 
case $srcdir in
16521
 
  .)  # We are building in place.
16522
 
    ac_srcdir=.
16523
 
    ac_top_srcdir=$ac_top_builddir_sub
16524
 
    ac_abs_top_srcdir=$ac_pwd ;;
16525
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
16526
 
    ac_srcdir=$srcdir$ac_dir_suffix;
16527
 
    ac_top_srcdir=$srcdir
16528
 
    ac_abs_top_srcdir=$srcdir ;;
16529
 
  *) # Relative name.
16530
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16531
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16532
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16533
 
esac
16534
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16535
 
 
16536
 
 
16537
 
  case $ac_mode in
16538
 
  :F)
16539
 
  #
16540
 
  # CONFIG_FILE
16541
 
  #
16542
 
 
16543
 
  case $INSTALL in
16544
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16545
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16546
 
  esac
16547
 
  ac_MKDIR_P=$MKDIR_P
16548
 
  case $MKDIR_P in
16549
 
  [\\/$]* | ?:[\\/]* ) ;;
16550
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16551
 
  esac
16552
 
_ACEOF
16553
 
 
16554
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16555
 
# If the template does not know about datarootdir, expand it.
16556
 
# FIXME: This hack should be removed a few years after 2.60.
16557
 
ac_datarootdir_hack=; ac_datarootdir_seen=
16558
 
ac_sed_dataroot='
16559
 
/datarootdir/ {
16560
 
  p
16561
 
  q
16562
 
}
16563
 
/@datadir@/p
16564
 
/@docdir@/p
16565
 
/@infodir@/p
16566
 
/@localedir@/p
16567
 
/@mandir@/p'
16568
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16569
 
*datarootdir*) ac_datarootdir_seen=yes;;
16570
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16571
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16572
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16573
 
_ACEOF
16574
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16575
 
  ac_datarootdir_hack='
16576
 
  s&@datadir@&$datadir&g
16577
 
  s&@docdir@&$docdir&g
16578
 
  s&@infodir@&$infodir&g
16579
 
  s&@localedir@&$localedir&g
16580
 
  s&@mandir@&$mandir&g
16581
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
16582
 
esac
16583
 
_ACEOF
16584
 
 
16585
 
# Neutralize VPATH when `$srcdir' = `.'.
16586
 
# Shell code in configure.ac might set extrasub.
16587
 
# FIXME: do we really want to maintain this feature?
16588
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16589
 
ac_sed_extra="$ac_vpsub
16590
 
$extrasub
16591
 
_ACEOF
16592
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593
 
:t
16594
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16595
 
s|@configure_input@|$ac_sed_conf_input|;t t
16596
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
16597
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16598
 
s&@srcdir@&$ac_srcdir&;t t
16599
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16600
 
s&@top_srcdir@&$ac_top_srcdir&;t t
16601
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16602
 
s&@builddir@&$ac_builddir&;t t
16603
 
s&@abs_builddir@&$ac_abs_builddir&;t t
16604
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16605
 
s&@INSTALL@&$ac_INSTALL&;t t
16606
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16607
 
$ac_datarootdir_hack
16608
 
"
16609
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16610
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16611
 
 
16612
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16613
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16614
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16615
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16616
 
which seems to be undefined.  Please make sure it is defined" >&5
16617
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16618
 
which seems to be undefined.  Please make sure it is defined" >&2;}
16619
 
 
16620
 
  rm -f "$tmp/stdin"
16621
 
  case $ac_file in
16622
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16623
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16624
 
  esac \
16625
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16626
 
 ;;
16627
 
  :H)
16628
 
  #
16629
 
  # CONFIG_HEADER
16630
 
  #
16631
 
  if test x"$ac_file" != x-; then
16632
 
    {
16633
 
      $as_echo "/* $configure_input  */" \
16634
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16635
 
    } >"$tmp/config.h" \
16636
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16637
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16638
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16639
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16640
 
    else
16641
 
      rm -f "$ac_file"
16642
 
      mv "$tmp/config.h" "$ac_file" \
16643
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16644
 
    fi
16645
 
  else
16646
 
    $as_echo "/* $configure_input  */" \
16647
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16648
 
      || as_fn_error $? "could not create -" "$LINENO" 5
16649
 
  fi
16650
 
# Compute "$ac_file"'s index in $config_headers.
16651
 
_am_arg="$ac_file"
16652
 
_am_stamp_count=1
16653
 
for _am_header in $config_headers :; do
16654
 
  case $_am_header in
16655
 
    $_am_arg | $_am_arg:* )
16656
 
      break ;;
16657
 
    * )
16658
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16659
 
  esac
16660
 
done
16661
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16662
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16663
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
16664
 
         X"$_am_arg" : 'X\(//\)$' \| \
16665
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16666
 
$as_echo X"$_am_arg" |
16667
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16668
 
            s//\1/
16669
 
            q
16670
 
          }
16671
 
          /^X\(\/\/\)[^/].*/{
16672
 
            s//\1/
16673
 
            q
16674
 
          }
16675
 
          /^X\(\/\/\)$/{
16676
 
            s//\1/
16677
 
            q
16678
 
          }
16679
 
          /^X\(\/\).*/{
16680
 
            s//\1/
16681
 
            q
16682
 
          }
16683
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
16684
 
 ;;
16685
 
 
16686
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16687
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
16688
 
 ;;
16689
 
  esac
16690
 
 
16691
 
 
16692
 
  case $ac_file$ac_mode in
16693
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16694
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16695
 
  # are listed without --file.  Let's play safe and only enable the eval
16696
 
  # if we detect the quoting.
16697
 
  case $CONFIG_FILES in
16698
 
  *\'*) eval set x "$CONFIG_FILES" ;;
16699
 
  *)   set x $CONFIG_FILES ;;
16700
 
  esac
16701
 
  shift
16702
 
  for mf
16703
 
  do
16704
 
    # Strip MF so we end up with the name of the file.
16705
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16706
 
    # Check whether this is an Automake generated Makefile or not.
16707
 
    # We used to match only the files named `Makefile.in', but
16708
 
    # some people rename them; so instead we look at the file content.
16709
 
    # Grep'ing the first line is not enough: some people post-process
16710
 
    # each Makefile.in and add a new line on top of each file to say so.
16711
 
    # Grep'ing the whole file is not good either: AIX grep has a line
16712
 
    # limit of 2048, but all sed's we know have understand at least 4000.
16713
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16714
 
      dirpart=`$as_dirname -- "$mf" ||
16715
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16716
 
         X"$mf" : 'X\(//\)[^/]' \| \
16717
 
         X"$mf" : 'X\(//\)$' \| \
16718
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16719
 
$as_echo X"$mf" |
16720
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16721
 
            s//\1/
16722
 
            q
16723
 
          }
16724
 
          /^X\(\/\/\)[^/].*/{
16725
 
            s//\1/
16726
 
            q
16727
 
          }
16728
 
          /^X\(\/\/\)$/{
16729
 
            s//\1/
16730
 
            q
16731
 
          }
16732
 
          /^X\(\/\).*/{
16733
 
            s//\1/
16734
 
            q
16735
 
          }
16736
 
          s/.*/./; q'`
16737
 
    else
16738
 
      continue
16739
 
    fi
16740
 
    # Extract the definition of DEPDIR, am__include, and am__quote
16741
 
    # from the Makefile without running `make'.
16742
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16743
 
    test -z "$DEPDIR" && continue
16744
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16745
 
    test -z "am__include" && continue
16746
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16747
 
    # When using ansi2knr, U may be empty or an underscore; expand it
16748
 
    U=`sed -n 's/^U = //p' < "$mf"`
16749
 
    # Find all dependency output files, they are included files with
16750
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16751
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
16752
 
    # expansion.
16753
 
    for file in `sed -n "
16754
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16755
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16756
 
      # Make sure the directory exists.
16757
 
      test -f "$dirpart/$file" && continue
16758
 
      fdir=`$as_dirname -- "$file" ||
16759
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16760
 
         X"$file" : 'X\(//\)[^/]' \| \
16761
 
         X"$file" : 'X\(//\)$' \| \
16762
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16763
 
$as_echo X"$file" |
16764
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16765
 
            s//\1/
16766
 
            q
16767
 
          }
16768
 
          /^X\(\/\/\)[^/].*/{
16769
 
            s//\1/
16770
 
            q
16771
 
          }
16772
 
          /^X\(\/\/\)$/{
16773
 
            s//\1/
16774
 
            q
16775
 
          }
16776
 
          /^X\(\/\).*/{
16777
 
            s//\1/
16778
 
            q
16779
 
          }
16780
 
          s/.*/./; q'`
16781
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16782
 
      # echo "creating $dirpart/$file"
16783
 
      echo '# dummy' > "$dirpart/$file"
16784
 
    done
16785
 
  done
16786
 
}
16787
 
 ;;
16788
 
    "libtool":C)
16789
 
 
16790
 
    # See if we are running on zsh, and set the options which allow our
16791
 
    # commands through without removal of \ escapes.
16792
 
    if test -n "${ZSH_VERSION+set}" ; then
16793
 
      setopt NO_GLOB_SUBST
16794
 
    fi
16795
 
 
16796
 
    cfgfile="${ofile}T"
16797
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16798
 
    $RM "$cfgfile"
16799
 
 
16800
 
    cat <<_LT_EOF >> "$cfgfile"
16801
 
#! $SHELL
16802
 
 
16803
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16804
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16805
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16806
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16807
 
#
16808
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16809
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
16810
 
#   Written by Gordon Matzigkeit, 1996
16811
 
#
16812
 
#   This file is part of GNU Libtool.
16813
 
#
16814
 
# GNU Libtool is free software; you can redistribute it and/or
16815
 
# modify it under the terms of the GNU General Public License as
16816
 
# published by the Free Software Foundation; either version 2 of
16817
 
# the License, or (at your option) any later version.
16818
 
#
16819
 
# As a special exception to the GNU General Public License,
16820
 
# if you distribute this file as part of a program or library that
16821
 
# is built using GNU Libtool, you may include this file under the
16822
 
# same distribution terms that you use for the rest of that program.
16823
 
#
16824
 
# GNU Libtool is distributed in the hope that it will be useful,
16825
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16826
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16827
 
# GNU General Public License for more details.
16828
 
#
16829
 
# You should have received a copy of the GNU General Public License
16830
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
16831
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16832
 
# obtained by writing to the Free Software Foundation, Inc.,
16833
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16834
 
 
16835
 
 
16836
 
# The names of the tagged configurations supported by this script.
16837
 
available_tags="CXX "
16838
 
 
16839
 
# ### BEGIN LIBTOOL CONFIG
16840
 
 
16841
 
# Which release of libtool.m4 was used?
16842
 
macro_version=$macro_version
16843
 
macro_revision=$macro_revision
16844
 
 
16845
 
# Whether or not to build static libraries.
16846
 
build_old_libs=$enable_static
16847
 
 
16848
 
# Whether or not to build shared libraries.
16849
 
build_libtool_libs=$enable_shared
16850
 
 
16851
 
# What type of objects to build.
16852
 
pic_mode=$pic_mode
16853
 
 
16854
 
# Whether or not to optimize for fast installation.
16855
 
fast_install=$enable_fast_install
16856
 
 
16857
 
# The host system.
16858
 
host_alias=$host_alias
16859
 
host=$host
16860
 
host_os=$host_os
16861
 
 
16862
 
# The build system.
16863
 
build_alias=$build_alias
16864
 
build=$build
16865
 
build_os=$build_os
16866
 
 
16867
 
# A sed program that does not truncate output.
16868
 
SED=$lt_SED
16869
 
 
16870
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16871
 
Xsed="\$SED -e 1s/^X//"
16872
 
 
16873
 
# A grep program that handles long lines.
16874
 
GREP=$lt_GREP
16875
 
 
16876
 
# An ERE matcher.
16877
 
EGREP=$lt_EGREP
16878
 
 
16879
 
# A literal string matcher.
16880
 
FGREP=$lt_FGREP
16881
 
 
16882
 
# A BSD- or MS-compatible name lister.
16883
 
NM=$lt_NM
16884
 
 
16885
 
# Whether we need soft or hard links.
16886
 
LN_S=$lt_LN_S
16887
 
 
16888
 
# What is the maximum length of a command?
16889
 
max_cmd_len=$max_cmd_len
16890
 
 
16891
 
# Object file suffix (normally "o").
16892
 
objext=$ac_objext
16893
 
 
16894
 
# Executable file suffix (normally "").
16895
 
exeext=$exeext
16896
 
 
16897
 
# whether the shell understands "unset".
16898
 
lt_unset=$lt_unset
16899
 
 
16900
 
# turn spaces into newlines.
16901
 
SP2NL=$lt_lt_SP2NL
16902
 
 
16903
 
# turn newlines into spaces.
16904
 
NL2SP=$lt_lt_NL2SP
16905
 
 
16906
 
# How to create reloadable object files.
16907
 
reload_flag=$lt_reload_flag
16908
 
reload_cmds=$lt_reload_cmds
16909
 
 
16910
 
# An object symbol dumper.
16911
 
OBJDUMP=$lt_OBJDUMP
16912
 
 
16913
 
# Method to check whether dependent libraries are shared objects.
16914
 
deplibs_check_method=$lt_deplibs_check_method
16915
 
 
16916
 
# Command to use when deplibs_check_method == "file_magic".
16917
 
file_magic_cmd=$lt_file_magic_cmd
16918
 
 
16919
 
# The archiver.
16920
 
AR=$lt_AR
16921
 
AR_FLAGS=$lt_AR_FLAGS
16922
 
 
16923
 
# A symbol stripping program.
16924
 
STRIP=$lt_STRIP
16925
 
 
16926
 
# Commands used to install an old-style archive.
16927
 
RANLIB=$lt_RANLIB
16928
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16929
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16930
 
 
16931
 
# A C compiler.
16932
 
LTCC=$lt_CC
16933
 
 
16934
 
# LTCC compiler flags.
16935
 
LTCFLAGS=$lt_CFLAGS
16936
 
 
16937
 
# Take the output of nm and produce a listing of raw symbols and C names.
16938
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16939
 
 
16940
 
# Transform the output of nm in a proper C declaration.
16941
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16942
 
 
16943
 
# Transform the output of nm in a C name address pair.
16944
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16945
 
 
16946
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
16947
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16948
 
 
16949
 
# The name of the directory that contains temporary libtool files.
16950
 
objdir=$objdir
16951
 
 
16952
 
# Shell to use when invoking shell scripts.
16953
 
SHELL=$lt_SHELL
16954
 
 
16955
 
# An echo program that does not interpret backslashes.
16956
 
ECHO=$lt_ECHO
16957
 
 
16958
 
# Used to examine libraries when file_magic_cmd begins with "file".
16959
 
MAGIC_CMD=$MAGIC_CMD
16960
 
 
16961
 
# Must we lock files when doing compilation?
16962
 
need_locks=$lt_need_locks
16963
 
 
16964
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16965
 
DSYMUTIL=$lt_DSYMUTIL
16966
 
 
16967
 
# Tool to change global to local symbols on Mac OS X.
16968
 
NMEDIT=$lt_NMEDIT
16969
 
 
16970
 
# Tool to manipulate fat objects and archives on Mac OS X.
16971
 
LIPO=$lt_LIPO
16972
 
 
16973
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16974
 
OTOOL=$lt_OTOOL
16975
 
 
16976
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16977
 
OTOOL64=$lt_OTOOL64
16978
 
 
16979
 
# Old archive suffix (normally "a").
16980
 
libext=$libext
16981
 
 
16982
 
# Shared library suffix (normally ".so").
16983
 
shrext_cmds=$lt_shrext_cmds
16984
 
 
16985
 
# The commands to extract the exported symbol list from a shared archive.
16986
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16987
 
 
16988
 
# Variables whose values should be saved in libtool wrapper scripts and
16989
 
# restored at link time.
16990
 
variables_saved_for_relink=$lt_variables_saved_for_relink
16991
 
 
16992
 
# Do we need the "lib" prefix for modules?
16993
 
need_lib_prefix=$need_lib_prefix
16994
 
 
16995
 
# Do we need a version for libraries?
16996
 
need_version=$need_version
16997
 
 
16998
 
# Library versioning type.
16999
 
version_type=$version_type
17000
 
 
17001
 
# Shared library runtime path variable.
17002
 
runpath_var=$runpath_var
17003
 
 
17004
 
# Shared library path variable.
17005
 
shlibpath_var=$shlibpath_var
17006
 
 
17007
 
# Is shlibpath searched before the hard-coded library search path?
17008
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17009
 
 
17010
 
# Format of library name prefix.
17011
 
libname_spec=$lt_libname_spec
17012
 
 
17013
 
# List of archive names.  First name is the real one, the rest are links.
17014
 
# The last name is the one that the linker finds with -lNAME
17015
 
library_names_spec=$lt_library_names_spec
17016
 
 
17017
 
# The coded name of the library, if different from the real name.
17018
 
soname_spec=$lt_soname_spec
17019
 
 
17020
 
# Command to use after installation of a shared archive.
17021
 
postinstall_cmds=$lt_postinstall_cmds
17022
 
 
17023
 
# Command to use after uninstallation of a shared archive.
17024
 
postuninstall_cmds=$lt_postuninstall_cmds
17025
 
 
17026
 
# Commands used to finish a libtool library installation in a directory.
17027
 
finish_cmds=$lt_finish_cmds
17028
 
 
17029
 
# As "finish_cmds", except a single script fragment to be evaled but
17030
 
# not shown.
17031
 
finish_eval=$lt_finish_eval
17032
 
 
17033
 
# Whether we should hardcode library paths into libraries.
17034
 
hardcode_into_libs=$hardcode_into_libs
17035
 
 
17036
 
# Compile-time system search path for libraries.
17037
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17038
 
 
17039
 
# Run-time system search path for libraries.
17040
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17041
 
 
17042
 
# Whether dlopen is supported.
17043
 
dlopen_support=$enable_dlopen
17044
 
 
17045
 
# Whether dlopen of programs is supported.
17046
 
dlopen_self=$enable_dlopen_self
17047
 
 
17048
 
# Whether dlopen of statically linked programs is supported.
17049
 
dlopen_self_static=$enable_dlopen_self_static
17050
 
 
17051
 
# Commands to strip libraries.
17052
 
old_striplib=$lt_old_striplib
17053
 
striplib=$lt_striplib
17054
 
 
17055
 
 
17056
 
# The linker used to build libraries.
17057
 
LD=$lt_LD
17058
 
 
17059
 
# Commands used to build an old-style archive.
17060
 
old_archive_cmds=$lt_old_archive_cmds
17061
 
 
17062
 
# A language specific compiler.
17063
 
CC=$lt_compiler
17064
 
 
17065
 
# Is the compiler the GNU compiler?
17066
 
with_gcc=$GCC
17067
 
 
17068
 
# Compiler flag to turn off builtin functions.
17069
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17070
 
 
17071
 
# How to pass a linker flag through the compiler.
17072
 
wl=$lt_lt_prog_compiler_wl
17073
 
 
17074
 
# Additional compiler flags for building library objects.
17075
 
pic_flag=$lt_lt_prog_compiler_pic
17076
 
 
17077
 
# Compiler flag to prevent dynamic linking.
17078
 
link_static_flag=$lt_lt_prog_compiler_static
17079
 
 
17080
 
# Does compiler simultaneously support -c and -o options?
17081
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17082
 
 
17083
 
# Whether or not to add -lc for building shared libraries.
17084
 
build_libtool_need_lc=$archive_cmds_need_lc
17085
 
 
17086
 
# Whether or not to disallow shared libs when runtime libs are static.
17087
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17088
 
 
17089
 
# Compiler flag to allow reflexive dlopens.
17090
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17091
 
 
17092
 
# Compiler flag to generate shared objects directly from archives.
17093
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17094
 
 
17095
 
# Whether the compiler copes with passing no objects directly.
17096
 
compiler_needs_object=$lt_compiler_needs_object
17097
 
 
17098
 
# Create an old-style archive from a shared archive.
17099
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17100
 
 
17101
 
# Create a temporary old-style archive to link instead of a shared archive.
17102
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17103
 
 
17104
 
# Commands used to build a shared archive.
17105
 
archive_cmds=$lt_archive_cmds
17106
 
archive_expsym_cmds=$lt_archive_expsym_cmds
17107
 
 
17108
 
# Commands used to build a loadable module if different from building
17109
 
# a shared archive.
17110
 
module_cmds=$lt_module_cmds
17111
 
module_expsym_cmds=$lt_module_expsym_cmds
17112
 
 
17113
 
# Whether we are building with GNU ld or not.
17114
 
with_gnu_ld=$lt_with_gnu_ld
17115
 
 
17116
 
# Flag that allows shared libraries with undefined symbols to be built.
17117
 
allow_undefined_flag=$lt_allow_undefined_flag
17118
 
 
17119
 
# Flag that enforces no undefined symbols.
17120
 
no_undefined_flag=$lt_no_undefined_flag
17121
 
 
17122
 
# Flag to hardcode \$libdir into a binary during linking.
17123
 
# This must work even if \$libdir does not exist
17124
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17125
 
 
17126
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
17127
 
# during linking.  This must work even if \$libdir does not exist.
17128
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17129
 
 
17130
 
# Whether we need a single "-rpath" flag with a separated argument.
17131
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17132
 
 
17133
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17134
 
# DIR into the resulting binary.
17135
 
hardcode_direct=$hardcode_direct
17136
 
 
17137
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17138
 
# DIR into the resulting binary and the resulting library dependency is
17139
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17140
 
# library is relocated.
17141
 
hardcode_direct_absolute=$hardcode_direct_absolute
17142
 
 
17143
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17144
 
# into the resulting binary.
17145
 
hardcode_minus_L=$hardcode_minus_L
17146
 
 
17147
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17148
 
# into the resulting binary.
17149
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
17150
 
 
17151
 
# Set to "yes" if building a shared library automatically hardcodes DIR
17152
 
# into the library and all subsequent libraries and executables linked
17153
 
# against it.
17154
 
hardcode_automatic=$hardcode_automatic
17155
 
 
17156
 
# Set to yes if linker adds runtime paths of dependent libraries
17157
 
# to runtime path list.
17158
 
inherit_rpath=$inherit_rpath
17159
 
 
17160
 
# Whether libtool must link a program against all its dependency libraries.
17161
 
link_all_deplibs=$link_all_deplibs
17162
 
 
17163
 
# Fix the shell variable \$srcfile for the compiler.
17164
 
fix_srcfile_path=$lt_fix_srcfile_path
17165
 
 
17166
 
# Set to "yes" if exported symbols are required.
17167
 
always_export_symbols=$always_export_symbols
17168
 
 
17169
 
# The commands to list exported symbols.
17170
 
export_symbols_cmds=$lt_export_symbols_cmds
17171
 
 
17172
 
# Symbols that should not be listed in the preloaded symbols.
17173
 
exclude_expsyms=$lt_exclude_expsyms
17174
 
 
17175
 
# Symbols that must always be exported.
17176
 
include_expsyms=$lt_include_expsyms
17177
 
 
17178
 
# Commands necessary for linking programs (against libraries) with templates.
17179
 
prelink_cmds=$lt_prelink_cmds
17180
 
 
17181
 
# Specify filename containing input files.
17182
 
file_list_spec=$lt_file_list_spec
17183
 
 
17184
 
# How to hardcode a shared library path into an executable.
17185
 
hardcode_action=$hardcode_action
17186
 
 
17187
 
# The directories searched by this compiler when creating a shared library.
17188
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17189
 
 
17190
 
# Dependencies to place before and after the objects being linked to
17191
 
# create a shared library.
17192
 
predep_objects=$lt_predep_objects
17193
 
postdep_objects=$lt_postdep_objects
17194
 
predeps=$lt_predeps
17195
 
postdeps=$lt_postdeps
17196
 
 
17197
 
# The library search path used internally by the compiler when linking
17198
 
# a shared library.
17199
 
compiler_lib_search_path=$lt_compiler_lib_search_path
17200
 
 
17201
 
# ### END LIBTOOL CONFIG
17202
 
 
17203
 
_LT_EOF
17204
 
 
17205
 
  case $host_os in
17206
 
  aix3*)
17207
 
    cat <<\_LT_EOF >> "$cfgfile"
17208
 
# AIX sometimes has problems with the GCC collect2 program.  For some
17209
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
17210
 
# vanish in a puff of smoke.
17211
 
if test "X${COLLECT_NAMES+set}" != Xset; then
17212
 
  COLLECT_NAMES=
17213
 
  export COLLECT_NAMES
17214
 
fi
17215
 
_LT_EOF
17216
 
    ;;
17217
 
  esac
17218
 
 
17219
 
 
17220
 
ltmain="$ac_aux_dir/ltmain.sh"
17221
 
 
17222
 
 
17223
 
  # We use sed instead of cat because bash on DJGPP gets confused if
17224
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17225
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
17226
 
  # is reportedly fixed, but why not run on old versions too?
17227
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17228
 
    || (rm -f "$cfgfile"; exit 1)
17229
 
 
17230
 
  case $xsi_shell in
17231
 
  yes)
17232
 
    cat << \_LT_EOF >> "$cfgfile"
17233
 
 
17234
 
# func_dirname file append nondir_replacement
17235
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17236
 
# otherwise set result to NONDIR_REPLACEMENT.
17237
 
func_dirname ()
17238
 
{
17239
 
  case ${1} in
17240
 
    */*) func_dirname_result="${1%/*}${2}" ;;
17241
 
    *  ) func_dirname_result="${3}" ;;
17242
 
  esac
17243
 
}
17244
 
 
17245
 
# func_basename file
17246
 
func_basename ()
17247
 
{
17248
 
  func_basename_result="${1##*/}"
17249
 
}
17250
 
 
17251
 
# func_dirname_and_basename file append nondir_replacement
17252
 
# perform func_basename and func_dirname in a single function
17253
 
# call:
17254
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
17255
 
#             add APPEND to the result, otherwise set result
17256
 
#             to NONDIR_REPLACEMENT.
17257
 
#             value returned in "$func_dirname_result"
17258
 
#   basename: Compute filename of FILE.
17259
 
#             value retuned in "$func_basename_result"
17260
 
# Implementation must be kept synchronized with func_dirname
17261
 
# and func_basename. For efficiency, we do not delegate to
17262
 
# those functions but instead duplicate the functionality here.
17263
 
func_dirname_and_basename ()
17264
 
{
17265
 
  case ${1} in
17266
 
    */*) func_dirname_result="${1%/*}${2}" ;;
17267
 
    *  ) func_dirname_result="${3}" ;;
17268
 
  esac
17269
 
  func_basename_result="${1##*/}"
17270
 
}
17271
 
 
17272
 
# func_stripname prefix suffix name
17273
 
# strip PREFIX and SUFFIX off of NAME.
17274
 
# PREFIX and SUFFIX must not contain globbing or regex special
17275
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
17276
 
# dot (in which case that matches only a dot).
17277
 
func_stripname ()
17278
 
{
17279
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17280
 
  # positional parameters, so assign one to ordinary parameter first.
17281
 
  func_stripname_result=${3}
17282
 
  func_stripname_result=${func_stripname_result#"${1}"}
17283
 
  func_stripname_result=${func_stripname_result%"${2}"}
17284
 
}
17285
 
 
17286
 
# func_opt_split
17287
 
func_opt_split ()
17288
 
{
17289
 
  func_opt_split_opt=${1%%=*}
17290
 
  func_opt_split_arg=${1#*=}
17291
 
}
17292
 
 
17293
 
# func_lo2o object
17294
 
func_lo2o ()
17295
 
{
17296
 
  case ${1} in
17297
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17298
 
    *)    func_lo2o_result=${1} ;;
17299
 
  esac
17300
 
}
17301
 
 
17302
 
# func_xform libobj-or-source
17303
 
func_xform ()
17304
 
{
17305
 
  func_xform_result=${1%.*}.lo
17306
 
}
17307
 
 
17308
 
# func_arith arithmetic-term...
17309
 
func_arith ()
17310
 
{
17311
 
  func_arith_result=$(( $* ))
17312
 
}
17313
 
 
17314
 
# func_len string
17315
 
# STRING may not start with a hyphen.
17316
 
func_len ()
17317
 
{
17318
 
  func_len_result=${#1}
17319
 
}
17320
 
 
17321
 
_LT_EOF
17322
 
    ;;
17323
 
  *) # Bourne compatible functions.
17324
 
    cat << \_LT_EOF >> "$cfgfile"
17325
 
 
17326
 
# func_dirname file append nondir_replacement
17327
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17328
 
# otherwise set result to NONDIR_REPLACEMENT.
17329
 
func_dirname ()
17330
 
{
17331
 
  # Extract subdirectory from the argument.
17332
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17333
 
  if test "X$func_dirname_result" = "X${1}"; then
17334
 
    func_dirname_result="${3}"
17335
 
  else
17336
 
    func_dirname_result="$func_dirname_result${2}"
17337
 
  fi
17338
 
}
17339
 
 
17340
 
# func_basename file
17341
 
func_basename ()
17342
 
{
17343
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17344
 
}
17345
 
 
17346
 
 
17347
 
# func_stripname prefix suffix name
17348
 
# strip PREFIX and SUFFIX off of NAME.
17349
 
# PREFIX and SUFFIX must not contain globbing or regex special
17350
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
17351
 
# dot (in which case that matches only a dot).
17352
 
# func_strip_suffix prefix name
17353
 
func_stripname ()
17354
 
{
17355
 
  case ${2} in
17356
 
    .*) func_stripname_result=`$ECHO "X${3}" \
17357
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17358
 
    *)  func_stripname_result=`$ECHO "X${3}" \
17359
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17360
 
  esac
17361
 
}
17362
 
 
17363
 
# sed scripts:
17364
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17365
 
my_sed_long_arg='1s/^-[^=]*=//'
17366
 
 
17367
 
# func_opt_split
17368
 
func_opt_split ()
17369
 
{
17370
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17371
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17372
 
}
17373
 
 
17374
 
# func_lo2o object
17375
 
func_lo2o ()
17376
 
{
17377
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17378
 
}
17379
 
 
17380
 
# func_xform libobj-or-source
17381
 
func_xform ()
17382
 
{
17383
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17384
 
}
17385
 
 
17386
 
# func_arith arithmetic-term...
17387
 
func_arith ()
17388
 
{
17389
 
  func_arith_result=`expr "$@"`
17390
 
}
17391
 
 
17392
 
# func_len string
17393
 
# STRING may not start with a hyphen.
17394
 
func_len ()
17395
 
{
17396
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17397
 
}
17398
 
 
17399
 
_LT_EOF
17400
 
esac
17401
 
 
17402
 
case $lt_shell_append in
17403
 
  yes)
17404
 
    cat << \_LT_EOF >> "$cfgfile"
17405
 
 
17406
 
# func_append var value
17407
 
# Append VALUE to the end of shell variable VAR.
17408
 
func_append ()
17409
 
{
17410
 
  eval "$1+=\$2"
17411
 
}
17412
 
_LT_EOF
17413
 
    ;;
17414
 
  *)
17415
 
    cat << \_LT_EOF >> "$cfgfile"
17416
 
 
17417
 
# func_append var value
17418
 
# Append VALUE to the end of shell variable VAR.
17419
 
func_append ()
17420
 
{
17421
 
  eval "$1=\$$1\$2"
17422
 
}
17423
 
 
17424
 
_LT_EOF
17425
 
    ;;
17426
 
  esac
17427
 
 
17428
 
 
17429
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17430
 
    || (rm -f "$cfgfile"; exit 1)
17431
 
 
17432
 
  mv -f "$cfgfile" "$ofile" ||
17433
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17434
 
  chmod +x "$ofile"
17435
 
 
17436
 
 
17437
 
    cat <<_LT_EOF >> "$ofile"
17438
 
 
17439
 
# ### BEGIN LIBTOOL TAG CONFIG: CXX
17440
 
 
17441
 
# The linker used to build libraries.
17442
 
LD=$lt_LD_CXX
17443
 
 
17444
 
# Commands used to build an old-style archive.
17445
 
old_archive_cmds=$lt_old_archive_cmds_CXX
17446
 
 
17447
 
# A language specific compiler.
17448
 
CC=$lt_compiler_CXX
17449
 
 
17450
 
# Is the compiler the GNU compiler?
17451
 
with_gcc=$GCC_CXX
17452
 
 
17453
 
# Compiler flag to turn off builtin functions.
17454
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17455
 
 
17456
 
# How to pass a linker flag through the compiler.
17457
 
wl=$lt_lt_prog_compiler_wl_CXX
17458
 
 
17459
 
# Additional compiler flags for building library objects.
17460
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
17461
 
 
17462
 
# Compiler flag to prevent dynamic linking.
17463
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
17464
 
 
17465
 
# Does compiler simultaneously support -c and -o options?
17466
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17467
 
 
17468
 
# Whether or not to add -lc for building shared libraries.
17469
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17470
 
 
17471
 
# Whether or not to disallow shared libs when runtime libs are static.
17472
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17473
 
 
17474
 
# Compiler flag to allow reflexive dlopens.
17475
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17476
 
 
17477
 
# Compiler flag to generate shared objects directly from archives.
17478
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17479
 
 
17480
 
# Whether the compiler copes with passing no objects directly.
17481
 
compiler_needs_object=$lt_compiler_needs_object_CXX
17482
 
 
17483
 
# Create an old-style archive from a shared archive.
17484
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17485
 
 
17486
 
# Create a temporary old-style archive to link instead of a shared archive.
17487
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17488
 
 
17489
 
# Commands used to build a shared archive.
17490
 
archive_cmds=$lt_archive_cmds_CXX
17491
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17492
 
 
17493
 
# Commands used to build a loadable module if different from building
17494
 
# a shared archive.
17495
 
module_cmds=$lt_module_cmds_CXX
17496
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17497
 
 
17498
 
# Whether we are building with GNU ld or not.
17499
 
with_gnu_ld=$lt_with_gnu_ld_CXX
17500
 
 
17501
 
# Flag that allows shared libraries with undefined symbols to be built.
17502
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17503
 
 
17504
 
# Flag that enforces no undefined symbols.
17505
 
no_undefined_flag=$lt_no_undefined_flag_CXX
17506
 
 
17507
 
# Flag to hardcode \$libdir into a binary during linking.
17508
 
# This must work even if \$libdir does not exist
17509
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17510
 
 
17511
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
17512
 
# during linking.  This must work even if \$libdir does not exist.
17513
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17514
 
 
17515
 
# Whether we need a single "-rpath" flag with a separated argument.
17516
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17517
 
 
17518
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17519
 
# DIR into the resulting binary.
17520
 
hardcode_direct=$hardcode_direct_CXX
17521
 
 
17522
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17523
 
# DIR into the resulting binary and the resulting library dependency is
17524
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17525
 
# library is relocated.
17526
 
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17527
 
 
17528
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17529
 
# into the resulting binary.
17530
 
hardcode_minus_L=$hardcode_minus_L_CXX
17531
 
 
17532
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17533
 
# into the resulting binary.
17534
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17535
 
 
17536
 
# Set to "yes" if building a shared library automatically hardcodes DIR
17537
 
# into the library and all subsequent libraries and executables linked
17538
 
# against it.
17539
 
hardcode_automatic=$hardcode_automatic_CXX
17540
 
 
17541
 
# Set to yes if linker adds runtime paths of dependent libraries
17542
 
# to runtime path list.
17543
 
inherit_rpath=$inherit_rpath_CXX
17544
 
 
17545
 
# Whether libtool must link a program against all its dependency libraries.
17546
 
link_all_deplibs=$link_all_deplibs_CXX
17547
 
 
17548
 
# Fix the shell variable \$srcfile for the compiler.
17549
 
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17550
 
 
17551
 
# Set to "yes" if exported symbols are required.
17552
 
always_export_symbols=$always_export_symbols_CXX
17553
 
 
17554
 
# The commands to list exported symbols.
17555
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17556
 
 
17557
 
# Symbols that should not be listed in the preloaded symbols.
17558
 
exclude_expsyms=$lt_exclude_expsyms_CXX
17559
 
 
17560
 
# Symbols that must always be exported.
17561
 
include_expsyms=$lt_include_expsyms_CXX
17562
 
 
17563
 
# Commands necessary for linking programs (against libraries) with templates.
17564
 
prelink_cmds=$lt_prelink_cmds_CXX
17565
 
 
17566
 
# Specify filename containing input files.
17567
 
file_list_spec=$lt_file_list_spec_CXX
17568
 
 
17569
 
# How to hardcode a shared library path into an executable.
17570
 
hardcode_action=$hardcode_action_CXX
17571
 
 
17572
 
# The directories searched by this compiler when creating a shared library.
17573
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17574
 
 
17575
 
# Dependencies to place before and after the objects being linked to
17576
 
# create a shared library.
17577
 
predep_objects=$lt_predep_objects_CXX
17578
 
postdep_objects=$lt_postdep_objects_CXX
17579
 
predeps=$lt_predeps_CXX
17580
 
postdeps=$lt_postdeps_CXX
17581
 
 
17582
 
# The library search path used internally by the compiler when linking
17583
 
# a shared library.
17584
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17585
 
 
17586
 
# ### END LIBTOOL TAG CONFIG: CXX
17587
 
_LT_EOF
17588
 
 
17589
 
 ;;
17590
 
 
17591
 
  esac
17592
 
done # for ac_tag
17593
 
 
17594
 
 
17595
 
as_fn_exit 0
17596
 
_ACEOF
17597
 
ac_clean_files=$ac_clean_files_save
17598
 
 
17599
 
test $ac_write_fail = 0 ||
17600
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17601
 
 
17602
 
 
17603
 
# configure is writing to config.log, and then calls config.status.
17604
 
# config.status does its own redirection, appending to config.log.
17605
 
# Unfortunately, on DOS this fails, as config.log is still kept open
17606
 
# by configure, so config.status won't be able to write to it; its
17607
 
# output is simply discarded.  So we exec the FD to /dev/null,
17608
 
# effectively closing config.log, so it can be properly (re)opened and
17609
 
# appended to by config.status.  When coming back to configure, we
17610
 
# need to make the FD available again.
17611
 
if test "$no_create" != yes; then
17612
 
  ac_cs_success=:
17613
 
  ac_config_status_args=
17614
 
  test "$silent" = yes &&
17615
 
    ac_config_status_args="$ac_config_status_args --quiet"
17616
 
  exec 5>/dev/null
17617
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17618
 
  exec 5>>config.log
17619
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17620
 
  # would make configure fail if this is the last instruction.
17621
 
  $ac_cs_success || as_fn_exit 1
17622
 
fi
17623
 
 
17624
 
#
17625
 
# CONFIG_SUBDIRS section.
17626
 
#
17627
 
if test "$no_recursion" != yes; then
17628
 
 
17629
 
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17630
 
  # so they do not pile up.
17631
 
  ac_sub_configure_args=
17632
 
  ac_prev=
17633
 
  eval "set x $ac_configure_args"
17634
 
  shift
17635
 
  for ac_arg
17636
 
  do
17637
 
    if test -n "$ac_prev"; then
17638
 
      ac_prev=
17639
 
      continue
17640
 
    fi
17641
 
    case $ac_arg in
17642
 
    -cache-file | --cache-file | --cache-fil | --cache-fi \
17643
 
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17644
 
      ac_prev=cache_file ;;
17645
 
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17646
 
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17647
 
    | --c=*)
17648
 
      ;;
17649
 
    --config-cache | -C)
17650
 
      ;;
17651
 
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17652
 
      ac_prev=srcdir ;;
17653
 
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17654
 
      ;;
17655
 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17656
 
      ac_prev=prefix ;;
17657
 
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17658
 
      ;;
17659
 
    --disable-option-checking)
17660
 
      ;;
17661
 
    *)
17662
 
      case $ac_arg in
17663
 
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17664
 
      esac
17665
 
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17666
 
    esac
17667
 
  done
17668
 
 
17669
 
  # Always prepend --prefix to ensure using the same prefix
17670
 
  # in subdir configurations.
17671
 
  ac_arg="--prefix=$prefix"
17672
 
  case $ac_arg in
17673
 
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17674
 
  esac
17675
 
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17676
 
 
17677
 
  # Pass --silent
17678
 
  if test "$silent" = yes; then
17679
 
    ac_sub_configure_args="--silent $ac_sub_configure_args"
17680
 
  fi
17681
 
 
17682
 
  # Always prepend --disable-option-checking to silence warnings, since
17683
 
  # different subdirs can have different --enable and --with options.
17684
 
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17685
 
 
17686
 
  ac_popdir=`pwd`
17687
 
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17688
 
 
17689
 
    # Do not complain, so a configure script can configure whichever
17690
 
    # parts of a large source tree are present.
17691
 
    test -d "$srcdir/$ac_dir" || continue
17692
 
 
17693
 
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17694
 
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17695
 
    $as_echo "$ac_msg" >&6
17696
 
    as_dir="$ac_dir"; as_fn_mkdir_p
17697
 
    ac_builddir=.
17698
 
 
17699
 
case "$ac_dir" in
17700
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17701
 
*)
17702
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17703
 
  # A ".." for each directory in $ac_dir_suffix.
17704
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17705
 
  case $ac_top_builddir_sub in
17706
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17707
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17708
 
  esac ;;
17709
 
esac
17710
 
ac_abs_top_builddir=$ac_pwd
17711
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17712
 
# for backward compatibility:
17713
 
ac_top_builddir=$ac_top_build_prefix
17714
 
 
17715
 
case $srcdir in
17716
 
  .)  # We are building in place.
17717
 
    ac_srcdir=.
17718
 
    ac_top_srcdir=$ac_top_builddir_sub
17719
 
    ac_abs_top_srcdir=$ac_pwd ;;
17720
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
17721
 
    ac_srcdir=$srcdir$ac_dir_suffix;
17722
 
    ac_top_srcdir=$srcdir
17723
 
    ac_abs_top_srcdir=$srcdir ;;
17724
 
  *) # Relative name.
17725
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17726
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17727
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17728
 
esac
17729
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17730
 
 
17731
 
 
17732
 
    cd "$ac_dir"
17733
 
 
17734
 
    # Check for guested configure; otherwise get Cygnus style configure.
17735
 
    if test -f "$ac_srcdir/configure.gnu"; then
17736
 
      ac_sub_configure=$ac_srcdir/configure.gnu
17737
 
    elif test -f "$ac_srcdir/configure"; then
17738
 
      ac_sub_configure=$ac_srcdir/configure
17739
 
    elif test -f "$ac_srcdir/configure.in"; then
17740
 
      # This should be Cygnus configure.
17741
 
      ac_sub_configure=$ac_aux_dir/configure
17742
 
    else
17743
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17744
 
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17745
 
      ac_sub_configure=
17746
 
    fi
17747
 
 
17748
 
    # The recursion is here.
17749
 
    if test -n "$ac_sub_configure"; then
17750
 
      # Make the cache file name correct relative to the subdirectory.
17751
 
      case $cache_file in
17752
 
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17753
 
      *) # Relative name.
17754
 
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17755
 
      esac
17756
 
 
17757
 
      { $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
17758
 
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17759
 
      # The eval makes quoting arguments work.
17760
 
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17761
 
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17762
 
        as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17763
 
    fi
17764
 
 
17765
 
    cd "$ac_popdir"
17766
 
  done
17767
 
fi
17768
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17769
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17770
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17771
 
fi
17772